1 --- Python-2.3.3/acinclude.m4 1969-12-31 19:00:00.000000000 -0500
2 +++ Python-2.3.3/acinclude.m4 2004-02-17 12:22:29.000000000 -0500
4 +dnl Autoconf 2.5x does not have AC_PROG_CXX_WORKS anymore
5 +dnl If this macro is not defined by Autoconf, define it here.
7 +m4_ifdef([AC_PROG_CXX_WORKS],
9 + [m4_define([AC_PROG_CXX_WORKS],
10 + [AC_LANG_PUSH(C++)dnl
14 --- Python-2.3.3/configure.in 2003-11-18 14:59:39.000000000 -0500
15 +++ Python-2.3.3/configure.in 2004-02-17 12:22:27.000000000 -0500
17 m4_define(PYTHON_VERSION, 2.3)
19 AC_REVISION($Revision: 1.427.4.10 $)
21 -AC_INIT(python, PYTHON_VERSION)
23 +AC_INIT([python],[PYTHON_VERSION])
24 AC_CONFIG_SRCDIR([Include/object.h])
25 AC_CONFIG_HEADER(pyconfig.h)
29 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
30 AC_ARG_ENABLE(framework,
31 - AC_HELP_STRING(--enable-framework@<:@=INSTALLDIR@:>@, Build (MacOSX|Darwin) framework),
32 + AS_HELP_STRING(--enable-framework@<:@=INSTALLDIR@:>@,Build (MacOSX|Darwin) framework),
37 AC_SUBST(PYTHONFRAMEWORKINSTALLDIR)
40 -## AC_HELP_STRING(--with-dyld,
41 -## Use (OpenStep|Rhapsody) dynamic linker))
42 +## AS_HELP_STRING(--with-dyld,## Use (OpenStep|Rhapsody) dynamic linker))
44 # Set name for machine-dependent library files
47 # on that fiddles with OPT and BASECFLAGS?
48 AC_MSG_CHECKING(for --without-gcc)
50 - AC_HELP_STRING(--without-gcc,never use gcc),
51 + AS_HELP_STRING(--without-gcc,never use gcc),
57 AC_MSG_CHECKING(for --with-cxx=<compiler>)
59 - AC_HELP_STRING(--with-cxx=<compiler>, enable C++ support),
60 + AS_HELP_STRING(--with-cxx=<compiler>,enable C++ support),
65 dnl --without-cxx was given.
66 dnl Finally, it does not test whether CXX is g++.
68 -dnl Autoconf 2.5x does not have AC_PROG_CXX_WORKS anymore
69 -ifdef([AC_PROG_CXX_WORKS],[],
70 - [AC_DEFUN([AC_PROG_CXX_WORKS],
71 - [AC_LANG_PUSH(C++)dnl
77 if test "$check_cxx" = "yes"
79 AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++ cl, notfound)
82 AC_MSG_CHECKING(for --with-suffix)
84 - AC_HELP_STRING(--with-suffix=.exe, set executable suffix),
85 + AS_HELP_STRING(--with-suffix=.exe,set executable suffix),
91 AC_MSG_CHECKING(for --enable-shared)
93 - AC_HELP_STRING(--enable-shared, disable/enable building shared python library))
94 + AS_HELP_STRING(--enable-shared,disable/enable building shared python library))
96 if test -z "$enable_shared"
99 # Check for --with-pydebug
100 AC_MSG_CHECKING(for --with-pydebug)
102 - AC_HELP_STRING(--with-pydebug, build with Py_DEBUG defined),
103 + AS_HELP_STRING(--with-pydebug,build with Py_DEBUG defined),
105 if test "$withval" != no
108 AC_MSG_CHECKING(whether $CC accepts -fno-strict-aliasing)
110 CC="$CC -fno-strict-aliasing"
111 - AC_TRY_RUN([int main() { return 0; }],
112 - ac_cv_no_strict_aliasing_ok=yes,
113 - ac_cv_no_strict_aliasing_ok=no,
114 - ac_cv_no_strict_aliasing_ok=no)
115 + AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[ac_cv_no_strict_aliasing_ok=yes],[ac_cv_no_strict_aliasing_ok=no],[ac_cv_no_strict_aliasing_ok=no])
117 AC_MSG_RESULT($ac_cv_no_strict_aliasing_ok)
118 if test $ac_cv_no_strict_aliasing_ok = yes
120 AC_CACHE_VAL(ac_cv_opt_olimit_ok,
122 CC="$CC -OPT:Olimit=0"
123 -AC_TRY_RUN([int main() { return 0; }],
124 - ac_cv_opt_olimit_ok=yes,
125 - ac_cv_opt_olimit_ok=no,
126 - ac_cv_opt_olimit_ok=no)
127 +AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[ac_cv_opt_olimit_ok=yes],[ac_cv_opt_olimit_ok=no],[ac_cv_opt_olimit_ok=no])
129 AC_MSG_RESULT($ac_cv_opt_olimit_ok)
130 if test $ac_cv_opt_olimit_ok = yes; then
132 AC_CACHE_VAL(ac_cv_olimit_ok,
134 CC="$CC -Olimit 1500"
135 - AC_TRY_RUN([int main() { return 0; }],
136 - ac_cv_olimit_ok=yes,
137 - ac_cv_olimit_ok=no,
138 - ac_cv_olimit_ok=no)
139 + AC_RUN_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],[ac_cv_olimit_ok=yes],[ac_cv_olimit_ok=no],[ac_cv_olimit_ok=no])
141 AC_MSG_RESULT($ac_cv_olimit_ok)
142 if test $ac_cv_olimit_ok = yes; then
144 # options before we can check whether -Kpthread improves anything.
145 AC_MSG_CHECKING(whether pthreads are available without options)
146 AC_CACHE_VAL(ac_cv_pthread_is_default,
148 +[AC_RUN_IFELSE([AC_LANG_SOURCE([[
151 void* routine(void* p){return NULL;}
152 @@ -763,14 +744,11 @@
153 (void)pthread_detach(p);
159 ac_cv_pthread_is_default=yes
163 - ac_cv_pthread_is_default=no,
164 - ac_cv_pthread_is_default=no)
165 +],[ac_cv_pthread_is_default=no],[ac_cv_pthread_is_default=no])
167 AC_MSG_RESULT($ac_cv_pthread_is_default)
170 AC_CACHE_VAL(ac_cv_kpthread,
174 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
177 void* routine(void* p){return NULL;}
179 (void)pthread_detach(p);
183 - ac_cv_kpthread=yes,
186 +]])],[ac_cv_kpthread=yes],[ac_cv_kpthread=no],[ac_cv_kpthread=no])
188 AC_MSG_RESULT($ac_cv_kpthread)
191 AC_CACHE_VAL(ac_cv_kthread,
195 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
198 void* routine(void* p){return NULL;}
200 (void)pthread_detach(p);
207 +]])],[ac_cv_kthread=yes],[ac_cv_kthread=no],[ac_cv_kthread=no])
209 AC_MSG_RESULT($ac_cv_kthread)
212 AC_CACHE_VAL(ac_cv_thread,
216 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
219 void* routine(void* p){return NULL;}
221 (void)pthread_detach(p);
228 +]])],[ac_cv_pthread=yes],[ac_cv_pthread=no],[ac_cv_pthread=no])
230 AC_MSG_RESULT($ac_cv_pthread)
232 @@ -911,11 +880,11 @@
234 dnl # check for ANSI or K&R ("traditional") preprocessor
235 dnl AC_MSG_CHECKING(for C preprocessor type)
236 -dnl AC_TRY_COMPILE([
237 +dnl AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
238 dnl #define spam(name, doc) {#name, &name, #name "() -- " doc}
240 dnl struct {char *name; int *addr; char *doc;} desc = spam(foo, "something");
241 -dnl ], [;], cpp_type=ansi, AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional)
242 +dnl ]], [[;]])],[cpp_type=ansi],[AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional])
243 dnl AC_MSG_RESULT($cpp_type)
245 # checks for header files
246 @@ -941,19 +910,13 @@
248 # Check whether using makedev requires defining _OSF_SOURCE
249 AC_MSG_CHECKING(for makedev)
250 -AC_TRY_LINK([#include <sys/types.h> ],
252 - ac_cv_has_makedev=yes,
253 - ac_cv_has_makedev=no)
254 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> ]], [[ makedev(0, 0) ]])],[ac_cv_has_makedev=yes],[ac_cv_has_makedev=no])
255 if test "$ac_cv_has_makedev" = "no"; then
256 # we didn't link, try if _OSF_SOURCE will allow us to link
258 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[
259 #define _OSF_SOURCE 1
260 #include <sys/types.h>
263 - ac_cv_has_makedev=yes,
264 - ac_cv_has_makedev=no)
265 + ]], [[ makedev(0, 0) ]])],[ac_cv_has_makedev=yes],[ac_cv_has_makedev=no])
266 if test "$ac_cv_has_makedev" = "yes"; then
267 AC_DEFINE(_OSF_SOURCE, 1, [Define _OSF_SOURCE to get the makedev macro.])
269 @@ -972,11 +935,11 @@
272 AC_MSG_CHECKING(Solaris LFS bug)
274 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
275 #define _LARGEFILE_SOURCE 1
276 #define _FILE_OFFSET_BITS 64
277 #include <sys/resource.h>
278 -],struct rlimit foo;,sol_lfs_bug=no,sol_lfs_bug=yes)
279 +]], [[struct rlimit foo;]])],[sol_lfs_bug=no],[sol_lfs_bug=yes])
280 AC_MSG_RESULT($sol_lfs_bug)
281 if test "$sol_lfs_bug" = "yes"; then
283 @@ -1018,10 +981,10 @@
285 AC_MSG_CHECKING(for long long support)
287 -AC_TRY_COMPILE([], [long long x; x = (long long)0;], [
288 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long long x; x = (long long)0;]])],[
289 AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.])
293 AC_MSG_RESULT($have_long_long)
294 if test "$have_long_long" = yes ; then
295 AC_CHECK_SIZEOF(long long, 8)
296 @@ -1029,10 +992,10 @@
298 AC_MSG_CHECKING(for uintptr_t support)
300 -AC_TRY_COMPILE([], [uintptr_t x; x = (uintptr_t)0;], [
301 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[uintptr_t x; x = (uintptr_t)0;]])],[
302 AC_DEFINE(HAVE_UINTPTR_T, 1, [Define this if you have the type uintptr_t.])
306 AC_MSG_RESULT($have_uintptr_t)
307 if test "$have_uintptr_t" = yes ; then
308 AC_CHECK_SIZEOF(uintptr_t, 4)
309 @@ -1041,7 +1004,7 @@
310 # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>.
311 AC_MSG_CHECKING(size of off_t)
312 AC_CACHE_VAL(ac_cv_sizeof_off_t,
313 -[AC_TRY_RUN([#include <stdio.h>
314 +[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
315 #include <sys/types.h>
318 @@ -1049,10 +1012,7 @@
320 fprintf(f, "%d\n", sizeof(off_t));
323 -ac_cv_sizeof_off_t=`cat conftestval`,
324 -ac_cv_sizeof_off_t=0,
325 -ac_cv_sizeof_off_t=4)
326 +}]])],[ac_cv_sizeof_off_t=`cat conftestval`],[ac_cv_sizeof_off_t=0],[ac_cv_sizeof_off_t=4])
328 AC_MSG_RESULT($ac_cv_sizeof_off_t)
329 AC_DEFINE_UNQUOTED(SIZEOF_OFF_T, $ac_cv_sizeof_off_t,
330 @@ -1075,7 +1035,7 @@
331 # AC_CHECK_SIZEOF() doesn't include <time.h>.
332 AC_MSG_CHECKING(size of time_t)
333 AC_CACHE_VAL(ac_cv_sizeof_time_t,
334 -[AC_TRY_RUN([#include <stdio.h>
335 +[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
339 @@ -1083,10 +1043,7 @@
341 fprintf(f, "%d\n", sizeof(time_t));
344 -ac_cv_sizeof_time_t=`cat conftestval`,
345 -ac_cv_sizeof_time_t=0,
346 -ac_cv_sizeof_time_t=4)
347 +}]])],[ac_cv_sizeof_time_t=`cat conftestval`],[ac_cv_sizeof_time_t=0],[ac_cv_sizeof_time_t=4])
349 AC_MSG_RESULT($ac_cv_sizeof_time_t)
350 AC_DEFINE_UNQUOTED(SIZEOF_TIME_T, $ac_cv_sizeof_time_t,
351 @@ -1104,13 +1061,13 @@
353 AC_MSG_CHECKING(for pthread_t)
355 -AC_TRY_COMPILE([#include <pthread.h>], [pthread_t x; x = *(pthread_t*)0;], have_pthread_t=yes)
356 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]], [[pthread_t x; x = *(pthread_t*)0;]])],[have_pthread_t=yes],[])
357 AC_MSG_RESULT($have_pthread_t)
358 if test "$have_pthread_t" = yes ; then
359 # AC_CHECK_SIZEOF() doesn't include <pthread.h>.
360 AC_MSG_CHECKING(size of pthread_t)
361 AC_CACHE_VAL(ac_cv_sizeof_pthread_t,
362 - [AC_TRY_RUN([#include <stdio.h>
363 + [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
367 @@ -1118,10 +1075,7 @@
369 fprintf(f, "%d\n", sizeof(pthread_t));
372 - ac_cv_sizeof_pthread_t=`cat conftestval`,
373 - ac_cv_sizeof_pthread_t=0,
374 - ac_cv_sizeof_pthread_t=4)
375 + }]])],[ac_cv_sizeof_pthread_t=`cat conftestval`],[ac_cv_sizeof_pthread_t=0],[ac_cv_sizeof_pthread_t=4])
377 AC_MSG_RESULT($ac_cv_sizeof_pthread_t)
378 AC_DEFINE_UNQUOTED(SIZEOF_PTHREAD_T, $ac_cv_sizeof_pthread_t,
379 @@ -1131,7 +1085,7 @@
381 AC_MSG_CHECKING(for --enable-toolbox-glue)
382 AC_ARG_ENABLE(toolbox-glue,
383 - AC_HELP_STRING(--enable-toolbox-glue, disable/enable MacOSX glue code for extensions))
384 + AS_HELP_STRING(--enable-toolbox-glue,disable/enable MacOSX glue code for extensions))
386 if test -z "$enable_toolbox_glue"
388 @@ -1436,13 +1390,10 @@
389 # checks for system dependent C++ extensions support
390 case "$ac_sys_system" in
391 AIX*) AC_MSG_CHECKING(for genuine AIX C++ extensions support)
392 - AC_TRY_LINK([#include "/usr/lpp/xlC/include/load.h"],
393 - [loadAndInit("", 0, "")],
394 - [AC_DEFINE(AIX_GENUINE_CPLUSPLUS, 1,
395 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "/usr/lpp/xlC/include/load.h"]], [[loadAndInit("", 0, "")]])],[AC_DEFINE(AIX_GENUINE_CPLUSPLUS, 1,
396 [Define for AIX if your compiler is a genuine IBM xlC/xlC_r
397 and you want support for AIX C++ shared extension modules.])
398 - AC_MSG_RESULT(yes)],
399 - [AC_MSG_RESULT(no)]);;
400 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]);;
404 @@ -1464,7 +1415,7 @@
406 AC_MSG_CHECKING(for --with-libs)
408 - AC_HELP_STRING(--with-libs='lib1 ...', link against additional libs),
409 + AS_HELP_STRING(--with-libs='lib1 ...',link against additional libs),
411 AC_MSG_RESULT($withval)
412 LIBS="$withval $LIBS"
413 @@ -1476,7 +1427,7 @@
414 AC_SUBST(SIGNAL_OBJS)
415 AC_MSG_CHECKING(for --with-signal-module)
416 AC_ARG_WITH(signal-module,
417 - AC_HELP_STRING(--with-signal-module, disable/enable signal module))
418 + AS_HELP_STRING(--with-signal-module,disable/enable signal module))
420 if test -z "$with_signal_module"
421 then with_signal_module="yes"
422 @@ -1498,7 +1449,7 @@
423 AC_MSG_CHECKING(for --with-dec-threads)
425 AC_ARG_WITH(dec-threads,
426 - AC_HELP_STRING(--with-dec-threads, use DEC Alpha/OSF1 thread-safe libraries),
427 + AS_HELP_STRING(--with-dec-threads,use DEC Alpha/OSF1 thread-safe libraries),
429 AC_MSG_RESULT($withval)
431 @@ -1518,12 +1469,12 @@
432 AC_MSG_CHECKING(for --with-threads)
433 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
435 - AC_HELP_STRING(--with(out)-threads@<:@=DIRECTORY@:>@, disable/enable thread support))
436 + AS_HELP_STRING(--with(out)-threads@<:@=DIRECTORY@:>@,disable/enable thread support))
438 # --with-thread is deprecated, but check for it anyway
439 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
441 - AC_HELP_STRING(--with(out)-thread@<:@=DIRECTORY@:>@, deprecated; use --with(out)-threads),
442 + AS_HELP_STRING(--with(out)-thread@<:@=DIRECTORY@:>@,deprecated; use --with(out)-threads),
443 [with_threads=$with_thread])
445 if test -z "$with_threads"
446 @@ -1603,7 +1554,7 @@
447 THREADOBJ="Python/thread.o"],[
448 AC_MSG_CHECKING(for --with-pth)
450 - AC_HELP_STRING(--with-pth, use GNU pth threading libraries),
451 + AS_HELP_STRING(--with-pth,use GNU pth threading libraries),
452 [AC_MSG_RESULT($withval)
453 AC_DEFINE([WITH_THREAD])
454 AC_DEFINE([HAVE_PTH], 1,
455 @@ -1618,10 +1569,10 @@
457 LIBS="$LIBS -lpthread"
458 AC_MSG_CHECKING([for pthread_create in -lpthread])
459 - AC_TRY_LINK([#include <pthread.h>
460 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>
462 -void * start_routine (void *arg) { exit (0); }], [
463 -pthread_create (NULL, NULL, start_routine, NULL)], [
464 +void * start_routine (void *arg) { exit (0); }]], [[
465 +pthread_create (NULL, NULL, start_routine, NULL)]])],[
467 AC_DEFINE(WITH_THREAD)
469 @@ -1705,7 +1656,7 @@
471 AC_MSG_CHECKING(if PTHREAD_SCOPE_SYSTEM is supported)
472 AC_CACHE_VAL(ac_cv_pthread_system_supported,
473 - [AC_TRY_RUN([#include <pthread.h>
474 + [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <pthread.h>
475 void *foo(void *parm) {
478 @@ -1716,10 +1667,7 @@
479 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
480 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
483 - ac_cv_pthread_system_supported=yes,
484 - ac_cv_pthread_system_supported=no,
485 - ac_cv_pthread_system_supported=no)
486 + }]])],[ac_cv_pthread_system_supported=yes],[ac_cv_pthread_system_supported=no],[ac_cv_pthread_system_supported=no])
488 AC_MSG_RESULT($ac_cv_pthread_system_supported)
489 if test "$ac_cv_pthread_system_supported" = "yes"; then
490 @@ -1754,7 +1702,7 @@
493 dnl the check does not work on cross compilation case...
494 - AC_TRY_RUN([ /* AF_INET6 available check */
495 + AC_RUN_IFELSE([AC_LANG_SOURCE([[ /* AF_INET6 available check */
496 #include <sys/types.h>
497 #include <sys/socket.h>
499 @@ -1764,25 +1712,19 @@
509 +]])],[AC_MSG_RESULT(yes)
510 + ipv6=yes],[AC_MSG_RESULT(no)
511 + ipv6=no],[AC_MSG_RESULT(no)
516 if test "$ipv6" = "yes"; then
517 AC_MSG_CHECKING(if RFC2553 API is available)
518 - AC_TRY_COMPILE([#include <sys/types.h>
519 -#include <netinet/in.h>],
520 - [struct sockaddr_in6 x;
524 - AC_MSG_RESULT(no, IPv6 disabled)
526 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
527 +#include <netinet/in.h>]], [[struct sockaddr_in6 x;
528 +x.sin6_scope_id;]])],[AC_MSG_RESULT(yes)
529 + ipv6=yes],[AC_MSG_RESULT(no, IPv6 disabled)
533 if test "$ipv6" = "yes"; then
534 @@ -1905,7 +1847,7 @@
535 # Check for universal newline support
536 AC_MSG_CHECKING(for --with-universal-newlines)
537 AC_ARG_WITH(universal-newlines,
538 - AC_HELP_STRING(--with(out)-universal-newlines, disable/enable foreign newlines))
539 + AS_HELP_STRING(--with(out)-universal-newlines,disable/enable foreign newlines))
541 if test -z "$with_universal_newlines"
542 then with_universal_newlines="yes"
543 @@ -1923,7 +1865,7 @@
544 # Check for --with-doc-strings
545 AC_MSG_CHECKING(for --with-doc-strings)
546 AC_ARG_WITH(doc-strings,
547 - AC_HELP_STRING(--with(out)-doc-strings, disable/enable documentation strings))
548 + AS_HELP_STRING(--with(out)-doc-strings,disable/enable documentation strings))
550 if test -z "$with_doc_strings"
551 then with_doc_strings="yes"
552 @@ -1938,7 +1880,7 @@
553 # Check for Python-specific malloc support
554 AC_MSG_CHECKING(for --with-pymalloc)
555 AC_ARG_WITH(pymalloc,
556 - AC_HELP_STRING(--with(out)-pymalloc, disable/enable specialized mallocs))
557 + AS_HELP_STRING(--with(out)-pymalloc,disable/enable specialized mallocs))
559 if test -z "$with_pymalloc"
560 then with_pymalloc="yes"
561 @@ -1953,7 +1895,7 @@
562 # Check for --with-wctype-functions
563 AC_MSG_CHECKING(for --with-wctype-functions)
564 AC_ARG_WITH(wctype-functions,
565 - AC_HELP_STRING(--with-wctype-functions, use wctype.h functions),
566 + AS_HELP_STRING(--with-wctype-functions,use wctype.h functions),
568 if test "$withval" != no
570 @@ -1971,7 +1913,7 @@
572 AC_MSG_CHECKING(for --with-sgi-dl)
574 - AC_HELP_STRING(--with-sgi-dl=DIRECTORY, IRIX 4 dynamic linking),
575 + AS_HELP_STRING(--with-sgi-dl=DIRECTORY,IRIX 4 dynamic linking),
577 AC_MSG_RESULT($withval)
578 echo --with-sgi-dl is unsupported, see README
579 @@ -1993,7 +1935,7 @@
581 AC_MSG_CHECKING(for --with-dl-dld)
583 - AC_HELP_STRING(--with-dl-dld=DL_DIR, GNU dynamic linking),
584 + AS_HELP_STRING(--with-dl-dld=DL_DIR,GNU dynamic linking),
586 AC_MSG_RESULT($withval)
587 echo --with-dl-dld is unsupported, see README
588 @@ -2085,41 +2027,29 @@
589 # For some functions, having a definition is not sufficient, since
590 # we want to take their address.
591 AC_MSG_CHECKING(for chroot)
592 -AC_TRY_COMPILE([#include <unistd.h>], void *x=chroot,
593 - AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.)
594 - AC_MSG_RESULT(yes),
597 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=chroot]])],[AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.)
598 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
600 AC_MSG_CHECKING(for link)
601 -AC_TRY_COMPILE([#include <unistd.h>], void *x=link,
602 - AC_DEFINE(HAVE_LINK, 1, Define if you have the 'link' function.)
603 - AC_MSG_RESULT(yes),
606 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=link]])],[AC_DEFINE(HAVE_LINK, 1, Define if you have the 'link' function.)
607 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
609 AC_MSG_CHECKING(for symlink)
610 -AC_TRY_COMPILE([#include <unistd.h>], void *x=symlink,
611 - AC_DEFINE(HAVE_SYMLINK, 1, Define if you have the 'symlink' function.)
612 - AC_MSG_RESULT(yes),
615 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=symlink]])],[AC_DEFINE(HAVE_SYMLINK, 1, Define if you have the 'symlink' function.)
616 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
618 AC_MSG_CHECKING(for fchdir)
619 -AC_TRY_COMPILE([#include <unistd.h>], void *x=fchdir,
620 - AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.)
621 - AC_MSG_RESULT(yes),
624 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=fchdir]])],[AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.)
625 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
627 AC_MSG_CHECKING(for fsync)
628 -AC_TRY_COMPILE([#include <unistd.h>], void *x=fsync,
629 - AC_DEFINE(HAVE_FSYNC, 1, Define if you have the 'fsync' function.)
630 - AC_MSG_RESULT(yes),
633 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=fsync]])],[AC_DEFINE(HAVE_FSYNC, 1, Define if you have the 'fsync' function.)
634 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
636 AC_MSG_CHECKING(for fdatasync)
637 -AC_TRY_COMPILE([#include <unistd.h>], void *x=fdatasync,
638 - AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.)
639 - AC_MSG_RESULT(yes),
642 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=fdatasync]])],[AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.)
643 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
646 # On some systems (eg. FreeBSD 5), we would find a definition of the
647 # functions ctermid_r, setgroups in the library, but no prototype
648 @@ -2128,34 +2058,28 @@
649 # because of the missing prototypes.
651 AC_MSG_CHECKING(for ctermid_r)
653 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
654 #include "confdefs.h"
656 -], void* p = ctermid_r,
657 - AC_DEFINE(HAVE_CTERMID_R, 1, Define if you have the 'ctermid_r' function.)
658 - AC_MSG_RESULT(yes),
661 +]], [[void* p = ctermid_r]])],[AC_DEFINE(HAVE_CTERMID_R, 1, Define if you have the 'ctermid_r' function.)
662 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
665 AC_MSG_CHECKING(for flock)
667 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
668 #include "confdefs.h"
669 #include <sys/file.h>
671 - AC_DEFINE(HAVE_FLOCK, 1, Define if you have the 'flock' function.)
672 - AC_MSG_RESULT(yes),
675 +]], [[void* p = flock]])],[AC_DEFINE(HAVE_FLOCK, 1, Define if you have the 'flock' function.)
676 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
679 AC_MSG_CHECKING(for getpagesize)
681 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
682 #include "confdefs.h"
684 -], void* p = getpagesize,
685 - AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function.)
686 - AC_MSG_RESULT(yes),
689 +]], [[void* p = getpagesize]])],[AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function.)
690 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
694 AC_CHECK_PROGS(TRUE, true, /bin/true)
695 @@ -2167,54 +2091,45 @@
698 AC_MSG_CHECKING(for hstrerror)
700 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[
701 #include "confdefs.h"
703 -], void* p = hstrerror; hstrerror(0),
704 - AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.)
705 - AC_MSG_RESULT(yes),
708 +]], [[void* p = hstrerror; hstrerror(0)]])],[AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.)
709 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
712 AC_MSG_CHECKING(for inet_aton)
714 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[
715 #include "confdefs.h"
716 #include <sys/socket.h>
717 #include <netinet/in.h>
718 #include <arpa/inet.h>
719 -], void* p = inet_aton;inet_aton(0,0),
720 - AC_DEFINE(HAVE_INET_ATON, 1, Define if you have the 'inet_aton' function.)
721 - AC_MSG_RESULT(yes),
724 +]], [[void* p = inet_aton;inet_aton(0,0)]])],[AC_DEFINE(HAVE_INET_ATON, 1, Define if you have the 'inet_aton' function.)
725 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
728 AC_MSG_CHECKING(for inet_pton)
730 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
731 #include "confdefs.h"
732 #include <sys/types.h>
733 #include <sys/socket.h>
734 #include <netinet/in.h>
735 #include <arpa/inet.h>
736 -], void* p = inet_pton,
737 - AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.)
738 - AC_MSG_RESULT(yes),
741 +]], [[void* p = inet_pton]])],[AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.)
742 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
745 # On some systems, setgroups is in unistd.h, on others, in grp.h
746 AC_MSG_CHECKING(for setgroups)
748 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
749 #include "confdefs.h"
755 -void* p = setgroups,
756 - AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.)
757 - AC_MSG_RESULT(yes),
760 +]], [[void* p = setgroups]])],[AC_DEFINE(HAVE_SETGROUPS, 1, Define if you have the 'setgroups' function.)
761 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
764 # check for openpty and forkpty
766 @@ -2226,30 +2141,24 @@
768 AC_REPLACE_FUNCS(dup2 getcwd strdup strerror memmove)
769 AC_CHECK_FUNCS(getpgrp,
770 - AC_TRY_COMPILE([#include <unistd.h>],
772 - AC_DEFINE(GETPGRP_HAVE_ARG, 1,
773 - [Define if getpgrp() must be called as getpgrp(0).])
775 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[getpgrp(0);]])],[AC_DEFINE(GETPGRP_HAVE_ARG, 1,
776 + Define if getpgrp() must be called as getpgrp(0).)
779 AC_CHECK_FUNCS(setpgrp,
780 - AC_TRY_COMPILE([#include <unistd.h>],
782 - AC_DEFINE(SETPGRP_HAVE_ARG, 1,
783 - [Define if setpgrp() must be called as setpgrp(0, 0).])
785 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[setpgrp(0,0);]])],[AC_DEFINE(SETPGRP_HAVE_ARG, 1,
786 + Define if setpgrp() must be called as setpgrp(0, 0).)
789 AC_CHECK_FUNCS(gettimeofday,
790 - AC_TRY_COMPILE([#include <sys/time.h>],
791 - [gettimeofday((struct timeval*)0,(struct timezone*)0);], ,
792 - AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1,
793 - [Define if gettimeofday() does not have second (timezone) argument
794 - This is the case on Motorola V4 (R40V4.2)])
796 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]], [[gettimeofday((struct timeval*)0,(struct timezone*)0);]])],[],[AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1,
797 + Define if gettimeofday() does not have second (timezone) argument
798 + This is the case on Motorola V4 (R40V4.2))
802 AC_MSG_CHECKING(for major, minor, and makedev)
804 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[
805 #if defined(MAJOR_IN_MKDEV)
806 #include <sys/mkdev.h>
807 #elif defined(MAJOR_IN_SYSMACROS)
808 @@ -2257,9 +2166,9 @@
810 #include <sys/types.h>
814 makedev(major(0),minor(0));
817 AC_DEFINE(HAVE_DEVICE_MACROS, 1,
818 [Define to 1 if you have the device macros.])
820 @@ -2270,14 +2179,14 @@
821 # On OSF/1 V5.1, getaddrinfo is available, but a define
822 # for [no]getaddrinfo in netdb.h.
823 AC_MSG_CHECKING(for getaddrinfo)
825 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[
826 #include <sys/types.h>
827 #include <sys/socket.h>
832 getaddrinfo(NULL, NULL, NULL, NULL);
836 AC_MSG_CHECKING(getaddrinfo bug)
838 @@ -2371,7 +2280,7 @@
840 buggygetaddrinfo=yes,
842 -buggygetaddrinfo=yes)], [
843 +buggygetaddrinfo=yes)],[
847 @@ -2397,9 +2306,7 @@
849 AC_MSG_CHECKING(for time.h that defines altzone)
850 AC_CACHE_VAL(ac_cv_header_time_altzone,
851 -[AC_TRY_COMPILE([#include <time.h>], [return altzone;],
852 - ac_cv_header_time_altzone=yes,
853 - ac_cv_header_time_altzone=no)])
854 +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[return altzone;]])],[ac_cv_header_time_altzone=yes],[ac_cv_header_time_altzone=no])])
855 AC_MSG_RESULT($ac_cv_header_time_altzone)
856 if test $ac_cv_header_time_altzone = yes; then
857 AC_DEFINE(HAVE_ALTZONE, 1, [Define this if your time.h defines altzone.])
858 @@ -2407,25 +2314,22 @@
861 AC_MSG_CHECKING(whether sys/select.h and sys/time.h may both be included)
863 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
864 #include <sys/types.h>
865 #include <sys/select.h>
866 #include <sys/time.h>
869 AC_DEFINE(SYS_SELECT_WITH_SYS_TIME, 1,
870 [Define if you can safely include both <sys/select.h> and <sys/time.h>
871 (which you can't on SCO ODT 3.0).])
875 AC_MSG_RESULT($was_it_defined)
877 AC_MSG_CHECKING(for addrinfo)
878 AC_CACHE_VAL(ac_cv_struct_addrinfo,
880 -# include <netdb.h>],
881 - [struct addrinfo a],
882 - ac_cv_struct_addrinfo=yes,
883 - ac_cv_struct_addrinfo=no))
884 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
885 +# include <netdb.h>]], [[struct addrinfo a]])],[ac_cv_struct_addrinfo=yes],[ac_cv_struct_addrinfo=no]))
886 AC_MSG_RESULT($ac_cv_struct_addrinfo)
887 if test $ac_cv_struct_addrinfo = yes; then
888 AC_DEFINE(HAVE_ADDRINFO, 1, [struct addrinfo (netdb.h)])
889 @@ -2433,12 +2337,9 @@
891 AC_MSG_CHECKING(for sockaddr_storage)
892 AC_CACHE_VAL(ac_cv_struct_sockaddr_storage,
894 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
895 # include <sys/types.h>
896 -# include <sys/socket.h>],
897 - [struct sockaddr_storage s],
898 - ac_cv_struct_sockaddr_storage=yes,
899 - ac_cv_struct_sockaddr_storage=no))
900 +# include <sys/socket.h>]], [[struct sockaddr_storage s]])],[ac_cv_struct_sockaddr_storage=yes],[ac_cv_struct_sockaddr_storage=no]))
901 AC_MSG_RESULT($ac_cv_struct_sockaddr_storage)
902 if test $ac_cv_struct_sockaddr_storage = yes; then
903 AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [struct sockaddr_storage (sys/socket.h)])
904 @@ -2451,30 +2352,28 @@
907 AC_MSG_CHECKING(for working volatile)
908 -AC_TRY_COMPILE([],[volatile int x; x = 0;], works=yes,
909 - AC_DEFINE(volatile, [], [Define to empty if the keyword does not work.])
911 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[volatile int x; x = 0;]])],[works=yes],[AC_DEFINE(volatile, , Define to empty if the keyword does not work.)
913 AC_MSG_RESULT($works)
916 AC_MSG_CHECKING(for working signed char)
917 -AC_TRY_COMPILE([], [signed char c;], works=yes,
918 - AC_DEFINE(signed, [], [Define to empty if the keyword does not work.])
920 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[signed char c;]])],[works=yes],[AC_DEFINE(signed, , Define to empty if the keyword does not work.)
922 AC_MSG_RESULT($works)
925 AC_MSG_CHECKING(for prototypes)
926 -AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],[
927 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int x) { return 0; }]], [[return foo(10);]])],[
928 AC_DEFINE(HAVE_PROTOTYPES, 1,
929 [Define if your compiler supports function prototype])
933 AC_MSG_RESULT($have_prototypes)
936 AC_MSG_CHECKING(for variable length prototypes and stdarg.h)
938 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
940 int foo(int x, ...) {
942 @@ -2484,45 +2383,41 @@
946 -], [return foo(10, "", 3.14);], [
947 +]], [[return foo(10, "", 3.14);]])],[
948 AC_DEFINE(HAVE_STDARG_PROTOTYPES, 1,
949 [Define if your compiler supports variable length function prototypes
950 (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>])
954 AC_MSG_RESULT($works)
956 if test "$have_prototypes" = yes; then
958 AC_MSG_CHECKING(for bad exec* prototypes)
959 -AC_TRY_COMPILE([#include <unistd.h>], [char **t;execve("@",t,t);], ,
960 - AC_DEFINE(BAD_EXEC_PROTOTYPES, 1,
961 - [Define if your <unistd.h> contains bad prototypes for exec*()
962 - (as it does on SGI IRIX 4.x)])
963 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[char **t;execve("@",t,t);]])],[],[AC_DEFINE(BAD_EXEC_PROTOTYPES, 1,
964 + Define if your <unistd.h> contains bad prototypes for exec*()
965 + (as it does on SGI IRIX 4.x))
969 AC_MSG_RESULT($bad_prototypes)
972 # check if sockaddr has sa_len member
973 AC_MSG_CHECKING(if sockaddr has sa_len member)
974 -AC_TRY_COMPILE([#include <sys/types.h>
975 -#include <sys/socket.h>],
979 - AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if sockaddr has sa_len member]),
981 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
982 +#include <sys/socket.h>]], [[struct sockaddr x;
983 +x.sa_len = 0;]])],[AC_MSG_RESULT(yes)
984 + AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, Define if sockaddr has sa_len member)],[AC_MSG_RESULT(no)])
987 AC_MSG_CHECKING(whether va_list is an array)
989 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
990 #ifdef HAVE_STDARG_PROTOTYPES
995 -], [va_list list1, list2; list1 = list2;], , [
996 +]], [[va_list list1, list2; list1 = list2;]])],[],[
997 AC_DEFINE(VA_LIST_IS_ARRAY, 1, [Define if a va_list is an array of some kind])
1000 @@ -2537,9 +2432,9 @@
1001 AC_MSG_CHECKING([gethostbyname_r with 6 args])
1003 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
1005 + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1010 struct hostent *he, *res;
1012 @@ -2547,12 +2442,12 @@
1015 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
1018 AC_DEFINE(HAVE_GETHOSTBYNAME_R)
1019 AC_DEFINE(HAVE_GETHOSTBYNAME_R_6_ARG, 1,
1020 [Define this if you have the 6-arg version of gethostbyname_r().])
1025 AC_MSG_CHECKING([gethostbyname_r with 5 args])
1027 @@ -2613,7 +2508,7 @@
1028 # Check for --with-fpectl
1029 AC_MSG_CHECKING(for --with-fpectl)
1031 - AC_HELP_STRING(--with-fpectl, enable SIGFPE catching),
1032 + AS_HELP_STRING(--with-fpectl,enable SIGFPE catching),
1034 if test "$withval" != no
1036 @@ -2633,7 +2528,7 @@
1038 AC_MSG_CHECKING(for --with-libm=STRING)
1040 - AC_HELP_STRING(--with-libm=STRING, math library),
1041 + AS_HELP_STRING(--with-libm=STRING,math library),
1043 if test "$withval" = no
1045 @@ -2649,7 +2544,7 @@
1047 AC_MSG_CHECKING(for --with-libc=STRING)
1049 - AC_HELP_STRING(--with-libc=STRING, C library),
1050 + AS_HELP_STRING(--with-libc=STRING,C library),
1052 if test "$withval" = no
1054 @@ -2684,20 +2579,20 @@
1056 AC_MSG_CHECKING(for UCS-4 tcl)
1059 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1061 #if TCL_UTF_MAX != 6
1062 # error "NOT UCS4_TCL"
1065 AC_DEFINE(HAVE_UCS4_TCL, 1, [Define this if you have tcl and TCL_UTF_MAX==6])
1069 AC_MSG_RESULT($have_ucs4_tcl)
1071 AC_MSG_CHECKING(what type to use for unicode)
1072 dnl quadrigraphs "@<:@" and "@:>@" produce "[" and "]" in the output
1073 AC_ARG_ENABLE(unicode,
1074 - AC_HELP_STRING(--enable-unicode@<:@=ucs@<:@24@:>@@:>@, Enable Unicode strings (default is yes)),
1075 + AS_HELP_STRING(--enable-unicode@<:@=ucs@<:@24@:>@@:>@,Enable Unicode strings (default is yes)),
1077 [enable_unicode=yes])
1079 @@ -2764,15 +2659,12 @@
1080 # or fills with zeros (like the Cray J90, according to Tim Peters).
1081 AC_MSG_CHECKING(whether right shift extends the sign bit)
1082 AC_CACHE_VAL(ac_cv_rshift_extends_sign, [
1084 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
1087 exit(((-1)>>3 == -1) ? 0 : 1);
1090 -ac_cv_rshift_extends_sign=yes,
1091 -ac_cv_rshift_extends_sign=no,
1092 -ac_cv_rshift_extends_sign=yes)])
1093 +]])],[ac_cv_rshift_extends_sign=yes],[ac_cv_rshift_extends_sign=no],[ac_cv_rshift_extends_sign=yes])])
1094 AC_MSG_RESULT($ac_cv_rshift_extends_sign)
1095 if test "$ac_cv_rshift_extends_sign" = no
1097 @@ -2784,12 +2676,12 @@
1098 # check for getc_unlocked and related locking functions
1099 AC_MSG_CHECKING(for getc_unlocked() and friends)
1100 AC_CACHE_VAL(ac_cv_have_getc_unlocked, [
1101 -AC_TRY_LINK([#include <stdio.h>],[
1102 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[
1103 FILE *f = fopen("/dev/null", "r");
1107 -], ac_cv_have_getc_unlocked=yes, ac_cv_have_getc_unlocked=no)])
1108 +]])],[ac_cv_have_getc_unlocked=yes],[ac_cv_have_getc_unlocked=no])])
1109 AC_MSG_RESULT($ac_cv_have_getc_unlocked)
1110 if test "$ac_cv_have_getc_unlocked" = yes
1112 @@ -2798,8 +2690,7 @@
1115 # check for readline 2.2
1116 -AC_TRY_CPP([#include <readline/readline.h>],
1117 -have_readline=yes, have_readline=no)
1118 +AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include <readline/readline.h>]])],[have_readline=yes],[have_readline=no])
1119 if test $have_readline = yes
1121 AC_EGREP_HEADER([extern int rl_completion_append_character;],
1122 @@ -2820,7 +2711,7 @@
1124 AC_MSG_CHECKING(for broken nice())
1125 AC_CACHE_VAL(ac_cv_broken_nice, [
1127 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
1131 @@ -2828,10 +2719,7 @@
1136 -ac_cv_broken_nice=yes,
1137 -ac_cv_broken_nice=no,
1138 -ac_cv_broken_nice=no)])
1139 +]])],[ac_cv_broken_nice=yes],[ac_cv_broken_nice=no],[ac_cv_broken_nice=no])])
1140 AC_MSG_RESULT($ac_cv_broken_nice)
1141 if test "$ac_cv_broken_nice" = yes
1143 @@ -2842,7 +2730,7 @@
1144 # tzset(3) exists and works like we expect it to
1145 AC_MSG_CHECKING(for working tzset())
1146 AC_CACHE_VAL(ac_cv_working_tzset, [
1148 +AC_RUN_IFELSE([AC_LANG_SOURCE([[
1152 @@ -2880,10 +2768,7 @@
1157 -ac_cv_working_tzset=yes,
1158 -ac_cv_working_tzset=no,
1159 -ac_cv_working_tzset=no)])
1160 +]])],[ac_cv_working_tzset=yes],[ac_cv_working_tzset=no],[ac_cv_working_tzset=no])])
1161 AC_MSG_RESULT($ac_cv_working_tzset)
1162 if test "$ac_cv_working_tzset" = yes
1164 @@ -2894,13 +2779,10 @@
1165 # Look for subsecond timestamps in struct stat
1166 AC_MSG_CHECKING(for tv_nsec in struct stat)
1167 AC_CACHE_VAL(ac_cv_stat_tv_nsec,
1168 -AC_TRY_COMPILE([#include <sys/stat.h>], [
1169 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/stat.h>]], [[
1171 st.st_mtim.tv_nsec = 1;
1173 -ac_cv_stat_tv_nsec=yes,
1174 -ac_cv_stat_tv_nsec=no,
1175 -ac_cv_stat_tv_nsec=no))
1176 +]])],[ac_cv_stat_tv_nsec=yes],[ac_cv_stat_tv_nsec=no]))
1177 AC_MSG_RESULT($ac_cv_stat_tv_nsec)
1178 if test "$ac_cv_stat_tv_nsec" = yes
1180 @@ -2911,12 +2793,10 @@
1181 # On HP/UX 11.0, mvwdelch is a block with a return statement
1182 AC_MSG_CHECKING(whether mvwdelch is an expression)
1183 AC_CACHE_VAL(ac_cv_mvwdelch_is_expression,
1184 -AC_TRY_COMPILE([#include <curses.h>], [
1185 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[
1187 rtn = mvwdelch(0,0,0);
1188 -], ac_cv_mvwdelch_is_expression=yes,
1189 - ac_cv_mvwdelch_is_expression=no,
1190 - ac_cv_mvwdelch_is_expression=yes))
1191 +]])],[ac_cv_mvwdelch_is_expression=yes],[ac_cv_mvwdelch_is_expression=no]))
1192 AC_MSG_RESULT($ac_cv_mvwdelch_is_expression)
1194 if test "$ac_cv_mvwdelch_is_expression" = yes
1195 @@ -2927,12 +2807,10 @@
1197 AC_MSG_CHECKING(whether WINDOW has _flags)
1198 AC_CACHE_VAL(ac_cv_window_has_flags,
1199 -AC_TRY_COMPILE([#include <curses.h>], [
1200 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <curses.h>]], [[
1203 -], ac_cv_window_has_flags=yes,
1204 - ac_cv_window_has_flags=no,
1205 - ac_cv_window_has_flags=no))
1206 +]])],[ac_cv_window_has_flags=yes],[ac_cv_window_has_flags=no]))
1207 AC_MSG_RESULT($ac_cv_window_has_flags)