… | |
… | |
658 | host_cpu |
658 | host_cpu |
659 | host_vendor |
659 | host_vendor |
660 | host_os |
660 | host_os |
661 | VERSION |
661 | VERSION |
662 | DATE |
662 | DATE |
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
663 | CC |
666 | CFLAGS |
664 | CFLAGS |
667 | LDFLAGS |
665 | LDFLAGS |
668 | CPPFLAGS |
666 | CPPFLAGS |
669 | ac_ct_CC |
667 | ac_ct_CC |
… | |
… | |
677 | INSTALL_SCRIPT |
675 | INSTALL_SCRIPT |
678 | INSTALL_DATA |
676 | INSTALL_DATA |
679 | GREP |
677 | GREP |
680 | EGREP |
678 | EGREP |
681 | LINKER |
679 | LINKER |
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
680 | RXVTNAME |
|
|
681 | CXXCPP |
684 | TIC |
682 | TIC |
685 | XMKMF |
683 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
684 | X_CFLAGS |
688 | X_PRE_LIBS |
685 | X_PRE_LIBS |
689 | X_LIBS |
686 | X_LIBS |
690 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
691 | afterimage_config |
688 | afterimage_config |
692 | rxvt_int16_typedef |
|
|
693 | rxvt_uint16_typedef |
|
|
694 | rxvt_int32_typedef |
|
|
695 | rxvt_uint32_typedef |
|
|
696 | rxvt_intp_define |
|
|
697 | rxvt_u_intp_define |
|
|
698 | PKG_CONFIG |
689 | PKG_CONFIG |
699 | XFT_CONFIG |
690 | XFT_CONFIG |
700 | PERL |
691 | PERL |
701 | PERLLIB |
692 | PERLLIB |
702 | PERLFLAGS |
693 | PERLFLAGS |
… | |
… | |
704 | IF_PERL |
695 | IF_PERL |
705 | PERL_O |
696 | PERL_O |
706 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
707 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
708 | include_stdint_h |
699 | include_stdint_h |
709 | include_stdarg_h |
|
|
710 | include_stdlib_h |
|
|
711 | include_unistd_h |
|
|
712 | include_string_h |
|
|
713 | include_fcntl_h |
|
|
714 | include_util_h |
|
|
715 | include_assert_h |
|
|
716 | include_sys_ioctl_h |
700 | include_sys_ioctl_h |
717 | include_sys_select_h |
|
|
718 | include_sys_strredir_h |
701 | include_sys_strredir_h |
719 | include_sys_time_h |
|
|
720 | include_time_h |
|
|
721 | LIBOBJS |
702 | LIBOBJS |
722 | LTLIBOBJS' |
703 | LTLIBOBJS' |
723 | ac_subst_files='' |
704 | ac_subst_files='' |
724 | ac_precious_vars='build_alias |
705 | ac_precious_vars='build_alias |
725 | host_alias |
706 | host_alias |
… | |
… | |
731 | CPPFLAGS |
712 | CPPFLAGS |
732 | CXX |
713 | CXX |
733 | CXXFLAGS |
714 | CXXFLAGS |
734 | CCC |
715 | CCC |
735 | CPP |
716 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
717 | CXXCPP |
|
|
718 | XMKMF' |
738 | |
719 | |
739 | |
720 | |
740 | # Initialize some variables set by options. |
721 | # Initialize some variables set by options. |
741 | ac_init_help= |
722 | ac_init_help= |
742 | ac_init_version=false |
723 | ac_init_version=false |
… | |
… | |
1316 | Optional Features: |
1297 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1298 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1299 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1300 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1301 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
1302 | --enable-warnings turn on g++ warnings |
1322 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1303 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1323 | --enable-combining enable composition of base and combining characters |
1304 | --enable-combining enable composition of base and combining characters |
1324 | --enable-xft enable xft support on systems that have it |
1305 | --enable-xft enable xft support on systems that have it |
1325 | --enable-font-styles enable bold and italic support |
1306 | --enable-font-styles enable bold and italic support |
1326 | --enable-afterimage enable integration with libAfterImage for background images |
1307 | --enable-afterimage enable integration with libAfterImage for background images |
1327 | --enable-transparency enable transparent backgrounds |
1308 | --enable-transparency enable transparent backgrounds |
1328 | --enable-fading enable colors fading when off focus |
1309 | --enable-fading enable colors fading when off focus |
1329 | --enable-rxvt-scroll enable rxvt style scrollbar |
1310 | --enable-rxvt-scroll enable rxvt style scrollbar |
1330 | --enable-next-scroll enable NeXT style scrollbar |
1311 | --enable-next-scroll enable NeXT style scrollbar |
1331 | --enable-xterm-scroll enable Xterm style scrollbar |
1312 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1313 | --enable-plain-scroll enable plain style scrollbar |
1332 | --enable-perl enable embedded perl interpreter |
1314 | --enable-perl enable embedded perl interpreter |
1333 | --enable-plain-scroll enable plain style scrollbar |
|
|
1334 | --enable-xim XIM (X Input Method) protocol support |
1315 | --enable-xim XIM (X Input Method) protocol support |
1335 | --disable-backspace-key disable handling of the backspace key |
1316 | --disable-backspace-key disable handling of the backspace key |
1336 | --disable-delete-key disable handling of the delete key |
1317 | --disable-delete-key disable handling of the delete key |
1337 | --disable-resources disable all resource checking |
1318 | --disable-resources disable all resource checking |
1338 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1319 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1339 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1320 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1340 | --disable-swapscreen disable swap screen support |
1321 | --disable-swapscreen disable swap screen support |
1341 | --enable-iso14755 enable support for extended ISO 14755 modes |
1322 | --enable-iso14755 enable support for extended ISO 14755 modes |
1342 | --enable-frills enable support for rarely used features |
1323 | --enable-frills enable support for rarely used features |
1343 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1324 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1344 | --enable-selectionscrolling enable scrolling during selections |
1325 | --enable-selectionscrolling enable scrolling during selections |
1345 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1326 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1346 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1327 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1347 | --enable-smart-resize enable smart growth/shrink behaviour |
1328 | --enable-smart-resize enable smart growth/shrink behaviour |
1348 | --enable-text-blink enable blinking text |
1329 | --enable-text-blink enable blinking text |
1349 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1330 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1350 | --enable-utmp enable utmp (utmpx) support |
1331 | --enable-utmp enable utmp (utmpx) support |
1351 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1332 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1353 | |
1334 | |
1354 | Optional Packages: |
1335 | Optional Packages: |
1355 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1336 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1356 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1337 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1357 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1338 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1358 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1339 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1359 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1340 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1360 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1341 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1361 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1342 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1362 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1343 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1363 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1344 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1372 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1353 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1373 | you have headers in a nonstandard directory <include dir> |
1354 | you have headers in a nonstandard directory <include dir> |
1374 | CXX C++ compiler command |
1355 | CXX C++ compiler command |
1375 | CXXFLAGS C++ compiler flags |
1356 | CXXFLAGS C++ compiler flags |
1376 | CPP C preprocessor |
1357 | CPP C preprocessor |
|
|
1358 | CXXCPP C++ preprocessor |
1377 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1359 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1378 | CXXCPP C++ preprocessor |
|
|
1379 | |
1360 | |
1380 | Use these variables to override the choices made by `configure' or to help |
1361 | Use these variables to override the choices made by `configure' or to help |
1381 | it to find libraries and programs with nonstandard names/locations. |
1362 | it to find libraries and programs with nonstandard names/locations. |
1382 | |
1363 | |
1383 | _ACEOF |
1364 | _ACEOF |
… | |
… | |
1919 | |
1900 | |
1920 | |
1901 | |
1921 | |
1902 | |
1922 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1903 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1923 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1904 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1905 | |
1924 | echo "" |
1906 | echo "" |
1925 | echo "configuring for rxvt $VERSION" |
1907 | echo "configuring for rxvt $VERSION" |
1926 | echo "" |
1908 | echo "" |
1927 | |
1909 | |
1928 | orig_CXXFLAGS="$CXXFLAGS" |
1910 | orig_CXXFLAGS="$CXXFLAGS" |
1929 | |
|
|
1930 | |
1911 | |
1931 | ac_ext=c |
1912 | ac_ext=c |
1932 | ac_cpp='$CPP $CPPFLAGS' |
1913 | ac_cpp='$CPP $CPPFLAGS' |
1933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1914 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3713 | echo "${ECHO_T}no" >&6; } |
3694 | echo "${ECHO_T}no" >&6; } |
3714 | fi |
3695 | fi |
3715 | rm -f conftest* |
3696 | rm -f conftest* |
3716 | |
3697 | |
3717 | |
3698 | |
|
|
3699 | |
|
|
3700 | cat >>confdefs.h <<\_ACEOF |
|
|
3701 | #define _GNU_SOURCE 1 |
|
|
3702 | _ACEOF |
|
|
3703 | |
|
|
3704 | |
3718 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3705 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3719 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3706 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3720 | if test "${ac_cv_search_strerror+set}" = set; then |
3707 | if test "${ac_cv_search_strerror+set}" = set; then |
3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3722 | else |
3709 | else |
… | |
… | |
3869 | LINKER=$LINKER |
3856 | LINKER=$LINKER |
3870 | |
3857 | |
3871 | |
3858 | |
3872 | if test -z "$orig_CXXFLAGS"; then |
3859 | if test -z "$orig_CXXFLAGS"; then |
3873 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3860 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3874 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3861 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3875 | cat >conftest.$ac_ext <<_ACEOF |
3862 | cat >conftest.$ac_ext <<_ACEOF |
3876 | /* confdefs.h. */ |
3863 | /* confdefs.h. */ |
3877 | _ACEOF |
3864 | _ACEOF |
3878 | cat confdefs.h >>conftest.$ac_ext |
3865 | cat confdefs.h >>conftest.$ac_ext |
3879 | cat >>conftest.$ac_ext <<_ACEOF |
3866 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3917 | CXXFLAGS="-O" |
3904 | CXXFLAGS="-O" |
3918 | fi |
3905 | fi |
3919 | CFLAGS="$CXXFLAGS" |
3906 | CFLAGS="$CXXFLAGS" |
3920 | fi |
3907 | fi |
3921 | |
3908 | |
3922 | |
|
|
3923 | cat >>confdefs.h <<\_ACEOF |
|
|
3924 | #define _GNU_SOURCE 1 |
|
|
3925 | _ACEOF |
|
|
3926 | |
|
|
3927 | |
|
|
3928 | case $host in |
3909 | case $host in |
3929 | *-*-solaris* ) |
3910 | *-*-solaris* ) |
3930 | |
3911 | |
3931 | cat >>confdefs.h <<\_ACEOF |
3912 | cat >>confdefs.h <<\_ACEOF |
3932 | #define _XOPEN_SOURCE 500 |
3913 | #define _XOPEN_SOURCE 500 |
3933 | _ACEOF |
3914 | _ACEOF |
3934 | |
3915 | |
3935 | ;; |
3916 | ;; |
3936 | esac |
3917 | esac |
3937 | |
|
|
3938 | |
3918 | |
3939 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3919 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3940 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3920 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3941 | if test "${ac_cv_func_setlocale+set}" = set; then |
3921 | if test "${ac_cv_func_setlocale+set}" = set; then |
3942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4415 | support_iso14755=yes |
4395 | support_iso14755=yes |
4416 | support_styles=yes |
4396 | support_styles=yes |
4417 | support_perl=yes |
4397 | support_perl=yes |
4418 | codesets=all |
4398 | codesets=all |
4419 | |
4399 | |
4420 | |
|
|
4421 | if test "x$enable_shared" = xyes; then |
|
|
4422 | |
|
|
4423 | cat >>confdefs.h <<\_ACEOF |
|
|
4424 | #define LIBRXVT 1 |
|
|
4425 | _ACEOF |
|
|
4426 | |
|
|
4427 | INSTALL_LIBRXVT=yes |
|
|
4428 | fi |
|
|
4429 | |
4400 | |
4430 | |
4401 | |
4431 | # Check whether --enable-everything was given. |
4402 | # Check whether --enable-everything was given. |
4432 | if test "${enable_everything+set}" = set; then |
4403 | if test "${enable_everything+set}" = set; then |
4433 | enableval=$enable_everything; |
4404 | enableval=$enable_everything; |
… | |
… | |
4491 | fi |
4462 | fi |
4492 | |
4463 | |
4493 | fi |
4464 | fi |
4494 | |
4465 | |
4495 | |
4466 | |
|
|
4467 | WARNINGS=no |
|
|
4468 | # Check whether --enable-warnings was given. |
|
|
4469 | if test "${enable_warnings+set}" = set; then |
|
|
4470 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4471 | WARNINGS=yes |
|
|
4472 | fi |
|
|
4473 | fi |
|
|
4474 | |
|
|
4475 | if test x$GXX = xyes; then |
|
|
4476 | if test $WARNINGS = yes; then |
|
|
4477 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4478 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4479 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4480 | /* confdefs.h. */ |
|
|
4481 | _ACEOF |
|
|
4482 | cat confdefs.h >>conftest.$ac_ext |
|
|
4483 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4484 | /* end confdefs.h. */ |
|
|
4485 | |
|
|
4486 | int |
|
|
4487 | main () |
|
|
4488 | { |
|
|
4489 | |
|
|
4490 | ; |
|
|
4491 | return 0; |
|
|
4492 | } |
|
|
4493 | _ACEOF |
|
|
4494 | rm -f conftest.$ac_objext |
|
|
4495 | if { (ac_try="$ac_compile" |
|
|
4496 | case "(($ac_try" in |
|
|
4497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4498 | *) ac_try_echo=$ac_try;; |
|
|
4499 | esac |
|
|
4500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4501 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4502 | ac_status=$? |
|
|
4503 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4504 | rm -f conftest.er1 |
|
|
4505 | cat conftest.err >&5 |
|
|
4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4507 | (exit $ac_status); } && { |
|
|
4508 | test -z "$ac_cxx_werror_flag" || |
|
|
4509 | test ! -s conftest.err |
|
|
4510 | } && test -s conftest.$ac_objext; then |
|
|
4511 | : |
|
|
4512 | else |
|
|
4513 | echo "$as_me: failed program was:" >&5 |
|
|
4514 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4515 | |
|
|
4516 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4517 | fi |
|
|
4518 | |
|
|
4519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4520 | else |
|
|
4521 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4522 | fi |
|
|
4523 | fi |
|
|
4524 | |
4496 | # Check whether --enable-unicode3 was given. |
4525 | # Check whether --enable-unicode3 was given. |
4497 | if test "${enable_unicode3+set}" = set; then |
4526 | if test "${enable_unicode3+set}" = set; then |
4498 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4527 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4499 | support_unicode3=$enableval |
4528 | support_unicode3=$enableval |
4500 | fi |
4529 | fi |
… | |
… | |
4581 | support_scroll_xterm=$enableval |
4610 | support_scroll_xterm=$enableval |
4582 | fi |
4611 | fi |
4583 | fi |
4612 | fi |
4584 | |
4613 | |
4585 | |
4614 | |
|
|
4615 | # Check whether --enable-plain-scroll was given. |
|
|
4616 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4617 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4618 | support_scroll_plain=$enableval |
|
|
4619 | fi |
|
|
4620 | fi |
|
|
4621 | |
|
|
4622 | |
4586 | # Check whether --enable-perl was given. |
4623 | # Check whether --enable-perl was given. |
4587 | if test "${enable_perl+set}" = set; then |
4624 | if test "${enable_perl+set}" = set; then |
4588 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4625 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4589 | support_perl=$enableval |
4626 | support_perl=$enableval |
4590 | fi |
|
|
4591 | fi |
|
|
4592 | |
|
|
4593 | |
|
|
4594 | # Check whether --enable-plain-scroll was given. |
|
|
4595 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4596 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4597 | support_scroll_plain=$enableval |
|
|
4598 | fi |
4627 | fi |
4599 | fi |
4628 | fi |
4600 | |
4629 | |
4601 | |
4630 | |
4602 | |
4631 | |
… | |
… | |
4829 | #define RXVT_TERMINFO "$withval" |
4858 | #define RXVT_TERMINFO "$withval" |
4830 | _ACEOF |
4859 | _ACEOF |
4831 | terminfo="$withval" |
4860 | terminfo="$withval" |
4832 | fi |
4861 | fi |
4833 | fi |
4862 | fi |
|
|
4863 | |
|
|
4864 | |
|
|
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4867 | |
|
|
4868 | ac_ext=cpp |
|
|
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4873 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4874 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4875 | if test -z "$CXXCPP"; then |
|
|
4876 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4878 | else |
|
|
4879 | # Double quotes because CXXCPP needs to be expanded |
|
|
4880 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4881 | do |
|
|
4882 | ac_preproc_ok=false |
|
|
4883 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4884 | do |
|
|
4885 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4886 | # with a fresh cross-compiler works. |
|
|
4887 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4888 | # <limits.h> exists even on freestanding compilers. |
|
|
4889 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4890 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4891 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4892 | /* confdefs.h. */ |
|
|
4893 | _ACEOF |
|
|
4894 | cat confdefs.h >>conftest.$ac_ext |
|
|
4895 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4896 | /* end confdefs.h. */ |
|
|
4897 | #ifdef __STDC__ |
|
|
4898 | # include <limits.h> |
|
|
4899 | #else |
|
|
4900 | # include <assert.h> |
|
|
4901 | #endif |
|
|
4902 | Syntax error |
|
|
4903 | _ACEOF |
|
|
4904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4905 | case "(($ac_try" in |
|
|
4906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4907 | *) ac_try_echo=$ac_try;; |
|
|
4908 | esac |
|
|
4909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4911 | ac_status=$? |
|
|
4912 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4913 | rm -f conftest.er1 |
|
|
4914 | cat conftest.err >&5 |
|
|
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4916 | (exit $ac_status); } >/dev/null && { |
|
|
4917 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4918 | test ! -s conftest.err |
|
|
4919 | }; then |
|
|
4920 | : |
|
|
4921 | else |
|
|
4922 | echo "$as_me: failed program was:" >&5 |
|
|
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4924 | |
|
|
4925 | # Broken: fails on valid input. |
|
|
4926 | continue |
|
|
4927 | fi |
|
|
4928 | |
|
|
4929 | rm -f conftest.err conftest.$ac_ext |
|
|
4930 | |
|
|
4931 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4932 | # can be detected and how. |
|
|
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
|
|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
|
|
4939 | #include <ac_nonexistent.h> |
|
|
4940 | _ACEOF |
|
|
4941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4942 | case "(($ac_try" in |
|
|
4943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4944 | *) ac_try_echo=$ac_try;; |
|
|
4945 | esac |
|
|
4946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4948 | ac_status=$? |
|
|
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4950 | rm -f conftest.er1 |
|
|
4951 | cat conftest.err >&5 |
|
|
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4953 | (exit $ac_status); } >/dev/null && { |
|
|
4954 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4955 | test ! -s conftest.err |
|
|
4956 | }; then |
|
|
4957 | # Broken: success on invalid input. |
|
|
4958 | continue |
|
|
4959 | else |
|
|
4960 | echo "$as_me: failed program was:" >&5 |
|
|
4961 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4962 | |
|
|
4963 | # Passes both tests. |
|
|
4964 | ac_preproc_ok=: |
|
|
4965 | break |
|
|
4966 | fi |
|
|
4967 | |
|
|
4968 | rm -f conftest.err conftest.$ac_ext |
|
|
4969 | |
|
|
4970 | done |
|
|
4971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4972 | rm -f conftest.err conftest.$ac_ext |
|
|
4973 | if $ac_preproc_ok; then |
|
|
4974 | break |
|
|
4975 | fi |
|
|
4976 | |
|
|
4977 | done |
|
|
4978 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4979 | |
|
|
4980 | fi |
|
|
4981 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4982 | else |
|
|
4983 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4984 | fi |
|
|
4985 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4986 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4987 | ac_preproc_ok=false |
|
|
4988 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4989 | do |
|
|
4990 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4991 | # with a fresh cross-compiler works. |
|
|
4992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4993 | # <limits.h> exists even on freestanding compilers. |
|
|
4994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4995 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4997 | /* confdefs.h. */ |
|
|
4998 | _ACEOF |
|
|
4999 | cat confdefs.h >>conftest.$ac_ext |
|
|
5000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | #ifdef __STDC__ |
|
|
5003 | # include <limits.h> |
|
|
5004 | #else |
|
|
5005 | # include <assert.h> |
|
|
5006 | #endif |
|
|
5007 | Syntax error |
|
|
5008 | _ACEOF |
|
|
5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5010 | case "(($ac_try" in |
|
|
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5012 | *) ac_try_echo=$ac_try;; |
|
|
5013 | esac |
|
|
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5016 | ac_status=$? |
|
|
5017 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5018 | rm -f conftest.er1 |
|
|
5019 | cat conftest.err >&5 |
|
|
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5021 | (exit $ac_status); } >/dev/null && { |
|
|
5022 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5023 | test ! -s conftest.err |
|
|
5024 | }; then |
|
|
5025 | : |
|
|
5026 | else |
|
|
5027 | echo "$as_me: failed program was:" >&5 |
|
|
5028 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5029 | |
|
|
5030 | # Broken: fails on valid input. |
|
|
5031 | continue |
|
|
5032 | fi |
|
|
5033 | |
|
|
5034 | rm -f conftest.err conftest.$ac_ext |
|
|
5035 | |
|
|
5036 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5037 | # can be detected and how. |
|
|
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
|
|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
|
|
5044 | #include <ac_nonexistent.h> |
|
|
5045 | _ACEOF |
|
|
5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5047 | case "(($ac_try" in |
|
|
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5049 | *) ac_try_echo=$ac_try;; |
|
|
5050 | esac |
|
|
5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5053 | ac_status=$? |
|
|
5054 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5055 | rm -f conftest.er1 |
|
|
5056 | cat conftest.err >&5 |
|
|
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5058 | (exit $ac_status); } >/dev/null && { |
|
|
5059 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5060 | test ! -s conftest.err |
|
|
5061 | }; then |
|
|
5062 | # Broken: success on invalid input. |
|
|
5063 | continue |
|
|
5064 | else |
|
|
5065 | echo "$as_me: failed program was:" >&5 |
|
|
5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5067 | |
|
|
5068 | # Passes both tests. |
|
|
5069 | ac_preproc_ok=: |
|
|
5070 | break |
|
|
5071 | fi |
|
|
5072 | |
|
|
5073 | rm -f conftest.err conftest.$ac_ext |
|
|
5074 | |
|
|
5075 | done |
|
|
5076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5077 | rm -f conftest.err conftest.$ac_ext |
|
|
5078 | if $ac_preproc_ok; then |
|
|
5079 | : |
|
|
5080 | else |
|
|
5081 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5082 | See \`config.log' for more details." >&5 |
|
|
5083 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5084 | See \`config.log' for more details." >&2;} |
|
|
5085 | { (exit 1); exit 1; }; } |
|
|
5086 | fi |
|
|
5087 | |
|
|
5088 | ac_ext=cpp |
|
|
5089 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5093 | |
|
|
5094 | |
|
|
5095 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5096 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5097 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5099 | else |
|
|
5100 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5101 | /* confdefs.h. */ |
|
|
5102 | _ACEOF |
|
|
5103 | cat confdefs.h >>conftest.$ac_ext |
|
|
5104 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5105 | /* end confdefs.h. */ |
|
|
5106 | #include <stdlib.h> |
|
|
5107 | #include <stdarg.h> |
|
|
5108 | #include <string.h> |
|
|
5109 | #include <float.h> |
|
|
5110 | |
|
|
5111 | int |
|
|
5112 | main () |
|
|
5113 | { |
|
|
5114 | |
|
|
5115 | ; |
|
|
5116 | return 0; |
|
|
5117 | } |
|
|
5118 | _ACEOF |
|
|
5119 | rm -f conftest.$ac_objext |
|
|
5120 | if { (ac_try="$ac_compile" |
|
|
5121 | case "(($ac_try" in |
|
|
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5123 | *) ac_try_echo=$ac_try;; |
|
|
5124 | esac |
|
|
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5126 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5127 | ac_status=$? |
|
|
5128 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5129 | rm -f conftest.er1 |
|
|
5130 | cat conftest.err >&5 |
|
|
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5132 | (exit $ac_status); } && { |
|
|
5133 | test -z "$ac_cxx_werror_flag" || |
|
|
5134 | test ! -s conftest.err |
|
|
5135 | } && test -s conftest.$ac_objext; then |
|
|
5136 | ac_cv_header_stdc=yes |
|
|
5137 | else |
|
|
5138 | echo "$as_me: failed program was:" >&5 |
|
|
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5140 | |
|
|
5141 | ac_cv_header_stdc=no |
|
|
5142 | fi |
|
|
5143 | |
|
|
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5145 | |
|
|
5146 | if test $ac_cv_header_stdc = yes; then |
|
|
5147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5148 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5149 | /* confdefs.h. */ |
|
|
5150 | _ACEOF |
|
|
5151 | cat confdefs.h >>conftest.$ac_ext |
|
|
5152 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5153 | /* end confdefs.h. */ |
|
|
5154 | #include <string.h> |
|
|
5155 | |
|
|
5156 | _ACEOF |
|
|
5157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5158 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5159 | : |
|
|
5160 | else |
|
|
5161 | ac_cv_header_stdc=no |
|
|
5162 | fi |
|
|
5163 | rm -f conftest* |
|
|
5164 | |
|
|
5165 | fi |
|
|
5166 | |
|
|
5167 | if test $ac_cv_header_stdc = yes; then |
|
|
5168 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5170 | /* confdefs.h. */ |
|
|
5171 | _ACEOF |
|
|
5172 | cat confdefs.h >>conftest.$ac_ext |
|
|
5173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5174 | /* end confdefs.h. */ |
|
|
5175 | #include <stdlib.h> |
|
|
5176 | |
|
|
5177 | _ACEOF |
|
|
5178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5179 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5180 | : |
|
|
5181 | else |
|
|
5182 | ac_cv_header_stdc=no |
|
|
5183 | fi |
|
|
5184 | rm -f conftest* |
|
|
5185 | |
|
|
5186 | fi |
|
|
5187 | |
|
|
5188 | if test $ac_cv_header_stdc = yes; then |
|
|
5189 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5190 | if test "$cross_compiling" = yes; then |
|
|
5191 | : |
|
|
5192 | else |
|
|
5193 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5194 | /* confdefs.h. */ |
|
|
5195 | _ACEOF |
|
|
5196 | cat confdefs.h >>conftest.$ac_ext |
|
|
5197 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5198 | /* end confdefs.h. */ |
|
|
5199 | #include <ctype.h> |
|
|
5200 | #include <stdlib.h> |
|
|
5201 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5202 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5203 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5204 | #else |
|
|
5205 | # define ISLOWER(c) \ |
|
|
5206 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5207 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5208 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5209 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5210 | #endif |
|
|
5211 | |
|
|
5212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5213 | int |
|
|
5214 | main () |
|
|
5215 | { |
|
|
5216 | int i; |
|
|
5217 | for (i = 0; i < 256; i++) |
|
|
5218 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5219 | || toupper (i) != TOUPPER (i)) |
|
|
5220 | return 2; |
|
|
5221 | return 0; |
|
|
5222 | } |
|
|
5223 | _ACEOF |
|
|
5224 | rm -f conftest$ac_exeext |
|
|
5225 | if { (ac_try="$ac_link" |
|
|
5226 | case "(($ac_try" in |
|
|
5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5228 | *) ac_try_echo=$ac_try;; |
|
|
5229 | esac |
|
|
5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5231 | (eval "$ac_link") 2>&5 |
|
|
5232 | ac_status=$? |
|
|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5235 | { (case "(($ac_try" in |
|
|
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5237 | *) ac_try_echo=$ac_try;; |
|
|
5238 | esac |
|
|
5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5240 | (eval "$ac_try") 2>&5 |
|
|
5241 | ac_status=$? |
|
|
5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5243 | (exit $ac_status); }; }; then |
|
|
5244 | : |
|
|
5245 | else |
|
|
5246 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5247 | echo "$as_me: failed program was:" >&5 |
|
|
5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5249 | |
|
|
5250 | ( exit $ac_status ) |
|
|
5251 | ac_cv_header_stdc=no |
|
|
5252 | fi |
|
|
5253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5254 | fi |
|
|
5255 | |
|
|
5256 | |
|
|
5257 | fi |
|
|
5258 | fi |
|
|
5259 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5260 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5261 | if test $ac_cv_header_stdc = yes; then |
|
|
5262 | |
|
|
5263 | cat >>confdefs.h <<\_ACEOF |
|
|
5264 | #define STDC_HEADERS 1 |
|
|
5265 | _ACEOF |
|
|
5266 | |
|
|
5267 | fi |
|
|
5268 | |
|
|
5269 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | |
|
|
5277 | |
|
|
5278 | |
|
|
5279 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5280 | inttypes.h stdint.h unistd.h |
|
|
5281 | do |
|
|
5282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5283 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5287 | else |
|
|
5288 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5289 | /* confdefs.h. */ |
|
|
5290 | _ACEOF |
|
|
5291 | cat confdefs.h >>conftest.$ac_ext |
|
|
5292 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5293 | /* end confdefs.h. */ |
|
|
5294 | $ac_includes_default |
|
|
5295 | |
|
|
5296 | #include <$ac_header> |
|
|
5297 | _ACEOF |
|
|
5298 | rm -f conftest.$ac_objext |
|
|
5299 | if { (ac_try="$ac_compile" |
|
|
5300 | case "(($ac_try" in |
|
|
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5302 | *) ac_try_echo=$ac_try;; |
|
|
5303 | esac |
|
|
5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5305 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5306 | ac_status=$? |
|
|
5307 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5308 | rm -f conftest.er1 |
|
|
5309 | cat conftest.err >&5 |
|
|
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5311 | (exit $ac_status); } && { |
|
|
5312 | test -z "$ac_cxx_werror_flag" || |
|
|
5313 | test ! -s conftest.err |
|
|
5314 | } && test -s conftest.$ac_objext; then |
|
|
5315 | eval "$as_ac_Header=yes" |
|
|
5316 | else |
|
|
5317 | echo "$as_me: failed program was:" >&5 |
|
|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5319 | |
|
|
5320 | eval "$as_ac_Header=no" |
|
|
5321 | fi |
|
|
5322 | |
|
|
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5324 | fi |
|
|
5325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5327 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5329 | cat >>confdefs.h <<_ACEOF |
|
|
5330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5331 | _ACEOF |
|
|
5332 | |
|
|
5333 | fi |
|
|
5334 | |
|
|
5335 | done |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | |
|
|
5343 | |
|
|
5344 | |
|
|
5345 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5346 | do |
|
|
5347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5349 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5351 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5353 | fi |
|
|
5354 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5355 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5356 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5357 | else |
|
|
5358 | # Is the header compilable? |
|
|
5359 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5360 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5362 | /* confdefs.h. */ |
|
|
5363 | _ACEOF |
|
|
5364 | cat confdefs.h >>conftest.$ac_ext |
|
|
5365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5366 | /* end confdefs.h. */ |
|
|
5367 | $ac_includes_default |
|
|
5368 | #include <$ac_header> |
|
|
5369 | _ACEOF |
|
|
5370 | rm -f conftest.$ac_objext |
|
|
5371 | if { (ac_try="$ac_compile" |
|
|
5372 | case "(($ac_try" in |
|
|
5373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5374 | *) ac_try_echo=$ac_try;; |
|
|
5375 | esac |
|
|
5376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5377 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5378 | ac_status=$? |
|
|
5379 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5380 | rm -f conftest.er1 |
|
|
5381 | cat conftest.err >&5 |
|
|
5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5383 | (exit $ac_status); } && { |
|
|
5384 | test -z "$ac_cxx_werror_flag" || |
|
|
5385 | test ! -s conftest.err |
|
|
5386 | } && test -s conftest.$ac_objext; then |
|
|
5387 | ac_header_compiler=yes |
|
|
5388 | else |
|
|
5389 | echo "$as_me: failed program was:" >&5 |
|
|
5390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5391 | |
|
|
5392 | ac_header_compiler=no |
|
|
5393 | fi |
|
|
5394 | |
|
|
5395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5396 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5397 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5398 | |
|
|
5399 | # Is the header present? |
|
|
5400 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5401 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5402 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5403 | /* confdefs.h. */ |
|
|
5404 | _ACEOF |
|
|
5405 | cat confdefs.h >>conftest.$ac_ext |
|
|
5406 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5407 | /* end confdefs.h. */ |
|
|
5408 | #include <$ac_header> |
|
|
5409 | _ACEOF |
|
|
5410 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5411 | case "(($ac_try" in |
|
|
5412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5413 | *) ac_try_echo=$ac_try;; |
|
|
5414 | esac |
|
|
5415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5416 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5417 | ac_status=$? |
|
|
5418 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5419 | rm -f conftest.er1 |
|
|
5420 | cat conftest.err >&5 |
|
|
5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5422 | (exit $ac_status); } >/dev/null && { |
|
|
5423 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5424 | test ! -s conftest.err |
|
|
5425 | }; then |
|
|
5426 | ac_header_preproc=yes |
|
|
5427 | else |
|
|
5428 | echo "$as_me: failed program was:" >&5 |
|
|
5429 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5430 | |
|
|
5431 | ac_header_preproc=no |
|
|
5432 | fi |
|
|
5433 | |
|
|
5434 | rm -f conftest.err conftest.$ac_ext |
|
|
5435 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5436 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5437 | |
|
|
5438 | # So? What about this header? |
|
|
5439 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5440 | yes:no: ) |
|
|
5441 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5442 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5444 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5445 | ac_header_preproc=yes |
|
|
5446 | ;; |
|
|
5447 | no:yes:* ) |
|
|
5448 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5449 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5450 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5451 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5452 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5453 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5454 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5455 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5457 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5459 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5460 | |
|
|
5461 | ;; |
|
|
5462 | esac |
|
|
5463 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5465 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5467 | else |
|
|
5468 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5469 | fi |
|
|
5470 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5471 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5472 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5473 | |
|
|
5474 | fi |
|
|
5475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5476 | cat >>confdefs.h <<_ACEOF |
|
|
5477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5478 | _ACEOF |
|
|
5479 | |
|
|
5480 | fi |
|
|
5481 | |
|
|
5482 | done |
|
|
5483 | |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | |
|
|
5489 | |
|
|
5490 | |
|
|
5491 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5492 | do |
|
|
5493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5494 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5496 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5498 | else |
|
|
5499 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5500 | /* confdefs.h. */ |
|
|
5501 | _ACEOF |
|
|
5502 | cat confdefs.h >>conftest.$ac_ext |
|
|
5503 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5504 | /* end confdefs.h. */ |
|
|
5505 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5506 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5507 | #define $ac_func innocuous_$ac_func |
|
|
5508 | |
|
|
5509 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5510 | which can conflict with char $ac_func (); below. |
|
|
5511 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5512 | <limits.h> exists even on freestanding compilers. */ |
|
|
5513 | |
|
|
5514 | #ifdef __STDC__ |
|
|
5515 | # include <limits.h> |
|
|
5516 | #else |
|
|
5517 | # include <assert.h> |
|
|
5518 | #endif |
|
|
5519 | |
|
|
5520 | #undef $ac_func |
|
|
5521 | |
|
|
5522 | /* Override any GCC internal prototype to avoid an error. |
|
|
5523 | Use char because int might match the return type of a GCC |
|
|
5524 | builtin and then its argument prototype would still apply. */ |
|
|
5525 | #ifdef __cplusplus |
|
|
5526 | extern "C" |
|
|
5527 | #endif |
|
|
5528 | char $ac_func (); |
|
|
5529 | /* The GNU C library defines this for functions which it implements |
|
|
5530 | to always fail with ENOSYS. Some functions are actually named |
|
|
5531 | something starting with __ and the normal name is an alias. */ |
|
|
5532 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5533 | choke me |
|
|
5534 | #endif |
|
|
5535 | |
|
|
5536 | int |
|
|
5537 | main () |
|
|
5538 | { |
|
|
5539 | return $ac_func (); |
|
|
5540 | ; |
|
|
5541 | return 0; |
|
|
5542 | } |
|
|
5543 | _ACEOF |
|
|
5544 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5545 | if { (ac_try="$ac_link" |
|
|
5546 | case "(($ac_try" in |
|
|
5547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5548 | *) ac_try_echo=$ac_try;; |
|
|
5549 | esac |
|
|
5550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5551 | (eval "$ac_link") 2>conftest.er1 |
|
|
5552 | ac_status=$? |
|
|
5553 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5554 | rm -f conftest.er1 |
|
|
5555 | cat conftest.err >&5 |
|
|
5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5557 | (exit $ac_status); } && { |
|
|
5558 | test -z "$ac_cxx_werror_flag" || |
|
|
5559 | test ! -s conftest.err |
|
|
5560 | } && test -s conftest$ac_exeext && |
|
|
5561 | $as_test_x conftest$ac_exeext; then |
|
|
5562 | eval "$as_ac_var=yes" |
|
|
5563 | else |
|
|
5564 | echo "$as_me: failed program was:" >&5 |
|
|
5565 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5566 | |
|
|
5567 | eval "$as_ac_var=no" |
|
|
5568 | fi |
|
|
5569 | |
|
|
5570 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5571 | conftest$ac_exeext conftest.$ac_ext |
|
|
5572 | fi |
|
|
5573 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5574 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5575 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5576 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5577 | cat >>confdefs.h <<_ACEOF |
|
|
5578 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5579 | _ACEOF |
|
|
5580 | |
|
|
5581 | fi |
|
|
5582 | done |
|
|
5583 | |
|
|
5584 | |
|
|
5585 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5586 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5587 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5589 | else |
|
|
5590 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5591 | /* confdefs.h. */ |
|
|
5592 | _ACEOF |
|
|
5593 | cat confdefs.h >>conftest.$ac_ext |
|
|
5594 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5595 | /* end confdefs.h. */ |
|
|
5596 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5598 | #define clock_gettime innocuous_clock_gettime |
|
|
5599 | |
|
|
5600 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5601 | which can conflict with char clock_gettime (); below. |
|
|
5602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5603 | <limits.h> exists even on freestanding compilers. */ |
|
|
5604 | |
|
|
5605 | #ifdef __STDC__ |
|
|
5606 | # include <limits.h> |
|
|
5607 | #else |
|
|
5608 | # include <assert.h> |
|
|
5609 | #endif |
|
|
5610 | |
|
|
5611 | #undef clock_gettime |
|
|
5612 | |
|
|
5613 | /* Override any GCC internal prototype to avoid an error. |
|
|
5614 | Use char because int might match the return type of a GCC |
|
|
5615 | builtin and then its argument prototype would still apply. */ |
|
|
5616 | #ifdef __cplusplus |
|
|
5617 | extern "C" |
|
|
5618 | #endif |
|
|
5619 | char clock_gettime (); |
|
|
5620 | /* The GNU C library defines this for functions which it implements |
|
|
5621 | to always fail with ENOSYS. Some functions are actually named |
|
|
5622 | something starting with __ and the normal name is an alias. */ |
|
|
5623 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5624 | choke me |
|
|
5625 | #endif |
|
|
5626 | |
|
|
5627 | int |
|
|
5628 | main () |
|
|
5629 | { |
|
|
5630 | return clock_gettime (); |
|
|
5631 | ; |
|
|
5632 | return 0; |
|
|
5633 | } |
|
|
5634 | _ACEOF |
|
|
5635 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5636 | if { (ac_try="$ac_link" |
|
|
5637 | case "(($ac_try" in |
|
|
5638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5639 | *) ac_try_echo=$ac_try;; |
|
|
5640 | esac |
|
|
5641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5642 | (eval "$ac_link") 2>conftest.er1 |
|
|
5643 | ac_status=$? |
|
|
5644 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5645 | rm -f conftest.er1 |
|
|
5646 | cat conftest.err >&5 |
|
|
5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5648 | (exit $ac_status); } && { |
|
|
5649 | test -z "$ac_cxx_werror_flag" || |
|
|
5650 | test ! -s conftest.err |
|
|
5651 | } && test -s conftest$ac_exeext && |
|
|
5652 | $as_test_x conftest$ac_exeext; then |
|
|
5653 | ac_cv_func_clock_gettime=yes |
|
|
5654 | else |
|
|
5655 | echo "$as_me: failed program was:" >&5 |
|
|
5656 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5657 | |
|
|
5658 | ac_cv_func_clock_gettime=no |
|
|
5659 | fi |
|
|
5660 | |
|
|
5661 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5662 | conftest$ac_exeext conftest.$ac_ext |
|
|
5663 | fi |
|
|
5664 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5665 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5666 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5667 | : |
|
|
5668 | else |
|
|
5669 | |
|
|
5670 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5671 | |
|
|
5672 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5673 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5674 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5676 | else |
|
|
5677 | ac_check_lib_save_LIBS=$LIBS |
|
|
5678 | LIBS="-lrt $LIBS" |
|
|
5679 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5680 | /* confdefs.h. */ |
|
|
5681 | _ACEOF |
|
|
5682 | cat confdefs.h >>conftest.$ac_ext |
|
|
5683 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5684 | /* end confdefs.h. */ |
|
|
5685 | |
|
|
5686 | /* Override any GCC internal prototype to avoid an error. |
|
|
5687 | Use char because int might match the return type of a GCC |
|
|
5688 | builtin and then its argument prototype would still apply. */ |
|
|
5689 | #ifdef __cplusplus |
|
|
5690 | extern "C" |
|
|
5691 | #endif |
|
|
5692 | char clock_gettime (); |
|
|
5693 | int |
|
|
5694 | main () |
|
|
5695 | { |
|
|
5696 | return clock_gettime (); |
|
|
5697 | ; |
|
|
5698 | return 0; |
|
|
5699 | } |
|
|
5700 | _ACEOF |
|
|
5701 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5702 | if { (ac_try="$ac_link" |
|
|
5703 | case "(($ac_try" in |
|
|
5704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5705 | *) ac_try_echo=$ac_try;; |
|
|
5706 | esac |
|
|
5707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5708 | (eval "$ac_link") 2>conftest.er1 |
|
|
5709 | ac_status=$? |
|
|
5710 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5711 | rm -f conftest.er1 |
|
|
5712 | cat conftest.err >&5 |
|
|
5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5714 | (exit $ac_status); } && { |
|
|
5715 | test -z "$ac_cxx_werror_flag" || |
|
|
5716 | test ! -s conftest.err |
|
|
5717 | } && test -s conftest$ac_exeext && |
|
|
5718 | $as_test_x conftest$ac_exeext; then |
|
|
5719 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5720 | else |
|
|
5721 | echo "$as_me: failed program was:" >&5 |
|
|
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5723 | |
|
|
5724 | ac_cv_lib_rt_clock_gettime=no |
|
|
5725 | fi |
|
|
5726 | |
|
|
5727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5728 | conftest$ac_exeext conftest.$ac_ext |
|
|
5729 | LIBS=$ac_check_lib_save_LIBS |
|
|
5730 | fi |
|
|
5731 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5732 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5733 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5734 | cat >>confdefs.h <<_ACEOF |
|
|
5735 | #define HAVE_LIBRT 1 |
|
|
5736 | _ACEOF |
|
|
5737 | |
|
|
5738 | LIBS="-lrt $LIBS" |
|
|
5739 | |
|
|
5740 | fi |
|
|
5741 | |
|
|
5742 | unset ac_cv_func_clock_gettime |
|
|
5743 | |
|
|
5744 | for ac_func in clock_gettime |
|
|
5745 | do |
|
|
5746 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5747 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5748 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5749 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5751 | else |
|
|
5752 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5753 | /* confdefs.h. */ |
|
|
5754 | _ACEOF |
|
|
5755 | cat confdefs.h >>conftest.$ac_ext |
|
|
5756 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5757 | /* end confdefs.h. */ |
|
|
5758 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5760 | #define $ac_func innocuous_$ac_func |
|
|
5761 | |
|
|
5762 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5763 | which can conflict with char $ac_func (); below. |
|
|
5764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5765 | <limits.h> exists even on freestanding compilers. */ |
|
|
5766 | |
|
|
5767 | #ifdef __STDC__ |
|
|
5768 | # include <limits.h> |
|
|
5769 | #else |
|
|
5770 | # include <assert.h> |
|
|
5771 | #endif |
|
|
5772 | |
|
|
5773 | #undef $ac_func |
|
|
5774 | |
|
|
5775 | /* Override any GCC internal prototype to avoid an error. |
|
|
5776 | Use char because int might match the return type of a GCC |
|
|
5777 | builtin and then its argument prototype would still apply. */ |
|
|
5778 | #ifdef __cplusplus |
|
|
5779 | extern "C" |
|
|
5780 | #endif |
|
|
5781 | char $ac_func (); |
|
|
5782 | /* The GNU C library defines this for functions which it implements |
|
|
5783 | to always fail with ENOSYS. Some functions are actually named |
|
|
5784 | something starting with __ and the normal name is an alias. */ |
|
|
5785 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5786 | choke me |
|
|
5787 | #endif |
|
|
5788 | |
|
|
5789 | int |
|
|
5790 | main () |
|
|
5791 | { |
|
|
5792 | return $ac_func (); |
|
|
5793 | ; |
|
|
5794 | return 0; |
|
|
5795 | } |
|
|
5796 | _ACEOF |
|
|
5797 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5798 | if { (ac_try="$ac_link" |
|
|
5799 | case "(($ac_try" in |
|
|
5800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5801 | *) ac_try_echo=$ac_try;; |
|
|
5802 | esac |
|
|
5803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5804 | (eval "$ac_link") 2>conftest.er1 |
|
|
5805 | ac_status=$? |
|
|
5806 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5807 | rm -f conftest.er1 |
|
|
5808 | cat conftest.err >&5 |
|
|
5809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5810 | (exit $ac_status); } && { |
|
|
5811 | test -z "$ac_cxx_werror_flag" || |
|
|
5812 | test ! -s conftest.err |
|
|
5813 | } && test -s conftest$ac_exeext && |
|
|
5814 | $as_test_x conftest$ac_exeext; then |
|
|
5815 | eval "$as_ac_var=yes" |
|
|
5816 | else |
|
|
5817 | echo "$as_me: failed program was:" >&5 |
|
|
5818 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5819 | |
|
|
5820 | eval "$as_ac_var=no" |
|
|
5821 | fi |
|
|
5822 | |
|
|
5823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5824 | conftest$ac_exeext conftest.$ac_ext |
|
|
5825 | fi |
|
|
5826 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5828 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5829 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5830 | cat >>confdefs.h <<_ACEOF |
|
|
5831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5832 | _ACEOF |
|
|
5833 | |
|
|
5834 | fi |
|
|
5835 | done |
|
|
5836 | |
|
|
5837 | fi |
|
|
5838 | |
|
|
5839 | fi |
|
|
5840 | |
|
|
5841 | |
|
|
5842 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5843 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5844 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5846 | else |
|
|
5847 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5848 | /* confdefs.h. */ |
|
|
5849 | _ACEOF |
|
|
5850 | cat confdefs.h >>conftest.$ac_ext |
|
|
5851 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5852 | /* end confdefs.h. */ |
|
|
5853 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5855 | #define nanosleep innocuous_nanosleep |
|
|
5856 | |
|
|
5857 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5858 | which can conflict with char nanosleep (); below. |
|
|
5859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5860 | <limits.h> exists even on freestanding compilers. */ |
|
|
5861 | |
|
|
5862 | #ifdef __STDC__ |
|
|
5863 | # include <limits.h> |
|
|
5864 | #else |
|
|
5865 | # include <assert.h> |
|
|
5866 | #endif |
|
|
5867 | |
|
|
5868 | #undef nanosleep |
|
|
5869 | |
|
|
5870 | /* Override any GCC internal prototype to avoid an error. |
|
|
5871 | Use char because int might match the return type of a GCC |
|
|
5872 | builtin and then its argument prototype would still apply. */ |
|
|
5873 | #ifdef __cplusplus |
|
|
5874 | extern "C" |
|
|
5875 | #endif |
|
|
5876 | char nanosleep (); |
|
|
5877 | /* The GNU C library defines this for functions which it implements |
|
|
5878 | to always fail with ENOSYS. Some functions are actually named |
|
|
5879 | something starting with __ and the normal name is an alias. */ |
|
|
5880 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5881 | choke me |
|
|
5882 | #endif |
|
|
5883 | |
|
|
5884 | int |
|
|
5885 | main () |
|
|
5886 | { |
|
|
5887 | return nanosleep (); |
|
|
5888 | ; |
|
|
5889 | return 0; |
|
|
5890 | } |
|
|
5891 | _ACEOF |
|
|
5892 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5893 | if { (ac_try="$ac_link" |
|
|
5894 | case "(($ac_try" in |
|
|
5895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5896 | *) ac_try_echo=$ac_try;; |
|
|
5897 | esac |
|
|
5898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5899 | (eval "$ac_link") 2>conftest.er1 |
|
|
5900 | ac_status=$? |
|
|
5901 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5902 | rm -f conftest.er1 |
|
|
5903 | cat conftest.err >&5 |
|
|
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5905 | (exit $ac_status); } && { |
|
|
5906 | test -z "$ac_cxx_werror_flag" || |
|
|
5907 | test ! -s conftest.err |
|
|
5908 | } && test -s conftest$ac_exeext && |
|
|
5909 | $as_test_x conftest$ac_exeext; then |
|
|
5910 | ac_cv_func_nanosleep=yes |
|
|
5911 | else |
|
|
5912 | echo "$as_me: failed program was:" >&5 |
|
|
5913 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5914 | |
|
|
5915 | ac_cv_func_nanosleep=no |
|
|
5916 | fi |
|
|
5917 | |
|
|
5918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5919 | conftest$ac_exeext conftest.$ac_ext |
|
|
5920 | fi |
|
|
5921 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5922 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5923 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5924 | : |
|
|
5925 | else |
|
|
5926 | |
|
|
5927 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5928 | |
|
|
5929 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5930 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5931 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5933 | else |
|
|
5934 | ac_check_lib_save_LIBS=$LIBS |
|
|
5935 | LIBS="-lrt $LIBS" |
|
|
5936 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5937 | /* confdefs.h. */ |
|
|
5938 | _ACEOF |
|
|
5939 | cat confdefs.h >>conftest.$ac_ext |
|
|
5940 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5941 | /* end confdefs.h. */ |
|
|
5942 | |
|
|
5943 | /* Override any GCC internal prototype to avoid an error. |
|
|
5944 | Use char because int might match the return type of a GCC |
|
|
5945 | builtin and then its argument prototype would still apply. */ |
|
|
5946 | #ifdef __cplusplus |
|
|
5947 | extern "C" |
|
|
5948 | #endif |
|
|
5949 | char nanosleep (); |
|
|
5950 | int |
|
|
5951 | main () |
|
|
5952 | { |
|
|
5953 | return nanosleep (); |
|
|
5954 | ; |
|
|
5955 | return 0; |
|
|
5956 | } |
|
|
5957 | _ACEOF |
|
|
5958 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5959 | if { (ac_try="$ac_link" |
|
|
5960 | case "(($ac_try" in |
|
|
5961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5962 | *) ac_try_echo=$ac_try;; |
|
|
5963 | esac |
|
|
5964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5965 | (eval "$ac_link") 2>conftest.er1 |
|
|
5966 | ac_status=$? |
|
|
5967 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5968 | rm -f conftest.er1 |
|
|
5969 | cat conftest.err >&5 |
|
|
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5971 | (exit $ac_status); } && { |
|
|
5972 | test -z "$ac_cxx_werror_flag" || |
|
|
5973 | test ! -s conftest.err |
|
|
5974 | } && test -s conftest$ac_exeext && |
|
|
5975 | $as_test_x conftest$ac_exeext; then |
|
|
5976 | ac_cv_lib_rt_nanosleep=yes |
|
|
5977 | else |
|
|
5978 | echo "$as_me: failed program was:" >&5 |
|
|
5979 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5980 | |
|
|
5981 | ac_cv_lib_rt_nanosleep=no |
|
|
5982 | fi |
|
|
5983 | |
|
|
5984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5985 | conftest$ac_exeext conftest.$ac_ext |
|
|
5986 | LIBS=$ac_check_lib_save_LIBS |
|
|
5987 | fi |
|
|
5988 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5989 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5990 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5991 | cat >>confdefs.h <<_ACEOF |
|
|
5992 | #define HAVE_LIBRT 1 |
|
|
5993 | _ACEOF |
|
|
5994 | |
|
|
5995 | LIBS="-lrt $LIBS" |
|
|
5996 | |
|
|
5997 | fi |
|
|
5998 | |
|
|
5999 | unset ac_cv_func_nanosleep |
|
|
6000 | |
|
|
6001 | for ac_func in nanosleep |
|
|
6002 | do |
|
|
6003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6004 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6006 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6008 | else |
|
|
6009 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6010 | /* confdefs.h. */ |
|
|
6011 | _ACEOF |
|
|
6012 | cat confdefs.h >>conftest.$ac_ext |
|
|
6013 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6014 | /* end confdefs.h. */ |
|
|
6015 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6017 | #define $ac_func innocuous_$ac_func |
|
|
6018 | |
|
|
6019 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6020 | which can conflict with char $ac_func (); below. |
|
|
6021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6022 | <limits.h> exists even on freestanding compilers. */ |
|
|
6023 | |
|
|
6024 | #ifdef __STDC__ |
|
|
6025 | # include <limits.h> |
|
|
6026 | #else |
|
|
6027 | # include <assert.h> |
|
|
6028 | #endif |
|
|
6029 | |
|
|
6030 | #undef $ac_func |
|
|
6031 | |
|
|
6032 | /* Override any GCC internal prototype to avoid an error. |
|
|
6033 | Use char because int might match the return type of a GCC |
|
|
6034 | builtin and then its argument prototype would still apply. */ |
|
|
6035 | #ifdef __cplusplus |
|
|
6036 | extern "C" |
|
|
6037 | #endif |
|
|
6038 | char $ac_func (); |
|
|
6039 | /* The GNU C library defines this for functions which it implements |
|
|
6040 | to always fail with ENOSYS. Some functions are actually named |
|
|
6041 | something starting with __ and the normal name is an alias. */ |
|
|
6042 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6043 | choke me |
|
|
6044 | #endif |
|
|
6045 | |
|
|
6046 | int |
|
|
6047 | main () |
|
|
6048 | { |
|
|
6049 | return $ac_func (); |
|
|
6050 | ; |
|
|
6051 | return 0; |
|
|
6052 | } |
|
|
6053 | _ACEOF |
|
|
6054 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6055 | if { (ac_try="$ac_link" |
|
|
6056 | case "(($ac_try" in |
|
|
6057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6058 | *) ac_try_echo=$ac_try;; |
|
|
6059 | esac |
|
|
6060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6061 | (eval "$ac_link") 2>conftest.er1 |
|
|
6062 | ac_status=$? |
|
|
6063 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6064 | rm -f conftest.er1 |
|
|
6065 | cat conftest.err >&5 |
|
|
6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6067 | (exit $ac_status); } && { |
|
|
6068 | test -z "$ac_cxx_werror_flag" || |
|
|
6069 | test ! -s conftest.err |
|
|
6070 | } && test -s conftest$ac_exeext && |
|
|
6071 | $as_test_x conftest$ac_exeext; then |
|
|
6072 | eval "$as_ac_var=yes" |
|
|
6073 | else |
|
|
6074 | echo "$as_me: failed program was:" >&5 |
|
|
6075 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6076 | |
|
|
6077 | eval "$as_ac_var=no" |
|
|
6078 | fi |
|
|
6079 | |
|
|
6080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6081 | conftest$ac_exeext conftest.$ac_ext |
|
|
6082 | fi |
|
|
6083 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6084 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6085 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6086 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6087 | cat >>confdefs.h <<_ACEOF |
|
|
6088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6089 | _ACEOF |
|
|
6090 | |
|
|
6091 | fi |
|
|
6092 | done |
|
|
6093 | |
|
|
6094 | fi |
|
|
6095 | |
|
|
6096 | fi |
|
|
6097 | |
|
|
6098 | |
|
|
6099 | |
|
|
6100 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6101 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6102 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6104 | else |
|
|
6105 | ac_check_lib_save_LIBS=$LIBS |
|
|
6106 | LIBS="-lm $LIBS" |
|
|
6107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6108 | /* confdefs.h. */ |
|
|
6109 | _ACEOF |
|
|
6110 | cat confdefs.h >>conftest.$ac_ext |
|
|
6111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6112 | /* end confdefs.h. */ |
|
|
6113 | |
|
|
6114 | /* Override any GCC internal prototype to avoid an error. |
|
|
6115 | Use char because int might match the return type of a GCC |
|
|
6116 | builtin and then its argument prototype would still apply. */ |
|
|
6117 | #ifdef __cplusplus |
|
|
6118 | extern "C" |
|
|
6119 | #endif |
|
|
6120 | char ceil (); |
|
|
6121 | int |
|
|
6122 | main () |
|
|
6123 | { |
|
|
6124 | return ceil (); |
|
|
6125 | ; |
|
|
6126 | return 0; |
|
|
6127 | } |
|
|
6128 | _ACEOF |
|
|
6129 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6130 | if { (ac_try="$ac_link" |
|
|
6131 | case "(($ac_try" in |
|
|
6132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6133 | *) ac_try_echo=$ac_try;; |
|
|
6134 | esac |
|
|
6135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6136 | (eval "$ac_link") 2>conftest.er1 |
|
|
6137 | ac_status=$? |
|
|
6138 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6139 | rm -f conftest.er1 |
|
|
6140 | cat conftest.err >&5 |
|
|
6141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6142 | (exit $ac_status); } && { |
|
|
6143 | test -z "$ac_cxx_werror_flag" || |
|
|
6144 | test ! -s conftest.err |
|
|
6145 | } && test -s conftest$ac_exeext && |
|
|
6146 | $as_test_x conftest$ac_exeext; then |
|
|
6147 | ac_cv_lib_m_ceil=yes |
|
|
6148 | else |
|
|
6149 | echo "$as_me: failed program was:" >&5 |
|
|
6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6151 | |
|
|
6152 | ac_cv_lib_m_ceil=no |
|
|
6153 | fi |
|
|
6154 | |
|
|
6155 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6156 | conftest$ac_exeext conftest.$ac_ext |
|
|
6157 | LIBS=$ac_check_lib_save_LIBS |
|
|
6158 | fi |
|
|
6159 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6160 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6161 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6162 | cat >>confdefs.h <<_ACEOF |
|
|
6163 | #define HAVE_LIBM 1 |
|
|
6164 | _ACEOF |
|
|
6165 | |
|
|
6166 | LIBS="-lm $LIBS" |
|
|
6167 | |
|
|
6168 | fi |
|
|
6169 | |
|
|
6170 | |
|
|
6171 | |
|
|
6172 | |
4834 | |
6173 | |
4835 | |
6174 | |
4836 | |
6175 | |
4837 | # Extract the first word of "tic", so it can be a program name with args. |
6176 | # Extract the first word of "tic", so it can be a program name with args. |
4838 | set dummy tic; ac_word=$2 |
6177 | set dummy tic; ac_word=$2 |
… | |
… | |
4872 | else |
6211 | else |
4873 | { echo "$as_me:$LINENO: result: no" >&5 |
6212 | { echo "$as_me:$LINENO: result: no" >&5 |
4874 | echo "${ECHO_T}no" >&6; } |
6213 | echo "${ECHO_T}no" >&6; } |
4875 | fi |
6214 | fi |
4876 | |
6215 | |
4877 | |
|
|
4878 | |
|
|
4879 | |
|
|
4880 | |
|
|
4881 | ac_ext=cpp |
|
|
4882 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4883 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4884 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4885 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4886 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4887 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4888 | if test -z "$CXXCPP"; then |
|
|
4889 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4891 | else |
|
|
4892 | # Double quotes because CXXCPP needs to be expanded |
|
|
4893 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4894 | do |
|
|
4895 | ac_preproc_ok=false |
|
|
4896 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4897 | do |
|
|
4898 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4899 | # with a fresh cross-compiler works. |
|
|
4900 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4901 | # <limits.h> exists even on freestanding compilers. |
|
|
4902 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4903 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4904 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4905 | /* confdefs.h. */ |
|
|
4906 | _ACEOF |
|
|
4907 | cat confdefs.h >>conftest.$ac_ext |
|
|
4908 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4909 | /* end confdefs.h. */ |
|
|
4910 | #ifdef __STDC__ |
|
|
4911 | # include <limits.h> |
|
|
4912 | #else |
|
|
4913 | # include <assert.h> |
|
|
4914 | #endif |
|
|
4915 | Syntax error |
|
|
4916 | _ACEOF |
|
|
4917 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4918 | case "(($ac_try" in |
|
|
4919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4920 | *) ac_try_echo=$ac_try;; |
|
|
4921 | esac |
|
|
4922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4924 | ac_status=$? |
|
|
4925 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4926 | rm -f conftest.er1 |
|
|
4927 | cat conftest.err >&5 |
|
|
4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4929 | (exit $ac_status); } >/dev/null && { |
|
|
4930 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4931 | test ! -s conftest.err |
|
|
4932 | }; then |
|
|
4933 | : |
|
|
4934 | else |
|
|
4935 | echo "$as_me: failed program was:" >&5 |
|
|
4936 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4937 | |
|
|
4938 | # Broken: fails on valid input. |
|
|
4939 | continue |
|
|
4940 | fi |
|
|
4941 | |
|
|
4942 | rm -f conftest.err conftest.$ac_ext |
|
|
4943 | |
|
|
4944 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4945 | # can be detected and how. |
|
|
4946 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4947 | /* confdefs.h. */ |
|
|
4948 | _ACEOF |
|
|
4949 | cat confdefs.h >>conftest.$ac_ext |
|
|
4950 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4951 | /* end confdefs.h. */ |
|
|
4952 | #include <ac_nonexistent.h> |
|
|
4953 | _ACEOF |
|
|
4954 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4955 | case "(($ac_try" in |
|
|
4956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4957 | *) ac_try_echo=$ac_try;; |
|
|
4958 | esac |
|
|
4959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4960 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4961 | ac_status=$? |
|
|
4962 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4963 | rm -f conftest.er1 |
|
|
4964 | cat conftest.err >&5 |
|
|
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4966 | (exit $ac_status); } >/dev/null && { |
|
|
4967 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4968 | test ! -s conftest.err |
|
|
4969 | }; then |
|
|
4970 | # Broken: success on invalid input. |
|
|
4971 | continue |
|
|
4972 | else |
|
|
4973 | echo "$as_me: failed program was:" >&5 |
|
|
4974 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4975 | |
|
|
4976 | # Passes both tests. |
|
|
4977 | ac_preproc_ok=: |
|
|
4978 | break |
|
|
4979 | fi |
|
|
4980 | |
|
|
4981 | rm -f conftest.err conftest.$ac_ext |
|
|
4982 | |
|
|
4983 | done |
|
|
4984 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4985 | rm -f conftest.err conftest.$ac_ext |
|
|
4986 | if $ac_preproc_ok; then |
|
|
4987 | break |
|
|
4988 | fi |
|
|
4989 | |
|
|
4990 | done |
|
|
4991 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4992 | |
|
|
4993 | fi |
|
|
4994 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4995 | else |
|
|
4996 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4997 | fi |
|
|
4998 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4999 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5000 | ac_preproc_ok=false |
|
|
5001 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5002 | do |
|
|
5003 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5004 | # with a fresh cross-compiler works. |
|
|
5005 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5006 | # <limits.h> exists even on freestanding compilers. |
|
|
5007 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5008 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5009 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5010 | /* confdefs.h. */ |
|
|
5011 | _ACEOF |
|
|
5012 | cat confdefs.h >>conftest.$ac_ext |
|
|
5013 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5014 | /* end confdefs.h. */ |
|
|
5015 | #ifdef __STDC__ |
|
|
5016 | # include <limits.h> |
|
|
5017 | #else |
|
|
5018 | # include <assert.h> |
|
|
5019 | #endif |
|
|
5020 | Syntax error |
|
|
5021 | _ACEOF |
|
|
5022 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5023 | case "(($ac_try" in |
|
|
5024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5025 | *) ac_try_echo=$ac_try;; |
|
|
5026 | esac |
|
|
5027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5028 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5029 | ac_status=$? |
|
|
5030 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5031 | rm -f conftest.er1 |
|
|
5032 | cat conftest.err >&5 |
|
|
5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5034 | (exit $ac_status); } >/dev/null && { |
|
|
5035 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5036 | test ! -s conftest.err |
|
|
5037 | }; then |
|
|
5038 | : |
|
|
5039 | else |
|
|
5040 | echo "$as_me: failed program was:" >&5 |
|
|
5041 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5042 | |
|
|
5043 | # Broken: fails on valid input. |
|
|
5044 | continue |
|
|
5045 | fi |
|
|
5046 | |
|
|
5047 | rm -f conftest.err conftest.$ac_ext |
|
|
5048 | |
|
|
5049 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5050 | # can be detected and how. |
|
|
5051 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5052 | /* confdefs.h. */ |
|
|
5053 | _ACEOF |
|
|
5054 | cat confdefs.h >>conftest.$ac_ext |
|
|
5055 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5056 | /* end confdefs.h. */ |
|
|
5057 | #include <ac_nonexistent.h> |
|
|
5058 | _ACEOF |
|
|
5059 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5060 | case "(($ac_try" in |
|
|
5061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5062 | *) ac_try_echo=$ac_try;; |
|
|
5063 | esac |
|
|
5064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5065 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5066 | ac_status=$? |
|
|
5067 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5068 | rm -f conftest.er1 |
|
|
5069 | cat conftest.err >&5 |
|
|
5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5071 | (exit $ac_status); } >/dev/null && { |
|
|
5072 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5073 | test ! -s conftest.err |
|
|
5074 | }; then |
|
|
5075 | # Broken: success on invalid input. |
|
|
5076 | continue |
|
|
5077 | else |
|
|
5078 | echo "$as_me: failed program was:" >&5 |
|
|
5079 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5080 | |
|
|
5081 | # Passes both tests. |
|
|
5082 | ac_preproc_ok=: |
|
|
5083 | break |
|
|
5084 | fi |
|
|
5085 | |
|
|
5086 | rm -f conftest.err conftest.$ac_ext |
|
|
5087 | |
|
|
5088 | done |
|
|
5089 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5090 | rm -f conftest.err conftest.$ac_ext |
|
|
5091 | if $ac_preproc_ok; then |
|
|
5092 | : |
|
|
5093 | else |
|
|
5094 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5095 | See \`config.log' for more details." >&5 |
|
|
5096 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5097 | See \`config.log' for more details." >&2;} |
|
|
5098 | { (exit 1); exit 1; }; } |
|
|
5099 | fi |
|
|
5100 | |
|
|
5101 | ac_ext=cpp |
|
|
5102 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5103 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5104 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5105 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5106 | |
6216 | |
5107 | |
6217 | |
5108 | { echo "$as_me:$LINENO: checking for X" >&5 |
6218 | { echo "$as_me:$LINENO: checking for X" >&5 |
5109 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6219 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5110 | |
6220 | |
… | |
… | |
6496 | echo "${ECHO_T}no" >&6; } |
7606 | echo "${ECHO_T}no" >&6; } |
6497 | fi |
7607 | fi |
6498 | fi |
7608 | fi |
6499 | fi |
7609 | fi |
6500 | |
7610 | |
6501 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6502 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6503 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6505 | else |
|
|
6506 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6507 | /* confdefs.h. */ |
|
|
6508 | _ACEOF |
|
|
6509 | cat confdefs.h >>conftest.$ac_ext |
|
|
6510 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6511 | /* end confdefs.h. */ |
|
|
6512 | #include <sys/types.h> |
|
|
6513 | #include <sys/wait.h> |
|
|
6514 | #ifndef WEXITSTATUS |
|
|
6515 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6516 | #endif |
|
|
6517 | #ifndef WIFEXITED |
|
|
6518 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6519 | #endif |
|
|
6520 | |
|
|
6521 | int |
|
|
6522 | main () |
|
|
6523 | { |
|
|
6524 | int s; |
|
|
6525 | wait (&s); |
|
|
6526 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6527 | ; |
|
|
6528 | return 0; |
|
|
6529 | } |
|
|
6530 | _ACEOF |
|
|
6531 | rm -f conftest.$ac_objext |
|
|
6532 | if { (ac_try="$ac_compile" |
|
|
6533 | case "(($ac_try" in |
|
|
6534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6535 | *) ac_try_echo=$ac_try;; |
|
|
6536 | esac |
|
|
6537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6538 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6539 | ac_status=$? |
|
|
6540 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6541 | rm -f conftest.er1 |
|
|
6542 | cat conftest.err >&5 |
|
|
6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6544 | (exit $ac_status); } && { |
|
|
6545 | test -z "$ac_cxx_werror_flag" || |
|
|
6546 | test ! -s conftest.err |
|
|
6547 | } && test -s conftest.$ac_objext; then |
|
|
6548 | ac_cv_header_sys_wait_h=yes |
|
|
6549 | else |
|
|
6550 | echo "$as_me: failed program was:" >&5 |
|
|
6551 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6552 | |
|
|
6553 | ac_cv_header_sys_wait_h=no |
|
|
6554 | fi |
|
|
6555 | |
|
|
6556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6557 | fi |
|
|
6558 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6559 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6560 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6561 | |
|
|
6562 | cat >>confdefs.h <<\_ACEOF |
|
|
6563 | #define HAVE_SYS_WAIT_H 1 |
|
|
6564 | _ACEOF |
|
|
6565 | |
|
|
6566 | fi |
|
|
6567 | |
|
|
6568 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6569 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6570 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6572 | else |
|
|
6573 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6574 | /* confdefs.h. */ |
|
|
6575 | _ACEOF |
|
|
6576 | cat confdefs.h >>conftest.$ac_ext |
|
|
6577 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6578 | /* end confdefs.h. */ |
|
|
6579 | #include <stdlib.h> |
|
|
6580 | #include <stdarg.h> |
|
|
6581 | #include <string.h> |
|
|
6582 | #include <float.h> |
|
|
6583 | |
|
|
6584 | int |
|
|
6585 | main () |
|
|
6586 | { |
|
|
6587 | |
|
|
6588 | ; |
|
|
6589 | return 0; |
|
|
6590 | } |
|
|
6591 | _ACEOF |
|
|
6592 | rm -f conftest.$ac_objext |
|
|
6593 | if { (ac_try="$ac_compile" |
|
|
6594 | case "(($ac_try" in |
|
|
6595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6596 | *) ac_try_echo=$ac_try;; |
|
|
6597 | esac |
|
|
6598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6599 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6600 | ac_status=$? |
|
|
6601 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6602 | rm -f conftest.er1 |
|
|
6603 | cat conftest.err >&5 |
|
|
6604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6605 | (exit $ac_status); } && { |
|
|
6606 | test -z "$ac_cxx_werror_flag" || |
|
|
6607 | test ! -s conftest.err |
|
|
6608 | } && test -s conftest.$ac_objext; then |
|
|
6609 | ac_cv_header_stdc=yes |
|
|
6610 | else |
|
|
6611 | echo "$as_me: failed program was:" >&5 |
|
|
6612 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6613 | |
|
|
6614 | ac_cv_header_stdc=no |
|
|
6615 | fi |
|
|
6616 | |
|
|
6617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6618 | |
|
|
6619 | if test $ac_cv_header_stdc = yes; then |
|
|
6620 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6621 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6622 | /* confdefs.h. */ |
|
|
6623 | _ACEOF |
|
|
6624 | cat confdefs.h >>conftest.$ac_ext |
|
|
6625 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6626 | /* end confdefs.h. */ |
|
|
6627 | #include <string.h> |
|
|
6628 | |
|
|
6629 | _ACEOF |
|
|
6630 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6631 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6632 | : |
|
|
6633 | else |
|
|
6634 | ac_cv_header_stdc=no |
|
|
6635 | fi |
|
|
6636 | rm -f conftest* |
|
|
6637 | |
|
|
6638 | fi |
|
|
6639 | |
|
|
6640 | if test $ac_cv_header_stdc = yes; then |
|
|
6641 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6642 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6643 | /* confdefs.h. */ |
|
|
6644 | _ACEOF |
|
|
6645 | cat confdefs.h >>conftest.$ac_ext |
|
|
6646 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6647 | /* end confdefs.h. */ |
|
|
6648 | #include <stdlib.h> |
|
|
6649 | |
|
|
6650 | _ACEOF |
|
|
6651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6652 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6653 | : |
|
|
6654 | else |
|
|
6655 | ac_cv_header_stdc=no |
|
|
6656 | fi |
|
|
6657 | rm -f conftest* |
|
|
6658 | |
|
|
6659 | fi |
|
|
6660 | |
|
|
6661 | if test $ac_cv_header_stdc = yes; then |
|
|
6662 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6663 | if test "$cross_compiling" = yes; then |
|
|
6664 | : |
|
|
6665 | else |
|
|
6666 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6667 | /* confdefs.h. */ |
|
|
6668 | _ACEOF |
|
|
6669 | cat confdefs.h >>conftest.$ac_ext |
|
|
6670 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6671 | /* end confdefs.h. */ |
|
|
6672 | #include <ctype.h> |
|
|
6673 | #include <stdlib.h> |
|
|
6674 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6675 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6676 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6677 | #else |
|
|
6678 | # define ISLOWER(c) \ |
|
|
6679 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6680 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6681 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6682 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6683 | #endif |
|
|
6684 | |
|
|
6685 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6686 | int |
|
|
6687 | main () |
|
|
6688 | { |
|
|
6689 | int i; |
|
|
6690 | for (i = 0; i < 256; i++) |
|
|
6691 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6692 | || toupper (i) != TOUPPER (i)) |
|
|
6693 | return 2; |
|
|
6694 | return 0; |
|
|
6695 | } |
|
|
6696 | _ACEOF |
|
|
6697 | rm -f conftest$ac_exeext |
|
|
6698 | if { (ac_try="$ac_link" |
|
|
6699 | case "(($ac_try" in |
|
|
6700 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6701 | *) ac_try_echo=$ac_try;; |
|
|
6702 | esac |
|
|
6703 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6704 | (eval "$ac_link") 2>&5 |
|
|
6705 | ac_status=$? |
|
|
6706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6708 | { (case "(($ac_try" in |
|
|
6709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6710 | *) ac_try_echo=$ac_try;; |
|
|
6711 | esac |
|
|
6712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6713 | (eval "$ac_try") 2>&5 |
|
|
6714 | ac_status=$? |
|
|
6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6716 | (exit $ac_status); }; }; then |
|
|
6717 | : |
|
|
6718 | else |
|
|
6719 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6720 | echo "$as_me: failed program was:" >&5 |
|
|
6721 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6722 | |
|
|
6723 | ( exit $ac_status ) |
|
|
6724 | ac_cv_header_stdc=no |
|
|
6725 | fi |
|
|
6726 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6727 | fi |
|
|
6728 | |
|
|
6729 | |
|
|
6730 | fi |
|
|
6731 | fi |
|
|
6732 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6733 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
6734 | if test $ac_cv_header_stdc = yes; then |
|
|
6735 | |
|
|
6736 | cat >>confdefs.h <<\_ACEOF |
|
|
6737 | #define STDC_HEADERS 1 |
|
|
6738 | _ACEOF |
|
|
6739 | |
|
|
6740 | fi |
|
|
6741 | |
|
|
6742 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6743 | |
|
|
6744 | |
|
|
6745 | |
|
|
6746 | |
|
|
6747 | |
|
|
6748 | |
|
|
6749 | |
|
|
6750 | |
|
|
6751 | |
|
|
6752 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6753 | inttypes.h stdint.h unistd.h |
|
|
6754 | do |
|
|
6755 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6756 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6757 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
6758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6760 | else |
|
|
6761 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6762 | /* confdefs.h. */ |
|
|
6763 | _ACEOF |
|
|
6764 | cat confdefs.h >>conftest.$ac_ext |
|
|
6765 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6766 | /* end confdefs.h. */ |
|
|
6767 | $ac_includes_default |
|
|
6768 | |
|
|
6769 | #include <$ac_header> |
|
|
6770 | _ACEOF |
|
|
6771 | rm -f conftest.$ac_objext |
|
|
6772 | if { (ac_try="$ac_compile" |
|
|
6773 | case "(($ac_try" in |
|
|
6774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6775 | *) ac_try_echo=$ac_try;; |
|
|
6776 | esac |
|
|
6777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6778 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6779 | ac_status=$? |
|
|
6780 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6781 | rm -f conftest.er1 |
|
|
6782 | cat conftest.err >&5 |
|
|
6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6784 | (exit $ac_status); } && { |
|
|
6785 | test -z "$ac_cxx_werror_flag" || |
|
|
6786 | test ! -s conftest.err |
|
|
6787 | } && test -s conftest.$ac_objext; then |
|
|
6788 | eval "$as_ac_Header=yes" |
|
|
6789 | else |
|
|
6790 | echo "$as_me: failed program was:" >&5 |
|
|
6791 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6792 | |
|
|
6793 | eval "$as_ac_Header=no" |
|
|
6794 | fi |
|
|
6795 | |
|
|
6796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6797 | fi |
|
|
6798 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
6799 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6800 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6802 | cat >>confdefs.h <<_ACEOF |
|
|
6803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6804 | _ACEOF |
|
|
6805 | |
|
|
6806 | fi |
|
|
6807 | |
|
|
6808 | done |
|
|
6809 | |
|
|
6810 | |
|
|
6811 | |
|
|
6812 | |
|
|
6813 | |
|
|
6814 | |
|
|
6815 | |
|
|
6816 | |
|
|
6817 | |
|
|
6818 | |
|
|
6819 | |
|
|
6820 | |
|
|
6821 | |
7611 | |
6822 | |
7612 | |
6823 | |
7613 | |
6824 | |
7614 | |
6825 | |
7615 | |
6826 | |
7616 | |
6827 | |
7617 | |
6828 | for ac_header in \ |
7618 | for ac_header in \ |
6829 | assert.h \ |
|
|
6830 | fcntl.h \ |
|
|
6831 | stdarg.h \ |
|
|
6832 | stdlib.h \ |
|
|
6833 | string.h \ |
|
|
6834 | termios.h \ |
|
|
6835 | unistd.h \ |
|
|
6836 | sys/byteorder.h \ |
7619 | sys/byteorder.h \ |
6837 | sys/ioctl.h \ |
7620 | sys/ioctl.h \ |
6838 | sys/select.h \ |
|
|
6839 | sys/sockio.h \ |
7621 | sys/sockio.h \ |
6840 | sys/strredir.h \ |
7622 | sys/strredir.h \ |
6841 | sys/time.h \ |
|
|
6842 | stdint.h \ |
7623 | stdint.h \ |
6843 | wchar.h \ |
7624 | wchar.h \ |
6844 | cwchar \ |
7625 | cwchar \ |
6845 | clocale \ |
|
|
6846 | |
7626 | |
6847 | do |
7627 | do |
6848 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7628 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7629 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6850 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7630 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
6981 | fi |
7761 | fi |
6982 | |
7762 | |
6983 | done |
7763 | done |
6984 | |
7764 | |
6985 | |
7765 | |
6986 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
6987 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
6988 | if test "${ac_cv_header_time+set}" = set; then |
|
|
6989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6990 | else |
|
|
6991 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6992 | /* confdefs.h. */ |
|
|
6993 | _ACEOF |
|
|
6994 | cat confdefs.h >>conftest.$ac_ext |
|
|
6995 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6996 | /* end confdefs.h. */ |
|
|
6997 | #include <sys/types.h> |
|
|
6998 | #include <sys/time.h> |
|
|
6999 | #include <time.h> |
|
|
7000 | |
|
|
7001 | int |
|
|
7002 | main () |
|
|
7003 | { |
|
|
7004 | if ((struct tm *) 0) |
|
|
7005 | return 0; |
|
|
7006 | ; |
|
|
7007 | return 0; |
|
|
7008 | } |
|
|
7009 | _ACEOF |
|
|
7010 | rm -f conftest.$ac_objext |
|
|
7011 | if { (ac_try="$ac_compile" |
|
|
7012 | case "(($ac_try" in |
|
|
7013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7014 | *) ac_try_echo=$ac_try;; |
|
|
7015 | esac |
|
|
7016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7017 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7018 | ac_status=$? |
|
|
7019 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7020 | rm -f conftest.er1 |
|
|
7021 | cat conftest.err >&5 |
|
|
7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7023 | (exit $ac_status); } && { |
|
|
7024 | test -z "$ac_cxx_werror_flag" || |
|
|
7025 | test ! -s conftest.err |
|
|
7026 | } && test -s conftest.$ac_objext; then |
|
|
7027 | ac_cv_header_time=yes |
|
|
7028 | else |
|
|
7029 | echo "$as_me: failed program was:" >&5 |
|
|
7030 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7031 | |
|
|
7032 | ac_cv_header_time=no |
|
|
7033 | fi |
|
|
7034 | |
|
|
7035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7036 | fi |
|
|
7037 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7038 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7039 | if test $ac_cv_header_time = yes; then |
|
|
7040 | |
|
|
7041 | cat >>confdefs.h <<\_ACEOF |
|
|
7042 | #define TIME_WITH_SYS_TIME 1 |
|
|
7043 | _ACEOF |
|
|
7044 | |
|
|
7045 | fi |
|
|
7046 | |
|
|
7047 | |
|
|
7048 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7766 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7049 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7767 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7050 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7768 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7052 | else |
7770 | else |
… | |
… | |
7056 | cat confdefs.h >>conftest.$ac_ext |
7774 | cat confdefs.h >>conftest.$ac_ext |
7057 | cat >>conftest.$ac_ext <<_ACEOF |
7775 | cat >>conftest.$ac_ext <<_ACEOF |
7058 | /* end confdefs.h. */ |
7776 | /* end confdefs.h. */ |
7059 | #include <stdio.h> |
7777 | #include <stdio.h> |
7060 | #include <sys/ioctl.h> |
7778 | #include <sys/ioctl.h> |
7061 | #ifdef HAVE_TERMIOS_H |
|
|
7062 | #include <termios.h> |
7779 | #include <termios.h> |
7063 | #endif |
7780 | |
7064 | int |
7781 | int |
7065 | main () |
7782 | main () |
7066 | { |
7783 | { |
7067 | int a = ECHO; |
7784 | int a = ECHO; |
7068 | ; |
7785 | ; |
… | |
… | |
7217 | cat >>confdefs.h <<\_ACEOF |
7934 | cat >>confdefs.h <<\_ACEOF |
7218 | #define XLIB_ILLEGAL_ACCESS 1 |
7935 | #define XLIB_ILLEGAL_ACCESS 1 |
7219 | _ACEOF |
7936 | _ACEOF |
7220 | |
7937 | |
7221 | fi |
7938 | fi |
7222 | |
|
|
7223 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7224 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7225 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7227 | else |
|
|
7228 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7229 | /* confdefs.h. */ |
|
|
7230 | _ACEOF |
|
|
7231 | cat confdefs.h >>conftest.$ac_ext |
|
|
7232 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7233 | /* end confdefs.h. */ |
|
|
7234 | |
|
|
7235 | int |
|
|
7236 | main () |
|
|
7237 | { |
|
|
7238 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7239 | #ifndef __cplusplus |
|
|
7240 | /* Ultrix mips cc rejects this. */ |
|
|
7241 | typedef int charset[2]; |
|
|
7242 | const charset cs; |
|
|
7243 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7244 | char const *const *pcpcc; |
|
|
7245 | char **ppc; |
|
|
7246 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7247 | struct point {int x, y;}; |
|
|
7248 | static struct point const zero = {0,0}; |
|
|
7249 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7250 | It does not let you subtract one const X* pointer from another in |
|
|
7251 | an arm of an if-expression whose if-part is not a constant |
|
|
7252 | expression */ |
|
|
7253 | const char *g = "string"; |
|
|
7254 | pcpcc = &g + (g ? g-g : 0); |
|
|
7255 | /* HPUX 7.0 cc rejects these. */ |
|
|
7256 | ++pcpcc; |
|
|
7257 | ppc = (char**) pcpcc; |
|
|
7258 | pcpcc = (char const *const *) ppc; |
|
|
7259 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7260 | char *t; |
|
|
7261 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7262 | |
|
|
7263 | *t++ = 0; |
|
|
7264 | if (s) return 0; |
|
|
7265 | } |
|
|
7266 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7267 | int x[] = {25, 17}; |
|
|
7268 | const int *foo = &x[0]; |
|
|
7269 | ++foo; |
|
|
7270 | } |
|
|
7271 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7272 | typedef const int *iptr; |
|
|
7273 | iptr p = 0; |
|
|
7274 | ++p; |
|
|
7275 | } |
|
|
7276 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7277 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7278 | struct s { int j; const int *ap[3]; }; |
|
|
7279 | struct s *b; b->j = 5; |
|
|
7280 | } |
|
|
7281 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7282 | const int foo = 10; |
|
|
7283 | if (!foo) return 0; |
|
|
7284 | } |
|
|
7285 | return !cs[0] && !zero.x; |
|
|
7286 | #endif |
|
|
7287 | |
|
|
7288 | ; |
|
|
7289 | return 0; |
|
|
7290 | } |
|
|
7291 | _ACEOF |
|
|
7292 | rm -f conftest.$ac_objext |
|
|
7293 | if { (ac_try="$ac_compile" |
|
|
7294 | case "(($ac_try" in |
|
|
7295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7296 | *) ac_try_echo=$ac_try;; |
|
|
7297 | esac |
|
|
7298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7299 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7300 | ac_status=$? |
|
|
7301 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7302 | rm -f conftest.er1 |
|
|
7303 | cat conftest.err >&5 |
|
|
7304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7305 | (exit $ac_status); } && { |
|
|
7306 | test -z "$ac_cxx_werror_flag" || |
|
|
7307 | test ! -s conftest.err |
|
|
7308 | } && test -s conftest.$ac_objext; then |
|
|
7309 | ac_cv_c_const=yes |
|
|
7310 | else |
|
|
7311 | echo "$as_me: failed program was:" >&5 |
|
|
7312 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7313 | |
|
|
7314 | ac_cv_c_const=no |
|
|
7315 | fi |
|
|
7316 | |
|
|
7317 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7318 | fi |
|
|
7319 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7320 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7321 | if test $ac_cv_c_const = no; then |
|
|
7322 | |
|
|
7323 | cat >>confdefs.h <<\_ACEOF |
|
|
7324 | #define const |
|
|
7325 | _ACEOF |
|
|
7326 | |
|
|
7327 | fi |
|
|
7328 | |
|
|
7329 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7330 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7331 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7333 | else |
|
|
7334 | ac_cv_c_inline=no |
|
|
7335 | for ac_kw in inline __inline__ __inline; do |
|
|
7336 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7337 | /* confdefs.h. */ |
|
|
7338 | _ACEOF |
|
|
7339 | cat confdefs.h >>conftest.$ac_ext |
|
|
7340 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7341 | /* end confdefs.h. */ |
|
|
7342 | #ifndef __cplusplus |
|
|
7343 | typedef int foo_t; |
|
|
7344 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7345 | $ac_kw foo_t foo () {return 0; } |
|
|
7346 | #endif |
|
|
7347 | |
|
|
7348 | _ACEOF |
|
|
7349 | rm -f conftest.$ac_objext |
|
|
7350 | if { (ac_try="$ac_compile" |
|
|
7351 | case "(($ac_try" in |
|
|
7352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7353 | *) ac_try_echo=$ac_try;; |
|
|
7354 | esac |
|
|
7355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7356 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7357 | ac_status=$? |
|
|
7358 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7359 | rm -f conftest.er1 |
|
|
7360 | cat conftest.err >&5 |
|
|
7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7362 | (exit $ac_status); } && { |
|
|
7363 | test -z "$ac_cxx_werror_flag" || |
|
|
7364 | test ! -s conftest.err |
|
|
7365 | } && test -s conftest.$ac_objext; then |
|
|
7366 | ac_cv_c_inline=$ac_kw |
|
|
7367 | else |
|
|
7368 | echo "$as_me: failed program was:" >&5 |
|
|
7369 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7370 | |
|
|
7371 | |
|
|
7372 | fi |
|
|
7373 | |
|
|
7374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7375 | test "$ac_cv_c_inline" != no && break |
|
|
7376 | done |
|
|
7377 | |
|
|
7378 | fi |
|
|
7379 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7380 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7381 | |
|
|
7382 | |
|
|
7383 | case $ac_cv_c_inline in |
|
|
7384 | inline | yes) ;; |
|
|
7385 | *) |
|
|
7386 | case $ac_cv_c_inline in |
|
|
7387 | no) ac_val=;; |
|
|
7388 | *) ac_val=$ac_cv_c_inline;; |
|
|
7389 | esac |
|
|
7390 | cat >>confdefs.h <<_ACEOF |
|
|
7391 | #ifndef __cplusplus |
|
|
7392 | #define inline $ac_val |
|
|
7393 | #endif |
|
|
7394 | _ACEOF |
|
|
7395 | ;; |
|
|
7396 | esac |
|
|
7397 | |
|
|
7398 | |
|
|
7399 | |
7939 | |
7400 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7940 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7401 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7941 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7402 | if test "${ac_cv_type_mode_t+set}" = set; then |
7942 | if test "${ac_cv_type_mode_t+set}" = set; then |
7403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7560 | _ACEOF |
8100 | _ACEOF |
7561 | |
8101 | |
7562 | fi |
8102 | fi |
7563 | |
8103 | |
7564 | |
8104 | |
7565 | { echo "$as_me:$LINENO: checking for short" >&5 |
8105 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7566 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8106 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7567 | if test "${ac_cv_type_short+set}" = set; then |
8107 | if test "${ac_cv_c_int16_t+set}" = set; then |
7568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7569 | else |
8109 | else |
|
|
8110 | ac_cv_c_int16_t=no |
|
|
8111 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8112 | 'long long int' 'short int' 'signed char'; do |
7570 | cat >conftest.$ac_ext <<_ACEOF |
8113 | cat >conftest.$ac_ext <<_ACEOF |
7571 | /* confdefs.h. */ |
8114 | /* confdefs.h. */ |
7572 | _ACEOF |
8115 | _ACEOF |
7573 | cat confdefs.h >>conftest.$ac_ext |
8116 | cat confdefs.h >>conftest.$ac_ext |
7574 | cat >>conftest.$ac_ext <<_ACEOF |
8117 | cat >>conftest.$ac_ext <<_ACEOF |
7575 | /* end confdefs.h. */ |
8118 | /* end confdefs.h. */ |
7576 | $ac_includes_default |
8119 | $ac_includes_default |
7577 | typedef short ac__type_new_; |
|
|
7578 | int |
8120 | int |
7579 | main () |
8121 | main () |
7580 | { |
8122 | { |
7581 | if ((ac__type_new_ *) 0) |
8123 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7582 | return 0; |
8124 | test_array [0] = 0 |
7583 | if (sizeof (ac__type_new_)) |
8125 | |
7584 | return 0; |
|
|
7585 | ; |
8126 | ; |
7586 | return 0; |
8127 | return 0; |
7587 | } |
8128 | } |
7588 | _ACEOF |
8129 | _ACEOF |
7589 | rm -f conftest.$ac_objext |
8130 | rm -f conftest.$ac_objext |
… | |
… | |
7601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7602 | (exit $ac_status); } && { |
8143 | (exit $ac_status); } && { |
7603 | test -z "$ac_cxx_werror_flag" || |
8144 | test -z "$ac_cxx_werror_flag" || |
7604 | test ! -s conftest.err |
8145 | test ! -s conftest.err |
7605 | } && test -s conftest.$ac_objext; then |
8146 | } && test -s conftest.$ac_objext; then |
7606 | ac_cv_type_short=yes |
|
|
7607 | else |
|
|
7608 | echo "$as_me: failed program was:" >&5 |
|
|
7609 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7610 | |
|
|
7611 | ac_cv_type_short=no |
|
|
7612 | fi |
|
|
7613 | |
|
|
7614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7615 | fi |
|
|
7616 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7617 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
7618 | |
|
|
7619 | # The cast to long int works around a bug in the HP C Compiler |
|
|
7620 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
7621 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
7622 | # This bug is HP SR number 8606223364. |
|
|
7623 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
7624 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
7625 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
7626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7627 | else |
|
|
7628 | if test "$cross_compiling" = yes; then |
|
|
7629 | # Depending upon the size, compute the lo and hi bounds. |
|
|
7630 | cat >conftest.$ac_ext <<_ACEOF |
8147 | cat >conftest.$ac_ext <<_ACEOF |
7631 | /* confdefs.h. */ |
8148 | /* confdefs.h. */ |
7632 | _ACEOF |
8149 | _ACEOF |
7633 | cat confdefs.h >>conftest.$ac_ext |
8150 | cat confdefs.h >>conftest.$ac_ext |
7634 | cat >>conftest.$ac_ext <<_ACEOF |
8151 | cat >>conftest.$ac_ext <<_ACEOF |
7635 | /* end confdefs.h. */ |
8152 | /* end confdefs.h. */ |
7636 | $ac_includes_default |
8153 | $ac_includes_default |
7637 | typedef short ac__type_sizeof_; |
|
|
7638 | int |
8154 | int |
7639 | main () |
8155 | main () |
7640 | { |
8156 | { |
7641 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8157 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8158 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
7642 | test_array [0] = 0 |
8159 | test_array [0] = 0 |
7643 | |
8160 | |
7644 | ; |
8161 | ; |
7645 | return 0; |
8162 | return 0; |
7646 | } |
8163 | } |
… | |
… | |
7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7661 | (exit $ac_status); } && { |
8178 | (exit $ac_status); } && { |
7662 | test -z "$ac_cxx_werror_flag" || |
8179 | test -z "$ac_cxx_werror_flag" || |
7663 | test ! -s conftest.err |
8180 | test ! -s conftest.err |
7664 | } && test -s conftest.$ac_objext; then |
8181 | } && test -s conftest.$ac_objext; then |
7665 | ac_lo=0 ac_mid=0 |
8182 | : |
7666 | while :; do |
8183 | else |
|
|
8184 | echo "$as_me: failed program was:" >&5 |
|
|
8185 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8186 | |
|
|
8187 | case $ac_type in |
|
|
8188 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8189 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8190 | esac |
|
|
8191 | |
|
|
8192 | fi |
|
|
8193 | |
|
|
8194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8195 | else |
|
|
8196 | echo "$as_me: failed program was:" >&5 |
|
|
8197 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8198 | |
|
|
8199 | |
|
|
8200 | fi |
|
|
8201 | |
|
|
8202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8203 | test "$ac_cv_c_int16_t" != no && break |
|
|
8204 | done |
|
|
8205 | fi |
|
|
8206 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8207 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8208 | case $ac_cv_c_int16_t in #( |
|
|
8209 | no|yes) ;; #( |
|
|
8210 | *) |
|
|
8211 | |
|
|
8212 | cat >>confdefs.h <<_ACEOF |
|
|
8213 | #define int16_t $ac_cv_c_int16_t |
|
|
8214 | _ACEOF |
|
|
8215 | ;; |
|
|
8216 | esac |
|
|
8217 | |
|
|
8218 | |
|
|
8219 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8220 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8221 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8223 | else |
|
|
8224 | ac_cv_c_uint16_t=no |
|
|
8225 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8226 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7667 | cat >conftest.$ac_ext <<_ACEOF |
8227 | cat >conftest.$ac_ext <<_ACEOF |
7668 | /* confdefs.h. */ |
8228 | /* confdefs.h. */ |
7669 | _ACEOF |
8229 | _ACEOF |
7670 | cat confdefs.h >>conftest.$ac_ext |
8230 | cat confdefs.h >>conftest.$ac_ext |
7671 | cat >>conftest.$ac_ext <<_ACEOF |
8231 | cat >>conftest.$ac_ext <<_ACEOF |
7672 | /* end confdefs.h. */ |
8232 | /* end confdefs.h. */ |
7673 | $ac_includes_default |
8233 | $ac_includes_default |
7674 | typedef short ac__type_sizeof_; |
|
|
7675 | int |
8234 | int |
7676 | main () |
8235 | main () |
7677 | { |
8236 | { |
7678 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8237 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7679 | test_array [0] = 0 |
8238 | test_array [0] = 0 |
7680 | |
8239 | |
7681 | ; |
8240 | ; |
7682 | return 0; |
8241 | return 0; |
7683 | } |
8242 | } |
… | |
… | |
7697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7698 | (exit $ac_status); } && { |
8257 | (exit $ac_status); } && { |
7699 | test -z "$ac_cxx_werror_flag" || |
8258 | test -z "$ac_cxx_werror_flag" || |
7700 | test ! -s conftest.err |
8259 | test ! -s conftest.err |
7701 | } && test -s conftest.$ac_objext; then |
8260 | } && test -s conftest.$ac_objext; then |
7702 | ac_hi=$ac_mid; break |
8261 | case $ac_type in |
|
|
8262 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8263 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8264 | esac |
|
|
8265 | |
7703 | else |
8266 | else |
7704 | echo "$as_me: failed program was:" >&5 |
8267 | echo "$as_me: failed program was:" >&5 |
7705 | sed 's/^/| /' conftest.$ac_ext >&5 |
8268 | sed 's/^/| /' conftest.$ac_ext >&5 |
7706 | |
8269 | |
7707 | ac_lo=`expr $ac_mid + 1` |
8270 | |
7708 | if test $ac_lo -le $ac_mid; then |
|
|
7709 | ac_lo= ac_hi= |
|
|
7710 | break |
|
|
7711 | fi |
|
|
7712 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
7713 | fi |
8271 | fi |
7714 | |
8272 | |
7715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8274 | test "$ac_cv_c_uint16_t" != no && break |
7716 | done |
8275 | done |
7717 | else |
8276 | fi |
7718 | echo "$as_me: failed program was:" >&5 |
8277 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7719 | sed 's/^/| /' conftest.$ac_ext >&5 |
8278 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8279 | case $ac_cv_c_uint16_t in #( |
|
|
8280 | no|yes) ;; #( |
|
|
8281 | *) |
7720 | |
8282 | |
|
|
8283 | |
|
|
8284 | cat >>confdefs.h <<_ACEOF |
|
|
8285 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8286 | _ACEOF |
|
|
8287 | ;; |
|
|
8288 | esac |
|
|
8289 | |
|
|
8290 | |
|
|
8291 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8292 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8293 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8295 | else |
|
|
8296 | ac_cv_c_int32_t=no |
|
|
8297 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8298 | 'long long int' 'short int' 'signed char'; do |
7721 | cat >conftest.$ac_ext <<_ACEOF |
8299 | cat >conftest.$ac_ext <<_ACEOF |
7722 | /* confdefs.h. */ |
8300 | /* confdefs.h. */ |
7723 | _ACEOF |
8301 | _ACEOF |
7724 | cat confdefs.h >>conftest.$ac_ext |
8302 | cat confdefs.h >>conftest.$ac_ext |
7725 | cat >>conftest.$ac_ext <<_ACEOF |
8303 | cat >>conftest.$ac_ext <<_ACEOF |
7726 | /* end confdefs.h. */ |
8304 | /* end confdefs.h. */ |
7727 | $ac_includes_default |
8305 | $ac_includes_default |
7728 | typedef short ac__type_sizeof_; |
|
|
7729 | int |
8306 | int |
7730 | main () |
8307 | main () |
7731 | { |
8308 | { |
7732 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8309 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7733 | test_array [0] = 0 |
8310 | test_array [0] = 0 |
7734 | |
8311 | |
7735 | ; |
8312 | ; |
7736 | return 0; |
8313 | return 0; |
7737 | } |
8314 | } |
… | |
… | |
7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7752 | (exit $ac_status); } && { |
8329 | (exit $ac_status); } && { |
7753 | test -z "$ac_cxx_werror_flag" || |
8330 | test -z "$ac_cxx_werror_flag" || |
7754 | test ! -s conftest.err |
8331 | test ! -s conftest.err |
7755 | } && test -s conftest.$ac_objext; then |
8332 | } && test -s conftest.$ac_objext; then |
7756 | ac_hi=-1 ac_mid=-1 |
|
|
7757 | while :; do |
|
|
7758 | cat >conftest.$ac_ext <<_ACEOF |
8333 | cat >conftest.$ac_ext <<_ACEOF |
7759 | /* confdefs.h. */ |
8334 | /* confdefs.h. */ |
7760 | _ACEOF |
8335 | _ACEOF |
7761 | cat confdefs.h >>conftest.$ac_ext |
8336 | cat confdefs.h >>conftest.$ac_ext |
7762 | cat >>conftest.$ac_ext <<_ACEOF |
8337 | cat >>conftest.$ac_ext <<_ACEOF |
7763 | /* end confdefs.h. */ |
8338 | /* end confdefs.h. */ |
7764 | $ac_includes_default |
8339 | $ac_includes_default |
7765 | typedef short ac__type_sizeof_; |
|
|
7766 | int |
8340 | int |
7767 | main () |
8341 | main () |
7768 | { |
8342 | { |
7769 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8343 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8344 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
7770 | test_array [0] = 0 |
8345 | test_array [0] = 0 |
7771 | |
8346 | |
7772 | ; |
8347 | ; |
7773 | return 0; |
8348 | return 0; |
7774 | } |
8349 | } |
… | |
… | |
7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7789 | (exit $ac_status); } && { |
8364 | (exit $ac_status); } && { |
7790 | test -z "$ac_cxx_werror_flag" || |
8365 | test -z "$ac_cxx_werror_flag" || |
7791 | test ! -s conftest.err |
8366 | test ! -s conftest.err |
7792 | } && test -s conftest.$ac_objext; then |
8367 | } && test -s conftest.$ac_objext; then |
7793 | ac_lo=$ac_mid; break |
8368 | : |
7794 | else |
8369 | else |
7795 | echo "$as_me: failed program was:" >&5 |
8370 | echo "$as_me: failed program was:" >&5 |
7796 | sed 's/^/| /' conftest.$ac_ext >&5 |
8371 | sed 's/^/| /' conftest.$ac_ext >&5 |
7797 | |
8372 | |
7798 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8373 | case $ac_type in |
7799 | if test $ac_mid -le $ac_hi; then |
8374 | int32_t) ac_cv_c_int32_t=yes ;; |
7800 | ac_lo= ac_hi= |
8375 | *) ac_cv_c_int32_t=$ac_type ;; |
7801 | break |
8376 | esac |
7802 | fi |
8377 | |
7803 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
7804 | fi |
8378 | fi |
7805 | |
8379 | |
7806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7807 | done |
|
|
7808 | else |
8381 | else |
7809 | echo "$as_me: failed program was:" >&5 |
8382 | echo "$as_me: failed program was:" >&5 |
7810 | sed 's/^/| /' conftest.$ac_ext >&5 |
8383 | sed 's/^/| /' conftest.$ac_ext >&5 |
7811 | |
8384 | |
7812 | ac_lo= ac_hi= |
8385 | |
7813 | fi |
8386 | fi |
7814 | |
8387 | |
7815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8389 | test "$ac_cv_c_int32_t" != no && break |
|
|
8390 | done |
7816 | fi |
8391 | fi |
|
|
8392 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8393 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8394 | case $ac_cv_c_int32_t in #( |
|
|
8395 | no|yes) ;; #( |
|
|
8396 | *) |
7817 | |
8397 | |
7818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8398 | cat >>confdefs.h <<_ACEOF |
7819 | # Binary search between lo and hi bounds. |
8399 | #define int32_t $ac_cv_c_int32_t |
7820 | while test "x$ac_lo" != "x$ac_hi"; do |
8400 | _ACEOF |
7821 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8401 | ;; |
|
|
8402 | esac |
|
|
8403 | |
|
|
8404 | |
|
|
8405 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8406 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8407 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8409 | else |
|
|
8410 | ac_cv_c_uint32_t=no |
|
|
8411 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8412 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7822 | cat >conftest.$ac_ext <<_ACEOF |
8413 | cat >conftest.$ac_ext <<_ACEOF |
7823 | /* confdefs.h. */ |
8414 | /* confdefs.h. */ |
7824 | _ACEOF |
8415 | _ACEOF |
7825 | cat confdefs.h >>conftest.$ac_ext |
8416 | cat confdefs.h >>conftest.$ac_ext |
7826 | cat >>conftest.$ac_ext <<_ACEOF |
8417 | cat >>conftest.$ac_ext <<_ACEOF |
7827 | /* end confdefs.h. */ |
8418 | /* end confdefs.h. */ |
7828 | $ac_includes_default |
8419 | $ac_includes_default |
7829 | typedef short ac__type_sizeof_; |
|
|
7830 | int |
8420 | int |
7831 | main () |
8421 | main () |
7832 | { |
8422 | { |
7833 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8423 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7834 | test_array [0] = 0 |
8424 | test_array [0] = 0 |
7835 | |
8425 | |
7836 | ; |
8426 | ; |
7837 | return 0; |
8427 | return 0; |
7838 | } |
8428 | } |
… | |
… | |
7852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7853 | (exit $ac_status); } && { |
8443 | (exit $ac_status); } && { |
7854 | test -z "$ac_cxx_werror_flag" || |
8444 | test -z "$ac_cxx_werror_flag" || |
7855 | test ! -s conftest.err |
8445 | test ! -s conftest.err |
7856 | } && test -s conftest.$ac_objext; then |
8446 | } && test -s conftest.$ac_objext; then |
7857 | ac_hi=$ac_mid |
8447 | case $ac_type in |
|
|
8448 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8449 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8450 | esac |
|
|
8451 | |
7858 | else |
8452 | else |
7859 | echo "$as_me: failed program was:" >&5 |
8453 | echo "$as_me: failed program was:" >&5 |
7860 | sed 's/^/| /' conftest.$ac_ext >&5 |
8454 | sed 's/^/| /' conftest.$ac_ext >&5 |
7861 | |
8455 | |
7862 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8456 | |
7863 | fi |
8457 | fi |
7864 | |
8458 | |
7865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7866 | done |
8460 | test "$ac_cv_c_uint32_t" != no && break |
7867 | case $ac_lo in |
8461 | done |
7868 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
7869 | '') if test "$ac_cv_type_short" = yes; then |
|
|
7870 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7871 | See \`config.log' for more details." >&5 |
|
|
7872 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7873 | See \`config.log' for more details." >&2;} |
|
|
7874 | { (exit 77); exit 77; }; } |
|
|
7875 | else |
|
|
7876 | ac_cv_sizeof_short=0 |
|
|
7877 | fi ;; |
|
|
7878 | esac |
|
|
7879 | else |
|
|
7880 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7881 | /* confdefs.h. */ |
|
|
7882 | _ACEOF |
|
|
7883 | cat confdefs.h >>conftest.$ac_ext |
|
|
7884 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7885 | /* end confdefs.h. */ |
|
|
7886 | $ac_includes_default |
|
|
7887 | typedef short ac__type_sizeof_; |
|
|
7888 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7889 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7890 | #include <stdio.h> |
|
|
7891 | #include <stdlib.h> |
|
|
7892 | int |
|
|
7893 | main () |
|
|
7894 | { |
|
|
7895 | |
|
|
7896 | FILE *f = fopen ("conftest.val", "w"); |
|
|
7897 | if (! f) |
|
|
7898 | return 1; |
|
|
7899 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
7900 | { |
|
|
7901 | long int i = longval (); |
|
|
7902 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7903 | return 1; |
|
|
7904 | fprintf (f, "%ld\n", i); |
|
|
7905 | } |
|
|
7906 | else |
|
|
7907 | { |
|
|
7908 | unsigned long int i = ulongval (); |
|
|
7909 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7910 | return 1; |
|
|
7911 | fprintf (f, "%lu\n", i); |
|
|
7912 | } |
|
|
7913 | return ferror (f) || fclose (f) != 0; |
|
|
7914 | |
|
|
7915 | ; |
|
|
7916 | return 0; |
|
|
7917 | } |
|
|
7918 | _ACEOF |
|
|
7919 | rm -f conftest$ac_exeext |
|
|
7920 | if { (ac_try="$ac_link" |
|
|
7921 | case "(($ac_try" in |
|
|
7922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7923 | *) ac_try_echo=$ac_try;; |
|
|
7924 | esac |
|
|
7925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7926 | (eval "$ac_link") 2>&5 |
|
|
7927 | ac_status=$? |
|
|
7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7930 | { (case "(($ac_try" in |
|
|
7931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7932 | *) ac_try_echo=$ac_try;; |
|
|
7933 | esac |
|
|
7934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7935 | (eval "$ac_try") 2>&5 |
|
|
7936 | ac_status=$? |
|
|
7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7938 | (exit $ac_status); }; }; then |
|
|
7939 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
7940 | else |
|
|
7941 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7942 | echo "$as_me: failed program was:" >&5 |
|
|
7943 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7944 | |
|
|
7945 | ( exit $ac_status ) |
|
|
7946 | if test "$ac_cv_type_short" = yes; then |
|
|
7947 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7948 | See \`config.log' for more details." >&5 |
|
|
7949 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7950 | See \`config.log' for more details." >&2;} |
|
|
7951 | { (exit 77); exit 77; }; } |
|
|
7952 | else |
|
|
7953 | ac_cv_sizeof_short=0 |
|
|
7954 | fi |
|
|
7955 | fi |
8462 | fi |
7956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7957 | fi |
|
|
7958 | rm -f conftest.val |
|
|
7959 | fi |
|
|
7960 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8463 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
7961 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8464 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8465 | case $ac_cv_c_uint32_t in #( |
|
|
8466 | no|yes) ;; #( |
|
|
8467 | *) |
7962 | |
8468 | |
|
|
8469 | cat >>confdefs.h <<\_ACEOF |
|
|
8470 | #define _UINT32_T 1 |
|
|
8471 | _ACEOF |
7963 | |
8472 | |
7964 | |
8473 | |
7965 | cat >>confdefs.h <<_ACEOF |
8474 | cat >>confdefs.h <<_ACEOF |
7966 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8475 | #define uint32_t $ac_cv_c_uint32_t |
7967 | _ACEOF |
8476 | _ACEOF |
7968 | |
8477 | ;; |
7969 | |
|
|
7970 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
7971 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
7972 | if test "${ac_cv_type_int+set}" = set; then |
|
|
7973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7974 | else |
|
|
7975 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7976 | /* confdefs.h. */ |
|
|
7977 | _ACEOF |
|
|
7978 | cat confdefs.h >>conftest.$ac_ext |
|
|
7979 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7980 | /* end confdefs.h. */ |
|
|
7981 | $ac_includes_default |
|
|
7982 | typedef int ac__type_new_; |
|
|
7983 | int |
|
|
7984 | main () |
|
|
7985 | { |
|
|
7986 | if ((ac__type_new_ *) 0) |
|
|
7987 | return 0; |
|
|
7988 | if (sizeof (ac__type_new_)) |
|
|
7989 | return 0; |
|
|
7990 | ; |
|
|
7991 | return 0; |
|
|
7992 | } |
|
|
7993 | _ACEOF |
|
|
7994 | rm -f conftest.$ac_objext |
|
|
7995 | if { (ac_try="$ac_compile" |
|
|
7996 | case "(($ac_try" in |
|
|
7997 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7998 | *) ac_try_echo=$ac_try;; |
|
|
7999 | esac |
8478 | esac |
8000 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8001 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8002 | ac_status=$? |
|
|
8003 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8004 | rm -f conftest.er1 |
|
|
8005 | cat conftest.err >&5 |
|
|
8006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8007 | (exit $ac_status); } && { |
|
|
8008 | test -z "$ac_cxx_werror_flag" || |
|
|
8009 | test ! -s conftest.err |
|
|
8010 | } && test -s conftest.$ac_objext; then |
|
|
8011 | ac_cv_type_int=yes |
|
|
8012 | else |
|
|
8013 | echo "$as_me: failed program was:" >&5 |
|
|
8014 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8015 | |
8479 | |
8016 | ac_cv_type_int=no |
|
|
8017 | fi |
|
|
8018 | |
8480 | |
8019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8020 | fi |
|
|
8021 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8022 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8023 | |
8481 | |
8024 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8025 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8026 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8027 | # This bug is HP SR number 8606223364. |
|
|
8028 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8029 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8030 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8032 | else |
|
|
8033 | if test "$cross_compiling" = yes; then |
|
|
8034 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8035 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8036 | /* confdefs.h. */ |
|
|
8037 | _ACEOF |
|
|
8038 | cat confdefs.h >>conftest.$ac_ext |
|
|
8039 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8040 | /* end confdefs.h. */ |
|
|
8041 | $ac_includes_default |
|
|
8042 | typedef int ac__type_sizeof_; |
|
|
8043 | int |
|
|
8044 | main () |
|
|
8045 | { |
|
|
8046 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8047 | test_array [0] = 0 |
|
|
8048 | |
|
|
8049 | ; |
|
|
8050 | return 0; |
|
|
8051 | } |
|
|
8052 | _ACEOF |
|
|
8053 | rm -f conftest.$ac_objext |
|
|
8054 | if { (ac_try="$ac_compile" |
|
|
8055 | case "(($ac_try" in |
|
|
8056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8057 | *) ac_try_echo=$ac_try;; |
|
|
8058 | esac |
|
|
8059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8060 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8061 | ac_status=$? |
|
|
8062 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8063 | rm -f conftest.er1 |
|
|
8064 | cat conftest.err >&5 |
|
|
8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8066 | (exit $ac_status); } && { |
|
|
8067 | test -z "$ac_cxx_werror_flag" || |
|
|
8068 | test ! -s conftest.err |
|
|
8069 | } && test -s conftest.$ac_objext; then |
|
|
8070 | ac_lo=0 ac_mid=0 |
|
|
8071 | while :; do |
|
|
8072 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8073 | /* confdefs.h. */ |
|
|
8074 | _ACEOF |
|
|
8075 | cat confdefs.h >>conftest.$ac_ext |
|
|
8076 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8077 | /* end confdefs.h. */ |
|
|
8078 | $ac_includes_default |
|
|
8079 | typedef int ac__type_sizeof_; |
|
|
8080 | int |
|
|
8081 | main () |
|
|
8082 | { |
|
|
8083 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8084 | test_array [0] = 0 |
|
|
8085 | |
|
|
8086 | ; |
|
|
8087 | return 0; |
|
|
8088 | } |
|
|
8089 | _ACEOF |
|
|
8090 | rm -f conftest.$ac_objext |
|
|
8091 | if { (ac_try="$ac_compile" |
|
|
8092 | case "(($ac_try" in |
|
|
8093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8094 | *) ac_try_echo=$ac_try;; |
|
|
8095 | esac |
|
|
8096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8097 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8098 | ac_status=$? |
|
|
8099 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8100 | rm -f conftest.er1 |
|
|
8101 | cat conftest.err >&5 |
|
|
8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8103 | (exit $ac_status); } && { |
|
|
8104 | test -z "$ac_cxx_werror_flag" || |
|
|
8105 | test ! -s conftest.err |
|
|
8106 | } && test -s conftest.$ac_objext; then |
|
|
8107 | ac_hi=$ac_mid; break |
|
|
8108 | else |
|
|
8109 | echo "$as_me: failed program was:" >&5 |
|
|
8110 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8111 | |
|
|
8112 | ac_lo=`expr $ac_mid + 1` |
|
|
8113 | if test $ac_lo -le $ac_mid; then |
|
|
8114 | ac_lo= ac_hi= |
|
|
8115 | break |
|
|
8116 | fi |
|
|
8117 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8118 | fi |
|
|
8119 | |
|
|
8120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8121 | done |
|
|
8122 | else |
|
|
8123 | echo "$as_me: failed program was:" >&5 |
|
|
8124 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8125 | |
|
|
8126 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8127 | /* confdefs.h. */ |
|
|
8128 | _ACEOF |
|
|
8129 | cat confdefs.h >>conftest.$ac_ext |
|
|
8130 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8131 | /* end confdefs.h. */ |
|
|
8132 | $ac_includes_default |
|
|
8133 | typedef int ac__type_sizeof_; |
|
|
8134 | int |
|
|
8135 | main () |
|
|
8136 | { |
|
|
8137 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8138 | test_array [0] = 0 |
|
|
8139 | |
|
|
8140 | ; |
|
|
8141 | return 0; |
|
|
8142 | } |
|
|
8143 | _ACEOF |
|
|
8144 | rm -f conftest.$ac_objext |
|
|
8145 | if { (ac_try="$ac_compile" |
|
|
8146 | case "(($ac_try" in |
|
|
8147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8148 | *) ac_try_echo=$ac_try;; |
|
|
8149 | esac |
|
|
8150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8151 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8152 | ac_status=$? |
|
|
8153 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8154 | rm -f conftest.er1 |
|
|
8155 | cat conftest.err >&5 |
|
|
8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8157 | (exit $ac_status); } && { |
|
|
8158 | test -z "$ac_cxx_werror_flag" || |
|
|
8159 | test ! -s conftest.err |
|
|
8160 | } && test -s conftest.$ac_objext; then |
|
|
8161 | ac_hi=-1 ac_mid=-1 |
|
|
8162 | while :; do |
|
|
8163 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8164 | /* confdefs.h. */ |
|
|
8165 | _ACEOF |
|
|
8166 | cat confdefs.h >>conftest.$ac_ext |
|
|
8167 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8168 | /* end confdefs.h. */ |
|
|
8169 | $ac_includes_default |
|
|
8170 | typedef int ac__type_sizeof_; |
|
|
8171 | int |
|
|
8172 | main () |
|
|
8173 | { |
|
|
8174 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8175 | test_array [0] = 0 |
|
|
8176 | |
|
|
8177 | ; |
|
|
8178 | return 0; |
|
|
8179 | } |
|
|
8180 | _ACEOF |
|
|
8181 | rm -f conftest.$ac_objext |
|
|
8182 | if { (ac_try="$ac_compile" |
|
|
8183 | case "(($ac_try" in |
|
|
8184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8185 | *) ac_try_echo=$ac_try;; |
|
|
8186 | esac |
|
|
8187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8188 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8189 | ac_status=$? |
|
|
8190 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8191 | rm -f conftest.er1 |
|
|
8192 | cat conftest.err >&5 |
|
|
8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8194 | (exit $ac_status); } && { |
|
|
8195 | test -z "$ac_cxx_werror_flag" || |
|
|
8196 | test ! -s conftest.err |
|
|
8197 | } && test -s conftest.$ac_objext; then |
|
|
8198 | ac_lo=$ac_mid; break |
|
|
8199 | else |
|
|
8200 | echo "$as_me: failed program was:" >&5 |
|
|
8201 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8202 | |
|
|
8203 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8204 | if test $ac_mid -le $ac_hi; then |
|
|
8205 | ac_lo= ac_hi= |
|
|
8206 | break |
|
|
8207 | fi |
|
|
8208 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8209 | fi |
|
|
8210 | |
|
|
8211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8212 | done |
|
|
8213 | else |
|
|
8214 | echo "$as_me: failed program was:" >&5 |
|
|
8215 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8216 | |
|
|
8217 | ac_lo= ac_hi= |
|
|
8218 | fi |
|
|
8219 | |
|
|
8220 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8221 | fi |
|
|
8222 | |
|
|
8223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8224 | # Binary search between lo and hi bounds. |
|
|
8225 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8226 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8227 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8228 | /* confdefs.h. */ |
|
|
8229 | _ACEOF |
|
|
8230 | cat confdefs.h >>conftest.$ac_ext |
|
|
8231 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8232 | /* end confdefs.h. */ |
|
|
8233 | $ac_includes_default |
|
|
8234 | typedef int ac__type_sizeof_; |
|
|
8235 | int |
|
|
8236 | main () |
|
|
8237 | { |
|
|
8238 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8239 | test_array [0] = 0 |
|
|
8240 | |
|
|
8241 | ; |
|
|
8242 | return 0; |
|
|
8243 | } |
|
|
8244 | _ACEOF |
|
|
8245 | rm -f conftest.$ac_objext |
|
|
8246 | if { (ac_try="$ac_compile" |
|
|
8247 | case "(($ac_try" in |
|
|
8248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8249 | *) ac_try_echo=$ac_try;; |
|
|
8250 | esac |
|
|
8251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8252 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8253 | ac_status=$? |
|
|
8254 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8255 | rm -f conftest.er1 |
|
|
8256 | cat conftest.err >&5 |
|
|
8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8258 | (exit $ac_status); } && { |
|
|
8259 | test -z "$ac_cxx_werror_flag" || |
|
|
8260 | test ! -s conftest.err |
|
|
8261 | } && test -s conftest.$ac_objext; then |
|
|
8262 | ac_hi=$ac_mid |
|
|
8263 | else |
|
|
8264 | echo "$as_me: failed program was:" >&5 |
|
|
8265 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8266 | |
|
|
8267 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8268 | fi |
|
|
8269 | |
|
|
8270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8271 | done |
|
|
8272 | case $ac_lo in |
|
|
8273 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8274 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8275 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8276 | See \`config.log' for more details." >&5 |
|
|
8277 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8278 | See \`config.log' for more details." >&2;} |
|
|
8279 | { (exit 77); exit 77; }; } |
|
|
8280 | else |
|
|
8281 | ac_cv_sizeof_int=0 |
|
|
8282 | fi ;; |
|
|
8283 | esac |
|
|
8284 | else |
|
|
8285 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8286 | /* confdefs.h. */ |
|
|
8287 | _ACEOF |
|
|
8288 | cat confdefs.h >>conftest.$ac_ext |
|
|
8289 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8290 | /* end confdefs.h. */ |
|
|
8291 | $ac_includes_default |
|
|
8292 | typedef int ac__type_sizeof_; |
|
|
8293 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8294 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8295 | #include <stdio.h> |
|
|
8296 | #include <stdlib.h> |
|
|
8297 | int |
|
|
8298 | main () |
|
|
8299 | { |
|
|
8300 | |
|
|
8301 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8302 | if (! f) |
|
|
8303 | return 1; |
|
|
8304 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8305 | { |
|
|
8306 | long int i = longval (); |
|
|
8307 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8308 | return 1; |
|
|
8309 | fprintf (f, "%ld\n", i); |
|
|
8310 | } |
|
|
8311 | else |
|
|
8312 | { |
|
|
8313 | unsigned long int i = ulongval (); |
|
|
8314 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8315 | return 1; |
|
|
8316 | fprintf (f, "%lu\n", i); |
|
|
8317 | } |
|
|
8318 | return ferror (f) || fclose (f) != 0; |
|
|
8319 | |
|
|
8320 | ; |
|
|
8321 | return 0; |
|
|
8322 | } |
|
|
8323 | _ACEOF |
|
|
8324 | rm -f conftest$ac_exeext |
|
|
8325 | if { (ac_try="$ac_link" |
|
|
8326 | case "(($ac_try" in |
|
|
8327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8328 | *) ac_try_echo=$ac_try;; |
|
|
8329 | esac |
|
|
8330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8331 | (eval "$ac_link") 2>&5 |
|
|
8332 | ac_status=$? |
|
|
8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8335 | { (case "(($ac_try" in |
|
|
8336 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8337 | *) ac_try_echo=$ac_try;; |
|
|
8338 | esac |
|
|
8339 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8340 | (eval "$ac_try") 2>&5 |
|
|
8341 | ac_status=$? |
|
|
8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8343 | (exit $ac_status); }; }; then |
|
|
8344 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8345 | else |
|
|
8346 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8347 | echo "$as_me: failed program was:" >&5 |
|
|
8348 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8349 | |
|
|
8350 | ( exit $ac_status ) |
|
|
8351 | if test "$ac_cv_type_int" = yes; then |
|
|
8352 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8353 | See \`config.log' for more details." >&5 |
|
|
8354 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8355 | See \`config.log' for more details." >&2;} |
|
|
8356 | { (exit 77); exit 77; }; } |
|
|
8357 | else |
|
|
8358 | ac_cv_sizeof_int=0 |
|
|
8359 | fi |
|
|
8360 | fi |
|
|
8361 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8362 | fi |
|
|
8363 | rm -f conftest.val |
|
|
8364 | fi |
|
|
8365 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8366 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8367 | |
|
|
8368 | |
|
|
8369 | |
|
|
8370 | cat >>confdefs.h <<_ACEOF |
|
|
8371 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8372 | _ACEOF |
|
|
8373 | |
|
|
8374 | |
|
|
8375 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8376 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8377 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8379 | else |
|
|
8380 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8381 | /* confdefs.h. */ |
|
|
8382 | _ACEOF |
|
|
8383 | cat confdefs.h >>conftest.$ac_ext |
|
|
8384 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8385 | /* end confdefs.h. */ |
|
|
8386 | $ac_includes_default |
|
|
8387 | typedef long long ac__type_new_; |
|
|
8388 | int |
|
|
8389 | main () |
|
|
8390 | { |
|
|
8391 | if ((ac__type_new_ *) 0) |
|
|
8392 | return 0; |
|
|
8393 | if (sizeof (ac__type_new_)) |
|
|
8394 | return 0; |
|
|
8395 | ; |
|
|
8396 | return 0; |
|
|
8397 | } |
|
|
8398 | _ACEOF |
|
|
8399 | rm -f conftest.$ac_objext |
|
|
8400 | if { (ac_try="$ac_compile" |
|
|
8401 | case "(($ac_try" in |
|
|
8402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8403 | *) ac_try_echo=$ac_try;; |
|
|
8404 | esac |
|
|
8405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8406 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8407 | ac_status=$? |
|
|
8408 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8409 | rm -f conftest.er1 |
|
|
8410 | cat conftest.err >&5 |
|
|
8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8412 | (exit $ac_status); } && { |
|
|
8413 | test -z "$ac_cxx_werror_flag" || |
|
|
8414 | test ! -s conftest.err |
|
|
8415 | } && test -s conftest.$ac_objext; then |
|
|
8416 | ac_cv_type_long_long=yes |
|
|
8417 | else |
|
|
8418 | echo "$as_me: failed program was:" >&5 |
|
|
8419 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8420 | |
|
|
8421 | ac_cv_type_long_long=no |
|
|
8422 | fi |
|
|
8423 | |
|
|
8424 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8425 | fi |
|
|
8426 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8427 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8428 | |
|
|
8429 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8430 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8431 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8432 | # This bug is HP SR number 8606223364. |
|
|
8433 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8434 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8435 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8437 | else |
|
|
8438 | if test "$cross_compiling" = yes; then |
|
|
8439 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8440 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8441 | /* confdefs.h. */ |
|
|
8442 | _ACEOF |
|
|
8443 | cat confdefs.h >>conftest.$ac_ext |
|
|
8444 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8445 | /* end confdefs.h. */ |
|
|
8446 | $ac_includes_default |
|
|
8447 | typedef long long ac__type_sizeof_; |
|
|
8448 | int |
|
|
8449 | main () |
|
|
8450 | { |
|
|
8451 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8452 | test_array [0] = 0 |
|
|
8453 | |
|
|
8454 | ; |
|
|
8455 | return 0; |
|
|
8456 | } |
|
|
8457 | _ACEOF |
|
|
8458 | rm -f conftest.$ac_objext |
|
|
8459 | if { (ac_try="$ac_compile" |
|
|
8460 | case "(($ac_try" in |
|
|
8461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8462 | *) ac_try_echo=$ac_try;; |
|
|
8463 | esac |
|
|
8464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8465 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8466 | ac_status=$? |
|
|
8467 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8468 | rm -f conftest.er1 |
|
|
8469 | cat conftest.err >&5 |
|
|
8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8471 | (exit $ac_status); } && { |
|
|
8472 | test -z "$ac_cxx_werror_flag" || |
|
|
8473 | test ! -s conftest.err |
|
|
8474 | } && test -s conftest.$ac_objext; then |
|
|
8475 | ac_lo=0 ac_mid=0 |
|
|
8476 | while :; do |
|
|
8477 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8478 | /* confdefs.h. */ |
|
|
8479 | _ACEOF |
|
|
8480 | cat confdefs.h >>conftest.$ac_ext |
|
|
8481 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8482 | /* end confdefs.h. */ |
|
|
8483 | $ac_includes_default |
|
|
8484 | typedef long long ac__type_sizeof_; |
|
|
8485 | int |
|
|
8486 | main () |
|
|
8487 | { |
|
|
8488 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8489 | test_array [0] = 0 |
|
|
8490 | |
|
|
8491 | ; |
|
|
8492 | return 0; |
|
|
8493 | } |
|
|
8494 | _ACEOF |
|
|
8495 | rm -f conftest.$ac_objext |
|
|
8496 | if { (ac_try="$ac_compile" |
|
|
8497 | case "(($ac_try" in |
|
|
8498 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8499 | *) ac_try_echo=$ac_try;; |
|
|
8500 | esac |
|
|
8501 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8502 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8503 | ac_status=$? |
|
|
8504 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8505 | rm -f conftest.er1 |
|
|
8506 | cat conftest.err >&5 |
|
|
8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8508 | (exit $ac_status); } && { |
|
|
8509 | test -z "$ac_cxx_werror_flag" || |
|
|
8510 | test ! -s conftest.err |
|
|
8511 | } && test -s conftest.$ac_objext; then |
|
|
8512 | ac_hi=$ac_mid; break |
|
|
8513 | else |
|
|
8514 | echo "$as_me: failed program was:" >&5 |
|
|
8515 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8516 | |
|
|
8517 | ac_lo=`expr $ac_mid + 1` |
|
|
8518 | if test $ac_lo -le $ac_mid; then |
|
|
8519 | ac_lo= ac_hi= |
|
|
8520 | break |
|
|
8521 | fi |
|
|
8522 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8523 | fi |
|
|
8524 | |
|
|
8525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8526 | done |
|
|
8527 | else |
|
|
8528 | echo "$as_me: failed program was:" >&5 |
|
|
8529 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8530 | |
|
|
8531 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8532 | /* confdefs.h. */ |
|
|
8533 | _ACEOF |
|
|
8534 | cat confdefs.h >>conftest.$ac_ext |
|
|
8535 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8536 | /* end confdefs.h. */ |
|
|
8537 | $ac_includes_default |
|
|
8538 | typedef long long ac__type_sizeof_; |
|
|
8539 | int |
|
|
8540 | main () |
|
|
8541 | { |
|
|
8542 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8543 | test_array [0] = 0 |
|
|
8544 | |
|
|
8545 | ; |
|
|
8546 | return 0; |
|
|
8547 | } |
|
|
8548 | _ACEOF |
|
|
8549 | rm -f conftest.$ac_objext |
|
|
8550 | if { (ac_try="$ac_compile" |
|
|
8551 | case "(($ac_try" in |
|
|
8552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8553 | *) ac_try_echo=$ac_try;; |
|
|
8554 | esac |
|
|
8555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8556 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8557 | ac_status=$? |
|
|
8558 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8559 | rm -f conftest.er1 |
|
|
8560 | cat conftest.err >&5 |
|
|
8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8562 | (exit $ac_status); } && { |
|
|
8563 | test -z "$ac_cxx_werror_flag" || |
|
|
8564 | test ! -s conftest.err |
|
|
8565 | } && test -s conftest.$ac_objext; then |
|
|
8566 | ac_hi=-1 ac_mid=-1 |
|
|
8567 | while :; do |
|
|
8568 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8569 | /* confdefs.h. */ |
|
|
8570 | _ACEOF |
|
|
8571 | cat confdefs.h >>conftest.$ac_ext |
|
|
8572 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8573 | /* end confdefs.h. */ |
|
|
8574 | $ac_includes_default |
|
|
8575 | typedef long long ac__type_sizeof_; |
|
|
8576 | int |
|
|
8577 | main () |
|
|
8578 | { |
|
|
8579 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8580 | test_array [0] = 0 |
|
|
8581 | |
|
|
8582 | ; |
|
|
8583 | return 0; |
|
|
8584 | } |
|
|
8585 | _ACEOF |
|
|
8586 | rm -f conftest.$ac_objext |
|
|
8587 | if { (ac_try="$ac_compile" |
|
|
8588 | case "(($ac_try" in |
|
|
8589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8590 | *) ac_try_echo=$ac_try;; |
|
|
8591 | esac |
|
|
8592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8593 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8594 | ac_status=$? |
|
|
8595 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8596 | rm -f conftest.er1 |
|
|
8597 | cat conftest.err >&5 |
|
|
8598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8599 | (exit $ac_status); } && { |
|
|
8600 | test -z "$ac_cxx_werror_flag" || |
|
|
8601 | test ! -s conftest.err |
|
|
8602 | } && test -s conftest.$ac_objext; then |
|
|
8603 | ac_lo=$ac_mid; break |
|
|
8604 | else |
|
|
8605 | echo "$as_me: failed program was:" >&5 |
|
|
8606 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8607 | |
|
|
8608 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8609 | if test $ac_mid -le $ac_hi; then |
|
|
8610 | ac_lo= ac_hi= |
|
|
8611 | break |
|
|
8612 | fi |
|
|
8613 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8614 | fi |
|
|
8615 | |
|
|
8616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8617 | done |
|
|
8618 | else |
|
|
8619 | echo "$as_me: failed program was:" >&5 |
|
|
8620 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8621 | |
|
|
8622 | ac_lo= ac_hi= |
|
|
8623 | fi |
|
|
8624 | |
|
|
8625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8626 | fi |
|
|
8627 | |
|
|
8628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8629 | # Binary search between lo and hi bounds. |
|
|
8630 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8631 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8632 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8633 | /* confdefs.h. */ |
|
|
8634 | _ACEOF |
|
|
8635 | cat confdefs.h >>conftest.$ac_ext |
|
|
8636 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8637 | /* end confdefs.h. */ |
|
|
8638 | $ac_includes_default |
|
|
8639 | typedef long long ac__type_sizeof_; |
|
|
8640 | int |
|
|
8641 | main () |
|
|
8642 | { |
|
|
8643 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8644 | test_array [0] = 0 |
|
|
8645 | |
|
|
8646 | ; |
|
|
8647 | return 0; |
|
|
8648 | } |
|
|
8649 | _ACEOF |
|
|
8650 | rm -f conftest.$ac_objext |
|
|
8651 | if { (ac_try="$ac_compile" |
|
|
8652 | case "(($ac_try" in |
|
|
8653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8654 | *) ac_try_echo=$ac_try;; |
|
|
8655 | esac |
|
|
8656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8657 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8658 | ac_status=$? |
|
|
8659 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8660 | rm -f conftest.er1 |
|
|
8661 | cat conftest.err >&5 |
|
|
8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8663 | (exit $ac_status); } && { |
|
|
8664 | test -z "$ac_cxx_werror_flag" || |
|
|
8665 | test ! -s conftest.err |
|
|
8666 | } && test -s conftest.$ac_objext; then |
|
|
8667 | ac_hi=$ac_mid |
|
|
8668 | else |
|
|
8669 | echo "$as_me: failed program was:" >&5 |
|
|
8670 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8671 | |
|
|
8672 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8673 | fi |
|
|
8674 | |
|
|
8675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8676 | done |
|
|
8677 | case $ac_lo in |
|
|
8678 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
8679 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
8680 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8681 | See \`config.log' for more details." >&5 |
|
|
8682 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8683 | See \`config.log' for more details." >&2;} |
|
|
8684 | { (exit 77); exit 77; }; } |
|
|
8685 | else |
|
|
8686 | ac_cv_sizeof_long_long=0 |
|
|
8687 | fi ;; |
|
|
8688 | esac |
|
|
8689 | else |
|
|
8690 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8691 | /* confdefs.h. */ |
|
|
8692 | _ACEOF |
|
|
8693 | cat confdefs.h >>conftest.$ac_ext |
|
|
8694 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8695 | /* end confdefs.h. */ |
|
|
8696 | $ac_includes_default |
|
|
8697 | typedef long long ac__type_sizeof_; |
|
|
8698 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8699 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8700 | #include <stdio.h> |
|
|
8701 | #include <stdlib.h> |
|
|
8702 | int |
|
|
8703 | main () |
|
|
8704 | { |
|
|
8705 | |
|
|
8706 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8707 | if (! f) |
|
|
8708 | return 1; |
|
|
8709 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8710 | { |
|
|
8711 | long int i = longval (); |
|
|
8712 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8713 | return 1; |
|
|
8714 | fprintf (f, "%ld\n", i); |
|
|
8715 | } |
|
|
8716 | else |
|
|
8717 | { |
|
|
8718 | unsigned long int i = ulongval (); |
|
|
8719 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8720 | return 1; |
|
|
8721 | fprintf (f, "%lu\n", i); |
|
|
8722 | } |
|
|
8723 | return ferror (f) || fclose (f) != 0; |
|
|
8724 | |
|
|
8725 | ; |
|
|
8726 | return 0; |
|
|
8727 | } |
|
|
8728 | _ACEOF |
|
|
8729 | rm -f conftest$ac_exeext |
|
|
8730 | if { (ac_try="$ac_link" |
|
|
8731 | case "(($ac_try" in |
|
|
8732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8733 | *) ac_try_echo=$ac_try;; |
|
|
8734 | esac |
|
|
8735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8736 | (eval "$ac_link") 2>&5 |
|
|
8737 | ac_status=$? |
|
|
8738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8739 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8740 | { (case "(($ac_try" in |
|
|
8741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8742 | *) ac_try_echo=$ac_try;; |
|
|
8743 | esac |
|
|
8744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8745 | (eval "$ac_try") 2>&5 |
|
|
8746 | ac_status=$? |
|
|
8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8748 | (exit $ac_status); }; }; then |
|
|
8749 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
8750 | else |
|
|
8751 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8752 | echo "$as_me: failed program was:" >&5 |
|
|
8753 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8754 | |
|
|
8755 | ( exit $ac_status ) |
|
|
8756 | if test "$ac_cv_type_long_long" = yes; then |
|
|
8757 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8758 | See \`config.log' for more details." >&5 |
|
|
8759 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8760 | See \`config.log' for more details." >&2;} |
|
|
8761 | { (exit 77); exit 77; }; } |
|
|
8762 | else |
|
|
8763 | ac_cv_sizeof_long_long=0 |
|
|
8764 | fi |
|
|
8765 | fi |
|
|
8766 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8767 | fi |
|
|
8768 | rm -f conftest.val |
|
|
8769 | fi |
|
|
8770 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
8771 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
8772 | |
|
|
8773 | |
|
|
8774 | |
|
|
8775 | cat >>confdefs.h <<_ACEOF |
|
|
8776 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
8777 | _ACEOF |
|
|
8778 | |
|
|
8779 | |
|
|
8780 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
8781 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
8782 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
8783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8784 | else |
|
|
8785 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8786 | /* confdefs.h. */ |
|
|
8787 | _ACEOF |
|
|
8788 | cat confdefs.h >>conftest.$ac_ext |
|
|
8789 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8790 | /* end confdefs.h. */ |
|
|
8791 | $ac_includes_default |
|
|
8792 | typedef int * ac__type_new_; |
|
|
8793 | int |
|
|
8794 | main () |
|
|
8795 | { |
|
|
8796 | if ((ac__type_new_ *) 0) |
|
|
8797 | return 0; |
|
|
8798 | if (sizeof (ac__type_new_)) |
|
|
8799 | return 0; |
|
|
8800 | ; |
|
|
8801 | return 0; |
|
|
8802 | } |
|
|
8803 | _ACEOF |
|
|
8804 | rm -f conftest.$ac_objext |
|
|
8805 | if { (ac_try="$ac_compile" |
|
|
8806 | case "(($ac_try" in |
|
|
8807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8808 | *) ac_try_echo=$ac_try;; |
|
|
8809 | esac |
|
|
8810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8811 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8812 | ac_status=$? |
|
|
8813 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8814 | rm -f conftest.er1 |
|
|
8815 | cat conftest.err >&5 |
|
|
8816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8817 | (exit $ac_status); } && { |
|
|
8818 | test -z "$ac_cxx_werror_flag" || |
|
|
8819 | test ! -s conftest.err |
|
|
8820 | } && test -s conftest.$ac_objext; then |
|
|
8821 | ac_cv_type_int_p=yes |
|
|
8822 | else |
|
|
8823 | echo "$as_me: failed program was:" >&5 |
|
|
8824 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8825 | |
|
|
8826 | ac_cv_type_int_p=no |
|
|
8827 | fi |
|
|
8828 | |
|
|
8829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8830 | fi |
|
|
8831 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
8832 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
8833 | |
|
|
8834 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8835 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8836 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8837 | # This bug is HP SR number 8606223364. |
|
|
8838 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
8839 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
8840 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
8841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8842 | else |
|
|
8843 | if test "$cross_compiling" = yes; then |
|
|
8844 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8845 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8846 | /* confdefs.h. */ |
|
|
8847 | _ACEOF |
|
|
8848 | cat confdefs.h >>conftest.$ac_ext |
|
|
8849 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8850 | /* end confdefs.h. */ |
|
|
8851 | $ac_includes_default |
|
|
8852 | typedef int * ac__type_sizeof_; |
|
|
8853 | int |
|
|
8854 | main () |
|
|
8855 | { |
|
|
8856 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8857 | test_array [0] = 0 |
|
|
8858 | |
|
|
8859 | ; |
|
|
8860 | return 0; |
|
|
8861 | } |
|
|
8862 | _ACEOF |
|
|
8863 | rm -f conftest.$ac_objext |
|
|
8864 | if { (ac_try="$ac_compile" |
|
|
8865 | case "(($ac_try" in |
|
|
8866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8867 | *) ac_try_echo=$ac_try;; |
|
|
8868 | esac |
|
|
8869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8870 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8871 | ac_status=$? |
|
|
8872 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8873 | rm -f conftest.er1 |
|
|
8874 | cat conftest.err >&5 |
|
|
8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8876 | (exit $ac_status); } && { |
|
|
8877 | test -z "$ac_cxx_werror_flag" || |
|
|
8878 | test ! -s conftest.err |
|
|
8879 | } && test -s conftest.$ac_objext; then |
|
|
8880 | ac_lo=0 ac_mid=0 |
|
|
8881 | while :; do |
|
|
8882 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8883 | /* confdefs.h. */ |
|
|
8884 | _ACEOF |
|
|
8885 | cat confdefs.h >>conftest.$ac_ext |
|
|
8886 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8887 | /* end confdefs.h. */ |
|
|
8888 | $ac_includes_default |
|
|
8889 | typedef int * ac__type_sizeof_; |
|
|
8890 | int |
|
|
8891 | main () |
|
|
8892 | { |
|
|
8893 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8894 | test_array [0] = 0 |
|
|
8895 | |
|
|
8896 | ; |
|
|
8897 | return 0; |
|
|
8898 | } |
|
|
8899 | _ACEOF |
|
|
8900 | rm -f conftest.$ac_objext |
|
|
8901 | if { (ac_try="$ac_compile" |
|
|
8902 | case "(($ac_try" in |
|
|
8903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8904 | *) ac_try_echo=$ac_try;; |
|
|
8905 | esac |
|
|
8906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8907 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8908 | ac_status=$? |
|
|
8909 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8910 | rm -f conftest.er1 |
|
|
8911 | cat conftest.err >&5 |
|
|
8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8913 | (exit $ac_status); } && { |
|
|
8914 | test -z "$ac_cxx_werror_flag" || |
|
|
8915 | test ! -s conftest.err |
|
|
8916 | } && test -s conftest.$ac_objext; then |
|
|
8917 | ac_hi=$ac_mid; break |
|
|
8918 | else |
|
|
8919 | echo "$as_me: failed program was:" >&5 |
|
|
8920 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8921 | |
|
|
8922 | ac_lo=`expr $ac_mid + 1` |
|
|
8923 | if test $ac_lo -le $ac_mid; then |
|
|
8924 | ac_lo= ac_hi= |
|
|
8925 | break |
|
|
8926 | fi |
|
|
8927 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8928 | fi |
|
|
8929 | |
|
|
8930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8931 | done |
|
|
8932 | else |
|
|
8933 | echo "$as_me: failed program was:" >&5 |
|
|
8934 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8935 | |
|
|
8936 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8937 | /* confdefs.h. */ |
|
|
8938 | _ACEOF |
|
|
8939 | cat confdefs.h >>conftest.$ac_ext |
|
|
8940 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8941 | /* end confdefs.h. */ |
|
|
8942 | $ac_includes_default |
|
|
8943 | typedef int * ac__type_sizeof_; |
|
|
8944 | int |
|
|
8945 | main () |
|
|
8946 | { |
|
|
8947 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8948 | test_array [0] = 0 |
|
|
8949 | |
|
|
8950 | ; |
|
|
8951 | return 0; |
|
|
8952 | } |
|
|
8953 | _ACEOF |
|
|
8954 | rm -f conftest.$ac_objext |
|
|
8955 | if { (ac_try="$ac_compile" |
|
|
8956 | case "(($ac_try" in |
|
|
8957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8958 | *) ac_try_echo=$ac_try;; |
|
|
8959 | esac |
|
|
8960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8961 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8962 | ac_status=$? |
|
|
8963 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8964 | rm -f conftest.er1 |
|
|
8965 | cat conftest.err >&5 |
|
|
8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8967 | (exit $ac_status); } && { |
|
|
8968 | test -z "$ac_cxx_werror_flag" || |
|
|
8969 | test ! -s conftest.err |
|
|
8970 | } && test -s conftest.$ac_objext; then |
|
|
8971 | ac_hi=-1 ac_mid=-1 |
|
|
8972 | while :; do |
|
|
8973 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8974 | /* confdefs.h. */ |
|
|
8975 | _ACEOF |
|
|
8976 | cat confdefs.h >>conftest.$ac_ext |
|
|
8977 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8978 | /* end confdefs.h. */ |
|
|
8979 | $ac_includes_default |
|
|
8980 | typedef int * ac__type_sizeof_; |
|
|
8981 | int |
|
|
8982 | main () |
|
|
8983 | { |
|
|
8984 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8985 | test_array [0] = 0 |
|
|
8986 | |
|
|
8987 | ; |
|
|
8988 | return 0; |
|
|
8989 | } |
|
|
8990 | _ACEOF |
|
|
8991 | rm -f conftest.$ac_objext |
|
|
8992 | if { (ac_try="$ac_compile" |
|
|
8993 | case "(($ac_try" in |
|
|
8994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8995 | *) ac_try_echo=$ac_try;; |
|
|
8996 | esac |
|
|
8997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8998 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8999 | ac_status=$? |
|
|
9000 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9001 | rm -f conftest.er1 |
|
|
9002 | cat conftest.err >&5 |
|
|
9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9004 | (exit $ac_status); } && { |
|
|
9005 | test -z "$ac_cxx_werror_flag" || |
|
|
9006 | test ! -s conftest.err |
|
|
9007 | } && test -s conftest.$ac_objext; then |
|
|
9008 | ac_lo=$ac_mid; break |
|
|
9009 | else |
|
|
9010 | echo "$as_me: failed program was:" >&5 |
|
|
9011 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9012 | |
|
|
9013 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9014 | if test $ac_mid -le $ac_hi; then |
|
|
9015 | ac_lo= ac_hi= |
|
|
9016 | break |
|
|
9017 | fi |
|
|
9018 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9019 | fi |
|
|
9020 | |
|
|
9021 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9022 | done |
|
|
9023 | else |
|
|
9024 | echo "$as_me: failed program was:" >&5 |
|
|
9025 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9026 | |
|
|
9027 | ac_lo= ac_hi= |
|
|
9028 | fi |
|
|
9029 | |
|
|
9030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9031 | fi |
|
|
9032 | |
|
|
9033 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9034 | # Binary search between lo and hi bounds. |
|
|
9035 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9036 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9037 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9038 | /* confdefs.h. */ |
|
|
9039 | _ACEOF |
|
|
9040 | cat confdefs.h >>conftest.$ac_ext |
|
|
9041 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9042 | /* end confdefs.h. */ |
|
|
9043 | $ac_includes_default |
|
|
9044 | typedef int * ac__type_sizeof_; |
|
|
9045 | int |
|
|
9046 | main () |
|
|
9047 | { |
|
|
9048 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9049 | test_array [0] = 0 |
|
|
9050 | |
|
|
9051 | ; |
|
|
9052 | return 0; |
|
|
9053 | } |
|
|
9054 | _ACEOF |
|
|
9055 | rm -f conftest.$ac_objext |
|
|
9056 | if { (ac_try="$ac_compile" |
|
|
9057 | case "(($ac_try" in |
|
|
9058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9059 | *) ac_try_echo=$ac_try;; |
|
|
9060 | esac |
|
|
9061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9062 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9063 | ac_status=$? |
|
|
9064 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9065 | rm -f conftest.er1 |
|
|
9066 | cat conftest.err >&5 |
|
|
9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9068 | (exit $ac_status); } && { |
|
|
9069 | test -z "$ac_cxx_werror_flag" || |
|
|
9070 | test ! -s conftest.err |
|
|
9071 | } && test -s conftest.$ac_objext; then |
|
|
9072 | ac_hi=$ac_mid |
|
|
9073 | else |
|
|
9074 | echo "$as_me: failed program was:" >&5 |
|
|
9075 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9076 | |
|
|
9077 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9078 | fi |
|
|
9079 | |
|
|
9080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9081 | done |
|
|
9082 | case $ac_lo in |
|
|
9083 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9084 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9085 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9086 | See \`config.log' for more details." >&5 |
|
|
9087 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9088 | See \`config.log' for more details." >&2;} |
|
|
9089 | { (exit 77); exit 77; }; } |
|
|
9090 | else |
|
|
9091 | ac_cv_sizeof_int_p=0 |
|
|
9092 | fi ;; |
|
|
9093 | esac |
|
|
9094 | else |
|
|
9095 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9096 | /* confdefs.h. */ |
|
|
9097 | _ACEOF |
|
|
9098 | cat confdefs.h >>conftest.$ac_ext |
|
|
9099 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9100 | /* end confdefs.h. */ |
|
|
9101 | $ac_includes_default |
|
|
9102 | typedef int * ac__type_sizeof_; |
|
|
9103 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9104 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9105 | #include <stdio.h> |
|
|
9106 | #include <stdlib.h> |
|
|
9107 | int |
|
|
9108 | main () |
|
|
9109 | { |
|
|
9110 | |
|
|
9111 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9112 | if (! f) |
|
|
9113 | return 1; |
|
|
9114 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9115 | { |
|
|
9116 | long int i = longval (); |
|
|
9117 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9118 | return 1; |
|
|
9119 | fprintf (f, "%ld\n", i); |
|
|
9120 | } |
|
|
9121 | else |
|
|
9122 | { |
|
|
9123 | unsigned long int i = ulongval (); |
|
|
9124 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9125 | return 1; |
|
|
9126 | fprintf (f, "%lu\n", i); |
|
|
9127 | } |
|
|
9128 | return ferror (f) || fclose (f) != 0; |
|
|
9129 | |
|
|
9130 | ; |
|
|
9131 | return 0; |
|
|
9132 | } |
|
|
9133 | _ACEOF |
|
|
9134 | rm -f conftest$ac_exeext |
|
|
9135 | if { (ac_try="$ac_link" |
|
|
9136 | case "(($ac_try" in |
|
|
9137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9138 | *) ac_try_echo=$ac_try;; |
|
|
9139 | esac |
|
|
9140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9141 | (eval "$ac_link") 2>&5 |
|
|
9142 | ac_status=$? |
|
|
9143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9145 | { (case "(($ac_try" in |
|
|
9146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9147 | *) ac_try_echo=$ac_try;; |
|
|
9148 | esac |
|
|
9149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9150 | (eval "$ac_try") 2>&5 |
|
|
9151 | ac_status=$? |
|
|
9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9153 | (exit $ac_status); }; }; then |
|
|
9154 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9155 | else |
|
|
9156 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9157 | echo "$as_me: failed program was:" >&5 |
|
|
9158 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9159 | |
|
|
9160 | ( exit $ac_status ) |
|
|
9161 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9162 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9163 | See \`config.log' for more details." >&5 |
|
|
9164 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9165 | See \`config.log' for more details." >&2;} |
|
|
9166 | { (exit 77); exit 77; }; } |
|
|
9167 | else |
|
|
9168 | ac_cv_sizeof_int_p=0 |
|
|
9169 | fi |
|
|
9170 | fi |
|
|
9171 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9172 | fi |
|
|
9173 | rm -f conftest.val |
|
|
9174 | fi |
|
|
9175 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9176 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9177 | |
|
|
9178 | |
|
|
9179 | |
|
|
9180 | cat >>confdefs.h <<_ACEOF |
|
|
9181 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9182 | _ACEOF |
|
|
9183 | |
|
|
9184 | |
|
|
9185 | |
|
|
9186 | |
|
|
9187 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9188 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9189 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9191 | else |
|
|
9192 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9193 | /* confdefs.h. */ |
|
|
9194 | _ACEOF |
|
|
9195 | cat confdefs.h >>conftest.$ac_ext |
|
|
9196 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9197 | /* end confdefs.h. */ |
|
|
9198 | #include <stdint.h> |
|
|
9199 | int |
|
|
9200 | main () |
|
|
9201 | { |
|
|
9202 | int16_t dummy; |
|
|
9203 | ; |
|
|
9204 | return 0; |
|
|
9205 | } |
|
|
9206 | _ACEOF |
|
|
9207 | rm -f conftest.$ac_objext |
|
|
9208 | if { (ac_try="$ac_compile" |
|
|
9209 | case "(($ac_try" in |
|
|
9210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9211 | *) ac_try_echo=$ac_try;; |
|
|
9212 | esac |
|
|
9213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9214 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9215 | ac_status=$? |
|
|
9216 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9217 | rm -f conftest.er1 |
|
|
9218 | cat conftest.err >&5 |
|
|
9219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9220 | (exit $ac_status); } && { |
|
|
9221 | test -z "$ac_cxx_werror_flag" || |
|
|
9222 | test ! -s conftest.err |
|
|
9223 | } && test -s conftest.$ac_objext; then |
|
|
9224 | rxvt_cv_int16_t=yes |
|
|
9225 | else |
|
|
9226 | echo "$as_me: failed program was:" >&5 |
|
|
9227 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9228 | |
|
|
9229 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9230 | rxvt_cv_int16_t=" char" |
|
|
9231 | else |
|
|
9232 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9233 | rxvt_cv_int16_t=" short" |
|
|
9234 | else |
|
|
9235 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9236 | rxvt_cv_int16_t=" int" |
|
|
9237 | else |
|
|
9238 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9239 | rxvt_cv_int16_t=" long" |
|
|
9240 | else |
|
|
9241 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9242 | rxvt_cv_int16_t=" long long" |
|
|
9243 | else |
|
|
9244 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9245 | fi |
|
|
9246 | fi |
|
|
9247 | fi |
|
|
9248 | fi |
|
|
9249 | fi |
|
|
9250 | fi |
|
|
9251 | |
|
|
9252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9253 | fi |
|
|
9254 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9255 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9256 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9257 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9258 | else |
|
|
9259 | if test x"" = x; then |
|
|
9260 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9261 | else |
|
|
9262 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9263 | fi |
|
|
9264 | fi |
|
|
9265 | |
|
|
9266 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9267 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9268 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9270 | else |
|
|
9271 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9272 | /* confdefs.h. */ |
|
|
9273 | _ACEOF |
|
|
9274 | cat confdefs.h >>conftest.$ac_ext |
|
|
9275 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9276 | /* end confdefs.h. */ |
|
|
9277 | #include <stdint.h> |
|
|
9278 | int |
|
|
9279 | main () |
|
|
9280 | { |
|
|
9281 | uint16_t dummy; |
|
|
9282 | ; |
|
|
9283 | return 0; |
|
|
9284 | } |
|
|
9285 | _ACEOF |
|
|
9286 | rm -f conftest.$ac_objext |
|
|
9287 | if { (ac_try="$ac_compile" |
|
|
9288 | case "(($ac_try" in |
|
|
9289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9290 | *) ac_try_echo=$ac_try;; |
|
|
9291 | esac |
|
|
9292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9293 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9294 | ac_status=$? |
|
|
9295 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9296 | rm -f conftest.er1 |
|
|
9297 | cat conftest.err >&5 |
|
|
9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9299 | (exit $ac_status); } && { |
|
|
9300 | test -z "$ac_cxx_werror_flag" || |
|
|
9301 | test ! -s conftest.err |
|
|
9302 | } && test -s conftest.$ac_objext; then |
|
|
9303 | rxvt_cv_uint16_t=yes |
|
|
9304 | else |
|
|
9305 | echo "$as_me: failed program was:" >&5 |
|
|
9306 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9307 | |
|
|
9308 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9309 | rxvt_cv_uint16_t="unsigned char" |
|
|
9310 | else |
|
|
9311 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9312 | rxvt_cv_uint16_t="unsigned short" |
|
|
9313 | else |
|
|
9314 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9315 | rxvt_cv_uint16_t="unsigned int" |
|
|
9316 | else |
|
|
9317 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9318 | rxvt_cv_uint16_t="unsigned long" |
|
|
9319 | else |
|
|
9320 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9321 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9322 | else |
|
|
9323 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9324 | fi |
|
|
9325 | fi |
|
|
9326 | fi |
|
|
9327 | fi |
|
|
9328 | fi |
|
|
9329 | fi |
|
|
9330 | |
|
|
9331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9332 | fi |
|
|
9333 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9334 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9335 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9336 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9337 | else |
|
|
9338 | if test x"unsigned" = x; then |
|
|
9339 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9340 | else |
|
|
9341 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9342 | fi |
|
|
9343 | fi |
|
|
9344 | |
|
|
9345 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9346 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9347 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9349 | else |
|
|
9350 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9351 | /* confdefs.h. */ |
|
|
9352 | _ACEOF |
|
|
9353 | cat confdefs.h >>conftest.$ac_ext |
|
|
9354 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9355 | /* end confdefs.h. */ |
|
|
9356 | #include <stdint.h> |
|
|
9357 | int |
|
|
9358 | main () |
|
|
9359 | { |
|
|
9360 | int32_t dummy; |
|
|
9361 | ; |
|
|
9362 | return 0; |
|
|
9363 | } |
|
|
9364 | _ACEOF |
|
|
9365 | rm -f conftest.$ac_objext |
|
|
9366 | if { (ac_try="$ac_compile" |
|
|
9367 | case "(($ac_try" in |
|
|
9368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9369 | *) ac_try_echo=$ac_try;; |
|
|
9370 | esac |
|
|
9371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9372 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9373 | ac_status=$? |
|
|
9374 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9375 | rm -f conftest.er1 |
|
|
9376 | cat conftest.err >&5 |
|
|
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9378 | (exit $ac_status); } && { |
|
|
9379 | test -z "$ac_cxx_werror_flag" || |
|
|
9380 | test ! -s conftest.err |
|
|
9381 | } && test -s conftest.$ac_objext; then |
|
|
9382 | rxvt_cv_int32_t=yes |
|
|
9383 | else |
|
|
9384 | echo "$as_me: failed program was:" >&5 |
|
|
9385 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9386 | |
|
|
9387 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9388 | rxvt_cv_int32_t=" char" |
|
|
9389 | else |
|
|
9390 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9391 | rxvt_cv_int32_t=" short" |
|
|
9392 | else |
|
|
9393 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9394 | rxvt_cv_int32_t=" int" |
|
|
9395 | else |
|
|
9396 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9397 | rxvt_cv_int32_t=" long" |
|
|
9398 | else |
|
|
9399 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9400 | rxvt_cv_int32_t=" long long" |
|
|
9401 | else |
|
|
9402 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9403 | fi |
|
|
9404 | fi |
|
|
9405 | fi |
|
|
9406 | fi |
|
|
9407 | fi |
|
|
9408 | fi |
|
|
9409 | |
|
|
9410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9411 | fi |
|
|
9412 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9413 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9414 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9415 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9416 | else |
|
|
9417 | if test x"" = x; then |
|
|
9418 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9419 | else |
|
|
9420 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9421 | fi |
|
|
9422 | fi |
|
|
9423 | |
|
|
9424 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9425 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9426 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9428 | else |
|
|
9429 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9430 | /* confdefs.h. */ |
|
|
9431 | _ACEOF |
|
|
9432 | cat confdefs.h >>conftest.$ac_ext |
|
|
9433 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9434 | /* end confdefs.h. */ |
|
|
9435 | #include <stdint.h> |
|
|
9436 | int |
|
|
9437 | main () |
|
|
9438 | { |
|
|
9439 | uint32_t dummy; |
|
|
9440 | ; |
|
|
9441 | return 0; |
|
|
9442 | } |
|
|
9443 | _ACEOF |
|
|
9444 | rm -f conftest.$ac_objext |
|
|
9445 | if { (ac_try="$ac_compile" |
|
|
9446 | case "(($ac_try" in |
|
|
9447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9448 | *) ac_try_echo=$ac_try;; |
|
|
9449 | esac |
|
|
9450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9451 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9452 | ac_status=$? |
|
|
9453 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9454 | rm -f conftest.er1 |
|
|
9455 | cat conftest.err >&5 |
|
|
9456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9457 | (exit $ac_status); } && { |
|
|
9458 | test -z "$ac_cxx_werror_flag" || |
|
|
9459 | test ! -s conftest.err |
|
|
9460 | } && test -s conftest.$ac_objext; then |
|
|
9461 | rxvt_cv_uint32_t=yes |
|
|
9462 | else |
|
|
9463 | echo "$as_me: failed program was:" >&5 |
|
|
9464 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9465 | |
|
|
9466 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9467 | rxvt_cv_uint32_t="unsigned char" |
|
|
9468 | else |
|
|
9469 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9470 | rxvt_cv_uint32_t="unsigned short" |
|
|
9471 | else |
|
|
9472 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9473 | rxvt_cv_uint32_t="unsigned int" |
|
|
9474 | else |
|
|
9475 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9476 | rxvt_cv_uint32_t="unsigned long" |
|
|
9477 | else |
|
|
9478 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9479 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9480 | else |
|
|
9481 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9482 | fi |
|
|
9483 | fi |
|
|
9484 | fi |
|
|
9485 | fi |
|
|
9486 | fi |
|
|
9487 | fi |
|
|
9488 | |
|
|
9489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9490 | fi |
|
|
9491 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9492 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9493 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9494 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9495 | else |
|
|
9496 | if test x"unsigned" = x; then |
|
|
9497 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9498 | else |
|
|
9499 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9500 | fi |
|
|
9501 | fi |
|
|
9502 | |
|
|
9503 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9504 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9505 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9506 | else |
|
|
9507 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9508 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9509 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9510 | else |
|
|
9511 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9512 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9513 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9514 | else |
|
|
9515 | rxvt_intp_define="#error set intp_t" |
|
|
9516 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9517 | fi |
|
|
9518 | fi |
|
|
9519 | fi |
|
|
9520 | |
|
|
9521 | |
|
|
9522 | |
|
|
9523 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9524 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9525 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9527 | else |
|
|
9528 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9529 | /* confdefs.h. */ |
|
|
9530 | _ACEOF |
|
|
9531 | cat confdefs.h >>conftest.$ac_ext |
|
|
9532 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9533 | /* end confdefs.h. */ |
|
|
9534 | #include <sys/types.h> |
|
|
9535 | #include <signal.h> |
|
|
9536 | |
|
|
9537 | int |
|
|
9538 | main () |
|
|
9539 | { |
|
|
9540 | return *(signal (0, 0)) (0) == 1; |
|
|
9541 | ; |
|
|
9542 | return 0; |
|
|
9543 | } |
|
|
9544 | _ACEOF |
|
|
9545 | rm -f conftest.$ac_objext |
|
|
9546 | if { (ac_try="$ac_compile" |
|
|
9547 | case "(($ac_try" in |
|
|
9548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9549 | *) ac_try_echo=$ac_try;; |
|
|
9550 | esac |
|
|
9551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9552 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9553 | ac_status=$? |
|
|
9554 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9555 | rm -f conftest.er1 |
|
|
9556 | cat conftest.err >&5 |
|
|
9557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9558 | (exit $ac_status); } && { |
|
|
9559 | test -z "$ac_cxx_werror_flag" || |
|
|
9560 | test ! -s conftest.err |
|
|
9561 | } && test -s conftest.$ac_objext; then |
|
|
9562 | ac_cv_type_signal=int |
|
|
9563 | else |
|
|
9564 | echo "$as_me: failed program was:" >&5 |
|
|
9565 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9566 | |
|
|
9567 | ac_cv_type_signal=void |
|
|
9568 | fi |
|
|
9569 | |
|
|
9570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9571 | fi |
|
|
9572 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9573 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9574 | |
|
|
9575 | cat >>confdefs.h <<_ACEOF |
|
|
9576 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9577 | _ACEOF |
|
|
9578 | |
|
|
9579 | |
|
|
9580 | |
|
|
9581 | |
|
|
9582 | |
|
|
9583 | |
|
|
9584 | for ac_func in \ |
8482 | for ac_func in unsetenv |
9585 | unsetenv \ |
|
|
9586 | setutent \ |
|
|
9587 | on_exit \ |
|
|
9588 | |
|
|
9589 | do |
8483 | do |
9590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9591 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8485 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9593 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8487 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9732 | |
8626 | |
9733 | |
8627 | |
9734 | |
8628 | |
9735 | |
8629 | |
9736 | for ac_func in \ |
8630 | for ac_func in \ |
9737 | ttyslot \ |
|
|
9738 | updwtmp \ |
8631 | updwtmp \ |
9739 | updwtmpx \ |
8632 | updwtmpx \ |
|
|
8633 | updlastlogx \ |
9740 | |
8634 | |
9741 | do |
8635 | do |
9742 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9743 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8637 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9744 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
11165 | |
10059 | |
11166 | cat >>confdefs.h <<_ACEOF |
10060 | cat >>confdefs.h <<_ACEOF |
11167 | #define LASTLOG_FILE "$path_lastlog" |
10061 | #define LASTLOG_FILE "$path_lastlog" |
11168 | _ACEOF |
10062 | _ACEOF |
11169 | |
10063 | |
11170 | if test -d "$path_lastlog"; then |
|
|
11171 | |
|
|
11172 | cat >>confdefs.h <<\_ACEOF |
|
|
11173 | #define LASTLOG_IS_DIR 1 |
|
|
11174 | _ACEOF |
|
|
11175 | |
|
|
11176 | fi |
|
|
11177 | fi |
10064 | fi |
11178 | |
10065 | |
11179 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10066 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11180 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10067 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11181 | if test "${path_lastlogx+set}" = set; then |
10068 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11263 | |
10150 | |
11264 | fi |
10151 | fi |
11265 | |
10152 | |
11266 | |
10153 | |
11267 | |
10154 | |
11268 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11269 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11270 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11272 | else |
|
|
11273 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11274 | do |
|
|
11275 | if test -f "$ttys_file" ; then |
|
|
11276 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11277 | break |
|
|
11278 | fi |
|
|
11279 | done |
|
|
11280 | |
10155 | |
11281 | fi |
|
|
11282 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11283 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11284 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11285 | |
|
|
11286 | cat >>confdefs.h <<_ACEOF |
|
|
11287 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11288 | _ACEOF |
|
|
11289 | |
|
|
11290 | fi |
|
|
11291 | |
|
|
11292 | |
|
|
11293 | ac_save_LIBS=$LIBS |
10156 | save_LIBS=$LIBS |
11294 | ac_save_CFLAGS=$CFLAGS |
10157 | save_CFLAGS=$CFLAGS |
11295 | CFLAGS="$CFLAGS $X_CFLAGS" |
10158 | CFLAGS="$CFLAGS $X_CFLAGS" |
11296 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10159 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11297 | if test x$support_xim = xyes; then |
10160 | if test x$support_xim = xyes; then |
11298 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10161 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11299 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10162 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
… | |
… | |
11474 | cat >>confdefs.h <<\_ACEOF |
10337 | cat >>confdefs.h <<\_ACEOF |
11475 | #define HAVE_XSETLOCALE 1 |
10338 | #define HAVE_XSETLOCALE 1 |
11476 | _ACEOF |
10339 | _ACEOF |
11477 | |
10340 | |
11478 | fi |
10341 | fi |
11479 | LIBS=$ac_save_LIBS |
10342 | LIBS=$save_LIBS |
11480 | CFLAGS=$ac_save_CFLAGS |
10343 | CFLAGS=$save_CFLAGS |
11481 | |
10344 | |
11482 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10345 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11483 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10346 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11484 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10347 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12378 | echo "${ECHO_T}no" >&6; } |
11241 | echo "${ECHO_T}no" >&6; } |
12379 | fi |
11242 | fi |
12380 | |
11243 | |
12381 | |
11244 | |
12382 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11245 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12383 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11246 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12384 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11247 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12385 | else |
11248 | else |
12386 | # Extract the first word of "xft-config", so it can be a program name with args. |
11249 | # Extract the first word of "xft-config", so it can be a program name with args. |
12387 | set dummy xft-config; ac_word=$2 |
11250 | set dummy xft-config; ac_word=$2 |
12388 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11251 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12423 | echo "${ECHO_T}no" >&6; } |
11286 | echo "${ECHO_T}no" >&6; } |
12424 | fi |
11287 | fi |
12425 | |
11288 | |
12426 | |
11289 | |
12427 | if test $XFT_CONFIG != no; then |
11290 | if test $XFT_CONFIG != no; then |
12428 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11291 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12429 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11292 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12430 | fi |
11293 | fi |
12431 | fi |
11294 | fi |
12432 | |
11295 | |
|
|
11296 | save_LIBS="$LIBS" |
|
|
11297 | LIBS="$LIBS $X_LIBS" |
12433 | |
11298 | |
12434 | for ac_header in X11/Xft/Xft.h |
11299 | for ac_header in X11/Xft/Xft.h |
12435 | do |
11300 | do |
12436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11301 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12437 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12570 | support_xft=no |
11435 | support_xft=no |
12571 | fi |
11436 | fi |
12572 | |
11437 | |
12573 | done |
11438 | done |
12574 | |
11439 | |
12575 | |
|
|
12576 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11440 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12577 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11441 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12578 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11442 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12580 | else |
11444 | else |
12581 | ac_check_lib_save_LIBS=$LIBS |
11445 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12633 | LIBS=$ac_check_lib_save_LIBS |
11497 | LIBS=$ac_check_lib_save_LIBS |
12634 | fi |
11498 | fi |
12635 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11499 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12636 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11500 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12637 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11501 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12638 | cat >>confdefs.h <<_ACEOF |
11502 | : |
12639 | #define HAVE_LIBXFT 1 |
|
|
12640 | _ACEOF |
|
|
12641 | |
|
|
12642 | LIBS="-lXft $LIBS" |
|
|
12643 | |
|
|
12644 | else |
11503 | else |
12645 | support_xft=no |
11504 | support_xft=no |
12646 | fi |
11505 | fi |
12647 | |
11506 | |
|
|
11507 | LIBS="$save_LIBS" |
12648 | |
11508 | |
12649 | if test x$support_xft = xyes; then |
11509 | if test x$support_xft = xyes; then |
12650 | |
11510 | |
12651 | cat >>confdefs.h <<\_ACEOF |
11511 | cat >>confdefs.h <<\_ACEOF |
12652 | #define XFT 1 |
11512 | #define XFT 1 |
… | |
… | |
13047 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
11907 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
13048 | include_stdint_h="#include <stdint.h>" |
11908 | include_stdint_h="#include <stdint.h>" |
13049 | else |
11909 | else |
13050 | include_stdint_h="/* #include <stdint.h> */" |
11910 | include_stdint_h="/* #include <stdint.h> */" |
13051 | fi |
11911 | fi |
13052 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13053 | include_stdarg_h="#include <cstdarg>" |
|
|
13054 | else |
|
|
13055 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13056 | fi |
|
|
13057 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13058 | include_stdlib_h="#include <cstdlib>" |
|
|
13059 | else |
|
|
13060 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13061 | fi |
|
|
13062 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13063 | include_unistd_h="#include <unistd.h>" |
|
|
13064 | else |
|
|
13065 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13066 | fi |
|
|
13067 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13068 | include_string_h="#include <cstring>" |
|
|
13069 | else |
|
|
13070 | include_string_h="/* #include <cstring> */" |
|
|
13071 | fi |
|
|
13072 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13073 | include_fcntl_h="#include <fcntl.h>" |
|
|
13074 | else |
|
|
13075 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13076 | fi |
|
|
13077 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13078 | include_util_h="#include <util.h>" |
|
|
13079 | else |
|
|
13080 | include_util_h="/* #include <util.h> */" |
|
|
13081 | fi |
|
|
13082 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13083 | include_assert_h="#include <assert.h>" |
|
|
13084 | else |
|
|
13085 | include_assert_h="/* #include <assert.h> */" |
|
|
13086 | fi |
|
|
13087 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
11912 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
13088 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
11913 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
13089 | else |
11914 | else |
13090 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
11915 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
13091 | fi |
11916 | fi |
13092 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13093 | include_sys_select_h="#include <sys/select.h>" |
|
|
13094 | else |
|
|
13095 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13096 | fi |
|
|
13097 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
11917 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
13098 | include_sys_strredir_h="#include <sys/strredir.h>" |
11918 | include_sys_strredir_h="#include <sys/strredir.h>" |
13099 | else |
11919 | else |
13100 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
11920 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
13101 | fi |
|
|
13102 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13103 | include_sys_time_h="#include <sys/time.h>" |
|
|
13104 | else |
|
|
13105 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13106 | fi |
|
|
13107 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13108 | include_time_h="#include <time.h>" |
|
|
13109 | else |
|
|
13110 | include_time_h="/* #include <time.h> */" |
|
|
13111 | fi |
11921 | fi |
13112 | |
11922 | |
13113 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11923 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
13114 | |
11924 | |
13115 | cat >confcache <<\_ACEOF |
11925 | cat >confcache <<\_ACEOF |
… | |
… | |
13776 | host_cpu!$host_cpu$ac_delim |
12586 | host_cpu!$host_cpu$ac_delim |
13777 | host_vendor!$host_vendor$ac_delim |
12587 | host_vendor!$host_vendor$ac_delim |
13778 | host_os!$host_os$ac_delim |
12588 | host_os!$host_os$ac_delim |
13779 | VERSION!$VERSION$ac_delim |
12589 | VERSION!$VERSION$ac_delim |
13780 | DATE!$DATE$ac_delim |
12590 | DATE!$DATE$ac_delim |
13781 | LSMDATE!$LSMDATE$ac_delim |
|
|
13782 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13783 | CC!$CC$ac_delim |
12591 | CC!$CC$ac_delim |
13784 | CFLAGS!$CFLAGS$ac_delim |
12592 | CFLAGS!$CFLAGS$ac_delim |
13785 | LDFLAGS!$LDFLAGS$ac_delim |
12593 | LDFLAGS!$LDFLAGS$ac_delim |
13786 | CPPFLAGS!$CPPFLAGS$ac_delim |
12594 | CPPFLAGS!$CPPFLAGS$ac_delim |
13787 | ac_ct_CC!$ac_ct_CC$ac_delim |
12595 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13795 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12603 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13796 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12604 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13797 | GREP!$GREP$ac_delim |
12605 | GREP!$GREP$ac_delim |
13798 | EGREP!$EGREP$ac_delim |
12606 | EGREP!$EGREP$ac_delim |
13799 | LINKER!$LINKER$ac_delim |
12607 | LINKER!$LINKER$ac_delim |
13800 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13801 | RXVTNAME!$RXVTNAME$ac_delim |
12608 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12609 | CXXCPP!$CXXCPP$ac_delim |
13802 | TIC!$TIC$ac_delim |
12610 | TIC!$TIC$ac_delim |
13803 | XMKMF!$XMKMF$ac_delim |
12611 | XMKMF!$XMKMF$ac_delim |
13804 | CXXCPP!$CXXCPP$ac_delim |
|
|
13805 | X_CFLAGS!$X_CFLAGS$ac_delim |
12612 | X_CFLAGS!$X_CFLAGS$ac_delim |
13806 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12613 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13807 | X_LIBS!$X_LIBS$ac_delim |
12614 | X_LIBS!$X_LIBS$ac_delim |
13808 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12615 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13809 | afterimage_config!$afterimage_config$ac_delim |
12616 | afterimage_config!$afterimage_config$ac_delim |
13810 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
13811 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
13812 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
13813 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
13814 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
13815 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
13816 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12617 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13817 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12618 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13818 | PERL!$PERL$ac_delim |
12619 | PERL!$PERL$ac_delim |
13819 | PERLLIB!$PERLLIB$ac_delim |
12620 | PERLLIB!$PERLLIB$ac_delim |
13820 | PERLFLAGS!$PERLFLAGS$ac_delim |
12621 | PERLFLAGS!$PERLFLAGS$ac_delim |
… | |
… | |
13822 | IF_PERL!$IF_PERL$ac_delim |
12623 | IF_PERL!$IF_PERL$ac_delim |
13823 | PERL_O!$PERL_O$ac_delim |
12624 | PERL_O!$PERL_O$ac_delim |
13824 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12625 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13825 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12626 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13826 | include_stdint_h!$include_stdint_h$ac_delim |
12627 | include_stdint_h!$include_stdint_h$ac_delim |
13827 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
13828 | include_stdlib_h!$include_stdlib_h$ac_delim |
12628 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
13829 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
13830 | include_string_h!$include_string_h$ac_delim |
12629 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
12630 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12631 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13831 | _ACEOF |
12632 | _ACEOF |
13832 | |
12633 | |
13833 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12634 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
13834 | break |
12635 | break |
13835 | elif $ac_last_try; then |
12636 | elif $ac_last_try; then |
13836 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12637 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13837 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12638 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13838 | { (exit 1); exit 1; }; } |
12639 | { (exit 1); exit 1; }; } |
… | |
… | |
13847 | ac_eof=`expr $ac_eof + 1` |
12648 | ac_eof=`expr $ac_eof + 1` |
13848 | fi |
12649 | fi |
13849 | |
12650 | |
13850 | cat >>$CONFIG_STATUS <<_ACEOF |
12651 | cat >>$CONFIG_STATUS <<_ACEOF |
13851 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12652 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13852 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
13853 | _ACEOF |
|
|
13854 | sed ' |
|
|
13855 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
13856 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
13857 | :n |
|
|
13858 | t n |
|
|
13859 | s/'"$ac_delim"'$/,g/; t |
|
|
13860 | s/$/\\/; p |
|
|
13861 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
13862 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
13863 | rm -f conf$$subs.sed |
|
|
13864 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13865 | CEOF$ac_eof |
|
|
13866 | _ACEOF |
|
|
13867 | |
|
|
13868 | |
|
|
13869 | ac_delim='%!_!# ' |
|
|
13870 | for ac_last_try in false false false false false :; do |
|
|
13871 | cat >conf$$subs.sed <<_ACEOF |
|
|
13872 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
13873 | include_util_h!$include_util_h$ac_delim |
|
|
13874 | include_assert_h!$include_assert_h$ac_delim |
|
|
13875 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
13876 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
13877 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
13878 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
13879 | include_time_h!$include_time_h$ac_delim |
|
|
13880 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
13881 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
13882 | _ACEOF |
|
|
13883 | |
|
|
13884 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
13885 | break |
|
|
13886 | elif $ac_last_try; then |
|
|
13887 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
13888 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
13889 | { (exit 1); exit 1; }; } |
|
|
13890 | else |
|
|
13891 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
13892 | fi |
|
|
13893 | done |
|
|
13894 | |
|
|
13895 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
13896 | if test -n "$ac_eof"; then |
|
|
13897 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
13898 | ac_eof=`expr $ac_eof + 1` |
|
|
13899 | fi |
|
|
13900 | |
|
|
13901 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13902 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
13903 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12653 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
13904 | _ACEOF |
12654 | _ACEOF |
13905 | sed ' |
12655 | sed ' |
13906 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12656 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
13907 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12657 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14160 | s&@builddir@&$ac_builddir&;t t |
12910 | s&@builddir@&$ac_builddir&;t t |
14161 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12911 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14162 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12912 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14163 | s&@INSTALL@&$ac_INSTALL&;t t |
12913 | s&@INSTALL@&$ac_INSTALL&;t t |
14164 | $ac_datarootdir_hack |
12914 | $ac_datarootdir_hack |
14165 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12915 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14166 | |
12916 | |
14167 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12917 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14168 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12918 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14169 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12919 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14170 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12920 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |