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

Comparing gvpe/configure (file contents):
Revision 1.38 by pcg, Sun Dec 2 00:39:06 2007 UTC vs.
Revision 1.39 by pcg, Mon Jan 28 12:00:13 2008 UTC

2223fi 2223fi
2224 2224
2225 2225
2226# Define the identity of the package. 2226# Define the identity of the package.
2227 PACKAGE=gvpe 2227 PACKAGE=gvpe
2228 VERSION=2.01 2228 VERSION=2.2
2229 2229
2230 2230
2231cat >>confdefs.h <<_ACEOF 2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE "$PACKAGE" 2232#define PACKAGE "$PACKAGE"
2233_ACEOF 2233_ACEOF
10054 fi 10054 fi
10055 10055
10056fi 10056fi
10057 10057
10058 10058
10059{ echo "$as_me:$LINENO: checking for nanosleep" >&5
10060echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
10061if test "${ac_cv_func_nanosleep+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064 cat >conftest.$ac_ext <<_ACEOF
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
10070/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072#define nanosleep innocuous_nanosleep
10073
10074/* System header to define __stub macros and hopefully few prototypes,
10075 which can conflict with char nanosleep (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
10078
10079#ifdef __STDC__
10080# include <limits.h>
10081#else
10082# include <assert.h>
10083#endif
10084
10085#undef nanosleep
10086
10087/* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10090#ifdef __cplusplus
10091extern "C"
10092#endif
10093char nanosleep ();
10094/* The GNU C library defines this for functions which it implements
10095 to always fail with ENOSYS. Some functions are actually named
10096 something starting with __ and the normal name is an alias. */
10097#if defined __stub_nanosleep || defined __stub___nanosleep
10098choke me
10099#endif
10100
10101int
10102main ()
10103{
10104return nanosleep ();
10105 ;
10106 return 0;
10107}
10108_ACEOF
10109rm -f conftest.$ac_objext conftest$ac_exeext
10110if { (ac_try="$ac_link"
10111case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114esac
10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_link") 2>conftest.er1
10117 ac_status=$?
10118 grep -v '^ *+' conftest.er1 >conftest.err
10119 rm -f conftest.er1
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } && {
10123 test -z "$ac_c_werror_flag" ||
10124 test ! -s conftest.err
10125 } && test -s conftest$ac_exeext &&
10126 $as_test_x conftest$ac_exeext; then
10127 ac_cv_func_nanosleep=yes
10128else
10129 echo "$as_me: failed program was:" >&5
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 ac_cv_func_nanosleep=no
10133fi
10134
10135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10136 conftest$ac_exeext conftest.$ac_ext
10137fi
10138{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
10139echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
10140if test $ac_cv_func_nanosleep = yes; then
10141 :
10142else
10143
10144 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
10145
10146{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
10147echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
10148if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 ac_check_lib_save_LIBS=$LIBS
10152LIBS="-lrt $LIBS"
10153cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159
10160/* Override any GCC internal prototype to avoid an error.
10161 Use char because int might match the return type of a GCC
10162 builtin and then its argument prototype would still apply. */
10163#ifdef __cplusplus
10164extern "C"
10165#endif
10166char nanosleep ();
10167int
10168main ()
10169{
10170return nanosleep ();
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
10176if { (ac_try="$ac_link"
10177case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180esac
10181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>conftest.er1
10183 ac_status=$?
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest$ac_exeext &&
10192 $as_test_x conftest$ac_exeext; then
10193 ac_cv_lib_rt_nanosleep=yes
10194else
10195 echo "$as_me: failed program was:" >&5
10196sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 ac_cv_lib_rt_nanosleep=no
10199fi
10200
10201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10203LIBS=$ac_check_lib_save_LIBS
10204fi
10205{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
10206echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
10207if test $ac_cv_lib_rt_nanosleep = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209#define HAVE_LIBRT 1
10210_ACEOF
10211
10212 LIBS="-lrt $LIBS"
10213
10214fi
10215
10216 unset ac_cv_func_nanosleep
10217
10218for ac_func in nanosleep
10219do
10220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10221{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h. */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h. */
10232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10234#define $ac_func innocuous_$ac_func
10235
10236/* System header to define __stub macros and hopefully few prototypes,
10237 which can conflict with char $ac_func (); below.
10238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239 <limits.h> exists even on freestanding compilers. */
10240
10241#ifdef __STDC__
10242# include <limits.h>
10243#else
10244# include <assert.h>
10245#endif
10246
10247#undef $ac_func
10248
10249/* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10252#ifdef __cplusplus
10253extern "C"
10254#endif
10255char $ac_func ();
10256/* The GNU C library defines this for functions which it implements
10257 to always fail with ENOSYS. Some functions are actually named
10258 something starting with __ and the normal name is an alias. */
10259#if defined __stub_$ac_func || defined __stub___$ac_func
10260choke me
10261#endif
10262
10263int
10264main ()
10265{
10266return $ac_func ();
10267 ;
10268 return 0;
10269}
10270_ACEOF
10271rm -f conftest.$ac_objext conftest$ac_exeext
10272if { (ac_try="$ac_link"
10273case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10276esac
10277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_link") 2>conftest.er1
10279 ac_status=$?
10280 grep -v '^ *+' conftest.er1 >conftest.err
10281 rm -f conftest.er1
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } && {
10285 test -z "$ac_c_werror_flag" ||
10286 test ! -s conftest.err
10287 } && test -s conftest$ac_exeext &&
10288 $as_test_x conftest$ac_exeext; then
10289 eval "$as_ac_var=yes"
10290else
10291 echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 eval "$as_ac_var=no"
10295fi
10296
10297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10298 conftest$ac_exeext conftest.$ac_ext
10299fi
10300ac_res=`eval echo '${'$as_ac_var'}'`
10301 { echo "$as_me:$LINENO: result: $ac_res" >&5
10302echo "${ECHO_T}$ac_res" >&6; }
10303if test `eval echo '${'$as_ac_var'}'` = yes; then
10304 cat >>confdefs.h <<_ACEOF
10305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10306_ACEOF
10307
10308fi
10309done
10310
10311 fi
10312
10313fi
10314
10315
10059 10316
10060{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5 10317{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
10061echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } 10318echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
10062if test "${ac_cv_lib_m_ceil+set}" = set; then 10319if test "${ac_cv_lib_m_ceil+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" >&6 10320 echo $ECHO_N "(cached) $ECHO_C" >&6
11230 11487
11231if $CXX -v --help 2>&1 | grep -q fno-rtti; then 11488if $CXX -v --help 2>&1 | grep -q fno-rtti; then
11232 CXXFLAGS="$CXXFLAGS -fno-rtti" 11489 CXXFLAGS="$CXXFLAGS -fno-rtti"
11233fi 11490fi
11234 11491
11235if $CXX -v --help 2>&1 | grep -q fexceptions; then 11492#if $CXX -v --help 2>&1 | grep -q fexceptions; then
11236 CXXFLAGS="$CXXFLAGS -fno-exceptions" 11493# CXXFLAGS="$CXXFLAGS -fno-exceptions"
11237fi 11494#fi
11238 11495
11239LIBS="$EXTRA_LIBS $LIBS" 11496LIBS="$EXTRA_LIBS $LIBS"
11240 11497
11241 11498
11242 11499

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines