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

Comparing rxvt-unicode/configure (file contents):
Revision 1.128 by root, Sat Nov 8 16:49:46 2008 UTC vs.
Revision 1.129 by root, Fri Sep 4 15:40:12 2009 UTC

5324 5324
5325 5325
5326 5326
5327 5327
5328 5328
5329
5329for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h 5330for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5330do 5331do
5331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5333 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5471 5472
5472 5473
5473 5474
5474 5475
5475 5476
5477
5476for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd 5478for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5477do 5479do
5478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5479{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5481{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5481if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5483if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5650echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } 5652echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5651if test $ac_cv_func_clock_gettime = yes; then 5653if test $ac_cv_func_clock_gettime = yes; then
5652 : 5654 :
5653else 5655else
5654 5656
5655 if test -z "$LIBEV_M4_AVOID_LIBRT"; then 5657 if test $(uname) = Linux; then
5658 { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5
5659echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; }
5660 cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h. */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h. */
5666#include <syscall.h>
5667 #include <time.h>
5668int
5669main ()
5670{
5671struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext conftest$ac_exeext
5677if { (ac_try="$ac_link"
5678case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_link") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_cxx_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest$ac_exeext &&
5693 $as_test_x conftest$ac_exeext; then
5694 ac_have_clock_syscall=1
5695
5696cat >>confdefs.h <<\_ACEOF
5697#define HAVE_CLOCK_SYSCALL 1
5698_ACEOF
5699
5700 { echo "$as_me:$LINENO: result: yes" >&5
5701echo "${ECHO_T}yes" >&6; }
5702else
5703 echo "$as_me: failed program was:" >&5
5704sed 's/^/| /' conftest.$ac_ext >&5
5705
5706 { echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6; }
5708fi
5709
5710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5711 conftest$ac_exeext conftest.$ac_ext
5712 fi
5713 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5656 5714
5657{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 5715{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5658echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } 5716echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5659if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 5717if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6 5718 echo $ECHO_N "(cached) $ECHO_C" >&6
6149_ACEOF 6207_ACEOF
6150 6208
6151 LIBS="-lm $LIBS" 6209 LIBS="-lm $LIBS"
6152 6210
6153fi 6211fi
6154
6155
6156 6212
6157 6213
6158 6214
6159 6215
6160 6216

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines