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.35 by pcg, Sat Nov 10 15:16:37 2007 UTC

9943_ACEOF 9943_ACEOF
9944 9944
9945 LIBS="-lrt $LIBS" 9945 LIBS="-lrt $LIBS"
9946 9946
9947fi 9947fi
9948
9949
9950for ac_func in clock_gettime
9951do
9952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9953{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9955if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957else
9958 cat >conftest.$ac_ext <<_ACEOF
9959/* confdefs.h. */
9960_ACEOF
9961cat confdefs.h >>conftest.$ac_ext
9962cat >>conftest.$ac_ext <<_ACEOF
9963/* end confdefs.h. */
9964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9966#define $ac_func innocuous_$ac_func
9967
9968/* System header to define __stub macros and hopefully few prototypes,
9969 which can conflict with char $ac_func (); below.
9970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9971 <limits.h> exists even on freestanding compilers. */
9972
9973#ifdef __STDC__
9974# include <limits.h>
9975#else
9976# include <assert.h>
9977#endif
9978
9979#undef $ac_func
9980
9981/* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9984#ifdef __cplusplus
9985extern "C"
9986#endif
9987char $ac_func ();
9988/* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991#if defined __stub_$ac_func || defined __stub___$ac_func
9992choke me
9993#endif
9994
9995int
9996main ()
9997{
9998return $ac_func ();
9999 ;
10000 return 0;
10001}
10002_ACEOF
10003rm -f conftest.$ac_objext conftest$ac_exeext
10004if { (ac_try="$ac_link"
10005case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10008esac
10009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext &&
10020 $as_test_x conftest$ac_exeext; then
10021 eval "$as_ac_var=yes"
10022else
10023 echo "$as_me: failed program was:" >&5
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 eval "$as_ac_var=no"
10027fi
10028
10029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10030 conftest$ac_exeext conftest.$ac_ext
10031fi
10032ac_res=`eval echo '${'$as_ac_var'}'`
10033 { echo "$as_me:$LINENO: result: $ac_res" >&5
10034echo "${ECHO_T}$ac_res" >&6; }
10035if test `eval echo '${'$as_ac_var'}'` = yes; then
10036 cat >>confdefs.h <<_ACEOF
10037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10038_ACEOF
10039
10040fi
10041done
9948 10042
9949 10043
9950fi 10044fi
9951 10045
9952 10046

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines