From: hno <> Date: Tue, 5 Jul 2005 06:10:38 +0000 (+0000) Subject: Bootstrapped X-Git-Tag: SQUID_3_0_PRE4~707 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=967aecd2f254f8e9be71641301a287bb76d164b4;p=thirdparty%2Fsquid.git Bootstrapped --- diff --git a/configure b/configure index c198cb3705..fc1c788496 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.377 . +# From configure.in Revision: 1.378 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.59. # @@ -33854,6 +33854,81 @@ _ACEOF LIBS="-lrt $LIBS" +else + +echo "$as_me:$LINENO: checking for aio_read in -laio" >&5 +echo $ECHO_N "checking for aio_read in -laio... $ECHO_C" >&6 +if test "${ac_cv_lib_aio_aio_read+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-laio $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 gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char aio_read (); +int +main () +{ +aio_read (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_aio_aio_read=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_aio_aio_read=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_aio_aio_read" >&5 +echo "${ECHO_T}$ac_cv_lib_aio_aio_read" >&6 +if test $ac_cv_lib_aio_aio_read = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBAIO 1 +_ACEOF + + LIBS="-laio $LIBS" + +fi + fi fi diff --git a/include/autoconf.h.in b/include/autoconf.h.in index 6dbb4ee48a..923f7c57be 100644 --- a/include/autoconf.h.in +++ b/include/autoconf.h.in @@ -212,6 +212,9 @@ /* Define to 1 if you have the `44bsd' library (-l44bsd). */ #undef HAVE_LIB44BSD +/* Define to 1 if you have the `aio' library (-laio). */ +#undef HAVE_LIBAIO + /* Define to 1 if you have the `bind' library (-lbind). */ #undef HAVE_LIBBIND