… | |
… | |
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 |
684 | CXXCPP |
681 | CXXCPP |
685 | TIC |
682 | TIC |
686 | XMKMF |
683 | XMKMF |
687 | X_CFLAGS |
684 | X_CFLAGS |
688 | X_PRE_LIBS |
685 | X_PRE_LIBS |
689 | X_LIBS |
686 | X_LIBS |
690 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
691 | afterimage_config |
688 | afterimage_config |
692 | rxvt_int16_typedef |
|
|
693 | rxvt_uint16_typedef |
|
|
694 | rxvt_int32_typedef |
|
|
695 | rxvt_uint32_typedef |
|
|
696 | rxvt_intp_define |
|
|
697 | rxvt_u_intp_define |
|
|
698 | PKG_CONFIG |
689 | PKG_CONFIG |
699 | XFT_CONFIG |
690 | XFT_CONFIG |
700 | PERL |
691 | PERL |
701 | PERLLIB |
692 | PERLLIB |
702 | PERLFLAGS |
693 | PERLFLAGS |
… | |
… | |
704 | IF_PERL |
695 | IF_PERL |
705 | PERL_O |
696 | PERL_O |
706 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
707 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
708 | include_stdint_h |
699 | include_stdint_h |
709 | include_stdarg_h |
|
|
710 | include_stdlib_h |
|
|
711 | include_unistd_h |
|
|
712 | include_string_h |
|
|
713 | include_fcntl_h |
|
|
714 | include_util_h |
|
|
715 | include_assert_h |
|
|
716 | include_sys_ioctl_h |
700 | include_sys_ioctl_h |
717 | include_sys_select_h |
|
|
718 | include_sys_strredir_h |
701 | include_sys_strredir_h |
719 | include_sys_time_h |
|
|
720 | include_time_h |
|
|
721 | LIBOBJS |
702 | LIBOBJS |
722 | LTLIBOBJS' |
703 | LTLIBOBJS' |
723 | ac_subst_files='' |
704 | ac_subst_files='' |
724 | ac_precious_vars='build_alias |
705 | ac_precious_vars='build_alias |
725 | host_alias |
706 | host_alias |
… | |
… | |
1316 | Optional Features: |
1297 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1298 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1299 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1300 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1301 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
|
|
1322 | --enable-warnings turn on g++ warnings |
1302 | --enable-warnings turn on g++ warnings |
1323 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1303 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1324 | --enable-combining enable composition of base and combining characters |
1304 | --enable-combining enable composition of base and combining characters |
1325 | --enable-xft enable xft support on systems that have it |
1305 | --enable-xft enable xft support on systems that have it |
1326 | --enable-font-styles enable bold and italic support |
1306 | --enable-font-styles enable bold and italic support |
… | |
… | |
1328 | --enable-transparency enable transparent backgrounds |
1308 | --enable-transparency enable transparent backgrounds |
1329 | --enable-fading enable colors fading when off focus |
1309 | --enable-fading enable colors fading when off focus |
1330 | --enable-rxvt-scroll enable rxvt style scrollbar |
1310 | --enable-rxvt-scroll enable rxvt style scrollbar |
1331 | --enable-next-scroll enable NeXT style scrollbar |
1311 | --enable-next-scroll enable NeXT style scrollbar |
1332 | --enable-xterm-scroll enable Xterm style scrollbar |
1312 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1313 | --enable-plain-scroll enable plain style scrollbar |
1333 | --enable-perl enable embedded perl interpreter |
1314 | --enable-perl enable embedded perl interpreter |
1334 | --enable-plain-scroll enable plain style scrollbar |
|
|
1335 | --enable-xim XIM (X Input Method) protocol support |
1315 | --enable-xim XIM (X Input Method) protocol support |
1336 | --disable-backspace-key disable handling of the backspace key |
1316 | --disable-backspace-key disable handling of the backspace key |
1337 | --disable-delete-key disable handling of the delete key |
1317 | --disable-delete-key disable handling of the delete key |
1338 | --disable-resources disable all resource checking |
1318 | --disable-resources disable all resource checking |
1339 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1319 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
… | |
… | |
1920 | |
1900 | |
1921 | |
1901 | |
1922 | |
1902 | |
1923 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1903 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1924 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1904 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1905 | |
1925 | echo "" |
1906 | echo "" |
1926 | echo "configuring for rxvt $VERSION" |
1907 | echo "configuring for rxvt $VERSION" |
1927 | echo "" |
1908 | echo "" |
1928 | |
1909 | |
1929 | orig_CXXFLAGS="$CXXFLAGS" |
1910 | orig_CXXFLAGS="$CXXFLAGS" |
1930 | |
|
|
1931 | |
1911 | |
1932 | ac_ext=c |
1912 | ac_ext=c |
1933 | ac_cpp='$CPP $CPPFLAGS' |
1913 | ac_cpp='$CPP $CPPFLAGS' |
1934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1914 | 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' |
1915 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3714 | echo "${ECHO_T}no" >&6; } |
3694 | echo "${ECHO_T}no" >&6; } |
3715 | fi |
3695 | fi |
3716 | rm -f conftest* |
3696 | rm -f conftest* |
3717 | |
3697 | |
3718 | |
3698 | |
|
|
3699 | |
|
|
3700 | cat >>confdefs.h <<\_ACEOF |
|
|
3701 | #define _GNU_SOURCE 1 |
|
|
3702 | _ACEOF |
|
|
3703 | |
|
|
3704 | |
3719 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3705 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3720 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3706 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3721 | if test "${ac_cv_search_strerror+set}" = set; then |
3707 | if test "${ac_cv_search_strerror+set}" = set; then |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3723 | else |
3709 | else |
… | |
… | |
3870 | LINKER=$LINKER |
3856 | LINKER=$LINKER |
3871 | |
3857 | |
3872 | |
3858 | |
3873 | if test -z "$orig_CXXFLAGS"; then |
3859 | if test -z "$orig_CXXFLAGS"; then |
3874 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3860 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3875 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3861 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3876 | cat >conftest.$ac_ext <<_ACEOF |
3862 | cat >conftest.$ac_ext <<_ACEOF |
3877 | /* confdefs.h. */ |
3863 | /* confdefs.h. */ |
3878 | _ACEOF |
3864 | _ACEOF |
3879 | cat confdefs.h >>conftest.$ac_ext |
3865 | cat confdefs.h >>conftest.$ac_ext |
3880 | cat >>conftest.$ac_ext <<_ACEOF |
3866 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3918 | CXXFLAGS="-O" |
3904 | CXXFLAGS="-O" |
3919 | fi |
3905 | fi |
3920 | CFLAGS="$CXXFLAGS" |
3906 | CFLAGS="$CXXFLAGS" |
3921 | fi |
3907 | fi |
3922 | |
3908 | |
3923 | |
|
|
3924 | cat >>confdefs.h <<\_ACEOF |
|
|
3925 | #define _GNU_SOURCE 1 |
|
|
3926 | _ACEOF |
|
|
3927 | |
|
|
3928 | |
|
|
3929 | case $host in |
3909 | case $host in |
3930 | *-*-solaris* ) |
3910 | *-*-solaris* ) |
3931 | |
3911 | |
3932 | cat >>confdefs.h <<\_ACEOF |
3912 | cat >>confdefs.h <<\_ACEOF |
3933 | #define _XOPEN_SOURCE 500 |
3913 | #define _XOPEN_SOURCE 500 |
3934 | _ACEOF |
3914 | _ACEOF |
3935 | |
3915 | |
3936 | ;; |
3916 | ;; |
3937 | esac |
3917 | esac |
3938 | |
|
|
3939 | |
3918 | |
3940 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3919 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3941 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3920 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3942 | if test "${ac_cv_func_setlocale+set}" = set; then |
3921 | if test "${ac_cv_func_setlocale+set}" = set; then |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4416 | support_iso14755=yes |
4395 | support_iso14755=yes |
4417 | support_styles=yes |
4396 | support_styles=yes |
4418 | support_perl=yes |
4397 | support_perl=yes |
4419 | codesets=all |
4398 | codesets=all |
4420 | |
4399 | |
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 | |
4400 | |
4431 | |
4401 | |
4432 | # Check whether --enable-everything was given. |
4402 | # Check whether --enable-everything was given. |
4433 | if test "${enable_everything+set}" = set; then |
4403 | if test "${enable_everything+set}" = set; then |
4434 | enableval=$enable_everything; |
4404 | enableval=$enable_everything; |
… | |
… | |
4640 | support_scroll_xterm=$enableval |
4610 | support_scroll_xterm=$enableval |
4641 | fi |
4611 | fi |
4642 | fi |
4612 | fi |
4643 | |
4613 | |
4644 | |
4614 | |
|
|
4615 | # Check whether --enable-plain-scroll was given. |
|
|
4616 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4617 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4618 | support_scroll_plain=$enableval |
|
|
4619 | fi |
|
|
4620 | fi |
|
|
4621 | |
|
|
4622 | |
4645 | # Check whether --enable-perl was given. |
4623 | # Check whether --enable-perl was given. |
4646 | if test "${enable_perl+set}" = set; then |
4624 | if test "${enable_perl+set}" = set; then |
4647 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4625 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4648 | support_perl=$enableval |
4626 | support_perl=$enableval |
4649 | fi |
|
|
4650 | fi |
|
|
4651 | |
|
|
4652 | |
|
|
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 |
4627 | fi |
4658 | fi |
4628 | fi |
4659 | |
4629 | |
4660 | |
4630 | |
4661 | |
4631 | |
… | |
… | |
4891 | fi |
4861 | fi |
4892 | fi |
4862 | fi |
4893 | |
4863 | |
4894 | |
4864 | |
4895 | |
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
4896 | |
4867 | |
4897 | ac_ext=cpp |
4868 | ac_ext=cpp |
4898 | ac_cpp='$CXXCPP $CPPFLAGS' |
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
4899 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4900 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
5365 | |
5336 | |
5366 | |
5337 | |
5367 | |
5338 | |
5368 | |
5339 | |
5369 | |
5340 | |
5370 | for ac_header in sys/epoll.h sys/event.h sys/queue.h |
5341 | |
|
|
5342 | |
|
|
5343 | |
|
|
5344 | |
|
|
5345 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
5371 | do |
5346 | do |
5372 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5373 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5348 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5374 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5349 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
5507 | done |
5482 | done |
5508 | |
5483 | |
5509 | |
5484 | |
5510 | |
5485 | |
5511 | |
5486 | |
5512 | for ac_func in epoll_ctl kqueue |
5487 | |
|
|
5488 | |
|
|
5489 | |
|
|
5490 | |
|
|
5491 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
5513 | do |
5492 | do |
5514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5493 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5515 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5494 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5495 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5517 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5496 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5686 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5665 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5687 | if test $ac_cv_func_clock_gettime = yes; then |
5666 | if test $ac_cv_func_clock_gettime = yes; then |
5688 | : |
5667 | : |
5689 | else |
5668 | else |
5690 | |
5669 | |
|
|
5670 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
5691 | |
5671 | |
5692 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5672 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5693 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5673 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5694 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5674 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
5757 | |
5737 | |
5758 | LIBS="-lrt $LIBS" |
5738 | LIBS="-lrt $LIBS" |
5759 | |
5739 | |
5760 | fi |
5740 | fi |
5761 | |
5741 | |
|
|
5742 | unset ac_cv_func_clock_gettime |
5762 | |
5743 | |
5763 | for ac_func in clock_gettime |
5744 | for ac_func in clock_gettime |
5764 | do |
5745 | do |
5765 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5746 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5766 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5747 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
… | |
… | |
5851 | _ACEOF |
5832 | _ACEOF |
5852 | |
5833 | |
5853 | fi |
5834 | fi |
5854 | done |
5835 | done |
5855 | |
5836 | |
|
|
5837 | fi |
|
|
5838 | |
|
|
5839 | fi |
|
|
5840 | |
|
|
5841 | |
|
|
5842 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5843 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5844 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5846 | else |
|
|
5847 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5848 | /* confdefs.h. */ |
|
|
5849 | _ACEOF |
|
|
5850 | cat confdefs.h >>conftest.$ac_ext |
|
|
5851 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5852 | /* end confdefs.h. */ |
|
|
5853 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5855 | #define nanosleep innocuous_nanosleep |
|
|
5856 | |
|
|
5857 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5858 | which can conflict with char nanosleep (); below. |
|
|
5859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5860 | <limits.h> exists even on freestanding compilers. */ |
|
|
5861 | |
|
|
5862 | #ifdef __STDC__ |
|
|
5863 | # include <limits.h> |
|
|
5864 | #else |
|
|
5865 | # include <assert.h> |
|
|
5866 | #endif |
|
|
5867 | |
|
|
5868 | #undef nanosleep |
|
|
5869 | |
|
|
5870 | /* Override any GCC internal prototype to avoid an error. |
|
|
5871 | Use char because int might match the return type of a GCC |
|
|
5872 | builtin and then its argument prototype would still apply. */ |
|
|
5873 | #ifdef __cplusplus |
|
|
5874 | extern "C" |
|
|
5875 | #endif |
|
|
5876 | char nanosleep (); |
|
|
5877 | /* The GNU C library defines this for functions which it implements |
|
|
5878 | to always fail with ENOSYS. Some functions are actually named |
|
|
5879 | something starting with __ and the normal name is an alias. */ |
|
|
5880 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5881 | choke me |
|
|
5882 | #endif |
|
|
5883 | |
|
|
5884 | int |
|
|
5885 | main () |
|
|
5886 | { |
|
|
5887 | return nanosleep (); |
|
|
5888 | ; |
|
|
5889 | return 0; |
|
|
5890 | } |
|
|
5891 | _ACEOF |
|
|
5892 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5893 | if { (ac_try="$ac_link" |
|
|
5894 | case "(($ac_try" in |
|
|
5895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5896 | *) ac_try_echo=$ac_try;; |
|
|
5897 | esac |
|
|
5898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5899 | (eval "$ac_link") 2>conftest.er1 |
|
|
5900 | ac_status=$? |
|
|
5901 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5902 | rm -f conftest.er1 |
|
|
5903 | cat conftest.err >&5 |
|
|
5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5905 | (exit $ac_status); } && { |
|
|
5906 | test -z "$ac_cxx_werror_flag" || |
|
|
5907 | test ! -s conftest.err |
|
|
5908 | } && test -s conftest$ac_exeext && |
|
|
5909 | $as_test_x conftest$ac_exeext; then |
|
|
5910 | ac_cv_func_nanosleep=yes |
|
|
5911 | else |
|
|
5912 | echo "$as_me: failed program was:" >&5 |
|
|
5913 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5914 | |
|
|
5915 | ac_cv_func_nanosleep=no |
|
|
5916 | fi |
|
|
5917 | |
|
|
5918 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5919 | conftest$ac_exeext conftest.$ac_ext |
|
|
5920 | fi |
|
|
5921 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5922 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5923 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5924 | : |
|
|
5925 | else |
|
|
5926 | |
|
|
5927 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5928 | |
|
|
5929 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5930 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5931 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5933 | else |
|
|
5934 | ac_check_lib_save_LIBS=$LIBS |
|
|
5935 | LIBS="-lrt $LIBS" |
|
|
5936 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5937 | /* confdefs.h. */ |
|
|
5938 | _ACEOF |
|
|
5939 | cat confdefs.h >>conftest.$ac_ext |
|
|
5940 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5941 | /* end confdefs.h. */ |
|
|
5942 | |
|
|
5943 | /* Override any GCC internal prototype to avoid an error. |
|
|
5944 | Use char because int might match the return type of a GCC |
|
|
5945 | builtin and then its argument prototype would still apply. */ |
|
|
5946 | #ifdef __cplusplus |
|
|
5947 | extern "C" |
|
|
5948 | #endif |
|
|
5949 | char nanosleep (); |
|
|
5950 | int |
|
|
5951 | main () |
|
|
5952 | { |
|
|
5953 | return nanosleep (); |
|
|
5954 | ; |
|
|
5955 | return 0; |
|
|
5956 | } |
|
|
5957 | _ACEOF |
|
|
5958 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5959 | if { (ac_try="$ac_link" |
|
|
5960 | case "(($ac_try" in |
|
|
5961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5962 | *) ac_try_echo=$ac_try;; |
|
|
5963 | esac |
|
|
5964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5965 | (eval "$ac_link") 2>conftest.er1 |
|
|
5966 | ac_status=$? |
|
|
5967 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5968 | rm -f conftest.er1 |
|
|
5969 | cat conftest.err >&5 |
|
|
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5971 | (exit $ac_status); } && { |
|
|
5972 | test -z "$ac_cxx_werror_flag" || |
|
|
5973 | test ! -s conftest.err |
|
|
5974 | } && test -s conftest$ac_exeext && |
|
|
5975 | $as_test_x conftest$ac_exeext; then |
|
|
5976 | ac_cv_lib_rt_nanosleep=yes |
|
|
5977 | else |
|
|
5978 | echo "$as_me: failed program was:" >&5 |
|
|
5979 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5980 | |
|
|
5981 | ac_cv_lib_rt_nanosleep=no |
|
|
5982 | fi |
|
|
5983 | |
|
|
5984 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5985 | conftest$ac_exeext conftest.$ac_ext |
|
|
5986 | LIBS=$ac_check_lib_save_LIBS |
|
|
5987 | fi |
|
|
5988 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5989 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5990 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5991 | cat >>confdefs.h <<_ACEOF |
|
|
5992 | #define HAVE_LIBRT 1 |
|
|
5993 | _ACEOF |
|
|
5994 | |
|
|
5995 | LIBS="-lrt $LIBS" |
|
|
5996 | |
|
|
5997 | fi |
|
|
5998 | |
|
|
5999 | unset ac_cv_func_nanosleep |
|
|
6000 | |
|
|
6001 | for ac_func in nanosleep |
|
|
6002 | do |
|
|
6003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6004 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6006 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6008 | else |
|
|
6009 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6010 | /* confdefs.h. */ |
|
|
6011 | _ACEOF |
|
|
6012 | cat confdefs.h >>conftest.$ac_ext |
|
|
6013 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6014 | /* end confdefs.h. */ |
|
|
6015 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6017 | #define $ac_func innocuous_$ac_func |
|
|
6018 | |
|
|
6019 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6020 | which can conflict with char $ac_func (); below. |
|
|
6021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6022 | <limits.h> exists even on freestanding compilers. */ |
|
|
6023 | |
|
|
6024 | #ifdef __STDC__ |
|
|
6025 | # include <limits.h> |
|
|
6026 | #else |
|
|
6027 | # include <assert.h> |
|
|
6028 | #endif |
|
|
6029 | |
|
|
6030 | #undef $ac_func |
|
|
6031 | |
|
|
6032 | /* Override any GCC internal prototype to avoid an error. |
|
|
6033 | Use char because int might match the return type of a GCC |
|
|
6034 | builtin and then its argument prototype would still apply. */ |
|
|
6035 | #ifdef __cplusplus |
|
|
6036 | extern "C" |
|
|
6037 | #endif |
|
|
6038 | char $ac_func (); |
|
|
6039 | /* The GNU C library defines this for functions which it implements |
|
|
6040 | to always fail with ENOSYS. Some functions are actually named |
|
|
6041 | something starting with __ and the normal name is an alias. */ |
|
|
6042 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6043 | choke me |
|
|
6044 | #endif |
|
|
6045 | |
|
|
6046 | int |
|
|
6047 | main () |
|
|
6048 | { |
|
|
6049 | return $ac_func (); |
|
|
6050 | ; |
|
|
6051 | return 0; |
|
|
6052 | } |
|
|
6053 | _ACEOF |
|
|
6054 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6055 | if { (ac_try="$ac_link" |
|
|
6056 | case "(($ac_try" in |
|
|
6057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6058 | *) ac_try_echo=$ac_try;; |
|
|
6059 | esac |
|
|
6060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6061 | (eval "$ac_link") 2>conftest.er1 |
|
|
6062 | ac_status=$? |
|
|
6063 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6064 | rm -f conftest.er1 |
|
|
6065 | cat conftest.err >&5 |
|
|
6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6067 | (exit $ac_status); } && { |
|
|
6068 | test -z "$ac_cxx_werror_flag" || |
|
|
6069 | test ! -s conftest.err |
|
|
6070 | } && test -s conftest$ac_exeext && |
|
|
6071 | $as_test_x conftest$ac_exeext; then |
|
|
6072 | eval "$as_ac_var=yes" |
|
|
6073 | else |
|
|
6074 | echo "$as_me: failed program was:" >&5 |
|
|
6075 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6076 | |
|
|
6077 | eval "$as_ac_var=no" |
|
|
6078 | fi |
|
|
6079 | |
|
|
6080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6081 | conftest$ac_exeext conftest.$ac_ext |
|
|
6082 | fi |
|
|
6083 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6084 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6085 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6086 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6087 | cat >>confdefs.h <<_ACEOF |
|
|
6088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6089 | _ACEOF |
|
|
6090 | |
|
|
6091 | fi |
|
|
6092 | done |
|
|
6093 | |
|
|
6094 | fi |
5856 | |
6095 | |
5857 | fi |
6096 | fi |
5858 | |
6097 | |
5859 | |
6098 | |
5860 | |
6099 | |
… | |
… | |
5971 | echo "${ECHO_T}$TIC" >&6; } |
6210 | echo "${ECHO_T}$TIC" >&6; } |
5972 | else |
6211 | else |
5973 | { echo "$as_me:$LINENO: result: no" >&5 |
6212 | { echo "$as_me:$LINENO: result: no" >&5 |
5974 | echo "${ECHO_T}no" >&6; } |
6213 | echo "${ECHO_T}no" >&6; } |
5975 | fi |
6214 | fi |
5976 | |
|
|
5977 | |
|
|
5978 | |
6215 | |
5979 | |
6216 | |
5980 | |
6217 | |
5981 | { echo "$as_me:$LINENO: checking for X" >&5 |
6218 | { echo "$as_me:$LINENO: checking for X" >&5 |
5982 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6219 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
… | |
… | |
7369 | echo "${ECHO_T}no" >&6; } |
7606 | echo "${ECHO_T}no" >&6; } |
7370 | fi |
7607 | fi |
7371 | fi |
7608 | fi |
7372 | fi |
7609 | fi |
7373 | |
7610 | |
7374 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
7375 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
7376 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
7377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7378 | else |
|
|
7379 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7380 | /* confdefs.h. */ |
|
|
7381 | _ACEOF |
|
|
7382 | cat confdefs.h >>conftest.$ac_ext |
|
|
7383 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7384 | /* end confdefs.h. */ |
|
|
7385 | #include <sys/types.h> |
|
|
7386 | #include <sys/wait.h> |
|
|
7387 | #ifndef WEXITSTATUS |
|
|
7388 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
7389 | #endif |
|
|
7390 | #ifndef WIFEXITED |
|
|
7391 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
7392 | #endif |
|
|
7393 | |
|
|
7394 | int |
|
|
7395 | main () |
|
|
7396 | { |
|
|
7397 | int s; |
|
|
7398 | wait (&s); |
|
|
7399 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
7400 | ; |
|
|
7401 | return 0; |
|
|
7402 | } |
|
|
7403 | _ACEOF |
|
|
7404 | rm -f conftest.$ac_objext |
|
|
7405 | if { (ac_try="$ac_compile" |
|
|
7406 | case "(($ac_try" in |
|
|
7407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7408 | *) ac_try_echo=$ac_try;; |
|
|
7409 | esac |
|
|
7410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7411 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7412 | ac_status=$? |
|
|
7413 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7414 | rm -f conftest.er1 |
|
|
7415 | cat conftest.err >&5 |
|
|
7416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7417 | (exit $ac_status); } && { |
|
|
7418 | test -z "$ac_cxx_werror_flag" || |
|
|
7419 | test ! -s conftest.err |
|
|
7420 | } && test -s conftest.$ac_objext; then |
|
|
7421 | ac_cv_header_sys_wait_h=yes |
|
|
7422 | else |
|
|
7423 | echo "$as_me: failed program was:" >&5 |
|
|
7424 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7425 | |
|
|
7426 | ac_cv_header_sys_wait_h=no |
|
|
7427 | fi |
|
|
7428 | |
|
|
7429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7430 | fi |
|
|
7431 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7432 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
7433 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7434 | |
|
|
7435 | cat >>confdefs.h <<\_ACEOF |
|
|
7436 | #define HAVE_SYS_WAIT_H 1 |
|
|
7437 | _ACEOF |
|
|
7438 | |
|
|
7439 | fi |
|
|
7440 | |
|
|
7441 | |
|
|
7442 | |
|
|
7443 | |
|
|
7444 | |
|
|
7445 | |
|
|
7446 | |
|
|
7447 | |
|
|
7448 | |
|
|
7449 | |
|
|
7450 | |
|
|
7451 | |
7611 | |
7452 | |
7612 | |
7453 | |
7613 | |
7454 | |
7614 | |
7455 | |
7615 | |
7456 | |
7616 | |
7457 | |
7617 | |
7458 | for ac_header in \ |
7618 | for ac_header in \ |
7459 | assert.h \ |
|
|
7460 | fcntl.h \ |
|
|
7461 | stdarg.h \ |
|
|
7462 | stdlib.h \ |
|
|
7463 | string.h \ |
|
|
7464 | termios.h \ |
|
|
7465 | unistd.h \ |
|
|
7466 | sys/byteorder.h \ |
7619 | sys/byteorder.h \ |
7467 | sys/ioctl.h \ |
7620 | sys/ioctl.h \ |
7468 | sys/select.h \ |
|
|
7469 | sys/sockio.h \ |
7621 | sys/sockio.h \ |
7470 | sys/strredir.h \ |
7622 | sys/strredir.h \ |
7471 | sys/time.h \ |
|
|
7472 | stdint.h \ |
7623 | stdint.h \ |
7473 | wchar.h \ |
7624 | wchar.h \ |
7474 | cwchar \ |
7625 | cwchar \ |
7475 | clocale \ |
|
|
7476 | |
7626 | |
7477 | do |
7627 | do |
7478 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7628 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7479 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7629 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7480 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7630 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7611 | fi |
7761 | fi |
7612 | |
7762 | |
7613 | done |
7763 | done |
7614 | |
7764 | |
7615 | |
7765 | |
7616 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7617 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7618 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7620 | else |
|
|
7621 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7622 | /* confdefs.h. */ |
|
|
7623 | _ACEOF |
|
|
7624 | cat confdefs.h >>conftest.$ac_ext |
|
|
7625 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7626 | /* end confdefs.h. */ |
|
|
7627 | #include <sys/types.h> |
|
|
7628 | #include <sys/time.h> |
|
|
7629 | #include <time.h> |
|
|
7630 | |
|
|
7631 | int |
|
|
7632 | main () |
|
|
7633 | { |
|
|
7634 | if ((struct tm *) 0) |
|
|
7635 | return 0; |
|
|
7636 | ; |
|
|
7637 | return 0; |
|
|
7638 | } |
|
|
7639 | _ACEOF |
|
|
7640 | rm -f conftest.$ac_objext |
|
|
7641 | if { (ac_try="$ac_compile" |
|
|
7642 | case "(($ac_try" in |
|
|
7643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7644 | *) ac_try_echo=$ac_try;; |
|
|
7645 | esac |
|
|
7646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7647 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7648 | ac_status=$? |
|
|
7649 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7650 | rm -f conftest.er1 |
|
|
7651 | cat conftest.err >&5 |
|
|
7652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7653 | (exit $ac_status); } && { |
|
|
7654 | test -z "$ac_cxx_werror_flag" || |
|
|
7655 | test ! -s conftest.err |
|
|
7656 | } && test -s conftest.$ac_objext; then |
|
|
7657 | ac_cv_header_time=yes |
|
|
7658 | else |
|
|
7659 | echo "$as_me: failed program was:" >&5 |
|
|
7660 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7661 | |
|
|
7662 | ac_cv_header_time=no |
|
|
7663 | fi |
|
|
7664 | |
|
|
7665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7666 | fi |
|
|
7667 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7668 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7669 | if test $ac_cv_header_time = yes; then |
|
|
7670 | |
|
|
7671 | cat >>confdefs.h <<\_ACEOF |
|
|
7672 | #define TIME_WITH_SYS_TIME 1 |
|
|
7673 | _ACEOF |
|
|
7674 | |
|
|
7675 | fi |
|
|
7676 | |
|
|
7677 | |
|
|
7678 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7766 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
7679 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7767 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
7680 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7768 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
7681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7682 | else |
7770 | else |
… | |
… | |
7686 | cat confdefs.h >>conftest.$ac_ext |
7774 | cat confdefs.h >>conftest.$ac_ext |
7687 | cat >>conftest.$ac_ext <<_ACEOF |
7775 | cat >>conftest.$ac_ext <<_ACEOF |
7688 | /* end confdefs.h. */ |
7776 | /* end confdefs.h. */ |
7689 | #include <stdio.h> |
7777 | #include <stdio.h> |
7690 | #include <sys/ioctl.h> |
7778 | #include <sys/ioctl.h> |
7691 | #ifdef HAVE_TERMIOS_H |
|
|
7692 | #include <termios.h> |
7779 | #include <termios.h> |
7693 | #endif |
7780 | |
7694 | int |
7781 | int |
7695 | main () |
7782 | main () |
7696 | { |
7783 | { |
7697 | int a = ECHO; |
7784 | int a = ECHO; |
7698 | ; |
7785 | ; |
… | |
… | |
7847 | cat >>confdefs.h <<\_ACEOF |
7934 | cat >>confdefs.h <<\_ACEOF |
7848 | #define XLIB_ILLEGAL_ACCESS 1 |
7935 | #define XLIB_ILLEGAL_ACCESS 1 |
7849 | _ACEOF |
7936 | _ACEOF |
7850 | |
7937 | |
7851 | fi |
7938 | fi |
7852 | |
|
|
7853 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7854 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7855 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7857 | else |
|
|
7858 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7859 | /* confdefs.h. */ |
|
|
7860 | _ACEOF |
|
|
7861 | cat confdefs.h >>conftest.$ac_ext |
|
|
7862 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7863 | /* end confdefs.h. */ |
|
|
7864 | |
|
|
7865 | int |
|
|
7866 | main () |
|
|
7867 | { |
|
|
7868 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7869 | #ifndef __cplusplus |
|
|
7870 | /* Ultrix mips cc rejects this. */ |
|
|
7871 | typedef int charset[2]; |
|
|
7872 | const charset cs; |
|
|
7873 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7874 | char const *const *pcpcc; |
|
|
7875 | char **ppc; |
|
|
7876 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7877 | struct point {int x, y;}; |
|
|
7878 | static struct point const zero = {0,0}; |
|
|
7879 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7880 | It does not let you subtract one const X* pointer from another in |
|
|
7881 | an arm of an if-expression whose if-part is not a constant |
|
|
7882 | expression */ |
|
|
7883 | const char *g = "string"; |
|
|
7884 | pcpcc = &g + (g ? g-g : 0); |
|
|
7885 | /* HPUX 7.0 cc rejects these. */ |
|
|
7886 | ++pcpcc; |
|
|
7887 | ppc = (char**) pcpcc; |
|
|
7888 | pcpcc = (char const *const *) ppc; |
|
|
7889 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7890 | char *t; |
|
|
7891 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7892 | |
|
|
7893 | *t++ = 0; |
|
|
7894 | if (s) return 0; |
|
|
7895 | } |
|
|
7896 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7897 | int x[] = {25, 17}; |
|
|
7898 | const int *foo = &x[0]; |
|
|
7899 | ++foo; |
|
|
7900 | } |
|
|
7901 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7902 | typedef const int *iptr; |
|
|
7903 | iptr p = 0; |
|
|
7904 | ++p; |
|
|
7905 | } |
|
|
7906 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7907 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7908 | struct s { int j; const int *ap[3]; }; |
|
|
7909 | struct s *b; b->j = 5; |
|
|
7910 | } |
|
|
7911 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7912 | const int foo = 10; |
|
|
7913 | if (!foo) return 0; |
|
|
7914 | } |
|
|
7915 | return !cs[0] && !zero.x; |
|
|
7916 | #endif |
|
|
7917 | |
|
|
7918 | ; |
|
|
7919 | return 0; |
|
|
7920 | } |
|
|
7921 | _ACEOF |
|
|
7922 | rm -f conftest.$ac_objext |
|
|
7923 | if { (ac_try="$ac_compile" |
|
|
7924 | case "(($ac_try" in |
|
|
7925 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7926 | *) ac_try_echo=$ac_try;; |
|
|
7927 | esac |
|
|
7928 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7929 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7930 | ac_status=$? |
|
|
7931 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7932 | rm -f conftest.er1 |
|
|
7933 | cat conftest.err >&5 |
|
|
7934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7935 | (exit $ac_status); } && { |
|
|
7936 | test -z "$ac_cxx_werror_flag" || |
|
|
7937 | test ! -s conftest.err |
|
|
7938 | } && test -s conftest.$ac_objext; then |
|
|
7939 | ac_cv_c_const=yes |
|
|
7940 | else |
|
|
7941 | echo "$as_me: failed program was:" >&5 |
|
|
7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7943 | |
|
|
7944 | ac_cv_c_const=no |
|
|
7945 | fi |
|
|
7946 | |
|
|
7947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7948 | fi |
|
|
7949 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7950 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7951 | if test $ac_cv_c_const = no; then |
|
|
7952 | |
|
|
7953 | cat >>confdefs.h <<\_ACEOF |
|
|
7954 | #define const |
|
|
7955 | _ACEOF |
|
|
7956 | |
|
|
7957 | fi |
|
|
7958 | |
|
|
7959 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7960 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7961 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7963 | else |
|
|
7964 | ac_cv_c_inline=no |
|
|
7965 | for ac_kw in inline __inline__ __inline; do |
|
|
7966 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7967 | /* confdefs.h. */ |
|
|
7968 | _ACEOF |
|
|
7969 | cat confdefs.h >>conftest.$ac_ext |
|
|
7970 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7971 | /* end confdefs.h. */ |
|
|
7972 | #ifndef __cplusplus |
|
|
7973 | typedef int foo_t; |
|
|
7974 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7975 | $ac_kw foo_t foo () {return 0; } |
|
|
7976 | #endif |
|
|
7977 | |
|
|
7978 | _ACEOF |
|
|
7979 | rm -f conftest.$ac_objext |
|
|
7980 | if { (ac_try="$ac_compile" |
|
|
7981 | case "(($ac_try" in |
|
|
7982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7983 | *) ac_try_echo=$ac_try;; |
|
|
7984 | esac |
|
|
7985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7986 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7987 | ac_status=$? |
|
|
7988 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7989 | rm -f conftest.er1 |
|
|
7990 | cat conftest.err >&5 |
|
|
7991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7992 | (exit $ac_status); } && { |
|
|
7993 | test -z "$ac_cxx_werror_flag" || |
|
|
7994 | test ! -s conftest.err |
|
|
7995 | } && test -s conftest.$ac_objext; then |
|
|
7996 | ac_cv_c_inline=$ac_kw |
|
|
7997 | else |
|
|
7998 | echo "$as_me: failed program was:" >&5 |
|
|
7999 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8000 | |
|
|
8001 | |
|
|
8002 | fi |
|
|
8003 | |
|
|
8004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8005 | test "$ac_cv_c_inline" != no && break |
|
|
8006 | done |
|
|
8007 | |
|
|
8008 | fi |
|
|
8009 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
8010 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
8011 | |
|
|
8012 | |
|
|
8013 | case $ac_cv_c_inline in |
|
|
8014 | inline | yes) ;; |
|
|
8015 | *) |
|
|
8016 | case $ac_cv_c_inline in |
|
|
8017 | no) ac_val=;; |
|
|
8018 | *) ac_val=$ac_cv_c_inline;; |
|
|
8019 | esac |
|
|
8020 | cat >>confdefs.h <<_ACEOF |
|
|
8021 | #ifndef __cplusplus |
|
|
8022 | #define inline $ac_val |
|
|
8023 | #endif |
|
|
8024 | _ACEOF |
|
|
8025 | ;; |
|
|
8026 | esac |
|
|
8027 | |
|
|
8028 | |
|
|
8029 | |
7939 | |
8030 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7940 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
8031 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7941 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
8032 | if test "${ac_cv_type_mode_t+set}" = set; then |
7942 | if test "${ac_cv_type_mode_t+set}" = set; then |
8033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8190 | _ACEOF |
8100 | _ACEOF |
8191 | |
8101 | |
8192 | fi |
8102 | fi |
8193 | |
8103 | |
8194 | |
8104 | |
8195 | { echo "$as_me:$LINENO: checking for short" >&5 |
8105 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
8196 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8106 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8197 | if test "${ac_cv_type_short+set}" = set; then |
8107 | if test "${ac_cv_c_int16_t+set}" = set; then |
8198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8199 | else |
8109 | else |
|
|
8110 | ac_cv_c_int16_t=no |
|
|
8111 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8112 | 'long long int' 'short int' 'signed char'; do |
8200 | cat >conftest.$ac_ext <<_ACEOF |
8113 | cat >conftest.$ac_ext <<_ACEOF |
8201 | /* confdefs.h. */ |
8114 | /* confdefs.h. */ |
8202 | _ACEOF |
8115 | _ACEOF |
8203 | cat confdefs.h >>conftest.$ac_ext |
8116 | cat confdefs.h >>conftest.$ac_ext |
8204 | cat >>conftest.$ac_ext <<_ACEOF |
8117 | cat >>conftest.$ac_ext <<_ACEOF |
8205 | /* end confdefs.h. */ |
8118 | /* end confdefs.h. */ |
8206 | $ac_includes_default |
8119 | $ac_includes_default |
8207 | typedef short ac__type_new_; |
|
|
8208 | int |
8120 | int |
8209 | main () |
8121 | main () |
8210 | { |
8122 | { |
8211 | if ((ac__type_new_ *) 0) |
8123 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8212 | return 0; |
8124 | test_array [0] = 0 |
8213 | if (sizeof (ac__type_new_)) |
8125 | |
8214 | return 0; |
|
|
8215 | ; |
8126 | ; |
8216 | return 0; |
8127 | return 0; |
8217 | } |
8128 | } |
8218 | _ACEOF |
8129 | _ACEOF |
8219 | rm -f conftest.$ac_objext |
8130 | rm -f conftest.$ac_objext |
… | |
… | |
8231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8232 | (exit $ac_status); } && { |
8143 | (exit $ac_status); } && { |
8233 | test -z "$ac_cxx_werror_flag" || |
8144 | test -z "$ac_cxx_werror_flag" || |
8234 | test ! -s conftest.err |
8145 | test ! -s conftest.err |
8235 | } && test -s conftest.$ac_objext; then |
8146 | } && test -s conftest.$ac_objext; then |
8236 | ac_cv_type_short=yes |
|
|
8237 | else |
|
|
8238 | echo "$as_me: failed program was:" >&5 |
|
|
8239 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8240 | |
|
|
8241 | ac_cv_type_short=no |
|
|
8242 | fi |
|
|
8243 | |
|
|
8244 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8245 | fi |
|
|
8246 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8247 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8248 | |
|
|
8249 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8250 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8251 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8252 | # This bug is HP SR number 8606223364. |
|
|
8253 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8254 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8255 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8257 | else |
|
|
8258 | if test "$cross_compiling" = yes; then |
|
|
8259 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8260 | cat >conftest.$ac_ext <<_ACEOF |
8147 | cat >conftest.$ac_ext <<_ACEOF |
8261 | /* confdefs.h. */ |
8148 | /* confdefs.h. */ |
8262 | _ACEOF |
8149 | _ACEOF |
8263 | cat confdefs.h >>conftest.$ac_ext |
8150 | cat confdefs.h >>conftest.$ac_ext |
8264 | cat >>conftest.$ac_ext <<_ACEOF |
8151 | cat >>conftest.$ac_ext <<_ACEOF |
8265 | /* end confdefs.h. */ |
8152 | /* end confdefs.h. */ |
8266 | $ac_includes_default |
8153 | $ac_includes_default |
8267 | typedef short ac__type_sizeof_; |
|
|
8268 | int |
8154 | int |
8269 | main () |
8155 | main () |
8270 | { |
8156 | { |
8271 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8157 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8158 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8272 | test_array [0] = 0 |
8159 | test_array [0] = 0 |
8273 | |
8160 | |
8274 | ; |
8161 | ; |
8275 | return 0; |
8162 | return 0; |
8276 | } |
8163 | } |
… | |
… | |
8290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8291 | (exit $ac_status); } && { |
8178 | (exit $ac_status); } && { |
8292 | test -z "$ac_cxx_werror_flag" || |
8179 | test -z "$ac_cxx_werror_flag" || |
8293 | test ! -s conftest.err |
8180 | test ! -s conftest.err |
8294 | } && test -s conftest.$ac_objext; then |
8181 | } && test -s conftest.$ac_objext; then |
8295 | ac_lo=0 ac_mid=0 |
8182 | : |
8296 | while :; do |
8183 | else |
|
|
8184 | echo "$as_me: failed program was:" >&5 |
|
|
8185 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8186 | |
|
|
8187 | case $ac_type in |
|
|
8188 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8189 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8190 | esac |
|
|
8191 | |
|
|
8192 | fi |
|
|
8193 | |
|
|
8194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8195 | else |
|
|
8196 | echo "$as_me: failed program was:" >&5 |
|
|
8197 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8198 | |
|
|
8199 | |
|
|
8200 | fi |
|
|
8201 | |
|
|
8202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8203 | test "$ac_cv_c_int16_t" != no && break |
|
|
8204 | done |
|
|
8205 | fi |
|
|
8206 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8207 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8208 | case $ac_cv_c_int16_t in #( |
|
|
8209 | no|yes) ;; #( |
|
|
8210 | *) |
|
|
8211 | |
|
|
8212 | cat >>confdefs.h <<_ACEOF |
|
|
8213 | #define int16_t $ac_cv_c_int16_t |
|
|
8214 | _ACEOF |
|
|
8215 | ;; |
|
|
8216 | esac |
|
|
8217 | |
|
|
8218 | |
|
|
8219 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8220 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8221 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8223 | else |
|
|
8224 | ac_cv_c_uint16_t=no |
|
|
8225 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8226 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8297 | cat >conftest.$ac_ext <<_ACEOF |
8227 | cat >conftest.$ac_ext <<_ACEOF |
8298 | /* confdefs.h. */ |
8228 | /* confdefs.h. */ |
8299 | _ACEOF |
8229 | _ACEOF |
8300 | cat confdefs.h >>conftest.$ac_ext |
8230 | cat confdefs.h >>conftest.$ac_ext |
8301 | cat >>conftest.$ac_ext <<_ACEOF |
8231 | cat >>conftest.$ac_ext <<_ACEOF |
8302 | /* end confdefs.h. */ |
8232 | /* end confdefs.h. */ |
8303 | $ac_includes_default |
8233 | $ac_includes_default |
8304 | typedef short ac__type_sizeof_; |
|
|
8305 | int |
8234 | int |
8306 | main () |
8235 | main () |
8307 | { |
8236 | { |
8308 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8237 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8309 | test_array [0] = 0 |
8238 | test_array [0] = 0 |
8310 | |
8239 | |
8311 | ; |
8240 | ; |
8312 | return 0; |
8241 | return 0; |
8313 | } |
8242 | } |
… | |
… | |
8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8328 | (exit $ac_status); } && { |
8257 | (exit $ac_status); } && { |
8329 | test -z "$ac_cxx_werror_flag" || |
8258 | test -z "$ac_cxx_werror_flag" || |
8330 | test ! -s conftest.err |
8259 | test ! -s conftest.err |
8331 | } && test -s conftest.$ac_objext; then |
8260 | } && test -s conftest.$ac_objext; then |
8332 | ac_hi=$ac_mid; break |
8261 | case $ac_type in |
|
|
8262 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8263 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8264 | esac |
|
|
8265 | |
8333 | else |
8266 | else |
8334 | echo "$as_me: failed program was:" >&5 |
8267 | echo "$as_me: failed program was:" >&5 |
8335 | sed 's/^/| /' conftest.$ac_ext >&5 |
8268 | sed 's/^/| /' conftest.$ac_ext >&5 |
8336 | |
8269 | |
8337 | ac_lo=`expr $ac_mid + 1` |
8270 | |
8338 | if test $ac_lo -le $ac_mid; then |
|
|
8339 | ac_lo= ac_hi= |
|
|
8340 | break |
|
|
8341 | fi |
|
|
8342 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8343 | fi |
8271 | fi |
8344 | |
8272 | |
8345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8274 | test "$ac_cv_c_uint16_t" != no && break |
8346 | done |
8275 | done |
8347 | else |
8276 | fi |
8348 | echo "$as_me: failed program was:" >&5 |
8277 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8349 | sed 's/^/| /' conftest.$ac_ext >&5 |
8278 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8279 | case $ac_cv_c_uint16_t in #( |
|
|
8280 | no|yes) ;; #( |
|
|
8281 | *) |
8350 | |
8282 | |
|
|
8283 | |
|
|
8284 | cat >>confdefs.h <<_ACEOF |
|
|
8285 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8286 | _ACEOF |
|
|
8287 | ;; |
|
|
8288 | esac |
|
|
8289 | |
|
|
8290 | |
|
|
8291 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8292 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8293 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8295 | else |
|
|
8296 | ac_cv_c_int32_t=no |
|
|
8297 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8298 | 'long long int' 'short int' 'signed char'; do |
8351 | cat >conftest.$ac_ext <<_ACEOF |
8299 | cat >conftest.$ac_ext <<_ACEOF |
8352 | /* confdefs.h. */ |
8300 | /* confdefs.h. */ |
8353 | _ACEOF |
8301 | _ACEOF |
8354 | cat confdefs.h >>conftest.$ac_ext |
8302 | cat confdefs.h >>conftest.$ac_ext |
8355 | cat >>conftest.$ac_ext <<_ACEOF |
8303 | cat >>conftest.$ac_ext <<_ACEOF |
8356 | /* end confdefs.h. */ |
8304 | /* end confdefs.h. */ |
8357 | $ac_includes_default |
8305 | $ac_includes_default |
8358 | typedef short ac__type_sizeof_; |
|
|
8359 | int |
8306 | int |
8360 | main () |
8307 | main () |
8361 | { |
8308 | { |
8362 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8309 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8363 | test_array [0] = 0 |
8310 | test_array [0] = 0 |
8364 | |
8311 | |
8365 | ; |
8312 | ; |
8366 | return 0; |
8313 | return 0; |
8367 | } |
8314 | } |
… | |
… | |
8381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8382 | (exit $ac_status); } && { |
8329 | (exit $ac_status); } && { |
8383 | test -z "$ac_cxx_werror_flag" || |
8330 | test -z "$ac_cxx_werror_flag" || |
8384 | test ! -s conftest.err |
8331 | test ! -s conftest.err |
8385 | } && test -s conftest.$ac_objext; then |
8332 | } && test -s conftest.$ac_objext; then |
8386 | ac_hi=-1 ac_mid=-1 |
|
|
8387 | while :; do |
|
|
8388 | cat >conftest.$ac_ext <<_ACEOF |
8333 | cat >conftest.$ac_ext <<_ACEOF |
8389 | /* confdefs.h. */ |
8334 | /* confdefs.h. */ |
8390 | _ACEOF |
8335 | _ACEOF |
8391 | cat confdefs.h >>conftest.$ac_ext |
8336 | cat confdefs.h >>conftest.$ac_ext |
8392 | cat >>conftest.$ac_ext <<_ACEOF |
8337 | cat >>conftest.$ac_ext <<_ACEOF |
8393 | /* end confdefs.h. */ |
8338 | /* end confdefs.h. */ |
8394 | $ac_includes_default |
8339 | $ac_includes_default |
8395 | typedef short ac__type_sizeof_; |
|
|
8396 | int |
8340 | int |
8397 | main () |
8341 | main () |
8398 | { |
8342 | { |
8399 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8343 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8344 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8400 | test_array [0] = 0 |
8345 | test_array [0] = 0 |
8401 | |
8346 | |
8402 | ; |
8347 | ; |
8403 | return 0; |
8348 | return 0; |
8404 | } |
8349 | } |
… | |
… | |
8418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8419 | (exit $ac_status); } && { |
8364 | (exit $ac_status); } && { |
8420 | test -z "$ac_cxx_werror_flag" || |
8365 | test -z "$ac_cxx_werror_flag" || |
8421 | test ! -s conftest.err |
8366 | test ! -s conftest.err |
8422 | } && test -s conftest.$ac_objext; then |
8367 | } && test -s conftest.$ac_objext; then |
8423 | ac_lo=$ac_mid; break |
8368 | : |
8424 | else |
8369 | else |
8425 | echo "$as_me: failed program was:" >&5 |
8370 | echo "$as_me: failed program was:" >&5 |
8426 | sed 's/^/| /' conftest.$ac_ext >&5 |
8371 | sed 's/^/| /' conftest.$ac_ext >&5 |
8427 | |
8372 | |
8428 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8373 | case $ac_type in |
8429 | if test $ac_mid -le $ac_hi; then |
8374 | int32_t) ac_cv_c_int32_t=yes ;; |
8430 | ac_lo= ac_hi= |
8375 | *) ac_cv_c_int32_t=$ac_type ;; |
8431 | break |
8376 | esac |
8432 | fi |
8377 | |
8433 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8434 | fi |
8378 | fi |
8435 | |
8379 | |
8436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8437 | done |
|
|
8438 | else |
8381 | else |
8439 | echo "$as_me: failed program was:" >&5 |
8382 | echo "$as_me: failed program was:" >&5 |
8440 | sed 's/^/| /' conftest.$ac_ext >&5 |
8383 | sed 's/^/| /' conftest.$ac_ext >&5 |
8441 | |
8384 | |
8442 | ac_lo= ac_hi= |
8385 | |
8443 | fi |
8386 | fi |
8444 | |
8387 | |
8445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8389 | test "$ac_cv_c_int32_t" != no && break |
|
|
8390 | done |
8446 | fi |
8391 | fi |
|
|
8392 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8393 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8394 | case $ac_cv_c_int32_t in #( |
|
|
8395 | no|yes) ;; #( |
|
|
8396 | *) |
8447 | |
8397 | |
8448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8398 | cat >>confdefs.h <<_ACEOF |
8449 | # Binary search between lo and hi bounds. |
8399 | #define int32_t $ac_cv_c_int32_t |
8450 | while test "x$ac_lo" != "x$ac_hi"; do |
8400 | _ACEOF |
8451 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8401 | ;; |
|
|
8402 | esac |
|
|
8403 | |
|
|
8404 | |
|
|
8405 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8406 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8407 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8409 | else |
|
|
8410 | ac_cv_c_uint32_t=no |
|
|
8411 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8412 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8452 | cat >conftest.$ac_ext <<_ACEOF |
8413 | cat >conftest.$ac_ext <<_ACEOF |
8453 | /* confdefs.h. */ |
8414 | /* confdefs.h. */ |
8454 | _ACEOF |
8415 | _ACEOF |
8455 | cat confdefs.h >>conftest.$ac_ext |
8416 | cat confdefs.h >>conftest.$ac_ext |
8456 | cat >>conftest.$ac_ext <<_ACEOF |
8417 | cat >>conftest.$ac_ext <<_ACEOF |
8457 | /* end confdefs.h. */ |
8418 | /* end confdefs.h. */ |
8458 | $ac_includes_default |
8419 | $ac_includes_default |
8459 | typedef short ac__type_sizeof_; |
|
|
8460 | int |
8420 | int |
8461 | main () |
8421 | main () |
8462 | { |
8422 | { |
8463 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8423 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8464 | test_array [0] = 0 |
8424 | test_array [0] = 0 |
8465 | |
8425 | |
8466 | ; |
8426 | ; |
8467 | return 0; |
8427 | return 0; |
8468 | } |
8428 | } |
… | |
… | |
8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8483 | (exit $ac_status); } && { |
8443 | (exit $ac_status); } && { |
8484 | test -z "$ac_cxx_werror_flag" || |
8444 | test -z "$ac_cxx_werror_flag" || |
8485 | test ! -s conftest.err |
8445 | test ! -s conftest.err |
8486 | } && test -s conftest.$ac_objext; then |
8446 | } && test -s conftest.$ac_objext; then |
8487 | ac_hi=$ac_mid |
8447 | case $ac_type in |
|
|
8448 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8449 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8450 | esac |
|
|
8451 | |
8488 | else |
8452 | else |
8489 | echo "$as_me: failed program was:" >&5 |
8453 | echo "$as_me: failed program was:" >&5 |
8490 | sed 's/^/| /' conftest.$ac_ext >&5 |
8454 | sed 's/^/| /' conftest.$ac_ext >&5 |
8491 | |
8455 | |
8492 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8456 | |
8493 | fi |
8457 | fi |
8494 | |
8458 | |
8495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8496 | done |
8460 | test "$ac_cv_c_uint32_t" != no && break |
8497 | case $ac_lo in |
8461 | done |
8498 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8499 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8500 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8501 | See \`config.log' for more details." >&5 |
|
|
8502 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8503 | See \`config.log' for more details." >&2;} |
|
|
8504 | { (exit 77); exit 77; }; } |
|
|
8505 | else |
|
|
8506 | ac_cv_sizeof_short=0 |
|
|
8507 | fi ;; |
|
|
8508 | esac |
|
|
8509 | else |
|
|
8510 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8511 | /* confdefs.h. */ |
|
|
8512 | _ACEOF |
|
|
8513 | cat confdefs.h >>conftest.$ac_ext |
|
|
8514 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8515 | /* end confdefs.h. */ |
|
|
8516 | $ac_includes_default |
|
|
8517 | typedef short ac__type_sizeof_; |
|
|
8518 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8519 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8520 | #include <stdio.h> |
|
|
8521 | #include <stdlib.h> |
|
|
8522 | int |
|
|
8523 | main () |
|
|
8524 | { |
|
|
8525 | |
|
|
8526 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8527 | if (! f) |
|
|
8528 | return 1; |
|
|
8529 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8530 | { |
|
|
8531 | long int i = longval (); |
|
|
8532 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8533 | return 1; |
|
|
8534 | fprintf (f, "%ld\n", i); |
|
|
8535 | } |
|
|
8536 | else |
|
|
8537 | { |
|
|
8538 | unsigned long int i = ulongval (); |
|
|
8539 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8540 | return 1; |
|
|
8541 | fprintf (f, "%lu\n", i); |
|
|
8542 | } |
|
|
8543 | return ferror (f) || fclose (f) != 0; |
|
|
8544 | |
|
|
8545 | ; |
|
|
8546 | return 0; |
|
|
8547 | } |
|
|
8548 | _ACEOF |
|
|
8549 | rm -f conftest$ac_exeext |
|
|
8550 | if { (ac_try="$ac_link" |
|
|
8551 | case "(($ac_try" in |
|
|
8552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8553 | *) ac_try_echo=$ac_try;; |
|
|
8554 | esac |
|
|
8555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8556 | (eval "$ac_link") 2>&5 |
|
|
8557 | ac_status=$? |
|
|
8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8559 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8560 | { (case "(($ac_try" in |
|
|
8561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8562 | *) ac_try_echo=$ac_try;; |
|
|
8563 | esac |
|
|
8564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8565 | (eval "$ac_try") 2>&5 |
|
|
8566 | ac_status=$? |
|
|
8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8568 | (exit $ac_status); }; }; then |
|
|
8569 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8570 | else |
|
|
8571 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8572 | echo "$as_me: failed program was:" >&5 |
|
|
8573 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8574 | |
|
|
8575 | ( exit $ac_status ) |
|
|
8576 | if test "$ac_cv_type_short" = yes; then |
|
|
8577 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8578 | See \`config.log' for more details." >&5 |
|
|
8579 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8580 | See \`config.log' for more details." >&2;} |
|
|
8581 | { (exit 77); exit 77; }; } |
|
|
8582 | else |
|
|
8583 | ac_cv_sizeof_short=0 |
|
|
8584 | fi |
|
|
8585 | fi |
8462 | fi |
8586 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8587 | fi |
|
|
8588 | rm -f conftest.val |
|
|
8589 | fi |
|
|
8590 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8463 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8591 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8464 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8465 | case $ac_cv_c_uint32_t in #( |
|
|
8466 | no|yes) ;; #( |
|
|
8467 | *) |
8592 | |
8468 | |
|
|
8469 | cat >>confdefs.h <<\_ACEOF |
|
|
8470 | #define _UINT32_T 1 |
|
|
8471 | _ACEOF |
8593 | |
8472 | |
8594 | |
8473 | |
8595 | cat >>confdefs.h <<_ACEOF |
8474 | cat >>confdefs.h <<_ACEOF |
8596 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8475 | #define uint32_t $ac_cv_c_uint32_t |
8597 | _ACEOF |
8476 | _ACEOF |
8598 | |
8477 | ;; |
8599 | |
|
|
8600 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8601 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8602 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8604 | else |
|
|
8605 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8606 | /* confdefs.h. */ |
|
|
8607 | _ACEOF |
|
|
8608 | cat confdefs.h >>conftest.$ac_ext |
|
|
8609 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8610 | /* end confdefs.h. */ |
|
|
8611 | $ac_includes_default |
|
|
8612 | typedef int ac__type_new_; |
|
|
8613 | int |
|
|
8614 | main () |
|
|
8615 | { |
|
|
8616 | if ((ac__type_new_ *) 0) |
|
|
8617 | return 0; |
|
|
8618 | if (sizeof (ac__type_new_)) |
|
|
8619 | return 0; |
|
|
8620 | ; |
|
|
8621 | return 0; |
|
|
8622 | } |
|
|
8623 | _ACEOF |
|
|
8624 | rm -f conftest.$ac_objext |
|
|
8625 | if { (ac_try="$ac_compile" |
|
|
8626 | case "(($ac_try" in |
|
|
8627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8628 | *) ac_try_echo=$ac_try;; |
|
|
8629 | esac |
8478 | esac |
8630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8631 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8632 | ac_status=$? |
|
|
8633 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8634 | rm -f conftest.er1 |
|
|
8635 | cat conftest.err >&5 |
|
|
8636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8637 | (exit $ac_status); } && { |
|
|
8638 | test -z "$ac_cxx_werror_flag" || |
|
|
8639 | test ! -s conftest.err |
|
|
8640 | } && test -s conftest.$ac_objext; then |
|
|
8641 | ac_cv_type_int=yes |
|
|
8642 | else |
|
|
8643 | echo "$as_me: failed program was:" >&5 |
|
|
8644 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8645 | |
|
|
8646 | ac_cv_type_int=no |
|
|
8647 | fi |
|
|
8648 | |
|
|
8649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8650 | fi |
|
|
8651 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8652 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8653 | |
|
|
8654 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8655 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8656 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8657 | # This bug is HP SR number 8606223364. |
|
|
8658 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8659 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8660 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8662 | else |
|
|
8663 | if test "$cross_compiling" = yes; then |
|
|
8664 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8665 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8666 | /* confdefs.h. */ |
|
|
8667 | _ACEOF |
|
|
8668 | cat confdefs.h >>conftest.$ac_ext |
|
|
8669 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8670 | /* end confdefs.h. */ |
|
|
8671 | $ac_includes_default |
|
|
8672 | typedef int ac__type_sizeof_; |
|
|
8673 | int |
|
|
8674 | main () |
|
|
8675 | { |
|
|
8676 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8677 | test_array [0] = 0 |
|
|
8678 | |
|
|
8679 | ; |
|
|
8680 | return 0; |
|
|
8681 | } |
|
|
8682 | _ACEOF |
|
|
8683 | rm -f conftest.$ac_objext |
|
|
8684 | if { (ac_try="$ac_compile" |
|
|
8685 | case "(($ac_try" in |
|
|
8686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8687 | *) ac_try_echo=$ac_try;; |
|
|
8688 | esac |
|
|
8689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8690 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8691 | ac_status=$? |
|
|
8692 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8693 | rm -f conftest.er1 |
|
|
8694 | cat conftest.err >&5 |
|
|
8695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8696 | (exit $ac_status); } && { |
|
|
8697 | test -z "$ac_cxx_werror_flag" || |
|
|
8698 | test ! -s conftest.err |
|
|
8699 | } && test -s conftest.$ac_objext; then |
|
|
8700 | ac_lo=0 ac_mid=0 |
|
|
8701 | while :; do |
|
|
8702 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8703 | /* confdefs.h. */ |
|
|
8704 | _ACEOF |
|
|
8705 | cat confdefs.h >>conftest.$ac_ext |
|
|
8706 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8707 | /* end confdefs.h. */ |
|
|
8708 | $ac_includes_default |
|
|
8709 | typedef int ac__type_sizeof_; |
|
|
8710 | int |
|
|
8711 | main () |
|
|
8712 | { |
|
|
8713 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8714 | test_array [0] = 0 |
|
|
8715 | |
|
|
8716 | ; |
|
|
8717 | return 0; |
|
|
8718 | } |
|
|
8719 | _ACEOF |
|
|
8720 | rm -f conftest.$ac_objext |
|
|
8721 | if { (ac_try="$ac_compile" |
|
|
8722 | case "(($ac_try" in |
|
|
8723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8724 | *) ac_try_echo=$ac_try;; |
|
|
8725 | esac |
|
|
8726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8727 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8728 | ac_status=$? |
|
|
8729 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8730 | rm -f conftest.er1 |
|
|
8731 | cat conftest.err >&5 |
|
|
8732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8733 | (exit $ac_status); } && { |
|
|
8734 | test -z "$ac_cxx_werror_flag" || |
|
|
8735 | test ! -s conftest.err |
|
|
8736 | } && test -s conftest.$ac_objext; then |
|
|
8737 | ac_hi=$ac_mid; break |
|
|
8738 | else |
|
|
8739 | echo "$as_me: failed program was:" >&5 |
|
|
8740 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8741 | |
|
|
8742 | ac_lo=`expr $ac_mid + 1` |
|
|
8743 | if test $ac_lo -le $ac_mid; then |
|
|
8744 | ac_lo= ac_hi= |
|
|
8745 | break |
|
|
8746 | fi |
|
|
8747 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8748 | fi |
|
|
8749 | |
|
|
8750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8751 | done |
|
|
8752 | else |
|
|
8753 | echo "$as_me: failed program was:" >&5 |
|
|
8754 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8755 | |
|
|
8756 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8757 | /* confdefs.h. */ |
|
|
8758 | _ACEOF |
|
|
8759 | cat confdefs.h >>conftest.$ac_ext |
|
|
8760 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8761 | /* end confdefs.h. */ |
|
|
8762 | $ac_includes_default |
|
|
8763 | typedef int ac__type_sizeof_; |
|
|
8764 | int |
|
|
8765 | main () |
|
|
8766 | { |
|
|
8767 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8768 | test_array [0] = 0 |
|
|
8769 | |
|
|
8770 | ; |
|
|
8771 | return 0; |
|
|
8772 | } |
|
|
8773 | _ACEOF |
|
|
8774 | rm -f conftest.$ac_objext |
|
|
8775 | if { (ac_try="$ac_compile" |
|
|
8776 | case "(($ac_try" in |
|
|
8777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8778 | *) ac_try_echo=$ac_try;; |
|
|
8779 | esac |
|
|
8780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8781 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8782 | ac_status=$? |
|
|
8783 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8784 | rm -f conftest.er1 |
|
|
8785 | cat conftest.err >&5 |
|
|
8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8787 | (exit $ac_status); } && { |
|
|
8788 | test -z "$ac_cxx_werror_flag" || |
|
|
8789 | test ! -s conftest.err |
|
|
8790 | } && test -s conftest.$ac_objext; then |
|
|
8791 | ac_hi=-1 ac_mid=-1 |
|
|
8792 | while :; do |
|
|
8793 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8794 | /* confdefs.h. */ |
|
|
8795 | _ACEOF |
|
|
8796 | cat confdefs.h >>conftest.$ac_ext |
|
|
8797 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8798 | /* end confdefs.h. */ |
|
|
8799 | $ac_includes_default |
|
|
8800 | typedef int ac__type_sizeof_; |
|
|
8801 | int |
|
|
8802 | main () |
|
|
8803 | { |
|
|
8804 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8805 | test_array [0] = 0 |
|
|
8806 | |
|
|
8807 | ; |
|
|
8808 | return 0; |
|
|
8809 | } |
|
|
8810 | _ACEOF |
|
|
8811 | rm -f conftest.$ac_objext |
|
|
8812 | if { (ac_try="$ac_compile" |
|
|
8813 | case "(($ac_try" in |
|
|
8814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8815 | *) ac_try_echo=$ac_try;; |
|
|
8816 | esac |
|
|
8817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8818 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8819 | ac_status=$? |
|
|
8820 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8821 | rm -f conftest.er1 |
|
|
8822 | cat conftest.err >&5 |
|
|
8823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8824 | (exit $ac_status); } && { |
|
|
8825 | test -z "$ac_cxx_werror_flag" || |
|
|
8826 | test ! -s conftest.err |
|
|
8827 | } && test -s conftest.$ac_objext; then |
|
|
8828 | ac_lo=$ac_mid; break |
|
|
8829 | else |
|
|
8830 | echo "$as_me: failed program was:" >&5 |
|
|
8831 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8832 | |
|
|
8833 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8834 | if test $ac_mid -le $ac_hi; then |
|
|
8835 | ac_lo= ac_hi= |
|
|
8836 | break |
|
|
8837 | fi |
|
|
8838 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8839 | fi |
|
|
8840 | |
|
|
8841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8842 | done |
|
|
8843 | else |
|
|
8844 | echo "$as_me: failed program was:" >&5 |
|
|
8845 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8846 | |
|
|
8847 | ac_lo= ac_hi= |
|
|
8848 | fi |
|
|
8849 | |
|
|
8850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8851 | fi |
|
|
8852 | |
|
|
8853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8854 | # Binary search between lo and hi bounds. |
|
|
8855 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8856 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8857 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8858 | /* confdefs.h. */ |
|
|
8859 | _ACEOF |
|
|
8860 | cat confdefs.h >>conftest.$ac_ext |
|
|
8861 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8862 | /* end confdefs.h. */ |
|
|
8863 | $ac_includes_default |
|
|
8864 | typedef int ac__type_sizeof_; |
|
|
8865 | int |
|
|
8866 | main () |
|
|
8867 | { |
|
|
8868 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8869 | test_array [0] = 0 |
|
|
8870 | |
|
|
8871 | ; |
|
|
8872 | return 0; |
|
|
8873 | } |
|
|
8874 | _ACEOF |
|
|
8875 | rm -f conftest.$ac_objext |
|
|
8876 | if { (ac_try="$ac_compile" |
|
|
8877 | case "(($ac_try" in |
|
|
8878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8879 | *) ac_try_echo=$ac_try;; |
|
|
8880 | esac |
|
|
8881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8882 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8883 | ac_status=$? |
|
|
8884 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8885 | rm -f conftest.er1 |
|
|
8886 | cat conftest.err >&5 |
|
|
8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8888 | (exit $ac_status); } && { |
|
|
8889 | test -z "$ac_cxx_werror_flag" || |
|
|
8890 | test ! -s conftest.err |
|
|
8891 | } && test -s conftest.$ac_objext; then |
|
|
8892 | ac_hi=$ac_mid |
|
|
8893 | else |
|
|
8894 | echo "$as_me: failed program was:" >&5 |
|
|
8895 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8896 | |
|
|
8897 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8898 | fi |
|
|
8899 | |
|
|
8900 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8901 | done |
|
|
8902 | case $ac_lo in |
|
|
8903 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8904 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8905 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8906 | See \`config.log' for more details." >&5 |
|
|
8907 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8908 | See \`config.log' for more details." >&2;} |
|
|
8909 | { (exit 77); exit 77; }; } |
|
|
8910 | else |
|
|
8911 | ac_cv_sizeof_int=0 |
|
|
8912 | fi ;; |
|
|
8913 | esac |
|
|
8914 | else |
|
|
8915 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8916 | /* confdefs.h. */ |
|
|
8917 | _ACEOF |
|
|
8918 | cat confdefs.h >>conftest.$ac_ext |
|
|
8919 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8920 | /* end confdefs.h. */ |
|
|
8921 | $ac_includes_default |
|
|
8922 | typedef int ac__type_sizeof_; |
|
|
8923 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8924 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8925 | #include <stdio.h> |
|
|
8926 | #include <stdlib.h> |
|
|
8927 | int |
|
|
8928 | main () |
|
|
8929 | { |
|
|
8930 | |
|
|
8931 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8932 | if (! f) |
|
|
8933 | return 1; |
|
|
8934 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8935 | { |
|
|
8936 | long int i = longval (); |
|
|
8937 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8938 | return 1; |
|
|
8939 | fprintf (f, "%ld\n", i); |
|
|
8940 | } |
|
|
8941 | else |
|
|
8942 | { |
|
|
8943 | unsigned long int i = ulongval (); |
|
|
8944 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8945 | return 1; |
|
|
8946 | fprintf (f, "%lu\n", i); |
|
|
8947 | } |
|
|
8948 | return ferror (f) || fclose (f) != 0; |
|
|
8949 | |
|
|
8950 | ; |
|
|
8951 | return 0; |
|
|
8952 | } |
|
|
8953 | _ACEOF |
|
|
8954 | rm -f conftest$ac_exeext |
|
|
8955 | if { (ac_try="$ac_link" |
|
|
8956 | case "(($ac_try" in |
|
|
8957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8958 | *) ac_try_echo=$ac_try;; |
|
|
8959 | esac |
|
|
8960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8961 | (eval "$ac_link") 2>&5 |
|
|
8962 | ac_status=$? |
|
|
8963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8965 | { (case "(($ac_try" in |
|
|
8966 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8967 | *) ac_try_echo=$ac_try;; |
|
|
8968 | esac |
|
|
8969 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8970 | (eval "$ac_try") 2>&5 |
|
|
8971 | ac_status=$? |
|
|
8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8973 | (exit $ac_status); }; }; then |
|
|
8974 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8975 | else |
|
|
8976 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8977 | echo "$as_me: failed program was:" >&5 |
|
|
8978 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8979 | |
|
|
8980 | ( exit $ac_status ) |
|
|
8981 | if test "$ac_cv_type_int" = yes; then |
|
|
8982 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8983 | See \`config.log' for more details." >&5 |
|
|
8984 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8985 | See \`config.log' for more details." >&2;} |
|
|
8986 | { (exit 77); exit 77; }; } |
|
|
8987 | else |
|
|
8988 | ac_cv_sizeof_int=0 |
|
|
8989 | fi |
|
|
8990 | fi |
|
|
8991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8992 | fi |
|
|
8993 | rm -f conftest.val |
|
|
8994 | fi |
|
|
8995 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8996 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8997 | |
|
|
8998 | |
|
|
8999 | |
|
|
9000 | cat >>confdefs.h <<_ACEOF |
|
|
9001 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
9002 | _ACEOF |
|
|
9003 | |
|
|
9004 | |
|
|
9005 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
9006 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
9007 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
9008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9009 | else |
|
|
9010 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9011 | /* confdefs.h. */ |
|
|
9012 | _ACEOF |
|
|
9013 | cat confdefs.h >>conftest.$ac_ext |
|
|
9014 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9015 | /* end confdefs.h. */ |
|
|
9016 | $ac_includes_default |
|
|
9017 | typedef long long ac__type_new_; |
|
|
9018 | int |
|
|
9019 | main () |
|
|
9020 | { |
|
|
9021 | if ((ac__type_new_ *) 0) |
|
|
9022 | return 0; |
|
|
9023 | if (sizeof (ac__type_new_)) |
|
|
9024 | return 0; |
|
|
9025 | ; |
|
|
9026 | return 0; |
|
|
9027 | } |
|
|
9028 | _ACEOF |
|
|
9029 | rm -f conftest.$ac_objext |
|
|
9030 | if { (ac_try="$ac_compile" |
|
|
9031 | case "(($ac_try" in |
|
|
9032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9033 | *) ac_try_echo=$ac_try;; |
|
|
9034 | esac |
|
|
9035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9036 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9037 | ac_status=$? |
|
|
9038 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9039 | rm -f conftest.er1 |
|
|
9040 | cat conftest.err >&5 |
|
|
9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9042 | (exit $ac_status); } && { |
|
|
9043 | test -z "$ac_cxx_werror_flag" || |
|
|
9044 | test ! -s conftest.err |
|
|
9045 | } && test -s conftest.$ac_objext; then |
|
|
9046 | ac_cv_type_long_long=yes |
|
|
9047 | else |
|
|
9048 | echo "$as_me: failed program was:" >&5 |
|
|
9049 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9050 | |
|
|
9051 | ac_cv_type_long_long=no |
|
|
9052 | fi |
|
|
9053 | |
|
|
9054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9055 | fi |
|
|
9056 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
9057 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
9058 | |
|
|
9059 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9060 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9061 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9062 | # This bug is HP SR number 8606223364. |
|
|
9063 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
9064 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
9065 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
9066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9067 | else |
|
|
9068 | if test "$cross_compiling" = yes; then |
|
|
9069 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9070 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9071 | /* confdefs.h. */ |
|
|
9072 | _ACEOF |
|
|
9073 | cat confdefs.h >>conftest.$ac_ext |
|
|
9074 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9075 | /* end confdefs.h. */ |
|
|
9076 | $ac_includes_default |
|
|
9077 | typedef long long ac__type_sizeof_; |
|
|
9078 | int |
|
|
9079 | main () |
|
|
9080 | { |
|
|
9081 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9082 | test_array [0] = 0 |
|
|
9083 | |
|
|
9084 | ; |
|
|
9085 | return 0; |
|
|
9086 | } |
|
|
9087 | _ACEOF |
|
|
9088 | rm -f conftest.$ac_objext |
|
|
9089 | if { (ac_try="$ac_compile" |
|
|
9090 | case "(($ac_try" in |
|
|
9091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9092 | *) ac_try_echo=$ac_try;; |
|
|
9093 | esac |
|
|
9094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9095 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9096 | ac_status=$? |
|
|
9097 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9098 | rm -f conftest.er1 |
|
|
9099 | cat conftest.err >&5 |
|
|
9100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9101 | (exit $ac_status); } && { |
|
|
9102 | test -z "$ac_cxx_werror_flag" || |
|
|
9103 | test ! -s conftest.err |
|
|
9104 | } && test -s conftest.$ac_objext; then |
|
|
9105 | ac_lo=0 ac_mid=0 |
|
|
9106 | while :; do |
|
|
9107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9108 | /* confdefs.h. */ |
|
|
9109 | _ACEOF |
|
|
9110 | cat confdefs.h >>conftest.$ac_ext |
|
|
9111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9112 | /* end confdefs.h. */ |
|
|
9113 | $ac_includes_default |
|
|
9114 | typedef long long ac__type_sizeof_; |
|
|
9115 | int |
|
|
9116 | main () |
|
|
9117 | { |
|
|
9118 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9119 | test_array [0] = 0 |
|
|
9120 | |
|
|
9121 | ; |
|
|
9122 | return 0; |
|
|
9123 | } |
|
|
9124 | _ACEOF |
|
|
9125 | rm -f conftest.$ac_objext |
|
|
9126 | if { (ac_try="$ac_compile" |
|
|
9127 | case "(($ac_try" in |
|
|
9128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9129 | *) ac_try_echo=$ac_try;; |
|
|
9130 | esac |
|
|
9131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9132 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9133 | ac_status=$? |
|
|
9134 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9135 | rm -f conftest.er1 |
|
|
9136 | cat conftest.err >&5 |
|
|
9137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9138 | (exit $ac_status); } && { |
|
|
9139 | test -z "$ac_cxx_werror_flag" || |
|
|
9140 | test ! -s conftest.err |
|
|
9141 | } && test -s conftest.$ac_objext; then |
|
|
9142 | ac_hi=$ac_mid; break |
|
|
9143 | else |
|
|
9144 | echo "$as_me: failed program was:" >&5 |
|
|
9145 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9146 | |
|
|
9147 | ac_lo=`expr $ac_mid + 1` |
|
|
9148 | if test $ac_lo -le $ac_mid; then |
|
|
9149 | ac_lo= ac_hi= |
|
|
9150 | break |
|
|
9151 | fi |
|
|
9152 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9153 | fi |
|
|
9154 | |
|
|
9155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9156 | done |
|
|
9157 | else |
|
|
9158 | echo "$as_me: failed program was:" >&5 |
|
|
9159 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9160 | |
|
|
9161 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9162 | /* confdefs.h. */ |
|
|
9163 | _ACEOF |
|
|
9164 | cat confdefs.h >>conftest.$ac_ext |
|
|
9165 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9166 | /* end confdefs.h. */ |
|
|
9167 | $ac_includes_default |
|
|
9168 | typedef long long ac__type_sizeof_; |
|
|
9169 | int |
|
|
9170 | main () |
|
|
9171 | { |
|
|
9172 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9173 | test_array [0] = 0 |
|
|
9174 | |
|
|
9175 | ; |
|
|
9176 | return 0; |
|
|
9177 | } |
|
|
9178 | _ACEOF |
|
|
9179 | rm -f conftest.$ac_objext |
|
|
9180 | if { (ac_try="$ac_compile" |
|
|
9181 | case "(($ac_try" in |
|
|
9182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9183 | *) ac_try_echo=$ac_try;; |
|
|
9184 | esac |
|
|
9185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9186 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9187 | ac_status=$? |
|
|
9188 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9189 | rm -f conftest.er1 |
|
|
9190 | cat conftest.err >&5 |
|
|
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9192 | (exit $ac_status); } && { |
|
|
9193 | test -z "$ac_cxx_werror_flag" || |
|
|
9194 | test ! -s conftest.err |
|
|
9195 | } && test -s conftest.$ac_objext; then |
|
|
9196 | ac_hi=-1 ac_mid=-1 |
|
|
9197 | while :; do |
|
|
9198 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9199 | /* confdefs.h. */ |
|
|
9200 | _ACEOF |
|
|
9201 | cat confdefs.h >>conftest.$ac_ext |
|
|
9202 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9203 | /* end confdefs.h. */ |
|
|
9204 | $ac_includes_default |
|
|
9205 | typedef long long ac__type_sizeof_; |
|
|
9206 | int |
|
|
9207 | main () |
|
|
9208 | { |
|
|
9209 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9210 | test_array [0] = 0 |
|
|
9211 | |
|
|
9212 | ; |
|
|
9213 | return 0; |
|
|
9214 | } |
|
|
9215 | _ACEOF |
|
|
9216 | rm -f conftest.$ac_objext |
|
|
9217 | if { (ac_try="$ac_compile" |
|
|
9218 | case "(($ac_try" in |
|
|
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9220 | *) ac_try_echo=$ac_try;; |
|
|
9221 | esac |
|
|
9222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9223 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9224 | ac_status=$? |
|
|
9225 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9226 | rm -f conftest.er1 |
|
|
9227 | cat conftest.err >&5 |
|
|
9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9229 | (exit $ac_status); } && { |
|
|
9230 | test -z "$ac_cxx_werror_flag" || |
|
|
9231 | test ! -s conftest.err |
|
|
9232 | } && test -s conftest.$ac_objext; then |
|
|
9233 | ac_lo=$ac_mid; break |
|
|
9234 | else |
|
|
9235 | echo "$as_me: failed program was:" >&5 |
|
|
9236 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9237 | |
|
|
9238 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9239 | if test $ac_mid -le $ac_hi; then |
|
|
9240 | ac_lo= ac_hi= |
|
|
9241 | break |
|
|
9242 | fi |
|
|
9243 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9244 | fi |
|
|
9245 | |
|
|
9246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9247 | done |
|
|
9248 | else |
|
|
9249 | echo "$as_me: failed program was:" >&5 |
|
|
9250 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9251 | |
|
|
9252 | ac_lo= ac_hi= |
|
|
9253 | fi |
|
|
9254 | |
|
|
9255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9256 | fi |
|
|
9257 | |
|
|
9258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9259 | # Binary search between lo and hi bounds. |
|
|
9260 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9261 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9262 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9263 | /* confdefs.h. */ |
|
|
9264 | _ACEOF |
|
|
9265 | cat confdefs.h >>conftest.$ac_ext |
|
|
9266 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9267 | /* end confdefs.h. */ |
|
|
9268 | $ac_includes_default |
|
|
9269 | typedef long long ac__type_sizeof_; |
|
|
9270 | int |
|
|
9271 | main () |
|
|
9272 | { |
|
|
9273 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9274 | test_array [0] = 0 |
|
|
9275 | |
|
|
9276 | ; |
|
|
9277 | return 0; |
|
|
9278 | } |
|
|
9279 | _ACEOF |
|
|
9280 | rm -f conftest.$ac_objext |
|
|
9281 | if { (ac_try="$ac_compile" |
|
|
9282 | case "(($ac_try" in |
|
|
9283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9284 | *) ac_try_echo=$ac_try;; |
|
|
9285 | esac |
|
|
9286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9287 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9288 | ac_status=$? |
|
|
9289 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9290 | rm -f conftest.er1 |
|
|
9291 | cat conftest.err >&5 |
|
|
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9293 | (exit $ac_status); } && { |
|
|
9294 | test -z "$ac_cxx_werror_flag" || |
|
|
9295 | test ! -s conftest.err |
|
|
9296 | } && test -s conftest.$ac_objext; then |
|
|
9297 | ac_hi=$ac_mid |
|
|
9298 | else |
|
|
9299 | echo "$as_me: failed program was:" >&5 |
|
|
9300 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9301 | |
|
|
9302 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9303 | fi |
|
|
9304 | |
|
|
9305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9306 | done |
|
|
9307 | case $ac_lo in |
|
|
9308 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9309 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9310 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9311 | See \`config.log' for more details." >&5 |
|
|
9312 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9313 | See \`config.log' for more details." >&2;} |
|
|
9314 | { (exit 77); exit 77; }; } |
|
|
9315 | else |
|
|
9316 | ac_cv_sizeof_long_long=0 |
|
|
9317 | fi ;; |
|
|
9318 | esac |
|
|
9319 | else |
|
|
9320 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9321 | /* confdefs.h. */ |
|
|
9322 | _ACEOF |
|
|
9323 | cat confdefs.h >>conftest.$ac_ext |
|
|
9324 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9325 | /* end confdefs.h. */ |
|
|
9326 | $ac_includes_default |
|
|
9327 | typedef long long ac__type_sizeof_; |
|
|
9328 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9329 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9330 | #include <stdio.h> |
|
|
9331 | #include <stdlib.h> |
|
|
9332 | int |
|
|
9333 | main () |
|
|
9334 | { |
|
|
9335 | |
|
|
9336 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9337 | if (! f) |
|
|
9338 | return 1; |
|
|
9339 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9340 | { |
|
|
9341 | long int i = longval (); |
|
|
9342 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9343 | return 1; |
|
|
9344 | fprintf (f, "%ld\n", i); |
|
|
9345 | } |
|
|
9346 | else |
|
|
9347 | { |
|
|
9348 | unsigned long int i = ulongval (); |
|
|
9349 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9350 | return 1; |
|
|
9351 | fprintf (f, "%lu\n", i); |
|
|
9352 | } |
|
|
9353 | return ferror (f) || fclose (f) != 0; |
|
|
9354 | |
|
|
9355 | ; |
|
|
9356 | return 0; |
|
|
9357 | } |
|
|
9358 | _ACEOF |
|
|
9359 | rm -f conftest$ac_exeext |
|
|
9360 | if { (ac_try="$ac_link" |
|
|
9361 | case "(($ac_try" in |
|
|
9362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9363 | *) ac_try_echo=$ac_try;; |
|
|
9364 | esac |
|
|
9365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9366 | (eval "$ac_link") 2>&5 |
|
|
9367 | ac_status=$? |
|
|
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9370 | { (case "(($ac_try" in |
|
|
9371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9372 | *) ac_try_echo=$ac_try;; |
|
|
9373 | esac |
|
|
9374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9375 | (eval "$ac_try") 2>&5 |
|
|
9376 | ac_status=$? |
|
|
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9378 | (exit $ac_status); }; }; then |
|
|
9379 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9380 | else |
|
|
9381 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9382 | echo "$as_me: failed program was:" >&5 |
|
|
9383 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9384 | |
|
|
9385 | ( exit $ac_status ) |
|
|
9386 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9387 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9388 | See \`config.log' for more details." >&5 |
|
|
9389 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9390 | See \`config.log' for more details." >&2;} |
|
|
9391 | { (exit 77); exit 77; }; } |
|
|
9392 | else |
|
|
9393 | ac_cv_sizeof_long_long=0 |
|
|
9394 | fi |
|
|
9395 | fi |
|
|
9396 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9397 | fi |
|
|
9398 | rm -f conftest.val |
|
|
9399 | fi |
|
|
9400 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9401 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9402 | |
|
|
9403 | |
|
|
9404 | |
|
|
9405 | cat >>confdefs.h <<_ACEOF |
|
|
9406 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9407 | _ACEOF |
|
|
9408 | |
|
|
9409 | |
|
|
9410 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9411 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9412 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9414 | else |
|
|
9415 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9416 | /* confdefs.h. */ |
|
|
9417 | _ACEOF |
|
|
9418 | cat confdefs.h >>conftest.$ac_ext |
|
|
9419 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9420 | /* end confdefs.h. */ |
|
|
9421 | $ac_includes_default |
|
|
9422 | typedef int * ac__type_new_; |
|
|
9423 | int |
|
|
9424 | main () |
|
|
9425 | { |
|
|
9426 | if ((ac__type_new_ *) 0) |
|
|
9427 | return 0; |
|
|
9428 | if (sizeof (ac__type_new_)) |
|
|
9429 | return 0; |
|
|
9430 | ; |
|
|
9431 | return 0; |
|
|
9432 | } |
|
|
9433 | _ACEOF |
|
|
9434 | rm -f conftest.$ac_objext |
|
|
9435 | if { (ac_try="$ac_compile" |
|
|
9436 | case "(($ac_try" in |
|
|
9437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9438 | *) ac_try_echo=$ac_try;; |
|
|
9439 | esac |
|
|
9440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9441 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9442 | ac_status=$? |
|
|
9443 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9444 | rm -f conftest.er1 |
|
|
9445 | cat conftest.err >&5 |
|
|
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9447 | (exit $ac_status); } && { |
|
|
9448 | test -z "$ac_cxx_werror_flag" || |
|
|
9449 | test ! -s conftest.err |
|
|
9450 | } && test -s conftest.$ac_objext; then |
|
|
9451 | ac_cv_type_int_p=yes |
|
|
9452 | else |
|
|
9453 | echo "$as_me: failed program was:" >&5 |
|
|
9454 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9455 | |
|
|
9456 | ac_cv_type_int_p=no |
|
|
9457 | fi |
|
|
9458 | |
|
|
9459 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9460 | fi |
|
|
9461 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9462 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9463 | |
|
|
9464 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9465 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9466 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9467 | # This bug is HP SR number 8606223364. |
|
|
9468 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9469 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9470 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9472 | else |
|
|
9473 | if test "$cross_compiling" = yes; then |
|
|
9474 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9475 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9476 | /* confdefs.h. */ |
|
|
9477 | _ACEOF |
|
|
9478 | cat confdefs.h >>conftest.$ac_ext |
|
|
9479 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9480 | /* end confdefs.h. */ |
|
|
9481 | $ac_includes_default |
|
|
9482 | typedef int * ac__type_sizeof_; |
|
|
9483 | int |
|
|
9484 | main () |
|
|
9485 | { |
|
|
9486 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9487 | test_array [0] = 0 |
|
|
9488 | |
|
|
9489 | ; |
|
|
9490 | return 0; |
|
|
9491 | } |
|
|
9492 | _ACEOF |
|
|
9493 | rm -f conftest.$ac_objext |
|
|
9494 | if { (ac_try="$ac_compile" |
|
|
9495 | case "(($ac_try" in |
|
|
9496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9497 | *) ac_try_echo=$ac_try;; |
|
|
9498 | esac |
|
|
9499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9500 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9501 | ac_status=$? |
|
|
9502 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9503 | rm -f conftest.er1 |
|
|
9504 | cat conftest.err >&5 |
|
|
9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9506 | (exit $ac_status); } && { |
|
|
9507 | test -z "$ac_cxx_werror_flag" || |
|
|
9508 | test ! -s conftest.err |
|
|
9509 | } && test -s conftest.$ac_objext; then |
|
|
9510 | ac_lo=0 ac_mid=0 |
|
|
9511 | while :; do |
|
|
9512 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9513 | /* confdefs.h. */ |
|
|
9514 | _ACEOF |
|
|
9515 | cat confdefs.h >>conftest.$ac_ext |
|
|
9516 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9517 | /* end confdefs.h. */ |
|
|
9518 | $ac_includes_default |
|
|
9519 | typedef int * ac__type_sizeof_; |
|
|
9520 | int |
|
|
9521 | main () |
|
|
9522 | { |
|
|
9523 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9524 | test_array [0] = 0 |
|
|
9525 | |
|
|
9526 | ; |
|
|
9527 | return 0; |
|
|
9528 | } |
|
|
9529 | _ACEOF |
|
|
9530 | rm -f conftest.$ac_objext |
|
|
9531 | if { (ac_try="$ac_compile" |
|
|
9532 | case "(($ac_try" in |
|
|
9533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9534 | *) ac_try_echo=$ac_try;; |
|
|
9535 | esac |
|
|
9536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9537 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9538 | ac_status=$? |
|
|
9539 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9540 | rm -f conftest.er1 |
|
|
9541 | cat conftest.err >&5 |
|
|
9542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9543 | (exit $ac_status); } && { |
|
|
9544 | test -z "$ac_cxx_werror_flag" || |
|
|
9545 | test ! -s conftest.err |
|
|
9546 | } && test -s conftest.$ac_objext; then |
|
|
9547 | ac_hi=$ac_mid; break |
|
|
9548 | else |
|
|
9549 | echo "$as_me: failed program was:" >&5 |
|
|
9550 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9551 | |
|
|
9552 | ac_lo=`expr $ac_mid + 1` |
|
|
9553 | if test $ac_lo -le $ac_mid; then |
|
|
9554 | ac_lo= ac_hi= |
|
|
9555 | break |
|
|
9556 | fi |
|
|
9557 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9558 | fi |
|
|
9559 | |
|
|
9560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9561 | done |
|
|
9562 | else |
|
|
9563 | echo "$as_me: failed program was:" >&5 |
|
|
9564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9565 | |
|
|
9566 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9567 | /* confdefs.h. */ |
|
|
9568 | _ACEOF |
|
|
9569 | cat confdefs.h >>conftest.$ac_ext |
|
|
9570 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9571 | /* end confdefs.h. */ |
|
|
9572 | $ac_includes_default |
|
|
9573 | typedef int * ac__type_sizeof_; |
|
|
9574 | int |
|
|
9575 | main () |
|
|
9576 | { |
|
|
9577 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9578 | test_array [0] = 0 |
|
|
9579 | |
|
|
9580 | ; |
|
|
9581 | return 0; |
|
|
9582 | } |
|
|
9583 | _ACEOF |
|
|
9584 | rm -f conftest.$ac_objext |
|
|
9585 | if { (ac_try="$ac_compile" |
|
|
9586 | case "(($ac_try" in |
|
|
9587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9588 | *) ac_try_echo=$ac_try;; |
|
|
9589 | esac |
|
|
9590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9591 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9592 | ac_status=$? |
|
|
9593 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9594 | rm -f conftest.er1 |
|
|
9595 | cat conftest.err >&5 |
|
|
9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9597 | (exit $ac_status); } && { |
|
|
9598 | test -z "$ac_cxx_werror_flag" || |
|
|
9599 | test ! -s conftest.err |
|
|
9600 | } && test -s conftest.$ac_objext; then |
|
|
9601 | ac_hi=-1 ac_mid=-1 |
|
|
9602 | while :; do |
|
|
9603 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9604 | /* confdefs.h. */ |
|
|
9605 | _ACEOF |
|
|
9606 | cat confdefs.h >>conftest.$ac_ext |
|
|
9607 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9608 | /* end confdefs.h. */ |
|
|
9609 | $ac_includes_default |
|
|
9610 | typedef int * ac__type_sizeof_; |
|
|
9611 | int |
|
|
9612 | main () |
|
|
9613 | { |
|
|
9614 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9615 | test_array [0] = 0 |
|
|
9616 | |
|
|
9617 | ; |
|
|
9618 | return 0; |
|
|
9619 | } |
|
|
9620 | _ACEOF |
|
|
9621 | rm -f conftest.$ac_objext |
|
|
9622 | if { (ac_try="$ac_compile" |
|
|
9623 | case "(($ac_try" in |
|
|
9624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9625 | *) ac_try_echo=$ac_try;; |
|
|
9626 | esac |
|
|
9627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9628 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9629 | ac_status=$? |
|
|
9630 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9631 | rm -f conftest.er1 |
|
|
9632 | cat conftest.err >&5 |
|
|
9633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9634 | (exit $ac_status); } && { |
|
|
9635 | test -z "$ac_cxx_werror_flag" || |
|
|
9636 | test ! -s conftest.err |
|
|
9637 | } && test -s conftest.$ac_objext; then |
|
|
9638 | ac_lo=$ac_mid; break |
|
|
9639 | else |
|
|
9640 | echo "$as_me: failed program was:" >&5 |
|
|
9641 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9642 | |
|
|
9643 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9644 | if test $ac_mid -le $ac_hi; then |
|
|
9645 | ac_lo= ac_hi= |
|
|
9646 | break |
|
|
9647 | fi |
|
|
9648 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9649 | fi |
|
|
9650 | |
|
|
9651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9652 | done |
|
|
9653 | else |
|
|
9654 | echo "$as_me: failed program was:" >&5 |
|
|
9655 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9656 | |
|
|
9657 | ac_lo= ac_hi= |
|
|
9658 | fi |
|
|
9659 | |
|
|
9660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9661 | fi |
|
|
9662 | |
|
|
9663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9664 | # Binary search between lo and hi bounds. |
|
|
9665 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9666 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9667 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9668 | /* confdefs.h. */ |
|
|
9669 | _ACEOF |
|
|
9670 | cat confdefs.h >>conftest.$ac_ext |
|
|
9671 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9672 | /* end confdefs.h. */ |
|
|
9673 | $ac_includes_default |
|
|
9674 | typedef int * ac__type_sizeof_; |
|
|
9675 | int |
|
|
9676 | main () |
|
|
9677 | { |
|
|
9678 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9679 | test_array [0] = 0 |
|
|
9680 | |
|
|
9681 | ; |
|
|
9682 | return 0; |
|
|
9683 | } |
|
|
9684 | _ACEOF |
|
|
9685 | rm -f conftest.$ac_objext |
|
|
9686 | if { (ac_try="$ac_compile" |
|
|
9687 | case "(($ac_try" in |
|
|
9688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9689 | *) ac_try_echo=$ac_try;; |
|
|
9690 | esac |
|
|
9691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9692 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9693 | ac_status=$? |
|
|
9694 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9695 | rm -f conftest.er1 |
|
|
9696 | cat conftest.err >&5 |
|
|
9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9698 | (exit $ac_status); } && { |
|
|
9699 | test -z "$ac_cxx_werror_flag" || |
|
|
9700 | test ! -s conftest.err |
|
|
9701 | } && test -s conftest.$ac_objext; then |
|
|
9702 | ac_hi=$ac_mid |
|
|
9703 | else |
|
|
9704 | echo "$as_me: failed program was:" >&5 |
|
|
9705 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9706 | |
|
|
9707 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9708 | fi |
|
|
9709 | |
|
|
9710 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9711 | done |
|
|
9712 | case $ac_lo in |
|
|
9713 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9714 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9715 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9716 | See \`config.log' for more details." >&5 |
|
|
9717 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9718 | See \`config.log' for more details." >&2;} |
|
|
9719 | { (exit 77); exit 77; }; } |
|
|
9720 | else |
|
|
9721 | ac_cv_sizeof_int_p=0 |
|
|
9722 | fi ;; |
|
|
9723 | esac |
|
|
9724 | else |
|
|
9725 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9726 | /* confdefs.h. */ |
|
|
9727 | _ACEOF |
|
|
9728 | cat confdefs.h >>conftest.$ac_ext |
|
|
9729 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9730 | /* end confdefs.h. */ |
|
|
9731 | $ac_includes_default |
|
|
9732 | typedef int * ac__type_sizeof_; |
|
|
9733 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9734 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9735 | #include <stdio.h> |
|
|
9736 | #include <stdlib.h> |
|
|
9737 | int |
|
|
9738 | main () |
|
|
9739 | { |
|
|
9740 | |
|
|
9741 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9742 | if (! f) |
|
|
9743 | return 1; |
|
|
9744 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9745 | { |
|
|
9746 | long int i = longval (); |
|
|
9747 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9748 | return 1; |
|
|
9749 | fprintf (f, "%ld\n", i); |
|
|
9750 | } |
|
|
9751 | else |
|
|
9752 | { |
|
|
9753 | unsigned long int i = ulongval (); |
|
|
9754 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9755 | return 1; |
|
|
9756 | fprintf (f, "%lu\n", i); |
|
|
9757 | } |
|
|
9758 | return ferror (f) || fclose (f) != 0; |
|
|
9759 | |
|
|
9760 | ; |
|
|
9761 | return 0; |
|
|
9762 | } |
|
|
9763 | _ACEOF |
|
|
9764 | rm -f conftest$ac_exeext |
|
|
9765 | if { (ac_try="$ac_link" |
|
|
9766 | case "(($ac_try" in |
|
|
9767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9768 | *) ac_try_echo=$ac_try;; |
|
|
9769 | esac |
|
|
9770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9771 | (eval "$ac_link") 2>&5 |
|
|
9772 | ac_status=$? |
|
|
9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9775 | { (case "(($ac_try" in |
|
|
9776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9777 | *) ac_try_echo=$ac_try;; |
|
|
9778 | esac |
|
|
9779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9780 | (eval "$ac_try") 2>&5 |
|
|
9781 | ac_status=$? |
|
|
9782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9783 | (exit $ac_status); }; }; then |
|
|
9784 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9785 | else |
|
|
9786 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9787 | echo "$as_me: failed program was:" >&5 |
|
|
9788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9789 | |
|
|
9790 | ( exit $ac_status ) |
|
|
9791 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9792 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9793 | See \`config.log' for more details." >&5 |
|
|
9794 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9795 | See \`config.log' for more details." >&2;} |
|
|
9796 | { (exit 77); exit 77; }; } |
|
|
9797 | else |
|
|
9798 | ac_cv_sizeof_int_p=0 |
|
|
9799 | fi |
|
|
9800 | fi |
|
|
9801 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9802 | fi |
|
|
9803 | rm -f conftest.val |
|
|
9804 | fi |
|
|
9805 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9806 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9807 | |
|
|
9808 | |
|
|
9809 | |
|
|
9810 | cat >>confdefs.h <<_ACEOF |
|
|
9811 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9812 | _ACEOF |
|
|
9813 | |
|
|
9814 | |
|
|
9815 | |
|
|
9816 | |
|
|
9817 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9818 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9819 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9821 | else |
|
|
9822 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9823 | /* confdefs.h. */ |
|
|
9824 | _ACEOF |
|
|
9825 | cat confdefs.h >>conftest.$ac_ext |
|
|
9826 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9827 | /* end confdefs.h. */ |
|
|
9828 | #include <stdint.h> |
|
|
9829 | int |
|
|
9830 | main () |
|
|
9831 | { |
|
|
9832 | int16_t dummy; |
|
|
9833 | ; |
|
|
9834 | return 0; |
|
|
9835 | } |
|
|
9836 | _ACEOF |
|
|
9837 | rm -f conftest.$ac_objext |
|
|
9838 | if { (ac_try="$ac_compile" |
|
|
9839 | case "(($ac_try" in |
|
|
9840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9841 | *) ac_try_echo=$ac_try;; |
|
|
9842 | esac |
|
|
9843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9844 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9845 | ac_status=$? |
|
|
9846 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9847 | rm -f conftest.er1 |
|
|
9848 | cat conftest.err >&5 |
|
|
9849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9850 | (exit $ac_status); } && { |
|
|
9851 | test -z "$ac_cxx_werror_flag" || |
|
|
9852 | test ! -s conftest.err |
|
|
9853 | } && test -s conftest.$ac_objext; then |
|
|
9854 | rxvt_cv_int16_t=yes |
|
|
9855 | else |
|
|
9856 | echo "$as_me: failed program was:" >&5 |
|
|
9857 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9858 | |
|
|
9859 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9860 | rxvt_cv_int16_t=" char" |
|
|
9861 | else |
|
|
9862 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9863 | rxvt_cv_int16_t=" short" |
|
|
9864 | else |
|
|
9865 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9866 | rxvt_cv_int16_t=" int" |
|
|
9867 | else |
|
|
9868 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9869 | rxvt_cv_int16_t=" long" |
|
|
9870 | else |
|
|
9871 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9872 | rxvt_cv_int16_t=" long long" |
|
|
9873 | else |
|
|
9874 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9875 | fi |
|
|
9876 | fi |
|
|
9877 | fi |
|
|
9878 | fi |
|
|
9879 | fi |
|
|
9880 | fi |
|
|
9881 | |
|
|
9882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9883 | fi |
|
|
9884 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9885 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9886 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9887 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9888 | else |
|
|
9889 | if test x"" = x; then |
|
|
9890 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9891 | else |
|
|
9892 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9893 | fi |
|
|
9894 | fi |
|
|
9895 | |
|
|
9896 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9897 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9898 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9900 | else |
|
|
9901 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9902 | /* confdefs.h. */ |
|
|
9903 | _ACEOF |
|
|
9904 | cat confdefs.h >>conftest.$ac_ext |
|
|
9905 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9906 | /* end confdefs.h. */ |
|
|
9907 | #include <stdint.h> |
|
|
9908 | int |
|
|
9909 | main () |
|
|
9910 | { |
|
|
9911 | uint16_t dummy; |
|
|
9912 | ; |
|
|
9913 | return 0; |
|
|
9914 | } |
|
|
9915 | _ACEOF |
|
|
9916 | rm -f conftest.$ac_objext |
|
|
9917 | if { (ac_try="$ac_compile" |
|
|
9918 | case "(($ac_try" in |
|
|
9919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9920 | *) ac_try_echo=$ac_try;; |
|
|
9921 | esac |
|
|
9922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9923 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9924 | ac_status=$? |
|
|
9925 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9926 | rm -f conftest.er1 |
|
|
9927 | cat conftest.err >&5 |
|
|
9928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9929 | (exit $ac_status); } && { |
|
|
9930 | test -z "$ac_cxx_werror_flag" || |
|
|
9931 | test ! -s conftest.err |
|
|
9932 | } && test -s conftest.$ac_objext; then |
|
|
9933 | rxvt_cv_uint16_t=yes |
|
|
9934 | else |
|
|
9935 | echo "$as_me: failed program was:" >&5 |
|
|
9936 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9937 | |
|
|
9938 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9939 | rxvt_cv_uint16_t="unsigned char" |
|
|
9940 | else |
|
|
9941 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9942 | rxvt_cv_uint16_t="unsigned short" |
|
|
9943 | else |
|
|
9944 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9945 | rxvt_cv_uint16_t="unsigned int" |
|
|
9946 | else |
|
|
9947 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9948 | rxvt_cv_uint16_t="unsigned long" |
|
|
9949 | else |
|
|
9950 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9951 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9952 | else |
|
|
9953 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9954 | fi |
|
|
9955 | fi |
|
|
9956 | fi |
|
|
9957 | fi |
|
|
9958 | fi |
|
|
9959 | fi |
|
|
9960 | |
|
|
9961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9962 | fi |
|
|
9963 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9964 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9965 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9966 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9967 | else |
|
|
9968 | if test x"unsigned" = x; then |
|
|
9969 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9970 | else |
|
|
9971 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9972 | fi |
|
|
9973 | fi |
|
|
9974 | |
|
|
9975 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9976 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9977 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9979 | else |
|
|
9980 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9981 | /* confdefs.h. */ |
|
|
9982 | _ACEOF |
|
|
9983 | cat confdefs.h >>conftest.$ac_ext |
|
|
9984 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9985 | /* end confdefs.h. */ |
|
|
9986 | #include <stdint.h> |
|
|
9987 | int |
|
|
9988 | main () |
|
|
9989 | { |
|
|
9990 | int32_t dummy; |
|
|
9991 | ; |
|
|
9992 | return 0; |
|
|
9993 | } |
|
|
9994 | _ACEOF |
|
|
9995 | rm -f conftest.$ac_objext |
|
|
9996 | if { (ac_try="$ac_compile" |
|
|
9997 | case "(($ac_try" in |
|
|
9998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9999 | *) ac_try_echo=$ac_try;; |
|
|
10000 | esac |
|
|
10001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10002 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10003 | ac_status=$? |
|
|
10004 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10005 | rm -f conftest.er1 |
|
|
10006 | cat conftest.err >&5 |
|
|
10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10008 | (exit $ac_status); } && { |
|
|
10009 | test -z "$ac_cxx_werror_flag" || |
|
|
10010 | test ! -s conftest.err |
|
|
10011 | } && test -s conftest.$ac_objext; then |
|
|
10012 | rxvt_cv_int32_t=yes |
|
|
10013 | else |
|
|
10014 | echo "$as_me: failed program was:" >&5 |
|
|
10015 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10016 | |
|
|
10017 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10018 | rxvt_cv_int32_t=" char" |
|
|
10019 | else |
|
|
10020 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10021 | rxvt_cv_int32_t=" short" |
|
|
10022 | else |
|
|
10023 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10024 | rxvt_cv_int32_t=" int" |
|
|
10025 | else |
|
|
10026 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10027 | rxvt_cv_int32_t=" long" |
|
|
10028 | else |
|
|
10029 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10030 | rxvt_cv_int32_t=" long long" |
|
|
10031 | else |
|
|
10032 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
10033 | fi |
|
|
10034 | fi |
|
|
10035 | fi |
|
|
10036 | fi |
|
|
10037 | fi |
|
|
10038 | fi |
|
|
10039 | |
|
|
10040 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10041 | fi |
|
|
10042 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
10043 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
10044 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
10045 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
10046 | else |
|
|
10047 | if test x"" = x; then |
|
|
10048 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10049 | else |
|
|
10050 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10051 | fi |
|
|
10052 | fi |
|
|
10053 | |
|
|
10054 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
10055 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
10056 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
10057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10058 | else |
|
|
10059 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10060 | /* confdefs.h. */ |
|
|
10061 | _ACEOF |
|
|
10062 | cat confdefs.h >>conftest.$ac_ext |
|
|
10063 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10064 | /* end confdefs.h. */ |
|
|
10065 | #include <stdint.h> |
|
|
10066 | int |
|
|
10067 | main () |
|
|
10068 | { |
|
|
10069 | uint32_t dummy; |
|
|
10070 | ; |
|
|
10071 | return 0; |
|
|
10072 | } |
|
|
10073 | _ACEOF |
|
|
10074 | rm -f conftest.$ac_objext |
|
|
10075 | if { (ac_try="$ac_compile" |
|
|
10076 | case "(($ac_try" in |
|
|
10077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10078 | *) ac_try_echo=$ac_try;; |
|
|
10079 | esac |
|
|
10080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10081 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10082 | ac_status=$? |
|
|
10083 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10084 | rm -f conftest.er1 |
|
|
10085 | cat conftest.err >&5 |
|
|
10086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10087 | (exit $ac_status); } && { |
|
|
10088 | test -z "$ac_cxx_werror_flag" || |
|
|
10089 | test ! -s conftest.err |
|
|
10090 | } && test -s conftest.$ac_objext; then |
|
|
10091 | rxvt_cv_uint32_t=yes |
|
|
10092 | else |
|
|
10093 | echo "$as_me: failed program was:" >&5 |
|
|
10094 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10095 | |
|
|
10096 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10097 | rxvt_cv_uint32_t="unsigned char" |
|
|
10098 | else |
|
|
10099 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10100 | rxvt_cv_uint32_t="unsigned short" |
|
|
10101 | else |
|
|
10102 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10103 | rxvt_cv_uint32_t="unsigned int" |
|
|
10104 | else |
|
|
10105 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10106 | rxvt_cv_uint32_t="unsigned long" |
|
|
10107 | else |
|
|
10108 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10109 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10110 | else |
|
|
10111 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10112 | fi |
|
|
10113 | fi |
|
|
10114 | fi |
|
|
10115 | fi |
|
|
10116 | fi |
|
|
10117 | fi |
|
|
10118 | |
|
|
10119 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10120 | fi |
|
|
10121 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10122 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10123 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10124 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10125 | else |
|
|
10126 | if test x"unsigned" = x; then |
|
|
10127 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10128 | else |
|
|
10129 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10130 | fi |
|
|
10131 | fi |
|
|
10132 | |
|
|
10133 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10134 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10135 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10136 | else |
|
|
10137 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10138 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10139 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10140 | else |
|
|
10141 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10142 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10143 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10144 | else |
|
|
10145 | rxvt_intp_define="#error set intp_t" |
|
|
10146 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10147 | fi |
|
|
10148 | fi |
|
|
10149 | fi |
|
|
10150 | |
|
|
10151 | |
|
|
10152 | |
|
|
10153 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10154 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10155 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10157 | else |
|
|
10158 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10159 | /* confdefs.h. */ |
|
|
10160 | _ACEOF |
|
|
10161 | cat confdefs.h >>conftest.$ac_ext |
|
|
10162 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10163 | /* end confdefs.h. */ |
|
|
10164 | #include <sys/types.h> |
|
|
10165 | #include <signal.h> |
|
|
10166 | |
|
|
10167 | int |
|
|
10168 | main () |
|
|
10169 | { |
|
|
10170 | return *(signal (0, 0)) (0) == 1; |
|
|
10171 | ; |
|
|
10172 | return 0; |
|
|
10173 | } |
|
|
10174 | _ACEOF |
|
|
10175 | rm -f conftest.$ac_objext |
|
|
10176 | if { (ac_try="$ac_compile" |
|
|
10177 | case "(($ac_try" in |
|
|
10178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10179 | *) ac_try_echo=$ac_try;; |
|
|
10180 | esac |
|
|
10181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10182 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10183 | ac_status=$? |
|
|
10184 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10185 | rm -f conftest.er1 |
|
|
10186 | cat conftest.err >&5 |
|
|
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10188 | (exit $ac_status); } && { |
|
|
10189 | test -z "$ac_cxx_werror_flag" || |
|
|
10190 | test ! -s conftest.err |
|
|
10191 | } && test -s conftest.$ac_objext; then |
|
|
10192 | ac_cv_type_signal=int |
|
|
10193 | else |
|
|
10194 | echo "$as_me: failed program was:" >&5 |
|
|
10195 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10196 | |
|
|
10197 | ac_cv_type_signal=void |
|
|
10198 | fi |
|
|
10199 | |
|
|
10200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10201 | fi |
|
|
10202 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10203 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10204 | |
|
|
10205 | cat >>confdefs.h <<_ACEOF |
|
|
10206 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10207 | _ACEOF |
|
|
10208 | |
|
|
10209 | |
8479 | |
10210 | |
8480 | |
10211 | |
8481 | |
10212 | for ac_func in unsetenv |
8482 | for ac_func in unsetenv |
10213 | do |
8483 | do |
… | |
… | |
12971 | echo "${ECHO_T}no" >&6; } |
11241 | echo "${ECHO_T}no" >&6; } |
12972 | fi |
11242 | fi |
12973 | |
11243 | |
12974 | |
11244 | |
12975 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11245 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12976 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11246 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12977 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11247 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12978 | else |
11248 | else |
12979 | # Extract the first word of "xft-config", so it can be a program name with args. |
11249 | # Extract the first word of "xft-config", so it can be a program name with args. |
12980 | set dummy xft-config; ac_word=$2 |
11250 | set dummy xft-config; ac_word=$2 |
12981 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11251 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
13016 | echo "${ECHO_T}no" >&6; } |
11286 | echo "${ECHO_T}no" >&6; } |
13017 | fi |
11287 | fi |
13018 | |
11288 | |
13019 | |
11289 | |
13020 | if test $XFT_CONFIG != no; then |
11290 | if test $XFT_CONFIG != no; then |
13021 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11291 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
13022 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11292 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13023 | fi |
11293 | fi |
13024 | fi |
11294 | fi |
13025 | |
11295 | |
|
|
11296 | save_LIBS="$LIBS" |
|
|
11297 | LIBS="$LIBS $X_LIBS" |
13026 | |
11298 | |
13027 | for ac_header in X11/Xft/Xft.h |
11299 | for ac_header in X11/Xft/Xft.h |
13028 | do |
11300 | do |
13029 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11301 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13030 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11302 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
13163 | support_xft=no |
11435 | support_xft=no |
13164 | fi |
11436 | fi |
13165 | |
11437 | |
13166 | done |
11438 | done |
13167 | |
11439 | |
13168 | |
|
|
13169 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11440 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13170 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11441 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13171 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11442 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13173 | else |
11444 | else |
13174 | ac_check_lib_save_LIBS=$LIBS |
11445 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13226 | LIBS=$ac_check_lib_save_LIBS |
11497 | LIBS=$ac_check_lib_save_LIBS |
13227 | fi |
11498 | fi |
13228 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11499 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13229 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11500 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13230 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11501 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13231 | cat >>confdefs.h <<_ACEOF |
11502 | : |
13232 | #define HAVE_LIBXFT 1 |
|
|
13233 | _ACEOF |
|
|
13234 | |
|
|
13235 | LIBS="-lXft $LIBS" |
|
|
13236 | |
|
|
13237 | else |
11503 | else |
13238 | support_xft=no |
11504 | support_xft=no |
13239 | fi |
11505 | fi |
13240 | |
11506 | |
|
|
11507 | LIBS="$save_LIBS" |
13241 | |
11508 | |
13242 | if test x$support_xft = xyes; then |
11509 | if test x$support_xft = xyes; then |
13243 | |
11510 | |
13244 | cat >>confdefs.h <<\_ACEOF |
11511 | cat >>confdefs.h <<\_ACEOF |
13245 | #define XFT 1 |
11512 | #define XFT 1 |
… | |
… | |
13640 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
11907 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
13641 | include_stdint_h="#include <stdint.h>" |
11908 | include_stdint_h="#include <stdint.h>" |
13642 | else |
11909 | else |
13643 | include_stdint_h="/* #include <stdint.h> */" |
11910 | include_stdint_h="/* #include <stdint.h> */" |
13644 | fi |
11911 | fi |
13645 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13646 | include_stdarg_h="#include <cstdarg>" |
|
|
13647 | else |
|
|
13648 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13649 | fi |
|
|
13650 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13651 | include_stdlib_h="#include <cstdlib>" |
|
|
13652 | else |
|
|
13653 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13654 | fi |
|
|
13655 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13656 | include_unistd_h="#include <unistd.h>" |
|
|
13657 | else |
|
|
13658 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13659 | fi |
|
|
13660 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13661 | include_string_h="#include <cstring>" |
|
|
13662 | else |
|
|
13663 | include_string_h="/* #include <cstring> */" |
|
|
13664 | fi |
|
|
13665 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13666 | include_fcntl_h="#include <fcntl.h>" |
|
|
13667 | else |
|
|
13668 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13669 | fi |
|
|
13670 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13671 | include_util_h="#include <util.h>" |
|
|
13672 | else |
|
|
13673 | include_util_h="/* #include <util.h> */" |
|
|
13674 | fi |
|
|
13675 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13676 | include_assert_h="#include <assert.h>" |
|
|
13677 | else |
|
|
13678 | include_assert_h="/* #include <assert.h> */" |
|
|
13679 | fi |
|
|
13680 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
11912 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
13681 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
11913 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
13682 | else |
11914 | else |
13683 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
11915 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
13684 | fi |
11916 | fi |
13685 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13686 | include_sys_select_h="#include <sys/select.h>" |
|
|
13687 | else |
|
|
13688 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13689 | fi |
|
|
13690 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
11917 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
13691 | include_sys_strredir_h="#include <sys/strredir.h>" |
11918 | include_sys_strredir_h="#include <sys/strredir.h>" |
13692 | else |
11919 | else |
13693 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
11920 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
13694 | fi |
|
|
13695 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13696 | include_sys_time_h="#include <sys/time.h>" |
|
|
13697 | else |
|
|
13698 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13699 | fi |
|
|
13700 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13701 | include_time_h="#include <time.h>" |
|
|
13702 | else |
|
|
13703 | include_time_h="/* #include <time.h> */" |
|
|
13704 | fi |
11921 | fi |
13705 | |
11922 | |
13706 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11923 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
13707 | |
11924 | |
13708 | cat >confcache <<\_ACEOF |
11925 | cat >confcache <<\_ACEOF |
… | |
… | |
14369 | host_cpu!$host_cpu$ac_delim |
12586 | host_cpu!$host_cpu$ac_delim |
14370 | host_vendor!$host_vendor$ac_delim |
12587 | host_vendor!$host_vendor$ac_delim |
14371 | host_os!$host_os$ac_delim |
12588 | host_os!$host_os$ac_delim |
14372 | VERSION!$VERSION$ac_delim |
12589 | VERSION!$VERSION$ac_delim |
14373 | DATE!$DATE$ac_delim |
12590 | DATE!$DATE$ac_delim |
14374 | LSMDATE!$LSMDATE$ac_delim |
|
|
14375 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14376 | CC!$CC$ac_delim |
12591 | CC!$CC$ac_delim |
14377 | CFLAGS!$CFLAGS$ac_delim |
12592 | CFLAGS!$CFLAGS$ac_delim |
14378 | LDFLAGS!$LDFLAGS$ac_delim |
12593 | LDFLAGS!$LDFLAGS$ac_delim |
14379 | CPPFLAGS!$CPPFLAGS$ac_delim |
12594 | CPPFLAGS!$CPPFLAGS$ac_delim |
14380 | ac_ct_CC!$ac_ct_CC$ac_delim |
12595 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14388 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12603 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14389 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12604 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14390 | GREP!$GREP$ac_delim |
12605 | GREP!$GREP$ac_delim |
14391 | EGREP!$EGREP$ac_delim |
12606 | EGREP!$EGREP$ac_delim |
14392 | LINKER!$LINKER$ac_delim |
12607 | LINKER!$LINKER$ac_delim |
14393 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14394 | RXVTNAME!$RXVTNAME$ac_delim |
12608 | RXVTNAME!$RXVTNAME$ac_delim |
14395 | CXXCPP!$CXXCPP$ac_delim |
12609 | CXXCPP!$CXXCPP$ac_delim |
14396 | TIC!$TIC$ac_delim |
12610 | TIC!$TIC$ac_delim |
14397 | XMKMF!$XMKMF$ac_delim |
12611 | XMKMF!$XMKMF$ac_delim |
14398 | X_CFLAGS!$X_CFLAGS$ac_delim |
12612 | X_CFLAGS!$X_CFLAGS$ac_delim |
14399 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12613 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14400 | X_LIBS!$X_LIBS$ac_delim |
12614 | X_LIBS!$X_LIBS$ac_delim |
14401 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12615 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14402 | afterimage_config!$afterimage_config$ac_delim |
12616 | afterimage_config!$afterimage_config$ac_delim |
14403 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14404 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14405 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14406 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14407 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14408 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14409 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12617 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14410 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12618 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14411 | PERL!$PERL$ac_delim |
12619 | PERL!$PERL$ac_delim |
14412 | PERLLIB!$PERLLIB$ac_delim |
12620 | PERLLIB!$PERLLIB$ac_delim |
14413 | PERLFLAGS!$PERLFLAGS$ac_delim |
12621 | PERLFLAGS!$PERLFLAGS$ac_delim |
… | |
… | |
14415 | IF_PERL!$IF_PERL$ac_delim |
12623 | IF_PERL!$IF_PERL$ac_delim |
14416 | PERL_O!$PERL_O$ac_delim |
12624 | PERL_O!$PERL_O$ac_delim |
14417 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12625 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14418 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12626 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14419 | include_stdint_h!$include_stdint_h$ac_delim |
12627 | include_stdint_h!$include_stdint_h$ac_delim |
14420 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14421 | include_stdlib_h!$include_stdlib_h$ac_delim |
12628 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
14422 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14423 | include_string_h!$include_string_h$ac_delim |
12629 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
12630 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12631 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14424 | _ACEOF |
12632 | _ACEOF |
14425 | |
12633 | |
14426 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12634 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
14427 | break |
12635 | break |
14428 | elif $ac_last_try; then |
12636 | elif $ac_last_try; then |
14429 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12637 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14430 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12638 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14431 | { (exit 1); exit 1; }; } |
12639 | { (exit 1); exit 1; }; } |
… | |
… | |
14440 | ac_eof=`expr $ac_eof + 1` |
12648 | ac_eof=`expr $ac_eof + 1` |
14441 | fi |
12649 | fi |
14442 | |
12650 | |
14443 | cat >>$CONFIG_STATUS <<_ACEOF |
12651 | cat >>$CONFIG_STATUS <<_ACEOF |
14444 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12652 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14445 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14446 | _ACEOF |
|
|
14447 | sed ' |
|
|
14448 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14449 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14450 | :n |
|
|
14451 | t n |
|
|
14452 | s/'"$ac_delim"'$/,g/; t |
|
|
14453 | s/$/\\/; p |
|
|
14454 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14455 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14456 | rm -f conf$$subs.sed |
|
|
14457 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14458 | CEOF$ac_eof |
|
|
14459 | _ACEOF |
|
|
14460 | |
|
|
14461 | |
|
|
14462 | ac_delim='%!_!# ' |
|
|
14463 | for ac_last_try in false false false false false :; do |
|
|
14464 | cat >conf$$subs.sed <<_ACEOF |
|
|
14465 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14466 | include_util_h!$include_util_h$ac_delim |
|
|
14467 | include_assert_h!$include_assert_h$ac_delim |
|
|
14468 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14469 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14470 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14471 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14472 | include_time_h!$include_time_h$ac_delim |
|
|
14473 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14474 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14475 | _ACEOF |
|
|
14476 | |
|
|
14477 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
14478 | break |
|
|
14479 | elif $ac_last_try; then |
|
|
14480 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14481 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14482 | { (exit 1); exit 1; }; } |
|
|
14483 | else |
|
|
14484 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14485 | fi |
|
|
14486 | done |
|
|
14487 | |
|
|
14488 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14489 | if test -n "$ac_eof"; then |
|
|
14490 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14491 | ac_eof=`expr $ac_eof + 1` |
|
|
14492 | fi |
|
|
14493 | |
|
|
14494 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14495 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14496 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12653 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14497 | _ACEOF |
12654 | _ACEOF |
14498 | sed ' |
12655 | sed ' |
14499 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12656 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14500 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12657 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14753 | s&@builddir@&$ac_builddir&;t t |
12910 | s&@builddir@&$ac_builddir&;t t |
14754 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12911 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14755 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12912 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14756 | s&@INSTALL@&$ac_INSTALL&;t t |
12913 | s&@INSTALL@&$ac_INSTALL&;t t |
14757 | $ac_datarootdir_hack |
12914 | $ac_datarootdir_hack |
14758 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12915 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14759 | |
12916 | |
14760 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12917 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14761 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12918 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14762 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12919 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14763 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12920 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |