@@ -3876,111 +3876,58 @@ fi done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pool_free in -lpool" >&5 -$as_echo_n "checking for pool_free in -lpool... " >&6; } -if test "${ac_cv_lib_pool_pool_free+set}" = set; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for config_init in -lconfig" >&5 +$as_echo_n "checking for config_init in -lconfig... " >&6; } +if test "${ac_cv_lib_config_config_init+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lpool $LIBS" +LIBS="-lconfig $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* 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 pool_free (); -int -main () -{ -return pool_free (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pool_pool_free=yes -else - ac_cv_lib_pool_pool_free=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pool_pool_free" >&5 -$as_echo "$ac_cv_lib_pool_pool_free" >&6; } -if test "x$ac_cv_lib_pool_pool_free" = x""yes; then : - - -$as_echo "#define HAVE_POOL /**/" >>confdefs.h - - LIBS="$LIBS -lpool" - -else - - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "You must have dotconf (libpool), find it here: http://www.azzit.de/dotconf/ -See \`config.log' for more details" "$LINENO" 5; } - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dotconf_create in -ldotconf" >&5 -$as_echo_n "checking for dotconf_create in -ldotconf... " >&6; } -if test "${ac_cv_lib_dotconf_dotconf_create+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldotconf $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* 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 dotconf_create (); -int -main () -{ -return dotconf_create (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dotconf_dotconf_create=yes -else - ac_cv_lib_dotconf_dotconf_create=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dotconf_dotconf_create" >&5 -$as_echo "$ac_cv_lib_dotconf_dotconf_create" >&6; } -if test "x$ac_cv_lib_dotconf_dotconf_create" = x""yes; then : - - -$as_echo "#define HAVE_DOTCONF /**/" >>confdefs.h - - LIBS="$LIBS -ldotconf" - -else - - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "You must have dotconf, find it here: http://www.azzit.de/dotconf/ +char config_init (); +int +main () +{ +return config_init (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_config_config_init=yes +else + ac_cv_lib_config_config_init=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_config_config_init" >&5 +$as_echo "$ac_cv_lib_config_config_init" >&6; } +if test "x$ac_cv_lib_config_config_init" = x""yes; then : + + +$as_echo "#define HAVE_LIBCONFIG /**/" >>confdefs.h + + LIBS="$LIBS -lconfig" + +else + + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +as_fn_error $? "You must have libconfig See \`config.log' for more details" "$LINENO" 5; } fi