… | |
… | |
2223 | fi |
2223 | fi |
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 | |
2231 | cat >>confdefs.h <<_ACEOF |
2231 | cat >>confdefs.h <<_ACEOF |
2232 | #define PACKAGE "$PACKAGE" |
2232 | #define PACKAGE "$PACKAGE" |
2233 | _ACEOF |
2233 | _ACEOF |
… | |
… | |
10054 | fi |
10054 | fi |
10055 | |
10055 | |
10056 | fi |
10056 | fi |
10057 | |
10057 | |
10058 | |
10058 | |
|
|
10059 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
10060 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
10061 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
10062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10063 | else |
|
|
10064 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10065 | /* confdefs.h. */ |
|
|
10066 | _ACEOF |
|
|
10067 | cat confdefs.h >>conftest.$ac_ext |
|
|
10068 | cat >>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 |
|
|
10091 | extern "C" |
|
|
10092 | #endif |
|
|
10093 | char 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 |
|
|
10098 | choke me |
|
|
10099 | #endif |
|
|
10100 | |
|
|
10101 | int |
|
|
10102 | main () |
|
|
10103 | { |
|
|
10104 | return nanosleep (); |
|
|
10105 | ; |
|
|
10106 | return 0; |
|
|
10107 | } |
|
|
10108 | _ACEOF |
|
|
10109 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10110 | if { (ac_try="$ac_link" |
|
|
10111 | case "(($ac_try" in |
|
|
10112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10113 | *) ac_try_echo=$ac_try;; |
|
|
10114 | esac |
|
|
10115 | eval "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 |
|
|
10128 | else |
|
|
10129 | echo "$as_me: failed program was:" >&5 |
|
|
10130 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10131 | |
|
|
10132 | ac_cv_func_nanosleep=no |
|
|
10133 | fi |
|
|
10134 | |
|
|
10135 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10136 | conftest$ac_exeext conftest.$ac_ext |
|
|
10137 | fi |
|
|
10138 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
10139 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
10140 | if test $ac_cv_func_nanosleep = yes; then |
|
|
10141 | : |
|
|
10142 | else |
|
|
10143 | |
|
|
10144 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
10145 | |
|
|
10146 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
10147 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
10148 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
10149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10150 | else |
|
|
10151 | ac_check_lib_save_LIBS=$LIBS |
|
|
10152 | LIBS="-lrt $LIBS" |
|
|
10153 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10154 | /* confdefs.h. */ |
|
|
10155 | _ACEOF |
|
|
10156 | cat confdefs.h >>conftest.$ac_ext |
|
|
10157 | cat >>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 |
|
|
10164 | extern "C" |
|
|
10165 | #endif |
|
|
10166 | char nanosleep (); |
|
|
10167 | int |
|
|
10168 | main () |
|
|
10169 | { |
|
|
10170 | return nanosleep (); |
|
|
10171 | ; |
|
|
10172 | return 0; |
|
|
10173 | } |
|
|
10174 | _ACEOF |
|
|
10175 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10176 | if { (ac_try="$ac_link" |
|
|
10177 | case "(($ac_try" in |
|
|
10178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10179 | *) ac_try_echo=$ac_try;; |
|
|
10180 | esac |
|
|
10181 | eval "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 |
|
|
10194 | else |
|
|
10195 | echo "$as_me: failed program was:" >&5 |
|
|
10196 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10197 | |
|
|
10198 | ac_cv_lib_rt_nanosleep=no |
|
|
10199 | fi |
|
|
10200 | |
|
|
10201 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10202 | conftest$ac_exeext conftest.$ac_ext |
|
|
10203 | LIBS=$ac_check_lib_save_LIBS |
|
|
10204 | fi |
|
|
10205 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
10206 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
10207 | if 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 | |
|
|
10214 | fi |
|
|
10215 | |
|
|
10216 | unset ac_cv_func_nanosleep |
|
|
10217 | |
|
|
10218 | for ac_func in nanosleep |
|
|
10219 | do |
|
|
10220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10221 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
10223 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10225 | else |
|
|
10226 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10227 | /* confdefs.h. */ |
|
|
10228 | _ACEOF |
|
|
10229 | cat confdefs.h >>conftest.$ac_ext |
|
|
10230 | cat >>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 |
|
|
10253 | extern "C" |
|
|
10254 | #endif |
|
|
10255 | char $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 |
|
|
10260 | choke me |
|
|
10261 | #endif |
|
|
10262 | |
|
|
10263 | int |
|
|
10264 | main () |
|
|
10265 | { |
|
|
10266 | return $ac_func (); |
|
|
10267 | ; |
|
|
10268 | return 0; |
|
|
10269 | } |
|
|
10270 | _ACEOF |
|
|
10271 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10272 | if { (ac_try="$ac_link" |
|
|
10273 | case "(($ac_try" in |
|
|
10274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10275 | *) ac_try_echo=$ac_try;; |
|
|
10276 | esac |
|
|
10277 | eval "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" |
|
|
10290 | else |
|
|
10291 | echo "$as_me: failed program was:" >&5 |
|
|
10292 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10293 | |
|
|
10294 | eval "$as_ac_var=no" |
|
|
10295 | fi |
|
|
10296 | |
|
|
10297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
10298 | conftest$ac_exeext conftest.$ac_ext |
|
|
10299 | fi |
|
|
10300 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
10301 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
10302 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
10303 | if 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 | |
|
|
10308 | fi |
|
|
10309 | done |
|
|
10310 | |
|
|
10311 | fi |
|
|
10312 | |
|
|
10313 | fi |
|
|
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 |
10061 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
10318 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
10062 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
10319 | if 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 | |
11231 | if $CXX -v --help 2>&1 | grep -q fno-rtti; then |
11488 | if $CXX -v --help 2>&1 | grep -q fno-rtti; then |
11232 | CXXFLAGS="$CXXFLAGS -fno-rtti" |
11489 | CXXFLAGS="$CXXFLAGS -fno-rtti" |
11233 | fi |
11490 | fi |
11234 | |
11491 | |
11235 | if $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" |
11237 | fi |
11494 | #fi |
11238 | |
11495 | |
11239 | LIBS="$EXTRA_LIBS $LIBS" |
11496 | LIBS="$EXTRA_LIBS $LIBS" |
11240 | |
11497 | |
11241 | |
11498 | |
11242 | |
11499 | |