… | |
… | |
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 |
703 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
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 |
|
|
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 |
|
|
717 | include_sys_select_h |
|
|
718 | include_sys_strredir_h |
|
|
719 | include_sys_time_h |
|
|
720 | include_time_h |
|
|
721 | LIBOBJS |
699 | LIBOBJS |
722 | LTLIBOBJS' |
700 | LTLIBOBJS' |
723 | ac_subst_files='' |
701 | ac_subst_files='' |
724 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
725 | host_alias |
703 | host_alias |
… | |
… | |
731 | CPPFLAGS |
709 | CPPFLAGS |
732 | CXX |
710 | CXX |
733 | CXXFLAGS |
711 | CXXFLAGS |
734 | CCC |
712 | CCC |
735 | CPP |
713 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
738 | |
716 | |
739 | |
717 | |
740 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
741 | ac_init_help= |
719 | ac_init_help= |
742 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1315 | |
1293 | |
1316 | Optional Features: |
1294 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
|
|
1322 | --enable-warnings turn on g++ warnings |
1299 | --enable-warnings turn on g++ warnings |
1323 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1300 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1324 | --enable-combining enable composition of base and combining characters |
1301 | --enable-combining enable composition of base and combining characters |
1325 | --enable-xft enable xft support on systems that have it |
1302 | --enable-xft enable xft support on systems that have it |
1326 | --enable-font-styles enable bold and italic support |
1303 | --enable-font-styles enable bold and italic support |
1327 | --enable-afterimage enable integration with libAfterImage for background images |
1304 | --enable-afterimage enable integration with libAfterImage for background images |
1328 | --enable-transparency enable transparent backgrounds |
1305 | --enable-transparency enable transparent backgrounds |
1329 | --enable-fading enable colors fading when off focus |
1306 | --enable-fading enable colors fading when off focus |
1330 | --enable-rxvt-scroll enable rxvt style scrollbar |
1307 | --enable-rxvt-scroll enable rxvt style scrollbar |
1331 | --enable-next-scroll enable NeXT style scrollbar |
1308 | --enable-next-scroll enable NeXT style scrollbar |
1332 | --enable-xterm-scroll enable Xterm style scrollbar |
1309 | --enable-xterm-scroll enable Xterm style scrollbar |
1333 | --enable-perl enable embedded perl interpreter |
1310 | --enable-perl enable embedded perl interpreter |
1334 | --enable-plain-scroll enable plain style scrollbar |
|
|
1335 | --enable-xim XIM (X Input Method) protocol support |
1311 | --enable-xim XIM (X Input Method) protocol support |
1336 | --disable-backspace-key disable handling of the backspace key |
1312 | --disable-backspace-key disable handling of the backspace key |
1337 | --disable-delete-key disable handling of the delete key |
1313 | --disable-delete-key disable handling of the delete key |
1338 | --disable-resources disable all resource checking |
1314 | --disable-resources disable all resource checking |
1339 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1315 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
… | |
… | |
1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1349 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1374 | you have headers in a nonstandard directory <include dir> |
1350 | you have headers in a nonstandard directory <include dir> |
1375 | CXX C++ compiler command |
1351 | CXX C++ compiler command |
1376 | CXXFLAGS C++ compiler flags |
1352 | CXXFLAGS C++ compiler flags |
1377 | CPP C preprocessor |
1353 | CPP C preprocessor |
|
|
1354 | CXXCPP C++ preprocessor |
1378 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1355 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1379 | CXXCPP C++ preprocessor |
|
|
1380 | |
1356 | |
1381 | Use these variables to override the choices made by `configure' or to help |
1357 | Use these variables to override the choices made by `configure' or to help |
1382 | it to find libraries and programs with nonstandard names/locations. |
1358 | it to find libraries and programs with nonstandard names/locations. |
1383 | |
1359 | |
1384 | _ACEOF |
1360 | _ACEOF |
… | |
… | |
1920 | |
1896 | |
1921 | |
1897 | |
1922 | |
1898 | |
1923 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1899 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1924 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1900 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1901 | |
1925 | echo "" |
1902 | echo "" |
1926 | echo "configuring for rxvt $VERSION" |
1903 | echo "configuring for rxvt $VERSION" |
1927 | echo "" |
1904 | echo "" |
1928 | |
1905 | |
1929 | orig_CXXFLAGS="$CXXFLAGS" |
1906 | orig_CXXFLAGS="$CXXFLAGS" |
1930 | |
|
|
1931 | |
1907 | |
1932 | ac_ext=c |
1908 | ac_ext=c |
1933 | ac_cpp='$CPP $CPPFLAGS' |
1909 | ac_cpp='$CPP $CPPFLAGS' |
1934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3714 | echo "${ECHO_T}no" >&6; } |
3690 | echo "${ECHO_T}no" >&6; } |
3715 | fi |
3691 | fi |
3716 | rm -f conftest* |
3692 | rm -f conftest* |
3717 | |
3693 | |
3718 | |
3694 | |
|
|
3695 | |
|
|
3696 | cat >>confdefs.h <<\_ACEOF |
|
|
3697 | #define _GNU_SOURCE 1 |
|
|
3698 | _ACEOF |
|
|
3699 | |
|
|
3700 | |
3719 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3701 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3720 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3702 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3721 | if test "${ac_cv_search_strerror+set}" = set; then |
3703 | if test "${ac_cv_search_strerror+set}" = set; then |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3723 | else |
3705 | else |
… | |
… | |
3870 | LINKER=$LINKER |
3852 | LINKER=$LINKER |
3871 | |
3853 | |
3872 | |
3854 | |
3873 | if test -z "$orig_CXXFLAGS"; then |
3855 | if test -z "$orig_CXXFLAGS"; then |
3874 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3856 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3875 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3857 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3876 | cat >conftest.$ac_ext <<_ACEOF |
3858 | cat >conftest.$ac_ext <<_ACEOF |
3877 | /* confdefs.h. */ |
3859 | /* confdefs.h. */ |
3878 | _ACEOF |
3860 | _ACEOF |
3879 | cat confdefs.h >>conftest.$ac_ext |
3861 | cat confdefs.h >>conftest.$ac_ext |
3880 | cat >>conftest.$ac_ext <<_ACEOF |
3862 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3918 | CXXFLAGS="-O" |
3900 | CXXFLAGS="-O" |
3919 | fi |
3901 | fi |
3920 | CFLAGS="$CXXFLAGS" |
3902 | CFLAGS="$CXXFLAGS" |
3921 | fi |
3903 | fi |
3922 | |
3904 | |
3923 | |
|
|
3924 | cat >>confdefs.h <<\_ACEOF |
|
|
3925 | #define _GNU_SOURCE 1 |
|
|
3926 | _ACEOF |
|
|
3927 | |
|
|
3928 | |
|
|
3929 | case $host in |
3905 | case $host in |
3930 | *-*-solaris* ) |
3906 | *-*-solaris* ) |
3931 | |
3907 | |
3932 | cat >>confdefs.h <<\_ACEOF |
3908 | cat >>confdefs.h <<\_ACEOF |
3933 | #define _XOPEN_SOURCE 500 |
3909 | #define _XOPEN_SOURCE 500 |
3934 | _ACEOF |
3910 | _ACEOF |
3935 | |
3911 | |
3936 | ;; |
3912 | ;; |
3937 | esac |
3913 | esac |
3938 | |
|
|
3939 | |
3914 | |
3940 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3915 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3941 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3916 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3942 | if test "${ac_cv_func_setlocale+set}" = set; then |
3917 | if test "${ac_cv_func_setlocale+set}" = set; then |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4390 | fi |
4365 | fi |
4391 | |
4366 | |
4392 | fi |
4367 | fi |
4393 | |
4368 | |
4394 | |
4369 | |
4395 | |
|
|
4396 | support_frills=yes |
4370 | support_frills=yes |
4397 | support_inheritpixmap=yes |
4371 | support_inheritpixmap=yes |
4398 | support_fading=yes |
4372 | support_fading=yes |
4399 | support_keepscrolling=yes |
4373 | support_keepscrolling=yes |
4400 | support_selectionscrolling=yes |
4374 | support_selectionscrolling=yes |
… | |
… | |
4403 | support_text_blink=yes |
4377 | support_text_blink=yes |
4404 | support_pointer_blank=yes |
4378 | support_pointer_blank=yes |
4405 | support_scroll_rxvt=yes |
4379 | support_scroll_rxvt=yes |
4406 | support_scroll_next=yes |
4380 | support_scroll_next=yes |
4407 | support_scroll_xterm=yes |
4381 | support_scroll_xterm=yes |
4408 | support_scroll_plain=yes |
|
|
4409 | support_xim=yes |
4382 | support_xim=yes |
4410 | support_afterimage=yes |
4383 | support_afterimage=yes |
4411 | support_afterstep=yes |
4384 | support_afterstep=yes |
4412 | support_xft=yes |
4385 | support_xft=yes |
4413 | support_unicode3=no |
4386 | support_unicode3=no |
… | |
… | |
4415 | support_8bitctrls=no |
4388 | support_8bitctrls=no |
4416 | support_iso14755=yes |
4389 | support_iso14755=yes |
4417 | support_styles=yes |
4390 | support_styles=yes |
4418 | support_perl=yes |
4391 | support_perl=yes |
4419 | codesets=all |
4392 | codesets=all |
4420 | |
|
|
4421 | |
|
|
4422 | if test "x$enable_shared" = xyes; then |
|
|
4423 | |
|
|
4424 | cat >>confdefs.h <<\_ACEOF |
|
|
4425 | #define LIBRXVT 1 |
|
|
4426 | _ACEOF |
|
|
4427 | |
|
|
4428 | INSTALL_LIBRXVT=yes |
|
|
4429 | fi |
|
|
4430 | |
4393 | |
4431 | |
4394 | |
4432 | # Check whether --enable-everything was given. |
4395 | # Check whether --enable-everything was given. |
4433 | if test "${enable_everything+set}" = set; then |
4396 | if test "${enable_everything+set}" = set; then |
4434 | enableval=$enable_everything; |
4397 | enableval=$enable_everything; |
… | |
… | |
4444 | support_text_blink=no |
4407 | support_text_blink=no |
4445 | support_pointer_blank=no |
4408 | support_pointer_blank=no |
4446 | support_scroll_rxvt=no |
4409 | support_scroll_rxvt=no |
4447 | support_scroll_next=no |
4410 | support_scroll_next=no |
4448 | support_scroll_xterm=no |
4411 | support_scroll_xterm=no |
4449 | support_scroll_plain=no |
|
|
4450 | support_utmp=no |
4412 | support_utmp=no |
4451 | support_wtmp=no |
4413 | support_wtmp=no |
4452 | support_xim=no |
4414 | support_xim=no |
4453 | support_afterimage=no |
4415 | support_afterimage=no |
4454 | support_afterstep=no |
4416 | support_afterstep=no |
… | |
… | |
4473 | support_text_blink=yes |
4435 | support_text_blink=yes |
4474 | support_pointer_blank=yes |
4436 | support_pointer_blank=yes |
4475 | support_scroll_rxvt=yes |
4437 | support_scroll_rxvt=yes |
4476 | support_scroll_next=yes |
4438 | support_scroll_next=yes |
4477 | support_scroll_xterm=yes |
4439 | support_scroll_xterm=yes |
4478 | support_scroll_plain=yes |
|
|
4479 | support_utmp=yes |
4440 | support_utmp=yes |
4480 | support_wtmp=yes |
4441 | support_wtmp=yes |
4481 | support_xim=yes |
4442 | support_xim=yes |
4482 | support_afterimage=yes |
4443 | support_afterimage=yes |
4483 | support_afterstep=yes |
4444 | support_afterstep=yes |
… | |
… | |
4648 | support_perl=$enableval |
4609 | support_perl=$enableval |
4649 | fi |
4610 | fi |
4650 | fi |
4611 | fi |
4651 | |
4612 | |
4652 | |
4613 | |
4653 | # Check whether --enable-plain-scroll was given. |
|
|
4654 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4655 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4656 | support_scroll_plain=$enableval |
|
|
4657 | fi |
|
|
4658 | fi |
|
|
4659 | |
|
|
4660 | |
|
|
4661 | |
4614 | |
4662 | # Check whether --with-codesets was given. |
4615 | # Check whether --with-codesets was given. |
4663 | if test "${with_codesets+set}" = set; then |
4616 | if test "${with_codesets+set}" = set; then |
4664 | withval=$with_codesets; codesets="$withval" |
4617 | withval=$with_codesets; codesets="$withval" |
4665 | fi |
4618 | fi |
… | |
… | |
4888 | #define RXVT_TERMINFO "$withval" |
4841 | #define RXVT_TERMINFO "$withval" |
4889 | _ACEOF |
4842 | _ACEOF |
4890 | terminfo="$withval" |
4843 | terminfo="$withval" |
4891 | fi |
4844 | fi |
4892 | fi |
4845 | fi |
|
|
4846 | |
|
|
4847 | |
|
|
4848 | |
|
|
4849 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4850 | |
|
|
4851 | ac_ext=cpp |
|
|
4852 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4853 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4854 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4855 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4856 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4857 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4858 | if test -z "$CXXCPP"; then |
|
|
4859 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4861 | else |
|
|
4862 | # Double quotes because CXXCPP needs to be expanded |
|
|
4863 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4864 | do |
|
|
4865 | ac_preproc_ok=false |
|
|
4866 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4867 | do |
|
|
4868 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4869 | # with a fresh cross-compiler works. |
|
|
4870 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4871 | # <limits.h> exists even on freestanding compilers. |
|
|
4872 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4873 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4874 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4875 | /* confdefs.h. */ |
|
|
4876 | _ACEOF |
|
|
4877 | cat confdefs.h >>conftest.$ac_ext |
|
|
4878 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4879 | /* end confdefs.h. */ |
|
|
4880 | #ifdef __STDC__ |
|
|
4881 | # include <limits.h> |
|
|
4882 | #else |
|
|
4883 | # include <assert.h> |
|
|
4884 | #endif |
|
|
4885 | Syntax error |
|
|
4886 | _ACEOF |
|
|
4887 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4888 | case "(($ac_try" in |
|
|
4889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4890 | *) ac_try_echo=$ac_try;; |
|
|
4891 | esac |
|
|
4892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4893 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4894 | ac_status=$? |
|
|
4895 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4896 | rm -f conftest.er1 |
|
|
4897 | cat conftest.err >&5 |
|
|
4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4899 | (exit $ac_status); } >/dev/null && { |
|
|
4900 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4901 | test ! -s conftest.err |
|
|
4902 | }; then |
|
|
4903 | : |
|
|
4904 | else |
|
|
4905 | echo "$as_me: failed program was:" >&5 |
|
|
4906 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4907 | |
|
|
4908 | # Broken: fails on valid input. |
|
|
4909 | continue |
|
|
4910 | fi |
|
|
4911 | |
|
|
4912 | rm -f conftest.err conftest.$ac_ext |
|
|
4913 | |
|
|
4914 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4915 | # can be detected and how. |
|
|
4916 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4917 | /* confdefs.h. */ |
|
|
4918 | _ACEOF |
|
|
4919 | cat confdefs.h >>conftest.$ac_ext |
|
|
4920 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4921 | /* end confdefs.h. */ |
|
|
4922 | #include <ac_nonexistent.h> |
|
|
4923 | _ACEOF |
|
|
4924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4925 | case "(($ac_try" in |
|
|
4926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4927 | *) ac_try_echo=$ac_try;; |
|
|
4928 | esac |
|
|
4929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4931 | ac_status=$? |
|
|
4932 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4933 | rm -f conftest.er1 |
|
|
4934 | cat conftest.err >&5 |
|
|
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4936 | (exit $ac_status); } >/dev/null && { |
|
|
4937 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4938 | test ! -s conftest.err |
|
|
4939 | }; then |
|
|
4940 | # Broken: success on invalid input. |
|
|
4941 | continue |
|
|
4942 | else |
|
|
4943 | echo "$as_me: failed program was:" >&5 |
|
|
4944 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4945 | |
|
|
4946 | # Passes both tests. |
|
|
4947 | ac_preproc_ok=: |
|
|
4948 | break |
|
|
4949 | fi |
|
|
4950 | |
|
|
4951 | rm -f conftest.err conftest.$ac_ext |
|
|
4952 | |
|
|
4953 | done |
|
|
4954 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4955 | rm -f conftest.err conftest.$ac_ext |
|
|
4956 | if $ac_preproc_ok; then |
|
|
4957 | break |
|
|
4958 | fi |
|
|
4959 | |
|
|
4960 | done |
|
|
4961 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4962 | |
|
|
4963 | fi |
|
|
4964 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4965 | else |
|
|
4966 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4967 | fi |
|
|
4968 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4969 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4970 | ac_preproc_ok=false |
|
|
4971 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4972 | do |
|
|
4973 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4974 | # with a fresh cross-compiler works. |
|
|
4975 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4976 | # <limits.h> exists even on freestanding compilers. |
|
|
4977 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4978 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4979 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4980 | /* confdefs.h. */ |
|
|
4981 | _ACEOF |
|
|
4982 | cat confdefs.h >>conftest.$ac_ext |
|
|
4983 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4984 | /* end confdefs.h. */ |
|
|
4985 | #ifdef __STDC__ |
|
|
4986 | # include <limits.h> |
|
|
4987 | #else |
|
|
4988 | # include <assert.h> |
|
|
4989 | #endif |
|
|
4990 | Syntax error |
|
|
4991 | _ACEOF |
|
|
4992 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4993 | case "(($ac_try" in |
|
|
4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4995 | *) ac_try_echo=$ac_try;; |
|
|
4996 | esac |
|
|
4997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4999 | ac_status=$? |
|
|
5000 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5001 | rm -f conftest.er1 |
|
|
5002 | cat conftest.err >&5 |
|
|
5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5004 | (exit $ac_status); } >/dev/null && { |
|
|
5005 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5006 | test ! -s conftest.err |
|
|
5007 | }; then |
|
|
5008 | : |
|
|
5009 | else |
|
|
5010 | echo "$as_me: failed program was:" >&5 |
|
|
5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5012 | |
|
|
5013 | # Broken: fails on valid input. |
|
|
5014 | continue |
|
|
5015 | fi |
|
|
5016 | |
|
|
5017 | rm -f conftest.err conftest.$ac_ext |
|
|
5018 | |
|
|
5019 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5020 | # can be detected and how. |
|
|
5021 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5022 | /* confdefs.h. */ |
|
|
5023 | _ACEOF |
|
|
5024 | cat confdefs.h >>conftest.$ac_ext |
|
|
5025 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5026 | /* end confdefs.h. */ |
|
|
5027 | #include <ac_nonexistent.h> |
|
|
5028 | _ACEOF |
|
|
5029 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5030 | case "(($ac_try" in |
|
|
5031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5032 | *) ac_try_echo=$ac_try;; |
|
|
5033 | esac |
|
|
5034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5036 | ac_status=$? |
|
|
5037 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5038 | rm -f conftest.er1 |
|
|
5039 | cat conftest.err >&5 |
|
|
5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5041 | (exit $ac_status); } >/dev/null && { |
|
|
5042 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5043 | test ! -s conftest.err |
|
|
5044 | }; then |
|
|
5045 | # Broken: success on invalid input. |
|
|
5046 | continue |
|
|
5047 | else |
|
|
5048 | echo "$as_me: failed program was:" >&5 |
|
|
5049 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5050 | |
|
|
5051 | # Passes both tests. |
|
|
5052 | ac_preproc_ok=: |
|
|
5053 | break |
|
|
5054 | fi |
|
|
5055 | |
|
|
5056 | rm -f conftest.err conftest.$ac_ext |
|
|
5057 | |
|
|
5058 | done |
|
|
5059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5060 | rm -f conftest.err conftest.$ac_ext |
|
|
5061 | if $ac_preproc_ok; then |
|
|
5062 | : |
|
|
5063 | else |
|
|
5064 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5065 | See \`config.log' for more details." >&5 |
|
|
5066 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5067 | See \`config.log' for more details." >&2;} |
|
|
5068 | { (exit 1); exit 1; }; } |
|
|
5069 | fi |
|
|
5070 | |
|
|
5071 | ac_ext=cpp |
|
|
5072 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5073 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5074 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5075 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5076 | |
|
|
5077 | |
|
|
5078 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5079 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5080 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5082 | else |
|
|
5083 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5084 | /* confdefs.h. */ |
|
|
5085 | _ACEOF |
|
|
5086 | cat confdefs.h >>conftest.$ac_ext |
|
|
5087 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5088 | /* end confdefs.h. */ |
|
|
5089 | #include <stdlib.h> |
|
|
5090 | #include <stdarg.h> |
|
|
5091 | #include <string.h> |
|
|
5092 | #include <float.h> |
|
|
5093 | |
|
|
5094 | int |
|
|
5095 | main () |
|
|
5096 | { |
|
|
5097 | |
|
|
5098 | ; |
|
|
5099 | return 0; |
|
|
5100 | } |
|
|
5101 | _ACEOF |
|
|
5102 | rm -f conftest.$ac_objext |
|
|
5103 | if { (ac_try="$ac_compile" |
|
|
5104 | case "(($ac_try" in |
|
|
5105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5106 | *) ac_try_echo=$ac_try;; |
|
|
5107 | esac |
|
|
5108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5109 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5110 | ac_status=$? |
|
|
5111 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5112 | rm -f conftest.er1 |
|
|
5113 | cat conftest.err >&5 |
|
|
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5115 | (exit $ac_status); } && { |
|
|
5116 | test -z "$ac_cxx_werror_flag" || |
|
|
5117 | test ! -s conftest.err |
|
|
5118 | } && test -s conftest.$ac_objext; then |
|
|
5119 | ac_cv_header_stdc=yes |
|
|
5120 | else |
|
|
5121 | echo "$as_me: failed program was:" >&5 |
|
|
5122 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5123 | |
|
|
5124 | ac_cv_header_stdc=no |
|
|
5125 | fi |
|
|
5126 | |
|
|
5127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5128 | |
|
|
5129 | if test $ac_cv_header_stdc = yes; then |
|
|
5130 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5131 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5132 | /* confdefs.h. */ |
|
|
5133 | _ACEOF |
|
|
5134 | cat confdefs.h >>conftest.$ac_ext |
|
|
5135 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5136 | /* end confdefs.h. */ |
|
|
5137 | #include <string.h> |
|
|
5138 | |
|
|
5139 | _ACEOF |
|
|
5140 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5141 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5142 | : |
|
|
5143 | else |
|
|
5144 | ac_cv_header_stdc=no |
|
|
5145 | fi |
|
|
5146 | rm -f conftest* |
|
|
5147 | |
|
|
5148 | fi |
|
|
5149 | |
|
|
5150 | if test $ac_cv_header_stdc = yes; then |
|
|
5151 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5152 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5153 | /* confdefs.h. */ |
|
|
5154 | _ACEOF |
|
|
5155 | cat confdefs.h >>conftest.$ac_ext |
|
|
5156 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5157 | /* end confdefs.h. */ |
|
|
5158 | #include <stdlib.h> |
|
|
5159 | |
|
|
5160 | _ACEOF |
|
|
5161 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5162 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5163 | : |
|
|
5164 | else |
|
|
5165 | ac_cv_header_stdc=no |
|
|
5166 | fi |
|
|
5167 | rm -f conftest* |
|
|
5168 | |
|
|
5169 | fi |
|
|
5170 | |
|
|
5171 | if test $ac_cv_header_stdc = yes; then |
|
|
5172 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5173 | if test "$cross_compiling" = yes; then |
|
|
5174 | : |
|
|
5175 | else |
|
|
5176 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5177 | /* confdefs.h. */ |
|
|
5178 | _ACEOF |
|
|
5179 | cat confdefs.h >>conftest.$ac_ext |
|
|
5180 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5181 | /* end confdefs.h. */ |
|
|
5182 | #include <ctype.h> |
|
|
5183 | #include <stdlib.h> |
|
|
5184 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5185 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5186 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5187 | #else |
|
|
5188 | # define ISLOWER(c) \ |
|
|
5189 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5190 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5191 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5192 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5193 | #endif |
|
|
5194 | |
|
|
5195 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5196 | int |
|
|
5197 | main () |
|
|
5198 | { |
|
|
5199 | int i; |
|
|
5200 | for (i = 0; i < 256; i++) |
|
|
5201 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5202 | || toupper (i) != TOUPPER (i)) |
|
|
5203 | return 2; |
|
|
5204 | return 0; |
|
|
5205 | } |
|
|
5206 | _ACEOF |
|
|
5207 | rm -f conftest$ac_exeext |
|
|
5208 | if { (ac_try="$ac_link" |
|
|
5209 | case "(($ac_try" in |
|
|
5210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5211 | *) ac_try_echo=$ac_try;; |
|
|
5212 | esac |
|
|
5213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5214 | (eval "$ac_link") 2>&5 |
|
|
5215 | ac_status=$? |
|
|
5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5218 | { (case "(($ac_try" in |
|
|
5219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5220 | *) ac_try_echo=$ac_try;; |
|
|
5221 | esac |
|
|
5222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5223 | (eval "$ac_try") 2>&5 |
|
|
5224 | ac_status=$? |
|
|
5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5226 | (exit $ac_status); }; }; then |
|
|
5227 | : |
|
|
5228 | else |
|
|
5229 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5230 | echo "$as_me: failed program was:" >&5 |
|
|
5231 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5232 | |
|
|
5233 | ( exit $ac_status ) |
|
|
5234 | ac_cv_header_stdc=no |
|
|
5235 | fi |
|
|
5236 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5237 | fi |
|
|
5238 | |
|
|
5239 | |
|
|
5240 | fi |
|
|
5241 | fi |
|
|
5242 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5243 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5244 | if test $ac_cv_header_stdc = yes; then |
|
|
5245 | |
|
|
5246 | cat >>confdefs.h <<\_ACEOF |
|
|
5247 | #define STDC_HEADERS 1 |
|
|
5248 | _ACEOF |
|
|
5249 | |
|
|
5250 | fi |
|
|
5251 | |
|
|
5252 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5253 | |
|
|
5254 | |
|
|
5255 | |
|
|
5256 | |
|
|
5257 | |
|
|
5258 | |
|
|
5259 | |
|
|
5260 | |
|
|
5261 | |
|
|
5262 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5263 | inttypes.h stdint.h unistd.h |
|
|
5264 | do |
|
|
5265 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5266 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5270 | else |
|
|
5271 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5272 | /* confdefs.h. */ |
|
|
5273 | _ACEOF |
|
|
5274 | cat confdefs.h >>conftest.$ac_ext |
|
|
5275 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5276 | /* end confdefs.h. */ |
|
|
5277 | $ac_includes_default |
|
|
5278 | |
|
|
5279 | #include <$ac_header> |
|
|
5280 | _ACEOF |
|
|
5281 | rm -f conftest.$ac_objext |
|
|
5282 | if { (ac_try="$ac_compile" |
|
|
5283 | case "(($ac_try" in |
|
|
5284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5285 | *) ac_try_echo=$ac_try;; |
|
|
5286 | esac |
|
|
5287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5288 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5289 | ac_status=$? |
|
|
5290 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5291 | rm -f conftest.er1 |
|
|
5292 | cat conftest.err >&5 |
|
|
5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5294 | (exit $ac_status); } && { |
|
|
5295 | test -z "$ac_cxx_werror_flag" || |
|
|
5296 | test ! -s conftest.err |
|
|
5297 | } && test -s conftest.$ac_objext; then |
|
|
5298 | eval "$as_ac_Header=yes" |
|
|
5299 | else |
|
|
5300 | echo "$as_me: failed program was:" >&5 |
|
|
5301 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5302 | |
|
|
5303 | eval "$as_ac_Header=no" |
|
|
5304 | fi |
|
|
5305 | |
|
|
5306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5307 | fi |
|
|
5308 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5310 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5311 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5312 | cat >>confdefs.h <<_ACEOF |
|
|
5313 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5314 | _ACEOF |
|
|
5315 | |
|
|
5316 | fi |
|
|
5317 | |
|
|
5318 | done |
|
|
5319 | |
|
|
5320 | |
|
|
5321 | |
|
|
5322 | |
|
|
5323 | |
|
|
5324 | |
|
|
5325 | |
|
|
5326 | |
|
|
5327 | |
|
|
5328 | |
|
|
5329 | |
|
|
5330 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
|
|
5331 | do |
|
|
5332 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5333 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5334 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5335 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5336 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5338 | fi |
|
|
5339 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5340 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5341 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5342 | else |
|
|
5343 | # Is the header compilable? |
|
|
5344 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5345 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5346 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5347 | /* confdefs.h. */ |
|
|
5348 | _ACEOF |
|
|
5349 | cat confdefs.h >>conftest.$ac_ext |
|
|
5350 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5351 | /* end confdefs.h. */ |
|
|
5352 | $ac_includes_default |
|
|
5353 | #include <$ac_header> |
|
|
5354 | _ACEOF |
|
|
5355 | rm -f conftest.$ac_objext |
|
|
5356 | if { (ac_try="$ac_compile" |
|
|
5357 | case "(($ac_try" in |
|
|
5358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5359 | *) ac_try_echo=$ac_try;; |
|
|
5360 | esac |
|
|
5361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5362 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5363 | ac_status=$? |
|
|
5364 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5365 | rm -f conftest.er1 |
|
|
5366 | cat conftest.err >&5 |
|
|
5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5368 | (exit $ac_status); } && { |
|
|
5369 | test -z "$ac_cxx_werror_flag" || |
|
|
5370 | test ! -s conftest.err |
|
|
5371 | } && test -s conftest.$ac_objext; then |
|
|
5372 | ac_header_compiler=yes |
|
|
5373 | else |
|
|
5374 | echo "$as_me: failed program was:" >&5 |
|
|
5375 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5376 | |
|
|
5377 | ac_header_compiler=no |
|
|
5378 | fi |
|
|
5379 | |
|
|
5380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5381 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5382 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5383 | |
|
|
5384 | # Is the header present? |
|
|
5385 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5386 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5387 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5388 | /* confdefs.h. */ |
|
|
5389 | _ACEOF |
|
|
5390 | cat confdefs.h >>conftest.$ac_ext |
|
|
5391 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5392 | /* end confdefs.h. */ |
|
|
5393 | #include <$ac_header> |
|
|
5394 | _ACEOF |
|
|
5395 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5396 | case "(($ac_try" in |
|
|
5397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5398 | *) ac_try_echo=$ac_try;; |
|
|
5399 | esac |
|
|
5400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5401 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5402 | ac_status=$? |
|
|
5403 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5404 | rm -f conftest.er1 |
|
|
5405 | cat conftest.err >&5 |
|
|
5406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5407 | (exit $ac_status); } >/dev/null && { |
|
|
5408 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5409 | test ! -s conftest.err |
|
|
5410 | }; then |
|
|
5411 | ac_header_preproc=yes |
|
|
5412 | else |
|
|
5413 | echo "$as_me: failed program was:" >&5 |
|
|
5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5415 | |
|
|
5416 | ac_header_preproc=no |
|
|
5417 | fi |
|
|
5418 | |
|
|
5419 | rm -f conftest.err conftest.$ac_ext |
|
|
5420 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5421 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5422 | |
|
|
5423 | # So? What about this header? |
|
|
5424 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5425 | yes:no: ) |
|
|
5426 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5427 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5429 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5430 | ac_header_preproc=yes |
|
|
5431 | ;; |
|
|
5432 | no:yes:* ) |
|
|
5433 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5434 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5435 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5436 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5437 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5438 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5439 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5440 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5442 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5444 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5445 | |
|
|
5446 | ;; |
|
|
5447 | esac |
|
|
5448 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5450 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5452 | else |
|
|
5453 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5454 | fi |
|
|
5455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5457 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5458 | |
|
|
5459 | fi |
|
|
5460 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5461 | cat >>confdefs.h <<_ACEOF |
|
|
5462 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5463 | _ACEOF |
|
|
5464 | |
|
|
5465 | fi |
|
|
5466 | |
|
|
5467 | done |
|
|
5468 | |
|
|
5469 | |
|
|
5470 | |
|
|
5471 | |
|
|
5472 | |
|
|
5473 | |
|
|
5474 | |
|
|
5475 | |
|
|
5476 | |
|
|
5477 | |
|
|
5478 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
|
|
5479 | do |
|
|
5480 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5481 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5482 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5483 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5485 | else |
|
|
5486 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5487 | /* confdefs.h. */ |
|
|
5488 | _ACEOF |
|
|
5489 | cat confdefs.h >>conftest.$ac_ext |
|
|
5490 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5491 | /* end confdefs.h. */ |
|
|
5492 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5494 | #define $ac_func innocuous_$ac_func |
|
|
5495 | |
|
|
5496 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5497 | which can conflict with char $ac_func (); below. |
|
|
5498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5499 | <limits.h> exists even on freestanding compilers. */ |
|
|
5500 | |
|
|
5501 | #ifdef __STDC__ |
|
|
5502 | # include <limits.h> |
|
|
5503 | #else |
|
|
5504 | # include <assert.h> |
|
|
5505 | #endif |
|
|
5506 | |
|
|
5507 | #undef $ac_func |
|
|
5508 | |
|
|
5509 | /* Override any GCC internal prototype to avoid an error. |
|
|
5510 | Use char because int might match the return type of a GCC |
|
|
5511 | builtin and then its argument prototype would still apply. */ |
|
|
5512 | #ifdef __cplusplus |
|
|
5513 | extern "C" |
|
|
5514 | #endif |
|
|
5515 | char $ac_func (); |
|
|
5516 | /* The GNU C library defines this for functions which it implements |
|
|
5517 | to always fail with ENOSYS. Some functions are actually named |
|
|
5518 | something starting with __ and the normal name is an alias. */ |
|
|
5519 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5520 | choke me |
|
|
5521 | #endif |
|
|
5522 | |
|
|
5523 | int |
|
|
5524 | main () |
|
|
5525 | { |
|
|
5526 | return $ac_func (); |
|
|
5527 | ; |
|
|
5528 | return 0; |
|
|
5529 | } |
|
|
5530 | _ACEOF |
|
|
5531 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5532 | if { (ac_try="$ac_link" |
|
|
5533 | case "(($ac_try" in |
|
|
5534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5535 | *) ac_try_echo=$ac_try;; |
|
|
5536 | esac |
|
|
5537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5538 | (eval "$ac_link") 2>conftest.er1 |
|
|
5539 | ac_status=$? |
|
|
5540 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5541 | rm -f conftest.er1 |
|
|
5542 | cat conftest.err >&5 |
|
|
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5544 | (exit $ac_status); } && { |
|
|
5545 | test -z "$ac_cxx_werror_flag" || |
|
|
5546 | test ! -s conftest.err |
|
|
5547 | } && test -s conftest$ac_exeext && |
|
|
5548 | $as_test_x conftest$ac_exeext; then |
|
|
5549 | eval "$as_ac_var=yes" |
|
|
5550 | else |
|
|
5551 | echo "$as_me: failed program was:" >&5 |
|
|
5552 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5553 | |
|
|
5554 | eval "$as_ac_var=no" |
|
|
5555 | fi |
|
|
5556 | |
|
|
5557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5558 | conftest$ac_exeext conftest.$ac_ext |
|
|
5559 | fi |
|
|
5560 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5561 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5562 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5563 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5564 | cat >>confdefs.h <<_ACEOF |
|
|
5565 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5566 | _ACEOF |
|
|
5567 | |
|
|
5568 | fi |
|
|
5569 | done |
|
|
5570 | |
|
|
5571 | |
|
|
5572 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5573 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5574 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5576 | else |
|
|
5577 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5578 | /* confdefs.h. */ |
|
|
5579 | _ACEOF |
|
|
5580 | cat confdefs.h >>conftest.$ac_ext |
|
|
5581 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5582 | /* end confdefs.h. */ |
|
|
5583 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5584 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5585 | #define clock_gettime innocuous_clock_gettime |
|
|
5586 | |
|
|
5587 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5588 | which can conflict with char clock_gettime (); below. |
|
|
5589 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5590 | <limits.h> exists even on freestanding compilers. */ |
|
|
5591 | |
|
|
5592 | #ifdef __STDC__ |
|
|
5593 | # include <limits.h> |
|
|
5594 | #else |
|
|
5595 | # include <assert.h> |
|
|
5596 | #endif |
|
|
5597 | |
|
|
5598 | #undef clock_gettime |
|
|
5599 | |
|
|
5600 | /* Override any GCC internal prototype to avoid an error. |
|
|
5601 | Use char because int might match the return type of a GCC |
|
|
5602 | builtin and then its argument prototype would still apply. */ |
|
|
5603 | #ifdef __cplusplus |
|
|
5604 | extern "C" |
|
|
5605 | #endif |
|
|
5606 | char clock_gettime (); |
|
|
5607 | /* The GNU C library defines this for functions which it implements |
|
|
5608 | to always fail with ENOSYS. Some functions are actually named |
|
|
5609 | something starting with __ and the normal name is an alias. */ |
|
|
5610 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5611 | choke me |
|
|
5612 | #endif |
|
|
5613 | |
|
|
5614 | int |
|
|
5615 | main () |
|
|
5616 | { |
|
|
5617 | return clock_gettime (); |
|
|
5618 | ; |
|
|
5619 | return 0; |
|
|
5620 | } |
|
|
5621 | _ACEOF |
|
|
5622 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5623 | if { (ac_try="$ac_link" |
|
|
5624 | case "(($ac_try" in |
|
|
5625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5626 | *) ac_try_echo=$ac_try;; |
|
|
5627 | esac |
|
|
5628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5629 | (eval "$ac_link") 2>conftest.er1 |
|
|
5630 | ac_status=$? |
|
|
5631 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5632 | rm -f conftest.er1 |
|
|
5633 | cat conftest.err >&5 |
|
|
5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5635 | (exit $ac_status); } && { |
|
|
5636 | test -z "$ac_cxx_werror_flag" || |
|
|
5637 | test ! -s conftest.err |
|
|
5638 | } && test -s conftest$ac_exeext && |
|
|
5639 | $as_test_x conftest$ac_exeext; then |
|
|
5640 | ac_cv_func_clock_gettime=yes |
|
|
5641 | else |
|
|
5642 | echo "$as_me: failed program was:" >&5 |
|
|
5643 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5644 | |
|
|
5645 | ac_cv_func_clock_gettime=no |
|
|
5646 | fi |
|
|
5647 | |
|
|
5648 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5649 | conftest$ac_exeext conftest.$ac_ext |
|
|
5650 | fi |
|
|
5651 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5652 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5653 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5654 | : |
|
|
5655 | else |
|
|
5656 | |
|
|
5657 | if test $(uname) = Linux; then |
|
|
5658 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5659 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5660 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5661 | /* confdefs.h. */ |
|
|
5662 | _ACEOF |
|
|
5663 | cat confdefs.h >>conftest.$ac_ext |
|
|
5664 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5665 | /* end confdefs.h. */ |
|
|
5666 | #include <syscall.h> |
|
|
5667 | #include <time.h> |
|
|
5668 | int |
|
|
5669 | main () |
|
|
5670 | { |
|
|
5671 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5672 | ; |
|
|
5673 | return 0; |
|
|
5674 | } |
|
|
5675 | _ACEOF |
|
|
5676 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5677 | if { (ac_try="$ac_link" |
|
|
5678 | case "(($ac_try" in |
|
|
5679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5680 | *) ac_try_echo=$ac_try;; |
|
|
5681 | esac |
|
|
5682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5683 | (eval "$ac_link") 2>conftest.er1 |
|
|
5684 | ac_status=$? |
|
|
5685 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5686 | rm -f conftest.er1 |
|
|
5687 | cat conftest.err >&5 |
|
|
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5689 | (exit $ac_status); } && { |
|
|
5690 | test -z "$ac_cxx_werror_flag" || |
|
|
5691 | test ! -s conftest.err |
|
|
5692 | } && test -s conftest$ac_exeext && |
|
|
5693 | $as_test_x conftest$ac_exeext; then |
|
|
5694 | ac_have_clock_syscall=1 |
|
|
5695 | |
|
|
5696 | cat >>confdefs.h <<\_ACEOF |
|
|
5697 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5698 | _ACEOF |
|
|
5699 | |
|
|
5700 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5701 | echo "${ECHO_T}yes" >&6; } |
|
|
5702 | else |
|
|
5703 | echo "$as_me: failed program was:" >&5 |
|
|
5704 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5705 | |
|
|
5706 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5707 | echo "${ECHO_T}no" >&6; } |
|
|
5708 | fi |
|
|
5709 | |
|
|
5710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5711 | conftest$ac_exeext conftest.$ac_ext |
|
|
5712 | fi |
|
|
5713 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
|
|
5714 | |
|
|
5715 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5716 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5717 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5719 | else |
|
|
5720 | ac_check_lib_save_LIBS=$LIBS |
|
|
5721 | LIBS="-lrt $LIBS" |
|
|
5722 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5723 | /* confdefs.h. */ |
|
|
5724 | _ACEOF |
|
|
5725 | cat confdefs.h >>conftest.$ac_ext |
|
|
5726 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5727 | /* end confdefs.h. */ |
|
|
5728 | |
|
|
5729 | /* Override any GCC internal prototype to avoid an error. |
|
|
5730 | Use char because int might match the return type of a GCC |
|
|
5731 | builtin and then its argument prototype would still apply. */ |
|
|
5732 | #ifdef __cplusplus |
|
|
5733 | extern "C" |
|
|
5734 | #endif |
|
|
5735 | char clock_gettime (); |
|
|
5736 | int |
|
|
5737 | main () |
|
|
5738 | { |
|
|
5739 | return clock_gettime (); |
|
|
5740 | ; |
|
|
5741 | return 0; |
|
|
5742 | } |
|
|
5743 | _ACEOF |
|
|
5744 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5745 | if { (ac_try="$ac_link" |
|
|
5746 | case "(($ac_try" in |
|
|
5747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5748 | *) ac_try_echo=$ac_try;; |
|
|
5749 | esac |
|
|
5750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5751 | (eval "$ac_link") 2>conftest.er1 |
|
|
5752 | ac_status=$? |
|
|
5753 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5754 | rm -f conftest.er1 |
|
|
5755 | cat conftest.err >&5 |
|
|
5756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5757 | (exit $ac_status); } && { |
|
|
5758 | test -z "$ac_cxx_werror_flag" || |
|
|
5759 | test ! -s conftest.err |
|
|
5760 | } && test -s conftest$ac_exeext && |
|
|
5761 | $as_test_x conftest$ac_exeext; then |
|
|
5762 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5763 | else |
|
|
5764 | echo "$as_me: failed program was:" >&5 |
|
|
5765 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5766 | |
|
|
5767 | ac_cv_lib_rt_clock_gettime=no |
|
|
5768 | fi |
|
|
5769 | |
|
|
5770 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5771 | conftest$ac_exeext conftest.$ac_ext |
|
|
5772 | LIBS=$ac_check_lib_save_LIBS |
|
|
5773 | fi |
|
|
5774 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5775 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5776 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5777 | cat >>confdefs.h <<_ACEOF |
|
|
5778 | #define HAVE_LIBRT 1 |
|
|
5779 | _ACEOF |
|
|
5780 | |
|
|
5781 | LIBS="-lrt $LIBS" |
|
|
5782 | |
|
|
5783 | fi |
|
|
5784 | |
|
|
5785 | unset ac_cv_func_clock_gettime |
|
|
5786 | |
|
|
5787 | for ac_func in clock_gettime |
|
|
5788 | do |
|
|
5789 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5790 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5791 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5792 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5794 | else |
|
|
5795 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5796 | /* confdefs.h. */ |
|
|
5797 | _ACEOF |
|
|
5798 | cat confdefs.h >>conftest.$ac_ext |
|
|
5799 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5800 | /* end confdefs.h. */ |
|
|
5801 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5802 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5803 | #define $ac_func innocuous_$ac_func |
|
|
5804 | |
|
|
5805 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5806 | which can conflict with char $ac_func (); below. |
|
|
5807 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5808 | <limits.h> exists even on freestanding compilers. */ |
|
|
5809 | |
|
|
5810 | #ifdef __STDC__ |
|
|
5811 | # include <limits.h> |
|
|
5812 | #else |
|
|
5813 | # include <assert.h> |
|
|
5814 | #endif |
|
|
5815 | |
|
|
5816 | #undef $ac_func |
|
|
5817 | |
|
|
5818 | /* Override any GCC internal prototype to avoid an error. |
|
|
5819 | Use char because int might match the return type of a GCC |
|
|
5820 | builtin and then its argument prototype would still apply. */ |
|
|
5821 | #ifdef __cplusplus |
|
|
5822 | extern "C" |
|
|
5823 | #endif |
|
|
5824 | char $ac_func (); |
|
|
5825 | /* The GNU C library defines this for functions which it implements |
|
|
5826 | to always fail with ENOSYS. Some functions are actually named |
|
|
5827 | something starting with __ and the normal name is an alias. */ |
|
|
5828 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5829 | choke me |
|
|
5830 | #endif |
|
|
5831 | |
|
|
5832 | int |
|
|
5833 | main () |
|
|
5834 | { |
|
|
5835 | return $ac_func (); |
|
|
5836 | ; |
|
|
5837 | return 0; |
|
|
5838 | } |
|
|
5839 | _ACEOF |
|
|
5840 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5841 | if { (ac_try="$ac_link" |
|
|
5842 | case "(($ac_try" in |
|
|
5843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5844 | *) ac_try_echo=$ac_try;; |
|
|
5845 | esac |
|
|
5846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5847 | (eval "$ac_link") 2>conftest.er1 |
|
|
5848 | ac_status=$? |
|
|
5849 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5850 | rm -f conftest.er1 |
|
|
5851 | cat conftest.err >&5 |
|
|
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5853 | (exit $ac_status); } && { |
|
|
5854 | test -z "$ac_cxx_werror_flag" || |
|
|
5855 | test ! -s conftest.err |
|
|
5856 | } && test -s conftest$ac_exeext && |
|
|
5857 | $as_test_x conftest$ac_exeext; then |
|
|
5858 | eval "$as_ac_var=yes" |
|
|
5859 | else |
|
|
5860 | echo "$as_me: failed program was:" >&5 |
|
|
5861 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5862 | |
|
|
5863 | eval "$as_ac_var=no" |
|
|
5864 | fi |
|
|
5865 | |
|
|
5866 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5867 | conftest$ac_exeext conftest.$ac_ext |
|
|
5868 | fi |
|
|
5869 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5870 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5871 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5872 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5873 | cat >>confdefs.h <<_ACEOF |
|
|
5874 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5875 | _ACEOF |
|
|
5876 | |
|
|
5877 | fi |
|
|
5878 | done |
|
|
5879 | |
|
|
5880 | fi |
|
|
5881 | |
|
|
5882 | fi |
|
|
5883 | |
|
|
5884 | |
|
|
5885 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5886 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5887 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5889 | else |
|
|
5890 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5891 | /* confdefs.h. */ |
|
|
5892 | _ACEOF |
|
|
5893 | cat confdefs.h >>conftest.$ac_ext |
|
|
5894 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5895 | /* end confdefs.h. */ |
|
|
5896 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5897 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5898 | #define nanosleep innocuous_nanosleep |
|
|
5899 | |
|
|
5900 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5901 | which can conflict with char nanosleep (); below. |
|
|
5902 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5903 | <limits.h> exists even on freestanding compilers. */ |
|
|
5904 | |
|
|
5905 | #ifdef __STDC__ |
|
|
5906 | # include <limits.h> |
|
|
5907 | #else |
|
|
5908 | # include <assert.h> |
|
|
5909 | #endif |
|
|
5910 | |
|
|
5911 | #undef nanosleep |
|
|
5912 | |
|
|
5913 | /* Override any GCC internal prototype to avoid an error. |
|
|
5914 | Use char because int might match the return type of a GCC |
|
|
5915 | builtin and then its argument prototype would still apply. */ |
|
|
5916 | #ifdef __cplusplus |
|
|
5917 | extern "C" |
|
|
5918 | #endif |
|
|
5919 | char nanosleep (); |
|
|
5920 | /* The GNU C library defines this for functions which it implements |
|
|
5921 | to always fail with ENOSYS. Some functions are actually named |
|
|
5922 | something starting with __ and the normal name is an alias. */ |
|
|
5923 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5924 | choke me |
|
|
5925 | #endif |
|
|
5926 | |
|
|
5927 | int |
|
|
5928 | main () |
|
|
5929 | { |
|
|
5930 | return nanosleep (); |
|
|
5931 | ; |
|
|
5932 | return 0; |
|
|
5933 | } |
|
|
5934 | _ACEOF |
|
|
5935 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5936 | if { (ac_try="$ac_link" |
|
|
5937 | case "(($ac_try" in |
|
|
5938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5939 | *) ac_try_echo=$ac_try;; |
|
|
5940 | esac |
|
|
5941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5942 | (eval "$ac_link") 2>conftest.er1 |
|
|
5943 | ac_status=$? |
|
|
5944 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5945 | rm -f conftest.er1 |
|
|
5946 | cat conftest.err >&5 |
|
|
5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5948 | (exit $ac_status); } && { |
|
|
5949 | test -z "$ac_cxx_werror_flag" || |
|
|
5950 | test ! -s conftest.err |
|
|
5951 | } && test -s conftest$ac_exeext && |
|
|
5952 | $as_test_x conftest$ac_exeext; then |
|
|
5953 | ac_cv_func_nanosleep=yes |
|
|
5954 | else |
|
|
5955 | echo "$as_me: failed program was:" >&5 |
|
|
5956 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5957 | |
|
|
5958 | ac_cv_func_nanosleep=no |
|
|
5959 | fi |
|
|
5960 | |
|
|
5961 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5962 | conftest$ac_exeext conftest.$ac_ext |
|
|
5963 | fi |
|
|
5964 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5965 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5966 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5967 | : |
|
|
5968 | else |
|
|
5969 | |
|
|
5970 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5971 | |
|
|
5972 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5973 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5974 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5976 | else |
|
|
5977 | ac_check_lib_save_LIBS=$LIBS |
|
|
5978 | LIBS="-lrt $LIBS" |
|
|
5979 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5980 | /* confdefs.h. */ |
|
|
5981 | _ACEOF |
|
|
5982 | cat confdefs.h >>conftest.$ac_ext |
|
|
5983 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5984 | /* end confdefs.h. */ |
|
|
5985 | |
|
|
5986 | /* Override any GCC internal prototype to avoid an error. |
|
|
5987 | Use char because int might match the return type of a GCC |
|
|
5988 | builtin and then its argument prototype would still apply. */ |
|
|
5989 | #ifdef __cplusplus |
|
|
5990 | extern "C" |
|
|
5991 | #endif |
|
|
5992 | char nanosleep (); |
|
|
5993 | int |
|
|
5994 | main () |
|
|
5995 | { |
|
|
5996 | return nanosleep (); |
|
|
5997 | ; |
|
|
5998 | return 0; |
|
|
5999 | } |
|
|
6000 | _ACEOF |
|
|
6001 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6002 | if { (ac_try="$ac_link" |
|
|
6003 | case "(($ac_try" in |
|
|
6004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6005 | *) ac_try_echo=$ac_try;; |
|
|
6006 | esac |
|
|
6007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6008 | (eval "$ac_link") 2>conftest.er1 |
|
|
6009 | ac_status=$? |
|
|
6010 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6011 | rm -f conftest.er1 |
|
|
6012 | cat conftest.err >&5 |
|
|
6013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6014 | (exit $ac_status); } && { |
|
|
6015 | test -z "$ac_cxx_werror_flag" || |
|
|
6016 | test ! -s conftest.err |
|
|
6017 | } && test -s conftest$ac_exeext && |
|
|
6018 | $as_test_x conftest$ac_exeext; then |
|
|
6019 | ac_cv_lib_rt_nanosleep=yes |
|
|
6020 | else |
|
|
6021 | echo "$as_me: failed program was:" >&5 |
|
|
6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6023 | |
|
|
6024 | ac_cv_lib_rt_nanosleep=no |
|
|
6025 | fi |
|
|
6026 | |
|
|
6027 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6028 | conftest$ac_exeext conftest.$ac_ext |
|
|
6029 | LIBS=$ac_check_lib_save_LIBS |
|
|
6030 | fi |
|
|
6031 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
6032 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
6033 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
6034 | cat >>confdefs.h <<_ACEOF |
|
|
6035 | #define HAVE_LIBRT 1 |
|
|
6036 | _ACEOF |
|
|
6037 | |
|
|
6038 | LIBS="-lrt $LIBS" |
|
|
6039 | |
|
|
6040 | fi |
|
|
6041 | |
|
|
6042 | unset ac_cv_func_nanosleep |
|
|
6043 | |
|
|
6044 | for ac_func in nanosleep |
|
|
6045 | do |
|
|
6046 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6047 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6048 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6049 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6051 | else |
|
|
6052 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6053 | /* confdefs.h. */ |
|
|
6054 | _ACEOF |
|
|
6055 | cat confdefs.h >>conftest.$ac_ext |
|
|
6056 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6057 | /* end confdefs.h. */ |
|
|
6058 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6059 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6060 | #define $ac_func innocuous_$ac_func |
|
|
6061 | |
|
|
6062 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6063 | which can conflict with char $ac_func (); below. |
|
|
6064 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6065 | <limits.h> exists even on freestanding compilers. */ |
|
|
6066 | |
|
|
6067 | #ifdef __STDC__ |
|
|
6068 | # include <limits.h> |
|
|
6069 | #else |
|
|
6070 | # include <assert.h> |
|
|
6071 | #endif |
|
|
6072 | |
|
|
6073 | #undef $ac_func |
|
|
6074 | |
|
|
6075 | /* Override any GCC internal prototype to avoid an error. |
|
|
6076 | Use char because int might match the return type of a GCC |
|
|
6077 | builtin and then its argument prototype would still apply. */ |
|
|
6078 | #ifdef __cplusplus |
|
|
6079 | extern "C" |
|
|
6080 | #endif |
|
|
6081 | char $ac_func (); |
|
|
6082 | /* The GNU C library defines this for functions which it implements |
|
|
6083 | to always fail with ENOSYS. Some functions are actually named |
|
|
6084 | something starting with __ and the normal name is an alias. */ |
|
|
6085 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6086 | choke me |
|
|
6087 | #endif |
|
|
6088 | |
|
|
6089 | int |
|
|
6090 | main () |
|
|
6091 | { |
|
|
6092 | return $ac_func (); |
|
|
6093 | ; |
|
|
6094 | return 0; |
|
|
6095 | } |
|
|
6096 | _ACEOF |
|
|
6097 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6098 | if { (ac_try="$ac_link" |
|
|
6099 | case "(($ac_try" in |
|
|
6100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6101 | *) ac_try_echo=$ac_try;; |
|
|
6102 | esac |
|
|
6103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6104 | (eval "$ac_link") 2>conftest.er1 |
|
|
6105 | ac_status=$? |
|
|
6106 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6107 | rm -f conftest.er1 |
|
|
6108 | cat conftest.err >&5 |
|
|
6109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6110 | (exit $ac_status); } && { |
|
|
6111 | test -z "$ac_cxx_werror_flag" || |
|
|
6112 | test ! -s conftest.err |
|
|
6113 | } && test -s conftest$ac_exeext && |
|
|
6114 | $as_test_x conftest$ac_exeext; then |
|
|
6115 | eval "$as_ac_var=yes" |
|
|
6116 | else |
|
|
6117 | echo "$as_me: failed program was:" >&5 |
|
|
6118 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6119 | |
|
|
6120 | eval "$as_ac_var=no" |
|
|
6121 | fi |
|
|
6122 | |
|
|
6123 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6124 | conftest$ac_exeext conftest.$ac_ext |
|
|
6125 | fi |
|
|
6126 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6127 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6128 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6129 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6130 | cat >>confdefs.h <<_ACEOF |
|
|
6131 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6132 | _ACEOF |
|
|
6133 | |
|
|
6134 | fi |
|
|
6135 | done |
|
|
6136 | |
|
|
6137 | fi |
|
|
6138 | |
|
|
6139 | fi |
|
|
6140 | |
|
|
6141 | |
|
|
6142 | |
|
|
6143 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6144 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6145 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6147 | else |
|
|
6148 | ac_check_lib_save_LIBS=$LIBS |
|
|
6149 | LIBS="-lm $LIBS" |
|
|
6150 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6151 | /* confdefs.h. */ |
|
|
6152 | _ACEOF |
|
|
6153 | cat confdefs.h >>conftest.$ac_ext |
|
|
6154 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6155 | /* end confdefs.h. */ |
|
|
6156 | |
|
|
6157 | /* Override any GCC internal prototype to avoid an error. |
|
|
6158 | Use char because int might match the return type of a GCC |
|
|
6159 | builtin and then its argument prototype would still apply. */ |
|
|
6160 | #ifdef __cplusplus |
|
|
6161 | extern "C" |
|
|
6162 | #endif |
|
|
6163 | char ceil (); |
|
|
6164 | int |
|
|
6165 | main () |
|
|
6166 | { |
|
|
6167 | return ceil (); |
|
|
6168 | ; |
|
|
6169 | return 0; |
|
|
6170 | } |
|
|
6171 | _ACEOF |
|
|
6172 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6173 | if { (ac_try="$ac_link" |
|
|
6174 | case "(($ac_try" in |
|
|
6175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6176 | *) ac_try_echo=$ac_try;; |
|
|
6177 | esac |
|
|
6178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6179 | (eval "$ac_link") 2>conftest.er1 |
|
|
6180 | ac_status=$? |
|
|
6181 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6182 | rm -f conftest.er1 |
|
|
6183 | cat conftest.err >&5 |
|
|
6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6185 | (exit $ac_status); } && { |
|
|
6186 | test -z "$ac_cxx_werror_flag" || |
|
|
6187 | test ! -s conftest.err |
|
|
6188 | } && test -s conftest$ac_exeext && |
|
|
6189 | $as_test_x conftest$ac_exeext; then |
|
|
6190 | ac_cv_lib_m_ceil=yes |
|
|
6191 | else |
|
|
6192 | echo "$as_me: failed program was:" >&5 |
|
|
6193 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6194 | |
|
|
6195 | ac_cv_lib_m_ceil=no |
|
|
6196 | fi |
|
|
6197 | |
|
|
6198 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6199 | conftest$ac_exeext conftest.$ac_ext |
|
|
6200 | LIBS=$ac_check_lib_save_LIBS |
|
|
6201 | fi |
|
|
6202 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6203 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6204 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6205 | cat >>confdefs.h <<_ACEOF |
|
|
6206 | #define HAVE_LIBM 1 |
|
|
6207 | _ACEOF |
|
|
6208 | |
|
|
6209 | LIBS="-lm $LIBS" |
|
|
6210 | |
|
|
6211 | fi |
|
|
6212 | |
|
|
6213 | |
4893 | |
6214 | |
4894 | |
6215 | |
4895 | |
6216 | |
4896 | # Extract the first word of "tic", so it can be a program name with args. |
6217 | # Extract the first word of "tic", so it can be a program name with args. |
4897 | set dummy tic; ac_word=$2 |
6218 | set dummy tic; ac_word=$2 |
… | |
… | |
4931 | else |
6252 | else |
4932 | { echo "$as_me:$LINENO: result: no" >&5 |
6253 | { echo "$as_me:$LINENO: result: no" >&5 |
4933 | echo "${ECHO_T}no" >&6; } |
6254 | echo "${ECHO_T}no" >&6; } |
4934 | fi |
6255 | fi |
4935 | |
6256 | |
4936 | |
|
|
4937 | |
|
|
4938 | |
|
|
4939 | |
|
|
4940 | ac_ext=cpp |
|
|
4941 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4942 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4943 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4944 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4945 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4946 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4947 | if test -z "$CXXCPP"; then |
|
|
4948 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4950 | else |
|
|
4951 | # Double quotes because CXXCPP needs to be expanded |
|
|
4952 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4953 | do |
|
|
4954 | ac_preproc_ok=false |
|
|
4955 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4956 | do |
|
|
4957 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4958 | # with a fresh cross-compiler works. |
|
|
4959 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4960 | # <limits.h> exists even on freestanding compilers. |
|
|
4961 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4962 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4963 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4964 | /* confdefs.h. */ |
|
|
4965 | _ACEOF |
|
|
4966 | cat confdefs.h >>conftest.$ac_ext |
|
|
4967 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4968 | /* end confdefs.h. */ |
|
|
4969 | #ifdef __STDC__ |
|
|
4970 | # include <limits.h> |
|
|
4971 | #else |
|
|
4972 | # include <assert.h> |
|
|
4973 | #endif |
|
|
4974 | Syntax error |
|
|
4975 | _ACEOF |
|
|
4976 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4977 | case "(($ac_try" in |
|
|
4978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4979 | *) ac_try_echo=$ac_try;; |
|
|
4980 | esac |
|
|
4981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4982 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4983 | ac_status=$? |
|
|
4984 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4985 | rm -f conftest.er1 |
|
|
4986 | cat conftest.err >&5 |
|
|
4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4988 | (exit $ac_status); } >/dev/null && { |
|
|
4989 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4990 | test ! -s conftest.err |
|
|
4991 | }; then |
|
|
4992 | : |
|
|
4993 | else |
|
|
4994 | echo "$as_me: failed program was:" >&5 |
|
|
4995 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4996 | |
|
|
4997 | # Broken: fails on valid input. |
|
|
4998 | continue |
|
|
4999 | fi |
|
|
5000 | |
|
|
5001 | rm -f conftest.err conftest.$ac_ext |
|
|
5002 | |
|
|
5003 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5004 | # can be detected and how. |
|
|
5005 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5006 | /* confdefs.h. */ |
|
|
5007 | _ACEOF |
|
|
5008 | cat confdefs.h >>conftest.$ac_ext |
|
|
5009 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5010 | /* end confdefs.h. */ |
|
|
5011 | #include <ac_nonexistent.h> |
|
|
5012 | _ACEOF |
|
|
5013 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5014 | case "(($ac_try" in |
|
|
5015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5016 | *) ac_try_echo=$ac_try;; |
|
|
5017 | esac |
|
|
5018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5019 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5020 | ac_status=$? |
|
|
5021 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5022 | rm -f conftest.er1 |
|
|
5023 | cat conftest.err >&5 |
|
|
5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5025 | (exit $ac_status); } >/dev/null && { |
|
|
5026 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5027 | test ! -s conftest.err |
|
|
5028 | }; then |
|
|
5029 | # Broken: success on invalid input. |
|
|
5030 | continue |
|
|
5031 | else |
|
|
5032 | echo "$as_me: failed program was:" >&5 |
|
|
5033 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5034 | |
|
|
5035 | # Passes both tests. |
|
|
5036 | ac_preproc_ok=: |
|
|
5037 | break |
|
|
5038 | fi |
|
|
5039 | |
|
|
5040 | rm -f conftest.err conftest.$ac_ext |
|
|
5041 | |
|
|
5042 | done |
|
|
5043 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5044 | rm -f conftest.err conftest.$ac_ext |
|
|
5045 | if $ac_preproc_ok; then |
|
|
5046 | break |
|
|
5047 | fi |
|
|
5048 | |
|
|
5049 | done |
|
|
5050 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5051 | |
|
|
5052 | fi |
|
|
5053 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5054 | else |
|
|
5055 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5056 | fi |
|
|
5057 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5058 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5059 | ac_preproc_ok=false |
|
|
5060 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5061 | do |
|
|
5062 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5063 | # with a fresh cross-compiler works. |
|
|
5064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5065 | # <limits.h> exists even on freestanding compilers. |
|
|
5066 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5067 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5068 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5069 | /* confdefs.h. */ |
|
|
5070 | _ACEOF |
|
|
5071 | cat confdefs.h >>conftest.$ac_ext |
|
|
5072 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5073 | /* end confdefs.h. */ |
|
|
5074 | #ifdef __STDC__ |
|
|
5075 | # include <limits.h> |
|
|
5076 | #else |
|
|
5077 | # include <assert.h> |
|
|
5078 | #endif |
|
|
5079 | Syntax error |
|
|
5080 | _ACEOF |
|
|
5081 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5082 | case "(($ac_try" in |
|
|
5083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5084 | *) ac_try_echo=$ac_try;; |
|
|
5085 | esac |
|
|
5086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5087 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5088 | ac_status=$? |
|
|
5089 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5090 | rm -f conftest.er1 |
|
|
5091 | cat conftest.err >&5 |
|
|
5092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5093 | (exit $ac_status); } >/dev/null && { |
|
|
5094 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5095 | test ! -s conftest.err |
|
|
5096 | }; then |
|
|
5097 | : |
|
|
5098 | else |
|
|
5099 | echo "$as_me: failed program was:" >&5 |
|
|
5100 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5101 | |
|
|
5102 | # Broken: fails on valid input. |
|
|
5103 | continue |
|
|
5104 | fi |
|
|
5105 | |
|
|
5106 | rm -f conftest.err conftest.$ac_ext |
|
|
5107 | |
|
|
5108 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5109 | # can be detected and how. |
|
|
5110 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5111 | /* confdefs.h. */ |
|
|
5112 | _ACEOF |
|
|
5113 | cat confdefs.h >>conftest.$ac_ext |
|
|
5114 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5115 | /* end confdefs.h. */ |
|
|
5116 | #include <ac_nonexistent.h> |
|
|
5117 | _ACEOF |
|
|
5118 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5119 | case "(($ac_try" in |
|
|
5120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5121 | *) ac_try_echo=$ac_try;; |
|
|
5122 | esac |
|
|
5123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5124 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5125 | ac_status=$? |
|
|
5126 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5127 | rm -f conftest.er1 |
|
|
5128 | cat conftest.err >&5 |
|
|
5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5130 | (exit $ac_status); } >/dev/null && { |
|
|
5131 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5132 | test ! -s conftest.err |
|
|
5133 | }; then |
|
|
5134 | # Broken: success on invalid input. |
|
|
5135 | continue |
|
|
5136 | else |
|
|
5137 | echo "$as_me: failed program was:" >&5 |
|
|
5138 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5139 | |
|
|
5140 | # Passes both tests. |
|
|
5141 | ac_preproc_ok=: |
|
|
5142 | break |
|
|
5143 | fi |
|
|
5144 | |
|
|
5145 | rm -f conftest.err conftest.$ac_ext |
|
|
5146 | |
|
|
5147 | done |
|
|
5148 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5149 | rm -f conftest.err conftest.$ac_ext |
|
|
5150 | if $ac_preproc_ok; then |
|
|
5151 | : |
|
|
5152 | else |
|
|
5153 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5154 | See \`config.log' for more details." >&5 |
|
|
5155 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5156 | See \`config.log' for more details." >&2;} |
|
|
5157 | { (exit 1); exit 1; }; } |
|
|
5158 | fi |
|
|
5159 | |
|
|
5160 | ac_ext=cpp |
|
|
5161 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5162 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5163 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5164 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5165 | |
6257 | |
5166 | |
6258 | |
5167 | { echo "$as_me:$LINENO: checking for X" >&5 |
6259 | { echo "$as_me:$LINENO: checking for X" >&5 |
5168 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6260 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5169 | |
6261 | |
… | |
… | |
6555 | echo "${ECHO_T}no" >&6; } |
7647 | echo "${ECHO_T}no" >&6; } |
6556 | fi |
7648 | fi |
6557 | fi |
7649 | fi |
6558 | fi |
7650 | fi |
6559 | |
7651 | |
6560 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6561 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6562 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6564 | else |
|
|
6565 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6566 | /* confdefs.h. */ |
|
|
6567 | _ACEOF |
|
|
6568 | cat confdefs.h >>conftest.$ac_ext |
|
|
6569 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6570 | /* end confdefs.h. */ |
|
|
6571 | #include <sys/types.h> |
|
|
6572 | #include <sys/wait.h> |
|
|
6573 | #ifndef WEXITSTATUS |
|
|
6574 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6575 | #endif |
|
|
6576 | #ifndef WIFEXITED |
|
|
6577 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6578 | #endif |
|
|
6579 | |
|
|
6580 | int |
|
|
6581 | main () |
|
|
6582 | { |
|
|
6583 | int s; |
|
|
6584 | wait (&s); |
|
|
6585 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6586 | ; |
|
|
6587 | return 0; |
|
|
6588 | } |
|
|
6589 | _ACEOF |
|
|
6590 | rm -f conftest.$ac_objext |
|
|
6591 | if { (ac_try="$ac_compile" |
|
|
6592 | case "(($ac_try" in |
|
|
6593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6594 | *) ac_try_echo=$ac_try;; |
|
|
6595 | esac |
|
|
6596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6597 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6598 | ac_status=$? |
|
|
6599 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6600 | rm -f conftest.er1 |
|
|
6601 | cat conftest.err >&5 |
|
|
6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6603 | (exit $ac_status); } && { |
|
|
6604 | test -z "$ac_cxx_werror_flag" || |
|
|
6605 | test ! -s conftest.err |
|
|
6606 | } && test -s conftest.$ac_objext; then |
|
|
6607 | ac_cv_header_sys_wait_h=yes |
|
|
6608 | else |
|
|
6609 | echo "$as_me: failed program was:" >&5 |
|
|
6610 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6611 | |
|
|
6612 | ac_cv_header_sys_wait_h=no |
|
|
6613 | fi |
|
|
6614 | |
|
|
6615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6616 | fi |
|
|
6617 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6618 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6619 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6620 | |
|
|
6621 | cat >>confdefs.h <<\_ACEOF |
|
|
6622 | #define HAVE_SYS_WAIT_H 1 |
|
|
6623 | _ACEOF |
|
|
6624 | |
|
|
6625 | fi |
|
|
6626 | |
|
|
6627 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6628 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6629 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6631 | else |
|
|
6632 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6633 | /* confdefs.h. */ |
|
|
6634 | _ACEOF |
|
|
6635 | cat confdefs.h >>conftest.$ac_ext |
|
|
6636 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6637 | /* end confdefs.h. */ |
|
|
6638 | #include <stdlib.h> |
|
|
6639 | #include <stdarg.h> |
|
|
6640 | #include <string.h> |
|
|
6641 | #include <float.h> |
|
|
6642 | |
|
|
6643 | int |
|
|
6644 | main () |
|
|
6645 | { |
|
|
6646 | |
|
|
6647 | ; |
|
|
6648 | return 0; |
|
|
6649 | } |
|
|
6650 | _ACEOF |
|
|
6651 | rm -f conftest.$ac_objext |
|
|
6652 | if { (ac_try="$ac_compile" |
|
|
6653 | case "(($ac_try" in |
|
|
6654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6655 | *) ac_try_echo=$ac_try;; |
|
|
6656 | esac |
|
|
6657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6658 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6659 | ac_status=$? |
|
|
6660 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6661 | rm -f conftest.er1 |
|
|
6662 | cat conftest.err >&5 |
|
|
6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6664 | (exit $ac_status); } && { |
|
|
6665 | test -z "$ac_cxx_werror_flag" || |
|
|
6666 | test ! -s conftest.err |
|
|
6667 | } && test -s conftest.$ac_objext; then |
|
|
6668 | ac_cv_header_stdc=yes |
|
|
6669 | else |
|
|
6670 | echo "$as_me: failed program was:" >&5 |
|
|
6671 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6672 | |
|
|
6673 | ac_cv_header_stdc=no |
|
|
6674 | fi |
|
|
6675 | |
|
|
6676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6677 | |
|
|
6678 | if test $ac_cv_header_stdc = yes; then |
|
|
6679 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6680 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6681 | /* confdefs.h. */ |
|
|
6682 | _ACEOF |
|
|
6683 | cat confdefs.h >>conftest.$ac_ext |
|
|
6684 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6685 | /* end confdefs.h. */ |
|
|
6686 | #include <string.h> |
|
|
6687 | |
|
|
6688 | _ACEOF |
|
|
6689 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6690 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6691 | : |
|
|
6692 | else |
|
|
6693 | ac_cv_header_stdc=no |
|
|
6694 | fi |
|
|
6695 | rm -f conftest* |
|
|
6696 | |
|
|
6697 | fi |
|
|
6698 | |
|
|
6699 | if test $ac_cv_header_stdc = yes; then |
|
|
6700 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6701 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6702 | /* confdefs.h. */ |
|
|
6703 | _ACEOF |
|
|
6704 | cat confdefs.h >>conftest.$ac_ext |
|
|
6705 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6706 | /* end confdefs.h. */ |
|
|
6707 | #include <stdlib.h> |
|
|
6708 | |
|
|
6709 | _ACEOF |
|
|
6710 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6711 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6712 | : |
|
|
6713 | else |
|
|
6714 | ac_cv_header_stdc=no |
|
|
6715 | fi |
|
|
6716 | rm -f conftest* |
|
|
6717 | |
|
|
6718 | fi |
|
|
6719 | |
|
|
6720 | if test $ac_cv_header_stdc = yes; then |
|
|
6721 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6722 | if test "$cross_compiling" = yes; then |
|
|
6723 | : |
|
|
6724 | else |
|
|
6725 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6726 | /* confdefs.h. */ |
|
|
6727 | _ACEOF |
|
|
6728 | cat confdefs.h >>conftest.$ac_ext |
|
|
6729 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6730 | /* end confdefs.h. */ |
|
|
6731 | #include <ctype.h> |
|
|
6732 | #include <stdlib.h> |
|
|
6733 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6734 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6735 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6736 | #else |
|
|
6737 | # define ISLOWER(c) \ |
|
|
6738 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6739 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6740 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6741 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6742 | #endif |
|
|
6743 | |
|
|
6744 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6745 | int |
|
|
6746 | main () |
|
|
6747 | { |
|
|
6748 | int i; |
|
|
6749 | for (i = 0; i < 256; i++) |
|
|
6750 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6751 | || toupper (i) != TOUPPER (i)) |
|
|
6752 | return 2; |
|
|
6753 | return 0; |
|
|
6754 | } |
|
|
6755 | _ACEOF |
|
|
6756 | rm -f conftest$ac_exeext |
|
|
6757 | if { (ac_try="$ac_link" |
|
|
6758 | case "(($ac_try" in |
|
|
6759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6760 | *) ac_try_echo=$ac_try;; |
|
|
6761 | esac |
|
|
6762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6763 | (eval "$ac_link") 2>&5 |
|
|
6764 | ac_status=$? |
|
|
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6766 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6767 | { (case "(($ac_try" in |
|
|
6768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6769 | *) ac_try_echo=$ac_try;; |
|
|
6770 | esac |
|
|
6771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6772 | (eval "$ac_try") 2>&5 |
|
|
6773 | ac_status=$? |
|
|
6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6775 | (exit $ac_status); }; }; then |
|
|
6776 | : |
|
|
6777 | else |
|
|
6778 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6779 | echo "$as_me: failed program was:" >&5 |
|
|
6780 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6781 | |
|
|
6782 | ( exit $ac_status ) |
|
|
6783 | ac_cv_header_stdc=no |
|
|
6784 | fi |
|
|
6785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6786 | fi |
|
|
6787 | |
|
|
6788 | |
|
|
6789 | fi |
|
|
6790 | fi |
|
|
6791 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6792 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
6793 | if test $ac_cv_header_stdc = yes; then |
|
|
6794 | |
|
|
6795 | cat >>confdefs.h <<\_ACEOF |
|
|
6796 | #define STDC_HEADERS 1 |
|
|
6797 | _ACEOF |
|
|
6798 | |
|
|
6799 | fi |
|
|
6800 | |
|
|
6801 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6802 | |
|
|
6803 | |
|
|
6804 | |
|
|
6805 | |
|
|
6806 | |
|
|
6807 | |
|
|
6808 | |
|
|
6809 | |
|
|
6810 | |
|
|
6811 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6812 | inttypes.h stdint.h unistd.h |
|
|
6813 | do |
|
|
6814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6815 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6816 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
6817 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6819 | else |
|
|
6820 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6821 | /* confdefs.h. */ |
|
|
6822 | _ACEOF |
|
|
6823 | cat confdefs.h >>conftest.$ac_ext |
|
|
6824 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6825 | /* end confdefs.h. */ |
|
|
6826 | $ac_includes_default |
|
|
6827 | |
|
|
6828 | #include <$ac_header> |
|
|
6829 | _ACEOF |
|
|
6830 | rm -f conftest.$ac_objext |
|
|
6831 | if { (ac_try="$ac_compile" |
|
|
6832 | case "(($ac_try" in |
|
|
6833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6834 | *) ac_try_echo=$ac_try;; |
|
|
6835 | esac |
|
|
6836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6837 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6838 | ac_status=$? |
|
|
6839 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6840 | rm -f conftest.er1 |
|
|
6841 | cat conftest.err >&5 |
|
|
6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6843 | (exit $ac_status); } && { |
|
|
6844 | test -z "$ac_cxx_werror_flag" || |
|
|
6845 | test ! -s conftest.err |
|
|
6846 | } && test -s conftest.$ac_objext; then |
|
|
6847 | eval "$as_ac_Header=yes" |
|
|
6848 | else |
|
|
6849 | echo "$as_me: failed program was:" >&5 |
|
|
6850 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6851 | |
|
|
6852 | eval "$as_ac_Header=no" |
|
|
6853 | fi |
|
|
6854 | |
|
|
6855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6856 | fi |
|
|
6857 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
6858 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6859 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6860 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6861 | cat >>confdefs.h <<_ACEOF |
|
|
6862 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6863 | _ACEOF |
|
|
6864 | |
|
|
6865 | fi |
|
|
6866 | |
|
|
6867 | done |
|
|
6868 | |
|
|
6869 | |
|
|
6870 | |
|
|
6871 | |
|
|
6872 | |
|
|
6873 | |
|
|
6874 | |
|
|
6875 | |
|
|
6876 | |
|
|
6877 | |
|
|
6878 | |
|
|
6879 | |
|
|
6880 | |
7652 | |
6881 | |
7653 | |
6882 | |
7654 | |
6883 | |
7655 | |
6884 | |
7656 | |
6885 | |
7657 | |
6886 | |
7658 | |
6887 | for ac_header in \ |
7659 | for ac_header in \ |
6888 | assert.h \ |
|
|
6889 | fcntl.h \ |
|
|
6890 | stdarg.h \ |
|
|
6891 | stdlib.h \ |
|
|
6892 | string.h \ |
|
|
6893 | termios.h \ |
|
|
6894 | unistd.h \ |
|
|
6895 | sys/byteorder.h \ |
7660 | sys/byteorder.h \ |
6896 | sys/ioctl.h \ |
7661 | sys/ioctl.h \ |
6897 | sys/select.h \ |
|
|
6898 | sys/sockio.h \ |
7662 | sys/sockio.h \ |
6899 | sys/strredir.h \ |
7663 | sys/strredir.h \ |
6900 | sys/time.h \ |
|
|
6901 | stdint.h \ |
7664 | stdint.h \ |
6902 | wchar.h \ |
7665 | wchar.h \ |
6903 | cwchar \ |
7666 | cwchar \ |
6904 | clocale \ |
|
|
6905 | |
7667 | |
6906 | do |
7668 | do |
6907 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7669 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6908 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7670 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6909 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7671 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7040 | fi |
7802 | fi |
7041 | |
7803 | |
7042 | done |
7804 | done |
7043 | |
7805 | |
7044 | |
7806 | |
7045 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7046 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7047 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7049 | else |
|
|
7050 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7051 | /* confdefs.h. */ |
|
|
7052 | _ACEOF |
|
|
7053 | cat confdefs.h >>conftest.$ac_ext |
|
|
7054 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7055 | /* end confdefs.h. */ |
|
|
7056 | #include <sys/types.h> |
|
|
7057 | #include <sys/time.h> |
|
|
7058 | #include <time.h> |
|
|
7059 | |
|
|
7060 | int |
|
|
7061 | main () |
|
|
7062 | { |
|
|
7063 | if ((struct tm *) 0) |
|
|
7064 | return 0; |
|
|
7065 | ; |
|
|
7066 | return 0; |
|
|
7067 | } |
|
|
7068 | _ACEOF |
|
|
7069 | rm -f conftest.$ac_objext |
|
|
7070 | if { (ac_try="$ac_compile" |
|
|
7071 | case "(($ac_try" in |
|
|
7072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7073 | *) ac_try_echo=$ac_try;; |
|
|
7074 | esac |
|
|
7075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7076 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7077 | ac_status=$? |
|
|
7078 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7079 | rm -f conftest.er1 |
|
|
7080 | cat conftest.err >&5 |
|
|
7081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7082 | (exit $ac_status); } && { |
|
|
7083 | test -z "$ac_cxx_werror_flag" || |
|
|
7084 | test ! -s conftest.err |
|
|
7085 | } && test -s conftest.$ac_objext; then |
|
|
7086 | ac_cv_header_time=yes |
|
|
7087 | else |
|
|
7088 | echo "$as_me: failed program was:" >&5 |
|
|
7089 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7090 | |
|
|
7091 | ac_cv_header_time=no |
|
|
7092 | fi |
|
|
7093 | |
|
|
7094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7095 | fi |
|
|
7096 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7097 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7098 | if test $ac_cv_header_time = yes; then |
|
|
7099 | |
|
|
7100 | cat >>confdefs.h <<\_ACEOF |
|
|
7101 | #define TIME_WITH_SYS_TIME 1 |
|
|
7102 | _ACEOF |
|
|
7103 | |
|
|
7104 | fi |
|
|
7105 | |
|
|
7106 | |
|
|
7107 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7108 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7109 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7111 | else |
|
|
7112 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7113 | /* confdefs.h. */ |
|
|
7114 | _ACEOF |
|
|
7115 | cat confdefs.h >>conftest.$ac_ext |
|
|
7116 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7117 | /* end confdefs.h. */ |
|
|
7118 | #include <stdio.h> |
|
|
7119 | #include <sys/ioctl.h> |
|
|
7120 | #ifdef HAVE_TERMIOS_H |
|
|
7121 | #include <termios.h> |
|
|
7122 | #endif |
|
|
7123 | int |
|
|
7124 | main () |
|
|
7125 | { |
|
|
7126 | int a = ECHO; |
|
|
7127 | ; |
|
|
7128 | return 0; |
|
|
7129 | } |
|
|
7130 | _ACEOF |
|
|
7131 | rm -f conftest.$ac_objext |
|
|
7132 | if { (ac_try="$ac_compile" |
|
|
7133 | case "(($ac_try" in |
|
|
7134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7135 | *) ac_try_echo=$ac_try;; |
|
|
7136 | esac |
|
|
7137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7138 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7139 | ac_status=$? |
|
|
7140 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7141 | rm -f conftest.er1 |
|
|
7142 | cat conftest.err >&5 |
|
|
7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7144 | (exit $ac_status); } && { |
|
|
7145 | test -z "$ac_cxx_werror_flag" || |
|
|
7146 | test ! -s conftest.err |
|
|
7147 | } && test -s conftest.$ac_objext; then |
|
|
7148 | rxvt_cv_header_sysioctl=yes |
|
|
7149 | else |
|
|
7150 | echo "$as_me: failed program was:" >&5 |
|
|
7151 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7152 | |
|
|
7153 | rxvt_cv_header_sysioctl=no |
|
|
7154 | fi |
|
|
7155 | |
|
|
7156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7157 | fi |
|
|
7158 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7159 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7160 | |
|
|
7161 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7807 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7162 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7808 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7163 | if test "${rxvt_cv_xpointer+set}" = set; then |
7809 | if test "${rxvt_cv_xpointer+set}" = set; then |
7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7165 | else |
7811 | else |
… | |
… | |
7276 | cat >>confdefs.h <<\_ACEOF |
7922 | cat >>confdefs.h <<\_ACEOF |
7277 | #define XLIB_ILLEGAL_ACCESS 1 |
7923 | #define XLIB_ILLEGAL_ACCESS 1 |
7278 | _ACEOF |
7924 | _ACEOF |
7279 | |
7925 | |
7280 | fi |
7926 | fi |
7281 | |
|
|
7282 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7283 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7284 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7286 | else |
|
|
7287 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7288 | /* confdefs.h. */ |
|
|
7289 | _ACEOF |
|
|
7290 | cat confdefs.h >>conftest.$ac_ext |
|
|
7291 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7292 | /* end confdefs.h. */ |
|
|
7293 | |
|
|
7294 | int |
|
|
7295 | main () |
|
|
7296 | { |
|
|
7297 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7298 | #ifndef __cplusplus |
|
|
7299 | /* Ultrix mips cc rejects this. */ |
|
|
7300 | typedef int charset[2]; |
|
|
7301 | const charset cs; |
|
|
7302 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7303 | char const *const *pcpcc; |
|
|
7304 | char **ppc; |
|
|
7305 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7306 | struct point {int x, y;}; |
|
|
7307 | static struct point const zero = {0,0}; |
|
|
7308 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7309 | It does not let you subtract one const X* pointer from another in |
|
|
7310 | an arm of an if-expression whose if-part is not a constant |
|
|
7311 | expression */ |
|
|
7312 | const char *g = "string"; |
|
|
7313 | pcpcc = &g + (g ? g-g : 0); |
|
|
7314 | /* HPUX 7.0 cc rejects these. */ |
|
|
7315 | ++pcpcc; |
|
|
7316 | ppc = (char**) pcpcc; |
|
|
7317 | pcpcc = (char const *const *) ppc; |
|
|
7318 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7319 | char *t; |
|
|
7320 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7321 | |
|
|
7322 | *t++ = 0; |
|
|
7323 | if (s) return 0; |
|
|
7324 | } |
|
|
7325 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7326 | int x[] = {25, 17}; |
|
|
7327 | const int *foo = &x[0]; |
|
|
7328 | ++foo; |
|
|
7329 | } |
|
|
7330 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7331 | typedef const int *iptr; |
|
|
7332 | iptr p = 0; |
|
|
7333 | ++p; |
|
|
7334 | } |
|
|
7335 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7336 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7337 | struct s { int j; const int *ap[3]; }; |
|
|
7338 | struct s *b; b->j = 5; |
|
|
7339 | } |
|
|
7340 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7341 | const int foo = 10; |
|
|
7342 | if (!foo) return 0; |
|
|
7343 | } |
|
|
7344 | return !cs[0] && !zero.x; |
|
|
7345 | #endif |
|
|
7346 | |
|
|
7347 | ; |
|
|
7348 | return 0; |
|
|
7349 | } |
|
|
7350 | _ACEOF |
|
|
7351 | rm -f conftest.$ac_objext |
|
|
7352 | if { (ac_try="$ac_compile" |
|
|
7353 | case "(($ac_try" in |
|
|
7354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7355 | *) ac_try_echo=$ac_try;; |
|
|
7356 | esac |
|
|
7357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7358 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7359 | ac_status=$? |
|
|
7360 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7361 | rm -f conftest.er1 |
|
|
7362 | cat conftest.err >&5 |
|
|
7363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7364 | (exit $ac_status); } && { |
|
|
7365 | test -z "$ac_cxx_werror_flag" || |
|
|
7366 | test ! -s conftest.err |
|
|
7367 | } && test -s conftest.$ac_objext; then |
|
|
7368 | ac_cv_c_const=yes |
|
|
7369 | else |
|
|
7370 | echo "$as_me: failed program was:" >&5 |
|
|
7371 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7372 | |
|
|
7373 | ac_cv_c_const=no |
|
|
7374 | fi |
|
|
7375 | |
|
|
7376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7377 | fi |
|
|
7378 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7379 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7380 | if test $ac_cv_c_const = no; then |
|
|
7381 | |
|
|
7382 | cat >>confdefs.h <<\_ACEOF |
|
|
7383 | #define const |
|
|
7384 | _ACEOF |
|
|
7385 | |
|
|
7386 | fi |
|
|
7387 | |
|
|
7388 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7389 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7390 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7392 | else |
|
|
7393 | ac_cv_c_inline=no |
|
|
7394 | for ac_kw in inline __inline__ __inline; do |
|
|
7395 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7396 | /* confdefs.h. */ |
|
|
7397 | _ACEOF |
|
|
7398 | cat confdefs.h >>conftest.$ac_ext |
|
|
7399 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7400 | /* end confdefs.h. */ |
|
|
7401 | #ifndef __cplusplus |
|
|
7402 | typedef int foo_t; |
|
|
7403 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7404 | $ac_kw foo_t foo () {return 0; } |
|
|
7405 | #endif |
|
|
7406 | |
|
|
7407 | _ACEOF |
|
|
7408 | rm -f conftest.$ac_objext |
|
|
7409 | if { (ac_try="$ac_compile" |
|
|
7410 | case "(($ac_try" in |
|
|
7411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7412 | *) ac_try_echo=$ac_try;; |
|
|
7413 | esac |
|
|
7414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7415 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7416 | ac_status=$? |
|
|
7417 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7418 | rm -f conftest.er1 |
|
|
7419 | cat conftest.err >&5 |
|
|
7420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7421 | (exit $ac_status); } && { |
|
|
7422 | test -z "$ac_cxx_werror_flag" || |
|
|
7423 | test ! -s conftest.err |
|
|
7424 | } && test -s conftest.$ac_objext; then |
|
|
7425 | ac_cv_c_inline=$ac_kw |
|
|
7426 | else |
|
|
7427 | echo "$as_me: failed program was:" >&5 |
|
|
7428 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7429 | |
|
|
7430 | |
|
|
7431 | fi |
|
|
7432 | |
|
|
7433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7434 | test "$ac_cv_c_inline" != no && break |
|
|
7435 | done |
|
|
7436 | |
|
|
7437 | fi |
|
|
7438 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7439 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7440 | |
|
|
7441 | |
|
|
7442 | case $ac_cv_c_inline in |
|
|
7443 | inline | yes) ;; |
|
|
7444 | *) |
|
|
7445 | case $ac_cv_c_inline in |
|
|
7446 | no) ac_val=;; |
|
|
7447 | *) ac_val=$ac_cv_c_inline;; |
|
|
7448 | esac |
|
|
7449 | cat >>confdefs.h <<_ACEOF |
|
|
7450 | #ifndef __cplusplus |
|
|
7451 | #define inline $ac_val |
|
|
7452 | #endif |
|
|
7453 | _ACEOF |
|
|
7454 | ;; |
|
|
7455 | esac |
|
|
7456 | |
|
|
7457 | |
|
|
7458 | |
7927 | |
7459 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7928 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7460 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7929 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7461 | if test "${ac_cv_type_mode_t+set}" = set; then |
7930 | if test "${ac_cv_type_mode_t+set}" = set; then |
7462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7619 | _ACEOF |
8088 | _ACEOF |
7620 | |
8089 | |
7621 | fi |
8090 | fi |
7622 | |
8091 | |
7623 | |
8092 | |
7624 | { echo "$as_me:$LINENO: checking for short" >&5 |
8093 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7625 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8094 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7626 | if test "${ac_cv_type_short+set}" = set; then |
8095 | if test "${ac_cv_c_int16_t+set}" = set; then |
7627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7628 | else |
8097 | else |
|
|
8098 | ac_cv_c_int16_t=no |
|
|
8099 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8100 | 'long long int' 'short int' 'signed char'; do |
7629 | cat >conftest.$ac_ext <<_ACEOF |
8101 | cat >conftest.$ac_ext <<_ACEOF |
7630 | /* confdefs.h. */ |
8102 | /* confdefs.h. */ |
7631 | _ACEOF |
8103 | _ACEOF |
7632 | cat confdefs.h >>conftest.$ac_ext |
8104 | cat confdefs.h >>conftest.$ac_ext |
7633 | cat >>conftest.$ac_ext <<_ACEOF |
8105 | cat >>conftest.$ac_ext <<_ACEOF |
7634 | /* end confdefs.h. */ |
8106 | /* end confdefs.h. */ |
7635 | $ac_includes_default |
8107 | $ac_includes_default |
7636 | typedef short ac__type_new_; |
|
|
7637 | int |
8108 | int |
7638 | main () |
8109 | main () |
7639 | { |
8110 | { |
7640 | if ((ac__type_new_ *) 0) |
8111 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7641 | return 0; |
8112 | test_array [0] = 0 |
7642 | if (sizeof (ac__type_new_)) |
8113 | |
7643 | return 0; |
|
|
7644 | ; |
8114 | ; |
7645 | return 0; |
8115 | return 0; |
7646 | } |
8116 | } |
7647 | _ACEOF |
8117 | _ACEOF |
7648 | rm -f conftest.$ac_objext |
8118 | rm -f conftest.$ac_objext |
… | |
… | |
7660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7661 | (exit $ac_status); } && { |
8131 | (exit $ac_status); } && { |
7662 | test -z "$ac_cxx_werror_flag" || |
8132 | test -z "$ac_cxx_werror_flag" || |
7663 | test ! -s conftest.err |
8133 | test ! -s conftest.err |
7664 | } && test -s conftest.$ac_objext; then |
8134 | } && test -s conftest.$ac_objext; then |
7665 | ac_cv_type_short=yes |
|
|
7666 | else |
|
|
7667 | echo "$as_me: failed program was:" >&5 |
|
|
7668 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7669 | |
|
|
7670 | ac_cv_type_short=no |
|
|
7671 | fi |
|
|
7672 | |
|
|
7673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7674 | fi |
|
|
7675 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7676 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
7677 | |
|
|
7678 | # The cast to long int works around a bug in the HP C Compiler |
|
|
7679 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
7680 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
7681 | # This bug is HP SR number 8606223364. |
|
|
7682 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
7683 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
7684 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
7685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7686 | else |
|
|
7687 | if test "$cross_compiling" = yes; then |
|
|
7688 | # Depending upon the size, compute the lo and hi bounds. |
|
|
7689 | cat >conftest.$ac_ext <<_ACEOF |
8135 | cat >conftest.$ac_ext <<_ACEOF |
7690 | /* confdefs.h. */ |
8136 | /* confdefs.h. */ |
7691 | _ACEOF |
8137 | _ACEOF |
7692 | cat confdefs.h >>conftest.$ac_ext |
8138 | cat confdefs.h >>conftest.$ac_ext |
7693 | cat >>conftest.$ac_ext <<_ACEOF |
8139 | cat >>conftest.$ac_ext <<_ACEOF |
7694 | /* end confdefs.h. */ |
8140 | /* end confdefs.h. */ |
7695 | $ac_includes_default |
8141 | $ac_includes_default |
7696 | typedef short ac__type_sizeof_; |
|
|
7697 | int |
8142 | int |
7698 | main () |
8143 | main () |
7699 | { |
8144 | { |
7700 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8145 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8146 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
7701 | test_array [0] = 0 |
8147 | test_array [0] = 0 |
7702 | |
8148 | |
7703 | ; |
8149 | ; |
7704 | return 0; |
8150 | return 0; |
7705 | } |
8151 | } |
… | |
… | |
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7720 | (exit $ac_status); } && { |
8166 | (exit $ac_status); } && { |
7721 | test -z "$ac_cxx_werror_flag" || |
8167 | test -z "$ac_cxx_werror_flag" || |
7722 | test ! -s conftest.err |
8168 | test ! -s conftest.err |
7723 | } && test -s conftest.$ac_objext; then |
8169 | } && test -s conftest.$ac_objext; then |
7724 | ac_lo=0 ac_mid=0 |
8170 | : |
7725 | while :; do |
8171 | else |
|
|
8172 | echo "$as_me: failed program was:" >&5 |
|
|
8173 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8174 | |
|
|
8175 | case $ac_type in |
|
|
8176 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8177 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8178 | esac |
|
|
8179 | |
|
|
8180 | fi |
|
|
8181 | |
|
|
8182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8183 | else |
|
|
8184 | echo "$as_me: failed program was:" >&5 |
|
|
8185 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8186 | |
|
|
8187 | |
|
|
8188 | fi |
|
|
8189 | |
|
|
8190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8191 | test "$ac_cv_c_int16_t" != no && break |
|
|
8192 | done |
|
|
8193 | fi |
|
|
8194 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8195 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8196 | case $ac_cv_c_int16_t in #( |
|
|
8197 | no|yes) ;; #( |
|
|
8198 | *) |
|
|
8199 | |
|
|
8200 | cat >>confdefs.h <<_ACEOF |
|
|
8201 | #define int16_t $ac_cv_c_int16_t |
|
|
8202 | _ACEOF |
|
|
8203 | ;; |
|
|
8204 | esac |
|
|
8205 | |
|
|
8206 | |
|
|
8207 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8208 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8209 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8211 | else |
|
|
8212 | ac_cv_c_uint16_t=no |
|
|
8213 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8214 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7726 | cat >conftest.$ac_ext <<_ACEOF |
8215 | cat >conftest.$ac_ext <<_ACEOF |
7727 | /* confdefs.h. */ |
8216 | /* confdefs.h. */ |
7728 | _ACEOF |
8217 | _ACEOF |
7729 | cat confdefs.h >>conftest.$ac_ext |
8218 | cat confdefs.h >>conftest.$ac_ext |
7730 | cat >>conftest.$ac_ext <<_ACEOF |
8219 | cat >>conftest.$ac_ext <<_ACEOF |
7731 | /* end confdefs.h. */ |
8220 | /* end confdefs.h. */ |
7732 | $ac_includes_default |
8221 | $ac_includes_default |
7733 | typedef short ac__type_sizeof_; |
|
|
7734 | int |
8222 | int |
7735 | main () |
8223 | main () |
7736 | { |
8224 | { |
7737 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8225 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
7738 | test_array [0] = 0 |
8226 | test_array [0] = 0 |
7739 | |
8227 | |
7740 | ; |
8228 | ; |
7741 | return 0; |
8229 | return 0; |
7742 | } |
8230 | } |
… | |
… | |
7756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7757 | (exit $ac_status); } && { |
8245 | (exit $ac_status); } && { |
7758 | test -z "$ac_cxx_werror_flag" || |
8246 | test -z "$ac_cxx_werror_flag" || |
7759 | test ! -s conftest.err |
8247 | test ! -s conftest.err |
7760 | } && test -s conftest.$ac_objext; then |
8248 | } && test -s conftest.$ac_objext; then |
7761 | ac_hi=$ac_mid; break |
8249 | case $ac_type in |
|
|
8250 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8251 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8252 | esac |
|
|
8253 | |
7762 | else |
8254 | else |
7763 | echo "$as_me: failed program was:" >&5 |
8255 | echo "$as_me: failed program was:" >&5 |
7764 | sed 's/^/| /' conftest.$ac_ext >&5 |
8256 | sed 's/^/| /' conftest.$ac_ext >&5 |
7765 | |
8257 | |
7766 | ac_lo=`expr $ac_mid + 1` |
8258 | |
7767 | if test $ac_lo -le $ac_mid; then |
|
|
7768 | ac_lo= ac_hi= |
|
|
7769 | break |
|
|
7770 | fi |
|
|
7771 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
7772 | fi |
8259 | fi |
7773 | |
8260 | |
7774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8262 | test "$ac_cv_c_uint16_t" != no && break |
7775 | done |
8263 | done |
7776 | else |
8264 | fi |
7777 | echo "$as_me: failed program was:" >&5 |
8265 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7778 | sed 's/^/| /' conftest.$ac_ext >&5 |
8266 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8267 | case $ac_cv_c_uint16_t in #( |
|
|
8268 | no|yes) ;; #( |
|
|
8269 | *) |
7779 | |
8270 | |
|
|
8271 | |
|
|
8272 | cat >>confdefs.h <<_ACEOF |
|
|
8273 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8274 | _ACEOF |
|
|
8275 | ;; |
|
|
8276 | esac |
|
|
8277 | |
|
|
8278 | |
|
|
8279 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8280 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8281 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8283 | else |
|
|
8284 | ac_cv_c_int32_t=no |
|
|
8285 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8286 | 'long long int' 'short int' 'signed char'; do |
7780 | cat >conftest.$ac_ext <<_ACEOF |
8287 | cat >conftest.$ac_ext <<_ACEOF |
7781 | /* confdefs.h. */ |
8288 | /* confdefs.h. */ |
7782 | _ACEOF |
8289 | _ACEOF |
7783 | cat confdefs.h >>conftest.$ac_ext |
8290 | cat confdefs.h >>conftest.$ac_ext |
7784 | cat >>conftest.$ac_ext <<_ACEOF |
8291 | cat >>conftest.$ac_ext <<_ACEOF |
7785 | /* end confdefs.h. */ |
8292 | /* end confdefs.h. */ |
7786 | $ac_includes_default |
8293 | $ac_includes_default |
7787 | typedef short ac__type_sizeof_; |
|
|
7788 | int |
8294 | int |
7789 | main () |
8295 | main () |
7790 | { |
8296 | { |
7791 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8297 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
7792 | test_array [0] = 0 |
8298 | test_array [0] = 0 |
7793 | |
8299 | |
7794 | ; |
8300 | ; |
7795 | return 0; |
8301 | return 0; |
7796 | } |
8302 | } |
… | |
… | |
7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7811 | (exit $ac_status); } && { |
8317 | (exit $ac_status); } && { |
7812 | test -z "$ac_cxx_werror_flag" || |
8318 | test -z "$ac_cxx_werror_flag" || |
7813 | test ! -s conftest.err |
8319 | test ! -s conftest.err |
7814 | } && test -s conftest.$ac_objext; then |
8320 | } && test -s conftest.$ac_objext; then |
7815 | ac_hi=-1 ac_mid=-1 |
|
|
7816 | while :; do |
|
|
7817 | cat >conftest.$ac_ext <<_ACEOF |
8321 | cat >conftest.$ac_ext <<_ACEOF |
7818 | /* confdefs.h. */ |
8322 | /* confdefs.h. */ |
7819 | _ACEOF |
8323 | _ACEOF |
7820 | cat confdefs.h >>conftest.$ac_ext |
8324 | cat confdefs.h >>conftest.$ac_ext |
7821 | cat >>conftest.$ac_ext <<_ACEOF |
8325 | cat >>conftest.$ac_ext <<_ACEOF |
7822 | /* end confdefs.h. */ |
8326 | /* end confdefs.h. */ |
7823 | $ac_includes_default |
8327 | $ac_includes_default |
7824 | typedef short ac__type_sizeof_; |
|
|
7825 | int |
8328 | int |
7826 | main () |
8329 | main () |
7827 | { |
8330 | { |
7828 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8331 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8332 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
7829 | test_array [0] = 0 |
8333 | test_array [0] = 0 |
7830 | |
8334 | |
7831 | ; |
8335 | ; |
7832 | return 0; |
8336 | return 0; |
7833 | } |
8337 | } |
… | |
… | |
7847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7848 | (exit $ac_status); } && { |
8352 | (exit $ac_status); } && { |
7849 | test -z "$ac_cxx_werror_flag" || |
8353 | test -z "$ac_cxx_werror_flag" || |
7850 | test ! -s conftest.err |
8354 | test ! -s conftest.err |
7851 | } && test -s conftest.$ac_objext; then |
8355 | } && test -s conftest.$ac_objext; then |
7852 | ac_lo=$ac_mid; break |
8356 | : |
7853 | else |
8357 | else |
7854 | echo "$as_me: failed program was:" >&5 |
8358 | echo "$as_me: failed program was:" >&5 |
7855 | sed 's/^/| /' conftest.$ac_ext >&5 |
8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
7856 | |
8360 | |
7857 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8361 | case $ac_type in |
7858 | if test $ac_mid -le $ac_hi; then |
8362 | int32_t) ac_cv_c_int32_t=yes ;; |
7859 | ac_lo= ac_hi= |
8363 | *) ac_cv_c_int32_t=$ac_type ;; |
7860 | break |
8364 | esac |
7861 | fi |
8365 | |
7862 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
7863 | fi |
8366 | fi |
7864 | |
8367 | |
7865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8368 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7866 | done |
|
|
7867 | else |
8369 | else |
7868 | echo "$as_me: failed program was:" >&5 |
8370 | echo "$as_me: failed program was:" >&5 |
7869 | sed 's/^/| /' conftest.$ac_ext >&5 |
8371 | sed 's/^/| /' conftest.$ac_ext >&5 |
7870 | |
8372 | |
7871 | ac_lo= ac_hi= |
8373 | |
7872 | fi |
8374 | fi |
7873 | |
8375 | |
7874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8377 | test "$ac_cv_c_int32_t" != no && break |
|
|
8378 | done |
7875 | fi |
8379 | fi |
|
|
8380 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8381 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8382 | case $ac_cv_c_int32_t in #( |
|
|
8383 | no|yes) ;; #( |
|
|
8384 | *) |
7876 | |
8385 | |
7877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8386 | cat >>confdefs.h <<_ACEOF |
7878 | # Binary search between lo and hi bounds. |
8387 | #define int32_t $ac_cv_c_int32_t |
7879 | while test "x$ac_lo" != "x$ac_hi"; do |
8388 | _ACEOF |
7880 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8389 | ;; |
|
|
8390 | esac |
|
|
8391 | |
|
|
8392 | |
|
|
8393 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8394 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8395 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8396 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8397 | else |
|
|
8398 | ac_cv_c_uint32_t=no |
|
|
8399 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8400 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
7881 | cat >conftest.$ac_ext <<_ACEOF |
8401 | cat >conftest.$ac_ext <<_ACEOF |
7882 | /* confdefs.h. */ |
8402 | /* confdefs.h. */ |
7883 | _ACEOF |
8403 | _ACEOF |
7884 | cat confdefs.h >>conftest.$ac_ext |
8404 | cat confdefs.h >>conftest.$ac_ext |
7885 | cat >>conftest.$ac_ext <<_ACEOF |
8405 | cat >>conftest.$ac_ext <<_ACEOF |
7886 | /* end confdefs.h. */ |
8406 | /* end confdefs.h. */ |
7887 | $ac_includes_default |
8407 | $ac_includes_default |
7888 | typedef short ac__type_sizeof_; |
|
|
7889 | int |
8408 | int |
7890 | main () |
8409 | main () |
7891 | { |
8410 | { |
7892 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8411 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
7893 | test_array [0] = 0 |
8412 | test_array [0] = 0 |
7894 | |
8413 | |
7895 | ; |
8414 | ; |
7896 | return 0; |
8415 | return 0; |
7897 | } |
8416 | } |
… | |
… | |
7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7912 | (exit $ac_status); } && { |
8431 | (exit $ac_status); } && { |
7913 | test -z "$ac_cxx_werror_flag" || |
8432 | test -z "$ac_cxx_werror_flag" || |
7914 | test ! -s conftest.err |
8433 | test ! -s conftest.err |
7915 | } && test -s conftest.$ac_objext; then |
8434 | } && test -s conftest.$ac_objext; then |
7916 | ac_hi=$ac_mid |
8435 | case $ac_type in |
|
|
8436 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8437 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8438 | esac |
|
|
8439 | |
7917 | else |
8440 | else |
7918 | echo "$as_me: failed program was:" >&5 |
8441 | echo "$as_me: failed program was:" >&5 |
7919 | sed 's/^/| /' conftest.$ac_ext >&5 |
8442 | sed 's/^/| /' conftest.$ac_ext >&5 |
7920 | |
8443 | |
7921 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8444 | |
7922 | fi |
8445 | fi |
7923 | |
8446 | |
7924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7925 | done |
8448 | test "$ac_cv_c_uint32_t" != no && break |
7926 | case $ac_lo in |
8449 | done |
7927 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
7928 | '') if test "$ac_cv_type_short" = yes; then |
|
|
7929 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7930 | See \`config.log' for more details." >&5 |
|
|
7931 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7932 | See \`config.log' for more details." >&2;} |
|
|
7933 | { (exit 77); exit 77; }; } |
|
|
7934 | else |
|
|
7935 | ac_cv_sizeof_short=0 |
|
|
7936 | fi ;; |
|
|
7937 | esac |
|
|
7938 | else |
|
|
7939 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7940 | /* confdefs.h. */ |
|
|
7941 | _ACEOF |
|
|
7942 | cat confdefs.h >>conftest.$ac_ext |
|
|
7943 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7944 | /* end confdefs.h. */ |
|
|
7945 | $ac_includes_default |
|
|
7946 | typedef short ac__type_sizeof_; |
|
|
7947 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7948 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7949 | #include <stdio.h> |
|
|
7950 | #include <stdlib.h> |
|
|
7951 | int |
|
|
7952 | main () |
|
|
7953 | { |
|
|
7954 | |
|
|
7955 | FILE *f = fopen ("conftest.val", "w"); |
|
|
7956 | if (! f) |
|
|
7957 | return 1; |
|
|
7958 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
7959 | { |
|
|
7960 | long int i = longval (); |
|
|
7961 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7962 | return 1; |
|
|
7963 | fprintf (f, "%ld\n", i); |
|
|
7964 | } |
|
|
7965 | else |
|
|
7966 | { |
|
|
7967 | unsigned long int i = ulongval (); |
|
|
7968 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7969 | return 1; |
|
|
7970 | fprintf (f, "%lu\n", i); |
|
|
7971 | } |
|
|
7972 | return ferror (f) || fclose (f) != 0; |
|
|
7973 | |
|
|
7974 | ; |
|
|
7975 | return 0; |
|
|
7976 | } |
|
|
7977 | _ACEOF |
|
|
7978 | rm -f conftest$ac_exeext |
|
|
7979 | if { (ac_try="$ac_link" |
|
|
7980 | case "(($ac_try" in |
|
|
7981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7982 | *) ac_try_echo=$ac_try;; |
|
|
7983 | esac |
|
|
7984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7985 | (eval "$ac_link") 2>&5 |
|
|
7986 | ac_status=$? |
|
|
7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7988 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7989 | { (case "(($ac_try" in |
|
|
7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7991 | *) ac_try_echo=$ac_try;; |
|
|
7992 | esac |
|
|
7993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7994 | (eval "$ac_try") 2>&5 |
|
|
7995 | ac_status=$? |
|
|
7996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7997 | (exit $ac_status); }; }; then |
|
|
7998 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
7999 | else |
|
|
8000 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8001 | echo "$as_me: failed program was:" >&5 |
|
|
8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8003 | |
|
|
8004 | ( exit $ac_status ) |
|
|
8005 | if test "$ac_cv_type_short" = yes; then |
|
|
8006 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8007 | See \`config.log' for more details." >&5 |
|
|
8008 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8009 | See \`config.log' for more details." >&2;} |
|
|
8010 | { (exit 77); exit 77; }; } |
|
|
8011 | else |
|
|
8012 | ac_cv_sizeof_short=0 |
|
|
8013 | fi |
|
|
8014 | fi |
8450 | fi |
8015 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8016 | fi |
|
|
8017 | rm -f conftest.val |
|
|
8018 | fi |
|
|
8019 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8451 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8020 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8452 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8453 | case $ac_cv_c_uint32_t in #( |
|
|
8454 | no|yes) ;; #( |
|
|
8455 | *) |
8021 | |
8456 | |
|
|
8457 | cat >>confdefs.h <<\_ACEOF |
|
|
8458 | #define _UINT32_T 1 |
|
|
8459 | _ACEOF |
8022 | |
8460 | |
8023 | |
8461 | |
8024 | cat >>confdefs.h <<_ACEOF |
8462 | cat >>confdefs.h <<_ACEOF |
8025 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8463 | #define uint32_t $ac_cv_c_uint32_t |
8026 | _ACEOF |
8464 | _ACEOF |
8027 | |
8465 | ;; |
8028 | |
|
|
8029 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8030 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8031 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8033 | else |
|
|
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_new_; |
|
|
8042 | int |
|
|
8043 | main () |
|
|
8044 | { |
|
|
8045 | if ((ac__type_new_ *) 0) |
|
|
8046 | return 0; |
|
|
8047 | if (sizeof (ac__type_new_)) |
|
|
8048 | return 0; |
|
|
8049 | ; |
|
|
8050 | return 0; |
|
|
8051 | } |
|
|
8052 | _ACEOF |
|
|
8053 | rm -f conftest.$ac_objext |
|
|
8054 | if { (ac_try="$ac_compile" |
|
|
8055 | case "(($ac_try" in |
|
|
8056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8057 | *) ac_try_echo=$ac_try;; |
|
|
8058 | esac |
8466 | esac |
8059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8060 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8061 | ac_status=$? |
|
|
8062 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8063 | rm -f conftest.er1 |
|
|
8064 | cat conftest.err >&5 |
|
|
8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8066 | (exit $ac_status); } && { |
|
|
8067 | test -z "$ac_cxx_werror_flag" || |
|
|
8068 | test ! -s conftest.err |
|
|
8069 | } && test -s conftest.$ac_objext; then |
|
|
8070 | ac_cv_type_int=yes |
|
|
8071 | else |
|
|
8072 | echo "$as_me: failed program was:" >&5 |
|
|
8073 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8074 | |
|
|
8075 | ac_cv_type_int=no |
|
|
8076 | fi |
|
|
8077 | |
|
|
8078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8079 | fi |
|
|
8080 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8081 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8082 | |
|
|
8083 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8084 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8085 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8086 | # This bug is HP SR number 8606223364. |
|
|
8087 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8088 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8089 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8091 | else |
|
|
8092 | if test "$cross_compiling" = yes; then |
|
|
8093 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8094 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8095 | /* confdefs.h. */ |
|
|
8096 | _ACEOF |
|
|
8097 | cat confdefs.h >>conftest.$ac_ext |
|
|
8098 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8099 | /* end confdefs.h. */ |
|
|
8100 | $ac_includes_default |
|
|
8101 | typedef int ac__type_sizeof_; |
|
|
8102 | int |
|
|
8103 | main () |
|
|
8104 | { |
|
|
8105 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8106 | test_array [0] = 0 |
|
|
8107 | |
|
|
8108 | ; |
|
|
8109 | return 0; |
|
|
8110 | } |
|
|
8111 | _ACEOF |
|
|
8112 | rm -f conftest.$ac_objext |
|
|
8113 | if { (ac_try="$ac_compile" |
|
|
8114 | case "(($ac_try" in |
|
|
8115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8116 | *) ac_try_echo=$ac_try;; |
|
|
8117 | esac |
|
|
8118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8119 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8120 | ac_status=$? |
|
|
8121 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8122 | rm -f conftest.er1 |
|
|
8123 | cat conftest.err >&5 |
|
|
8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8125 | (exit $ac_status); } && { |
|
|
8126 | test -z "$ac_cxx_werror_flag" || |
|
|
8127 | test ! -s conftest.err |
|
|
8128 | } && test -s conftest.$ac_objext; then |
|
|
8129 | ac_lo=0 ac_mid=0 |
|
|
8130 | while :; do |
|
|
8131 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8132 | /* confdefs.h. */ |
|
|
8133 | _ACEOF |
|
|
8134 | cat confdefs.h >>conftest.$ac_ext |
|
|
8135 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8136 | /* end confdefs.h. */ |
|
|
8137 | $ac_includes_default |
|
|
8138 | typedef int ac__type_sizeof_; |
|
|
8139 | int |
|
|
8140 | main () |
|
|
8141 | { |
|
|
8142 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8143 | test_array [0] = 0 |
|
|
8144 | |
|
|
8145 | ; |
|
|
8146 | return 0; |
|
|
8147 | } |
|
|
8148 | _ACEOF |
|
|
8149 | rm -f conftest.$ac_objext |
|
|
8150 | if { (ac_try="$ac_compile" |
|
|
8151 | case "(($ac_try" in |
|
|
8152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8153 | *) ac_try_echo=$ac_try;; |
|
|
8154 | esac |
|
|
8155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8156 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8157 | ac_status=$? |
|
|
8158 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8159 | rm -f conftest.er1 |
|
|
8160 | cat conftest.err >&5 |
|
|
8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8162 | (exit $ac_status); } && { |
|
|
8163 | test -z "$ac_cxx_werror_flag" || |
|
|
8164 | test ! -s conftest.err |
|
|
8165 | } && test -s conftest.$ac_objext; then |
|
|
8166 | ac_hi=$ac_mid; break |
|
|
8167 | else |
|
|
8168 | echo "$as_me: failed program was:" >&5 |
|
|
8169 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8170 | |
|
|
8171 | ac_lo=`expr $ac_mid + 1` |
|
|
8172 | if test $ac_lo -le $ac_mid; then |
|
|
8173 | ac_lo= ac_hi= |
|
|
8174 | break |
|
|
8175 | fi |
|
|
8176 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8177 | fi |
|
|
8178 | |
|
|
8179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8180 | done |
|
|
8181 | else |
|
|
8182 | echo "$as_me: failed program was:" >&5 |
|
|
8183 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8184 | |
|
|
8185 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8186 | /* confdefs.h. */ |
|
|
8187 | _ACEOF |
|
|
8188 | cat confdefs.h >>conftest.$ac_ext |
|
|
8189 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8190 | /* end confdefs.h. */ |
|
|
8191 | $ac_includes_default |
|
|
8192 | typedef int ac__type_sizeof_; |
|
|
8193 | int |
|
|
8194 | main () |
|
|
8195 | { |
|
|
8196 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8197 | test_array [0] = 0 |
|
|
8198 | |
|
|
8199 | ; |
|
|
8200 | return 0; |
|
|
8201 | } |
|
|
8202 | _ACEOF |
|
|
8203 | rm -f conftest.$ac_objext |
|
|
8204 | if { (ac_try="$ac_compile" |
|
|
8205 | case "(($ac_try" in |
|
|
8206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8207 | *) ac_try_echo=$ac_try;; |
|
|
8208 | esac |
|
|
8209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8210 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8211 | ac_status=$? |
|
|
8212 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8213 | rm -f conftest.er1 |
|
|
8214 | cat conftest.err >&5 |
|
|
8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8216 | (exit $ac_status); } && { |
|
|
8217 | test -z "$ac_cxx_werror_flag" || |
|
|
8218 | test ! -s conftest.err |
|
|
8219 | } && test -s conftest.$ac_objext; then |
|
|
8220 | ac_hi=-1 ac_mid=-1 |
|
|
8221 | while :; do |
|
|
8222 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8223 | /* confdefs.h. */ |
|
|
8224 | _ACEOF |
|
|
8225 | cat confdefs.h >>conftest.$ac_ext |
|
|
8226 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8227 | /* end confdefs.h. */ |
|
|
8228 | $ac_includes_default |
|
|
8229 | typedef int ac__type_sizeof_; |
|
|
8230 | int |
|
|
8231 | main () |
|
|
8232 | { |
|
|
8233 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8234 | test_array [0] = 0 |
|
|
8235 | |
|
|
8236 | ; |
|
|
8237 | return 0; |
|
|
8238 | } |
|
|
8239 | _ACEOF |
|
|
8240 | rm -f conftest.$ac_objext |
|
|
8241 | if { (ac_try="$ac_compile" |
|
|
8242 | case "(($ac_try" in |
|
|
8243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8244 | *) ac_try_echo=$ac_try;; |
|
|
8245 | esac |
|
|
8246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8247 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8248 | ac_status=$? |
|
|
8249 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8250 | rm -f conftest.er1 |
|
|
8251 | cat conftest.err >&5 |
|
|
8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8253 | (exit $ac_status); } && { |
|
|
8254 | test -z "$ac_cxx_werror_flag" || |
|
|
8255 | test ! -s conftest.err |
|
|
8256 | } && test -s conftest.$ac_objext; then |
|
|
8257 | ac_lo=$ac_mid; break |
|
|
8258 | else |
|
|
8259 | echo "$as_me: failed program was:" >&5 |
|
|
8260 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8261 | |
|
|
8262 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8263 | if test $ac_mid -le $ac_hi; then |
|
|
8264 | ac_lo= ac_hi= |
|
|
8265 | break |
|
|
8266 | fi |
|
|
8267 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8268 | fi |
|
|
8269 | |
|
|
8270 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8271 | done |
|
|
8272 | else |
|
|
8273 | echo "$as_me: failed program was:" >&5 |
|
|
8274 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8275 | |
|
|
8276 | ac_lo= ac_hi= |
|
|
8277 | fi |
|
|
8278 | |
|
|
8279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8280 | fi |
|
|
8281 | |
|
|
8282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8283 | # Binary search between lo and hi bounds. |
|
|
8284 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8285 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8286 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8287 | /* confdefs.h. */ |
|
|
8288 | _ACEOF |
|
|
8289 | cat confdefs.h >>conftest.$ac_ext |
|
|
8290 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8291 | /* end confdefs.h. */ |
|
|
8292 | $ac_includes_default |
|
|
8293 | typedef int ac__type_sizeof_; |
|
|
8294 | int |
|
|
8295 | main () |
|
|
8296 | { |
|
|
8297 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8298 | test_array [0] = 0 |
|
|
8299 | |
|
|
8300 | ; |
|
|
8301 | return 0; |
|
|
8302 | } |
|
|
8303 | _ACEOF |
|
|
8304 | rm -f conftest.$ac_objext |
|
|
8305 | if { (ac_try="$ac_compile" |
|
|
8306 | case "(($ac_try" in |
|
|
8307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8308 | *) ac_try_echo=$ac_try;; |
|
|
8309 | esac |
|
|
8310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8311 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8312 | ac_status=$? |
|
|
8313 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8314 | rm -f conftest.er1 |
|
|
8315 | cat conftest.err >&5 |
|
|
8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8317 | (exit $ac_status); } && { |
|
|
8318 | test -z "$ac_cxx_werror_flag" || |
|
|
8319 | test ! -s conftest.err |
|
|
8320 | } && test -s conftest.$ac_objext; then |
|
|
8321 | ac_hi=$ac_mid |
|
|
8322 | else |
|
|
8323 | echo "$as_me: failed program was:" >&5 |
|
|
8324 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8325 | |
|
|
8326 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8327 | fi |
|
|
8328 | |
|
|
8329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8330 | done |
|
|
8331 | case $ac_lo in |
|
|
8332 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8333 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8334 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8335 | See \`config.log' for more details." >&5 |
|
|
8336 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8337 | See \`config.log' for more details." >&2;} |
|
|
8338 | { (exit 77); exit 77; }; } |
|
|
8339 | else |
|
|
8340 | ac_cv_sizeof_int=0 |
|
|
8341 | fi ;; |
|
|
8342 | esac |
|
|
8343 | else |
|
|
8344 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8345 | /* confdefs.h. */ |
|
|
8346 | _ACEOF |
|
|
8347 | cat confdefs.h >>conftest.$ac_ext |
|
|
8348 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8349 | /* end confdefs.h. */ |
|
|
8350 | $ac_includes_default |
|
|
8351 | typedef int ac__type_sizeof_; |
|
|
8352 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8353 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8354 | #include <stdio.h> |
|
|
8355 | #include <stdlib.h> |
|
|
8356 | int |
|
|
8357 | main () |
|
|
8358 | { |
|
|
8359 | |
|
|
8360 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8361 | if (! f) |
|
|
8362 | return 1; |
|
|
8363 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8364 | { |
|
|
8365 | long int i = longval (); |
|
|
8366 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8367 | return 1; |
|
|
8368 | fprintf (f, "%ld\n", i); |
|
|
8369 | } |
|
|
8370 | else |
|
|
8371 | { |
|
|
8372 | unsigned long int i = ulongval (); |
|
|
8373 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8374 | return 1; |
|
|
8375 | fprintf (f, "%lu\n", i); |
|
|
8376 | } |
|
|
8377 | return ferror (f) || fclose (f) != 0; |
|
|
8378 | |
|
|
8379 | ; |
|
|
8380 | return 0; |
|
|
8381 | } |
|
|
8382 | _ACEOF |
|
|
8383 | rm -f conftest$ac_exeext |
|
|
8384 | if { (ac_try="$ac_link" |
|
|
8385 | case "(($ac_try" in |
|
|
8386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8387 | *) ac_try_echo=$ac_try;; |
|
|
8388 | esac |
|
|
8389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8390 | (eval "$ac_link") 2>&5 |
|
|
8391 | ac_status=$? |
|
|
8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8394 | { (case "(($ac_try" in |
|
|
8395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8396 | *) ac_try_echo=$ac_try;; |
|
|
8397 | esac |
|
|
8398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8399 | (eval "$ac_try") 2>&5 |
|
|
8400 | ac_status=$? |
|
|
8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8402 | (exit $ac_status); }; }; then |
|
|
8403 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8404 | else |
|
|
8405 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8406 | echo "$as_me: failed program was:" >&5 |
|
|
8407 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8408 | |
|
|
8409 | ( exit $ac_status ) |
|
|
8410 | if test "$ac_cv_type_int" = yes; then |
|
|
8411 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8412 | See \`config.log' for more details." >&5 |
|
|
8413 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8414 | See \`config.log' for more details." >&2;} |
|
|
8415 | { (exit 77); exit 77; }; } |
|
|
8416 | else |
|
|
8417 | ac_cv_sizeof_int=0 |
|
|
8418 | fi |
|
|
8419 | fi |
|
|
8420 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8421 | fi |
|
|
8422 | rm -f conftest.val |
|
|
8423 | fi |
|
|
8424 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8425 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8426 | |
|
|
8427 | |
|
|
8428 | |
|
|
8429 | cat >>confdefs.h <<_ACEOF |
|
|
8430 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8431 | _ACEOF |
|
|
8432 | |
|
|
8433 | |
|
|
8434 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8435 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8436 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8438 | else |
|
|
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_new_; |
|
|
8447 | int |
|
|
8448 | main () |
|
|
8449 | { |
|
|
8450 | if ((ac__type_new_ *) 0) |
|
|
8451 | return 0; |
|
|
8452 | if (sizeof (ac__type_new_)) |
|
|
8453 | return 0; |
|
|
8454 | ; |
|
|
8455 | return 0; |
|
|
8456 | } |
|
|
8457 | _ACEOF |
|
|
8458 | rm -f conftest.$ac_objext |
|
|
8459 | if { (ac_try="$ac_compile" |
|
|
8460 | case "(($ac_try" in |
|
|
8461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8462 | *) ac_try_echo=$ac_try;; |
|
|
8463 | esac |
|
|
8464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8465 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8466 | ac_status=$? |
|
|
8467 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8468 | rm -f conftest.er1 |
|
|
8469 | cat conftest.err >&5 |
|
|
8470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8471 | (exit $ac_status); } && { |
|
|
8472 | test -z "$ac_cxx_werror_flag" || |
|
|
8473 | test ! -s conftest.err |
|
|
8474 | } && test -s conftest.$ac_objext; then |
|
|
8475 | ac_cv_type_long_long=yes |
|
|
8476 | else |
|
|
8477 | echo "$as_me: failed program was:" >&5 |
|
|
8478 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8479 | |
|
|
8480 | ac_cv_type_long_long=no |
|
|
8481 | fi |
|
|
8482 | |
|
|
8483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8484 | fi |
|
|
8485 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8486 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8487 | |
|
|
8488 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8489 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8490 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8491 | # This bug is HP SR number 8606223364. |
|
|
8492 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8493 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8494 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8496 | else |
|
|
8497 | if test "$cross_compiling" = yes; then |
|
|
8498 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8499 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8500 | /* confdefs.h. */ |
|
|
8501 | _ACEOF |
|
|
8502 | cat confdefs.h >>conftest.$ac_ext |
|
|
8503 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8504 | /* end confdefs.h. */ |
|
|
8505 | $ac_includes_default |
|
|
8506 | typedef long long ac__type_sizeof_; |
|
|
8507 | int |
|
|
8508 | main () |
|
|
8509 | { |
|
|
8510 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8511 | test_array [0] = 0 |
|
|
8512 | |
|
|
8513 | ; |
|
|
8514 | return 0; |
|
|
8515 | } |
|
|
8516 | _ACEOF |
|
|
8517 | rm -f conftest.$ac_objext |
|
|
8518 | if { (ac_try="$ac_compile" |
|
|
8519 | case "(($ac_try" in |
|
|
8520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8521 | *) ac_try_echo=$ac_try;; |
|
|
8522 | esac |
|
|
8523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8524 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8525 | ac_status=$? |
|
|
8526 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8527 | rm -f conftest.er1 |
|
|
8528 | cat conftest.err >&5 |
|
|
8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8530 | (exit $ac_status); } && { |
|
|
8531 | test -z "$ac_cxx_werror_flag" || |
|
|
8532 | test ! -s conftest.err |
|
|
8533 | } && test -s conftest.$ac_objext; then |
|
|
8534 | ac_lo=0 ac_mid=0 |
|
|
8535 | while :; do |
|
|
8536 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8537 | /* confdefs.h. */ |
|
|
8538 | _ACEOF |
|
|
8539 | cat confdefs.h >>conftest.$ac_ext |
|
|
8540 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8541 | /* end confdefs.h. */ |
|
|
8542 | $ac_includes_default |
|
|
8543 | typedef long long ac__type_sizeof_; |
|
|
8544 | int |
|
|
8545 | main () |
|
|
8546 | { |
|
|
8547 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8548 | test_array [0] = 0 |
|
|
8549 | |
|
|
8550 | ; |
|
|
8551 | return 0; |
|
|
8552 | } |
|
|
8553 | _ACEOF |
|
|
8554 | rm -f conftest.$ac_objext |
|
|
8555 | if { (ac_try="$ac_compile" |
|
|
8556 | case "(($ac_try" in |
|
|
8557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8558 | *) ac_try_echo=$ac_try;; |
|
|
8559 | esac |
|
|
8560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8561 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8562 | ac_status=$? |
|
|
8563 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8564 | rm -f conftest.er1 |
|
|
8565 | cat conftest.err >&5 |
|
|
8566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8567 | (exit $ac_status); } && { |
|
|
8568 | test -z "$ac_cxx_werror_flag" || |
|
|
8569 | test ! -s conftest.err |
|
|
8570 | } && test -s conftest.$ac_objext; then |
|
|
8571 | ac_hi=$ac_mid; break |
|
|
8572 | else |
|
|
8573 | echo "$as_me: failed program was:" >&5 |
|
|
8574 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8575 | |
|
|
8576 | ac_lo=`expr $ac_mid + 1` |
|
|
8577 | if test $ac_lo -le $ac_mid; then |
|
|
8578 | ac_lo= ac_hi= |
|
|
8579 | break |
|
|
8580 | fi |
|
|
8581 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8582 | fi |
|
|
8583 | |
|
|
8584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8585 | done |
|
|
8586 | else |
|
|
8587 | echo "$as_me: failed program was:" >&5 |
|
|
8588 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8589 | |
|
|
8590 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8591 | /* confdefs.h. */ |
|
|
8592 | _ACEOF |
|
|
8593 | cat confdefs.h >>conftest.$ac_ext |
|
|
8594 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8595 | /* end confdefs.h. */ |
|
|
8596 | $ac_includes_default |
|
|
8597 | typedef long long ac__type_sizeof_; |
|
|
8598 | int |
|
|
8599 | main () |
|
|
8600 | { |
|
|
8601 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8602 | test_array [0] = 0 |
|
|
8603 | |
|
|
8604 | ; |
|
|
8605 | return 0; |
|
|
8606 | } |
|
|
8607 | _ACEOF |
|
|
8608 | rm -f conftest.$ac_objext |
|
|
8609 | if { (ac_try="$ac_compile" |
|
|
8610 | case "(($ac_try" in |
|
|
8611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8612 | *) ac_try_echo=$ac_try;; |
|
|
8613 | esac |
|
|
8614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8615 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8616 | ac_status=$? |
|
|
8617 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8618 | rm -f conftest.er1 |
|
|
8619 | cat conftest.err >&5 |
|
|
8620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8621 | (exit $ac_status); } && { |
|
|
8622 | test -z "$ac_cxx_werror_flag" || |
|
|
8623 | test ! -s conftest.err |
|
|
8624 | } && test -s conftest.$ac_objext; then |
|
|
8625 | ac_hi=-1 ac_mid=-1 |
|
|
8626 | while :; do |
|
|
8627 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8628 | /* confdefs.h. */ |
|
|
8629 | _ACEOF |
|
|
8630 | cat confdefs.h >>conftest.$ac_ext |
|
|
8631 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8632 | /* end confdefs.h. */ |
|
|
8633 | $ac_includes_default |
|
|
8634 | typedef long long ac__type_sizeof_; |
|
|
8635 | int |
|
|
8636 | main () |
|
|
8637 | { |
|
|
8638 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8639 | test_array [0] = 0 |
|
|
8640 | |
|
|
8641 | ; |
|
|
8642 | return 0; |
|
|
8643 | } |
|
|
8644 | _ACEOF |
|
|
8645 | rm -f conftest.$ac_objext |
|
|
8646 | if { (ac_try="$ac_compile" |
|
|
8647 | case "(($ac_try" in |
|
|
8648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8649 | *) ac_try_echo=$ac_try;; |
|
|
8650 | esac |
|
|
8651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8652 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8653 | ac_status=$? |
|
|
8654 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8655 | rm -f conftest.er1 |
|
|
8656 | cat conftest.err >&5 |
|
|
8657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8658 | (exit $ac_status); } && { |
|
|
8659 | test -z "$ac_cxx_werror_flag" || |
|
|
8660 | test ! -s conftest.err |
|
|
8661 | } && test -s conftest.$ac_objext; then |
|
|
8662 | ac_lo=$ac_mid; break |
|
|
8663 | else |
|
|
8664 | echo "$as_me: failed program was:" >&5 |
|
|
8665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8666 | |
|
|
8667 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8668 | if test $ac_mid -le $ac_hi; then |
|
|
8669 | ac_lo= ac_hi= |
|
|
8670 | break |
|
|
8671 | fi |
|
|
8672 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8673 | fi |
|
|
8674 | |
|
|
8675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8676 | done |
|
|
8677 | else |
|
|
8678 | echo "$as_me: failed program was:" >&5 |
|
|
8679 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8680 | |
|
|
8681 | ac_lo= ac_hi= |
|
|
8682 | fi |
|
|
8683 | |
|
|
8684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8685 | fi |
|
|
8686 | |
|
|
8687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8688 | # Binary search between lo and hi bounds. |
|
|
8689 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8690 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8691 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8692 | /* confdefs.h. */ |
|
|
8693 | _ACEOF |
|
|
8694 | cat confdefs.h >>conftest.$ac_ext |
|
|
8695 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8696 | /* end confdefs.h. */ |
|
|
8697 | $ac_includes_default |
|
|
8698 | typedef long long ac__type_sizeof_; |
|
|
8699 | int |
|
|
8700 | main () |
|
|
8701 | { |
|
|
8702 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8703 | test_array [0] = 0 |
|
|
8704 | |
|
|
8705 | ; |
|
|
8706 | return 0; |
|
|
8707 | } |
|
|
8708 | _ACEOF |
|
|
8709 | rm -f conftest.$ac_objext |
|
|
8710 | if { (ac_try="$ac_compile" |
|
|
8711 | case "(($ac_try" in |
|
|
8712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8713 | *) ac_try_echo=$ac_try;; |
|
|
8714 | esac |
|
|
8715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8716 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8717 | ac_status=$? |
|
|
8718 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8719 | rm -f conftest.er1 |
|
|
8720 | cat conftest.err >&5 |
|
|
8721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8722 | (exit $ac_status); } && { |
|
|
8723 | test -z "$ac_cxx_werror_flag" || |
|
|
8724 | test ! -s conftest.err |
|
|
8725 | } && test -s conftest.$ac_objext; then |
|
|
8726 | ac_hi=$ac_mid |
|
|
8727 | else |
|
|
8728 | echo "$as_me: failed program was:" >&5 |
|
|
8729 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8730 | |
|
|
8731 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8732 | fi |
|
|
8733 | |
|
|
8734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8735 | done |
|
|
8736 | case $ac_lo in |
|
|
8737 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
8738 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
8739 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8740 | See \`config.log' for more details." >&5 |
|
|
8741 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8742 | See \`config.log' for more details." >&2;} |
|
|
8743 | { (exit 77); exit 77; }; } |
|
|
8744 | else |
|
|
8745 | ac_cv_sizeof_long_long=0 |
|
|
8746 | fi ;; |
|
|
8747 | esac |
|
|
8748 | else |
|
|
8749 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8750 | /* confdefs.h. */ |
|
|
8751 | _ACEOF |
|
|
8752 | cat confdefs.h >>conftest.$ac_ext |
|
|
8753 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8754 | /* end confdefs.h. */ |
|
|
8755 | $ac_includes_default |
|
|
8756 | typedef long long ac__type_sizeof_; |
|
|
8757 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8758 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8759 | #include <stdio.h> |
|
|
8760 | #include <stdlib.h> |
|
|
8761 | int |
|
|
8762 | main () |
|
|
8763 | { |
|
|
8764 | |
|
|
8765 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8766 | if (! f) |
|
|
8767 | return 1; |
|
|
8768 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8769 | { |
|
|
8770 | long int i = longval (); |
|
|
8771 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8772 | return 1; |
|
|
8773 | fprintf (f, "%ld\n", i); |
|
|
8774 | } |
|
|
8775 | else |
|
|
8776 | { |
|
|
8777 | unsigned long int i = ulongval (); |
|
|
8778 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8779 | return 1; |
|
|
8780 | fprintf (f, "%lu\n", i); |
|
|
8781 | } |
|
|
8782 | return ferror (f) || fclose (f) != 0; |
|
|
8783 | |
|
|
8784 | ; |
|
|
8785 | return 0; |
|
|
8786 | } |
|
|
8787 | _ACEOF |
|
|
8788 | rm -f conftest$ac_exeext |
|
|
8789 | if { (ac_try="$ac_link" |
|
|
8790 | case "(($ac_try" in |
|
|
8791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8792 | *) ac_try_echo=$ac_try;; |
|
|
8793 | esac |
|
|
8794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8795 | (eval "$ac_link") 2>&5 |
|
|
8796 | ac_status=$? |
|
|
8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8798 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8799 | { (case "(($ac_try" in |
|
|
8800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8801 | *) ac_try_echo=$ac_try;; |
|
|
8802 | esac |
|
|
8803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8804 | (eval "$ac_try") 2>&5 |
|
|
8805 | ac_status=$? |
|
|
8806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8807 | (exit $ac_status); }; }; then |
|
|
8808 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
8809 | else |
|
|
8810 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8811 | echo "$as_me: failed program was:" >&5 |
|
|
8812 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8813 | |
|
|
8814 | ( exit $ac_status ) |
|
|
8815 | if test "$ac_cv_type_long_long" = yes; then |
|
|
8816 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8817 | See \`config.log' for more details." >&5 |
|
|
8818 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8819 | See \`config.log' for more details." >&2;} |
|
|
8820 | { (exit 77); exit 77; }; } |
|
|
8821 | else |
|
|
8822 | ac_cv_sizeof_long_long=0 |
|
|
8823 | fi |
|
|
8824 | fi |
|
|
8825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8826 | fi |
|
|
8827 | rm -f conftest.val |
|
|
8828 | fi |
|
|
8829 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
8830 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
8831 | |
|
|
8832 | |
|
|
8833 | |
|
|
8834 | cat >>confdefs.h <<_ACEOF |
|
|
8835 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
8836 | _ACEOF |
|
|
8837 | |
|
|
8838 | |
|
|
8839 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
8840 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
8841 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
8842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8843 | else |
|
|
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_new_; |
|
|
8852 | int |
|
|
8853 | main () |
|
|
8854 | { |
|
|
8855 | if ((ac__type_new_ *) 0) |
|
|
8856 | return 0; |
|
|
8857 | if (sizeof (ac__type_new_)) |
|
|
8858 | return 0; |
|
|
8859 | ; |
|
|
8860 | return 0; |
|
|
8861 | } |
|
|
8862 | _ACEOF |
|
|
8863 | rm -f conftest.$ac_objext |
|
|
8864 | if { (ac_try="$ac_compile" |
|
|
8865 | case "(($ac_try" in |
|
|
8866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8867 | *) ac_try_echo=$ac_try;; |
|
|
8868 | esac |
|
|
8869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8870 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8871 | ac_status=$? |
|
|
8872 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8873 | rm -f conftest.er1 |
|
|
8874 | cat conftest.err >&5 |
|
|
8875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8876 | (exit $ac_status); } && { |
|
|
8877 | test -z "$ac_cxx_werror_flag" || |
|
|
8878 | test ! -s conftest.err |
|
|
8879 | } && test -s conftest.$ac_objext; then |
|
|
8880 | ac_cv_type_int_p=yes |
|
|
8881 | else |
|
|
8882 | echo "$as_me: failed program was:" >&5 |
|
|
8883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8884 | |
|
|
8885 | ac_cv_type_int_p=no |
|
|
8886 | fi |
|
|
8887 | |
|
|
8888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8889 | fi |
|
|
8890 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
8891 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
8892 | |
|
|
8893 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8894 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8895 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8896 | # This bug is HP SR number 8606223364. |
|
|
8897 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
8898 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
8899 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
8900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8901 | else |
|
|
8902 | if test "$cross_compiling" = yes; then |
|
|
8903 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8904 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8905 | /* confdefs.h. */ |
|
|
8906 | _ACEOF |
|
|
8907 | cat confdefs.h >>conftest.$ac_ext |
|
|
8908 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8909 | /* end confdefs.h. */ |
|
|
8910 | $ac_includes_default |
|
|
8911 | typedef int * ac__type_sizeof_; |
|
|
8912 | int |
|
|
8913 | main () |
|
|
8914 | { |
|
|
8915 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8916 | test_array [0] = 0 |
|
|
8917 | |
|
|
8918 | ; |
|
|
8919 | return 0; |
|
|
8920 | } |
|
|
8921 | _ACEOF |
|
|
8922 | rm -f conftest.$ac_objext |
|
|
8923 | if { (ac_try="$ac_compile" |
|
|
8924 | case "(($ac_try" in |
|
|
8925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8926 | *) ac_try_echo=$ac_try;; |
|
|
8927 | esac |
|
|
8928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8929 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8930 | ac_status=$? |
|
|
8931 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8932 | rm -f conftest.er1 |
|
|
8933 | cat conftest.err >&5 |
|
|
8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8935 | (exit $ac_status); } && { |
|
|
8936 | test -z "$ac_cxx_werror_flag" || |
|
|
8937 | test ! -s conftest.err |
|
|
8938 | } && test -s conftest.$ac_objext; then |
|
|
8939 | ac_lo=0 ac_mid=0 |
|
|
8940 | while :; do |
|
|
8941 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8942 | /* confdefs.h. */ |
|
|
8943 | _ACEOF |
|
|
8944 | cat confdefs.h >>conftest.$ac_ext |
|
|
8945 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8946 | /* end confdefs.h. */ |
|
|
8947 | $ac_includes_default |
|
|
8948 | typedef int * ac__type_sizeof_; |
|
|
8949 | int |
|
|
8950 | main () |
|
|
8951 | { |
|
|
8952 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8953 | test_array [0] = 0 |
|
|
8954 | |
|
|
8955 | ; |
|
|
8956 | return 0; |
|
|
8957 | } |
|
|
8958 | _ACEOF |
|
|
8959 | rm -f conftest.$ac_objext |
|
|
8960 | if { (ac_try="$ac_compile" |
|
|
8961 | case "(($ac_try" in |
|
|
8962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8963 | *) ac_try_echo=$ac_try;; |
|
|
8964 | esac |
|
|
8965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8966 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8967 | ac_status=$? |
|
|
8968 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8969 | rm -f conftest.er1 |
|
|
8970 | cat conftest.err >&5 |
|
|
8971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8972 | (exit $ac_status); } && { |
|
|
8973 | test -z "$ac_cxx_werror_flag" || |
|
|
8974 | test ! -s conftest.err |
|
|
8975 | } && test -s conftest.$ac_objext; then |
|
|
8976 | ac_hi=$ac_mid; break |
|
|
8977 | else |
|
|
8978 | echo "$as_me: failed program was:" >&5 |
|
|
8979 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8980 | |
|
|
8981 | ac_lo=`expr $ac_mid + 1` |
|
|
8982 | if test $ac_lo -le $ac_mid; then |
|
|
8983 | ac_lo= ac_hi= |
|
|
8984 | break |
|
|
8985 | fi |
|
|
8986 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8987 | fi |
|
|
8988 | |
|
|
8989 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8990 | done |
|
|
8991 | else |
|
|
8992 | echo "$as_me: failed program was:" >&5 |
|
|
8993 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8994 | |
|
|
8995 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8996 | /* confdefs.h. */ |
|
|
8997 | _ACEOF |
|
|
8998 | cat confdefs.h >>conftest.$ac_ext |
|
|
8999 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9000 | /* end confdefs.h. */ |
|
|
9001 | $ac_includes_default |
|
|
9002 | typedef int * ac__type_sizeof_; |
|
|
9003 | int |
|
|
9004 | main () |
|
|
9005 | { |
|
|
9006 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9007 | test_array [0] = 0 |
|
|
9008 | |
|
|
9009 | ; |
|
|
9010 | return 0; |
|
|
9011 | } |
|
|
9012 | _ACEOF |
|
|
9013 | rm -f conftest.$ac_objext |
|
|
9014 | if { (ac_try="$ac_compile" |
|
|
9015 | case "(($ac_try" in |
|
|
9016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9017 | *) ac_try_echo=$ac_try;; |
|
|
9018 | esac |
|
|
9019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9020 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9021 | ac_status=$? |
|
|
9022 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9023 | rm -f conftest.er1 |
|
|
9024 | cat conftest.err >&5 |
|
|
9025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9026 | (exit $ac_status); } && { |
|
|
9027 | test -z "$ac_cxx_werror_flag" || |
|
|
9028 | test ! -s conftest.err |
|
|
9029 | } && test -s conftest.$ac_objext; then |
|
|
9030 | ac_hi=-1 ac_mid=-1 |
|
|
9031 | while :; do |
|
|
9032 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9033 | /* confdefs.h. */ |
|
|
9034 | _ACEOF |
|
|
9035 | cat confdefs.h >>conftest.$ac_ext |
|
|
9036 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9037 | /* end confdefs.h. */ |
|
|
9038 | $ac_includes_default |
|
|
9039 | typedef int * ac__type_sizeof_; |
|
|
9040 | int |
|
|
9041 | main () |
|
|
9042 | { |
|
|
9043 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9044 | test_array [0] = 0 |
|
|
9045 | |
|
|
9046 | ; |
|
|
9047 | return 0; |
|
|
9048 | } |
|
|
9049 | _ACEOF |
|
|
9050 | rm -f conftest.$ac_objext |
|
|
9051 | if { (ac_try="$ac_compile" |
|
|
9052 | case "(($ac_try" in |
|
|
9053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9054 | *) ac_try_echo=$ac_try;; |
|
|
9055 | esac |
|
|
9056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9057 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9058 | ac_status=$? |
|
|
9059 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9060 | rm -f conftest.er1 |
|
|
9061 | cat conftest.err >&5 |
|
|
9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9063 | (exit $ac_status); } && { |
|
|
9064 | test -z "$ac_cxx_werror_flag" || |
|
|
9065 | test ! -s conftest.err |
|
|
9066 | } && test -s conftest.$ac_objext; then |
|
|
9067 | ac_lo=$ac_mid; break |
|
|
9068 | else |
|
|
9069 | echo "$as_me: failed program was:" >&5 |
|
|
9070 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9071 | |
|
|
9072 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9073 | if test $ac_mid -le $ac_hi; then |
|
|
9074 | ac_lo= ac_hi= |
|
|
9075 | break |
|
|
9076 | fi |
|
|
9077 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9078 | fi |
|
|
9079 | |
|
|
9080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9081 | done |
|
|
9082 | else |
|
|
9083 | echo "$as_me: failed program was:" >&5 |
|
|
9084 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9085 | |
|
|
9086 | ac_lo= ac_hi= |
|
|
9087 | fi |
|
|
9088 | |
|
|
9089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9090 | fi |
|
|
9091 | |
|
|
9092 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9093 | # Binary search between lo and hi bounds. |
|
|
9094 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9095 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9096 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9097 | /* confdefs.h. */ |
|
|
9098 | _ACEOF |
|
|
9099 | cat confdefs.h >>conftest.$ac_ext |
|
|
9100 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9101 | /* end confdefs.h. */ |
|
|
9102 | $ac_includes_default |
|
|
9103 | typedef int * ac__type_sizeof_; |
|
|
9104 | int |
|
|
9105 | main () |
|
|
9106 | { |
|
|
9107 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9108 | test_array [0] = 0 |
|
|
9109 | |
|
|
9110 | ; |
|
|
9111 | return 0; |
|
|
9112 | } |
|
|
9113 | _ACEOF |
|
|
9114 | rm -f conftest.$ac_objext |
|
|
9115 | if { (ac_try="$ac_compile" |
|
|
9116 | case "(($ac_try" in |
|
|
9117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9118 | *) ac_try_echo=$ac_try;; |
|
|
9119 | esac |
|
|
9120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9121 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9122 | ac_status=$? |
|
|
9123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9124 | rm -f conftest.er1 |
|
|
9125 | cat conftest.err >&5 |
|
|
9126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9127 | (exit $ac_status); } && { |
|
|
9128 | test -z "$ac_cxx_werror_flag" || |
|
|
9129 | test ! -s conftest.err |
|
|
9130 | } && test -s conftest.$ac_objext; then |
|
|
9131 | ac_hi=$ac_mid |
|
|
9132 | else |
|
|
9133 | echo "$as_me: failed program was:" >&5 |
|
|
9134 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9135 | |
|
|
9136 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9137 | fi |
|
|
9138 | |
|
|
9139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9140 | done |
|
|
9141 | case $ac_lo in |
|
|
9142 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9143 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9144 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9145 | See \`config.log' for more details." >&5 |
|
|
9146 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9147 | See \`config.log' for more details." >&2;} |
|
|
9148 | { (exit 77); exit 77; }; } |
|
|
9149 | else |
|
|
9150 | ac_cv_sizeof_int_p=0 |
|
|
9151 | fi ;; |
|
|
9152 | esac |
|
|
9153 | else |
|
|
9154 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9155 | /* confdefs.h. */ |
|
|
9156 | _ACEOF |
|
|
9157 | cat confdefs.h >>conftest.$ac_ext |
|
|
9158 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9159 | /* end confdefs.h. */ |
|
|
9160 | $ac_includes_default |
|
|
9161 | typedef int * ac__type_sizeof_; |
|
|
9162 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9163 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9164 | #include <stdio.h> |
|
|
9165 | #include <stdlib.h> |
|
|
9166 | int |
|
|
9167 | main () |
|
|
9168 | { |
|
|
9169 | |
|
|
9170 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9171 | if (! f) |
|
|
9172 | return 1; |
|
|
9173 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9174 | { |
|
|
9175 | long int i = longval (); |
|
|
9176 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9177 | return 1; |
|
|
9178 | fprintf (f, "%ld\n", i); |
|
|
9179 | } |
|
|
9180 | else |
|
|
9181 | { |
|
|
9182 | unsigned long int i = ulongval (); |
|
|
9183 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9184 | return 1; |
|
|
9185 | fprintf (f, "%lu\n", i); |
|
|
9186 | } |
|
|
9187 | return ferror (f) || fclose (f) != 0; |
|
|
9188 | |
|
|
9189 | ; |
|
|
9190 | return 0; |
|
|
9191 | } |
|
|
9192 | _ACEOF |
|
|
9193 | rm -f conftest$ac_exeext |
|
|
9194 | if { (ac_try="$ac_link" |
|
|
9195 | case "(($ac_try" in |
|
|
9196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9197 | *) ac_try_echo=$ac_try;; |
|
|
9198 | esac |
|
|
9199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9200 | (eval "$ac_link") 2>&5 |
|
|
9201 | ac_status=$? |
|
|
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9204 | { (case "(($ac_try" in |
|
|
9205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9206 | *) ac_try_echo=$ac_try;; |
|
|
9207 | esac |
|
|
9208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9209 | (eval "$ac_try") 2>&5 |
|
|
9210 | ac_status=$? |
|
|
9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9212 | (exit $ac_status); }; }; then |
|
|
9213 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9214 | else |
|
|
9215 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9216 | echo "$as_me: failed program was:" >&5 |
|
|
9217 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9218 | |
|
|
9219 | ( exit $ac_status ) |
|
|
9220 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9221 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9222 | See \`config.log' for more details." >&5 |
|
|
9223 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9224 | See \`config.log' for more details." >&2;} |
|
|
9225 | { (exit 77); exit 77; }; } |
|
|
9226 | else |
|
|
9227 | ac_cv_sizeof_int_p=0 |
|
|
9228 | fi |
|
|
9229 | fi |
|
|
9230 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9231 | fi |
|
|
9232 | rm -f conftest.val |
|
|
9233 | fi |
|
|
9234 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9235 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9236 | |
|
|
9237 | |
|
|
9238 | |
|
|
9239 | cat >>confdefs.h <<_ACEOF |
|
|
9240 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9241 | _ACEOF |
|
|
9242 | |
|
|
9243 | |
|
|
9244 | |
|
|
9245 | |
|
|
9246 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9247 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9248 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9250 | else |
|
|
9251 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9252 | /* confdefs.h. */ |
|
|
9253 | _ACEOF |
|
|
9254 | cat confdefs.h >>conftest.$ac_ext |
|
|
9255 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9256 | /* end confdefs.h. */ |
|
|
9257 | #include <stdint.h> |
|
|
9258 | int |
|
|
9259 | main () |
|
|
9260 | { |
|
|
9261 | int16_t dummy; |
|
|
9262 | ; |
|
|
9263 | return 0; |
|
|
9264 | } |
|
|
9265 | _ACEOF |
|
|
9266 | rm -f conftest.$ac_objext |
|
|
9267 | if { (ac_try="$ac_compile" |
|
|
9268 | case "(($ac_try" in |
|
|
9269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9270 | *) ac_try_echo=$ac_try;; |
|
|
9271 | esac |
|
|
9272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9273 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9274 | ac_status=$? |
|
|
9275 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9276 | rm -f conftest.er1 |
|
|
9277 | cat conftest.err >&5 |
|
|
9278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9279 | (exit $ac_status); } && { |
|
|
9280 | test -z "$ac_cxx_werror_flag" || |
|
|
9281 | test ! -s conftest.err |
|
|
9282 | } && test -s conftest.$ac_objext; then |
|
|
9283 | rxvt_cv_int16_t=yes |
|
|
9284 | else |
|
|
9285 | echo "$as_me: failed program was:" >&5 |
|
|
9286 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9287 | |
|
|
9288 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9289 | rxvt_cv_int16_t=" char" |
|
|
9290 | else |
|
|
9291 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9292 | rxvt_cv_int16_t=" short" |
|
|
9293 | else |
|
|
9294 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9295 | rxvt_cv_int16_t=" int" |
|
|
9296 | else |
|
|
9297 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9298 | rxvt_cv_int16_t=" long" |
|
|
9299 | else |
|
|
9300 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9301 | rxvt_cv_int16_t=" long long" |
|
|
9302 | else |
|
|
9303 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9304 | fi |
|
|
9305 | fi |
|
|
9306 | fi |
|
|
9307 | fi |
|
|
9308 | fi |
|
|
9309 | fi |
|
|
9310 | |
|
|
9311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9312 | fi |
|
|
9313 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9314 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9315 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9316 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9317 | else |
|
|
9318 | if test x"" = x; then |
|
|
9319 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9320 | else |
|
|
9321 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9322 | fi |
|
|
9323 | fi |
|
|
9324 | |
|
|
9325 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9326 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9327 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9329 | else |
|
|
9330 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9331 | /* confdefs.h. */ |
|
|
9332 | _ACEOF |
|
|
9333 | cat confdefs.h >>conftest.$ac_ext |
|
|
9334 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9335 | /* end confdefs.h. */ |
|
|
9336 | #include <stdint.h> |
|
|
9337 | int |
|
|
9338 | main () |
|
|
9339 | { |
|
|
9340 | uint16_t dummy; |
|
|
9341 | ; |
|
|
9342 | return 0; |
|
|
9343 | } |
|
|
9344 | _ACEOF |
|
|
9345 | rm -f conftest.$ac_objext |
|
|
9346 | if { (ac_try="$ac_compile" |
|
|
9347 | case "(($ac_try" in |
|
|
9348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9349 | *) ac_try_echo=$ac_try;; |
|
|
9350 | esac |
|
|
9351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9352 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9353 | ac_status=$? |
|
|
9354 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9355 | rm -f conftest.er1 |
|
|
9356 | cat conftest.err >&5 |
|
|
9357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9358 | (exit $ac_status); } && { |
|
|
9359 | test -z "$ac_cxx_werror_flag" || |
|
|
9360 | test ! -s conftest.err |
|
|
9361 | } && test -s conftest.$ac_objext; then |
|
|
9362 | rxvt_cv_uint16_t=yes |
|
|
9363 | else |
|
|
9364 | echo "$as_me: failed program was:" >&5 |
|
|
9365 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9366 | |
|
|
9367 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9368 | rxvt_cv_uint16_t="unsigned char" |
|
|
9369 | else |
|
|
9370 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9371 | rxvt_cv_uint16_t="unsigned short" |
|
|
9372 | else |
|
|
9373 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9374 | rxvt_cv_uint16_t="unsigned int" |
|
|
9375 | else |
|
|
9376 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9377 | rxvt_cv_uint16_t="unsigned long" |
|
|
9378 | else |
|
|
9379 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9380 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9381 | else |
|
|
9382 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9383 | fi |
|
|
9384 | fi |
|
|
9385 | fi |
|
|
9386 | fi |
|
|
9387 | fi |
|
|
9388 | fi |
|
|
9389 | |
|
|
9390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9391 | fi |
|
|
9392 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9393 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9394 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9395 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9396 | else |
|
|
9397 | if test x"unsigned" = x; then |
|
|
9398 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9399 | else |
|
|
9400 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9401 | fi |
|
|
9402 | fi |
|
|
9403 | |
|
|
9404 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9405 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9406 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9408 | else |
|
|
9409 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9410 | /* confdefs.h. */ |
|
|
9411 | _ACEOF |
|
|
9412 | cat confdefs.h >>conftest.$ac_ext |
|
|
9413 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9414 | /* end confdefs.h. */ |
|
|
9415 | #include <stdint.h> |
|
|
9416 | int |
|
|
9417 | main () |
|
|
9418 | { |
|
|
9419 | int32_t dummy; |
|
|
9420 | ; |
|
|
9421 | return 0; |
|
|
9422 | } |
|
|
9423 | _ACEOF |
|
|
9424 | rm -f conftest.$ac_objext |
|
|
9425 | if { (ac_try="$ac_compile" |
|
|
9426 | case "(($ac_try" in |
|
|
9427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9428 | *) ac_try_echo=$ac_try;; |
|
|
9429 | esac |
|
|
9430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9431 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9432 | ac_status=$? |
|
|
9433 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9434 | rm -f conftest.er1 |
|
|
9435 | cat conftest.err >&5 |
|
|
9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9437 | (exit $ac_status); } && { |
|
|
9438 | test -z "$ac_cxx_werror_flag" || |
|
|
9439 | test ! -s conftest.err |
|
|
9440 | } && test -s conftest.$ac_objext; then |
|
|
9441 | rxvt_cv_int32_t=yes |
|
|
9442 | else |
|
|
9443 | echo "$as_me: failed program was:" >&5 |
|
|
9444 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9445 | |
|
|
9446 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9447 | rxvt_cv_int32_t=" char" |
|
|
9448 | else |
|
|
9449 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9450 | rxvt_cv_int32_t=" short" |
|
|
9451 | else |
|
|
9452 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9453 | rxvt_cv_int32_t=" int" |
|
|
9454 | else |
|
|
9455 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9456 | rxvt_cv_int32_t=" long" |
|
|
9457 | else |
|
|
9458 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9459 | rxvt_cv_int32_t=" long long" |
|
|
9460 | else |
|
|
9461 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9462 | fi |
|
|
9463 | fi |
|
|
9464 | fi |
|
|
9465 | fi |
|
|
9466 | fi |
|
|
9467 | fi |
|
|
9468 | |
|
|
9469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9470 | fi |
|
|
9471 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9472 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9473 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9474 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9475 | else |
|
|
9476 | if test x"" = x; then |
|
|
9477 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9478 | else |
|
|
9479 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9480 | fi |
|
|
9481 | fi |
|
|
9482 | |
|
|
9483 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9484 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9485 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9487 | else |
|
|
9488 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9489 | /* confdefs.h. */ |
|
|
9490 | _ACEOF |
|
|
9491 | cat confdefs.h >>conftest.$ac_ext |
|
|
9492 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9493 | /* end confdefs.h. */ |
|
|
9494 | #include <stdint.h> |
|
|
9495 | int |
|
|
9496 | main () |
|
|
9497 | { |
|
|
9498 | uint32_t dummy; |
|
|
9499 | ; |
|
|
9500 | return 0; |
|
|
9501 | } |
|
|
9502 | _ACEOF |
|
|
9503 | rm -f conftest.$ac_objext |
|
|
9504 | if { (ac_try="$ac_compile" |
|
|
9505 | case "(($ac_try" in |
|
|
9506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9507 | *) ac_try_echo=$ac_try;; |
|
|
9508 | esac |
|
|
9509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9510 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9511 | ac_status=$? |
|
|
9512 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9513 | rm -f conftest.er1 |
|
|
9514 | cat conftest.err >&5 |
|
|
9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9516 | (exit $ac_status); } && { |
|
|
9517 | test -z "$ac_cxx_werror_flag" || |
|
|
9518 | test ! -s conftest.err |
|
|
9519 | } && test -s conftest.$ac_objext; then |
|
|
9520 | rxvt_cv_uint32_t=yes |
|
|
9521 | else |
|
|
9522 | echo "$as_me: failed program was:" >&5 |
|
|
9523 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9524 | |
|
|
9525 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9526 | rxvt_cv_uint32_t="unsigned char" |
|
|
9527 | else |
|
|
9528 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9529 | rxvt_cv_uint32_t="unsigned short" |
|
|
9530 | else |
|
|
9531 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9532 | rxvt_cv_uint32_t="unsigned int" |
|
|
9533 | else |
|
|
9534 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9535 | rxvt_cv_uint32_t="unsigned long" |
|
|
9536 | else |
|
|
9537 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9538 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9539 | else |
|
|
9540 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9541 | fi |
|
|
9542 | fi |
|
|
9543 | fi |
|
|
9544 | fi |
|
|
9545 | fi |
|
|
9546 | fi |
|
|
9547 | |
|
|
9548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9549 | fi |
|
|
9550 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9551 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9552 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9553 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9554 | else |
|
|
9555 | if test x"unsigned" = x; then |
|
|
9556 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9557 | else |
|
|
9558 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9559 | fi |
|
|
9560 | fi |
|
|
9561 | |
|
|
9562 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9563 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9564 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9565 | else |
|
|
9566 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9567 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9568 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9569 | else |
|
|
9570 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9571 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9572 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9573 | else |
|
|
9574 | rxvt_intp_define="#error set intp_t" |
|
|
9575 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9576 | fi |
|
|
9577 | fi |
|
|
9578 | fi |
|
|
9579 | |
|
|
9580 | |
|
|
9581 | |
|
|
9582 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9583 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9584 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9586 | else |
|
|
9587 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9588 | /* confdefs.h. */ |
|
|
9589 | _ACEOF |
|
|
9590 | cat confdefs.h >>conftest.$ac_ext |
|
|
9591 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9592 | /* end confdefs.h. */ |
|
|
9593 | #include <sys/types.h> |
|
|
9594 | #include <signal.h> |
|
|
9595 | |
|
|
9596 | int |
|
|
9597 | main () |
|
|
9598 | { |
|
|
9599 | return *(signal (0, 0)) (0) == 1; |
|
|
9600 | ; |
|
|
9601 | return 0; |
|
|
9602 | } |
|
|
9603 | _ACEOF |
|
|
9604 | rm -f conftest.$ac_objext |
|
|
9605 | if { (ac_try="$ac_compile" |
|
|
9606 | case "(($ac_try" in |
|
|
9607 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9608 | *) ac_try_echo=$ac_try;; |
|
|
9609 | esac |
|
|
9610 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9611 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9612 | ac_status=$? |
|
|
9613 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9614 | rm -f conftest.er1 |
|
|
9615 | cat conftest.err >&5 |
|
|
9616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9617 | (exit $ac_status); } && { |
|
|
9618 | test -z "$ac_cxx_werror_flag" || |
|
|
9619 | test ! -s conftest.err |
|
|
9620 | } && test -s conftest.$ac_objext; then |
|
|
9621 | ac_cv_type_signal=int |
|
|
9622 | else |
|
|
9623 | echo "$as_me: failed program was:" >&5 |
|
|
9624 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9625 | |
|
|
9626 | ac_cv_type_signal=void |
|
|
9627 | fi |
|
|
9628 | |
|
|
9629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9630 | fi |
|
|
9631 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9632 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9633 | |
|
|
9634 | cat >>confdefs.h <<_ACEOF |
|
|
9635 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9636 | _ACEOF |
|
|
9637 | |
|
|
9638 | |
8467 | |
9639 | |
8468 | |
9640 | |
8469 | |
9641 | for ac_func in unsetenv |
8470 | for ac_func in unsetenv |
9642 | do |
8471 | do |
… | |
… | |
9883 | fi |
8712 | fi |
9884 | done |
8713 | done |
9885 | |
8714 | |
9886 | |
8715 | |
9887 | |
8716 | |
9888 | |
|
|
9889 | |
|
|
9890 | for ac_header in \ |
8717 | for ac_header in lastlog.h |
9891 | utmp.h \ |
|
|
9892 | utmpx.h \ |
|
|
9893 | lastlog.h \ |
|
|
9894 | |
|
|
9895 | do |
8718 | do |
9896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8719 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
9897 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8720 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9898 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8721 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8722 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10030 | |
8853 | |
10031 | done |
8854 | done |
10032 | |
8855 | |
10033 | |
8856 | |
10034 | |
8857 | |
10035 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8858 | |
|
|
8859 | for ac_header in utmp.h |
|
|
8860 | do |
|
|
8861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8862 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10036 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8863 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10037 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10038 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8865 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10040 | fi |
8867 | fi |
|
|
8868 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10041 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8869 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10042 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8870 | echo "${ECHO_T}$ac_res" >&6; } |
10043 | else |
8871 | else |
10044 | # Is the header compilable? |
8872 | # Is the header compilable? |
10045 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8873 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10046 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8874 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10047 | cat >conftest.$ac_ext <<_ACEOF |
8875 | cat >conftest.$ac_ext <<_ACEOF |
10048 | /* confdefs.h. */ |
8876 | /* confdefs.h. */ |
10049 | _ACEOF |
8877 | _ACEOF |
10050 | cat confdefs.h >>conftest.$ac_ext |
8878 | cat confdefs.h >>conftest.$ac_ext |
10051 | cat >>conftest.$ac_ext <<_ACEOF |
8879 | cat >>conftest.$ac_ext <<_ACEOF |
10052 | /* end confdefs.h. */ |
8880 | /* end confdefs.h. */ |
10053 | $ac_includes_default |
8881 | $ac_includes_default |
10054 | #include <utmp.h> |
8882 | #include <$ac_header> |
10055 | _ACEOF |
8883 | _ACEOF |
10056 | rm -f conftest.$ac_objext |
8884 | rm -f conftest.$ac_objext |
10057 | if { (ac_try="$ac_compile" |
8885 | if { (ac_try="$ac_compile" |
10058 | case "(($ac_try" in |
8886 | case "(($ac_try" in |
10059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8887 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10082 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8910 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10083 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8911 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10084 | |
8912 | |
10085 | # Is the header present? |
8913 | # Is the header present? |
10086 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8914 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10087 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10088 | cat >conftest.$ac_ext <<_ACEOF |
8916 | cat >conftest.$ac_ext <<_ACEOF |
10089 | /* confdefs.h. */ |
8917 | /* confdefs.h. */ |
10090 | _ACEOF |
8918 | _ACEOF |
10091 | cat confdefs.h >>conftest.$ac_ext |
8919 | cat confdefs.h >>conftest.$ac_ext |
10092 | cat >>conftest.$ac_ext <<_ACEOF |
8920 | cat >>conftest.$ac_ext <<_ACEOF |
10093 | /* end confdefs.h. */ |
8921 | /* end confdefs.h. */ |
10094 | #include <utmp.h> |
8922 | #include <$ac_header> |
10095 | _ACEOF |
8923 | _ACEOF |
10096 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10097 | case "(($ac_try" in |
8925 | case "(($ac_try" in |
10098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10099 | *) ac_try_echo=$ac_try;; |
8927 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10122 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8950 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10123 | |
8951 | |
10124 | # So? What about this header? |
8952 | # So? What about this header? |
10125 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8953 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10126 | yes:no: ) |
8954 | yes:no: ) |
10127 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10128 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10129 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10130 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10131 | ac_header_preproc=yes |
8959 | ac_header_preproc=yes |
10132 | ;; |
8960 | ;; |
10133 | no:yes:* ) |
8961 | no:yes:* ) |
10134 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10135 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10136 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10137 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10138 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10139 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10140 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10141 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10142 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10143 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10144 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10145 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10146 | |
8974 | |
10147 | ;; |
8975 | ;; |
10148 | esac |
8976 | esac |
10149 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8977 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10150 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10151 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8979 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10153 | else |
8981 | else |
10154 | ac_cv_header_utmp_h=$ac_header_preproc |
8982 | eval "$as_ac_Header=\$ac_header_preproc" |
10155 | fi |
8983 | fi |
|
|
8984 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10156 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10157 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8986 | echo "${ECHO_T}$ac_res" >&6; } |
10158 | |
8987 | |
10159 | fi |
8988 | fi |
10160 | if test $ac_cv_header_utmp_h = yes; then |
8989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8990 | cat >>confdefs.h <<_ACEOF |
|
|
8991 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8992 | _ACEOF |
10161 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8993 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10162 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8994 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10163 | if test "${struct_utmp+set}" = set; then |
8995 | if test "${struct_utmp+set}" = set; then |
10164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10165 | else |
8997 | else |
10166 | cat >conftest.$ac_ext <<_ACEOF |
8998 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10333 | |
9165 | |
10334 | fi |
9166 | fi |
10335 | |
9167 | |
10336 | fi |
9168 | fi |
10337 | |
9169 | |
|
|
9170 | done |
10338 | |
9171 | |
10339 | |
9172 | |
10340 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9173 | |
|
|
9174 | for ac_header in utmpx.h |
|
|
9175 | do |
|
|
9176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9177 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10341 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9178 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10342 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10343 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9180 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10345 | fi |
9182 | fi |
|
|
9183 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10346 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10347 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9185 | echo "${ECHO_T}$ac_res" >&6; } |
10348 | else |
9186 | else |
10349 | # Is the header compilable? |
9187 | # Is the header compilable? |
10350 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9188 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10351 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10352 | cat >conftest.$ac_ext <<_ACEOF |
9190 | cat >conftest.$ac_ext <<_ACEOF |
10353 | /* confdefs.h. */ |
9191 | /* confdefs.h. */ |
10354 | _ACEOF |
9192 | _ACEOF |
10355 | cat confdefs.h >>conftest.$ac_ext |
9193 | cat confdefs.h >>conftest.$ac_ext |
10356 | cat >>conftest.$ac_ext <<_ACEOF |
9194 | cat >>conftest.$ac_ext <<_ACEOF |
10357 | /* end confdefs.h. */ |
9195 | /* end confdefs.h. */ |
10358 | $ac_includes_default |
9196 | $ac_includes_default |
10359 | #include <utmpx.h> |
9197 | #include <$ac_header> |
10360 | _ACEOF |
9198 | _ACEOF |
10361 | rm -f conftest.$ac_objext |
9199 | rm -f conftest.$ac_objext |
10362 | if { (ac_try="$ac_compile" |
9200 | if { (ac_try="$ac_compile" |
10363 | case "(($ac_try" in |
9201 | case "(($ac_try" in |
10364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10387 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9225 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10388 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9226 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10389 | |
9227 | |
10390 | # Is the header present? |
9228 | # Is the header present? |
10391 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9229 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10392 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9230 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10393 | cat >conftest.$ac_ext <<_ACEOF |
9231 | cat >conftest.$ac_ext <<_ACEOF |
10394 | /* confdefs.h. */ |
9232 | /* confdefs.h. */ |
10395 | _ACEOF |
9233 | _ACEOF |
10396 | cat confdefs.h >>conftest.$ac_ext |
9234 | cat confdefs.h >>conftest.$ac_ext |
10397 | cat >>conftest.$ac_ext <<_ACEOF |
9235 | cat >>conftest.$ac_ext <<_ACEOF |
10398 | /* end confdefs.h. */ |
9236 | /* end confdefs.h. */ |
10399 | #include <utmpx.h> |
9237 | #include <$ac_header> |
10400 | _ACEOF |
9238 | _ACEOF |
10401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9239 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10402 | case "(($ac_try" in |
9240 | case "(($ac_try" in |
10403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10404 | *) ac_try_echo=$ac_try;; |
9242 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10427 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9265 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10428 | |
9266 | |
10429 | # So? What about this header? |
9267 | # So? What about this header? |
10430 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9268 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10431 | yes:no: ) |
9269 | yes:no: ) |
10432 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9270 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10433 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9271 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10434 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10435 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9273 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10436 | ac_header_preproc=yes |
9274 | ac_header_preproc=yes |
10437 | ;; |
9275 | ;; |
10438 | no:yes:* ) |
9276 | no:yes:* ) |
10439 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9277 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10440 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9278 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10441 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9279 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10442 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9280 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10443 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9281 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10444 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9282 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10445 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9283 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10446 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9284 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10447 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10448 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9286 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10449 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10450 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10451 | |
9289 | |
10452 | ;; |
9290 | ;; |
10453 | esac |
9291 | esac |
10454 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9292 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10455 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10456 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9294 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10458 | else |
9296 | else |
10459 | ac_cv_header_utmpx_h=$ac_header_preproc |
9297 | eval "$as_ac_Header=\$ac_header_preproc" |
10460 | fi |
9298 | fi |
|
|
9299 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10461 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9300 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10462 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9301 | echo "${ECHO_T}$ac_res" >&6; } |
10463 | |
9302 | |
10464 | fi |
9303 | fi |
10465 | if test $ac_cv_header_utmpx_h = yes; then |
9304 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9305 | cat >>confdefs.h <<_ACEOF |
|
|
9306 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9307 | _ACEOF |
10466 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9308 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10467 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9309 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10468 | if test "${struct_utmpx+set}" = set; then |
9310 | if test "${struct_utmpx+set}" = set; then |
10469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10470 | else |
9312 | else |
10471 | cat >conftest.$ac_ext <<_ACEOF |
9313 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10638 | |
9480 | |
10639 | fi |
9481 | fi |
10640 | |
9482 | |
10641 | fi |
9483 | fi |
10642 | |
9484 | |
|
|
9485 | done |
10643 | |
9486 | |
10644 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9487 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10645 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9488 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10646 | if test "${struct_lastlog+set}" = set; then |
9489 | if test "${struct_lastlog+set}" = set; then |
10647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11717 | |
10560 | |
11718 | |
10561 | |
11719 | |
10562 | |
11720 | |
10563 | |
11721 | |
10564 | |
|
|
10565 | |
11722 | for ac_header in \ |
10566 | for ac_header in \ |
11723 | pty.h \ |
10567 | pty.h \ |
11724 | util.h \ |
10568 | util.h \ |
11725 | libutil.h \ |
10569 | libutil.h \ |
11726 | sys/ioctl.h \ |
10570 | sys/ioctl.h \ |
11727 | sys/stropts.h \ |
10571 | sys/stropts.h \ |
|
|
10572 | stropts.h \ |
11728 | |
10573 | |
11729 | do |
10574 | do |
11730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11731 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11732 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10577 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
12400 | echo "${ECHO_T}no" >&6; } |
11245 | echo "${ECHO_T}no" >&6; } |
12401 | fi |
11246 | fi |
12402 | |
11247 | |
12403 | |
11248 | |
12404 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11249 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12405 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11250 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12406 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11251 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12407 | else |
11252 | else |
12408 | # Extract the first word of "xft-config", so it can be a program name with args. |
11253 | # Extract the first word of "xft-config", so it can be a program name with args. |
12409 | set dummy xft-config; ac_word=$2 |
11254 | set dummy xft-config; ac_word=$2 |
12410 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11255 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12445 | echo "${ECHO_T}no" >&6; } |
11290 | echo "${ECHO_T}no" >&6; } |
12446 | fi |
11291 | fi |
12447 | |
11292 | |
12448 | |
11293 | |
12449 | if test $XFT_CONFIG != no; then |
11294 | if test $XFT_CONFIG != no; then |
12450 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11295 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12451 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11296 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12452 | fi |
11297 | fi |
12453 | fi |
11298 | fi |
12454 | |
11299 | |
|
|
11300 | save_LIBS="$LIBS" |
|
|
11301 | LIBS="$LIBS $X_LIBS" |
12455 | |
11302 | |
12456 | for ac_header in X11/Xft/Xft.h |
11303 | for ac_header in X11/Xft/Xft.h |
12457 | do |
11304 | do |
12458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11305 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12459 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11306 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12592 | support_xft=no |
11439 | support_xft=no |
12593 | fi |
11440 | fi |
12594 | |
11441 | |
12595 | done |
11442 | done |
12596 | |
11443 | |
12597 | |
|
|
12598 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11444 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12599 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11445 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12600 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11446 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12602 | else |
11448 | else |
12603 | ac_check_lib_save_LIBS=$LIBS |
11449 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12655 | LIBS=$ac_check_lib_save_LIBS |
11501 | LIBS=$ac_check_lib_save_LIBS |
12656 | fi |
11502 | fi |
12657 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11503 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12658 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11504 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12659 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11505 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12660 | cat >>confdefs.h <<_ACEOF |
11506 | : |
12661 | #define HAVE_LIBXFT 1 |
|
|
12662 | _ACEOF |
|
|
12663 | |
|
|
12664 | LIBS="-lXft $LIBS" |
|
|
12665 | |
|
|
12666 | else |
11507 | else |
12667 | support_xft=no |
11508 | support_xft=no |
12668 | fi |
11509 | fi |
12669 | |
11510 | |
|
|
11511 | LIBS="$save_LIBS" |
12670 | |
11512 | |
12671 | if test x$support_xft = xyes; then |
11513 | if test x$support_xft = xyes; then |
12672 | |
11514 | |
12673 | cat >>confdefs.h <<\_ACEOF |
11515 | cat >>confdefs.h <<\_ACEOF |
12674 | #define XFT 1 |
11516 | #define XFT 1 |
… | |
… | |
12758 | _ACEOF |
11600 | _ACEOF |
12759 | |
11601 | |
12760 | fi |
11602 | fi |
12761 | |
11603 | |
12762 | |
11604 | |
|
|
11605 | scrolltypes=plain |
|
|
11606 | |
|
|
11607 | cat >>confdefs.h <<\_ACEOF |
|
|
11608 | #define PLAIN_SCROLLBAR 1 |
|
|
11609 | _ACEOF |
|
|
11610 | |
|
|
11611 | |
12763 | if test x$support_scroll_rxvt = xyes; then |
11612 | if test x$support_scroll_rxvt = xyes; then |
12764 | |
11613 | |
12765 | cat >>confdefs.h <<\_ACEOF |
11614 | cat >>confdefs.h <<\_ACEOF |
12766 | #define RXVT_SCROLLBAR 1 |
11615 | #define RXVT_SCROLLBAR 1 |
12767 | _ACEOF |
11616 | _ACEOF |
12768 | |
11617 | |
12769 | scrolltypes="rxvt" |
11618 | scrolltypes="$scrolltypes rxvt" |
12770 | fi |
11619 | fi |
12771 | if test x$support_scroll_next = xyes; then |
11620 | if test x$support_scroll_next = xyes; then |
12772 | |
11621 | |
12773 | cat >>confdefs.h <<\_ACEOF |
11622 | cat >>confdefs.h <<\_ACEOF |
12774 | #define NEXT_SCROLLBAR 1 |
11623 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
12781 | cat >>confdefs.h <<\_ACEOF |
11630 | cat >>confdefs.h <<\_ACEOF |
12782 | #define XTERM_SCROLLBAR 1 |
11631 | #define XTERM_SCROLLBAR 1 |
12783 | _ACEOF |
11632 | _ACEOF |
12784 | |
11633 | |
12785 | scrolltypes="$scrolltypes xterm" |
11634 | scrolltypes="$scrolltypes xterm" |
12786 | fi |
|
|
12787 | if test x$support_scroll_plain = xyes; then |
|
|
12788 | |
|
|
12789 | cat >>confdefs.h <<\_ACEOF |
|
|
12790 | #define PLAIN_SCROLLBAR 1 |
|
|
12791 | _ACEOF |
|
|
12792 | |
|
|
12793 | scrolltypes="$scrolltypes plain" |
|
|
12794 | fi |
11635 | fi |
12795 | if test x$support_pointer_blank = xyes; then |
11636 | if test x$support_pointer_blank = xyes; then |
12796 | |
11637 | |
12797 | cat >>confdefs.h <<\_ACEOF |
11638 | cat >>confdefs.h <<\_ACEOF |
12798 | #define POINTER_BLANK 1 |
11639 | #define POINTER_BLANK 1 |
… | |
… | |
13061 | _ACEOF |
11902 | _ACEOF |
13062 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11903 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13063 | rm -f conftest.sed |
11904 | rm -f conftest.sed |
13064 | |
11905 | |
13065 | |
11906 | |
13066 | |
|
|
13067 | |
|
|
13068 | |
|
|
13069 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13070 | include_stdint_h="#include <stdint.h>" |
|
|
13071 | else |
|
|
13072 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13073 | fi |
|
|
13074 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13075 | include_stdarg_h="#include <cstdarg>" |
|
|
13076 | else |
|
|
13077 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13078 | fi |
|
|
13079 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13080 | include_stdlib_h="#include <cstdlib>" |
|
|
13081 | else |
|
|
13082 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13083 | fi |
|
|
13084 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13085 | include_unistd_h="#include <unistd.h>" |
|
|
13086 | else |
|
|
13087 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13088 | fi |
|
|
13089 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13090 | include_string_h="#include <cstring>" |
|
|
13091 | else |
|
|
13092 | include_string_h="/* #include <cstring> */" |
|
|
13093 | fi |
|
|
13094 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13095 | include_fcntl_h="#include <fcntl.h>" |
|
|
13096 | else |
|
|
13097 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13098 | fi |
|
|
13099 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13100 | include_util_h="#include <util.h>" |
|
|
13101 | else |
|
|
13102 | include_util_h="/* #include <util.h> */" |
|
|
13103 | fi |
|
|
13104 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13105 | include_assert_h="#include <assert.h>" |
|
|
13106 | else |
|
|
13107 | include_assert_h="/* #include <assert.h> */" |
|
|
13108 | fi |
|
|
13109 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13110 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13111 | else |
|
|
13112 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13113 | fi |
|
|
13114 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13115 | include_sys_select_h="#include <sys/select.h>" |
|
|
13116 | else |
|
|
13117 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13118 | fi |
|
|
13119 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13120 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13121 | else |
|
|
13122 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13123 | fi |
|
|
13124 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13125 | include_sys_time_h="#include <sys/time.h>" |
|
|
13126 | else |
|
|
13127 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13128 | fi |
|
|
13129 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13130 | include_time_h="#include <time.h>" |
|
|
13131 | else |
|
|
13132 | include_time_h="/* #include <time.h> */" |
|
|
13133 | fi |
|
|
13134 | |
|
|
13135 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11907 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13136 | |
11908 | |
13137 | cat >confcache <<\_ACEOF |
11909 | cat >confcache <<\_ACEOF |
13138 | # This file is a shell script that caches the results of configure |
11910 | # This file is a shell script that caches the results of configure |
13139 | # tests run on this system so they can be shared between configure |
11911 | # tests run on this system so they can be shared between configure |
13140 | # scripts and configure runs, see configure's option --config-cache. |
11912 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13689 | case $ac_config_target in |
12461 | case $ac_config_target in |
13690 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12462 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
13691 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12463 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13692 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12464 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13693 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12465 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13694 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
13695 | |
12466 | |
13696 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12467 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13697 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12468 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13698 | { (exit 1); exit 1; }; };; |
12469 | { (exit 1); exit 1; }; };; |
13699 | esac |
12470 | esac |
… | |
… | |
13798 | host_cpu!$host_cpu$ac_delim |
12569 | host_cpu!$host_cpu$ac_delim |
13799 | host_vendor!$host_vendor$ac_delim |
12570 | host_vendor!$host_vendor$ac_delim |
13800 | host_os!$host_os$ac_delim |
12571 | host_os!$host_os$ac_delim |
13801 | VERSION!$VERSION$ac_delim |
12572 | VERSION!$VERSION$ac_delim |
13802 | DATE!$DATE$ac_delim |
12573 | DATE!$DATE$ac_delim |
13803 | LSMDATE!$LSMDATE$ac_delim |
|
|
13804 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13805 | CC!$CC$ac_delim |
12574 | CC!$CC$ac_delim |
13806 | CFLAGS!$CFLAGS$ac_delim |
12575 | CFLAGS!$CFLAGS$ac_delim |
13807 | LDFLAGS!$LDFLAGS$ac_delim |
12576 | LDFLAGS!$LDFLAGS$ac_delim |
13808 | CPPFLAGS!$CPPFLAGS$ac_delim |
12577 | CPPFLAGS!$CPPFLAGS$ac_delim |
13809 | ac_ct_CC!$ac_ct_CC$ac_delim |
12578 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13817 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12586 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13818 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12587 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13819 | GREP!$GREP$ac_delim |
12588 | GREP!$GREP$ac_delim |
13820 | EGREP!$EGREP$ac_delim |
12589 | EGREP!$EGREP$ac_delim |
13821 | LINKER!$LINKER$ac_delim |
12590 | LINKER!$LINKER$ac_delim |
13822 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13823 | RXVTNAME!$RXVTNAME$ac_delim |
12591 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12592 | CXXCPP!$CXXCPP$ac_delim |
13824 | TIC!$TIC$ac_delim |
12593 | TIC!$TIC$ac_delim |
13825 | XMKMF!$XMKMF$ac_delim |
12594 | XMKMF!$XMKMF$ac_delim |
13826 | CXXCPP!$CXXCPP$ac_delim |
|
|
13827 | X_CFLAGS!$X_CFLAGS$ac_delim |
12595 | X_CFLAGS!$X_CFLAGS$ac_delim |
13828 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12596 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13829 | X_LIBS!$X_LIBS$ac_delim |
12597 | X_LIBS!$X_LIBS$ac_delim |
13830 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12598 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13831 | afterimage_config!$afterimage_config$ac_delim |
12599 | afterimage_config!$afterimage_config$ac_delim |
13832 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
13833 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
13834 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
13835 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
13836 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
13837 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
13838 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12600 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13839 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12601 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13840 | PERL!$PERL$ac_delim |
12602 | PERL!$PERL$ac_delim |
13841 | PERLLIB!$PERLLIB$ac_delim |
12603 | PERLLIB!$PERLLIB$ac_delim |
13842 | PERLFLAGS!$PERLFLAGS$ac_delim |
12604 | PERLFLAGS!$PERLFLAGS$ac_delim |
13843 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12605 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
13844 | IF_PERL!$IF_PERL$ac_delim |
12606 | IF_PERL!$IF_PERL$ac_delim |
13845 | PERL_O!$PERL_O$ac_delim |
12607 | PERL_O!$PERL_O$ac_delim |
13846 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12608 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13847 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12609 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13848 | include_stdint_h!$include_stdint_h$ac_delim |
12610 | LIBOBJS!$LIBOBJS$ac_delim |
13849 | include_stdarg_h!$include_stdarg_h$ac_delim |
12611 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13850 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
13851 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
13852 | include_string_h!$include_string_h$ac_delim |
|
|
13853 | _ACEOF |
12612 | _ACEOF |
13854 | |
12613 | |
13855 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12614 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
13856 | break |
12615 | break |
13857 | elif $ac_last_try; then |
12616 | elif $ac_last_try; then |
13858 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12617 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13859 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12618 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13860 | { (exit 1); exit 1; }; } |
12619 | { (exit 1); exit 1; }; } |
… | |
… | |
13869 | ac_eof=`expr $ac_eof + 1` |
12628 | ac_eof=`expr $ac_eof + 1` |
13870 | fi |
12629 | fi |
13871 | |
12630 | |
13872 | cat >>$CONFIG_STATUS <<_ACEOF |
12631 | cat >>$CONFIG_STATUS <<_ACEOF |
13873 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12632 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13874 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
13875 | _ACEOF |
|
|
13876 | sed ' |
|
|
13877 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
13878 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
13879 | :n |
|
|
13880 | t n |
|
|
13881 | s/'"$ac_delim"'$/,g/; t |
|
|
13882 | s/$/\\/; p |
|
|
13883 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
13884 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
13885 | rm -f conf$$subs.sed |
|
|
13886 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13887 | CEOF$ac_eof |
|
|
13888 | _ACEOF |
|
|
13889 | |
|
|
13890 | |
|
|
13891 | ac_delim='%!_!# ' |
|
|
13892 | for ac_last_try in false false false false false :; do |
|
|
13893 | cat >conf$$subs.sed <<_ACEOF |
|
|
13894 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
13895 | include_util_h!$include_util_h$ac_delim |
|
|
13896 | include_assert_h!$include_assert_h$ac_delim |
|
|
13897 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
13898 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
13899 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
13900 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
13901 | include_time_h!$include_time_h$ac_delim |
|
|
13902 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
13903 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
13904 | _ACEOF |
|
|
13905 | |
|
|
13906 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
13907 | break |
|
|
13908 | elif $ac_last_try; then |
|
|
13909 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
13910 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
13911 | { (exit 1); exit 1; }; } |
|
|
13912 | else |
|
|
13913 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
13914 | fi |
|
|
13915 | done |
|
|
13916 | |
|
|
13917 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
13918 | if test -n "$ac_eof"; then |
|
|
13919 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
13920 | ac_eof=`expr $ac_eof + 1` |
|
|
13921 | fi |
|
|
13922 | |
|
|
13923 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13924 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
13925 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12633 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
13926 | _ACEOF |
12634 | _ACEOF |
13927 | sed ' |
12635 | sed ' |
13928 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12636 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
13929 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12637 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14182 | s&@builddir@&$ac_builddir&;t t |
12890 | s&@builddir@&$ac_builddir&;t t |
14183 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12891 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14184 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12892 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14185 | s&@INSTALL@&$ac_INSTALL&;t t |
12893 | s&@INSTALL@&$ac_INSTALL&;t t |
14186 | $ac_datarootdir_hack |
12894 | $ac_datarootdir_hack |
14187 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12895 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14188 | |
12896 | |
14189 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12897 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14190 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12898 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14191 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12899 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14192 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12900 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |