X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=configure;h=62e9cd7281be8845e5244e225f0ea1cb804d00b9;hp=a0a90f8d57c21b19c4798186d694286e9f434845;hb=2d76f6325ac57604d9b04c4481d6180fecc2bfaf;hpb=122a9b232937a3c8dcf791165f6db67c357fd1bf diff --git a/configure b/configure index a0a90f8..62e9cd7 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63 for lcr 1.3. +# Generated by GNU Autoconf 2.63 for lcr 1.7. # # Report bugs to . # @@ -596,8 +596,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='lcr' PACKAGE_TARNAME='lcr' -PACKAGE_VERSION='1.3' -PACKAGE_STRING='lcr 1.3' +PACKAGE_VERSION='1.7' +PACKAGE_STRING='lcr 1.7' PACKAGE_BUGREPORT='andreas@eversberg.eu' ac_unique_file="main.c" @@ -640,6 +640,10 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS POW_LIB LIBOBJS +ENABLE_SS5_FALSE +ENABLE_SS5_TRUE +ENABLE_GSM_FALSE +ENABLE_GSM_TRUE LIBCRYPTO ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE @@ -732,6 +736,8 @@ enable_option_checking enable_dependency_tracking with_asterisk with_ssl +with_gsm +with_ss5 ' ac_precious_vars='build_alias host_alias @@ -1297,7 +1303,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures lcr 1.3 to adapt to many kinds of systems. +\`configure' configures lcr 1.7 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1363,7 +1369,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of lcr 1.3:";; + short | recursive ) echo "Configuration of lcr 1.7:";; esac cat <<\_ACEOF @@ -1382,6 +1388,10 @@ Optional Packages: --with-ssl compile with ssl support (libcrypto) [default=check] + --with-gsm compile with OpenBSC support [default=check] + + --with-ss5 compile with CCITT No. 5 support [default=no] + Some influential environment variables: CC C compiler command @@ -1461,7 +1471,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -lcr configure 1.3 +lcr configure 1.7 generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1475,7 +1485,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by lcr $as_me 1.3, which was +It was created by lcr $as_me 1.7, which was generated by GNU Autoconf 2.63. Invocation command line was $ $0 $@ @@ -4033,7 +4043,7 @@ fi # Define the identity of the package. PACKAGE=lcr - VERSION=1.3 + VERSION=1.7 cat >>confdefs.h <<_ACEOF @@ -5828,7 +5838,7 @@ fi if test "x$with_asterisk" != xno; then -for ac_header in asterisk/channel.h +for ac_header in asterisk/compiler.h do as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then @@ -5978,9 +5988,9 @@ else if test "x$with_asterisk" != xcheck ; then { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -{ { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/channel.h failed +{ { $as_echo "$as_me:$LINENO: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed See \`config.log' for more details." >&5 -$as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/channel.h failed +$as_echo "$as_me: error: --with-asterisk was given, but test for header-file asterisk/compiler.h failed See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; }; } fi @@ -6253,6 +6263,85 @@ fi fi +# check for gsm + +# Check whether --with-gsm was given. +if test "${with_gsm+set}" = set; then + withval=$with_gsm; +else + with_gsm="check" +fi + + +if test "x$with_gsm" != xno; then + { $as_echo "$as_me:$LINENO: checking for openbsc/include/openbsc/gsm_data.h" >&5 +$as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; } +if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then + $as_echo_n "(cached) " >&6 +else + test "$cross_compiling" = yes && + { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "openbsc/include/openbsc/gsm_data.h"; then + ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes +else + ac_cv_file_openbsc_include_openbsc_gsm_data_h=no +fi +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5 +$as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; } +if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then + with_gsm="yes" +else + if test "x$with_gsm" != xcheck ; then + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:$LINENO: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore osmocore +See \`config.log' for more details." >&5 +$as_echo "$as_me: error: --with-gsm was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore osmocore +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } + fi + +fi + + +fi + + + + +if test "x$with_gsm" == "xyes" ; then + ENABLE_GSM_TRUE= + ENABLE_GSM_FALSE='#' +else + ENABLE_GSM_TRUE='#' + ENABLE_GSM_FALSE= +fi + + +# check for ss5 + +# Check whether --with-ss5 was given. +if test "${with_ss5+set}" = set; then + withval=$with_ss5; +else + with_ss5="check" +fi + + + + +if test "x$with_ss5" == "xyes" ; then + ENABLE_SS5_TRUE= + ENABLE_SS5_FALSE='#' +else + ENABLE_SS5_TRUE='#' + ENABLE_SS5_FALSE= +fi + + # Checks for libraries. { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5 @@ -9756,6 +9845,20 @@ $as_echo "$as_me: error: conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was neve Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi +if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GSM\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"ENABLE_GSM\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SS5\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"ENABLE_SS5\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 @@ -10078,7 +10181,7 @@ exec 6>&1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by lcr $as_me 1.3, which was +This file was extended by lcr $as_me 1.7, which was generated by GNU Autoconf 2.63. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -10141,7 +10244,7 @@ Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ -lcr config.status 1.3 +lcr config.status 1.7 configured by $0, generated by GNU Autoconf 2.63, with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"