X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=blobdiff_plain;f=configure;h=cc2a64a0ff9cfa24f48a5205670761cd57e00a1f;hp=df6d3453a8466aa0aec39d52d86d650666d4f0ae;hb=HEAD;hpb=cacf6888a04d4321a69a4bbeff915fe27af28f0d diff --git a/configure b/configure index df6d345..cc2a64a 100755 --- a/configure +++ b/configure @@ -1476,7 +1476,8 @@ Optional Features: Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-system-libtool try to use libtool installed in your system default=use our own + --with-system-libltdl Use the libltdl installed in your system (default=use our own) + --with-system-libtool Use the libtool installed in your system (default=use our own) --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-pic try to use only PIC/non-PIC objects [default=use both] @@ -4786,6 +4787,17 @@ echo "$as_me: error: GNU Make is not installed. Please download and install it { (exit 1); exit 1; }; } fi + +# Check whether --with-system-libltdl was given. +if test "${with_system_libltdl+set}" = set; then + withval=$with_system_libltdl; +LIBLTDL="-lltdl" +INCLTDL= +LTDL_SUBDIRS= + +else + +test x"$enable_ltdl_install" = x && enable_ltdl_install=yes { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; } if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then @@ -4876,6 +4888,9 @@ if test x"$enable_ltdl_install" = x"yes"; then LTDL_SUBDIRS=libltdl fi +fi + + # Check whether --enable-shared was given. if test "${enable_shared+set}" = set; then @@ -5553,7 +5568,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 5556 "configure"' > conftest.$ac_ext + echo '#line 5571 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -7659,11 +7674,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7662: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7677: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7666: \$? = $ac_status" >&5 + echo "$as_me:7681: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -7949,11 +7964,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:7952: $lt_compile\"" >&5) + (eval echo "\"\$as_me:7967: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:7956: \$? = $ac_status" >&5 + echo "$as_me:7971: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -8053,11 +8068,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8056: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8071: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8060: \$? = $ac_status" >&5 + echo "$as_me:8075: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -10430,7 +10445,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&5) + (eval echo "\"\$as_me:12949: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:12938: \$? = $ac_status" >&5 + echo "$as_me:12953: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -13035,11 +13050,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:13038: $lt_compile\"" >&5) + (eval echo "\"\$as_me:13053: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:13042: \$? = $ac_status" >&5 + echo "$as_me:13057: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -14633,11 +14648,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14636: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14651: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14640: \$? = $ac_status" >&5 + echo "$as_me:14655: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -14737,11 +14752,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14740: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14755: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14744: \$? = $ac_status" >&5 + echo "$as_me:14759: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -16957,11 +16972,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16960: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16975: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:16964: \$? = $ac_status" >&5 + echo "$as_me:16979: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -17247,11 +17262,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17250: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17265: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:17254: \$? = $ac_status" >&5 + echo "$as_me:17269: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -17351,11 +17366,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:17354: $lt_compile\"" >&5) + (eval echo "\"\$as_me:17369: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:17358: \$? = $ac_status" >&5 + echo "$as_me:17373: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -21374,8 +21389,9 @@ fi OPENSSL_LIBS= if test "x$WITH_OPENSSL" = xyes; then old_LIBS=$LIBS + old_LDFLAGS="$LDFLAGS" if test "x$OPENSSL_LIB_DIR" != "x"; then - LIBS="-L$OPENSSL_LIB_DIR $LIBS" + LDFLAGS="$LDFLAGS -L$OPENSSL_LIB_DIR" fi { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; } @@ -21525,6 +21541,7 @@ fi fi LIBS=$old_LIBS + LDFLAGS="$old_LDFLAGS" fi @@ -23477,6 +23494,147 @@ echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." fi + + { echo "$as_me:$LINENO: checking for pcap_fopen_offline in -lpcap" >&5 +echo $ECHO_N "checking for pcap_fopen_offline in -lpcap... $ECHO_C" >&6; } +if test "${ac_cv_lib_pcap_pcap_fopen_offline+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpcap $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pcap_fopen_offline (); +int +main () +{ +return pcap_fopen_offline (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_pcap_pcap_fopen_offline=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_pcap_pcap_fopen_offline=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_fopen_offline" >&5 +echo "${ECHO_T}$ac_cv_lib_pcap_pcap_fopen_offline" >&6; } +if test $ac_cv_lib_pcap_pcap_fopen_offline = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_PCAP_FOPEN_OFFLINE 1 +_ACEOF + + +fi + + { echo "$as_me:$LINENO: checking for pcap_dump_fopen in -lpcap" >&5 +echo $ECHO_N "checking for pcap_dump_fopen in -lpcap... $ECHO_C" >&6; } +if test "${ac_cv_lib_pcap_pcap_dump_fopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpcap $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char pcap_dump_fopen (); +int +main () +{ +return pcap_dump_fopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_lib_pcap_pcap_dump_fopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_pcap_pcap_dump_fopen=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dump_fopen" >&5 +echo "${ECHO_T}$ac_cv_lib_pcap_pcap_dump_fopen" >&6; } +if test $ac_cv_lib_pcap_pcap_dump_fopen = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_PCAP_DUMP_FOPEN 1 +_ACEOF + + +fi + fi @@ -24971,7 +25129,7 @@ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ - static __thread int val; int main() { return 0; } + static __thread int val; int main(int argc, char *argv[]) { return val = argc; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" @@ -25018,6 +25176,99 @@ _ACEOF +old_LIBS="$LIBS" +LIBS="$LIBS $LIBLTDL" +{ echo "$as_me:$LINENO: checking for lt_dladvise_init" >&5 +echo $ECHO_N "checking for lt_dladvise_init... $ECHO_C" >&6; } +if test "${ac_cv_func_lt_dladvise_init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define lt_dladvise_init to an innocuous variant, in case declares lt_dladvise_init. + For example, HP-UX 11i declares gettimeofday. */ +#define lt_dladvise_init innocuous_lt_dladvise_init + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char lt_dladvise_init (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef lt_dladvise_init + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char lt_dladvise_init (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_lt_dladvise_init || defined __stub___lt_dladvise_init +choke me +#endif + +int +main () +{ +return lt_dladvise_init (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then + ac_cv_func_lt_dladvise_init=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_lt_dladvise_init=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ echo "$as_me:$LINENO: result: $ac_cv_func_lt_dladvise_init" >&5 +echo "${ECHO_T}$ac_cv_func_lt_dladvise_init" >&6; } +if test $ac_cv_func_lt_dladvise_init = yes; then + +cat >>confdefs.h <<\_ACEOF +#define HAVE_HAVE_LT_DLADVISE_INIT +_ACEOF + +fi + +LIBS="$old_LIBS" + { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; } if test "${ac_cv_lib_crypt_crypt+set}" = set; then