… | |
… | |
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 | |
|
|
5843 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
5844 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
5845 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5847 | else |
|
|
5848 | ac_check_lib_save_LIBS=$LIBS |
|
|
5849 | LIBS="-lm $LIBS" |
|
|
5850 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5851 | /* confdefs.h. */ |
|
|
5852 | _ACEOF |
|
|
5853 | cat confdefs.h >>conftest.$ac_ext |
|
|
5854 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5855 | /* end confdefs.h. */ |
|
|
5856 | |
|
|
5857 | /* Override any GCC internal prototype to avoid an error. |
|
|
5858 | Use char because int might match the return type of a GCC |
|
|
5859 | builtin and then its argument prototype would still apply. */ |
|
|
5860 | #ifdef __cplusplus |
|
|
5861 | extern "C" |
|
|
5862 | #endif |
|
|
5863 | char ceil (); |
|
|
5864 | int |
|
|
5865 | main () |
|
|
5866 | { |
|
|
5867 | return ceil (); |
|
|
5868 | ; |
|
|
5869 | return 0; |
|
|
5870 | } |
|
|
5871 | _ACEOF |
|
|
5872 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5873 | if { (ac_try="$ac_link" |
|
|
5874 | case "(($ac_try" in |
|
|
5875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5876 | *) ac_try_echo=$ac_try;; |
|
|
5877 | esac |
|
|
5878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5879 | (eval "$ac_link") 2>conftest.er1 |
|
|
5880 | ac_status=$? |
|
|
5881 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5882 | rm -f conftest.er1 |
|
|
5883 | cat conftest.err >&5 |
|
|
5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5885 | (exit $ac_status); } && { |
|
|
5886 | test -z "$ac_cxx_werror_flag" || |
|
|
5887 | test ! -s conftest.err |
|
|
5888 | } && test -s conftest$ac_exeext && |
|
|
5889 | $as_test_x conftest$ac_exeext; then |
|
|
5890 | ac_cv_lib_m_ceil=yes |
|
|
5891 | else |
|
|
5892 | echo "$as_me: failed program was:" >&5 |
|
|
5893 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5894 | |
|
|
5895 | ac_cv_lib_m_ceil=no |
|
|
5896 | fi |
|
|
5897 | |
|
|
5898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5899 | conftest$ac_exeext conftest.$ac_ext |
|
|
5900 | LIBS=$ac_check_lib_save_LIBS |
|
|
5901 | fi |
|
|
5902 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
5903 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
5904 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
5905 | cat >>confdefs.h <<_ACEOF |
|
|
5906 | #define HAVE_LIBM 1 |
|
|
5907 | _ACEOF |
|
|
5908 | |
|
|
5909 | LIBS="-lm $LIBS" |
|
|
5910 | |
|
|
5911 | fi |
|
|
5912 | |
|
|
5913 | |
|
|
5914 | |
|
|
5915 | |
4834 | |
5916 | |
4835 | |
5917 | |
4836 | |
5918 | |
4837 | # Extract the first word of "tic", so it can be a program name with args. |
5919 | # Extract the first word of "tic", so it can be a program name with args. |
4838 | set dummy tic; ac_word=$2 |
5920 | set dummy tic; ac_word=$2 |
… | |
… | |
4859 | fi |
5941 | fi |
4860 | done |
5942 | done |
4861 | done |
5943 | done |
4862 | IFS=$as_save_IFS |
5944 | IFS=$as_save_IFS |
4863 | |
5945 | |
|
|
5946 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4864 | ;; |
5947 | ;; |
4865 | esac |
5948 | esac |
4866 | fi |
5949 | fi |
4867 | TIC=$ac_cv_path_TIC |
5950 | TIC=$ac_cv_path_TIC |
4868 | if test -n "$TIC"; then |
5951 | if test -n "$TIC"; then |
… | |
… | |
4871 | else |
5954 | else |
4872 | { echo "$as_me:$LINENO: result: no" >&5 |
5955 | { echo "$as_me:$LINENO: result: no" >&5 |
4873 | echo "${ECHO_T}no" >&6; } |
5956 | echo "${ECHO_T}no" >&6; } |
4874 | fi |
5957 | fi |
4875 | |
5958 | |
4876 | |
|
|
4877 | |
|
|
4878 | |
|
|
4879 | |
|
|
4880 | ac_ext=cpp |
|
|
4881 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4882 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4883 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4884 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4885 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4886 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4887 | if test -z "$CXXCPP"; then |
|
|
4888 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4890 | else |
|
|
4891 | # Double quotes because CXXCPP needs to be expanded |
|
|
4892 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4893 | do |
|
|
4894 | ac_preproc_ok=false |
|
|
4895 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4896 | do |
|
|
4897 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4898 | # with a fresh cross-compiler works. |
|
|
4899 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4900 | # <limits.h> exists even on freestanding compilers. |
|
|
4901 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4902 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4903 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4904 | /* confdefs.h. */ |
|
|
4905 | _ACEOF |
|
|
4906 | cat confdefs.h >>conftest.$ac_ext |
|
|
4907 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4908 | /* end confdefs.h. */ |
|
|
4909 | #ifdef __STDC__ |
|
|
4910 | # include <limits.h> |
|
|
4911 | #else |
|
|
4912 | # include <assert.h> |
|
|
4913 | #endif |
|
|
4914 | Syntax error |
|
|
4915 | _ACEOF |
|
|
4916 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4917 | case "(($ac_try" in |
|
|
4918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4919 | *) ac_try_echo=$ac_try;; |
|
|
4920 | esac |
|
|
4921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4922 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4923 | ac_status=$? |
|
|
4924 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4925 | rm -f conftest.er1 |
|
|
4926 | cat conftest.err >&5 |
|
|
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4928 | (exit $ac_status); } >/dev/null && { |
|
|
4929 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4930 | test ! -s conftest.err |
|
|
4931 | }; then |
|
|
4932 | : |
|
|
4933 | else |
|
|
4934 | echo "$as_me: failed program was:" >&5 |
|
|
4935 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4936 | |
|
|
4937 | # Broken: fails on valid input. |
|
|
4938 | continue |
|
|
4939 | fi |
|
|
4940 | |
|
|
4941 | rm -f conftest.err conftest.$ac_ext |
|
|
4942 | |
|
|
4943 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4944 | # can be detected and how. |
|
|
4945 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4946 | /* confdefs.h. */ |
|
|
4947 | _ACEOF |
|
|
4948 | cat confdefs.h >>conftest.$ac_ext |
|
|
4949 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4950 | /* end confdefs.h. */ |
|
|
4951 | #include <ac_nonexistent.h> |
|
|
4952 | _ACEOF |
|
|
4953 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4954 | case "(($ac_try" in |
|
|
4955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4956 | *) ac_try_echo=$ac_try;; |
|
|
4957 | esac |
|
|
4958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4959 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4960 | ac_status=$? |
|
|
4961 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4962 | rm -f conftest.er1 |
|
|
4963 | cat conftest.err >&5 |
|
|
4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4965 | (exit $ac_status); } >/dev/null && { |
|
|
4966 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4967 | test ! -s conftest.err |
|
|
4968 | }; then |
|
|
4969 | # Broken: success on invalid input. |
|
|
4970 | continue |
|
|
4971 | else |
|
|
4972 | echo "$as_me: failed program was:" >&5 |
|
|
4973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4974 | |
|
|
4975 | # Passes both tests. |
|
|
4976 | ac_preproc_ok=: |
|
|
4977 | break |
|
|
4978 | fi |
|
|
4979 | |
|
|
4980 | rm -f conftest.err conftest.$ac_ext |
|
|
4981 | |
|
|
4982 | done |
|
|
4983 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4984 | rm -f conftest.err conftest.$ac_ext |
|
|
4985 | if $ac_preproc_ok; then |
|
|
4986 | break |
|
|
4987 | fi |
|
|
4988 | |
|
|
4989 | done |
|
|
4990 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4991 | |
|
|
4992 | fi |
|
|
4993 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4994 | else |
|
|
4995 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4996 | fi |
|
|
4997 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4998 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4999 | ac_preproc_ok=false |
|
|
5000 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5001 | do |
|
|
5002 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5003 | # with a fresh cross-compiler works. |
|
|
5004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5005 | # <limits.h> exists even on freestanding compilers. |
|
|
5006 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5007 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5008 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5009 | /* confdefs.h. */ |
|
|
5010 | _ACEOF |
|
|
5011 | cat confdefs.h >>conftest.$ac_ext |
|
|
5012 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5013 | /* end confdefs.h. */ |
|
|
5014 | #ifdef __STDC__ |
|
|
5015 | # include <limits.h> |
|
|
5016 | #else |
|
|
5017 | # include <assert.h> |
|
|
5018 | #endif |
|
|
5019 | Syntax error |
|
|
5020 | _ACEOF |
|
|
5021 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5022 | case "(($ac_try" in |
|
|
5023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5024 | *) ac_try_echo=$ac_try;; |
|
|
5025 | esac |
|
|
5026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5027 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5028 | ac_status=$? |
|
|
5029 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5030 | rm -f conftest.er1 |
|
|
5031 | cat conftest.err >&5 |
|
|
5032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5033 | (exit $ac_status); } >/dev/null && { |
|
|
5034 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5035 | test ! -s conftest.err |
|
|
5036 | }; then |
|
|
5037 | : |
|
|
5038 | else |
|
|
5039 | echo "$as_me: failed program was:" >&5 |
|
|
5040 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5041 | |
|
|
5042 | # Broken: fails on valid input. |
|
|
5043 | continue |
|
|
5044 | fi |
|
|
5045 | |
|
|
5046 | rm -f conftest.err conftest.$ac_ext |
|
|
5047 | |
|
|
5048 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5049 | # can be detected and how. |
|
|
5050 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5051 | /* confdefs.h. */ |
|
|
5052 | _ACEOF |
|
|
5053 | cat confdefs.h >>conftest.$ac_ext |
|
|
5054 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5055 | /* end confdefs.h. */ |
|
|
5056 | #include <ac_nonexistent.h> |
|
|
5057 | _ACEOF |
|
|
5058 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5059 | case "(($ac_try" in |
|
|
5060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5061 | *) ac_try_echo=$ac_try;; |
|
|
5062 | esac |
|
|
5063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5064 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5065 | ac_status=$? |
|
|
5066 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5067 | rm -f conftest.er1 |
|
|
5068 | cat conftest.err >&5 |
|
|
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5070 | (exit $ac_status); } >/dev/null && { |
|
|
5071 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5072 | test ! -s conftest.err |
|
|
5073 | }; then |
|
|
5074 | # Broken: success on invalid input. |
|
|
5075 | continue |
|
|
5076 | else |
|
|
5077 | echo "$as_me: failed program was:" >&5 |
|
|
5078 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5079 | |
|
|
5080 | # Passes both tests. |
|
|
5081 | ac_preproc_ok=: |
|
|
5082 | break |
|
|
5083 | fi |
|
|
5084 | |
|
|
5085 | rm -f conftest.err conftest.$ac_ext |
|
|
5086 | |
|
|
5087 | done |
|
|
5088 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5089 | rm -f conftest.err conftest.$ac_ext |
|
|
5090 | if $ac_preproc_ok; then |
|
|
5091 | : |
|
|
5092 | else |
|
|
5093 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5094 | See \`config.log' for more details." >&5 |
|
|
5095 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5096 | See \`config.log' for more details." >&2;} |
|
|
5097 | { (exit 1); exit 1; }; } |
|
|
5098 | fi |
|
|
5099 | |
|
|
5100 | ac_ext=cpp |
|
|
5101 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5102 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5103 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5104 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5105 | |
5959 | |
5106 | |
5960 | |
5107 | { echo "$as_me:$LINENO: checking for X" >&5 |
5961 | { echo "$as_me:$LINENO: checking for X" >&5 |
5108 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5962 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5109 | |
5963 | |
… | |
… | |
6495 | echo "${ECHO_T}no" >&6; } |
7349 | echo "${ECHO_T}no" >&6; } |
6496 | fi |
7350 | fi |
6497 | fi |
7351 | fi |
6498 | fi |
7352 | fi |
6499 | |
7353 | |
6500 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6501 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6502 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6504 | else |
|
|
6505 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6506 | /* confdefs.h. */ |
|
|
6507 | _ACEOF |
|
|
6508 | cat confdefs.h >>conftest.$ac_ext |
|
|
6509 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6510 | /* end confdefs.h. */ |
|
|
6511 | #include <sys/types.h> |
|
|
6512 | #include <sys/wait.h> |
|
|
6513 | #ifndef WEXITSTATUS |
|
|
6514 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6515 | #endif |
|
|
6516 | #ifndef WIFEXITED |
|
|
6517 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6518 | #endif |
|
|
6519 | |
|
|
6520 | int |
|
|
6521 | main () |
|
|
6522 | { |
|
|
6523 | int s; |
|
|
6524 | wait (&s); |
|
|
6525 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6526 | ; |
|
|
6527 | return 0; |
|
|
6528 | } |
|
|
6529 | _ACEOF |
|
|
6530 | rm -f conftest.$ac_objext |
|
|
6531 | if { (ac_try="$ac_compile" |
|
|
6532 | case "(($ac_try" in |
|
|
6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6534 | *) ac_try_echo=$ac_try;; |
|
|
6535 | esac |
|
|
6536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6537 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6538 | ac_status=$? |
|
|
6539 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6540 | rm -f conftest.er1 |
|
|
6541 | cat conftest.err >&5 |
|
|
6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6543 | (exit $ac_status); } && { |
|
|
6544 | test -z "$ac_cxx_werror_flag" || |
|
|
6545 | test ! -s conftest.err |
|
|
6546 | } && test -s conftest.$ac_objext; then |
|
|
6547 | ac_cv_header_sys_wait_h=yes |
|
|
6548 | else |
|
|
6549 | echo "$as_me: failed program was:" >&5 |
|
|
6550 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6551 | |
|
|
6552 | ac_cv_header_sys_wait_h=no |
|
|
6553 | fi |
|
|
6554 | |
|
|
6555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6556 | fi |
|
|
6557 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6558 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6559 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6560 | |
|
|
6561 | cat >>confdefs.h <<\_ACEOF |
|
|
6562 | #define HAVE_SYS_WAIT_H 1 |
|
|
6563 | _ACEOF |
|
|
6564 | |
|
|
6565 | fi |
|
|
6566 | |
|
|
6567 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6568 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6569 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6571 | else |
|
|
6572 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6573 | /* confdefs.h. */ |
|
|
6574 | _ACEOF |
|
|
6575 | cat confdefs.h >>conftest.$ac_ext |
|
|
6576 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6577 | /* end confdefs.h. */ |
|
|
6578 | #include <stdlib.h> |
|
|
6579 | #include <stdarg.h> |
|
|
6580 | #include <string.h> |
|
|
6581 | #include <float.h> |
|
|
6582 | |
|
|
6583 | int |
|
|
6584 | main () |
|
|
6585 | { |
|
|
6586 | |
|
|
6587 | ; |
|
|
6588 | return 0; |
|
|
6589 | } |
|
|
6590 | _ACEOF |
|
|
6591 | rm -f conftest.$ac_objext |
|
|
6592 | if { (ac_try="$ac_compile" |
|
|
6593 | case "(($ac_try" in |
|
|
6594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6595 | *) ac_try_echo=$ac_try;; |
|
|
6596 | esac |
|
|
6597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6598 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6599 | ac_status=$? |
|
|
6600 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6601 | rm -f conftest.er1 |
|
|
6602 | cat conftest.err >&5 |
|
|
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6604 | (exit $ac_status); } && { |
|
|
6605 | test -z "$ac_cxx_werror_flag" || |
|
|
6606 | test ! -s conftest.err |
|
|
6607 | } && test -s conftest.$ac_objext; then |
|
|
6608 | ac_cv_header_stdc=yes |
|
|
6609 | else |
|
|
6610 | echo "$as_me: failed program was:" >&5 |
|
|
6611 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6612 | |
|
|
6613 | ac_cv_header_stdc=no |
|
|
6614 | fi |
|
|
6615 | |
|
|
6616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6617 | |
|
|
6618 | if test $ac_cv_header_stdc = yes; then |
|
|
6619 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6620 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6621 | /* confdefs.h. */ |
|
|
6622 | _ACEOF |
|
|
6623 | cat confdefs.h >>conftest.$ac_ext |
|
|
6624 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6625 | /* end confdefs.h. */ |
|
|
6626 | #include <string.h> |
|
|
6627 | |
|
|
6628 | _ACEOF |
|
|
6629 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6630 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6631 | : |
|
|
6632 | else |
|
|
6633 | ac_cv_header_stdc=no |
|
|
6634 | fi |
|
|
6635 | rm -f conftest* |
|
|
6636 | |
|
|
6637 | fi |
|
|
6638 | |
|
|
6639 | if test $ac_cv_header_stdc = yes; then |
|
|
6640 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6641 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6642 | /* confdefs.h. */ |
|
|
6643 | _ACEOF |
|
|
6644 | cat confdefs.h >>conftest.$ac_ext |
|
|
6645 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6646 | /* end confdefs.h. */ |
|
|
6647 | #include <stdlib.h> |
|
|
6648 | |
|
|
6649 | _ACEOF |
|
|
6650 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6651 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6652 | : |
|
|
6653 | else |
|
|
6654 | ac_cv_header_stdc=no |
|
|
6655 | fi |
|
|
6656 | rm -f conftest* |
|
|
6657 | |
|
|
6658 | fi |
|
|
6659 | |
|
|
6660 | if test $ac_cv_header_stdc = yes; then |
|
|
6661 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6662 | if test "$cross_compiling" = yes; then |
|
|
6663 | : |
|
|
6664 | else |
|
|
6665 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6666 | /* confdefs.h. */ |
|
|
6667 | _ACEOF |
|
|
6668 | cat confdefs.h >>conftest.$ac_ext |
|
|
6669 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6670 | /* end confdefs.h. */ |
|
|
6671 | #include <ctype.h> |
|
|
6672 | #include <stdlib.h> |
|
|
6673 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6674 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6675 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6676 | #else |
|
|
6677 | # define ISLOWER(c) \ |
|
|
6678 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6679 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6680 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6681 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6682 | #endif |
|
|
6683 | |
|
|
6684 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6685 | int |
|
|
6686 | main () |
|
|
6687 | { |
|
|
6688 | int i; |
|
|
6689 | for (i = 0; i < 256; i++) |
|
|
6690 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6691 | || toupper (i) != TOUPPER (i)) |
|
|
6692 | return 2; |
|
|
6693 | return 0; |
|
|
6694 | } |
|
|
6695 | _ACEOF |
|
|
6696 | rm -f conftest$ac_exeext |
|
|
6697 | if { (ac_try="$ac_link" |
|
|
6698 | case "(($ac_try" in |
|
|
6699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6700 | *) ac_try_echo=$ac_try;; |
|
|
6701 | esac |
|
|
6702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6703 | (eval "$ac_link") 2>&5 |
|
|
6704 | ac_status=$? |
|
|
6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6706 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6707 | { (case "(($ac_try" in |
|
|
6708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6709 | *) ac_try_echo=$ac_try;; |
|
|
6710 | esac |
|
|
6711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6712 | (eval "$ac_try") 2>&5 |
|
|
6713 | ac_status=$? |
|
|
6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6715 | (exit $ac_status); }; }; then |
|
|
6716 | : |
|
|
6717 | else |
|
|
6718 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6719 | echo "$as_me: failed program was:" >&5 |
|
|
6720 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6721 | |
|
|
6722 | ( exit $ac_status ) |
|
|
6723 | ac_cv_header_stdc=no |
|
|
6724 | fi |
|
|
6725 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6726 | fi |
|
|
6727 | |
|
|
6728 | |
|
|
6729 | fi |
|
|
6730 | fi |
|
|
6731 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6732 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
6733 | if test $ac_cv_header_stdc = yes; then |
|
|
6734 | |
|
|
6735 | cat >>confdefs.h <<\_ACEOF |
|
|
6736 | #define STDC_HEADERS 1 |
|
|
6737 | _ACEOF |
|
|
6738 | |
|
|
6739 | fi |
|
|
6740 | |
|
|
6741 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6742 | |
|
|
6743 | |
|
|
6744 | |
|
|
6745 | |
|
|
6746 | |
|
|
6747 | |
|
|
6748 | |
|
|
6749 | |
|
|
6750 | |
|
|
6751 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6752 | inttypes.h stdint.h unistd.h |
|
|
6753 | do |
|
|
6754 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6755 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
6757 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6759 | else |
|
|
6760 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6761 | /* confdefs.h. */ |
|
|
6762 | _ACEOF |
|
|
6763 | cat confdefs.h >>conftest.$ac_ext |
|
|
6764 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6765 | /* end confdefs.h. */ |
|
|
6766 | $ac_includes_default |
|
|
6767 | |
|
|
6768 | #include <$ac_header> |
|
|
6769 | _ACEOF |
|
|
6770 | rm -f conftest.$ac_objext |
|
|
6771 | if { (ac_try="$ac_compile" |
|
|
6772 | case "(($ac_try" in |
|
|
6773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6774 | *) ac_try_echo=$ac_try;; |
|
|
6775 | esac |
|
|
6776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6777 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6778 | ac_status=$? |
|
|
6779 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6780 | rm -f conftest.er1 |
|
|
6781 | cat conftest.err >&5 |
|
|
6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6783 | (exit $ac_status); } && { |
|
|
6784 | test -z "$ac_cxx_werror_flag" || |
|
|
6785 | test ! -s conftest.err |
|
|
6786 | } && test -s conftest.$ac_objext; then |
|
|
6787 | eval "$as_ac_Header=yes" |
|
|
6788 | else |
|
|
6789 | echo "$as_me: failed program was:" >&5 |
|
|
6790 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6791 | |
|
|
6792 | eval "$as_ac_Header=no" |
|
|
6793 | fi |
|
|
6794 | |
|
|
6795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6796 | fi |
|
|
6797 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
6798 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6799 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6800 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6801 | cat >>confdefs.h <<_ACEOF |
|
|
6802 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6803 | _ACEOF |
|
|
6804 | |
|
|
6805 | fi |
|
|
6806 | |
|
|
6807 | done |
|
|
6808 | |
|
|
6809 | |
|
|
6810 | |
|
|
6811 | |
|
|
6812 | |
|
|
6813 | |
|
|
6814 | |
|
|
6815 | |
|
|
6816 | |
|
|
6817 | |
|
|
6818 | |
|
|
6819 | |
7354 | |
6820 | |
7355 | |
6821 | |
7356 | |
6822 | |
7357 | |
6823 | |
7358 | |
6824 | |
7359 | |
6825 | |
7360 | |
6826 | |
7361 | |
6827 | for ac_header in \ |
7362 | for ac_header in \ |
6828 | assert.h \ |
|
|
6829 | fcntl.h \ |
|
|
6830 | stdarg.h \ |
|
|
6831 | stdlib.h \ |
|
|
6832 | string.h \ |
|
|
6833 | termios.h \ |
|
|
6834 | unistd.h \ |
|
|
6835 | sys/byteorder.h \ |
7363 | sys/byteorder.h \ |
6836 | sys/ioctl.h \ |
7364 | sys/ioctl.h \ |
6837 | sys/select.h \ |
|
|
6838 | sys/sockio.h \ |
7365 | sys/sockio.h \ |
6839 | sys/strredir.h \ |
7366 | sys/strredir.h \ |
6840 | sys/time.h \ |
|
|
6841 | stdint.h \ |
7367 | stdint.h \ |
6842 | wchar.h \ |
7368 | wchar.h \ |
6843 | cwchar \ |
7369 | cwchar \ |
6844 | clocale \ |
7370 | clocale \ |
6845 | |
7371 | |
… | |
… | |
6980 | fi |
7506 | fi |
6981 | |
7507 | |
6982 | done |
7508 | done |
6983 | |
7509 | |
6984 | |
7510 | |
6985 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
6986 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
6987 | if test "${ac_cv_header_time+set}" = set; then |
|
|
6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6989 | else |
|
|
6990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6991 | /* confdefs.h. */ |
|
|
6992 | _ACEOF |
|
|
6993 | cat confdefs.h >>conftest.$ac_ext |
|
|
6994 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6995 | /* end confdefs.h. */ |
|
|
6996 | #include <sys/types.h> |
|
|
6997 | #include <sys/time.h> |
|
|
6998 | #include <time.h> |
|
|
6999 | |
|
|
7000 | int |
|
|
7001 | main () |
|
|
7002 | { |
|
|
7003 | if ((struct tm *) 0) |
|
|
7004 | return 0; |
|
|
7005 | ; |
|
|
7006 | return 0; |
|
|
7007 | } |
|
|
7008 | _ACEOF |
|
|
7009 | rm -f conftest.$ac_objext |
|
|
7010 | if { (ac_try="$ac_compile" |
|
|
7011 | case "(($ac_try" in |
|
|
7012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7013 | *) ac_try_echo=$ac_try;; |
|
|
7014 | esac |
|
|
7015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7016 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7017 | ac_status=$? |
|
|
7018 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7019 | rm -f conftest.er1 |
|
|
7020 | cat conftest.err >&5 |
|
|
7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7022 | (exit $ac_status); } && { |
|
|
7023 | test -z "$ac_cxx_werror_flag" || |
|
|
7024 | test ! -s conftest.err |
|
|
7025 | } && test -s conftest.$ac_objext; then |
|
|
7026 | ac_cv_header_time=yes |
|
|
7027 | else |
|
|
7028 | echo "$as_me: failed program was:" >&5 |
|
|
7029 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7030 | |
|
|
7031 | ac_cv_header_time=no |
|
|
7032 | fi |
|
|
7033 | |
|
|
7034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7035 | fi |
|
|
7036 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7037 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7038 | if test $ac_cv_header_time = yes; then |
|
|
7039 | |
|
|
7040 | cat >>confdefs.h <<\_ACEOF |
|
|
7041 | #define TIME_WITH_SYS_TIME 1 |
|
|
7042 | _ACEOF |
|
|
7043 | |
|
|
7044 | fi |
|
|
7045 | |
|
|
7046 | |
|
|
7047 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7511 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7048 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7512 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7049 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7513 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7051 | else |
7515 | else |
… | |
… | |
7055 | cat confdefs.h >>conftest.$ac_ext |
7519 | cat confdefs.h >>conftest.$ac_ext |
7056 | cat >>conftest.$ac_ext <<_ACEOF |
7520 | cat >>conftest.$ac_ext <<_ACEOF |
7057 | /* end confdefs.h. */ |
7521 | /* end confdefs.h. */ |
7058 | #include <stdio.h> |
7522 | #include <stdio.h> |
7059 | #include <sys/ioctl.h> |
7523 | #include <sys/ioctl.h> |
7060 | #ifdef HAVE_TERMIOS_H |
|
|
7061 | #include <termios.h> |
7524 | #include <termios.h> |
7062 | #endif |
7525 | |
7063 | int |
7526 | int |
7064 | main () |
7527 | main () |
7065 | { |
7528 | { |
7066 | int a = ECHO; |
7529 | int a = ECHO; |
7067 | ; |
7530 | ; |
… | |
… | |
7216 | cat >>confdefs.h <<\_ACEOF |
7679 | cat >>confdefs.h <<\_ACEOF |
7217 | #define XLIB_ILLEGAL_ACCESS 1 |
7680 | #define XLIB_ILLEGAL_ACCESS 1 |
7218 | _ACEOF |
7681 | _ACEOF |
7219 | |
7682 | |
7220 | fi |
7683 | fi |
7221 | |
|
|
7222 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7223 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7224 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7226 | else |
|
|
7227 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7228 | /* confdefs.h. */ |
|
|
7229 | _ACEOF |
|
|
7230 | cat confdefs.h >>conftest.$ac_ext |
|
|
7231 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7232 | /* end confdefs.h. */ |
|
|
7233 | |
|
|
7234 | int |
|
|
7235 | main () |
|
|
7236 | { |
|
|
7237 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7238 | #ifndef __cplusplus |
|
|
7239 | /* Ultrix mips cc rejects this. */ |
|
|
7240 | typedef int charset[2]; |
|
|
7241 | const charset cs; |
|
|
7242 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7243 | char const *const *pcpcc; |
|
|
7244 | char **ppc; |
|
|
7245 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7246 | struct point {int x, y;}; |
|
|
7247 | static struct point const zero = {0,0}; |
|
|
7248 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7249 | It does not let you subtract one const X* pointer from another in |
|
|
7250 | an arm of an if-expression whose if-part is not a constant |
|
|
7251 | expression */ |
|
|
7252 | const char *g = "string"; |
|
|
7253 | pcpcc = &g + (g ? g-g : 0); |
|
|
7254 | /* HPUX 7.0 cc rejects these. */ |
|
|
7255 | ++pcpcc; |
|
|
7256 | ppc = (char**) pcpcc; |
|
|
7257 | pcpcc = (char const *const *) ppc; |
|
|
7258 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7259 | char *t; |
|
|
7260 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7261 | |
|
|
7262 | *t++ = 0; |
|
|
7263 | if (s) return 0; |
|
|
7264 | } |
|
|
7265 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7266 | int x[] = {25, 17}; |
|
|
7267 | const int *foo = &x[0]; |
|
|
7268 | ++foo; |
|
|
7269 | } |
|
|
7270 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7271 | typedef const int *iptr; |
|
|
7272 | iptr p = 0; |
|
|
7273 | ++p; |
|
|
7274 | } |
|
|
7275 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7276 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7277 | struct s { int j; const int *ap[3]; }; |
|
|
7278 | struct s *b; b->j = 5; |
|
|
7279 | } |
|
|
7280 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7281 | const int foo = 10; |
|
|
7282 | if (!foo) return 0; |
|
|
7283 | } |
|
|
7284 | return !cs[0] && !zero.x; |
|
|
7285 | #endif |
|
|
7286 | |
|
|
7287 | ; |
|
|
7288 | return 0; |
|
|
7289 | } |
|
|
7290 | _ACEOF |
|
|
7291 | rm -f conftest.$ac_objext |
|
|
7292 | if { (ac_try="$ac_compile" |
|
|
7293 | case "(($ac_try" in |
|
|
7294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7295 | *) ac_try_echo=$ac_try;; |
|
|
7296 | esac |
|
|
7297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7298 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7299 | ac_status=$? |
|
|
7300 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7301 | rm -f conftest.er1 |
|
|
7302 | cat conftest.err >&5 |
|
|
7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7304 | (exit $ac_status); } && { |
|
|
7305 | test -z "$ac_cxx_werror_flag" || |
|
|
7306 | test ! -s conftest.err |
|
|
7307 | } && test -s conftest.$ac_objext; then |
|
|
7308 | ac_cv_c_const=yes |
|
|
7309 | else |
|
|
7310 | echo "$as_me: failed program was:" >&5 |
|
|
7311 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7312 | |
|
|
7313 | ac_cv_c_const=no |
|
|
7314 | fi |
|
|
7315 | |
|
|
7316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7317 | fi |
|
|
7318 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7319 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7320 | if test $ac_cv_c_const = no; then |
|
|
7321 | |
|
|
7322 | cat >>confdefs.h <<\_ACEOF |
|
|
7323 | #define const |
|
|
7324 | _ACEOF |
|
|
7325 | |
|
|
7326 | fi |
|
|
7327 | |
|
|
7328 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7329 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7330 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7332 | else |
|
|
7333 | ac_cv_c_inline=no |
|
|
7334 | for ac_kw in inline __inline__ __inline; do |
|
|
7335 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7336 | /* confdefs.h. */ |
|
|
7337 | _ACEOF |
|
|
7338 | cat confdefs.h >>conftest.$ac_ext |
|
|
7339 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7340 | /* end confdefs.h. */ |
|
|
7341 | #ifndef __cplusplus |
|
|
7342 | typedef int foo_t; |
|
|
7343 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7344 | $ac_kw foo_t foo () {return 0; } |
|
|
7345 | #endif |
|
|
7346 | |
|
|
7347 | _ACEOF |
|
|
7348 | rm -f conftest.$ac_objext |
|
|
7349 | if { (ac_try="$ac_compile" |
|
|
7350 | case "(($ac_try" in |
|
|
7351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7352 | *) ac_try_echo=$ac_try;; |
|
|
7353 | esac |
|
|
7354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7355 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7356 | ac_status=$? |
|
|
7357 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7358 | rm -f conftest.er1 |
|
|
7359 | cat conftest.err >&5 |
|
|
7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7361 | (exit $ac_status); } && { |
|
|
7362 | test -z "$ac_cxx_werror_flag" || |
|
|
7363 | test ! -s conftest.err |
|
|
7364 | } && test -s conftest.$ac_objext; then |
|
|
7365 | ac_cv_c_inline=$ac_kw |
|
|
7366 | else |
|
|
7367 | echo "$as_me: failed program was:" >&5 |
|
|
7368 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7369 | |
|
|
7370 | |
|
|
7371 | fi |
|
|
7372 | |
|
|
7373 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7374 | test "$ac_cv_c_inline" != no && break |
|
|
7375 | done |
|
|
7376 | |
|
|
7377 | fi |
|
|
7378 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7379 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7380 | |
|
|
7381 | |
|
|
7382 | case $ac_cv_c_inline in |
|
|
7383 | inline | yes) ;; |
|
|
7384 | *) |
|
|
7385 | case $ac_cv_c_inline in |
|
|
7386 | no) ac_val=;; |
|
|
7387 | *) ac_val=$ac_cv_c_inline;; |
|
|
7388 | esac |
|
|
7389 | cat >>confdefs.h <<_ACEOF |
|
|
7390 | #ifndef __cplusplus |
|
|
7391 | #define inline $ac_val |
|
|
7392 | #endif |
|
|
7393 | _ACEOF |
|
|
7394 | ;; |
|
|
7395 | esac |
|
|
7396 | |
|
|
7397 | |
|
|
7398 | |
7684 | |
7399 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7685 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7400 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7686 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7401 | if test "${ac_cv_type_mode_t+set}" = set; then |
7687 | if test "${ac_cv_type_mode_t+set}" = set; then |
7402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7559 | _ACEOF |
7845 | _ACEOF |
7560 | |
7846 | |
7561 | fi |
7847 | fi |
7562 | |
7848 | |
7563 | |
7849 | |
7564 | { echo "$as_me:$LINENO: checking for short" >&5 |
7850 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7565 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
7851 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7566 | if test "${ac_cv_type_short+set}" = set; then |
7852 | if test "${ac_cv_c_int16_t+set}" = set; then |
7567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7568 | else |
7854 | else |
|
|
7855 | ac_cv_c_int16_t=no |
|
|
7856 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
7857 | 'long long int' 'short int' 'signed char'; do |
7569 | cat >conftest.$ac_ext <<_ACEOF |
7858 | cat >conftest.$ac_ext <<_ACEOF |
7570 | /* confdefs.h. */ |
7859 | /* confdefs.h. */ |
7571 | _ACEOF |
7860 | _ACEOF |
7572 | cat confdefs.h >>conftest.$ac_ext |
7861 | cat confdefs.h >>conftest.$ac_ext |
7573 | cat >>conftest.$ac_ext <<_ACEOF |
7862 | cat >>conftest.$ac_ext <<_ACEOF |
7574 | /* end confdefs.h. */ |
7863 | /* end confdefs.h. */ |
7575 | $ac_includes_default |
7864 | $ac_includes_default |
7576 | typedef short ac__type_new_; |
|
|
7577 | int |
7865 | int |
7578 | main () |
7866 | main () |
7579 | { |
7867 | { |
7580 | if ((ac__type_new_ *) 0) |
7868 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7581 | return 0; |
7869 | test_array [0] = 0 |
7582 | if (sizeof (ac__type_new_)) |
7870 | |
7583 | return 0; |
|
|
7584 | ; |
7871 | ; |
7585 | return 0; |
7872 | return 0; |
7586 | } |
7873 | } |
7587 | _ACEOF |
7874 | _ACEOF |
7588 | rm -f conftest.$ac_objext |
7875 | rm -f conftest.$ac_objext |
… | |
… | |
7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7601 | (exit $ac_status); } && { |
7888 | (exit $ac_status); } && { |
7602 | test -z "$ac_cxx_werror_flag" || |
7889 | test -z "$ac_cxx_werror_flag" || |
7603 | test ! -s conftest.err |
7890 | test ! -s conftest.err |
7604 | } && test -s conftest.$ac_objext; then |
7891 | } && test -s conftest.$ac_objext; then |
7605 | ac_cv_type_short=yes |
|
|
7606 | else |
|
|
7607 | echo "$as_me: failed program was:" >&5 |
|
|
7608 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7609 | |
|
|
7610 | ac_cv_type_short=no |
|
|
7611 | fi |
|
|
7612 | |
|
|
7613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7614 | fi |
|
|
7615 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7616 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
7617 | |
|
|
7618 | # The cast to long int works around a bug in the HP C Compiler |
|
|
7619 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
7620 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
7621 | # This bug is HP SR number 8606223364. |
|
|
7622 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
7623 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
7624 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7626 | else |
|
|
7627 | if test "$cross_compiling" = yes; then |
|
|
7628 | # Depending upon the size, compute the lo and hi bounds. |
|
|
7629 | cat >conftest.$ac_ext <<_ACEOF |
7892 | cat >conftest.$ac_ext <<_ACEOF |
7630 | /* confdefs.h. */ |
7893 | /* confdefs.h. */ |
7631 | _ACEOF |
7894 | _ACEOF |
7632 | cat confdefs.h >>conftest.$ac_ext |
7895 | cat confdefs.h >>conftest.$ac_ext |
7633 | cat >>conftest.$ac_ext <<_ACEOF |
7896 | cat >>conftest.$ac_ext <<_ACEOF |
7634 | /* end confdefs.h. */ |
7897 | /* end confdefs.h. */ |
7635 | $ac_includes_default |
7898 | $ac_includes_default |
7636 | typedef short ac__type_sizeof_; |
|
|
7637 | int |
7899 | int |
7638 | main () |
7900 | main () |
7639 | { |
7901 | { |
7640 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
7902 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
7903 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
7641 | test_array [0] = 0 |
7904 | test_array [0] = 0 |
7642 | |
7905 | |
7643 | ; |
7906 | ; |
7644 | return 0; |
7907 | return 0; |
7645 | } |
7908 | } |
… | |
… | |
7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7660 | (exit $ac_status); } && { |
7923 | (exit $ac_status); } && { |
7661 | test -z "$ac_cxx_werror_flag" || |
7924 | test -z "$ac_cxx_werror_flag" || |
7662 | test ! -s conftest.err |
7925 | test ! -s conftest.err |
7663 | } && test -s conftest.$ac_objext; then |
7926 | } && test -s conftest.$ac_objext; then |
7664 | ac_lo=0 ac_mid=0 |
7927 | : |
7665 | while :; do |
7928 | else |
|
|
7929 | echo "$as_me: failed program was:" >&5 |
|
|
7930 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7931 | |
|
|
7932 | case $ac_type in |
|
|
7933 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
7934 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
7935 | esac |
|
|
7936 | |
|
|
7937 | fi |
|
|
7938 | |
|
|
7939 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7940 | else |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | |
|
|
7945 | fi |
|
|
7946 | |
|
|
7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7948 | test "$ac_cv_c_int16_t" != no && break |
|
|
7949 | done |
|
|
7950 | fi |
|
|
7951 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
7952 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
7953 | case $ac_cv_c_int16_t in #( |
|
|
7954 | no|yes) ;; #( |
|
|
7955 | *) |
|
|
7956 | |
|
|
7957 | cat >>confdefs.h <<_ACEOF |
|
|
7958 | #define int16_t $ac_cv_c_int16_t |
|
|
7959 | _ACEOF |
|
|
7960 | ;; |
|
|
7961 | esac |
|
|
7962 | |
|
|
7963 | |
|
|
7964 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
7965 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
7966 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
7967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7968 | else |
|
|
7969 | ac_cv_c_uint16_t=no |
|
|
7970 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
7971 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7666 | cat >conftest.$ac_ext <<_ACEOF |
7972 | cat >conftest.$ac_ext <<_ACEOF |
7667 | /* confdefs.h. */ |
7973 | /* confdefs.h. */ |
7668 | _ACEOF |
7974 | _ACEOF |
7669 | cat confdefs.h >>conftest.$ac_ext |
7975 | cat confdefs.h >>conftest.$ac_ext |
7670 | cat >>conftest.$ac_ext <<_ACEOF |
7976 | cat >>conftest.$ac_ext <<_ACEOF |
7671 | /* end confdefs.h. */ |
7977 | /* end confdefs.h. */ |
7672 | $ac_includes_default |
7978 | $ac_includes_default |
7673 | typedef short ac__type_sizeof_; |
|
|
7674 | int |
7979 | int |
7675 | main () |
7980 | main () |
7676 | { |
7981 | { |
7677 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
7982 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7678 | test_array [0] = 0 |
7983 | test_array [0] = 0 |
7679 | |
7984 | |
7680 | ; |
7985 | ; |
7681 | return 0; |
7986 | return 0; |
7682 | } |
7987 | } |
… | |
… | |
7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7697 | (exit $ac_status); } && { |
8002 | (exit $ac_status); } && { |
7698 | test -z "$ac_cxx_werror_flag" || |
8003 | test -z "$ac_cxx_werror_flag" || |
7699 | test ! -s conftest.err |
8004 | test ! -s conftest.err |
7700 | } && test -s conftest.$ac_objext; then |
8005 | } && test -s conftest.$ac_objext; then |
7701 | ac_hi=$ac_mid; break |
8006 | case $ac_type in |
|
|
8007 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8008 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8009 | esac |
|
|
8010 | |
7702 | else |
8011 | else |
7703 | echo "$as_me: failed program was:" >&5 |
8012 | echo "$as_me: failed program was:" >&5 |
7704 | sed 's/^/| /' conftest.$ac_ext >&5 |
8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
7705 | |
8014 | |
7706 | ac_lo=`expr $ac_mid + 1` |
8015 | |
7707 | if test $ac_lo -le $ac_mid; then |
|
|
7708 | ac_lo= ac_hi= |
|
|
7709 | break |
|
|
7710 | fi |
|
|
7711 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
7712 | fi |
8016 | fi |
7713 | |
8017 | |
7714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8019 | test "$ac_cv_c_uint16_t" != no && break |
7715 | done |
8020 | done |
7716 | else |
8021 | fi |
7717 | echo "$as_me: failed program was:" >&5 |
8022 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7718 | sed 's/^/| /' conftest.$ac_ext >&5 |
8023 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8024 | case $ac_cv_c_uint16_t in #( |
|
|
8025 | no|yes) ;; #( |
|
|
8026 | *) |
7719 | |
8027 | |
|
|
8028 | |
|
|
8029 | cat >>confdefs.h <<_ACEOF |
|
|
8030 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8031 | _ACEOF |
|
|
8032 | ;; |
|
|
8033 | esac |
|
|
8034 | |
|
|
8035 | |
|
|
8036 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8037 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8038 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8040 | else |
|
|
8041 | ac_cv_c_int32_t=no |
|
|
8042 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8043 | 'long long int' 'short int' 'signed char'; do |
7720 | cat >conftest.$ac_ext <<_ACEOF |
8044 | cat >conftest.$ac_ext <<_ACEOF |
7721 | /* confdefs.h. */ |
8045 | /* confdefs.h. */ |
7722 | _ACEOF |
8046 | _ACEOF |
7723 | cat confdefs.h >>conftest.$ac_ext |
8047 | cat confdefs.h >>conftest.$ac_ext |
7724 | cat >>conftest.$ac_ext <<_ACEOF |
8048 | cat >>conftest.$ac_ext <<_ACEOF |
7725 | /* end confdefs.h. */ |
8049 | /* end confdefs.h. */ |
7726 | $ac_includes_default |
8050 | $ac_includes_default |
7727 | typedef short ac__type_sizeof_; |
|
|
7728 | int |
8051 | int |
7729 | main () |
8052 | main () |
7730 | { |
8053 | { |
7731 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8054 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7732 | test_array [0] = 0 |
8055 | test_array [0] = 0 |
7733 | |
8056 | |
7734 | ; |
8057 | ; |
7735 | return 0; |
8058 | return 0; |
7736 | } |
8059 | } |
… | |
… | |
7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7751 | (exit $ac_status); } && { |
8074 | (exit $ac_status); } && { |
7752 | test -z "$ac_cxx_werror_flag" || |
8075 | test -z "$ac_cxx_werror_flag" || |
7753 | test ! -s conftest.err |
8076 | test ! -s conftest.err |
7754 | } && test -s conftest.$ac_objext; then |
8077 | } && test -s conftest.$ac_objext; then |
7755 | ac_hi=-1 ac_mid=-1 |
|
|
7756 | while :; do |
|
|
7757 | cat >conftest.$ac_ext <<_ACEOF |
8078 | cat >conftest.$ac_ext <<_ACEOF |
7758 | /* confdefs.h. */ |
8079 | /* confdefs.h. */ |
7759 | _ACEOF |
8080 | _ACEOF |
7760 | cat confdefs.h >>conftest.$ac_ext |
8081 | cat confdefs.h >>conftest.$ac_ext |
7761 | cat >>conftest.$ac_ext <<_ACEOF |
8082 | cat >>conftest.$ac_ext <<_ACEOF |
7762 | /* end confdefs.h. */ |
8083 | /* end confdefs.h. */ |
7763 | $ac_includes_default |
8084 | $ac_includes_default |
7764 | typedef short ac__type_sizeof_; |
|
|
7765 | int |
8085 | int |
7766 | main () |
8086 | main () |
7767 | { |
8087 | { |
7768 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8088 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8089 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
7769 | test_array [0] = 0 |
8090 | test_array [0] = 0 |
7770 | |
8091 | |
7771 | ; |
8092 | ; |
7772 | return 0; |
8093 | return 0; |
7773 | } |
8094 | } |
… | |
… | |
7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7788 | (exit $ac_status); } && { |
8109 | (exit $ac_status); } && { |
7789 | test -z "$ac_cxx_werror_flag" || |
8110 | test -z "$ac_cxx_werror_flag" || |
7790 | test ! -s conftest.err |
8111 | test ! -s conftest.err |
7791 | } && test -s conftest.$ac_objext; then |
8112 | } && test -s conftest.$ac_objext; then |
7792 | ac_lo=$ac_mid; break |
8113 | : |
7793 | else |
8114 | else |
7794 | echo "$as_me: failed program was:" >&5 |
8115 | echo "$as_me: failed program was:" >&5 |
7795 | sed 's/^/| /' conftest.$ac_ext >&5 |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 |
7796 | |
8117 | |
7797 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8118 | case $ac_type in |
7798 | if test $ac_mid -le $ac_hi; then |
8119 | int32_t) ac_cv_c_int32_t=yes ;; |
7799 | ac_lo= ac_hi= |
8120 | *) ac_cv_c_int32_t=$ac_type ;; |
7800 | break |
8121 | esac |
7801 | fi |
8122 | |
7802 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
7803 | fi |
8123 | fi |
7804 | |
8124 | |
7805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8125 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7806 | done |
|
|
7807 | else |
8126 | else |
7808 | echo "$as_me: failed program was:" >&5 |
8127 | echo "$as_me: failed program was:" >&5 |
7809 | sed 's/^/| /' conftest.$ac_ext >&5 |
8128 | sed 's/^/| /' conftest.$ac_ext >&5 |
7810 | |
8129 | |
7811 | ac_lo= ac_hi= |
8130 | |
7812 | fi |
8131 | fi |
7813 | |
8132 | |
7814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8133 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8134 | test "$ac_cv_c_int32_t" != no && break |
|
|
8135 | done |
7815 | fi |
8136 | fi |
|
|
8137 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8138 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8139 | case $ac_cv_c_int32_t in #( |
|
|
8140 | no|yes) ;; #( |
|
|
8141 | *) |
7816 | |
8142 | |
7817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8143 | cat >>confdefs.h <<_ACEOF |
7818 | # Binary search between lo and hi bounds. |
8144 | #define int32_t $ac_cv_c_int32_t |
7819 | while test "x$ac_lo" != "x$ac_hi"; do |
8145 | _ACEOF |
7820 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8146 | ;; |
|
|
8147 | esac |
|
|
8148 | |
|
|
8149 | |
|
|
8150 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8151 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8152 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8154 | else |
|
|
8155 | ac_cv_c_uint32_t=no |
|
|
8156 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8157 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7821 | cat >conftest.$ac_ext <<_ACEOF |
8158 | cat >conftest.$ac_ext <<_ACEOF |
7822 | /* confdefs.h. */ |
8159 | /* confdefs.h. */ |
7823 | _ACEOF |
8160 | _ACEOF |
7824 | cat confdefs.h >>conftest.$ac_ext |
8161 | cat confdefs.h >>conftest.$ac_ext |
7825 | cat >>conftest.$ac_ext <<_ACEOF |
8162 | cat >>conftest.$ac_ext <<_ACEOF |
7826 | /* end confdefs.h. */ |
8163 | /* end confdefs.h. */ |
7827 | $ac_includes_default |
8164 | $ac_includes_default |
7828 | typedef short ac__type_sizeof_; |
|
|
7829 | int |
8165 | int |
7830 | main () |
8166 | main () |
7831 | { |
8167 | { |
7832 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8168 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7833 | test_array [0] = 0 |
8169 | test_array [0] = 0 |
7834 | |
8170 | |
7835 | ; |
8171 | ; |
7836 | return 0; |
8172 | return 0; |
7837 | } |
8173 | } |
… | |
… | |
7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7852 | (exit $ac_status); } && { |
8188 | (exit $ac_status); } && { |
7853 | test -z "$ac_cxx_werror_flag" || |
8189 | test -z "$ac_cxx_werror_flag" || |
7854 | test ! -s conftest.err |
8190 | test ! -s conftest.err |
7855 | } && test -s conftest.$ac_objext; then |
8191 | } && test -s conftest.$ac_objext; then |
7856 | ac_hi=$ac_mid |
8192 | case $ac_type in |
|
|
8193 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8194 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
7857 | else |
8197 | else |
7858 | echo "$as_me: failed program was:" >&5 |
8198 | echo "$as_me: failed program was:" >&5 |
7859 | sed 's/^/| /' conftest.$ac_ext >&5 |
8199 | sed 's/^/| /' conftest.$ac_ext >&5 |
7860 | |
8200 | |
7861 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8201 | |
7862 | fi |
8202 | fi |
7863 | |
8203 | |
7864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7865 | done |
8205 | test "$ac_cv_c_uint32_t" != no && break |
7866 | case $ac_lo in |
8206 | done |
7867 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
7868 | '') if test "$ac_cv_type_short" = yes; then |
|
|
7869 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7870 | See \`config.log' for more details." >&5 |
|
|
7871 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7872 | See \`config.log' for more details." >&2;} |
|
|
7873 | { (exit 77); exit 77; }; } |
|
|
7874 | else |
|
|
7875 | ac_cv_sizeof_short=0 |
|
|
7876 | fi ;; |
|
|
7877 | esac |
|
|
7878 | else |
|
|
7879 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7880 | /* confdefs.h. */ |
|
|
7881 | _ACEOF |
|
|
7882 | cat confdefs.h >>conftest.$ac_ext |
|
|
7883 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7884 | /* end confdefs.h. */ |
|
|
7885 | $ac_includes_default |
|
|
7886 | typedef short ac__type_sizeof_; |
|
|
7887 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7888 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7889 | #include <stdio.h> |
|
|
7890 | #include <stdlib.h> |
|
|
7891 | int |
|
|
7892 | main () |
|
|
7893 | { |
|
|
7894 | |
|
|
7895 | FILE *f = fopen ("conftest.val", "w"); |
|
|
7896 | if (! f) |
|
|
7897 | return 1; |
|
|
7898 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
7899 | { |
|
|
7900 | long int i = longval (); |
|
|
7901 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7902 | return 1; |
|
|
7903 | fprintf (f, "%ld\n", i); |
|
|
7904 | } |
|
|
7905 | else |
|
|
7906 | { |
|
|
7907 | unsigned long int i = ulongval (); |
|
|
7908 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7909 | return 1; |
|
|
7910 | fprintf (f, "%lu\n", i); |
|
|
7911 | } |
|
|
7912 | return ferror (f) || fclose (f) != 0; |
|
|
7913 | |
|
|
7914 | ; |
|
|
7915 | return 0; |
|
|
7916 | } |
|
|
7917 | _ACEOF |
|
|
7918 | rm -f conftest$ac_exeext |
|
|
7919 | if { (ac_try="$ac_link" |
|
|
7920 | case "(($ac_try" in |
|
|
7921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7922 | *) ac_try_echo=$ac_try;; |
|
|
7923 | esac |
|
|
7924 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7925 | (eval "$ac_link") 2>&5 |
|
|
7926 | ac_status=$? |
|
|
7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7929 | { (case "(($ac_try" in |
|
|
7930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7931 | *) ac_try_echo=$ac_try;; |
|
|
7932 | esac |
|
|
7933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7934 | (eval "$ac_try") 2>&5 |
|
|
7935 | ac_status=$? |
|
|
7936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7937 | (exit $ac_status); }; }; then |
|
|
7938 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
7939 | else |
|
|
7940 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | ( exit $ac_status ) |
|
|
7945 | if test "$ac_cv_type_short" = yes; then |
|
|
7946 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7947 | See \`config.log' for more details." >&5 |
|
|
7948 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7949 | See \`config.log' for more details." >&2;} |
|
|
7950 | { (exit 77); exit 77; }; } |
|
|
7951 | else |
|
|
7952 | ac_cv_sizeof_short=0 |
|
|
7953 | fi |
|
|
7954 | fi |
8207 | fi |
7955 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7956 | fi |
|
|
7957 | rm -f conftest.val |
|
|
7958 | fi |
|
|
7959 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8208 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
7960 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8209 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8210 | case $ac_cv_c_uint32_t in #( |
|
|
8211 | no|yes) ;; #( |
|
|
8212 | *) |
7961 | |
8213 | |
|
|
8214 | cat >>confdefs.h <<\_ACEOF |
|
|
8215 | #define _UINT32_T 1 |
|
|
8216 | _ACEOF |
7962 | |
8217 | |
7963 | |
8218 | |
7964 | cat >>confdefs.h <<_ACEOF |
8219 | cat >>confdefs.h <<_ACEOF |
7965 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8220 | #define uint32_t $ac_cv_c_uint32_t |
7966 | _ACEOF |
8221 | _ACEOF |
7967 | |
8222 | ;; |
7968 | |
|
|
7969 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
7970 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
7971 | if test "${ac_cv_type_int+set}" = set; then |
|
|
7972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7973 | else |
|
|
7974 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7975 | /* confdefs.h. */ |
|
|
7976 | _ACEOF |
|
|
7977 | cat confdefs.h >>conftest.$ac_ext |
|
|
7978 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7979 | /* end confdefs.h. */ |
|
|
7980 | $ac_includes_default |
|
|
7981 | typedef int ac__type_new_; |
|
|
7982 | int |
|
|
7983 | main () |
|
|
7984 | { |
|
|
7985 | if ((ac__type_new_ *) 0) |
|
|
7986 | return 0; |
|
|
7987 | if (sizeof (ac__type_new_)) |
|
|
7988 | return 0; |
|
|
7989 | ; |
|
|
7990 | return 0; |
|
|
7991 | } |
|
|
7992 | _ACEOF |
|
|
7993 | rm -f conftest.$ac_objext |
|
|
7994 | if { (ac_try="$ac_compile" |
|
|
7995 | case "(($ac_try" in |
|
|
7996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7997 | *) ac_try_echo=$ac_try;; |
|
|
7998 | esac |
8223 | esac |
7999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8000 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8001 | ac_status=$? |
|
|
8002 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8003 | rm -f conftest.er1 |
|
|
8004 | cat conftest.err >&5 |
|
|
8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8006 | (exit $ac_status); } && { |
|
|
8007 | test -z "$ac_cxx_werror_flag" || |
|
|
8008 | test ! -s conftest.err |
|
|
8009 | } && test -s conftest.$ac_objext; then |
|
|
8010 | ac_cv_type_int=yes |
|
|
8011 | else |
|
|
8012 | echo "$as_me: failed program was:" >&5 |
|
|
8013 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8014 | |
8224 | |
8015 | ac_cv_type_int=no |
|
|
8016 | fi |
|
|
8017 | |
8225 | |
8018 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8019 | fi |
|
|
8020 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8021 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8022 | |
8226 | |
8023 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8024 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8025 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8026 | # This bug is HP SR number 8606223364. |
|
|
8027 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8028 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8029 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8031 | else |
|
|
8032 | if test "$cross_compiling" = yes; then |
|
|
8033 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8034 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8035 | /* confdefs.h. */ |
|
|
8036 | _ACEOF |
|
|
8037 | cat confdefs.h >>conftest.$ac_ext |
|
|
8038 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8039 | /* end confdefs.h. */ |
|
|
8040 | $ac_includes_default |
|
|
8041 | typedef int ac__type_sizeof_; |
|
|
8042 | int |
|
|
8043 | main () |
|
|
8044 | { |
|
|
8045 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8046 | test_array [0] = 0 |
|
|
8047 | |
|
|
8048 | ; |
|
|
8049 | return 0; |
|
|
8050 | } |
|
|
8051 | _ACEOF |
|
|
8052 | rm -f conftest.$ac_objext |
|
|
8053 | if { (ac_try="$ac_compile" |
|
|
8054 | case "(($ac_try" in |
|
|
8055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8056 | *) ac_try_echo=$ac_try;; |
|
|
8057 | esac |
|
|
8058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8059 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8060 | ac_status=$? |
|
|
8061 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8062 | rm -f conftest.er1 |
|
|
8063 | cat conftest.err >&5 |
|
|
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8065 | (exit $ac_status); } && { |
|
|
8066 | test -z "$ac_cxx_werror_flag" || |
|
|
8067 | test ! -s conftest.err |
|
|
8068 | } && test -s conftest.$ac_objext; then |
|
|
8069 | ac_lo=0 ac_mid=0 |
|
|
8070 | while :; do |
|
|
8071 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8072 | /* confdefs.h. */ |
|
|
8073 | _ACEOF |
|
|
8074 | cat confdefs.h >>conftest.$ac_ext |
|
|
8075 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8076 | /* end confdefs.h. */ |
|
|
8077 | $ac_includes_default |
|
|
8078 | typedef int ac__type_sizeof_; |
|
|
8079 | int |
|
|
8080 | main () |
|
|
8081 | { |
|
|
8082 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8083 | test_array [0] = 0 |
|
|
8084 | |
|
|
8085 | ; |
|
|
8086 | return 0; |
|
|
8087 | } |
|
|
8088 | _ACEOF |
|
|
8089 | rm -f conftest.$ac_objext |
|
|
8090 | if { (ac_try="$ac_compile" |
|
|
8091 | case "(($ac_try" in |
|
|
8092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8093 | *) ac_try_echo=$ac_try;; |
|
|
8094 | esac |
|
|
8095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8096 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8097 | ac_status=$? |
|
|
8098 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8099 | rm -f conftest.er1 |
|
|
8100 | cat conftest.err >&5 |
|
|
8101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8102 | (exit $ac_status); } && { |
|
|
8103 | test -z "$ac_cxx_werror_flag" || |
|
|
8104 | test ! -s conftest.err |
|
|
8105 | } && test -s conftest.$ac_objext; then |
|
|
8106 | ac_hi=$ac_mid; break |
|
|
8107 | else |
|
|
8108 | echo "$as_me: failed program was:" >&5 |
|
|
8109 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8110 | |
|
|
8111 | ac_lo=`expr $ac_mid + 1` |
|
|
8112 | if test $ac_lo -le $ac_mid; then |
|
|
8113 | ac_lo= ac_hi= |
|
|
8114 | break |
|
|
8115 | fi |
|
|
8116 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8117 | fi |
|
|
8118 | |
|
|
8119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8120 | done |
|
|
8121 | else |
|
|
8122 | echo "$as_me: failed program was:" >&5 |
|
|
8123 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8124 | |
|
|
8125 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8126 | /* confdefs.h. */ |
|
|
8127 | _ACEOF |
|
|
8128 | cat confdefs.h >>conftest.$ac_ext |
|
|
8129 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8130 | /* end confdefs.h. */ |
|
|
8131 | $ac_includes_default |
|
|
8132 | typedef int ac__type_sizeof_; |
|
|
8133 | int |
|
|
8134 | main () |
|
|
8135 | { |
|
|
8136 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8137 | test_array [0] = 0 |
|
|
8138 | |
|
|
8139 | ; |
|
|
8140 | return 0; |
|
|
8141 | } |
|
|
8142 | _ACEOF |
|
|
8143 | rm -f conftest.$ac_objext |
|
|
8144 | if { (ac_try="$ac_compile" |
|
|
8145 | case "(($ac_try" in |
|
|
8146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8147 | *) ac_try_echo=$ac_try;; |
|
|
8148 | esac |
|
|
8149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8150 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8151 | ac_status=$? |
|
|
8152 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8153 | rm -f conftest.er1 |
|
|
8154 | cat conftest.err >&5 |
|
|
8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8156 | (exit $ac_status); } && { |
|
|
8157 | test -z "$ac_cxx_werror_flag" || |
|
|
8158 | test ! -s conftest.err |
|
|
8159 | } && test -s conftest.$ac_objext; then |
|
|
8160 | ac_hi=-1 ac_mid=-1 |
|
|
8161 | while :; do |
|
|
8162 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8163 | /* confdefs.h. */ |
|
|
8164 | _ACEOF |
|
|
8165 | cat confdefs.h >>conftest.$ac_ext |
|
|
8166 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8167 | /* end confdefs.h. */ |
|
|
8168 | $ac_includes_default |
|
|
8169 | typedef int ac__type_sizeof_; |
|
|
8170 | int |
|
|
8171 | main () |
|
|
8172 | { |
|
|
8173 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8174 | test_array [0] = 0 |
|
|
8175 | |
|
|
8176 | ; |
|
|
8177 | return 0; |
|
|
8178 | } |
|
|
8179 | _ACEOF |
|
|
8180 | rm -f conftest.$ac_objext |
|
|
8181 | if { (ac_try="$ac_compile" |
|
|
8182 | case "(($ac_try" in |
|
|
8183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8184 | *) ac_try_echo=$ac_try;; |
|
|
8185 | esac |
|
|
8186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8187 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8188 | ac_status=$? |
|
|
8189 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8190 | rm -f conftest.er1 |
|
|
8191 | cat conftest.err >&5 |
|
|
8192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8193 | (exit $ac_status); } && { |
|
|
8194 | test -z "$ac_cxx_werror_flag" || |
|
|
8195 | test ! -s conftest.err |
|
|
8196 | } && test -s conftest.$ac_objext; then |
|
|
8197 | ac_lo=$ac_mid; break |
|
|
8198 | else |
|
|
8199 | echo "$as_me: failed program was:" >&5 |
|
|
8200 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8201 | |
|
|
8202 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8203 | if test $ac_mid -le $ac_hi; then |
|
|
8204 | ac_lo= ac_hi= |
|
|
8205 | break |
|
|
8206 | fi |
|
|
8207 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8208 | fi |
|
|
8209 | |
|
|
8210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8211 | done |
|
|
8212 | else |
|
|
8213 | echo "$as_me: failed program was:" >&5 |
|
|
8214 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8215 | |
|
|
8216 | ac_lo= ac_hi= |
|
|
8217 | fi |
|
|
8218 | |
|
|
8219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8220 | fi |
|
|
8221 | |
|
|
8222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8223 | # Binary search between lo and hi bounds. |
|
|
8224 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8225 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8226 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8227 | /* confdefs.h. */ |
|
|
8228 | _ACEOF |
|
|
8229 | cat confdefs.h >>conftest.$ac_ext |
|
|
8230 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8231 | /* end confdefs.h. */ |
|
|
8232 | $ac_includes_default |
|
|
8233 | typedef int ac__type_sizeof_; |
|
|
8234 | int |
|
|
8235 | main () |
|
|
8236 | { |
|
|
8237 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8238 | test_array [0] = 0 |
|
|
8239 | |
|
|
8240 | ; |
|
|
8241 | return 0; |
|
|
8242 | } |
|
|
8243 | _ACEOF |
|
|
8244 | rm -f conftest.$ac_objext |
|
|
8245 | if { (ac_try="$ac_compile" |
|
|
8246 | case "(($ac_try" in |
|
|
8247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8248 | *) ac_try_echo=$ac_try;; |
|
|
8249 | esac |
|
|
8250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8251 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8252 | ac_status=$? |
|
|
8253 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8254 | rm -f conftest.er1 |
|
|
8255 | cat conftest.err >&5 |
|
|
8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8257 | (exit $ac_status); } && { |
|
|
8258 | test -z "$ac_cxx_werror_flag" || |
|
|
8259 | test ! -s conftest.err |
|
|
8260 | } && test -s conftest.$ac_objext; then |
|
|
8261 | ac_hi=$ac_mid |
|
|
8262 | else |
|
|
8263 | echo "$as_me: failed program was:" >&5 |
|
|
8264 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8265 | |
|
|
8266 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8267 | fi |
|
|
8268 | |
|
|
8269 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8270 | done |
|
|
8271 | case $ac_lo in |
|
|
8272 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8273 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8274 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8275 | See \`config.log' for more details." >&5 |
|
|
8276 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8277 | See \`config.log' for more details." >&2;} |
|
|
8278 | { (exit 77); exit 77; }; } |
|
|
8279 | else |
|
|
8280 | ac_cv_sizeof_int=0 |
|
|
8281 | fi ;; |
|
|
8282 | esac |
|
|
8283 | else |
|
|
8284 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8285 | /* confdefs.h. */ |
|
|
8286 | _ACEOF |
|
|
8287 | cat confdefs.h >>conftest.$ac_ext |
|
|
8288 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8289 | /* end confdefs.h. */ |
|
|
8290 | $ac_includes_default |
|
|
8291 | typedef int ac__type_sizeof_; |
|
|
8292 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8293 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8294 | #include <stdio.h> |
|
|
8295 | #include <stdlib.h> |
|
|
8296 | int |
|
|
8297 | main () |
|
|
8298 | { |
|
|
8299 | |
|
|
8300 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8301 | if (! f) |
|
|
8302 | return 1; |
|
|
8303 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8304 | { |
|
|
8305 | long int i = longval (); |
|
|
8306 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8307 | return 1; |
|
|
8308 | fprintf (f, "%ld\n", i); |
|
|
8309 | } |
|
|
8310 | else |
|
|
8311 | { |
|
|
8312 | unsigned long int i = ulongval (); |
|
|
8313 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8314 | return 1; |
|
|
8315 | fprintf (f, "%lu\n", i); |
|
|
8316 | } |
|
|
8317 | return ferror (f) || fclose (f) != 0; |
|
|
8318 | |
|
|
8319 | ; |
|
|
8320 | return 0; |
|
|
8321 | } |
|
|
8322 | _ACEOF |
|
|
8323 | rm -f conftest$ac_exeext |
|
|
8324 | if { (ac_try="$ac_link" |
|
|
8325 | case "(($ac_try" in |
|
|
8326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8327 | *) ac_try_echo=$ac_try;; |
|
|
8328 | esac |
|
|
8329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8330 | (eval "$ac_link") 2>&5 |
|
|
8331 | ac_status=$? |
|
|
8332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8333 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8334 | { (case "(($ac_try" in |
|
|
8335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8336 | *) ac_try_echo=$ac_try;; |
|
|
8337 | esac |
|
|
8338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8339 | (eval "$ac_try") 2>&5 |
|
|
8340 | ac_status=$? |
|
|
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8342 | (exit $ac_status); }; }; then |
|
|
8343 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8344 | else |
|
|
8345 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8346 | echo "$as_me: failed program was:" >&5 |
|
|
8347 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8348 | |
|
|
8349 | ( exit $ac_status ) |
|
|
8350 | if test "$ac_cv_type_int" = yes; then |
|
|
8351 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8352 | See \`config.log' for more details." >&5 |
|
|
8353 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8354 | See \`config.log' for more details." >&2;} |
|
|
8355 | { (exit 77); exit 77; }; } |
|
|
8356 | else |
|
|
8357 | ac_cv_sizeof_int=0 |
|
|
8358 | fi |
|
|
8359 | fi |
|
|
8360 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8361 | fi |
|
|
8362 | rm -f conftest.val |
|
|
8363 | fi |
|
|
8364 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8365 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8366 | |
|
|
8367 | |
|
|
8368 | |
|
|
8369 | cat >>confdefs.h <<_ACEOF |
|
|
8370 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8371 | _ACEOF |
|
|
8372 | |
|
|
8373 | |
|
|
8374 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8375 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8376 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8378 | else |
|
|
8379 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8380 | /* confdefs.h. */ |
|
|
8381 | _ACEOF |
|
|
8382 | cat confdefs.h >>conftest.$ac_ext |
|
|
8383 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8384 | /* end confdefs.h. */ |
|
|
8385 | $ac_includes_default |
|
|
8386 | typedef long long ac__type_new_; |
|
|
8387 | int |
|
|
8388 | main () |
|
|
8389 | { |
|
|
8390 | if ((ac__type_new_ *) 0) |
|
|
8391 | return 0; |
|
|
8392 | if (sizeof (ac__type_new_)) |
|
|
8393 | return 0; |
|
|
8394 | ; |
|
|
8395 | return 0; |
|
|
8396 | } |
|
|
8397 | _ACEOF |
|
|
8398 | rm -f conftest.$ac_objext |
|
|
8399 | if { (ac_try="$ac_compile" |
|
|
8400 | case "(($ac_try" in |
|
|
8401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8402 | *) ac_try_echo=$ac_try;; |
|
|
8403 | esac |
|
|
8404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8405 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8406 | ac_status=$? |
|
|
8407 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8408 | rm -f conftest.er1 |
|
|
8409 | cat conftest.err >&5 |
|
|
8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8411 | (exit $ac_status); } && { |
|
|
8412 | test -z "$ac_cxx_werror_flag" || |
|
|
8413 | test ! -s conftest.err |
|
|
8414 | } && test -s conftest.$ac_objext; then |
|
|
8415 | ac_cv_type_long_long=yes |
|
|
8416 | else |
|
|
8417 | echo "$as_me: failed program was:" >&5 |
|
|
8418 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8419 | |
|
|
8420 | ac_cv_type_long_long=no |
|
|
8421 | fi |
|
|
8422 | |
|
|
8423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8424 | fi |
|
|
8425 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8426 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8427 | |
|
|
8428 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8431 | # This bug is HP SR number 8606223364. |
|
|
8432 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8433 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8434 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8436 | else |
|
|
8437 | if test "$cross_compiling" = yes; then |
|
|
8438 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8439 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8440 | /* confdefs.h. */ |
|
|
8441 | _ACEOF |
|
|
8442 | cat confdefs.h >>conftest.$ac_ext |
|
|
8443 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8444 | /* end confdefs.h. */ |
|
|
8445 | $ac_includes_default |
|
|
8446 | typedef long long ac__type_sizeof_; |
|
|
8447 | int |
|
|
8448 | main () |
|
|
8449 | { |
|
|
8450 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8451 | test_array [0] = 0 |
|
|
8452 | |
|
|
8453 | ; |
|
|
8454 | return 0; |
|
|
8455 | } |
|
|
8456 | _ACEOF |
|
|
8457 | rm -f conftest.$ac_objext |
|
|
8458 | if { (ac_try="$ac_compile" |
|
|
8459 | case "(($ac_try" in |
|
|
8460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8461 | *) ac_try_echo=$ac_try;; |
|
|
8462 | esac |
|
|
8463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8464 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8465 | ac_status=$? |
|
|
8466 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8467 | rm -f conftest.er1 |
|
|
8468 | cat conftest.err >&5 |
|
|
8469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8470 | (exit $ac_status); } && { |
|
|
8471 | test -z "$ac_cxx_werror_flag" || |
|
|
8472 | test ! -s conftest.err |
|
|
8473 | } && test -s conftest.$ac_objext; then |
|
|
8474 | ac_lo=0 ac_mid=0 |
|
|
8475 | while :; do |
|
|
8476 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8477 | /* confdefs.h. */ |
|
|
8478 | _ACEOF |
|
|
8479 | cat confdefs.h >>conftest.$ac_ext |
|
|
8480 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8481 | /* end confdefs.h. */ |
|
|
8482 | $ac_includes_default |
|
|
8483 | typedef long long ac__type_sizeof_; |
|
|
8484 | int |
|
|
8485 | main () |
|
|
8486 | { |
|
|
8487 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8488 | test_array [0] = 0 |
|
|
8489 | |
|
|
8490 | ; |
|
|
8491 | return 0; |
|
|
8492 | } |
|
|
8493 | _ACEOF |
|
|
8494 | rm -f conftest.$ac_objext |
|
|
8495 | if { (ac_try="$ac_compile" |
|
|
8496 | case "(($ac_try" in |
|
|
8497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8498 | *) ac_try_echo=$ac_try;; |
|
|
8499 | esac |
|
|
8500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8501 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8502 | ac_status=$? |
|
|
8503 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8504 | rm -f conftest.er1 |
|
|
8505 | cat conftest.err >&5 |
|
|
8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8507 | (exit $ac_status); } && { |
|
|
8508 | test -z "$ac_cxx_werror_flag" || |
|
|
8509 | test ! -s conftest.err |
|
|
8510 | } && test -s conftest.$ac_objext; then |
|
|
8511 | ac_hi=$ac_mid; break |
|
|
8512 | else |
|
|
8513 | echo "$as_me: failed program was:" >&5 |
|
|
8514 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8515 | |
|
|
8516 | ac_lo=`expr $ac_mid + 1` |
|
|
8517 | if test $ac_lo -le $ac_mid; then |
|
|
8518 | ac_lo= ac_hi= |
|
|
8519 | break |
|
|
8520 | fi |
|
|
8521 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8522 | fi |
|
|
8523 | |
|
|
8524 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8525 | done |
|
|
8526 | else |
|
|
8527 | echo "$as_me: failed program was:" >&5 |
|
|
8528 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8529 | |
|
|
8530 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8531 | /* confdefs.h. */ |
|
|
8532 | _ACEOF |
|
|
8533 | cat confdefs.h >>conftest.$ac_ext |
|
|
8534 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8535 | /* end confdefs.h. */ |
|
|
8536 | $ac_includes_default |
|
|
8537 | typedef long long ac__type_sizeof_; |
|
|
8538 | int |
|
|
8539 | main () |
|
|
8540 | { |
|
|
8541 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8542 | test_array [0] = 0 |
|
|
8543 | |
|
|
8544 | ; |
|
|
8545 | return 0; |
|
|
8546 | } |
|
|
8547 | _ACEOF |
|
|
8548 | rm -f conftest.$ac_objext |
|
|
8549 | if { (ac_try="$ac_compile" |
|
|
8550 | case "(($ac_try" in |
|
|
8551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8552 | *) ac_try_echo=$ac_try;; |
|
|
8553 | esac |
|
|
8554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8555 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8556 | ac_status=$? |
|
|
8557 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8558 | rm -f conftest.er1 |
|
|
8559 | cat conftest.err >&5 |
|
|
8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8561 | (exit $ac_status); } && { |
|
|
8562 | test -z "$ac_cxx_werror_flag" || |
|
|
8563 | test ! -s conftest.err |
|
|
8564 | } && test -s conftest.$ac_objext; then |
|
|
8565 | ac_hi=-1 ac_mid=-1 |
|
|
8566 | while :; do |
|
|
8567 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8568 | /* confdefs.h. */ |
|
|
8569 | _ACEOF |
|
|
8570 | cat confdefs.h >>conftest.$ac_ext |
|
|
8571 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8572 | /* end confdefs.h. */ |
|
|
8573 | $ac_includes_default |
|
|
8574 | typedef long long ac__type_sizeof_; |
|
|
8575 | int |
|
|
8576 | main () |
|
|
8577 | { |
|
|
8578 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8579 | test_array [0] = 0 |
|
|
8580 | |
|
|
8581 | ; |
|
|
8582 | return 0; |
|
|
8583 | } |
|
|
8584 | _ACEOF |
|
|
8585 | rm -f conftest.$ac_objext |
|
|
8586 | if { (ac_try="$ac_compile" |
|
|
8587 | case "(($ac_try" in |
|
|
8588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8589 | *) ac_try_echo=$ac_try;; |
|
|
8590 | esac |
|
|
8591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8592 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8593 | ac_status=$? |
|
|
8594 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8595 | rm -f conftest.er1 |
|
|
8596 | cat conftest.err >&5 |
|
|
8597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8598 | (exit $ac_status); } && { |
|
|
8599 | test -z "$ac_cxx_werror_flag" || |
|
|
8600 | test ! -s conftest.err |
|
|
8601 | } && test -s conftest.$ac_objext; then |
|
|
8602 | ac_lo=$ac_mid; break |
|
|
8603 | else |
|
|
8604 | echo "$as_me: failed program was:" >&5 |
|
|
8605 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8606 | |
|
|
8607 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8608 | if test $ac_mid -le $ac_hi; then |
|
|
8609 | ac_lo= ac_hi= |
|
|
8610 | break |
|
|
8611 | fi |
|
|
8612 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8613 | fi |
|
|
8614 | |
|
|
8615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8616 | done |
|
|
8617 | else |
|
|
8618 | echo "$as_me: failed program was:" >&5 |
|
|
8619 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8620 | |
|
|
8621 | ac_lo= ac_hi= |
|
|
8622 | fi |
|
|
8623 | |
|
|
8624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8625 | fi |
|
|
8626 | |
|
|
8627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8628 | # Binary search between lo and hi bounds. |
|
|
8629 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8630 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8631 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8632 | /* confdefs.h. */ |
|
|
8633 | _ACEOF |
|
|
8634 | cat confdefs.h >>conftest.$ac_ext |
|
|
8635 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8636 | /* end confdefs.h. */ |
|
|
8637 | $ac_includes_default |
|
|
8638 | typedef long long ac__type_sizeof_; |
|
|
8639 | int |
|
|
8640 | main () |
|
|
8641 | { |
|
|
8642 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8643 | test_array [0] = 0 |
|
|
8644 | |
|
|
8645 | ; |
|
|
8646 | return 0; |
|
|
8647 | } |
|
|
8648 | _ACEOF |
|
|
8649 | rm -f conftest.$ac_objext |
|
|
8650 | if { (ac_try="$ac_compile" |
|
|
8651 | case "(($ac_try" in |
|
|
8652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8653 | *) ac_try_echo=$ac_try;; |
|
|
8654 | esac |
|
|
8655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8656 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8657 | ac_status=$? |
|
|
8658 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8659 | rm -f conftest.er1 |
|
|
8660 | cat conftest.err >&5 |
|
|
8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8662 | (exit $ac_status); } && { |
|
|
8663 | test -z "$ac_cxx_werror_flag" || |
|
|
8664 | test ! -s conftest.err |
|
|
8665 | } && test -s conftest.$ac_objext; then |
|
|
8666 | ac_hi=$ac_mid |
|
|
8667 | else |
|
|
8668 | echo "$as_me: failed program was:" >&5 |
|
|
8669 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8670 | |
|
|
8671 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8672 | fi |
|
|
8673 | |
|
|
8674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8675 | done |
|
|
8676 | case $ac_lo in |
|
|
8677 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
8678 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
8679 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8680 | See \`config.log' for more details." >&5 |
|
|
8681 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8682 | See \`config.log' for more details." >&2;} |
|
|
8683 | { (exit 77); exit 77; }; } |
|
|
8684 | else |
|
|
8685 | ac_cv_sizeof_long_long=0 |
|
|
8686 | fi ;; |
|
|
8687 | esac |
|
|
8688 | else |
|
|
8689 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8690 | /* confdefs.h. */ |
|
|
8691 | _ACEOF |
|
|
8692 | cat confdefs.h >>conftest.$ac_ext |
|
|
8693 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8694 | /* end confdefs.h. */ |
|
|
8695 | $ac_includes_default |
|
|
8696 | typedef long long ac__type_sizeof_; |
|
|
8697 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8698 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8699 | #include <stdio.h> |
|
|
8700 | #include <stdlib.h> |
|
|
8701 | int |
|
|
8702 | main () |
|
|
8703 | { |
|
|
8704 | |
|
|
8705 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8706 | if (! f) |
|
|
8707 | return 1; |
|
|
8708 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8709 | { |
|
|
8710 | long int i = longval (); |
|
|
8711 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8712 | return 1; |
|
|
8713 | fprintf (f, "%ld\n", i); |
|
|
8714 | } |
|
|
8715 | else |
|
|
8716 | { |
|
|
8717 | unsigned long int i = ulongval (); |
|
|
8718 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8719 | return 1; |
|
|
8720 | fprintf (f, "%lu\n", i); |
|
|
8721 | } |
|
|
8722 | return ferror (f) || fclose (f) != 0; |
|
|
8723 | |
|
|
8724 | ; |
|
|
8725 | return 0; |
|
|
8726 | } |
|
|
8727 | _ACEOF |
|
|
8728 | rm -f conftest$ac_exeext |
|
|
8729 | if { (ac_try="$ac_link" |
|
|
8730 | case "(($ac_try" in |
|
|
8731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8732 | *) ac_try_echo=$ac_try;; |
|
|
8733 | esac |
|
|
8734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8735 | (eval "$ac_link") 2>&5 |
|
|
8736 | ac_status=$? |
|
|
8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8739 | { (case "(($ac_try" in |
|
|
8740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8741 | *) ac_try_echo=$ac_try;; |
|
|
8742 | esac |
|
|
8743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8744 | (eval "$ac_try") 2>&5 |
|
|
8745 | ac_status=$? |
|
|
8746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8747 | (exit $ac_status); }; }; then |
|
|
8748 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
8749 | else |
|
|
8750 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8751 | echo "$as_me: failed program was:" >&5 |
|
|
8752 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8753 | |
|
|
8754 | ( exit $ac_status ) |
|
|
8755 | if test "$ac_cv_type_long_long" = yes; then |
|
|
8756 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8757 | See \`config.log' for more details." >&5 |
|
|
8758 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8759 | See \`config.log' for more details." >&2;} |
|
|
8760 | { (exit 77); exit 77; }; } |
|
|
8761 | else |
|
|
8762 | ac_cv_sizeof_long_long=0 |
|
|
8763 | fi |
|
|
8764 | fi |
|
|
8765 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8766 | fi |
|
|
8767 | rm -f conftest.val |
|
|
8768 | fi |
|
|
8769 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
8770 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
8771 | |
|
|
8772 | |
|
|
8773 | |
|
|
8774 | cat >>confdefs.h <<_ACEOF |
|
|
8775 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
8776 | _ACEOF |
|
|
8777 | |
|
|
8778 | |
|
|
8779 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
8780 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
8781 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
8782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8783 | else |
|
|
8784 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8785 | /* confdefs.h. */ |
|
|
8786 | _ACEOF |
|
|
8787 | cat confdefs.h >>conftest.$ac_ext |
|
|
8788 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8789 | /* end confdefs.h. */ |
|
|
8790 | $ac_includes_default |
|
|
8791 | typedef int * ac__type_new_; |
|
|
8792 | int |
|
|
8793 | main () |
|
|
8794 | { |
|
|
8795 | if ((ac__type_new_ *) 0) |
|
|
8796 | return 0; |
|
|
8797 | if (sizeof (ac__type_new_)) |
|
|
8798 | return 0; |
|
|
8799 | ; |
|
|
8800 | return 0; |
|
|
8801 | } |
|
|
8802 | _ACEOF |
|
|
8803 | rm -f conftest.$ac_objext |
|
|
8804 | if { (ac_try="$ac_compile" |
|
|
8805 | case "(($ac_try" in |
|
|
8806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8807 | *) ac_try_echo=$ac_try;; |
|
|
8808 | esac |
|
|
8809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8810 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8811 | ac_status=$? |
|
|
8812 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8813 | rm -f conftest.er1 |
|
|
8814 | cat conftest.err >&5 |
|
|
8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8816 | (exit $ac_status); } && { |
|
|
8817 | test -z "$ac_cxx_werror_flag" || |
|
|
8818 | test ! -s conftest.err |
|
|
8819 | } && test -s conftest.$ac_objext; then |
|
|
8820 | ac_cv_type_int_p=yes |
|
|
8821 | else |
|
|
8822 | echo "$as_me: failed program was:" >&5 |
|
|
8823 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8824 | |
|
|
8825 | ac_cv_type_int_p=no |
|
|
8826 | fi |
|
|
8827 | |
|
|
8828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8829 | fi |
|
|
8830 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
8831 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
8832 | |
|
|
8833 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8834 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8835 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8836 | # This bug is HP SR number 8606223364. |
|
|
8837 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
8838 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
8839 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
8840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8841 | else |
|
|
8842 | if test "$cross_compiling" = yes; then |
|
|
8843 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8844 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8845 | /* confdefs.h. */ |
|
|
8846 | _ACEOF |
|
|
8847 | cat confdefs.h >>conftest.$ac_ext |
|
|
8848 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8849 | /* end confdefs.h. */ |
|
|
8850 | $ac_includes_default |
|
|
8851 | typedef int * ac__type_sizeof_; |
|
|
8852 | int |
|
|
8853 | main () |
|
|
8854 | { |
|
|
8855 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8856 | test_array [0] = 0 |
|
|
8857 | |
|
|
8858 | ; |
|
|
8859 | return 0; |
|
|
8860 | } |
|
|
8861 | _ACEOF |
|
|
8862 | rm -f conftest.$ac_objext |
|
|
8863 | if { (ac_try="$ac_compile" |
|
|
8864 | case "(($ac_try" in |
|
|
8865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8866 | *) ac_try_echo=$ac_try;; |
|
|
8867 | esac |
|
|
8868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8869 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8870 | ac_status=$? |
|
|
8871 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8872 | rm -f conftest.er1 |
|
|
8873 | cat conftest.err >&5 |
|
|
8874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8875 | (exit $ac_status); } && { |
|
|
8876 | test -z "$ac_cxx_werror_flag" || |
|
|
8877 | test ! -s conftest.err |
|
|
8878 | } && test -s conftest.$ac_objext; then |
|
|
8879 | ac_lo=0 ac_mid=0 |
|
|
8880 | while :; do |
|
|
8881 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8882 | /* confdefs.h. */ |
|
|
8883 | _ACEOF |
|
|
8884 | cat confdefs.h >>conftest.$ac_ext |
|
|
8885 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8886 | /* end confdefs.h. */ |
|
|
8887 | $ac_includes_default |
|
|
8888 | typedef int * ac__type_sizeof_; |
|
|
8889 | int |
|
|
8890 | main () |
|
|
8891 | { |
|
|
8892 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8893 | test_array [0] = 0 |
|
|
8894 | |
|
|
8895 | ; |
|
|
8896 | return 0; |
|
|
8897 | } |
|
|
8898 | _ACEOF |
|
|
8899 | rm -f conftest.$ac_objext |
|
|
8900 | if { (ac_try="$ac_compile" |
|
|
8901 | case "(($ac_try" in |
|
|
8902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8903 | *) ac_try_echo=$ac_try;; |
|
|
8904 | esac |
|
|
8905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8906 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8907 | ac_status=$? |
|
|
8908 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8909 | rm -f conftest.er1 |
|
|
8910 | cat conftest.err >&5 |
|
|
8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8912 | (exit $ac_status); } && { |
|
|
8913 | test -z "$ac_cxx_werror_flag" || |
|
|
8914 | test ! -s conftest.err |
|
|
8915 | } && test -s conftest.$ac_objext; then |
|
|
8916 | ac_hi=$ac_mid; break |
|
|
8917 | else |
|
|
8918 | echo "$as_me: failed program was:" >&5 |
|
|
8919 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8920 | |
|
|
8921 | ac_lo=`expr $ac_mid + 1` |
|
|
8922 | if test $ac_lo -le $ac_mid; then |
|
|
8923 | ac_lo= ac_hi= |
|
|
8924 | break |
|
|
8925 | fi |
|
|
8926 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8927 | fi |
|
|
8928 | |
|
|
8929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8930 | done |
|
|
8931 | else |
|
|
8932 | echo "$as_me: failed program was:" >&5 |
|
|
8933 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8934 | |
|
|
8935 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8936 | /* confdefs.h. */ |
|
|
8937 | _ACEOF |
|
|
8938 | cat confdefs.h >>conftest.$ac_ext |
|
|
8939 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8940 | /* end confdefs.h. */ |
|
|
8941 | $ac_includes_default |
|
|
8942 | typedef int * ac__type_sizeof_; |
|
|
8943 | int |
|
|
8944 | main () |
|
|
8945 | { |
|
|
8946 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8947 | test_array [0] = 0 |
|
|
8948 | |
|
|
8949 | ; |
|
|
8950 | return 0; |
|
|
8951 | } |
|
|
8952 | _ACEOF |
|
|
8953 | rm -f conftest.$ac_objext |
|
|
8954 | if { (ac_try="$ac_compile" |
|
|
8955 | case "(($ac_try" in |
|
|
8956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8957 | *) ac_try_echo=$ac_try;; |
|
|
8958 | esac |
|
|
8959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8960 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8961 | ac_status=$? |
|
|
8962 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8963 | rm -f conftest.er1 |
|
|
8964 | cat conftest.err >&5 |
|
|
8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8966 | (exit $ac_status); } && { |
|
|
8967 | test -z "$ac_cxx_werror_flag" || |
|
|
8968 | test ! -s conftest.err |
|
|
8969 | } && test -s conftest.$ac_objext; then |
|
|
8970 | ac_hi=-1 ac_mid=-1 |
|
|
8971 | while :; do |
|
|
8972 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8973 | /* confdefs.h. */ |
|
|
8974 | _ACEOF |
|
|
8975 | cat confdefs.h >>conftest.$ac_ext |
|
|
8976 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8977 | /* end confdefs.h. */ |
|
|
8978 | $ac_includes_default |
|
|
8979 | typedef int * ac__type_sizeof_; |
|
|
8980 | int |
|
|
8981 | main () |
|
|
8982 | { |
|
|
8983 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8984 | test_array [0] = 0 |
|
|
8985 | |
|
|
8986 | ; |
|
|
8987 | return 0; |
|
|
8988 | } |
|
|
8989 | _ACEOF |
|
|
8990 | rm -f conftest.$ac_objext |
|
|
8991 | if { (ac_try="$ac_compile" |
|
|
8992 | case "(($ac_try" in |
|
|
8993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8994 | *) ac_try_echo=$ac_try;; |
|
|
8995 | esac |
|
|
8996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8997 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8998 | ac_status=$? |
|
|
8999 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9000 | rm -f conftest.er1 |
|
|
9001 | cat conftest.err >&5 |
|
|
9002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9003 | (exit $ac_status); } && { |
|
|
9004 | test -z "$ac_cxx_werror_flag" || |
|
|
9005 | test ! -s conftest.err |
|
|
9006 | } && test -s conftest.$ac_objext; then |
|
|
9007 | ac_lo=$ac_mid; break |
|
|
9008 | else |
|
|
9009 | echo "$as_me: failed program was:" >&5 |
|
|
9010 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9011 | |
|
|
9012 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9013 | if test $ac_mid -le $ac_hi; then |
|
|
9014 | ac_lo= ac_hi= |
|
|
9015 | break |
|
|
9016 | fi |
|
|
9017 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9018 | fi |
|
|
9019 | |
|
|
9020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9021 | done |
|
|
9022 | else |
|
|
9023 | echo "$as_me: failed program was:" >&5 |
|
|
9024 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9025 | |
|
|
9026 | ac_lo= ac_hi= |
|
|
9027 | fi |
|
|
9028 | |
|
|
9029 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9030 | fi |
|
|
9031 | |
|
|
9032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9033 | # Binary search between lo and hi bounds. |
|
|
9034 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9035 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9036 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9037 | /* confdefs.h. */ |
|
|
9038 | _ACEOF |
|
|
9039 | cat confdefs.h >>conftest.$ac_ext |
|
|
9040 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9041 | /* end confdefs.h. */ |
|
|
9042 | $ac_includes_default |
|
|
9043 | typedef int * ac__type_sizeof_; |
|
|
9044 | int |
|
|
9045 | main () |
|
|
9046 | { |
|
|
9047 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9048 | test_array [0] = 0 |
|
|
9049 | |
|
|
9050 | ; |
|
|
9051 | return 0; |
|
|
9052 | } |
|
|
9053 | _ACEOF |
|
|
9054 | rm -f conftest.$ac_objext |
|
|
9055 | if { (ac_try="$ac_compile" |
|
|
9056 | case "(($ac_try" in |
|
|
9057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9058 | *) ac_try_echo=$ac_try;; |
|
|
9059 | esac |
|
|
9060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9061 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9062 | ac_status=$? |
|
|
9063 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9064 | rm -f conftest.er1 |
|
|
9065 | cat conftest.err >&5 |
|
|
9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9067 | (exit $ac_status); } && { |
|
|
9068 | test -z "$ac_cxx_werror_flag" || |
|
|
9069 | test ! -s conftest.err |
|
|
9070 | } && test -s conftest.$ac_objext; then |
|
|
9071 | ac_hi=$ac_mid |
|
|
9072 | else |
|
|
9073 | echo "$as_me: failed program was:" >&5 |
|
|
9074 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9075 | |
|
|
9076 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9077 | fi |
|
|
9078 | |
|
|
9079 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9080 | done |
|
|
9081 | case $ac_lo in |
|
|
9082 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9083 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9084 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9085 | See \`config.log' for more details." >&5 |
|
|
9086 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9087 | See \`config.log' for more details." >&2;} |
|
|
9088 | { (exit 77); exit 77; }; } |
|
|
9089 | else |
|
|
9090 | ac_cv_sizeof_int_p=0 |
|
|
9091 | fi ;; |
|
|
9092 | esac |
|
|
9093 | else |
|
|
9094 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9095 | /* confdefs.h. */ |
|
|
9096 | _ACEOF |
|
|
9097 | cat confdefs.h >>conftest.$ac_ext |
|
|
9098 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9099 | /* end confdefs.h. */ |
|
|
9100 | $ac_includes_default |
|
|
9101 | typedef int * ac__type_sizeof_; |
|
|
9102 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9103 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9104 | #include <stdio.h> |
|
|
9105 | #include <stdlib.h> |
|
|
9106 | int |
|
|
9107 | main () |
|
|
9108 | { |
|
|
9109 | |
|
|
9110 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9111 | if (! f) |
|
|
9112 | return 1; |
|
|
9113 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9114 | { |
|
|
9115 | long int i = longval (); |
|
|
9116 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9117 | return 1; |
|
|
9118 | fprintf (f, "%ld\n", i); |
|
|
9119 | } |
|
|
9120 | else |
|
|
9121 | { |
|
|
9122 | unsigned long int i = ulongval (); |
|
|
9123 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9124 | return 1; |
|
|
9125 | fprintf (f, "%lu\n", i); |
|
|
9126 | } |
|
|
9127 | return ferror (f) || fclose (f) != 0; |
|
|
9128 | |
|
|
9129 | ; |
|
|
9130 | return 0; |
|
|
9131 | } |
|
|
9132 | _ACEOF |
|
|
9133 | rm -f conftest$ac_exeext |
|
|
9134 | if { (ac_try="$ac_link" |
|
|
9135 | case "(($ac_try" in |
|
|
9136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9137 | *) ac_try_echo=$ac_try;; |
|
|
9138 | esac |
|
|
9139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9140 | (eval "$ac_link") 2>&5 |
|
|
9141 | ac_status=$? |
|
|
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9143 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9144 | { (case "(($ac_try" in |
|
|
9145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9146 | *) ac_try_echo=$ac_try;; |
|
|
9147 | esac |
|
|
9148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9149 | (eval "$ac_try") 2>&5 |
|
|
9150 | ac_status=$? |
|
|
9151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9152 | (exit $ac_status); }; }; then |
|
|
9153 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9154 | else |
|
|
9155 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9156 | echo "$as_me: failed program was:" >&5 |
|
|
9157 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9158 | |
|
|
9159 | ( exit $ac_status ) |
|
|
9160 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9161 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9162 | See \`config.log' for more details." >&5 |
|
|
9163 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9164 | See \`config.log' for more details." >&2;} |
|
|
9165 | { (exit 77); exit 77; }; } |
|
|
9166 | else |
|
|
9167 | ac_cv_sizeof_int_p=0 |
|
|
9168 | fi |
|
|
9169 | fi |
|
|
9170 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9171 | fi |
|
|
9172 | rm -f conftest.val |
|
|
9173 | fi |
|
|
9174 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9175 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9176 | |
|
|
9177 | |
|
|
9178 | |
|
|
9179 | cat >>confdefs.h <<_ACEOF |
|
|
9180 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9181 | _ACEOF |
|
|
9182 | |
|
|
9183 | |
|
|
9184 | |
|
|
9185 | |
|
|
9186 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9187 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9188 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9190 | else |
|
|
9191 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9192 | /* confdefs.h. */ |
|
|
9193 | _ACEOF |
|
|
9194 | cat confdefs.h >>conftest.$ac_ext |
|
|
9195 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9196 | /* end confdefs.h. */ |
|
|
9197 | #include <stdint.h> |
|
|
9198 | int |
|
|
9199 | main () |
|
|
9200 | { |
|
|
9201 | int16_t dummy; |
|
|
9202 | ; |
|
|
9203 | return 0; |
|
|
9204 | } |
|
|
9205 | _ACEOF |
|
|
9206 | rm -f conftest.$ac_objext |
|
|
9207 | if { (ac_try="$ac_compile" |
|
|
9208 | case "(($ac_try" in |
|
|
9209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9210 | *) ac_try_echo=$ac_try;; |
|
|
9211 | esac |
|
|
9212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9213 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9214 | ac_status=$? |
|
|
9215 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9216 | rm -f conftest.er1 |
|
|
9217 | cat conftest.err >&5 |
|
|
9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9219 | (exit $ac_status); } && { |
|
|
9220 | test -z "$ac_cxx_werror_flag" || |
|
|
9221 | test ! -s conftest.err |
|
|
9222 | } && test -s conftest.$ac_objext; then |
|
|
9223 | rxvt_cv_int16_t=yes |
|
|
9224 | else |
|
|
9225 | echo "$as_me: failed program was:" >&5 |
|
|
9226 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9227 | |
|
|
9228 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9229 | rxvt_cv_int16_t=" char" |
|
|
9230 | else |
|
|
9231 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9232 | rxvt_cv_int16_t=" short" |
|
|
9233 | else |
|
|
9234 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9235 | rxvt_cv_int16_t=" int" |
|
|
9236 | else |
|
|
9237 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9238 | rxvt_cv_int16_t=" long" |
|
|
9239 | else |
|
|
9240 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9241 | rxvt_cv_int16_t=" long long" |
|
|
9242 | else |
|
|
9243 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9244 | fi |
|
|
9245 | fi |
|
|
9246 | fi |
|
|
9247 | fi |
|
|
9248 | fi |
|
|
9249 | fi |
|
|
9250 | |
|
|
9251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9252 | fi |
|
|
9253 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9254 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9255 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9256 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9257 | else |
|
|
9258 | if test x"" = x; then |
|
|
9259 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9260 | else |
|
|
9261 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9262 | fi |
|
|
9263 | fi |
|
|
9264 | |
|
|
9265 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9266 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9267 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9269 | else |
|
|
9270 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9271 | /* confdefs.h. */ |
|
|
9272 | _ACEOF |
|
|
9273 | cat confdefs.h >>conftest.$ac_ext |
|
|
9274 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9275 | /* end confdefs.h. */ |
|
|
9276 | #include <stdint.h> |
|
|
9277 | int |
|
|
9278 | main () |
|
|
9279 | { |
|
|
9280 | uint16_t dummy; |
|
|
9281 | ; |
|
|
9282 | return 0; |
|
|
9283 | } |
|
|
9284 | _ACEOF |
|
|
9285 | rm -f conftest.$ac_objext |
|
|
9286 | if { (ac_try="$ac_compile" |
|
|
9287 | case "(($ac_try" in |
|
|
9288 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9289 | *) ac_try_echo=$ac_try;; |
|
|
9290 | esac |
|
|
9291 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9292 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9293 | ac_status=$? |
|
|
9294 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9295 | rm -f conftest.er1 |
|
|
9296 | cat conftest.err >&5 |
|
|
9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9298 | (exit $ac_status); } && { |
|
|
9299 | test -z "$ac_cxx_werror_flag" || |
|
|
9300 | test ! -s conftest.err |
|
|
9301 | } && test -s conftest.$ac_objext; then |
|
|
9302 | rxvt_cv_uint16_t=yes |
|
|
9303 | else |
|
|
9304 | echo "$as_me: failed program was:" >&5 |
|
|
9305 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9306 | |
|
|
9307 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9308 | rxvt_cv_uint16_t="unsigned char" |
|
|
9309 | else |
|
|
9310 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9311 | rxvt_cv_uint16_t="unsigned short" |
|
|
9312 | else |
|
|
9313 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9314 | rxvt_cv_uint16_t="unsigned int" |
|
|
9315 | else |
|
|
9316 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9317 | rxvt_cv_uint16_t="unsigned long" |
|
|
9318 | else |
|
|
9319 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9320 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9321 | else |
|
|
9322 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9323 | fi |
|
|
9324 | fi |
|
|
9325 | fi |
|
|
9326 | fi |
|
|
9327 | fi |
|
|
9328 | fi |
|
|
9329 | |
|
|
9330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9331 | fi |
|
|
9332 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9333 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9334 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9335 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9336 | else |
|
|
9337 | if test x"unsigned" = x; then |
|
|
9338 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9339 | else |
|
|
9340 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9341 | fi |
|
|
9342 | fi |
|
|
9343 | |
|
|
9344 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9345 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9346 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9348 | else |
|
|
9349 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9350 | /* confdefs.h. */ |
|
|
9351 | _ACEOF |
|
|
9352 | cat confdefs.h >>conftest.$ac_ext |
|
|
9353 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9354 | /* end confdefs.h. */ |
|
|
9355 | #include <stdint.h> |
|
|
9356 | int |
|
|
9357 | main () |
|
|
9358 | { |
|
|
9359 | int32_t dummy; |
|
|
9360 | ; |
|
|
9361 | return 0; |
|
|
9362 | } |
|
|
9363 | _ACEOF |
|
|
9364 | rm -f conftest.$ac_objext |
|
|
9365 | if { (ac_try="$ac_compile" |
|
|
9366 | case "(($ac_try" in |
|
|
9367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9368 | *) ac_try_echo=$ac_try;; |
|
|
9369 | esac |
|
|
9370 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9371 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9372 | ac_status=$? |
|
|
9373 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9374 | rm -f conftest.er1 |
|
|
9375 | cat conftest.err >&5 |
|
|
9376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9377 | (exit $ac_status); } && { |
|
|
9378 | test -z "$ac_cxx_werror_flag" || |
|
|
9379 | test ! -s conftest.err |
|
|
9380 | } && test -s conftest.$ac_objext; then |
|
|
9381 | rxvt_cv_int32_t=yes |
|
|
9382 | else |
|
|
9383 | echo "$as_me: failed program was:" >&5 |
|
|
9384 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9385 | |
|
|
9386 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9387 | rxvt_cv_int32_t=" char" |
|
|
9388 | else |
|
|
9389 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9390 | rxvt_cv_int32_t=" short" |
|
|
9391 | else |
|
|
9392 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9393 | rxvt_cv_int32_t=" int" |
|
|
9394 | else |
|
|
9395 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9396 | rxvt_cv_int32_t=" long" |
|
|
9397 | else |
|
|
9398 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9399 | rxvt_cv_int32_t=" long long" |
|
|
9400 | else |
|
|
9401 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9402 | fi |
|
|
9403 | fi |
|
|
9404 | fi |
|
|
9405 | fi |
|
|
9406 | fi |
|
|
9407 | fi |
|
|
9408 | |
|
|
9409 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9410 | fi |
|
|
9411 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9412 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9413 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9414 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9415 | else |
|
|
9416 | if test x"" = x; then |
|
|
9417 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9418 | else |
|
|
9419 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9420 | fi |
|
|
9421 | fi |
|
|
9422 | |
|
|
9423 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9424 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9425 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9427 | else |
|
|
9428 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9429 | /* confdefs.h. */ |
|
|
9430 | _ACEOF |
|
|
9431 | cat confdefs.h >>conftest.$ac_ext |
|
|
9432 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9433 | /* end confdefs.h. */ |
|
|
9434 | #include <stdint.h> |
|
|
9435 | int |
|
|
9436 | main () |
|
|
9437 | { |
|
|
9438 | uint32_t dummy; |
|
|
9439 | ; |
|
|
9440 | return 0; |
|
|
9441 | } |
|
|
9442 | _ACEOF |
|
|
9443 | rm -f conftest.$ac_objext |
|
|
9444 | if { (ac_try="$ac_compile" |
|
|
9445 | case "(($ac_try" in |
|
|
9446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9447 | *) ac_try_echo=$ac_try;; |
|
|
9448 | esac |
|
|
9449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9450 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9451 | ac_status=$? |
|
|
9452 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9453 | rm -f conftest.er1 |
|
|
9454 | cat conftest.err >&5 |
|
|
9455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9456 | (exit $ac_status); } && { |
|
|
9457 | test -z "$ac_cxx_werror_flag" || |
|
|
9458 | test ! -s conftest.err |
|
|
9459 | } && test -s conftest.$ac_objext; then |
|
|
9460 | rxvt_cv_uint32_t=yes |
|
|
9461 | else |
|
|
9462 | echo "$as_me: failed program was:" >&5 |
|
|
9463 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9464 | |
|
|
9465 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9466 | rxvt_cv_uint32_t="unsigned char" |
|
|
9467 | else |
|
|
9468 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9469 | rxvt_cv_uint32_t="unsigned short" |
|
|
9470 | else |
|
|
9471 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9472 | rxvt_cv_uint32_t="unsigned int" |
|
|
9473 | else |
|
|
9474 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9475 | rxvt_cv_uint32_t="unsigned long" |
|
|
9476 | else |
|
|
9477 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9478 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9479 | else |
|
|
9480 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9481 | fi |
|
|
9482 | fi |
|
|
9483 | fi |
|
|
9484 | fi |
|
|
9485 | fi |
|
|
9486 | fi |
|
|
9487 | |
|
|
9488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9489 | fi |
|
|
9490 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9491 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9492 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9493 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9494 | else |
|
|
9495 | if test x"unsigned" = x; then |
|
|
9496 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9497 | else |
|
|
9498 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9499 | fi |
|
|
9500 | fi |
|
|
9501 | |
|
|
9502 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9503 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9504 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9505 | else |
|
|
9506 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9507 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9508 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9509 | else |
|
|
9510 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9511 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9512 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9513 | else |
|
|
9514 | rxvt_intp_define="#error set intp_t" |
|
|
9515 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9516 | fi |
|
|
9517 | fi |
|
|
9518 | fi |
|
|
9519 | |
|
|
9520 | |
|
|
9521 | |
|
|
9522 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9523 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9524 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9526 | else |
|
|
9527 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9528 | /* confdefs.h. */ |
|
|
9529 | _ACEOF |
|
|
9530 | cat confdefs.h >>conftest.$ac_ext |
|
|
9531 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9532 | /* end confdefs.h. */ |
|
|
9533 | #include <sys/types.h> |
|
|
9534 | #include <signal.h> |
|
|
9535 | |
|
|
9536 | int |
|
|
9537 | main () |
|
|
9538 | { |
|
|
9539 | return *(signal (0, 0)) (0) == 1; |
|
|
9540 | ; |
|
|
9541 | return 0; |
|
|
9542 | } |
|
|
9543 | _ACEOF |
|
|
9544 | rm -f conftest.$ac_objext |
|
|
9545 | if { (ac_try="$ac_compile" |
|
|
9546 | case "(($ac_try" in |
|
|
9547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9548 | *) ac_try_echo=$ac_try;; |
|
|
9549 | esac |
|
|
9550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9551 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9552 | ac_status=$? |
|
|
9553 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9554 | rm -f conftest.er1 |
|
|
9555 | cat conftest.err >&5 |
|
|
9556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9557 | (exit $ac_status); } && { |
|
|
9558 | test -z "$ac_cxx_werror_flag" || |
|
|
9559 | test ! -s conftest.err |
|
|
9560 | } && test -s conftest.$ac_objext; then |
|
|
9561 | ac_cv_type_signal=int |
|
|
9562 | else |
|
|
9563 | echo "$as_me: failed program was:" >&5 |
|
|
9564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9565 | |
|
|
9566 | ac_cv_type_signal=void |
|
|
9567 | fi |
|
|
9568 | |
|
|
9569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9570 | fi |
|
|
9571 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9572 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9573 | |
|
|
9574 | cat >>confdefs.h <<_ACEOF |
|
|
9575 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9576 | _ACEOF |
|
|
9577 | |
|
|
9578 | |
|
|
9579 | |
|
|
9580 | |
|
|
9581 | |
|
|
9582 | |
|
|
9583 | for ac_func in \ |
8227 | for ac_func in unsetenv |
9584 | unsetenv \ |
|
|
9585 | setutent \ |
|
|
9586 | on_exit \ |
|
|
9587 | |
|
|
9588 | do |
8228 | do |
9589 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8229 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9590 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8230 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9591 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8231 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9592 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8232 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9731 | |
8371 | |
9732 | |
8372 | |
9733 | |
8373 | |
9734 | |
8374 | |
9735 | for ac_func in \ |
8375 | for ac_func in \ |
9736 | ttyslot \ |
|
|
9737 | updwtmp \ |
8376 | updwtmp \ |
9738 | updwtmpx \ |
8377 | updwtmpx \ |
|
|
8378 | updlastlogx \ |
9739 | |
8379 | |
9740 | do |
8380 | do |
9741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8381 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9742 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8382 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8383 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
9829 | fi |
8469 | fi |
9830 | done |
8470 | done |
9831 | |
8471 | |
9832 | |
8472 | |
9833 | |
8473 | |
9834 | |
|
|
9835 | |
|
|
9836 | for ac_header in \ |
8474 | for ac_header in lastlog.h |
9837 | utmp.h \ |
|
|
9838 | utmpx.h \ |
|
|
9839 | lastlog.h \ |
|
|
9840 | |
|
|
9841 | do |
8475 | do |
9842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8476 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9843 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8477 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9844 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8478 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
9976 | |
8610 | |
9977 | done |
8611 | done |
9978 | |
8612 | |
9979 | |
8613 | |
9980 | |
8614 | |
9981 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8615 | |
|
|
8616 | for ac_header in utmp.h |
|
|
8617 | do |
|
|
8618 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8619 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9982 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8620 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9983 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9984 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8622 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9986 | fi |
8624 | fi |
|
|
8625 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9987 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8626 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
9988 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8627 | echo "${ECHO_T}$ac_res" >&6; } |
9989 | else |
8628 | else |
9990 | # Is the header compilable? |
8629 | # Is the header compilable? |
9991 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8630 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9992 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8631 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
9993 | cat >conftest.$ac_ext <<_ACEOF |
8632 | cat >conftest.$ac_ext <<_ACEOF |
9994 | /* confdefs.h. */ |
8633 | /* confdefs.h. */ |
9995 | _ACEOF |
8634 | _ACEOF |
9996 | cat confdefs.h >>conftest.$ac_ext |
8635 | cat confdefs.h >>conftest.$ac_ext |
9997 | cat >>conftest.$ac_ext <<_ACEOF |
8636 | cat >>conftest.$ac_ext <<_ACEOF |
9998 | /* end confdefs.h. */ |
8637 | /* end confdefs.h. */ |
9999 | $ac_includes_default |
8638 | $ac_includes_default |
10000 | #include <utmp.h> |
8639 | #include <$ac_header> |
10001 | _ACEOF |
8640 | _ACEOF |
10002 | rm -f conftest.$ac_objext |
8641 | rm -f conftest.$ac_objext |
10003 | if { (ac_try="$ac_compile" |
8642 | if { (ac_try="$ac_compile" |
10004 | case "(($ac_try" in |
8643 | case "(($ac_try" in |
10005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10028 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8667 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10029 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8668 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10030 | |
8669 | |
10031 | # Is the header present? |
8670 | # Is the header present? |
10032 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8671 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10033 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10034 | cat >conftest.$ac_ext <<_ACEOF |
8673 | cat >conftest.$ac_ext <<_ACEOF |
10035 | /* confdefs.h. */ |
8674 | /* confdefs.h. */ |
10036 | _ACEOF |
8675 | _ACEOF |
10037 | cat confdefs.h >>conftest.$ac_ext |
8676 | cat confdefs.h >>conftest.$ac_ext |
10038 | cat >>conftest.$ac_ext <<_ACEOF |
8677 | cat >>conftest.$ac_ext <<_ACEOF |
10039 | /* end confdefs.h. */ |
8678 | /* end confdefs.h. */ |
10040 | #include <utmp.h> |
8679 | #include <$ac_header> |
10041 | _ACEOF |
8680 | _ACEOF |
10042 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8681 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10043 | case "(($ac_try" in |
8682 | case "(($ac_try" in |
10044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10045 | *) ac_try_echo=$ac_try;; |
8684 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10068 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8707 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10069 | |
8708 | |
10070 | # So? What about this header? |
8709 | # So? What about this header? |
10071 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8710 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10072 | yes:no: ) |
8711 | yes:no: ) |
10073 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10074 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10075 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10076 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10077 | ac_header_preproc=yes |
8716 | ac_header_preproc=yes |
10078 | ;; |
8717 | ;; |
10079 | no:yes:* ) |
8718 | no:yes:* ) |
10080 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10081 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10082 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10083 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10084 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10085 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10086 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10087 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10088 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10089 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10090 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10091 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10092 | |
8731 | |
10093 | ;; |
8732 | ;; |
10094 | esac |
8733 | esac |
10095 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8734 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10096 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10097 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8736 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10099 | else |
8738 | else |
10100 | ac_cv_header_utmp_h=$ac_header_preproc |
8739 | eval "$as_ac_Header=\$ac_header_preproc" |
10101 | fi |
8740 | fi |
|
|
8741 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10102 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8742 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10103 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8743 | echo "${ECHO_T}$ac_res" >&6; } |
10104 | |
8744 | |
10105 | fi |
8745 | fi |
10106 | if test $ac_cv_header_utmp_h = yes; then |
8746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8747 | cat >>confdefs.h <<_ACEOF |
|
|
8748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8749 | _ACEOF |
10107 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8750 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10108 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8751 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10109 | if test "${struct_utmp+set}" = set; then |
8752 | if test "${struct_utmp+set}" = set; then |
10110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10111 | else |
8754 | else |
10112 | cat >conftest.$ac_ext <<_ACEOF |
8755 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10279 | |
8922 | |
10280 | fi |
8923 | fi |
10281 | |
8924 | |
10282 | fi |
8925 | fi |
10283 | |
8926 | |
|
|
8927 | done |
10284 | |
8928 | |
10285 | |
8929 | |
10286 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
8930 | |
|
|
8931 | for ac_header in utmpx.h |
|
|
8932 | do |
|
|
8933 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8934 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10287 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
8935 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10288 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
8936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10289 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
8937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10291 | fi |
8939 | fi |
|
|
8940 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10292 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
8941 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10293 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
8942 | echo "${ECHO_T}$ac_res" >&6; } |
10294 | else |
8943 | else |
10295 | # Is the header compilable? |
8944 | # Is the header compilable? |
10296 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
8945 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10297 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
8946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10298 | cat >conftest.$ac_ext <<_ACEOF |
8947 | cat >conftest.$ac_ext <<_ACEOF |
10299 | /* confdefs.h. */ |
8948 | /* confdefs.h. */ |
10300 | _ACEOF |
8949 | _ACEOF |
10301 | cat confdefs.h >>conftest.$ac_ext |
8950 | cat confdefs.h >>conftest.$ac_ext |
10302 | cat >>conftest.$ac_ext <<_ACEOF |
8951 | cat >>conftest.$ac_ext <<_ACEOF |
10303 | /* end confdefs.h. */ |
8952 | /* end confdefs.h. */ |
10304 | $ac_includes_default |
8953 | $ac_includes_default |
10305 | #include <utmpx.h> |
8954 | #include <$ac_header> |
10306 | _ACEOF |
8955 | _ACEOF |
10307 | rm -f conftest.$ac_objext |
8956 | rm -f conftest.$ac_objext |
10308 | if { (ac_try="$ac_compile" |
8957 | if { (ac_try="$ac_compile" |
10309 | case "(($ac_try" in |
8958 | case "(($ac_try" in |
10310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10333 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8982 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10334 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8983 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10335 | |
8984 | |
10336 | # Is the header present? |
8985 | # Is the header present? |
10337 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
8986 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10338 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
8987 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10339 | cat >conftest.$ac_ext <<_ACEOF |
8988 | cat >conftest.$ac_ext <<_ACEOF |
10340 | /* confdefs.h. */ |
8989 | /* confdefs.h. */ |
10341 | _ACEOF |
8990 | _ACEOF |
10342 | cat confdefs.h >>conftest.$ac_ext |
8991 | cat confdefs.h >>conftest.$ac_ext |
10343 | cat >>conftest.$ac_ext <<_ACEOF |
8992 | cat >>conftest.$ac_ext <<_ACEOF |
10344 | /* end confdefs.h. */ |
8993 | /* end confdefs.h. */ |
10345 | #include <utmpx.h> |
8994 | #include <$ac_header> |
10346 | _ACEOF |
8995 | _ACEOF |
10347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8996 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10348 | case "(($ac_try" in |
8997 | case "(($ac_try" in |
10349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10350 | *) ac_try_echo=$ac_try;; |
8999 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10373 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9022 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10374 | |
9023 | |
10375 | # So? What about this header? |
9024 | # So? What about this header? |
10376 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9025 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10377 | yes:no: ) |
9026 | yes:no: ) |
10378 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10379 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10380 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10381 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10382 | ac_header_preproc=yes |
9031 | ac_header_preproc=yes |
10383 | ;; |
9032 | ;; |
10384 | no:yes:* ) |
9033 | no:yes:* ) |
10385 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10386 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10387 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10388 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10389 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10390 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10391 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10392 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10393 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10394 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10395 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10396 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10397 | |
9046 | |
10398 | ;; |
9047 | ;; |
10399 | esac |
9048 | esac |
10400 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9049 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10401 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10402 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10404 | else |
9053 | else |
10405 | ac_cv_header_utmpx_h=$ac_header_preproc |
9054 | eval "$as_ac_Header=\$ac_header_preproc" |
10406 | fi |
9055 | fi |
|
|
9056 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10407 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10408 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9058 | echo "${ECHO_T}$ac_res" >&6; } |
10409 | |
9059 | |
10410 | fi |
9060 | fi |
10411 | if test $ac_cv_header_utmpx_h = yes; then |
9061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9062 | cat >>confdefs.h <<_ACEOF |
|
|
9063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9064 | _ACEOF |
10412 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9065 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10413 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9066 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10414 | if test "${struct_utmpx+set}" = set; then |
9067 | if test "${struct_utmpx+set}" = set; then |
10415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10416 | else |
9069 | else |
10417 | cat >conftest.$ac_ext <<_ACEOF |
9070 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10584 | |
9237 | |
10585 | fi |
9238 | fi |
10586 | |
9239 | |
10587 | fi |
9240 | fi |
10588 | |
9241 | |
|
|
9242 | done |
10589 | |
9243 | |
10590 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9244 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10591 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9245 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10592 | if test "${struct_lastlog+set}" = set; then |
9246 | if test "${struct_lastlog+set}" = set; then |
10593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11164 | |
9818 | |
11165 | cat >>confdefs.h <<_ACEOF |
9819 | cat >>confdefs.h <<_ACEOF |
11166 | #define LASTLOG_FILE "$path_lastlog" |
9820 | #define LASTLOG_FILE "$path_lastlog" |
11167 | _ACEOF |
9821 | _ACEOF |
11168 | |
9822 | |
11169 | if test -d "$path_lastlog"; then |
|
|
11170 | |
|
|
11171 | cat >>confdefs.h <<\_ACEOF |
|
|
11172 | #define LASTLOG_IS_DIR 1 |
|
|
11173 | _ACEOF |
|
|
11174 | |
|
|
11175 | fi |
|
|
11176 | fi |
9823 | fi |
11177 | |
9824 | |
11178 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
9825 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11179 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
9826 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11180 | if test "${path_lastlogx+set}" = set; then |
9827 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11262 | |
9909 | |
11263 | fi |
9910 | fi |
11264 | |
9911 | |
11265 | |
9912 | |
11266 | |
9913 | |
11267 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11268 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11269 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11271 | else |
|
|
11272 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11273 | do |
|
|
11274 | if test -f "$ttys_file" ; then |
|
|
11275 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11276 | break |
|
|
11277 | fi |
|
|
11278 | done |
|
|
11279 | |
9914 | |
11280 | fi |
|
|
11281 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11282 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11283 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11284 | |
|
|
11285 | cat >>confdefs.h <<_ACEOF |
|
|
11286 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11287 | _ACEOF |
|
|
11288 | |
|
|
11289 | fi |
|
|
11290 | |
|
|
11291 | |
|
|
11292 | ac_save_LIBS=$LIBS |
9915 | save_LIBS=$LIBS |
11293 | ac_save_CFLAGS=$CFLAGS |
9916 | save_CFLAGS=$CFLAGS |
11294 | CFLAGS="$CFLAGS $X_CFLAGS" |
9917 | CFLAGS="$CFLAGS $X_CFLAGS" |
11295 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
9918 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11296 | if test x$support_xim = xyes; then |
9919 | if test x$support_xim = xyes; then |
11297 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
9920 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11298 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
9921 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
… | |
… | |
11473 | cat >>confdefs.h <<\_ACEOF |
10096 | cat >>confdefs.h <<\_ACEOF |
11474 | #define HAVE_XSETLOCALE 1 |
10097 | #define HAVE_XSETLOCALE 1 |
11475 | _ACEOF |
10098 | _ACEOF |
11476 | |
10099 | |
11477 | fi |
10100 | fi |
11478 | LIBS=$ac_save_LIBS |
10101 | LIBS=$save_LIBS |
11479 | CFLAGS=$ac_save_CFLAGS |
10102 | CFLAGS=$save_CFLAGS |
11480 | |
10103 | |
11481 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10104 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11482 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10105 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11483 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10106 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12377 | echo "${ECHO_T}no" >&6; } |
11000 | echo "${ECHO_T}no" >&6; } |
12378 | fi |
11001 | fi |
12379 | |
11002 | |
12380 | |
11003 | |
12381 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11004 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12382 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11005 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12383 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11006 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12384 | else |
11007 | else |
12385 | # Extract the first word of "xft-config", so it can be a program name with args. |
11008 | # Extract the first word of "xft-config", so it can be a program name with args. |
12386 | set dummy xft-config; ac_word=$2 |
11009 | set dummy xft-config; ac_word=$2 |
12387 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11010 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12422 | echo "${ECHO_T}no" >&6; } |
11045 | echo "${ECHO_T}no" >&6; } |
12423 | fi |
11046 | fi |
12424 | |
11047 | |
12425 | |
11048 | |
12426 | if test $XFT_CONFIG != no; then |
11049 | if test $XFT_CONFIG != no; then |
12427 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11050 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12428 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11051 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12429 | fi |
11052 | fi |
12430 | fi |
11053 | fi |
12431 | |
11054 | |
|
|
11055 | save_LIBS="$LIBS" |
|
|
11056 | LIBS="$LIBS $X_LIBS" |
12432 | |
11057 | |
12433 | for ac_header in X11/Xft/Xft.h |
11058 | for ac_header in X11/Xft/Xft.h |
12434 | do |
11059 | do |
12435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11060 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12436 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11061 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12569 | support_xft=no |
11194 | support_xft=no |
12570 | fi |
11195 | fi |
12571 | |
11196 | |
12572 | done |
11197 | done |
12573 | |
11198 | |
12574 | |
|
|
12575 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11199 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12576 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11200 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12577 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11201 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12579 | else |
11203 | else |
12580 | ac_check_lib_save_LIBS=$LIBS |
11204 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12632 | LIBS=$ac_check_lib_save_LIBS |
11256 | LIBS=$ac_check_lib_save_LIBS |
12633 | fi |
11257 | fi |
12634 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11258 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12635 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11259 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12636 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11260 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12637 | cat >>confdefs.h <<_ACEOF |
11261 | : |
12638 | #define HAVE_LIBXFT 1 |
|
|
12639 | _ACEOF |
|
|
12640 | |
|
|
12641 | LIBS="-lXft $LIBS" |
|
|
12642 | |
|
|
12643 | else |
11262 | else |
12644 | support_xft=no |
11263 | support_xft=no |
12645 | fi |
11264 | fi |
12646 | |
11265 | |
|
|
11266 | LIBS="$save_LIBS" |
12647 | |
11267 | |
12648 | if test x$support_xft = xyes; then |
11268 | if test x$support_xft = xyes; then |
12649 | |
11269 | |
12650 | cat >>confdefs.h <<\_ACEOF |
11270 | cat >>confdefs.h <<\_ACEOF |
12651 | #define XFT 1 |
11271 | #define XFT 1 |
… | |
… | |
12729 | #define HAVE_AFTERIMAGE 1 |
11349 | #define HAVE_AFTERIMAGE 1 |
12730 | _ACEOF |
11350 | _ACEOF |
12731 | |
11351 | |
12732 | |
11352 | |
12733 | cat >>confdefs.h <<\_ACEOF |
11353 | cat >>confdefs.h <<\_ACEOF |
12734 | #define XPM_BACKGROUND 1 |
11354 | #define BG_IMAGE_FROM_FILE 1 |
12735 | _ACEOF |
11355 | _ACEOF |
12736 | |
11356 | |
12737 | fi |
11357 | fi |
12738 | |
11358 | |
12739 | |
11359 | |
… | |
… | |
13046 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
11666 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
13047 | include_stdint_h="#include <stdint.h>" |
11667 | include_stdint_h="#include <stdint.h>" |
13048 | else |
11668 | else |
13049 | include_stdint_h="/* #include <stdint.h> */" |
11669 | include_stdint_h="/* #include <stdint.h> */" |
13050 | fi |
11670 | fi |
13051 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13052 | include_stdarg_h="#include <cstdarg>" |
|
|
13053 | else |
|
|
13054 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13055 | fi |
|
|
13056 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13057 | include_stdlib_h="#include <cstdlib>" |
|
|
13058 | else |
|
|
13059 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13060 | fi |
|
|
13061 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13062 | include_unistd_h="#include <unistd.h>" |
|
|
13063 | else |
|
|
13064 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13065 | fi |
|
|
13066 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13067 | include_string_h="#include <cstring>" |
|
|
13068 | else |
|
|
13069 | include_string_h="/* #include <cstring> */" |
|
|
13070 | fi |
|
|
13071 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13072 | include_fcntl_h="#include <fcntl.h>" |
|
|
13073 | else |
|
|
13074 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13075 | fi |
|
|
13076 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13077 | include_util_h="#include <util.h>" |
|
|
13078 | else |
|
|
13079 | include_util_h="/* #include <util.h> */" |
|
|
13080 | fi |
|
|
13081 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13082 | include_assert_h="#include <assert.h>" |
|
|
13083 | else |
|
|
13084 | include_assert_h="/* #include <assert.h> */" |
|
|
13085 | fi |
|
|
13086 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
11671 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
13087 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
11672 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
13088 | else |
11673 | else |
13089 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
11674 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
13090 | fi |
11675 | fi |
13091 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13092 | include_sys_select_h="#include <sys/select.h>" |
|
|
13093 | else |
|
|
13094 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13095 | fi |
|
|
13096 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
11676 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
13097 | include_sys_strredir_h="#include <sys/strredir.h>" |
11677 | include_sys_strredir_h="#include <sys/strredir.h>" |
13098 | else |
11678 | else |
13099 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
11679 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
13100 | fi |
|
|
13101 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13102 | include_sys_time_h="#include <sys/time.h>" |
|
|
13103 | else |
|
|
13104 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13105 | fi |
|
|
13106 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13107 | include_time_h="#include <time.h>" |
|
|
13108 | else |
|
|
13109 | include_time_h="/* #include <time.h> */" |
|
|
13110 | fi |
11680 | fi |
13111 | |
11681 | |
13112 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11682 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
13113 | |
11683 | |
13114 | cat >confcache <<\_ACEOF |
11684 | cat >confcache <<\_ACEOF |
… | |
… | |
13775 | host_cpu!$host_cpu$ac_delim |
12345 | host_cpu!$host_cpu$ac_delim |
13776 | host_vendor!$host_vendor$ac_delim |
12346 | host_vendor!$host_vendor$ac_delim |
13777 | host_os!$host_os$ac_delim |
12347 | host_os!$host_os$ac_delim |
13778 | VERSION!$VERSION$ac_delim |
12348 | VERSION!$VERSION$ac_delim |
13779 | DATE!$DATE$ac_delim |
12349 | DATE!$DATE$ac_delim |
13780 | LSMDATE!$LSMDATE$ac_delim |
|
|
13781 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13782 | CC!$CC$ac_delim |
12350 | CC!$CC$ac_delim |
13783 | CFLAGS!$CFLAGS$ac_delim |
12351 | CFLAGS!$CFLAGS$ac_delim |
13784 | LDFLAGS!$LDFLAGS$ac_delim |
12352 | LDFLAGS!$LDFLAGS$ac_delim |
13785 | CPPFLAGS!$CPPFLAGS$ac_delim |
12353 | CPPFLAGS!$CPPFLAGS$ac_delim |
13786 | ac_ct_CC!$ac_ct_CC$ac_delim |
12354 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13794 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12362 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13795 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12363 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13796 | GREP!$GREP$ac_delim |
12364 | GREP!$GREP$ac_delim |
13797 | EGREP!$EGREP$ac_delim |
12365 | EGREP!$EGREP$ac_delim |
13798 | LINKER!$LINKER$ac_delim |
12366 | LINKER!$LINKER$ac_delim |
13799 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13800 | RXVTNAME!$RXVTNAME$ac_delim |
12367 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12368 | CXXCPP!$CXXCPP$ac_delim |
13801 | TIC!$TIC$ac_delim |
12369 | TIC!$TIC$ac_delim |
13802 | XMKMF!$XMKMF$ac_delim |
12370 | XMKMF!$XMKMF$ac_delim |
13803 | CXXCPP!$CXXCPP$ac_delim |
|
|
13804 | X_CFLAGS!$X_CFLAGS$ac_delim |
12371 | X_CFLAGS!$X_CFLAGS$ac_delim |
13805 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12372 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13806 | X_LIBS!$X_LIBS$ac_delim |
12373 | X_LIBS!$X_LIBS$ac_delim |
13807 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12374 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13808 | afterimage_config!$afterimage_config$ac_delim |
12375 | afterimage_config!$afterimage_config$ac_delim |
13809 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
13810 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
13811 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
13812 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
13813 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
13814 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
13815 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12376 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13816 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12377 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13817 | PERL!$PERL$ac_delim |
12378 | PERL!$PERL$ac_delim |
13818 | PERLLIB!$PERLLIB$ac_delim |
12379 | PERLLIB!$PERLLIB$ac_delim |
13819 | PERLFLAGS!$PERLFLAGS$ac_delim |
12380 | PERLFLAGS!$PERLFLAGS$ac_delim |
… | |
… | |
13821 | IF_PERL!$IF_PERL$ac_delim |
12382 | IF_PERL!$IF_PERL$ac_delim |
13822 | PERL_O!$PERL_O$ac_delim |
12383 | PERL_O!$PERL_O$ac_delim |
13823 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12384 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13824 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12385 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13825 | include_stdint_h!$include_stdint_h$ac_delim |
12386 | include_stdint_h!$include_stdint_h$ac_delim |
13826 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
13827 | include_stdlib_h!$include_stdlib_h$ac_delim |
12387 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
13828 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
13829 | include_string_h!$include_string_h$ac_delim |
12388 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
12389 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12390 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13830 | _ACEOF |
12391 | _ACEOF |
13831 | |
12392 | |
13832 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12393 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
13833 | break |
12394 | break |
13834 | elif $ac_last_try; then |
12395 | elif $ac_last_try; then |
13835 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12396 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13836 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12397 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13837 | { (exit 1); exit 1; }; } |
12398 | { (exit 1); exit 1; }; } |
… | |
… | |
13846 | ac_eof=`expr $ac_eof + 1` |
12407 | ac_eof=`expr $ac_eof + 1` |
13847 | fi |
12408 | fi |
13848 | |
12409 | |
13849 | cat >>$CONFIG_STATUS <<_ACEOF |
12410 | cat >>$CONFIG_STATUS <<_ACEOF |
13850 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12411 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13851 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
13852 | _ACEOF |
|
|
13853 | sed ' |
|
|
13854 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
13855 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
13856 | :n |
|
|
13857 | t n |
|
|
13858 | s/'"$ac_delim"'$/,g/; t |
|
|
13859 | s/$/\\/; p |
|
|
13860 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
13861 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
13862 | rm -f conf$$subs.sed |
|
|
13863 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13864 | CEOF$ac_eof |
|
|
13865 | _ACEOF |
|
|
13866 | |
|
|
13867 | |
|
|
13868 | ac_delim='%!_!# ' |
|
|
13869 | for ac_last_try in false false false false false :; do |
|
|
13870 | cat >conf$$subs.sed <<_ACEOF |
|
|
13871 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
13872 | include_util_h!$include_util_h$ac_delim |
|
|
13873 | include_assert_h!$include_assert_h$ac_delim |
|
|
13874 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
13875 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
13876 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
13877 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
13878 | include_time_h!$include_time_h$ac_delim |
|
|
13879 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
13880 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
13881 | _ACEOF |
|
|
13882 | |
|
|
13883 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
13884 | break |
|
|
13885 | elif $ac_last_try; then |
|
|
13886 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
13887 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
13888 | { (exit 1); exit 1; }; } |
|
|
13889 | else |
|
|
13890 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
13891 | fi |
|
|
13892 | done |
|
|
13893 | |
|
|
13894 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
13895 | if test -n "$ac_eof"; then |
|
|
13896 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
13897 | ac_eof=`expr $ac_eof + 1` |
|
|
13898 | fi |
|
|
13899 | |
|
|
13900 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13901 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
13902 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12412 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
13903 | _ACEOF |
12413 | _ACEOF |
13904 | sed ' |
12414 | sed ' |
13905 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12415 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
13906 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12416 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14159 | s&@builddir@&$ac_builddir&;t t |
12669 | s&@builddir@&$ac_builddir&;t t |
14160 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12670 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14161 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12671 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14162 | s&@INSTALL@&$ac_INSTALL&;t t |
12672 | s&@INSTALL@&$ac_INSTALL&;t t |
14163 | $ac_datarootdir_hack |
12673 | $ac_datarootdir_hack |
14164 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12674 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14165 | |
12675 | |
14166 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12676 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14167 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12677 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14168 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12678 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14169 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12679 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |