ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/configure
(Generate patch)

Comparing gvpe/configure (file contents):
Revision 1.34 by pcg, Sat Nov 10 05:14:21 2007 UTC vs.
Revision 1.37 by pcg, Sat Dec 1 23:35:31 2007 UTC

9552 9552
9553 9553
9554 9554
9555 9555
9556 9556
9557for ac_header in sys/epoll.h sys/event.h sys/queue.h 9557
9558
9559
9560
9561for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
9558do 9562do
9559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9563as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9561 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9694done 9698done
9695 9699
9696 9700
9697 9701
9698 9702
9699for ac_func in epoll_ctl kqueue 9703
9704
9705
9706
9707for ac_func in inotify_init epoll_ctl kqueue port_create poll select
9700do 9708do
9701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9702{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9704if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9873echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } 9881echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
9874if test $ac_cv_func_clock_gettime = yes; then 9882if test $ac_cv_func_clock_gettime = yes; then
9875 : 9883 :
9876else 9884else
9877 9885
9886 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
9878 9887
9879{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 9888{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9880echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } 9889echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9881if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 9890if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6 9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 9953
9945 LIBS="-lrt $LIBS" 9954 LIBS="-lrt $LIBS"
9946 9955
9947fi 9956fi
9948 9957
9958
9959for ac_func in clock_gettime
9960do
9961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9962{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9964if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966else
9967 cat >conftest.$ac_ext <<_ACEOF
9968/* confdefs.h. */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h. */
9973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9975#define $ac_func innocuous_$ac_func
9976
9977/* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char $ac_func (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
9981
9982#ifdef __STDC__
9983# include <limits.h>
9984#else
9985# include <assert.h>
9986#endif
9987
9988#undef $ac_func
9989
9990/* Override any GCC internal prototype to avoid an error.
9991 Use char because int might match the return type of a GCC
9992 builtin and then its argument prototype would still apply. */
9993#ifdef __cplusplus
9994extern "C"
9995#endif
9996char $ac_func ();
9997/* The GNU C library defines this for functions which it implements
9998 to always fail with ENOSYS. Some functions are actually named
9999 something starting with __ and the normal name is an alias. */
10000#if defined __stub_$ac_func || defined __stub___$ac_func
10001choke me
10002#endif
10003
10004int
10005main ()
10006{
10007return $ac_func ();
10008 ;
10009 return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
10013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest$ac_exeext &&
10029 $as_test_x conftest$ac_exeext; then
10030 eval "$as_ac_var=yes"
10031else
10032 echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
10035 eval "$as_ac_var=no"
10036fi
10037
10038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039 conftest$ac_exeext conftest.$ac_ext
10040fi
10041ac_res=`eval echo '${'$as_ac_var'}'`
10042 { echo "$as_me:$LINENO: result: $ac_res" >&5
10043echo "${ECHO_T}$ac_res" >&6; }
10044if test `eval echo '${'$as_ac_var'}'` = yes; then
10045 cat >>confdefs.h <<_ACEOF
10046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10047_ACEOF
10048
10049fi
10050done
10051
10052 fi
10053
10054fi
10055
10056
10057
10058{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
10059echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
10060if test "${ac_cv_lib_m_ceil+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063 ac_check_lib_save_LIBS=$LIBS
10064LIBS="-lm $LIBS"
10065cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h. */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h. */
10071
10072/* Override any GCC internal prototype to avoid an error.
10073 Use char because int might match the return type of a GCC
10074 builtin and then its argument prototype would still apply. */
10075#ifdef __cplusplus
10076extern "C"
10077#endif
10078char ceil ();
10079int
10080main ()
10081{
10082return ceil ();
10083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (ac_try="$ac_link"
10089case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_link") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest$ac_exeext &&
10104 $as_test_x conftest$ac_exeext; then
10105 ac_cv_lib_m_ceil=yes
10106else
10107 echo "$as_me: failed program was:" >&5
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 ac_cv_lib_m_ceil=no
10111fi
10112
10113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10114 conftest$ac_exeext conftest.$ac_ext
10115LIBS=$ac_check_lib_save_LIBS
10116fi
10117{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
10118echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
10119if test $ac_cv_lib_m_ceil = yes; then
10120 cat >>confdefs.h <<_ACEOF
10121#define HAVE_LIBM 1
10122_ACEOF
10123
10124 LIBS="-lm $LIBS"
9949 10125
9950fi 10126fi
9951 10127
9952 10128
9953 10129
11055fi 11231fi
11056 11232
11057if $CXX -v --help 2>&1 | grep -q fexceptions; then 11233if $CXX -v --help 2>&1 | grep -q fexceptions; then
11058 CXXFLAGS="$CXXFLAGS -fno-exceptions" 11234 CXXFLAGS="$CXXFLAGS -fno-exceptions"
11059fi 11235fi
11236
11237LIBS="$EXTRA_LIBS $LIBS"
11060 11238
11061 11239
11062 11240
11063 11241
11064ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile" 11242ac_config_files="$ac_config_files Makefile po/Makefile.in src/Makefile doc/Makefile lib/Makefile m4/Makefile"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines