changeset: 73126:35e4b7c4bafa parent: 73123:3c4b7ecc2db7 user: Victor Stinner date: Tue Oct 25 13:06:09 2011 +0200 files: Doc/library/time.rst Doc/whatsnew/3.3.rst Lib/test/test_time.py Misc/NEWS Modules/timemodule.c configure configure.in pyconfig.h.in setup.py description: Close #10278: Add clock_getres(), clock_gettime() and CLOCK_xxx constants to the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a monotonic clock diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa Doc/library/time.rst --- a/Doc/library/time.rst Tue Oct 25 10:41:37 2011 +0300 +++ b/Doc/library/time.rst Tue Oct 25 13:06:09 2011 +0200 @@ -136,6 +136,54 @@ microsecond. +.. function:: clock_getres(clk_id) + + Return the resolution (precision) of the specified clock *clk_id*. + + .. versionadded:: 3.3 + +.. function:: clock_gettime(clk_id) + + Return the time of the specified clock *clk_id*. + + .. versionadded:: 3.3 + +.. data:: CLOCK_REALTIME + + System-wide real-time clock. Setting this clock requires appropriate + privileges. + + .. versionadded:: 3.3 + +.. data:: CLOCK_MONOTONIC + + Clock that cannot be set and represents monotonic time since some + unspecified starting point. + + .. versionadded:: 3.3 + +.. data:: CLOCK_MONOTONIC_RAW + + Similar to :data:`CLOCK_MONOTONIC`, but provides access to a raw + hardware-based time that is not subject to NTP adjustments. + + Availability: Linux 2.6.28 or later. + + .. versionadded:: 3.3 + +.. data:: CLOCK_PROCESS_CPUTIME_ID + + High-resolution per-process timer from the CPU. + + .. versionadded:: 3.3 + +.. data:: CLOCK_THREAD_CPUTIME_ID + + Thread-specific CPU-time clock. + + .. versionadded:: 3.3 + + .. function:: ctime([secs]) Convert a time expressed in seconds since the epoch to a string representing diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa Doc/whatsnew/3.3.rst --- a/Doc/whatsnew/3.3.rst Tue Oct 25 10:41:37 2011 +0300 +++ b/Doc/whatsnew/3.3.rst Tue Oct 25 13:06:09 2011 +0200 @@ -272,6 +272,16 @@ * :envvar:`PYTHONFAULTHANDLER` * :option:`-X` ``faulthandler`` +time +---- + +* The :mod:`time` module has new :func:`~time.clock_getres` and + :func:`~time.clock_gettime` functions and ``CLOCK_xxx`` constants. + :func:`~time.clock_gettime` can be used with :data:`time.CLOCK_MONOTONIC` to + get a monotonic clock. + + (Contributed by Victor Stinner in :issue:`10278`) + ftplib ------ diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa Lib/test/test_time.py --- a/Lib/test/test_time.py Tue Oct 25 10:41:37 2011 +0300 +++ b/Lib/test/test_time.py Tue Oct 25 13:06:09 2011 +0200 @@ -20,6 +20,27 @@ def test_clock(self): time.clock() + @unittest.skipUnless(hasattr(time, 'clock_gettime'), + 'need time.clock_gettime()') + def test_clock_realtime(self): + time.clock_gettime(time.CLOCK_REALTIME) + + @unittest.skipUnless(hasattr(time, 'clock_gettime'), + 'need time.clock_gettime()') + @unittest.skipUnless(hasattr(time, 'CLOCK_MONOTONIC'), + 'need time.CLOCK_MONOTONIC') + def test_clock_monotonic(self): + a = time.clock_gettime(time.CLOCK_MONOTONIC) + b = time.clock_gettime(time.CLOCK_MONOTONIC) + self.assertLessEqual(a, b) + + @unittest.skipUnless(hasattr(time, 'clock_getres'), + 'need time.clock_getres()') + def test_clock_getres(self): + res = time.clock_getres(time.CLOCK_REALTIME) + self.assertGreater(res, 0.0) + self.assertLessEqual(res, 1.0) + def test_conversions(self): self.assertEqual(time.ctime(self.t), time.asctime(time.localtime(self.t))) diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa Misc/NEWS --- a/Misc/NEWS Tue Oct 25 10:41:37 2011 +0300 +++ b/Misc/NEWS Tue Oct 25 13:06:09 2011 +0200 @@ -341,6 +341,10 @@ Library ------- +- Issue #10278: Add clock_getres(), clock_gettime() and CLOCK_xxx constants to + the time module. time.clock_gettime(time.CLOCK_MONOTONIC) provides a + monotonic clock + - Issue #10332: multiprocessing: fix a race condition when a Pool is closed before all tasks have completed. diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa Modules/timemodule.c --- a/Modules/timemodule.c Tue Oct 25 10:41:37 2011 +0300 +++ b/Modules/timemodule.c Tue Oct 25 13:06:09 2011 +0200 @@ -135,6 +135,54 @@ records."); #endif +#ifdef HAVE_CLOCK_GETTIME +static PyObject * +time_clock_gettime(PyObject *self, PyObject *args) +{ + int ret; + clockid_t clk_id; + struct timespec tp; + + if (!PyArg_ParseTuple(args, "i:clock_gettime", &clk_id)) + return NULL; + + ret = clock_gettime((clockid_t)clk_id, &tp); + if (ret != 0) + PyErr_SetFromErrno(PyExc_IOError); + + return PyFloat_FromDouble(tp.tv_sec + tp.tv_nsec * 1e-9); +} + +PyDoc_STRVAR(clock_gettime_doc, +"clock_gettime(clk_id) -> floating point number\n\ +\n\ +Return the time of the specified clock clk_id."); +#endif + +#ifdef HAVE_CLOCK_GETRES +static PyObject * +time_clock_getres(PyObject *self, PyObject *args) +{ + int ret; + clockid_t clk_id; + struct timespec tp; + + if (!PyArg_ParseTuple(args, "i:clock_getres", &clk_id)) + return NULL; + + ret = clock_getres((clockid_t)clk_id, &tp); + if (ret != 0) + PyErr_SetFromErrno(PyExc_IOError); + + return PyFloat_FromDouble(tp.tv_sec + tp.tv_nsec * 1e-9); +} + +PyDoc_STRVAR(clock_getres_doc, +"clock_getres(clk_id) -> floating point number\n\ +\n\ +Return the resolution (precision) of the specified clock clk_id."); +#endif + static PyObject * time_sleep(PyObject *self, PyObject *args) { @@ -786,6 +834,24 @@ Py_BuildValue("(zz)", _tzname[0], _tzname[1])); #endif /* __CYGWIN__ */ #endif /* !HAVE_TZNAME || __GLIBC__ || __CYGWIN__*/ + +#if defined(HAVE_CLOCK_GETTIME) || defined(HAVE_CLOCK_GETRES) +#ifdef CLOCK_REALTIME + PyModule_AddIntMacro(m, CLOCK_REALTIME); +#endif +#ifdef CLOCK_MONOTONIC + PyModule_AddIntMacro(m, CLOCK_MONOTONIC); +#endif +#ifdef CLOCK_MONOTONIC_RAW + PyModule_AddIntMacro(m, CLOCK_MONOTONIC_RAW); +#endif +#ifdef CLOCK_PROCESS_CPUTIME_ID + PyModule_AddIntMacro(m, CLOCK_PROCESS_CPUTIME_ID); +#endif +#ifdef CLOCK_THREAD_CPUTIME_ID + PyModule_AddIntMacro(m, CLOCK_THREAD_CPUTIME_ID); +#endif +#endif /* HAVE_CLOCK_GETTIME */ } @@ -794,6 +860,12 @@ #if (defined(MS_WINDOWS) && !defined(__BORLANDC__)) || defined(HAVE_CLOCK) {"clock", time_clock, METH_NOARGS, clock_doc}, #endif +#ifdef HAVE_CLOCK_GETTIME + {"clock_gettime", time_clock_gettime, METH_VARARGS, clock_gettime_doc}, +#endif +#ifdef HAVE_CLOCK_GETRES + {"clock_getres", time_clock_getres, METH_VARARGS, clock_getres_doc}, +#endif {"sleep", time_sleep, METH_VARARGS, sleep_doc}, {"gmtime", time_gmtime, METH_VARARGS, gmtime_doc}, {"localtime", time_localtime, METH_VARARGS, localtime_doc}, diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa configure --- a/configure Tue Oct 25 10:41:37 2011 +0300 +++ b/configure Tue Oct 25 13:06:09 2011 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.67 for python 3.3. +# Generated by GNU Autoconf 2.68 for python 3.3. # # Report bugs to . # @@ -91,6 +91,7 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. +as_myself= case 0ドル in #(( *[\\/]* ) as_myself=0ドル ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -216,11 +217,18 @@ # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. + # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV)>/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} + case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; + esac + exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} fi if test x$as_have_required = xno; then : @@ -1174,7 +1182,7 @@ $as_echo "$as_me: WARNING: you should use --build, --host, --target">&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]">/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option">&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac @@ -1510,7 +1518,7 @@ if $ac_init_version; then cat <<\_aceof python configure 3.3 -generated by GNU Autoconf 2.67 +generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation @@ -1556,7 +1564,7 @@ ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile @@ -1602,7 +1610,7 @@ # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link @@ -1639,7 +1647,7 @@ ac_retval=1 fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp @@ -1652,10 +1660,10 @@ ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"1ドル"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if eval "test \"\${3ドル+set}\"" = set; then : + if eval \${3ドル+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2ドル">&5 $as_echo_n "checking for 2ドル... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 fi eval ac_res=\$3ドル @@ -1722,7 +1730,7 @@ esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2ドル">&5 $as_echo_n "checking for 2ドル... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 else eval "3ドル=\$ac_header_compiler" @@ -1731,7 +1739,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel @@ -1772,7 +1780,7 @@ ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run @@ -1786,7 +1794,7 @@ as_lineno=${as_lineno-"1ドル"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2ドル">&5 $as_echo_n "checking for 2ドル... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -1804,7 +1812,7 @@ eval ac_res=\$3ドル { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile @@ -1817,7 +1825,7 @@ as_lineno=${as_lineno-"1ドル"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2ドル">&5 $as_echo_n "checking for 2ドル... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 else eval "3ドル=no" @@ -1858,7 +1866,7 @@ eval ac_res=\$3ドル { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type @@ -1871,7 +1879,7 @@ as_lineno=${as_lineno-"1ドル"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint2ドル_t">&5 $as_echo_n "checking for uint2ドル_t... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 else eval "3ドル=no" @@ -1911,7 +1919,7 @@ eval ac_res=\$3ドル { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_find_uintX_t @@ -1924,7 +1932,7 @@ as_lineno=${as_lineno-"1ドル"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int2ドル_t">&5 $as_echo_n "checking for int2ドル_t... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 else eval "3ドル=no" @@ -1985,7 +1993,7 @@ eval ac_res=\$3ドル { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_find_intX_t @@ -2162,7 +2170,7 @@ rm -f conftest.val fi - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_compute_int @@ -2175,7 +2183,7 @@ as_lineno=${as_lineno-"1ドル"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2ドル">&5 $as_echo_n "checking for 2ドル... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -2230,7 +2238,7 @@ eval ac_res=\$3ドル { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func @@ -2243,7 +2251,7 @@ as_lineno=${as_lineno-"1ドル"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2ドル.3ドル">&5 $as_echo_n "checking for 2ドル.3ドル... ">&6; } -if eval "test \"\${4ドル+set}\"" = set; then : +if eval \${4ドル+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -2287,7 +2295,7 @@ eval ac_res=\$4ドル { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_member @@ -2302,7 +2310,7 @@ as_decl_use=`echo 2ドル|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared">&5 $as_echo_n "checking whether $as_decl_name is declared... ">&6; } -if eval "test \"\${3ドル+set}\"" = set; then : +if eval \${3ドル+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -2333,7 +2341,7 @@ eval ac_res=\$3ドル { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res">&5 $as_echo "$ac_res">&6; } - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_decl cat>config.log <<_aceof @@ -2341,7 +2349,7 @@ running configure, to aid debugging if configure makes a mistake. It was created by python $as_me 3.3, which was -generated by GNU Autoconf 2.67. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was $ 0ドル $@ @@ -2599,7 +2607,7 @@ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error $? "failed to load site script $ac_site_file -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi done @@ -2699,7 +2707,7 @@ set dummy hg; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_HAS_HG+set}" = set; then : +if ${ac_cv_prog_HAS_HG+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$HAS_HG"; then @@ -3248,7 +3256,7 @@ set dummy ${ac_tool_prefix}gcc; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$CC"; then @@ -3288,7 +3296,7 @@ set dummy gcc; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$ac_ct_CC"; then @@ -3341,7 +3349,7 @@ set dummy ${ac_tool_prefix}cc; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$CC"; then @@ -3381,7 +3389,7 @@ set dummy cc; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$CC"; then @@ -3440,7 +3448,7 @@ set dummy $ac_tool_prefix$ac_prog; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_CC+set}" = set; then : +if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$CC"; then @@ -3484,7 +3492,7 @@ set dummy $ac_prog; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : +if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$ac_ct_CC"; then @@ -3539,7 +3547,7 @@ test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error $? "no acceptable C compiler found in \$PATH -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version">&5 @@ -3654,7 +3662,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "C compiler cannot create executables -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes">&5 $as_echo "yes">&6; } @@ -3697,7 +3705,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext">&5 @@ -3756,7 +3764,7 @@ $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi fi fi @@ -3767,7 +3775,7 @@ ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files">&5 $as_echo_n "checking for suffix of object files... ">&6; } -if test "${ac_cv_objext+set}" = set; then : +if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -3808,7 +3816,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi @@ -3818,7 +3826,7 @@ ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler">&5 $as_echo_n "checking whether we are using the GNU C compiler... ">&6; } -if test "${ac_cv_c_compiler_gnu+set}" = set; then : +if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -3855,7 +3863,7 @@ ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g">&5 $as_echo_n "checking whether $CC accepts -g... ">&6; } -if test "${ac_cv_prog_cc_g+set}" = set; then : +if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) ">&6 else ac_save_c_werror_flag=$ac_c_werror_flag @@ -3933,7 +3941,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89">&5 $as_echo_n "checking for $CC option to accept ISO C89... ">&6; } -if test "${ac_cv_prog_cc_c89+set}" = set; then : +if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) ">&6 else ac_cv_prog_cc_c89=no @@ -4068,7 +4076,7 @@ set dummy g++; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_path_CXX+set}" = set; then : +if ${ac_cv_path_CXX+:} false; then : $as_echo_n "(cached) ">&6 else case $CXX in @@ -4109,7 +4117,7 @@ set dummy c++; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_path_CXX+set}" = set; then : +if ${ac_cv_path_CXX+:} false; then : $as_echo_n "(cached) ">&6 else case $CXX in @@ -4160,7 +4168,7 @@ set dummy $ac_prog; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_CXX+set}" = set; then : +if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$CXX"; then @@ -4261,7 +4269,7 @@ CPP= fi if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then : + if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) ">&6 else # Double quotes because CPP needs to be expanded @@ -4377,7 +4385,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c @@ -4389,7 +4397,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e">&5 $as_echo_n "checking for grep that handles long lines and -e... ">&6; } -if test "${ac_cv_path_GREP+set}" = set; then : +if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) ">&6 else if test -z "$GREP"; then @@ -4452,7 +4460,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep">&5 $as_echo_n "checking for egrep... ">&6; } -if test "${ac_cv_path_EGREP+set}" = set; then : +if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) ">&6 else if echo a | $GREP -E '(a|b)'>/dev/null 2>&1 @@ -4519,7 +4527,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files">&5 $as_echo_n "checking for ANSI C header files... ">&6; } -if test "${ac_cv_header_stdc+set}" = set; then : +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -4648,7 +4656,7 @@ ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" -if test "x$ac_cv_header_minix_config_h" = x""yes; then : +if test "x$ac_cv_header_minix_config_h" = xyes; then : MINIX=yes else MINIX= @@ -4670,7 +4678,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__">&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... ">&6; } -if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : +if ${ac_cv_safe_to_define___extensions__+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -4863,7 +4871,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline">&5 $as_echo_n "checking for inline... ">&6; } -if test "${ac_cv_c_inline+set}" = set; then : +if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) ">&6 else ac_cv_c_inline=no @@ -5059,7 +5067,7 @@ set dummy ${ac_tool_prefix}ranlib; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_RANLIB+set}" = set; then : +if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$RANLIB"; then @@ -5099,7 +5107,7 @@ set dummy ranlib; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : +if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$ac_ct_RANLIB"; then @@ -5153,7 +5161,7 @@ set dummy $ac_prog; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_AR+set}" = set; then : +if ${ac_cv_prog_AR+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$AR"; then @@ -5204,7 +5212,7 @@ set dummy python; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_HAS_PYTHON+set}" = set; then : +if ${ac_cv_prog_HAS_PYTHON+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$HAS_PYTHON"; then @@ -5298,7 +5306,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install">&5 $as_echo_n "checking for a BSD-compatible install... ">&6; } if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then : +if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) ">&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -5490,7 +5498,7 @@ ac_save_cc="$CC" CC="$CC -fno-strict-aliasing" save_CFLAGS="$CFLAGS" - if test "${ac_cv_no_strict_aliasing+set}" = set; then : + if ${ac_cv_no_strict_aliasing+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -5556,7 +5564,7 @@ ac_save_cc="$CC" CC="$CC -Wunused-result -Werror" save_CFLAGS="$CFLAGS" - if test "${ac_cv_disable_unused_result_warning+set}" = set; then : + if ${ac_cv_disable_unused_result_warning+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -5783,7 +5791,7 @@ # options before we can check whether -Kpthread improves anything. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options">&5 $as_echo_n "checking whether pthreads are available without options... ">&6; } -if test "${ac_cv_pthread_is_default+set}" = set; then : +if ${ac_cv_pthread_is_default+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -5836,7 +5844,7 @@ # function available. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread">&5 $as_echo_n "checking whether $CC accepts -Kpthread... ">&6; } -if test "${ac_cv_kpthread+set}" = set; then : +if ${ac_cv_kpthread+:} false; then : $as_echo_n "(cached) ">&6 else ac_save_cc="$CC" @@ -5885,7 +5893,7 @@ # function available. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread">&5 $as_echo_n "checking whether $CC accepts -Kthread... ">&6; } -if test "${ac_cv_kthread+set}" = set; then : +if ${ac_cv_kthread+:} false; then : $as_echo_n "(cached) ">&6 else ac_save_cc="$CC" @@ -5934,7 +5942,7 @@ # function available. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread">&5 $as_echo_n "checking whether $CC accepts -pthread... ">&6; } -if test "${ac_cv_thread+set}" = set; then : +if ${ac_cv_thread+:} false; then : $as_echo_n "(cached) ">&6 else ac_save_cc="$CC" @@ -6019,7 +6027,7 @@ # checks for header files { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files">&5 $as_echo_n "checking for ANSI C header files... ">&6; } -if test "${ac_cv_header_stdc+set}" = set; then : +if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -6158,7 +6166,7 @@ as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR">&5 $as_echo_n "checking for $ac_hdr that defines DIR... ">&6; } -if eval "test \"\${$as_ac_Header+set}\"" = set; then : +if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -6198,7 +6206,7 @@ if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir">&5 $as_echo_n "checking for library containing opendir... ">&6; } -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) ">&6 else ac_func_search_save_LIBS=$LIBS @@ -6232,11 +6240,11 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_opendir+set}" = set; then : + if ${ac_cv_search_opendir+:} false; then : break fi done -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no @@ -6255,7 +6263,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir">&5 $as_echo_n "checking for library containing opendir... ">&6; } -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) ">&6 else ac_func_search_save_LIBS=$LIBS @@ -6289,11 +6297,11 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_opendir+set}" = set; then : + if ${ac_cv_search_opendir+:} false; then : break fi done -if test "${ac_cv_search_opendir+set}" = set; then : +if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no @@ -6313,7 +6321,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev">&5 $as_echo_n "checking whether sys/types.h defines makedev... ">&6; } -if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then : +if ${ac_cv_header_sys_types_h_makedev+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -6341,7 +6349,7 @@ if test $ac_cv_header_sys_types_h_makedev = no; then ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then : +if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : $as_echo "#define MAJOR_IN_MKDEV 1">>confdefs.h @@ -6351,7 +6359,7 @@ if test $ac_cv_header_sys_mkdev_h = no; then ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then : +if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : $as_echo "#define MAJOR_IN_SYSMACROS 1">>confdefs.h @@ -6379,7 +6387,7 @@ #endif " -if test "x$ac_cv_header_net_if_h" = x""yes; then : +if test "x$ac_cv_header_net_if_h" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_NET_IF_H 1 _ACEOF @@ -6399,7 +6407,7 @@ #endif " -if test "x$ac_cv_header_term_h" = x""yes; then : +if test "x$ac_cv_header_term_h" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_TERM_H 1 _ACEOF @@ -6421,7 +6429,7 @@ #endif " -if test "x$ac_cv_header_linux_netlink_h" = x""yes; then : +if test "x$ac_cv_header_linux_netlink_h" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_LINUX_NETLINK_H 1 _ACEOF @@ -6577,7 +6585,7 @@ # Type availability checks ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" -if test "x$ac_cv_type_mode_t" = x""yes; then : +if test "x$ac_cv_type_mode_t" = xyes; then : else @@ -6588,7 +6596,7 @@ fi ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = x""yes; then : +if test "x$ac_cv_type_off_t" = xyes; then : else @@ -6599,7 +6607,7 @@ fi ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" -if test "x$ac_cv_type_pid_t" = x""yes; then : +if test "x$ac_cv_type_pid_t" = xyes; then : else @@ -6615,7 +6623,7 @@ _ACEOF ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = x""yes; then : +if test "x$ac_cv_type_size_t" = xyes; then : else @@ -6627,7 +6635,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h">&5 $as_echo_n "checking for uid_t in sys/types.h... ">&6; } -if test "${ac_cv_type_uid_t+set}" = set; then : +if ${ac_cv_type_uid_t+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -6706,7 +6714,7 @@ esac ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize_t" = x""yes; then : +if test "x$ac_cv_type_ssize_t" = xyes; then : $as_echo "#define HAVE_SSIZE_T 1">>confdefs.h @@ -6721,7 +6729,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int">&5 $as_echo_n "checking size of int... ">&6; } -if test "${ac_cv_sizeof_int+set}" = set; then : +if ${ac_cv_sizeof_int+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : @@ -6731,7 +6739,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (int) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_int=0 fi @@ -6754,7 +6762,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long">&5 $as_echo_n "checking size of long... ">&6; } -if test "${ac_cv_sizeof_long+set}" = set; then : +if ${ac_cv_sizeof_long+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : @@ -6764,7 +6772,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (long) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long=0 fi @@ -6787,7 +6795,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *">&5 $as_echo_n "checking size of void *... ">&6; } -if test "${ac_cv_sizeof_void_p+set}" = set; then : +if ${ac_cv_sizeof_void_p+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : @@ -6797,7 +6805,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (void *) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_void_p=0 fi @@ -6820,7 +6828,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short">&5 $as_echo_n "checking size of short... ">&6; } -if test "${ac_cv_sizeof_short+set}" = set; then : +if ${ac_cv_sizeof_short+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : @@ -6830,7 +6838,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (short) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_short=0 fi @@ -6853,7 +6861,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float">&5 $as_echo_n "checking size of float... ">&6; } -if test "${ac_cv_sizeof_float+set}" = set; then : +if ${ac_cv_sizeof_float+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : @@ -6863,7 +6871,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (float) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_float=0 fi @@ -6886,7 +6894,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double">&5 $as_echo_n "checking size of double... ">&6; } -if test "${ac_cv_sizeof_double+set}" = set; then : +if ${ac_cv_sizeof_double+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : @@ -6896,7 +6904,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (double) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_double=0 fi @@ -6919,7 +6927,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t">&5 $as_echo_n "checking size of fpos_t... ">&6; } -if test "${ac_cv_sizeof_fpos_t+set}" = set; then : +if ${ac_cv_sizeof_fpos_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : @@ -6929,7 +6937,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (fpos_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_fpos_t=0 fi @@ -6952,7 +6960,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t">&5 $as_echo_n "checking size of size_t... ">&6; } -if test "${ac_cv_sizeof_size_t+set}" = set; then : +if ${ac_cv_sizeof_size_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : @@ -6962,7 +6970,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (size_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_size_t=0 fi @@ -6985,7 +6993,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t">&5 $as_echo_n "checking size of pid_t... ">&6; } -if test "${ac_cv_sizeof_pid_t+set}" = set; then : +if ${ac_cv_sizeof_pid_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : @@ -6995,7 +7003,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (pid_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_pid_t=0 fi @@ -7045,7 +7053,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long">&5 $as_echo_n "checking size of long long... ">&6; } -if test "${ac_cv_sizeof_long_long+set}" = set; then : +if ${ac_cv_sizeof_long_long+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : @@ -7055,7 +7063,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (long long) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_long=0 fi @@ -7106,7 +7114,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double">&5 $as_echo_n "checking size of long double... ">&6; } -if test "${ac_cv_sizeof_long_double+set}" = set; then : +if ${ac_cv_sizeof_long_double+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : @@ -7116,7 +7124,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (long double) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_long_double=0 fi @@ -7168,7 +7176,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool">&5 $as_echo_n "checking size of _Bool... ">&6; } -if test "${ac_cv_sizeof__Bool+set}" = set; then : +if ${ac_cv_sizeof__Bool+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : @@ -7178,7 +7186,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (_Bool) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof__Bool=0 fi @@ -7204,7 +7212,7 @@ #include #endif " -if test "x$ac_cv_type_uintptr_t" = x""yes; then : +if test "x$ac_cv_type_uintptr_t" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_UINTPTR_T 1 @@ -7216,7 +7224,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t">&5 $as_echo_n "checking size of uintptr_t... ">&6; } -if test "${ac_cv_sizeof_uintptr_t+set}" = set; then : +if ${ac_cv_sizeof_uintptr_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : @@ -7226,7 +7234,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (uintptr_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_uintptr_t=0 fi @@ -7252,7 +7260,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t">&5 $as_echo_n "checking size of off_t... ">&6; } -if test "${ac_cv_sizeof_off_t+set}" = set; then : +if ${ac_cv_sizeof_off_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " @@ -7267,7 +7275,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (off_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_off_t=0 fi @@ -7311,7 +7319,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t">&5 $as_echo_n "checking size of time_t... ">&6; } -if test "${ac_cv_sizeof_time_t+set}" = set; then : +if ${ac_cv_sizeof_time_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " @@ -7329,7 +7337,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (time_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_time_t=0 fi @@ -7386,7 +7394,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t">&5 $as_echo_n "checking size of pthread_t... ">&6; } -if test "${ac_cv_sizeof_pthread_t+set}" = set; then : +if ${ac_cv_sizeof_pthread_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " @@ -7401,7 +7409,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (pthread_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_pthread_t=0 fi @@ -7832,7 +7840,7 @@ # checks for libraries { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile">&5 $as_echo_n "checking for sendfile in -lsendfile... ">&6; } -if test "${ac_cv_lib_sendfile_sendfile+set}" = set; then : +if ${ac_cv_lib_sendfile_sendfile+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -7866,7 +7874,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile">&5 $as_echo "$ac_cv_lib_sendfile_sendfile">&6; } -if test "x$ac_cv_lib_sendfile_sendfile" = x""yes; then : +if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_LIBSENDFILE 1 _ACEOF @@ -7877,7 +7885,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl">&5 $as_echo_n "checking for dlopen in -ldl... ">&6; } -if test "${ac_cv_lib_dl_dlopen+set}" = set; then : +if ${ac_cv_lib_dl_dlopen+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -7911,7 +7919,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen">&5 $as_echo "$ac_cv_lib_dl_dlopen">&6; } -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : +if test "x$ac_cv_lib_dl_dlopen" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_LIBDL 1 _ACEOF @@ -7922,7 +7930,7 @@ # Dynamic linking for SunOS/Solaris and SYSV { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld">&5 $as_echo_n "checking for shl_load in -ldld... ">&6; } -if test "${ac_cv_lib_dld_shl_load+set}" = set; then : +if ${ac_cv_lib_dld_shl_load+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -7956,7 +7964,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load">&5 $as_echo "$ac_cv_lib_dld_shl_load">&6; } -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : +if test "x$ac_cv_lib_dld_shl_load" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_LIBDLD 1 _ACEOF @@ -7970,7 +7978,7 @@ if test "$with_threads" = "yes" -o -z "$with_threads"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init">&5 $as_echo_n "checking for library containing sem_init... ">&6; } -if test "${ac_cv_search_sem_init+set}" = set; then : +if ${ac_cv_search_sem_init+:} false; then : $as_echo_n "(cached) ">&6 else ac_func_search_save_LIBS=$LIBS @@ -8004,11 +8012,11 @@ fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext - if test "${ac_cv_search_sem_init+set}" = set; then : + if ${ac_cv_search_sem_init+:} false; then : break fi done -if test "${ac_cv_search_sem_init+set}" = set; then : +if ${ac_cv_search_sem_init+:} false; then : else ac_cv_search_sem_init=no @@ -8031,7 +8039,7 @@ # check if we need libintl for locale functions { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl">&5 $as_echo_n "checking for textdomain in -lintl... ">&6; } -if test "${ac_cv_lib_intl_textdomain+set}" = set; then : +if ${ac_cv_lib_intl_textdomain+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8065,7 +8073,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain">&5 $as_echo "$ac_cv_lib_intl_textdomain">&6; } -if test "x$ac_cv_lib_intl_textdomain" = x""yes; then : +if test "x$ac_cv_lib_intl_textdomain" = xyes; then : $as_echo "#define WITH_LIBINTL 1">>confdefs.h @@ -8112,7 +8120,7 @@ # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl">&5 $as_echo_n "checking for t_open in -lnsl... ">&6; } -if test "${ac_cv_lib_nsl_t_open+set}" = set; then : +if ${ac_cv_lib_nsl_t_open+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8146,13 +8154,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open">&5 $as_echo "$ac_cv_lib_nsl_t_open">&6; } -if test "x$ac_cv_lib_nsl_t_open" = x""yes; then : +if test "x$ac_cv_lib_nsl_t_open" = xyes; then : LIBS="-lnsl $LIBS" fi # SVR4 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket">&5 $as_echo_n "checking for socket in -lsocket... ">&6; } -if test "${ac_cv_lib_socket_socket+set}" = set; then : +if ${ac_cv_lib_socket_socket+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8186,7 +8194,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket">&5 $as_echo "$ac_cv_lib_socket_socket">&6; } -if test "x$ac_cv_lib_socket_socket" = x""yes; then : +if test "x$ac_cv_lib_socket_socket" = xyes; then : LIBS="-lsocket $LIBS" fi # SVR4 sockets @@ -8212,7 +8220,7 @@ set dummy ${ac_tool_prefix}pkg-config; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : +if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) ">&6 else case $PKG_CONFIG in @@ -8255,7 +8263,7 @@ set dummy pkg-config; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : +if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) ">&6 else case $ac_pt_PKG_CONFIG in @@ -8551,7 +8559,7 @@ LIBS=$_libs ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" -if test "x$ac_cv_func_pthread_detach" = x""yes; then : +if test "x$ac_cv_func_pthread_detach" = xyes; then : $as_echo "#define WITH_THREAD 1">>confdefs.h posix_threads=yes @@ -8560,7 +8568,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads">&5 $as_echo_n "checking for pthread_create in -lpthreads... ">&6; } -if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then : +if ${ac_cv_lib_pthreads_pthread_create+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8594,7 +8602,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create">&5 $as_echo "$ac_cv_lib_pthreads_pthread_create">&6; } -if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then : +if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : $as_echo "#define WITH_THREAD 1">>confdefs.h posix_threads=yes @@ -8604,7 +8612,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r">&5 $as_echo_n "checking for pthread_create in -lc_r... ">&6; } -if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then : +if ${ac_cv_lib_c_r_pthread_create+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8638,7 +8646,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create">&5 $as_echo "$ac_cv_lib_c_r_pthread_create">&6; } -if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then : +if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : $as_echo "#define WITH_THREAD 1">>confdefs.h posix_threads=yes @@ -8648,7 +8656,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread">&5 $as_echo_n "checking for __pthread_create_system in -lpthread... ">&6; } -if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then : +if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8682,7 +8690,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system">&5 $as_echo "$ac_cv_lib_pthread___pthread_create_system">&6; } -if test "x$ac_cv_lib_pthread___pthread_create_system" = x""yes; then : +if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : $as_echo "#define WITH_THREAD 1">>confdefs.h posix_threads=yes @@ -8692,7 +8700,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma">&5 $as_echo_n "checking for pthread_create in -lcma... ">&6; } -if test "${ac_cv_lib_cma_pthread_create+set}" = set; then : +if ${ac_cv_lib_cma_pthread_create+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8726,7 +8734,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create">&5 $as_echo "$ac_cv_lib_cma_pthread_create">&6; } -if test "x$ac_cv_lib_cma_pthread_create" = x""yes; then : +if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : $as_echo "#define WITH_THREAD 1">>confdefs.h posix_threads=yes @@ -8752,7 +8760,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc">&5 $as_echo_n "checking for usconfig in -lmpc... ">&6; } -if test "${ac_cv_lib_mpc_usconfig+set}" = set; then : +if ${ac_cv_lib_mpc_usconfig+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8786,7 +8794,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig">&5 $as_echo "$ac_cv_lib_mpc_usconfig">&6; } -if test "x$ac_cv_lib_mpc_usconfig" = x""yes; then : +if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : $as_echo "#define WITH_THREAD 1">>confdefs.h LIBS="$LIBS -lmpc" @@ -8798,7 +8806,7 @@ if test "$posix_threads" != "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread">&5 $as_echo_n "checking for thr_create in -lthread... ">&6; } -if test "${ac_cv_lib_thread_thr_create+set}" = set; then : +if ${ac_cv_lib_thread_thr_create+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -8832,7 +8840,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create">&5 $as_echo "$ac_cv_lib_thread_thr_create">&6; } -if test "x$ac_cv_lib_thread_thr_create" = x""yes; then : +if test "x$ac_cv_lib_thread_thr_create" = xyes; then : $as_echo "#define WITH_THREAD 1">>confdefs.h LIBS="$LIBS -lthread" @@ -8868,7 +8876,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported">&5 $as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... ">&6; } - if test "${ac_cv_pthread_system_supported+set}" = set; then : + if ${ac_cv_pthread_system_supported+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -8911,7 +8919,7 @@ for ac_func in pthread_sigmask do : ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" -if test "x$ac_cv_func_pthread_sigmask" = x""yes; then : +if test "x$ac_cv_func_pthread_sigmask" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_PTHREAD_SIGMASK 1 _ACEOF @@ -9303,7 +9311,7 @@ $as_echo "$with_valgrind">&6; } if test "$with_valgrind" != no; then ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" -if test "x$ac_cv_header_valgrind_valgrind_h" = x""yes; then : +if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : $as_echo "#define WITH_VALGRIND 1">>confdefs.h @@ -9325,7 +9333,7 @@ for ac_func in dlopen do : ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = x""yes; then : +if test "x$ac_cv_func_dlopen" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_DLOPEN 1 _ACEOF @@ -9392,7 +9400,8 @@ getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ if_nameindex \ - initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mbrtowc mkdirat mkfifo \ + initgroups kill killpg lchmod lchown lockf linkat lstat lutimes memrchr \ + mbrtowc mkdirat mkfifo \ mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ posix_fallocate posix_fadvise pread \ pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath renameat \ @@ -9659,7 +9668,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration">&5 $as_echo_n "checking for flock declaration... ">&6; } -if test "${ac_cv_flock_decl+set}" = set; then : +if ${ac_cv_flock_decl+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -9689,7 +9698,7 @@ for ac_func in flock do : ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" -if test "x$ac_cv_func_flock" = x""yes; then : +if test "x$ac_cv_func_flock" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_FLOCK 1 _ACEOF @@ -9697,7 +9706,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd">&5 $as_echo_n "checking for flock in -lbsd... ">&6; } -if test "${ac_cv_lib_bsd_flock+set}" = set; then : +if ${ac_cv_lib_bsd_flock+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -9731,7 +9740,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock">&5 $as_echo "$ac_cv_lib_bsd_flock">&6; } -if test "x$ac_cv_lib_bsd_flock" = x""yes; then : +if test "x$ac_cv_lib_bsd_flock" = xyes; then : $as_echo "#define HAVE_FLOCK 1">>confdefs.h @@ -9808,7 +9817,7 @@ set dummy $ac_prog; ac_word=2ドル { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word">&5 $as_echo_n "checking for $ac_word... ">&6; } -if test "${ac_cv_prog_TRUE+set}" = set; then : +if ${ac_cv_prog_TRUE+:} false; then : $as_echo_n "(cached) ">&6 else if test -n "$TRUE"; then @@ -9848,7 +9857,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc">&5 $as_echo_n "checking for inet_aton in -lc... ">&6; } -if test "${ac_cv_lib_c_inet_aton+set}" = set; then : +if ${ac_cv_lib_c_inet_aton+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -9882,12 +9891,12 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton">&5 $as_echo "$ac_cv_lib_c_inet_aton">&6; } -if test "x$ac_cv_lib_c_inet_aton" = x""yes; then : +if test "x$ac_cv_lib_c_inet_aton" = xyes; then : $ac_cv_prog_TRUE else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv">&5 $as_echo_n "checking for inet_aton in -lresolv... ">&6; } -if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then : +if ${ac_cv_lib_resolv_inet_aton+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -9921,7 +9930,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton">&5 $as_echo "$ac_cv_lib_resolv_inet_aton">&6; } -if test "x$ac_cv_lib_resolv_inet_aton" = x""yes; then : +if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_LIBRESOLV 1 _ACEOF @@ -9938,7 +9947,7 @@ # exit Python { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags">&5 $as_echo_n "checking for chflags... ">&6; } -if test "${ac_cv_have_chflags+set}" = set; then : +if ${ac_cv_have_chflags+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -9972,7 +9981,7 @@ $as_echo "$ac_cv_have_chflags">&6; } if test "$ac_cv_have_chflags" = cross ; then ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" -if test "x$ac_cv_func_chflags" = x""yes; then : +if test "x$ac_cv_func_chflags" = xyes; then : ac_cv_have_chflags="yes" else ac_cv_have_chflags="no" @@ -9987,7 +9996,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags">&5 $as_echo_n "checking for lchflags... ">&6; } -if test "${ac_cv_have_lchflags+set}" = set; then : +if ${ac_cv_have_lchflags+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -10021,7 +10030,7 @@ $as_echo "$ac_cv_have_lchflags">&6; } if test "$ac_cv_have_lchflags" = cross ; then ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" -if test "x$ac_cv_func_lchflags" = x""yes; then : +if test "x$ac_cv_func_lchflags" = xyes; then : ac_cv_have_lchflags="yes" else ac_cv_have_lchflags="no" @@ -10045,7 +10054,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz">&5 $as_echo_n "checking for inflateCopy in -lz... ">&6; } -if test "${ac_cv_lib_z_inflateCopy+set}" = set; then : +if ${ac_cv_lib_z_inflateCopy+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -10079,7 +10088,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy">&5 $as_echo "$ac_cv_lib_z_inflateCopy">&6; } -if test "x$ac_cv_lib_z_inflateCopy" = x""yes; then : +if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : $as_echo "#define HAVE_ZLIB_COPY 1">>confdefs.h @@ -10222,7 +10231,7 @@ for ac_func in openpty do : ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" -if test "x$ac_cv_func_openpty" = x""yes; then : +if test "x$ac_cv_func_openpty" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_OPENPTY 1 _ACEOF @@ -10230,7 +10239,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil">&5 $as_echo_n "checking for openpty in -lutil... ">&6; } -if test "${ac_cv_lib_util_openpty+set}" = set; then : +if ${ac_cv_lib_util_openpty+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -10264,13 +10273,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty">&5 $as_echo "$ac_cv_lib_util_openpty">&6; } -if test "x$ac_cv_lib_util_openpty" = x""yes; then : +if test "x$ac_cv_lib_util_openpty" = xyes; then : $as_echo "#define HAVE_OPENPTY 1">>confdefs.h LIBS="$LIBS -lutil" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd">&5 $as_echo_n "checking for openpty in -lbsd... ">&6; } -if test "${ac_cv_lib_bsd_openpty+set}" = set; then : +if ${ac_cv_lib_bsd_openpty+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -10304,7 +10313,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty">&5 $as_echo "$ac_cv_lib_bsd_openpty">&6; } -if test "x$ac_cv_lib_bsd_openpty" = x""yes; then : +if test "x$ac_cv_lib_bsd_openpty" = xyes; then : $as_echo "#define HAVE_OPENPTY 1">>confdefs.h LIBS="$LIBS -lbsd" fi @@ -10319,7 +10328,7 @@ for ac_func in forkpty do : ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" -if test "x$ac_cv_func_forkpty" = x""yes; then : +if test "x$ac_cv_func_forkpty" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_FORKPTY 1 _ACEOF @@ -10327,7 +10336,7 @@ else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil">&5 $as_echo_n "checking for forkpty in -lutil... ">&6; } -if test "${ac_cv_lib_util_forkpty+set}" = set; then : +if ${ac_cv_lib_util_forkpty+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -10361,13 +10370,13 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty">&5 $as_echo "$ac_cv_lib_util_forkpty">&6; } -if test "x$ac_cv_lib_util_forkpty" = x""yes; then : +if test "x$ac_cv_lib_util_forkpty" = xyes; then : $as_echo "#define HAVE_FORKPTY 1">>confdefs.h LIBS="$LIBS -lutil" else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd">&5 $as_echo_n "checking for forkpty in -lbsd... ">&6; } -if test "${ac_cv_lib_bsd_forkpty+set}" = set; then : +if ${ac_cv_lib_bsd_forkpty+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -10401,7 +10410,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty">&5 $as_echo "$ac_cv_lib_bsd_forkpty">&6; } -if test "x$ac_cv_lib_bsd_forkpty" = x""yes; then : +if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : $as_echo "#define HAVE_FORKPTY 1">>confdefs.h LIBS="$LIBS -lbsd" fi @@ -10418,7 +10427,7 @@ for ac_func in memmove do : ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" -if test "x$ac_cv_func_memmove" = x""yes; then : +if test "x$ac_cv_func_memmove" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_MEMMOVE 1 _ACEOF @@ -10442,7 +10451,7 @@ ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" -if test "x$ac_cv_func_dup2" = x""yes; then : +if test "x$ac_cv_func_dup2" = xyes; then : $as_echo "#define HAVE_DUP2 1">>confdefs.h else @@ -10455,7 +10464,7 @@ fi ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" -if test "x$ac_cv_func_getcwd" = x""yes; then : +if test "x$ac_cv_func_getcwd" = xyes; then : $as_echo "#define HAVE_GETCWD 1">>confdefs.h else @@ -10468,7 +10477,7 @@ fi ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" -if test "x$ac_cv_func_strdup" = x""yes; then : +if test "x$ac_cv_func_strdup" = xyes; then : $as_echo "#define HAVE_STRDUP 1">>confdefs.h else @@ -10484,7 +10493,7 @@ for ac_func in getpgrp do : ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" -if test "x$ac_cv_func_getpgrp" = x""yes; then : +if test "x$ac_cv_func_getpgrp" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_GETPGRP 1 _ACEOF @@ -10512,7 +10521,7 @@ for ac_func in setpgrp do : ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" -if test "x$ac_cv_func_setpgrp" = x""yes; then : +if test "x$ac_cv_func_setpgrp" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_SETPGRP 1 _ACEOF @@ -10540,7 +10549,7 @@ for ac_func in gettimeofday do : ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" -if test "x$ac_cv_func_gettimeofday" = x""yes; then : +if test "x$ac_cv_func_gettimeofday" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_GETTIMEOFDAY 1 _ACEOF @@ -10569,6 +10578,125 @@ done +for ac_func in clock_gettime +do : + ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" +if test "x$ac_cv_func_clock_gettime" = xyes; then : + cat>>confdefs.h <<_aceof +#define HAVE_CLOCK_GETTIME 1 +_ACEOF + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt">&5 +$as_echo_n "checking for clock_gettime in -lrt... ">&6; } +if ${ac_cv_lib_rt_clock_gettime+:} false; then : + $as_echo_n "(cached) ">&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_aceof>conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char clock_gettime (); +int +main () +{ +return clock_gettime (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_clock_gettime=yes +else + ac_cv_lib_rt_clock_gettime=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime">&5 +$as_echo "$ac_cv_lib_rt_clock_gettime">&6; } +if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : + + $as_echo "#define HAVE_CLOCK_GETTIME 1">>confdefs.h + + +$as_echo "#define TIMEMODULE_LIB rt">>confdefs.h + + +fi + + +fi +done + + +for ac_func in clock_getres +do : + ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" +if test "x$ac_cv_func_clock_getres" = xyes; then : + cat>>confdefs.h <<_aceof +#define HAVE_CLOCK_GETRES 1 +_ACEOF + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt">&5 +$as_echo_n "checking for clock_getres in -lrt... ">&6; } +if ${ac_cv_lib_rt_clock_getres+:} false; then : + $as_echo_n "(cached) ">&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_aceof>conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char clock_getres (); +int +main () +{ +return clock_getres (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_clock_getres=yes +else + ac_cv_lib_rt_clock_getres=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres">&5 +$as_echo "$ac_cv_lib_rt_clock_getres">&6; } +if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : + + $as_echo "#define HAVE_CLOCK_GETRES 1">>confdefs.h + + +fi + + +fi +done + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for major">&5 $as_echo_n "checking for major... ">&6; } cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -10642,7 +10770,7 @@ then { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug">&5 $as_echo_n "checking getaddrinfo bug... ">&6; } - if test "${ac_cv_buggy_getaddrinfo+set}" = set; then : + if ${ac_cv_buggy_getaddrinfo+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -10771,7 +10899,7 @@ for ac_func in getnameinfo do : ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" -if test "x$ac_cv_func_getnameinfo" = x""yes; then : +if test "x$ac_cv_func_getnameinfo" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_GETNAMEINFO 1 _ACEOF @@ -10783,7 +10911,7 @@ # checks for structures { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included">&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... ">&6; } -if test "${ac_cv_header_time+set}" = set; then : +if ${ac_cv_header_time+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -10818,7 +10946,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h">&5 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... ">&6; } -if test "${ac_cv_struct_tm+set}" = set; then : +if ${ac_cv_struct_tm+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -10855,7 +10983,7 @@ #include <$ac_cv_struct_tm> " -if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_TM_TM_ZONE 1 @@ -10871,7 +10999,7 @@ else ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include " -if test "x$ac_cv_have_decl_tzname" = x""yes; then : +if test "x$ac_cv_have_decl_tzname" = xyes; then : ac_have_decl=1 else ac_have_decl=0 @@ -10883,7 +11011,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname">&5 $as_echo_n "checking for tzname... ">&6; } -if test "${ac_cv_var_tzname+set}" = set; then : +if ${ac_cv_var_tzname+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -10919,7 +11047,7 @@ fi ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_STAT_ST_RDEV 1 @@ -10929,7 +11057,7 @@ fi ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 @@ -10939,7 +11067,7 @@ fi ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_flags" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_STAT_ST_FLAGS 1 @@ -10949,7 +11077,7 @@ fi ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_gen" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_STAT_ST_GEN 1 @@ -10959,7 +11087,7 @@ fi ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_birthtime" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 @@ -10969,7 +11097,7 @@ fi ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then : +if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_STAT_ST_BLOCKS 1 @@ -10991,7 +11119,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone">&5 $as_echo_n "checking for time.h that defines altzone... ">&6; } -if test "${ac_cv_header_time_altzone+set}" = set; then : +if ${ac_cv_header_time_altzone+:} false; then : $as_echo_n "(cached) ">&6 else @@ -11055,7 +11183,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo">&5 $as_echo_n "checking for addrinfo... ">&6; } -if test "${ac_cv_struct_addrinfo+set}" = set; then : +if ${ac_cv_struct_addrinfo+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -11087,7 +11215,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage">&5 $as_echo_n "checking for sockaddr_storage... ">&6; } -if test "${ac_cv_struct_sockaddr_storage+set}" = set; then : +if ${ac_cv_struct_sockaddr_storage+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -11123,7 +11251,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned">&5 $as_echo_n "checking whether char is unsigned... ">&6; } -if test "${ac_cv_c_char_unsigned+set}" = set; then : +if ${ac_cv_c_char_unsigned+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -11155,7 +11283,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const">&5 $as_echo_n "checking for an ANSI C-conforming const... ">&6; } -if test "${ac_cv_c_const+set}" = set; then : +if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -11443,7 +11571,7 @@ ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" -if test "x$ac_cv_func_gethostbyname_r" = x""yes; then : +if test "x$ac_cv_func_gethostbyname_r" = xyes; then : $as_echo "#define HAVE_GETHOSTBYNAME_R 1">>confdefs.h @@ -11574,7 +11702,7 @@ for ac_func in gethostbyname do : ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" -if test "x$ac_cv_func_gethostbyname" = x""yes; then : +if test "x$ac_cv_func_gethostbyname" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_GETHOSTBYNAME 1 _ACEOF @@ -11596,12 +11724,12 @@ # Linux requires this for correct f.p. operations ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" -if test "x$ac_cv_func___fpu_control" = x""yes; then : +if test "x$ac_cv_func___fpu_control" = xyes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee">&5 $as_echo_n "checking for __fpu_control in -lieee... ">&6; } -if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then : +if ${ac_cv_lib_ieee___fpu_control+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -11635,7 +11763,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control">&5 $as_echo "$ac_cv_lib_ieee___fpu_control">&6; } -if test "x$ac_cv_lib_ieee___fpu_control" = x""yes; then : +if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_LIBIEEE 1 _ACEOF @@ -11729,7 +11857,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64">&5 $as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... ">&6; } -if test "${ac_cv_little_endian_double+set}" = set; then : +if ${ac_cv_little_endian_double+:} false; then : $as_echo_n "(cached) ">&6 else @@ -11771,7 +11899,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64">&5 $as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... ">&6; } -if test "${ac_cv_big_endian_double+set}" = set; then : +if ${ac_cv_big_endian_double+:} false; then : $as_echo_n "(cached) ">&6 else @@ -11817,7 +11945,7 @@ # conversions work. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64">&5 $as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... ">&6; } -if test "${ac_cv_mixed_endian_double+set}" = set; then : +if ${ac_cv_mixed_endian_double+:} false; then : $as_echo_n "(cached) ">&6 else @@ -11987,7 +12115,7 @@ ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include " -if test "x$ac_cv_have_decl_isinf" = x""yes; then : +if test "x$ac_cv_have_decl_isinf" = xyes; then : ac_have_decl=1 else ac_have_decl=0 @@ -11998,7 +12126,7 @@ _ACEOF ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include " -if test "x$ac_cv_have_decl_isnan" = x""yes; then : +if test "x$ac_cv_have_decl_isnan" = xyes; then : ac_have_decl=1 else ac_have_decl=0 @@ -12009,7 +12137,7 @@ _ACEOF ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include " -if test "x$ac_cv_have_decl_isfinite" = x""yes; then : +if test "x$ac_cv_have_decl_isfinite" = xyes; then : ac_have_decl=1 else ac_have_decl=0 @@ -12024,7 +12152,7 @@ # -0. on some architectures. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero">&5 $as_echo_n "checking whether tanh preserves the sign of zero... ">&6; } -if test "${ac_cv_tanh_preserves_zero_sign+set}" = set; then : +if ${ac_cv_tanh_preserves_zero_sign+:} false; then : $as_echo_n "(cached) ">&6 else @@ -12072,7 +12200,7 @@ # -0. See issue #9920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether log1p drops the sign of negative zero">&5 $as_echo_n "checking whether log1p drops the sign of negative zero... ">&6; } - if test "${ac_cv_log1p_drops_zero_sign+set}" = set; then : + if ${ac_cv_log1p_drops_zero_sign+:} false; then : $as_echo_n "(cached) ">&6 else @@ -12124,7 +12252,7 @@ # sem_open results in a 'Signal 12' error. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled">&5 $as_echo_n "checking whether POSIX semaphores are enabled... ">&6; } -if test "${ac_cv_posix_semaphores_enabled+set}" = set; then : +if ${ac_cv_posix_semaphores_enabled+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -12175,7 +12303,7 @@ # Multiprocessing check for broken sem_getvalue { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue">&5 $as_echo_n "checking for broken sem_getvalue... ">&6; } -if test "${ac_cv_broken_sem_getvalue+set}" = set; then : +if ${ac_cv_broken_sem_getvalue+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -12240,7 +12368,7 @@ 15|30) ;; *) - as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; + as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits">&5 $as_echo "$enable_big_digits">&6; } @@ -12258,7 +12386,7 @@ # check for wchar.h ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" -if test "x$ac_cv_header_wchar_h" = x""yes; then : +if test "x$ac_cv_header_wchar_h" = xyes; then : $as_echo "#define HAVE_WCHAR_H 1">>confdefs.h @@ -12281,7 +12409,7 @@ # This bug is HP SR number 8606223364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t">&5 $as_echo_n "checking size of wchar_t... ">&6; } -if test "${ac_cv_sizeof_wchar_t+set}" = set; then : +if ${ac_cv_sizeof_wchar_t+:} false; then : $as_echo_n "(cached) ">&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include @@ -12292,7 +12420,7 @@ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':">&5 $as_echo "$as_me: error: in \`$ac_pwd':">&2;} as_fn_error 77 "cannot compute sizeof (wchar_t) -See \`config.log' for more details" "$LINENO" 5 ; } +See \`config.log' for more details" "$LINENO" 5; } else ac_cv_sizeof_wchar_t=0 fi @@ -12347,7 +12475,7 @@ # check whether wchar_t is signed or not { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed">&5 $as_echo_n "checking whether wchar_t is signed... ">&6; } - if test "${ac_cv_wchar_t_signed+set}" = set; then : + if ${ac_cv_wchar_t_signed+:} false; then : $as_echo_n "(cached) ">&6 else @@ -12397,7 +12525,7 @@ # check for endianness { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian">&5 $as_echo_n "checking whether byte ordering is bigendian... ">&6; } -if test "${ac_cv_c_bigendian+set}" = set; then : +if ${ac_cv_c_bigendian+:} false; then : $as_echo_n "(cached) ">&6 else ac_cv_c_bigendian=unknown @@ -12616,7 +12744,7 @@ ;; #( *) as_fn_error $? "unknown endianness - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac @@ -12688,7 +12816,7 @@ # or fills with zeros (like the Cray J90, according to Tim Peters). { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit">&5 $as_echo_n "checking whether right shift extends the sign bit... ">&6; } -if test "${ac_cv_rshift_extends_sign+set}" = set; then : +if ${ac_cv_rshift_extends_sign+:} false; then : $as_echo_n "(cached) ">&6 else @@ -12727,7 +12855,7 @@ # check for getc_unlocked and related locking functions { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends">&5 $as_echo_n "checking for getc_unlocked() and friends... ">&6; } -if test "${ac_cv_have_getc_unlocked+set}" = set; then : +if ${ac_cv_have_getc_unlocked+:} false; then : $as_echo_n "(cached) ">&6 else @@ -12825,7 +12953,7 @@ # check for readline 2.1 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline">&5 $as_echo_n "checking for rl_callback_handler_install in -lreadline... ">&6; } -if test "${ac_cv_lib_readline_rl_callback_handler_install+set}" = set; then : +if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -12859,7 +12987,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install">&5 $as_echo "$ac_cv_lib_readline_rl_callback_handler_install">&6; } -if test "x$ac_cv_lib_readline_rl_callback_handler_install" = x""yes; then : +if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : $as_echo "#define HAVE_RL_CALLBACK 1">>confdefs.h @@ -12911,7 +13039,7 @@ # check for readline 4.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline">&5 $as_echo_n "checking for rl_pre_input_hook in -lreadline... ">&6; } -if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then : +if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -12945,7 +13073,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook">&5 $as_echo "$ac_cv_lib_readline_rl_pre_input_hook">&6; } -if test "x$ac_cv_lib_readline_rl_pre_input_hook" = x""yes; then : +if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : $as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1">>confdefs.h @@ -12955,7 +13083,7 @@ # also in 4.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline">&5 $as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... ">&6; } -if test "${ac_cv_lib_readline_rl_completion_display_matches_hook+set}" = set; then : +if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -12989,7 +13117,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook">&5 $as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook">&6; } -if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = x""yes; then : +if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : $as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1">>confdefs.h @@ -12999,7 +13127,7 @@ # check for readline 4.2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline">&5 $as_echo_n "checking for rl_completion_matches in -lreadline... ">&6; } -if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then : +if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : $as_echo_n "(cached) ">&6 else ac_check_lib_save_LIBS=$LIBS @@ -13033,7 +13161,7 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches">&5 $as_echo "$ac_cv_lib_readline_rl_completion_matches">&6; } -if test "x$ac_cv_lib_readline_rl_completion_matches" = x""yes; then : +if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1">>confdefs.h @@ -13074,7 +13202,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()">&5 $as_echo_n "checking for broken nice()... ">&6; } -if test "${ac_cv_broken_nice+set}" = set; then : +if ${ac_cv_broken_nice+:} false; then : $as_echo_n "(cached) ">&6 else @@ -13115,7 +13243,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()">&5 $as_echo_n "checking for broken poll()... ">&6; } -if test "${ac_cv_broken_poll+set}" = set; then : +if ${ac_cv_broken_poll+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -13170,7 +13298,7 @@ #include <$ac_cv_struct_tm> " -if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : +if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : cat>>confdefs.h <<_aceof #define HAVE_STRUCT_TM_TM_ZONE 1 @@ -13186,7 +13314,7 @@ else ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include " -if test "x$ac_cv_have_decl_tzname" = x""yes; then : +if test "x$ac_cv_have_decl_tzname" = xyes; then : ac_have_decl=1 else ac_have_decl=0 @@ -13198,7 +13326,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname">&5 $as_echo_n "checking for tzname... ">&6; } -if test "${ac_cv_var_tzname+set}" = set; then : +if ${ac_cv_var_tzname+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -13237,7 +13365,7 @@ # check tzset(3) exists and works like we expect it to { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()">&5 $as_echo_n "checking for working tzset()... ">&6; } -if test "${ac_cv_working_tzset+set}" = set; then : +if ${ac_cv_working_tzset+:} false; then : $as_echo_n "(cached) ">&6 else @@ -13334,7 +13462,7 @@ # Look for subsecond timestamps in struct stat { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat">&5 $as_echo_n "checking for tv_nsec in struct stat... ">&6; } -if test "${ac_cv_stat_tv_nsec+set}" = set; then : +if ${ac_cv_stat_tv_nsec+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -13371,7 +13499,7 @@ # Look for BSD style subsecond timestamps in struct stat { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat">&5 $as_echo_n "checking for tv_nsec2 in struct stat... ">&6; } -if test "${ac_cv_stat_tv_nsec2+set}" = set; then : +if ${ac_cv_stat_tv_nsec2+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -13408,7 +13536,7 @@ # On HP/UX 11.0, mvwdelch is a block with a return statement { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression">&5 $as_echo_n "checking whether mvwdelch is an expression... ">&6; } -if test "${ac_cv_mvwdelch_is_expression+set}" = set; then : +if ${ac_cv_mvwdelch_is_expression+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -13445,7 +13573,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags">&5 $as_echo_n "checking whether WINDOW has _flags... ">&6; } -if test "${ac_cv_window_has_flags+set}" = set; then : +if ${ac_cv_window_has_flags+:} false; then : $as_echo_n "(cached) ">&6 else cat confdefs.h - <<_aceof>conftest.$ac_ext @@ -13593,7 +13721,7 @@ then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support">&5 $as_echo_n "checking for %lld and %llu printf() format support... ">&6; } - if test "${ac_cv_have_long_long_format+set}" = set; then : + if ${ac_cv_have_long_long_format+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -13663,7 +13791,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support">&5 $as_echo_n "checking for %zd printf() format support... ">&6; } -if test "${ac_cv_have_size_t_format+set}" = set; then : +if ${ac_cv_have_size_t_format+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -13736,7 +13864,7 @@ #endif " -if test "x$ac_cv_type_socklen_t" = x""yes; then : +if test "x$ac_cv_type_socklen_t" = xyes; then : else @@ -13747,7 +13875,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs">&5 $as_echo_n "checking for broken mbstowcs... ">&6; } -if test "${ac_cv_broken_mbstowcs+set}" = set; then : +if ${ac_cv_broken_mbstowcs+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -13787,7 +13915,7 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos">&5 $as_echo_n "checking whether $CC supports computed gotos... ">&6; } -if test "${ac_cv_computed_gotos+set}" = set; then : +if ${ac_cv_computed_gotos+:} false; then : $as_echo_n "(cached) ">&6 else if test "$cross_compiling" = yes; then : @@ -13954,10 +14082,21 @@ :end'>>confcache if diff "$cache_file" confcache>/dev/null 2>&1; then :; else if test -w "$cache_file"; then - test "x$cache_file" != "x/dev/null" && + if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file">&5 $as_echo "$as_me: updating cache $cache_file">&6;} - cat confcache>$cache_file + if test ! -f "$cache_file" || test -h "$cache_file"; then + cat confcache>"$cache_file" + else + case $cache_file in #( + */* | ?:*) + mv -f confcache "$cache_file"$$ && + mv -f "$cache_file"$$ "$cache_file" ;; #( + *) + mv -f confcache "$cache_file" ;; + esac + fi + fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file">&5 $as_echo "$as_me: not updating unwritable cache $cache_file">&6;} @@ -13990,7 +14129,7 @@ -: ${CONFIG_STATUS=./config.status} +: "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" @@ -14091,6 +14230,7 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. +as_myself= case 0ドル in #(( *[\\/]* ) as_myself=0ドル ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -14398,7 +14538,7 @@ # values after options handling. ac_log=" This file was extended by python $as_me 3.3, which was -generated by GNU Autoconf 2.67. Invocation command line was +generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -14460,7 +14600,7 @@ ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ python config.status 3.3 -configured by 0,ドル generated by GNU Autoconf 2.67, +configured by 0,ドル generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\" Copyright (C) 2010 Free Software Foundation, Inc. @@ -14591,7 +14731,7 @@ "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; - *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; + *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done @@ -14613,9 +14753,10 @@ # after its creation but before its name has been assigned to `$tmp'. $debug || { - tmp= + tmp= ac_tmp= trap 'exit_status=$? - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status + : "${ac_tmp:=$tmp}" + { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } @@ -14623,12 +14764,13 @@ { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" + test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 +ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. @@ -14650,7 +14792,7 @@ ac_cs_awk_cr=$ac_cr fi -echo 'BEGIN {'>"$tmp/subs1.awk" && +echo 'BEGIN {'>"$ac_tmp/subs1.awk" && _ACEOF @@ -14678,7 +14820,7 @@ rm -f conf$$subs.sh cat>>$CONFIG_STATUS <<_aceof || ac_write_fail=1 -cat>>"\$tmp/subs1.awk" <<\\_acawk && +cat>>"\$ac_tmp/subs1.awk" <<\\_acawk && _ACEOF sed -n ' h @@ -14726,7 +14868,7 @@ rm -f conf$$subs.awk cat>>$CONFIG_STATUS <<_aceof || ac_write_fail=1 _ACAWK -cat>>"\$tmp/subs1.awk" <<_acawk && +cat>>"\$ac_tmp/subs1.awk" <<_acawk && for (key in S) S_is_set[key] = 1 FS = "" @@ -14758,7 +14900,7 @@ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat -fi < "$tmp/subs1.awk"> "$tmp/subs.awk" \ +fi < "$ac_tmp/subs1.awk"> "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF @@ -14792,7 +14934,7 @@ # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then -cat>"$tmp/defines.awk" <<\_acawk || +cat>"$ac_tmp/defines.awk" <<\_acawk || BEGIN { _ACEOF @@ -14804,8 +14946,8 @@ # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do - ac_t=`sed -n "/$ac_delim/p" confdefs.h` - if test -z "$ac_t"; then + ac_tt=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 @@ -14906,7 +15048,7 @@ esac case $ac_mode$ac_tag in :[FHL]*:*);; - :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; + :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac @@ -14925,7 +15067,7 @@ for ac_f do case $ac_f in - -) ac_f="$tmp/stdin";; + -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. @@ -14934,7 +15076,7 @@ [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || - as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; + as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" @@ -14960,8 +15102,8 @@ esac case $ac_tag in - *:-:* | *:-) cat>"$tmp/stdin" \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; + *:-:* | *:-) cat>"$ac_tmp/stdin" \ + || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac @@ -15091,21 +15233,22 @@ s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " -eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk">$tmp/out \ - || as_fn_error $? "could not create $ac_file" "$LINENO" 5 +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ +>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ + "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined">&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined">&2;} - rm -f "$tmp/stdin" + rm -f "$ac_tmp/stdin" case $ac_file in - -) cat "$tmp/out" && rm -f "$tmp/out";; - *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; + *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; @@ -15116,20 +15259,20 @@ if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" - }>"$tmp/config.h" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" + }>"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 - if diff "$ac_file" "$tmp/config.h">/dev/null 2>&1; then + if diff "$ac_file" "$ac_tmp/config.h">/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged">&5 $as_echo "$as_me: $ac_file is unchanged">&6;} else rm -f "$ac_file" - mv "$tmp/config.h" "$ac_file" \ + mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ - && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi ;; diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa configure.in --- a/configure.in Tue Oct 25 10:41:37 2011 +0300 +++ b/configure.in Tue Oct 25 13:06:09 2011 +0200 @@ -2856,6 +2856,20 @@ ]) ) +AC_CHECK_FUNCS(clock_gettime, [], [ + AC_CHECK_LIB(rt, clock_gettime, [ + AC_DEFINE(HAVE_CLOCK_GETTIME, 1) + AC_DEFINE(TIMEMODULE_LIB, [rt], + [Library needed by timemodule.c: librt may be needed for clock_gettime()]) + ]) +]) + +AC_CHECK_FUNCS(clock_getres, [], [ + AC_CHECK_LIB(rt, clock_getres, [ + AC_DEFINE(HAVE_CLOCK_GETRES, 1) + ]) +]) + AC_MSG_CHECKING(for major, minor, and makedev) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ #if defined(MAJOR_IN_MKDEV) diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa pyconfig.h.in --- a/pyconfig.h.in Tue Oct 25 10:41:37 2011 +0300 +++ b/pyconfig.h.in Tue Oct 25 13:06:09 2011 +0200 @@ -110,6 +110,12 @@ /* Define to 1 if you have the `clock' function. */ #undef HAVE_CLOCK +/* Define to 1 if you have the `clock_getres' function. */ +#undef HAVE_CLOCK_GETRES + +/* Define to 1 if you have the `clock_gettime' function. */ +#undef HAVE_CLOCK_GETTIME + /* Define if the C compiler supports computed gotos. */ #undef HAVE_COMPUTED_GOTOS @@ -1199,6 +1205,9 @@ /* Define if tanh(-0.) is -0., or if platform doesn't have signed zeros */ #undef TANH_PRESERVES_ZERO_SIGN +/* Library needed by timemodule.c: librt may be needed for clock_gettime() */ +#undef TIMEMODULE_LIB + /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME diff -r 3c4b7ecc2db7 -r 35e4b7c4bafa setup.py --- a/setup.py Tue Oct 25 10:41:37 2011 +0300 +++ b/setup.py Tue Oct 25 13:06:09 2011 +0200 @@ -504,11 +504,17 @@ exts.append( Extension('math', ['mathmodule.c', '_math.c'], depends=['_math.h'], libraries=math_libs) ) + + # time libraries: librt may be needed for clock_gettime() + time_libs = [] + lib = sysconfig.get_config_var('TIMEMODULE_LIB') + if lib: + time_libs.append(lib) + # time operations and variables exts.append( Extension('time', ['timemodule.c', '_time.c'], - libraries=math_libs) ) - exts.append( Extension('_datetime', ['_datetimemodule.c', '_time.c'], - libraries=math_libs) ) + libraries=time_libs) ) + exts.append( Extension('_datetime', ['_datetimemodule.c', '_time.c']) ) # random number generator implemented in C exts.append( Extension("_random", ["_randommodule.c"]) ) # bisect

AltStyle によって変換されたページ (->オリジナル) /