… | |
… | |
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 |
703 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
704 | IF_PERL |
695 | IF_PERL |
705 | PERL_O |
696 | PERL_O |
706 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
707 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
708 | include_stdint_h |
|
|
709 | include_stdarg_h |
|
|
710 | include_stdlib_h |
|
|
711 | include_unistd_h |
|
|
712 | include_string_h |
|
|
713 | include_fcntl_h |
|
|
714 | include_util_h |
|
|
715 | include_assert_h |
|
|
716 | include_sys_ioctl_h |
|
|
717 | include_sys_select_h |
|
|
718 | include_sys_strredir_h |
|
|
719 | include_sys_time_h |
|
|
720 | include_time_h |
|
|
721 | LIBOBJS |
699 | LIBOBJS |
722 | LTLIBOBJS' |
700 | LTLIBOBJS' |
723 | ac_subst_files='' |
701 | ac_subst_files='' |
724 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
725 | host_alias |
703 | host_alias |
… | |
… | |
1315 | |
1293 | |
1316 | Optional Features: |
1294 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-assert enable assertions |
1322 | --enable-warnings turn on g++ warnings |
1300 | --enable-warnings turn on g++ warnings |
1323 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1301 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1324 | --enable-combining enable composition of base and combining characters |
1302 | --enable-combining enable composition of base and combining characters |
1325 | --enable-xft enable xft support on systems that have it |
1303 | --enable-xft enable xft support on systems that have it |
1326 | --enable-font-styles enable bold and italic support |
1304 | --enable-font-styles enable bold and italic support |
1327 | --enable-afterimage enable integration with libAfterImage for background images |
1305 | --enable-afterimage enable integration with libAfterImage for background images |
1328 | --enable-transparency enable transparent backgrounds |
1306 | --enable-transparency enable transparent backgrounds |
1329 | --enable-fading enable colors fading when off focus |
1307 | --enable-fading enable colors fading when off focus |
1330 | --enable-rxvt-scroll enable rxvt style scrollbar |
1308 | --enable-rxvt-scroll enable rxvt style scrollbar |
1331 | --enable-next-scroll enable NeXT style scrollbar |
1309 | --enable-next-scroll enable NeXT style scrollbar |
1332 | --enable-xterm-scroll enable Xterm style scrollbar |
1310 | --enable-xterm-scroll enable Xterm style scrollbar |
1333 | --enable-perl enable embedded perl interpreter |
1311 | --enable-perl enable embedded perl interpreter |
1334 | --enable-plain-scroll enable plain style scrollbar |
|
|
1335 | --enable-xim XIM (X Input Method) protocol support |
1312 | --enable-xim XIM (X Input Method) protocol support |
1336 | --disable-backspace-key disable handling of the backspace key |
1313 | --disable-backspace-key disable handling of the backspace key |
1337 | --disable-delete-key disable handling of the delete key |
1314 | --disable-delete-key disable handling of the delete key |
1338 | --disable-resources disable all resource checking |
1315 | --disable-resources disable all resource checking |
1339 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1316 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
… | |
… | |
1927 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1928 | echo "" |
1905 | echo "" |
1929 | |
1906 | |
1930 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1931 | |
1908 | |
1932 | |
|
|
1933 | ac_ext=c |
1909 | ac_ext=c |
1934 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1913 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
… | |
… | |
3715 | echo "${ECHO_T}no" >&6; } |
3691 | echo "${ECHO_T}no" >&6; } |
3716 | fi |
3692 | fi |
3717 | rm -f conftest* |
3693 | rm -f conftest* |
3718 | |
3694 | |
3719 | |
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
3720 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3721 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3722 | if test "${ac_cv_search_strerror+set}" = set; then |
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
3723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3724 | else |
3706 | else |
… | |
… | |
3871 | LINKER=$LINKER |
3853 | LINKER=$LINKER |
3872 | |
3854 | |
3873 | |
3855 | |
3874 | if test -z "$orig_CXXFLAGS"; then |
3856 | if test -z "$orig_CXXFLAGS"; then |
3875 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3876 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3858 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3877 | cat >conftest.$ac_ext <<_ACEOF |
3859 | cat >conftest.$ac_ext <<_ACEOF |
3878 | /* confdefs.h. */ |
3860 | /* confdefs.h. */ |
3879 | _ACEOF |
3861 | _ACEOF |
3880 | cat confdefs.h >>conftest.$ac_ext |
3862 | cat confdefs.h >>conftest.$ac_ext |
3881 | cat >>conftest.$ac_ext <<_ACEOF |
3863 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3919 | CXXFLAGS="-O" |
3901 | CXXFLAGS="-O" |
3920 | fi |
3902 | fi |
3921 | CFLAGS="$CXXFLAGS" |
3903 | CFLAGS="$CXXFLAGS" |
3922 | fi |
3904 | fi |
3923 | |
3905 | |
3924 | |
|
|
3925 | cat >>confdefs.h <<\_ACEOF |
|
|
3926 | #define _GNU_SOURCE 1 |
|
|
3927 | _ACEOF |
|
|
3928 | |
|
|
3929 | |
|
|
3930 | case $host in |
3906 | case $host in |
3931 | *-*-solaris* ) |
3907 | *-*-solaris* ) |
3932 | |
3908 | |
3933 | cat >>confdefs.h <<\_ACEOF |
3909 | cat >>confdefs.h <<\_ACEOF |
3934 | #define _XOPEN_SOURCE 500 |
3910 | #define _XOPEN_SOURCE 500 |
3935 | _ACEOF |
3911 | _ACEOF |
3936 | |
3912 | |
3937 | ;; |
3913 | ;; |
3938 | esac |
3914 | esac |
3939 | |
|
|
3940 | |
3915 | |
3941 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3942 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3943 | if test "${ac_cv_func_setlocale+set}" = set; then |
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
3944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4391 | fi |
4366 | fi |
4392 | |
4367 | |
4393 | fi |
4368 | fi |
4394 | |
4369 | |
4395 | |
4370 | |
4396 | |
|
|
4397 | support_frills=yes |
4371 | support_frills=yes |
4398 | support_inheritpixmap=yes |
4372 | support_inheritpixmap=yes |
4399 | support_fading=yes |
4373 | support_fading=yes |
4400 | support_keepscrolling=yes |
4374 | support_keepscrolling=yes |
4401 | support_selectionscrolling=yes |
4375 | support_selectionscrolling=yes |
… | |
… | |
4404 | support_text_blink=yes |
4378 | support_text_blink=yes |
4405 | support_pointer_blank=yes |
4379 | support_pointer_blank=yes |
4406 | support_scroll_rxvt=yes |
4380 | support_scroll_rxvt=yes |
4407 | support_scroll_next=yes |
4381 | support_scroll_next=yes |
4408 | support_scroll_xterm=yes |
4382 | support_scroll_xterm=yes |
4409 | support_scroll_plain=yes |
|
|
4410 | support_xim=yes |
4383 | support_xim=yes |
4411 | support_afterimage=yes |
4384 | support_afterimage=yes |
4412 | support_afterstep=yes |
4385 | support_afterstep=yes |
4413 | support_xft=yes |
4386 | support_xft=yes |
4414 | support_unicode3=no |
4387 | support_unicode3=no |
… | |
… | |
4416 | support_8bitctrls=no |
4389 | support_8bitctrls=no |
4417 | support_iso14755=yes |
4390 | support_iso14755=yes |
4418 | support_styles=yes |
4391 | support_styles=yes |
4419 | support_perl=yes |
4392 | support_perl=yes |
4420 | codesets=all |
4393 | codesets=all |
4421 | |
|
|
4422 | |
|
|
4423 | if test "x$enable_shared" = xyes; then |
|
|
4424 | |
|
|
4425 | cat >>confdefs.h <<\_ACEOF |
|
|
4426 | #define LIBRXVT 1 |
|
|
4427 | _ACEOF |
|
|
4428 | |
|
|
4429 | INSTALL_LIBRXVT=yes |
|
|
4430 | fi |
|
|
4431 | |
4394 | |
4432 | |
4395 | |
4433 | # Check whether --enable-everything was given. |
4396 | # Check whether --enable-everything was given. |
4434 | if test "${enable_everything+set}" = set; then |
4397 | if test "${enable_everything+set}" = set; then |
4435 | enableval=$enable_everything; |
4398 | enableval=$enable_everything; |
… | |
… | |
4445 | support_text_blink=no |
4408 | support_text_blink=no |
4446 | support_pointer_blank=no |
4409 | support_pointer_blank=no |
4447 | support_scroll_rxvt=no |
4410 | support_scroll_rxvt=no |
4448 | support_scroll_next=no |
4411 | support_scroll_next=no |
4449 | support_scroll_xterm=no |
4412 | support_scroll_xterm=no |
4450 | support_scroll_plain=no |
|
|
4451 | support_utmp=no |
4413 | support_utmp=no |
4452 | support_wtmp=no |
4414 | support_wtmp=no |
4453 | support_xim=no |
4415 | support_xim=no |
4454 | support_afterimage=no |
4416 | support_afterimage=no |
4455 | support_afterstep=no |
4417 | support_afterstep=no |
… | |
… | |
4474 | support_text_blink=yes |
4436 | support_text_blink=yes |
4475 | support_pointer_blank=yes |
4437 | support_pointer_blank=yes |
4476 | support_scroll_rxvt=yes |
4438 | support_scroll_rxvt=yes |
4477 | support_scroll_next=yes |
4439 | support_scroll_next=yes |
4478 | support_scroll_xterm=yes |
4440 | support_scroll_xterm=yes |
4479 | support_scroll_plain=yes |
|
|
4480 | support_utmp=yes |
4441 | support_utmp=yes |
4481 | support_wtmp=yes |
4442 | support_wtmp=yes |
4482 | support_xim=yes |
4443 | support_xim=yes |
4483 | support_afterimage=yes |
4444 | support_afterimage=yes |
4484 | support_afterstep=yes |
4445 | support_afterstep=yes |
… | |
… | |
4493 | fi |
4454 | fi |
4494 | |
4455 | |
4495 | fi |
4456 | fi |
4496 | |
4457 | |
4497 | |
4458 | |
|
|
4459 | ASSERTIONS=no |
|
|
4460 | # Check whether --enable-assert was given. |
|
|
4461 | if test "${enable_assert+set}" = set; then |
|
|
4462 | enableval=$enable_assert; if test x$enableval = xyes; then |
|
|
4463 | ASSERTIONS=yes |
|
|
4464 | fi |
|
|
4465 | fi |
|
|
4466 | |
|
|
4467 | if test x$ASSERTIONS = xno; then |
|
|
4468 | |
|
|
4469 | cat >>confdefs.h <<\_ACEOF |
|
|
4470 | #define NDEBUG 1 |
|
|
4471 | _ACEOF |
|
|
4472 | |
|
|
4473 | fi |
|
|
4474 | |
4498 | WARNINGS=no |
4475 | WARNINGS=no |
4499 | # Check whether --enable-warnings was given. |
4476 | # Check whether --enable-warnings was given. |
4500 | if test "${enable_warnings+set}" = set; then |
4477 | if test "${enable_warnings+set}" = set; then |
4501 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4478 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4502 | WARNINGS=yes |
4479 | WARNINGS=yes |
… | |
… | |
4649 | support_perl=$enableval |
4626 | support_perl=$enableval |
4650 | fi |
4627 | fi |
4651 | fi |
4628 | fi |
4652 | |
4629 | |
4653 | |
4630 | |
4654 | # Check whether --enable-plain-scroll was given. |
|
|
4655 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4656 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4657 | support_scroll_plain=$enableval |
|
|
4658 | fi |
|
|
4659 | fi |
|
|
4660 | |
|
|
4661 | |
|
|
4662 | |
4631 | |
4663 | # Check whether --with-codesets was given. |
4632 | # Check whether --with-codesets was given. |
4664 | if test "${with_codesets+set}" = set; then |
4633 | if test "${with_codesets+set}" = set; then |
4665 | withval=$with_codesets; codesets="$withval" |
4634 | withval=$with_codesets; codesets="$withval" |
4666 | fi |
4635 | fi |
… | |
… | |
4892 | fi |
4861 | fi |
4893 | fi |
4862 | fi |
4894 | |
4863 | |
4895 | |
4864 | |
4896 | |
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
4897 | |
4867 | |
4898 | ac_ext=cpp |
4868 | ac_ext=cpp |
4899 | ac_cpp='$CXXCPP $CPPFLAGS' |
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
4900 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4901 | 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' |
… | |
… | |
5367 | |
5337 | |
5368 | |
5338 | |
5369 | |
5339 | |
5370 | |
5340 | |
5371 | |
5341 | |
5372 | for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h |
5342 | |
|
|
5343 | |
|
|
5344 | |
|
|
5345 | |
|
|
5346 | |
|
|
5347 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
5373 | do |
5348 | do |
5374 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5349 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5375 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5376 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
5510 | |
5485 | |
5511 | |
5486 | |
5512 | |
5487 | |
5513 | |
5488 | |
5514 | |
5489 | |
5515 | for ac_func in epoll_ctl kqueue port_create |
5490 | |
|
|
5491 | |
|
|
5492 | |
|
|
5493 | |
|
|
5494 | |
|
|
5495 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
5516 | do |
5496 | do |
5517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5518 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5498 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
5520 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
5500 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
5689 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5669 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
5690 | if test $ac_cv_func_clock_gettime = yes; then |
5670 | if test $ac_cv_func_clock_gettime = yes; then |
5691 | : |
5671 | : |
5692 | else |
5672 | else |
5693 | |
5673 | |
|
|
5674 | if test $(uname) = Linux; then |
|
|
5675 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5676 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5677 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5678 | /* confdefs.h. */ |
|
|
5679 | _ACEOF |
|
|
5680 | cat confdefs.h >>conftest.$ac_ext |
|
|
5681 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5682 | /* end confdefs.h. */ |
|
|
5683 | #include <syscall.h> |
|
|
5684 | #include <time.h> |
|
|
5685 | int |
|
|
5686 | main () |
|
|
5687 | { |
|
|
5688 | struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts) |
|
|
5689 | ; |
|
|
5690 | return 0; |
|
|
5691 | } |
|
|
5692 | _ACEOF |
|
|
5693 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5694 | if { (ac_try="$ac_link" |
|
|
5695 | case "(($ac_try" in |
|
|
5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5697 | *) ac_try_echo=$ac_try;; |
|
|
5698 | esac |
|
|
5699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5700 | (eval "$ac_link") 2>conftest.er1 |
|
|
5701 | ac_status=$? |
|
|
5702 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5703 | rm -f conftest.er1 |
|
|
5704 | cat conftest.err >&5 |
|
|
5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5706 | (exit $ac_status); } && { |
|
|
5707 | test -z "$ac_cxx_werror_flag" || |
|
|
5708 | test ! -s conftest.err |
|
|
5709 | } && test -s conftest$ac_exeext && |
|
|
5710 | $as_test_x conftest$ac_exeext; then |
|
|
5711 | ac_have_clock_syscall=1 |
|
|
5712 | |
|
|
5713 | cat >>confdefs.h <<\_ACEOF |
|
|
5714 | #define HAVE_CLOCK_SYSCALL 1 |
|
|
5715 | _ACEOF |
|
|
5716 | |
|
|
5717 | { echo "$as_me:$LINENO: result: yes" >&5 |
|
|
5718 | echo "${ECHO_T}yes" >&6; } |
|
|
5719 | else |
|
|
5720 | echo "$as_me: failed program was:" >&5 |
|
|
5721 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5722 | |
|
|
5723 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5724 | echo "${ECHO_T}no" >&6; } |
|
|
5725 | fi |
|
|
5726 | |
|
|
5727 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5728 | conftest$ac_exeext conftest.$ac_ext |
|
|
5729 | fi |
|
|
5730 | if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then |
5694 | |
5731 | |
5695 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5732 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
5696 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5733 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
5697 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5734 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
5698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
5760 | |
5797 | |
5761 | LIBS="-lrt $LIBS" |
5798 | LIBS="-lrt $LIBS" |
5762 | |
5799 | |
5763 | fi |
5800 | fi |
5764 | |
5801 | |
|
|
5802 | unset ac_cv_func_clock_gettime |
5765 | |
5803 | |
5766 | for ac_func in clock_gettime |
5804 | for ac_func in clock_gettime |
5767 | do |
5805 | do |
5768 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5769 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5807 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
… | |
… | |
5854 | _ACEOF |
5892 | _ACEOF |
5855 | |
5893 | |
5856 | fi |
5894 | fi |
5857 | done |
5895 | done |
5858 | |
5896 | |
|
|
5897 | fi |
|
|
5898 | |
|
|
5899 | fi |
|
|
5900 | |
|
|
5901 | |
|
|
5902 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5903 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5904 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5906 | else |
|
|
5907 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5908 | /* confdefs.h. */ |
|
|
5909 | _ACEOF |
|
|
5910 | cat confdefs.h >>conftest.$ac_ext |
|
|
5911 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5912 | /* end confdefs.h. */ |
|
|
5913 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5915 | #define nanosleep innocuous_nanosleep |
|
|
5916 | |
|
|
5917 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5918 | which can conflict with char nanosleep (); below. |
|
|
5919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5920 | <limits.h> exists even on freestanding compilers. */ |
|
|
5921 | |
|
|
5922 | #ifdef __STDC__ |
|
|
5923 | # include <limits.h> |
|
|
5924 | #else |
|
|
5925 | # include <assert.h> |
|
|
5926 | #endif |
|
|
5927 | |
|
|
5928 | #undef nanosleep |
|
|
5929 | |
|
|
5930 | /* Override any GCC internal prototype to avoid an error. |
|
|
5931 | Use char because int might match the return type of a GCC |
|
|
5932 | builtin and then its argument prototype would still apply. */ |
|
|
5933 | #ifdef __cplusplus |
|
|
5934 | extern "C" |
|
|
5935 | #endif |
|
|
5936 | char nanosleep (); |
|
|
5937 | /* The GNU C library defines this for functions which it implements |
|
|
5938 | to always fail with ENOSYS. Some functions are actually named |
|
|
5939 | something starting with __ and the normal name is an alias. */ |
|
|
5940 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5941 | choke me |
|
|
5942 | #endif |
|
|
5943 | |
|
|
5944 | int |
|
|
5945 | main () |
|
|
5946 | { |
|
|
5947 | return nanosleep (); |
|
|
5948 | ; |
|
|
5949 | return 0; |
|
|
5950 | } |
|
|
5951 | _ACEOF |
|
|
5952 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5953 | if { (ac_try="$ac_link" |
|
|
5954 | case "(($ac_try" in |
|
|
5955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5956 | *) ac_try_echo=$ac_try;; |
|
|
5957 | esac |
|
|
5958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5959 | (eval "$ac_link") 2>conftest.er1 |
|
|
5960 | ac_status=$? |
|
|
5961 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5962 | rm -f conftest.er1 |
|
|
5963 | cat conftest.err >&5 |
|
|
5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5965 | (exit $ac_status); } && { |
|
|
5966 | test -z "$ac_cxx_werror_flag" || |
|
|
5967 | test ! -s conftest.err |
|
|
5968 | } && test -s conftest$ac_exeext && |
|
|
5969 | $as_test_x conftest$ac_exeext; then |
|
|
5970 | ac_cv_func_nanosleep=yes |
|
|
5971 | else |
|
|
5972 | echo "$as_me: failed program was:" >&5 |
|
|
5973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5974 | |
|
|
5975 | ac_cv_func_nanosleep=no |
|
|
5976 | fi |
|
|
5977 | |
|
|
5978 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5979 | conftest$ac_exeext conftest.$ac_ext |
|
|
5980 | fi |
|
|
5981 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5982 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5983 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5984 | : |
|
|
5985 | else |
|
|
5986 | |
|
|
5987 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5988 | |
|
|
5989 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5990 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5991 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5993 | else |
|
|
5994 | ac_check_lib_save_LIBS=$LIBS |
|
|
5995 | LIBS="-lrt $LIBS" |
|
|
5996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5997 | /* confdefs.h. */ |
|
|
5998 | _ACEOF |
|
|
5999 | cat confdefs.h >>conftest.$ac_ext |
|
|
6000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6001 | /* end confdefs.h. */ |
|
|
6002 | |
|
|
6003 | /* Override any GCC internal prototype to avoid an error. |
|
|
6004 | Use char because int might match the return type of a GCC |
|
|
6005 | builtin and then its argument prototype would still apply. */ |
|
|
6006 | #ifdef __cplusplus |
|
|
6007 | extern "C" |
|
|
6008 | #endif |
|
|
6009 | char nanosleep (); |
|
|
6010 | int |
|
|
6011 | main () |
|
|
6012 | { |
|
|
6013 | return nanosleep (); |
|
|
6014 | ; |
|
|
6015 | return 0; |
|
|
6016 | } |
|
|
6017 | _ACEOF |
|
|
6018 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6019 | if { (ac_try="$ac_link" |
|
|
6020 | case "(($ac_try" in |
|
|
6021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6022 | *) ac_try_echo=$ac_try;; |
|
|
6023 | esac |
|
|
6024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6025 | (eval "$ac_link") 2>conftest.er1 |
|
|
6026 | ac_status=$? |
|
|
6027 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6028 | rm -f conftest.er1 |
|
|
6029 | cat conftest.err >&5 |
|
|
6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6031 | (exit $ac_status); } && { |
|
|
6032 | test -z "$ac_cxx_werror_flag" || |
|
|
6033 | test ! -s conftest.err |
|
|
6034 | } && test -s conftest$ac_exeext && |
|
|
6035 | $as_test_x conftest$ac_exeext; then |
|
|
6036 | ac_cv_lib_rt_nanosleep=yes |
|
|
6037 | else |
|
|
6038 | echo "$as_me: failed program was:" >&5 |
|
|
6039 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6040 | |
|
|
6041 | ac_cv_lib_rt_nanosleep=no |
|
|
6042 | fi |
|
|
6043 | |
|
|
6044 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6045 | conftest$ac_exeext conftest.$ac_ext |
|
|
6046 | LIBS=$ac_check_lib_save_LIBS |
|
|
6047 | fi |
|
|
6048 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
6049 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
6050 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
6051 | cat >>confdefs.h <<_ACEOF |
|
|
6052 | #define HAVE_LIBRT 1 |
|
|
6053 | _ACEOF |
|
|
6054 | |
|
|
6055 | LIBS="-lrt $LIBS" |
|
|
6056 | |
|
|
6057 | fi |
|
|
6058 | |
|
|
6059 | unset ac_cv_func_nanosleep |
|
|
6060 | |
|
|
6061 | for ac_func in nanosleep |
|
|
6062 | do |
|
|
6063 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6064 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6065 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6066 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6068 | else |
|
|
6069 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6070 | /* confdefs.h. */ |
|
|
6071 | _ACEOF |
|
|
6072 | cat confdefs.h >>conftest.$ac_ext |
|
|
6073 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6074 | /* end confdefs.h. */ |
|
|
6075 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6076 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6077 | #define $ac_func innocuous_$ac_func |
|
|
6078 | |
|
|
6079 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6080 | which can conflict with char $ac_func (); below. |
|
|
6081 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6082 | <limits.h> exists even on freestanding compilers. */ |
|
|
6083 | |
|
|
6084 | #ifdef __STDC__ |
|
|
6085 | # include <limits.h> |
|
|
6086 | #else |
|
|
6087 | # include <assert.h> |
|
|
6088 | #endif |
|
|
6089 | |
|
|
6090 | #undef $ac_func |
|
|
6091 | |
|
|
6092 | /* Override any GCC internal prototype to avoid an error. |
|
|
6093 | Use char because int might match the return type of a GCC |
|
|
6094 | builtin and then its argument prototype would still apply. */ |
|
|
6095 | #ifdef __cplusplus |
|
|
6096 | extern "C" |
|
|
6097 | #endif |
|
|
6098 | char $ac_func (); |
|
|
6099 | /* The GNU C library defines this for functions which it implements |
|
|
6100 | to always fail with ENOSYS. Some functions are actually named |
|
|
6101 | something starting with __ and the normal name is an alias. */ |
|
|
6102 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6103 | choke me |
|
|
6104 | #endif |
|
|
6105 | |
|
|
6106 | int |
|
|
6107 | main () |
|
|
6108 | { |
|
|
6109 | return $ac_func (); |
|
|
6110 | ; |
|
|
6111 | return 0; |
|
|
6112 | } |
|
|
6113 | _ACEOF |
|
|
6114 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6115 | if { (ac_try="$ac_link" |
|
|
6116 | case "(($ac_try" in |
|
|
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6118 | *) ac_try_echo=$ac_try;; |
|
|
6119 | esac |
|
|
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6121 | (eval "$ac_link") 2>conftest.er1 |
|
|
6122 | ac_status=$? |
|
|
6123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6124 | rm -f conftest.er1 |
|
|
6125 | cat conftest.err >&5 |
|
|
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6127 | (exit $ac_status); } && { |
|
|
6128 | test -z "$ac_cxx_werror_flag" || |
|
|
6129 | test ! -s conftest.err |
|
|
6130 | } && test -s conftest$ac_exeext && |
|
|
6131 | $as_test_x conftest$ac_exeext; then |
|
|
6132 | eval "$as_ac_var=yes" |
|
|
6133 | else |
|
|
6134 | echo "$as_me: failed program was:" >&5 |
|
|
6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6136 | |
|
|
6137 | eval "$as_ac_var=no" |
|
|
6138 | fi |
|
|
6139 | |
|
|
6140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6141 | conftest$ac_exeext conftest.$ac_ext |
|
|
6142 | fi |
|
|
6143 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6144 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6145 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6146 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6147 | cat >>confdefs.h <<_ACEOF |
|
|
6148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6149 | _ACEOF |
|
|
6150 | |
|
|
6151 | fi |
|
|
6152 | done |
|
|
6153 | |
|
|
6154 | fi |
5859 | |
6155 | |
5860 | fi |
6156 | fi |
5861 | |
6157 | |
5862 | |
6158 | |
5863 | |
6159 | |
… | |
… | |
5928 | _ACEOF |
6224 | _ACEOF |
5929 | |
6225 | |
5930 | LIBS="-lm $LIBS" |
6226 | LIBS="-lm $LIBS" |
5931 | |
6227 | |
5932 | fi |
6228 | fi |
5933 | |
|
|
5934 | |
|
|
5935 | |
6229 | |
5936 | |
6230 | |
5937 | |
6231 | |
5938 | |
6232 | |
5939 | |
6233 | |
… | |
… | |
5974 | echo "${ECHO_T}$TIC" >&6; } |
6268 | echo "${ECHO_T}$TIC" >&6; } |
5975 | else |
6269 | else |
5976 | { echo "$as_me:$LINENO: result: no" >&5 |
6270 | { echo "$as_me:$LINENO: result: no" >&5 |
5977 | echo "${ECHO_T}no" >&6; } |
6271 | echo "${ECHO_T}no" >&6; } |
5978 | fi |
6272 | fi |
5979 | |
|
|
5980 | |
|
|
5981 | |
6273 | |
5982 | |
6274 | |
5983 | |
6275 | |
5984 | { echo "$as_me:$LINENO: checking for X" >&5 |
6276 | { echo "$as_me:$LINENO: checking for X" >&5 |
5985 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6277 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
… | |
… | |
7372 | echo "${ECHO_T}no" >&6; } |
7664 | echo "${ECHO_T}no" >&6; } |
7373 | fi |
7665 | fi |
7374 | fi |
7666 | fi |
7375 | fi |
7667 | fi |
7376 | |
7668 | |
7377 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
7378 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
7379 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
7380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7381 | else |
|
|
7382 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7383 | /* confdefs.h. */ |
|
|
7384 | _ACEOF |
|
|
7385 | cat confdefs.h >>conftest.$ac_ext |
|
|
7386 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7387 | /* end confdefs.h. */ |
|
|
7388 | #include <sys/types.h> |
|
|
7389 | #include <sys/wait.h> |
|
|
7390 | #ifndef WEXITSTATUS |
|
|
7391 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
7392 | #endif |
|
|
7393 | #ifndef WIFEXITED |
|
|
7394 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
7395 | #endif |
|
|
7396 | |
|
|
7397 | int |
|
|
7398 | main () |
|
|
7399 | { |
|
|
7400 | int s; |
|
|
7401 | wait (&s); |
|
|
7402 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
7403 | ; |
|
|
7404 | return 0; |
|
|
7405 | } |
|
|
7406 | _ACEOF |
|
|
7407 | rm -f conftest.$ac_objext |
|
|
7408 | if { (ac_try="$ac_compile" |
|
|
7409 | case "(($ac_try" in |
|
|
7410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7411 | *) ac_try_echo=$ac_try;; |
|
|
7412 | esac |
|
|
7413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7414 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7415 | ac_status=$? |
|
|
7416 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7417 | rm -f conftest.er1 |
|
|
7418 | cat conftest.err >&5 |
|
|
7419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7420 | (exit $ac_status); } && { |
|
|
7421 | test -z "$ac_cxx_werror_flag" || |
|
|
7422 | test ! -s conftest.err |
|
|
7423 | } && test -s conftest.$ac_objext; then |
|
|
7424 | ac_cv_header_sys_wait_h=yes |
|
|
7425 | else |
|
|
7426 | echo "$as_me: failed program was:" >&5 |
|
|
7427 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7428 | |
|
|
7429 | ac_cv_header_sys_wait_h=no |
|
|
7430 | fi |
|
|
7431 | |
|
|
7432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7433 | fi |
|
|
7434 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7435 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
7436 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7437 | |
|
|
7438 | cat >>confdefs.h <<\_ACEOF |
|
|
7439 | #define HAVE_SYS_WAIT_H 1 |
|
|
7440 | _ACEOF |
|
|
7441 | |
|
|
7442 | fi |
|
|
7443 | |
|
|
7444 | |
|
|
7445 | |
|
|
7446 | |
|
|
7447 | |
|
|
7448 | |
|
|
7449 | |
|
|
7450 | |
|
|
7451 | |
|
|
7452 | |
|
|
7453 | |
|
|
7454 | |
7669 | |
7455 | |
7670 | |
7456 | |
7671 | |
7457 | |
7672 | |
7458 | |
7673 | |
7459 | |
7674 | |
7460 | |
7675 | |
7461 | for ac_header in \ |
7676 | for ac_header in \ |
7462 | assert.h \ |
|
|
7463 | fcntl.h \ |
|
|
7464 | stdarg.h \ |
|
|
7465 | stdlib.h \ |
|
|
7466 | string.h \ |
|
|
7467 | termios.h \ |
|
|
7468 | unistd.h \ |
|
|
7469 | sys/byteorder.h \ |
7677 | sys/byteorder.h \ |
7470 | sys/ioctl.h \ |
7678 | sys/ioctl.h \ |
7471 | sys/select.h \ |
|
|
7472 | sys/sockio.h \ |
7679 | sys/sockio.h \ |
7473 | sys/strredir.h \ |
7680 | sys/strredir.h \ |
7474 | sys/time.h \ |
|
|
7475 | stdint.h \ |
7681 | stdint.h \ |
7476 | wchar.h \ |
7682 | wchar.h \ |
7477 | cwchar \ |
7683 | cwchar \ |
7478 | clocale \ |
|
|
7479 | |
7684 | |
7480 | do |
7685 | do |
7481 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7686 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7482 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7687 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7483 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7688 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7614 | fi |
7819 | fi |
7615 | |
7820 | |
7616 | done |
7821 | done |
7617 | |
7822 | |
7618 | |
7823 | |
7619 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7620 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7621 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7623 | else |
|
|
7624 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7625 | /* confdefs.h. */ |
|
|
7626 | _ACEOF |
|
|
7627 | cat confdefs.h >>conftest.$ac_ext |
|
|
7628 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7629 | /* end confdefs.h. */ |
|
|
7630 | #include <sys/types.h> |
|
|
7631 | #include <sys/time.h> |
|
|
7632 | #include <time.h> |
|
|
7633 | |
|
|
7634 | int |
|
|
7635 | main () |
|
|
7636 | { |
|
|
7637 | if ((struct tm *) 0) |
|
|
7638 | return 0; |
|
|
7639 | ; |
|
|
7640 | return 0; |
|
|
7641 | } |
|
|
7642 | _ACEOF |
|
|
7643 | rm -f conftest.$ac_objext |
|
|
7644 | if { (ac_try="$ac_compile" |
|
|
7645 | case "(($ac_try" in |
|
|
7646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7647 | *) ac_try_echo=$ac_try;; |
|
|
7648 | esac |
|
|
7649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7650 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7651 | ac_status=$? |
|
|
7652 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7653 | rm -f conftest.er1 |
|
|
7654 | cat conftest.err >&5 |
|
|
7655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7656 | (exit $ac_status); } && { |
|
|
7657 | test -z "$ac_cxx_werror_flag" || |
|
|
7658 | test ! -s conftest.err |
|
|
7659 | } && test -s conftest.$ac_objext; then |
|
|
7660 | ac_cv_header_time=yes |
|
|
7661 | else |
|
|
7662 | echo "$as_me: failed program was:" >&5 |
|
|
7663 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7664 | |
|
|
7665 | ac_cv_header_time=no |
|
|
7666 | fi |
|
|
7667 | |
|
|
7668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7669 | fi |
|
|
7670 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7671 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7672 | if test $ac_cv_header_time = yes; then |
|
|
7673 | |
|
|
7674 | cat >>confdefs.h <<\_ACEOF |
|
|
7675 | #define TIME_WITH_SYS_TIME 1 |
|
|
7676 | _ACEOF |
|
|
7677 | |
|
|
7678 | fi |
|
|
7679 | |
|
|
7680 | |
|
|
7681 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7682 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7683 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7685 | else |
|
|
7686 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7687 | /* confdefs.h. */ |
|
|
7688 | _ACEOF |
|
|
7689 | cat confdefs.h >>conftest.$ac_ext |
|
|
7690 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7691 | /* end confdefs.h. */ |
|
|
7692 | #include <stdio.h> |
|
|
7693 | #include <sys/ioctl.h> |
|
|
7694 | #ifdef HAVE_TERMIOS_H |
|
|
7695 | #include <termios.h> |
|
|
7696 | #endif |
|
|
7697 | int |
|
|
7698 | main () |
|
|
7699 | { |
|
|
7700 | int a = ECHO; |
|
|
7701 | ; |
|
|
7702 | return 0; |
|
|
7703 | } |
|
|
7704 | _ACEOF |
|
|
7705 | rm -f conftest.$ac_objext |
|
|
7706 | if { (ac_try="$ac_compile" |
|
|
7707 | case "(($ac_try" in |
|
|
7708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7709 | *) ac_try_echo=$ac_try;; |
|
|
7710 | esac |
|
|
7711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7712 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7713 | ac_status=$? |
|
|
7714 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7715 | rm -f conftest.er1 |
|
|
7716 | cat conftest.err >&5 |
|
|
7717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7718 | (exit $ac_status); } && { |
|
|
7719 | test -z "$ac_cxx_werror_flag" || |
|
|
7720 | test ! -s conftest.err |
|
|
7721 | } && test -s conftest.$ac_objext; then |
|
|
7722 | rxvt_cv_header_sysioctl=yes |
|
|
7723 | else |
|
|
7724 | echo "$as_me: failed program was:" >&5 |
|
|
7725 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7726 | |
|
|
7727 | rxvt_cv_header_sysioctl=no |
|
|
7728 | fi |
|
|
7729 | |
|
|
7730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7731 | fi |
|
|
7732 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7733 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7734 | |
|
|
7735 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7824 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7736 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7825 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7737 | if test "${rxvt_cv_xpointer+set}" = set; then |
7826 | if test "${rxvt_cv_xpointer+set}" = set; then |
7738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7739 | else |
7828 | else |
… | |
… | |
7850 | cat >>confdefs.h <<\_ACEOF |
7939 | cat >>confdefs.h <<\_ACEOF |
7851 | #define XLIB_ILLEGAL_ACCESS 1 |
7940 | #define XLIB_ILLEGAL_ACCESS 1 |
7852 | _ACEOF |
7941 | _ACEOF |
7853 | |
7942 | |
7854 | fi |
7943 | fi |
7855 | |
|
|
7856 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7857 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7858 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7860 | else |
|
|
7861 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7862 | /* confdefs.h. */ |
|
|
7863 | _ACEOF |
|
|
7864 | cat confdefs.h >>conftest.$ac_ext |
|
|
7865 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7866 | /* end confdefs.h. */ |
|
|
7867 | |
|
|
7868 | int |
|
|
7869 | main () |
|
|
7870 | { |
|
|
7871 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7872 | #ifndef __cplusplus |
|
|
7873 | /* Ultrix mips cc rejects this. */ |
|
|
7874 | typedef int charset[2]; |
|
|
7875 | const charset cs; |
|
|
7876 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7877 | char const *const *pcpcc; |
|
|
7878 | char **ppc; |
|
|
7879 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7880 | struct point {int x, y;}; |
|
|
7881 | static struct point const zero = {0,0}; |
|
|
7882 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7883 | It does not let you subtract one const X* pointer from another in |
|
|
7884 | an arm of an if-expression whose if-part is not a constant |
|
|
7885 | expression */ |
|
|
7886 | const char *g = "string"; |
|
|
7887 | pcpcc = &g + (g ? g-g : 0); |
|
|
7888 | /* HPUX 7.0 cc rejects these. */ |
|
|
7889 | ++pcpcc; |
|
|
7890 | ppc = (char**) pcpcc; |
|
|
7891 | pcpcc = (char const *const *) ppc; |
|
|
7892 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7893 | char *t; |
|
|
7894 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7895 | |
|
|
7896 | *t++ = 0; |
|
|
7897 | if (s) return 0; |
|
|
7898 | } |
|
|
7899 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7900 | int x[] = {25, 17}; |
|
|
7901 | const int *foo = &x[0]; |
|
|
7902 | ++foo; |
|
|
7903 | } |
|
|
7904 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7905 | typedef const int *iptr; |
|
|
7906 | iptr p = 0; |
|
|
7907 | ++p; |
|
|
7908 | } |
|
|
7909 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7910 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7911 | struct s { int j; const int *ap[3]; }; |
|
|
7912 | struct s *b; b->j = 5; |
|
|
7913 | } |
|
|
7914 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7915 | const int foo = 10; |
|
|
7916 | if (!foo) return 0; |
|
|
7917 | } |
|
|
7918 | return !cs[0] && !zero.x; |
|
|
7919 | #endif |
|
|
7920 | |
|
|
7921 | ; |
|
|
7922 | return 0; |
|
|
7923 | } |
|
|
7924 | _ACEOF |
|
|
7925 | rm -f conftest.$ac_objext |
|
|
7926 | if { (ac_try="$ac_compile" |
|
|
7927 | case "(($ac_try" in |
|
|
7928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7929 | *) ac_try_echo=$ac_try;; |
|
|
7930 | esac |
|
|
7931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7932 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7933 | ac_status=$? |
|
|
7934 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7935 | rm -f conftest.er1 |
|
|
7936 | cat conftest.err >&5 |
|
|
7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7938 | (exit $ac_status); } && { |
|
|
7939 | test -z "$ac_cxx_werror_flag" || |
|
|
7940 | test ! -s conftest.err |
|
|
7941 | } && test -s conftest.$ac_objext; then |
|
|
7942 | ac_cv_c_const=yes |
|
|
7943 | else |
|
|
7944 | echo "$as_me: failed program was:" >&5 |
|
|
7945 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7946 | |
|
|
7947 | ac_cv_c_const=no |
|
|
7948 | fi |
|
|
7949 | |
|
|
7950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7951 | fi |
|
|
7952 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7953 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7954 | if test $ac_cv_c_const = no; then |
|
|
7955 | |
|
|
7956 | cat >>confdefs.h <<\_ACEOF |
|
|
7957 | #define const |
|
|
7958 | _ACEOF |
|
|
7959 | |
|
|
7960 | fi |
|
|
7961 | |
|
|
7962 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7963 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7964 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7966 | else |
|
|
7967 | ac_cv_c_inline=no |
|
|
7968 | for ac_kw in inline __inline__ __inline; do |
|
|
7969 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7970 | /* confdefs.h. */ |
|
|
7971 | _ACEOF |
|
|
7972 | cat confdefs.h >>conftest.$ac_ext |
|
|
7973 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7974 | /* end confdefs.h. */ |
|
|
7975 | #ifndef __cplusplus |
|
|
7976 | typedef int foo_t; |
|
|
7977 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7978 | $ac_kw foo_t foo () {return 0; } |
|
|
7979 | #endif |
|
|
7980 | |
|
|
7981 | _ACEOF |
|
|
7982 | rm -f conftest.$ac_objext |
|
|
7983 | if { (ac_try="$ac_compile" |
|
|
7984 | case "(($ac_try" in |
|
|
7985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7986 | *) ac_try_echo=$ac_try;; |
|
|
7987 | esac |
|
|
7988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7989 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7990 | ac_status=$? |
|
|
7991 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7992 | rm -f conftest.er1 |
|
|
7993 | cat conftest.err >&5 |
|
|
7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7995 | (exit $ac_status); } && { |
|
|
7996 | test -z "$ac_cxx_werror_flag" || |
|
|
7997 | test ! -s conftest.err |
|
|
7998 | } && test -s conftest.$ac_objext; then |
|
|
7999 | ac_cv_c_inline=$ac_kw |
|
|
8000 | else |
|
|
8001 | echo "$as_me: failed program was:" >&5 |
|
|
8002 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8003 | |
|
|
8004 | |
|
|
8005 | fi |
|
|
8006 | |
|
|
8007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8008 | test "$ac_cv_c_inline" != no && break |
|
|
8009 | done |
|
|
8010 | |
|
|
8011 | fi |
|
|
8012 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
8013 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
8014 | |
|
|
8015 | |
|
|
8016 | case $ac_cv_c_inline in |
|
|
8017 | inline | yes) ;; |
|
|
8018 | *) |
|
|
8019 | case $ac_cv_c_inline in |
|
|
8020 | no) ac_val=;; |
|
|
8021 | *) ac_val=$ac_cv_c_inline;; |
|
|
8022 | esac |
|
|
8023 | cat >>confdefs.h <<_ACEOF |
|
|
8024 | #ifndef __cplusplus |
|
|
8025 | #define inline $ac_val |
|
|
8026 | #endif |
|
|
8027 | _ACEOF |
|
|
8028 | ;; |
|
|
8029 | esac |
|
|
8030 | |
|
|
8031 | |
|
|
8032 | |
7944 | |
8033 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7945 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
8034 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7946 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
8035 | if test "${ac_cv_type_mode_t+set}" = set; then |
7947 | if test "${ac_cv_type_mode_t+set}" = set; then |
8036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8193 | _ACEOF |
8105 | _ACEOF |
8194 | |
8106 | |
8195 | fi |
8107 | fi |
8196 | |
8108 | |
8197 | |
8109 | |
8198 | { echo "$as_me:$LINENO: checking for short" >&5 |
8110 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
8199 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8111 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8200 | if test "${ac_cv_type_short+set}" = set; then |
8112 | if test "${ac_cv_c_int16_t+set}" = set; then |
8201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8202 | else |
8114 | else |
|
|
8115 | ac_cv_c_int16_t=no |
|
|
8116 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8117 | 'long long int' 'short int' 'signed char'; do |
8203 | cat >conftest.$ac_ext <<_ACEOF |
8118 | cat >conftest.$ac_ext <<_ACEOF |
8204 | /* confdefs.h. */ |
8119 | /* confdefs.h. */ |
8205 | _ACEOF |
8120 | _ACEOF |
8206 | cat confdefs.h >>conftest.$ac_ext |
8121 | cat confdefs.h >>conftest.$ac_ext |
8207 | cat >>conftest.$ac_ext <<_ACEOF |
8122 | cat >>conftest.$ac_ext <<_ACEOF |
8208 | /* end confdefs.h. */ |
8123 | /* end confdefs.h. */ |
8209 | $ac_includes_default |
8124 | $ac_includes_default |
8210 | typedef short ac__type_new_; |
|
|
8211 | int |
8125 | int |
8212 | main () |
8126 | main () |
8213 | { |
8127 | { |
8214 | if ((ac__type_new_ *) 0) |
8128 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8215 | return 0; |
8129 | test_array [0] = 0 |
8216 | if (sizeof (ac__type_new_)) |
8130 | |
8217 | return 0; |
|
|
8218 | ; |
8131 | ; |
8219 | return 0; |
8132 | return 0; |
8220 | } |
8133 | } |
8221 | _ACEOF |
8134 | _ACEOF |
8222 | rm -f conftest.$ac_objext |
8135 | rm -f conftest.$ac_objext |
… | |
… | |
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8235 | (exit $ac_status); } && { |
8148 | (exit $ac_status); } && { |
8236 | test -z "$ac_cxx_werror_flag" || |
8149 | test -z "$ac_cxx_werror_flag" || |
8237 | test ! -s conftest.err |
8150 | test ! -s conftest.err |
8238 | } && test -s conftest.$ac_objext; then |
8151 | } && test -s conftest.$ac_objext; then |
8239 | ac_cv_type_short=yes |
|
|
8240 | else |
|
|
8241 | echo "$as_me: failed program was:" >&5 |
|
|
8242 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8243 | |
|
|
8244 | ac_cv_type_short=no |
|
|
8245 | fi |
|
|
8246 | |
|
|
8247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8248 | fi |
|
|
8249 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8250 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8251 | |
|
|
8252 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8253 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8254 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8255 | # This bug is HP SR number 8606223364. |
|
|
8256 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8257 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8258 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8260 | else |
|
|
8261 | if test "$cross_compiling" = yes; then |
|
|
8262 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8263 | cat >conftest.$ac_ext <<_ACEOF |
8152 | cat >conftest.$ac_ext <<_ACEOF |
8264 | /* confdefs.h. */ |
8153 | /* confdefs.h. */ |
8265 | _ACEOF |
8154 | _ACEOF |
8266 | cat confdefs.h >>conftest.$ac_ext |
8155 | cat confdefs.h >>conftest.$ac_ext |
8267 | cat >>conftest.$ac_ext <<_ACEOF |
8156 | cat >>conftest.$ac_ext <<_ACEOF |
8268 | /* end confdefs.h. */ |
8157 | /* end confdefs.h. */ |
8269 | $ac_includes_default |
8158 | $ac_includes_default |
8270 | typedef short ac__type_sizeof_; |
|
|
8271 | int |
8159 | int |
8272 | main () |
8160 | main () |
8273 | { |
8161 | { |
8274 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8162 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8163 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8275 | test_array [0] = 0 |
8164 | test_array [0] = 0 |
8276 | |
8165 | |
8277 | ; |
8166 | ; |
8278 | return 0; |
8167 | return 0; |
8279 | } |
8168 | } |
… | |
… | |
8293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8294 | (exit $ac_status); } && { |
8183 | (exit $ac_status); } && { |
8295 | test -z "$ac_cxx_werror_flag" || |
8184 | test -z "$ac_cxx_werror_flag" || |
8296 | test ! -s conftest.err |
8185 | test ! -s conftest.err |
8297 | } && test -s conftest.$ac_objext; then |
8186 | } && test -s conftest.$ac_objext; then |
8298 | ac_lo=0 ac_mid=0 |
8187 | : |
8299 | while :; do |
8188 | else |
|
|
8189 | echo "$as_me: failed program was:" >&5 |
|
|
8190 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8191 | |
|
|
8192 | case $ac_type in |
|
|
8193 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8194 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8195 | esac |
|
|
8196 | |
|
|
8197 | fi |
|
|
8198 | |
|
|
8199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8200 | else |
|
|
8201 | echo "$as_me: failed program was:" >&5 |
|
|
8202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8203 | |
|
|
8204 | |
|
|
8205 | fi |
|
|
8206 | |
|
|
8207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8208 | test "$ac_cv_c_int16_t" != no && break |
|
|
8209 | done |
|
|
8210 | fi |
|
|
8211 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8212 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8213 | case $ac_cv_c_int16_t in #( |
|
|
8214 | no|yes) ;; #( |
|
|
8215 | *) |
|
|
8216 | |
|
|
8217 | cat >>confdefs.h <<_ACEOF |
|
|
8218 | #define int16_t $ac_cv_c_int16_t |
|
|
8219 | _ACEOF |
|
|
8220 | ;; |
|
|
8221 | esac |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8225 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8226 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8228 | else |
|
|
8229 | ac_cv_c_uint16_t=no |
|
|
8230 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8231 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8300 | cat >conftest.$ac_ext <<_ACEOF |
8232 | cat >conftest.$ac_ext <<_ACEOF |
8301 | /* confdefs.h. */ |
8233 | /* confdefs.h. */ |
8302 | _ACEOF |
8234 | _ACEOF |
8303 | cat confdefs.h >>conftest.$ac_ext |
8235 | cat confdefs.h >>conftest.$ac_ext |
8304 | cat >>conftest.$ac_ext <<_ACEOF |
8236 | cat >>conftest.$ac_ext <<_ACEOF |
8305 | /* end confdefs.h. */ |
8237 | /* end confdefs.h. */ |
8306 | $ac_includes_default |
8238 | $ac_includes_default |
8307 | typedef short ac__type_sizeof_; |
|
|
8308 | int |
8239 | int |
8309 | main () |
8240 | main () |
8310 | { |
8241 | { |
8311 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8242 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8312 | test_array [0] = 0 |
8243 | test_array [0] = 0 |
8313 | |
8244 | |
8314 | ; |
8245 | ; |
8315 | return 0; |
8246 | return 0; |
8316 | } |
8247 | } |
… | |
… | |
8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8331 | (exit $ac_status); } && { |
8262 | (exit $ac_status); } && { |
8332 | test -z "$ac_cxx_werror_flag" || |
8263 | test -z "$ac_cxx_werror_flag" || |
8333 | test ! -s conftest.err |
8264 | test ! -s conftest.err |
8334 | } && test -s conftest.$ac_objext; then |
8265 | } && test -s conftest.$ac_objext; then |
8335 | ac_hi=$ac_mid; break |
8266 | case $ac_type in |
|
|
8267 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8268 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8269 | esac |
|
|
8270 | |
8336 | else |
8271 | else |
8337 | echo "$as_me: failed program was:" >&5 |
8272 | echo "$as_me: failed program was:" >&5 |
8338 | sed 's/^/| /' conftest.$ac_ext >&5 |
8273 | sed 's/^/| /' conftest.$ac_ext >&5 |
8339 | |
8274 | |
8340 | ac_lo=`expr $ac_mid + 1` |
8275 | |
8341 | if test $ac_lo -le $ac_mid; then |
|
|
8342 | ac_lo= ac_hi= |
|
|
8343 | break |
|
|
8344 | fi |
|
|
8345 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8346 | fi |
8276 | fi |
8347 | |
8277 | |
8348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8279 | test "$ac_cv_c_uint16_t" != no && break |
8349 | done |
8280 | done |
8350 | else |
8281 | fi |
8351 | echo "$as_me: failed program was:" >&5 |
8282 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8352 | sed 's/^/| /' conftest.$ac_ext >&5 |
8283 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8284 | case $ac_cv_c_uint16_t in #( |
|
|
8285 | no|yes) ;; #( |
|
|
8286 | *) |
8353 | |
8287 | |
|
|
8288 | |
|
|
8289 | cat >>confdefs.h <<_ACEOF |
|
|
8290 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8291 | _ACEOF |
|
|
8292 | ;; |
|
|
8293 | esac |
|
|
8294 | |
|
|
8295 | |
|
|
8296 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8297 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8298 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8300 | else |
|
|
8301 | ac_cv_c_int32_t=no |
|
|
8302 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8303 | 'long long int' 'short int' 'signed char'; do |
8354 | cat >conftest.$ac_ext <<_ACEOF |
8304 | cat >conftest.$ac_ext <<_ACEOF |
8355 | /* confdefs.h. */ |
8305 | /* confdefs.h. */ |
8356 | _ACEOF |
8306 | _ACEOF |
8357 | cat confdefs.h >>conftest.$ac_ext |
8307 | cat confdefs.h >>conftest.$ac_ext |
8358 | cat >>conftest.$ac_ext <<_ACEOF |
8308 | cat >>conftest.$ac_ext <<_ACEOF |
8359 | /* end confdefs.h. */ |
8309 | /* end confdefs.h. */ |
8360 | $ac_includes_default |
8310 | $ac_includes_default |
8361 | typedef short ac__type_sizeof_; |
|
|
8362 | int |
8311 | int |
8363 | main () |
8312 | main () |
8364 | { |
8313 | { |
8365 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8314 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8366 | test_array [0] = 0 |
8315 | test_array [0] = 0 |
8367 | |
8316 | |
8368 | ; |
8317 | ; |
8369 | return 0; |
8318 | return 0; |
8370 | } |
8319 | } |
… | |
… | |
8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8385 | (exit $ac_status); } && { |
8334 | (exit $ac_status); } && { |
8386 | test -z "$ac_cxx_werror_flag" || |
8335 | test -z "$ac_cxx_werror_flag" || |
8387 | test ! -s conftest.err |
8336 | test ! -s conftest.err |
8388 | } && test -s conftest.$ac_objext; then |
8337 | } && test -s conftest.$ac_objext; then |
8389 | ac_hi=-1 ac_mid=-1 |
|
|
8390 | while :; do |
|
|
8391 | cat >conftest.$ac_ext <<_ACEOF |
8338 | cat >conftest.$ac_ext <<_ACEOF |
8392 | /* confdefs.h. */ |
8339 | /* confdefs.h. */ |
8393 | _ACEOF |
8340 | _ACEOF |
8394 | cat confdefs.h >>conftest.$ac_ext |
8341 | cat confdefs.h >>conftest.$ac_ext |
8395 | cat >>conftest.$ac_ext <<_ACEOF |
8342 | cat >>conftest.$ac_ext <<_ACEOF |
8396 | /* end confdefs.h. */ |
8343 | /* end confdefs.h. */ |
8397 | $ac_includes_default |
8344 | $ac_includes_default |
8398 | typedef short ac__type_sizeof_; |
|
|
8399 | int |
8345 | int |
8400 | main () |
8346 | main () |
8401 | { |
8347 | { |
8402 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8348 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8349 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8403 | test_array [0] = 0 |
8350 | test_array [0] = 0 |
8404 | |
8351 | |
8405 | ; |
8352 | ; |
8406 | return 0; |
8353 | return 0; |
8407 | } |
8354 | } |
… | |
… | |
8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8422 | (exit $ac_status); } && { |
8369 | (exit $ac_status); } && { |
8423 | test -z "$ac_cxx_werror_flag" || |
8370 | test -z "$ac_cxx_werror_flag" || |
8424 | test ! -s conftest.err |
8371 | test ! -s conftest.err |
8425 | } && test -s conftest.$ac_objext; then |
8372 | } && test -s conftest.$ac_objext; then |
8426 | ac_lo=$ac_mid; break |
8373 | : |
8427 | else |
8374 | else |
8428 | echo "$as_me: failed program was:" >&5 |
8375 | echo "$as_me: failed program was:" >&5 |
8429 | sed 's/^/| /' conftest.$ac_ext >&5 |
8376 | sed 's/^/| /' conftest.$ac_ext >&5 |
8430 | |
8377 | |
8431 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8378 | case $ac_type in |
8432 | if test $ac_mid -le $ac_hi; then |
8379 | int32_t) ac_cv_c_int32_t=yes ;; |
8433 | ac_lo= ac_hi= |
8380 | *) ac_cv_c_int32_t=$ac_type ;; |
8434 | break |
8381 | esac |
8435 | fi |
8382 | |
8436 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8437 | fi |
8383 | fi |
8438 | |
8384 | |
8439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8440 | done |
|
|
8441 | else |
8386 | else |
8442 | echo "$as_me: failed program was:" >&5 |
8387 | echo "$as_me: failed program was:" >&5 |
8443 | sed 's/^/| /' conftest.$ac_ext >&5 |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 |
8444 | |
8389 | |
8445 | ac_lo= ac_hi= |
8390 | |
8446 | fi |
8391 | fi |
8447 | |
8392 | |
8448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8394 | test "$ac_cv_c_int32_t" != no && break |
|
|
8395 | done |
8449 | fi |
8396 | fi |
|
|
8397 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8398 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8399 | case $ac_cv_c_int32_t in #( |
|
|
8400 | no|yes) ;; #( |
|
|
8401 | *) |
8450 | |
8402 | |
8451 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8403 | cat >>confdefs.h <<_ACEOF |
8452 | # Binary search between lo and hi bounds. |
8404 | #define int32_t $ac_cv_c_int32_t |
8453 | while test "x$ac_lo" != "x$ac_hi"; do |
8405 | _ACEOF |
8454 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8406 | ;; |
|
|
8407 | esac |
|
|
8408 | |
|
|
8409 | |
|
|
8410 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8411 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8412 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8414 | else |
|
|
8415 | ac_cv_c_uint32_t=no |
|
|
8416 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8417 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8455 | cat >conftest.$ac_ext <<_ACEOF |
8418 | cat >conftest.$ac_ext <<_ACEOF |
8456 | /* confdefs.h. */ |
8419 | /* confdefs.h. */ |
8457 | _ACEOF |
8420 | _ACEOF |
8458 | cat confdefs.h >>conftest.$ac_ext |
8421 | cat confdefs.h >>conftest.$ac_ext |
8459 | cat >>conftest.$ac_ext <<_ACEOF |
8422 | cat >>conftest.$ac_ext <<_ACEOF |
8460 | /* end confdefs.h. */ |
8423 | /* end confdefs.h. */ |
8461 | $ac_includes_default |
8424 | $ac_includes_default |
8462 | typedef short ac__type_sizeof_; |
|
|
8463 | int |
8425 | int |
8464 | main () |
8426 | main () |
8465 | { |
8427 | { |
8466 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8428 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8467 | test_array [0] = 0 |
8429 | test_array [0] = 0 |
8468 | |
8430 | |
8469 | ; |
8431 | ; |
8470 | return 0; |
8432 | return 0; |
8471 | } |
8433 | } |
… | |
… | |
8485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8486 | (exit $ac_status); } && { |
8448 | (exit $ac_status); } && { |
8487 | test -z "$ac_cxx_werror_flag" || |
8449 | test -z "$ac_cxx_werror_flag" || |
8488 | test ! -s conftest.err |
8450 | test ! -s conftest.err |
8489 | } && test -s conftest.$ac_objext; then |
8451 | } && test -s conftest.$ac_objext; then |
8490 | ac_hi=$ac_mid |
8452 | case $ac_type in |
|
|
8453 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8454 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8455 | esac |
|
|
8456 | |
8491 | else |
8457 | else |
8492 | echo "$as_me: failed program was:" >&5 |
8458 | echo "$as_me: failed program was:" >&5 |
8493 | sed 's/^/| /' conftest.$ac_ext >&5 |
8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
8494 | |
8460 | |
8495 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8461 | |
8496 | fi |
8462 | fi |
8497 | |
8463 | |
8498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8499 | done |
8465 | test "$ac_cv_c_uint32_t" != no && break |
8500 | case $ac_lo in |
8466 | done |
8501 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8502 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8503 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8504 | See \`config.log' for more details." >&5 |
|
|
8505 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8506 | See \`config.log' for more details." >&2;} |
|
|
8507 | { (exit 77); exit 77; }; } |
|
|
8508 | else |
|
|
8509 | ac_cv_sizeof_short=0 |
|
|
8510 | fi ;; |
|
|
8511 | esac |
|
|
8512 | else |
|
|
8513 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8514 | /* confdefs.h. */ |
|
|
8515 | _ACEOF |
|
|
8516 | cat confdefs.h >>conftest.$ac_ext |
|
|
8517 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8518 | /* end confdefs.h. */ |
|
|
8519 | $ac_includes_default |
|
|
8520 | typedef short ac__type_sizeof_; |
|
|
8521 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8522 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8523 | #include <stdio.h> |
|
|
8524 | #include <stdlib.h> |
|
|
8525 | int |
|
|
8526 | main () |
|
|
8527 | { |
|
|
8528 | |
|
|
8529 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8530 | if (! f) |
|
|
8531 | return 1; |
|
|
8532 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8533 | { |
|
|
8534 | long int i = longval (); |
|
|
8535 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8536 | return 1; |
|
|
8537 | fprintf (f, "%ld\n", i); |
|
|
8538 | } |
|
|
8539 | else |
|
|
8540 | { |
|
|
8541 | unsigned long int i = ulongval (); |
|
|
8542 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8543 | return 1; |
|
|
8544 | fprintf (f, "%lu\n", i); |
|
|
8545 | } |
|
|
8546 | return ferror (f) || fclose (f) != 0; |
|
|
8547 | |
|
|
8548 | ; |
|
|
8549 | return 0; |
|
|
8550 | } |
|
|
8551 | _ACEOF |
|
|
8552 | rm -f conftest$ac_exeext |
|
|
8553 | if { (ac_try="$ac_link" |
|
|
8554 | case "(($ac_try" in |
|
|
8555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8556 | *) ac_try_echo=$ac_try;; |
|
|
8557 | esac |
|
|
8558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8559 | (eval "$ac_link") 2>&5 |
|
|
8560 | ac_status=$? |
|
|
8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8562 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8563 | { (case "(($ac_try" in |
|
|
8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8565 | *) ac_try_echo=$ac_try;; |
|
|
8566 | esac |
|
|
8567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8568 | (eval "$ac_try") 2>&5 |
|
|
8569 | ac_status=$? |
|
|
8570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8571 | (exit $ac_status); }; }; then |
|
|
8572 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8573 | else |
|
|
8574 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8575 | echo "$as_me: failed program was:" >&5 |
|
|
8576 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8577 | |
|
|
8578 | ( exit $ac_status ) |
|
|
8579 | if test "$ac_cv_type_short" = yes; then |
|
|
8580 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8581 | See \`config.log' for more details." >&5 |
|
|
8582 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8583 | See \`config.log' for more details." >&2;} |
|
|
8584 | { (exit 77); exit 77; }; } |
|
|
8585 | else |
|
|
8586 | ac_cv_sizeof_short=0 |
|
|
8587 | fi |
|
|
8588 | fi |
8467 | fi |
8589 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8590 | fi |
|
|
8591 | rm -f conftest.val |
|
|
8592 | fi |
|
|
8593 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8468 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8594 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8469 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8470 | case $ac_cv_c_uint32_t in #( |
|
|
8471 | no|yes) ;; #( |
|
|
8472 | *) |
8595 | |
8473 | |
|
|
8474 | cat >>confdefs.h <<\_ACEOF |
|
|
8475 | #define _UINT32_T 1 |
|
|
8476 | _ACEOF |
8596 | |
8477 | |
8597 | |
8478 | |
8598 | cat >>confdefs.h <<_ACEOF |
8479 | cat >>confdefs.h <<_ACEOF |
8599 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8480 | #define uint32_t $ac_cv_c_uint32_t |
8600 | _ACEOF |
8481 | _ACEOF |
8601 | |
8482 | ;; |
8602 | |
|
|
8603 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8604 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8605 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8607 | else |
|
|
8608 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8609 | /* confdefs.h. */ |
|
|
8610 | _ACEOF |
|
|
8611 | cat confdefs.h >>conftest.$ac_ext |
|
|
8612 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8613 | /* end confdefs.h. */ |
|
|
8614 | $ac_includes_default |
|
|
8615 | typedef int ac__type_new_; |
|
|
8616 | int |
|
|
8617 | main () |
|
|
8618 | { |
|
|
8619 | if ((ac__type_new_ *) 0) |
|
|
8620 | return 0; |
|
|
8621 | if (sizeof (ac__type_new_)) |
|
|
8622 | return 0; |
|
|
8623 | ; |
|
|
8624 | return 0; |
|
|
8625 | } |
|
|
8626 | _ACEOF |
|
|
8627 | rm -f conftest.$ac_objext |
|
|
8628 | if { (ac_try="$ac_compile" |
|
|
8629 | case "(($ac_try" in |
|
|
8630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8631 | *) ac_try_echo=$ac_try;; |
|
|
8632 | esac |
8483 | esac |
8633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8634 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8635 | ac_status=$? |
|
|
8636 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8637 | rm -f conftest.er1 |
|
|
8638 | cat conftest.err >&5 |
|
|
8639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8640 | (exit $ac_status); } && { |
|
|
8641 | test -z "$ac_cxx_werror_flag" || |
|
|
8642 | test ! -s conftest.err |
|
|
8643 | } && test -s conftest.$ac_objext; then |
|
|
8644 | ac_cv_type_int=yes |
|
|
8645 | else |
|
|
8646 | echo "$as_me: failed program was:" >&5 |
|
|
8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8648 | |
|
|
8649 | ac_cv_type_int=no |
|
|
8650 | fi |
|
|
8651 | |
|
|
8652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8653 | fi |
|
|
8654 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8655 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8656 | |
|
|
8657 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8658 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8659 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8660 | # This bug is HP SR number 8606223364. |
|
|
8661 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8662 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8663 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8665 | else |
|
|
8666 | if test "$cross_compiling" = yes; then |
|
|
8667 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8668 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8669 | /* confdefs.h. */ |
|
|
8670 | _ACEOF |
|
|
8671 | cat confdefs.h >>conftest.$ac_ext |
|
|
8672 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8673 | /* end confdefs.h. */ |
|
|
8674 | $ac_includes_default |
|
|
8675 | typedef int ac__type_sizeof_; |
|
|
8676 | int |
|
|
8677 | main () |
|
|
8678 | { |
|
|
8679 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8680 | test_array [0] = 0 |
|
|
8681 | |
|
|
8682 | ; |
|
|
8683 | return 0; |
|
|
8684 | } |
|
|
8685 | _ACEOF |
|
|
8686 | rm -f conftest.$ac_objext |
|
|
8687 | if { (ac_try="$ac_compile" |
|
|
8688 | case "(($ac_try" in |
|
|
8689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8690 | *) ac_try_echo=$ac_try;; |
|
|
8691 | esac |
|
|
8692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8693 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8694 | ac_status=$? |
|
|
8695 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8696 | rm -f conftest.er1 |
|
|
8697 | cat conftest.err >&5 |
|
|
8698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8699 | (exit $ac_status); } && { |
|
|
8700 | test -z "$ac_cxx_werror_flag" || |
|
|
8701 | test ! -s conftest.err |
|
|
8702 | } && test -s conftest.$ac_objext; then |
|
|
8703 | ac_lo=0 ac_mid=0 |
|
|
8704 | while :; do |
|
|
8705 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8706 | /* confdefs.h. */ |
|
|
8707 | _ACEOF |
|
|
8708 | cat confdefs.h >>conftest.$ac_ext |
|
|
8709 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8710 | /* end confdefs.h. */ |
|
|
8711 | $ac_includes_default |
|
|
8712 | typedef int ac__type_sizeof_; |
|
|
8713 | int |
|
|
8714 | main () |
|
|
8715 | { |
|
|
8716 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8717 | test_array [0] = 0 |
|
|
8718 | |
|
|
8719 | ; |
|
|
8720 | return 0; |
|
|
8721 | } |
|
|
8722 | _ACEOF |
|
|
8723 | rm -f conftest.$ac_objext |
|
|
8724 | if { (ac_try="$ac_compile" |
|
|
8725 | case "(($ac_try" in |
|
|
8726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8727 | *) ac_try_echo=$ac_try;; |
|
|
8728 | esac |
|
|
8729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8730 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8731 | ac_status=$? |
|
|
8732 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8733 | rm -f conftest.er1 |
|
|
8734 | cat conftest.err >&5 |
|
|
8735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8736 | (exit $ac_status); } && { |
|
|
8737 | test -z "$ac_cxx_werror_flag" || |
|
|
8738 | test ! -s conftest.err |
|
|
8739 | } && test -s conftest.$ac_objext; then |
|
|
8740 | ac_hi=$ac_mid; break |
|
|
8741 | else |
|
|
8742 | echo "$as_me: failed program was:" >&5 |
|
|
8743 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8744 | |
|
|
8745 | ac_lo=`expr $ac_mid + 1` |
|
|
8746 | if test $ac_lo -le $ac_mid; then |
|
|
8747 | ac_lo= ac_hi= |
|
|
8748 | break |
|
|
8749 | fi |
|
|
8750 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8751 | fi |
|
|
8752 | |
|
|
8753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8754 | done |
|
|
8755 | else |
|
|
8756 | echo "$as_me: failed program was:" >&5 |
|
|
8757 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8758 | |
|
|
8759 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8760 | /* confdefs.h. */ |
|
|
8761 | _ACEOF |
|
|
8762 | cat confdefs.h >>conftest.$ac_ext |
|
|
8763 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8764 | /* end confdefs.h. */ |
|
|
8765 | $ac_includes_default |
|
|
8766 | typedef int ac__type_sizeof_; |
|
|
8767 | int |
|
|
8768 | main () |
|
|
8769 | { |
|
|
8770 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8771 | test_array [0] = 0 |
|
|
8772 | |
|
|
8773 | ; |
|
|
8774 | return 0; |
|
|
8775 | } |
|
|
8776 | _ACEOF |
|
|
8777 | rm -f conftest.$ac_objext |
|
|
8778 | if { (ac_try="$ac_compile" |
|
|
8779 | case "(($ac_try" in |
|
|
8780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8781 | *) ac_try_echo=$ac_try;; |
|
|
8782 | esac |
|
|
8783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8784 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8785 | ac_status=$? |
|
|
8786 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8787 | rm -f conftest.er1 |
|
|
8788 | cat conftest.err >&5 |
|
|
8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8790 | (exit $ac_status); } && { |
|
|
8791 | test -z "$ac_cxx_werror_flag" || |
|
|
8792 | test ! -s conftest.err |
|
|
8793 | } && test -s conftest.$ac_objext; then |
|
|
8794 | ac_hi=-1 ac_mid=-1 |
|
|
8795 | while :; do |
|
|
8796 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8797 | /* confdefs.h. */ |
|
|
8798 | _ACEOF |
|
|
8799 | cat confdefs.h >>conftest.$ac_ext |
|
|
8800 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8801 | /* end confdefs.h. */ |
|
|
8802 | $ac_includes_default |
|
|
8803 | typedef int ac__type_sizeof_; |
|
|
8804 | int |
|
|
8805 | main () |
|
|
8806 | { |
|
|
8807 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8808 | test_array [0] = 0 |
|
|
8809 | |
|
|
8810 | ; |
|
|
8811 | return 0; |
|
|
8812 | } |
|
|
8813 | _ACEOF |
|
|
8814 | rm -f conftest.$ac_objext |
|
|
8815 | if { (ac_try="$ac_compile" |
|
|
8816 | case "(($ac_try" in |
|
|
8817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8818 | *) ac_try_echo=$ac_try;; |
|
|
8819 | esac |
|
|
8820 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8821 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8822 | ac_status=$? |
|
|
8823 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8824 | rm -f conftest.er1 |
|
|
8825 | cat conftest.err >&5 |
|
|
8826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8827 | (exit $ac_status); } && { |
|
|
8828 | test -z "$ac_cxx_werror_flag" || |
|
|
8829 | test ! -s conftest.err |
|
|
8830 | } && test -s conftest.$ac_objext; then |
|
|
8831 | ac_lo=$ac_mid; break |
|
|
8832 | else |
|
|
8833 | echo "$as_me: failed program was:" >&5 |
|
|
8834 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8835 | |
|
|
8836 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8837 | if test $ac_mid -le $ac_hi; then |
|
|
8838 | ac_lo= ac_hi= |
|
|
8839 | break |
|
|
8840 | fi |
|
|
8841 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8842 | fi |
|
|
8843 | |
|
|
8844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8845 | done |
|
|
8846 | else |
|
|
8847 | echo "$as_me: failed program was:" >&5 |
|
|
8848 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8849 | |
|
|
8850 | ac_lo= ac_hi= |
|
|
8851 | fi |
|
|
8852 | |
|
|
8853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8854 | fi |
|
|
8855 | |
|
|
8856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8857 | # Binary search between lo and hi bounds. |
|
|
8858 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8859 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8860 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8861 | /* confdefs.h. */ |
|
|
8862 | _ACEOF |
|
|
8863 | cat confdefs.h >>conftest.$ac_ext |
|
|
8864 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8865 | /* end confdefs.h. */ |
|
|
8866 | $ac_includes_default |
|
|
8867 | typedef int ac__type_sizeof_; |
|
|
8868 | int |
|
|
8869 | main () |
|
|
8870 | { |
|
|
8871 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8872 | test_array [0] = 0 |
|
|
8873 | |
|
|
8874 | ; |
|
|
8875 | return 0; |
|
|
8876 | } |
|
|
8877 | _ACEOF |
|
|
8878 | rm -f conftest.$ac_objext |
|
|
8879 | if { (ac_try="$ac_compile" |
|
|
8880 | case "(($ac_try" in |
|
|
8881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8882 | *) ac_try_echo=$ac_try;; |
|
|
8883 | esac |
|
|
8884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8885 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8886 | ac_status=$? |
|
|
8887 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8888 | rm -f conftest.er1 |
|
|
8889 | cat conftest.err >&5 |
|
|
8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8891 | (exit $ac_status); } && { |
|
|
8892 | test -z "$ac_cxx_werror_flag" || |
|
|
8893 | test ! -s conftest.err |
|
|
8894 | } && test -s conftest.$ac_objext; then |
|
|
8895 | ac_hi=$ac_mid |
|
|
8896 | else |
|
|
8897 | echo "$as_me: failed program was:" >&5 |
|
|
8898 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8899 | |
|
|
8900 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8901 | fi |
|
|
8902 | |
|
|
8903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8904 | done |
|
|
8905 | case $ac_lo in |
|
|
8906 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8907 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8908 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8909 | See \`config.log' for more details." >&5 |
|
|
8910 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8911 | See \`config.log' for more details." >&2;} |
|
|
8912 | { (exit 77); exit 77; }; } |
|
|
8913 | else |
|
|
8914 | ac_cv_sizeof_int=0 |
|
|
8915 | fi ;; |
|
|
8916 | esac |
|
|
8917 | else |
|
|
8918 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8919 | /* confdefs.h. */ |
|
|
8920 | _ACEOF |
|
|
8921 | cat confdefs.h >>conftest.$ac_ext |
|
|
8922 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8923 | /* end confdefs.h. */ |
|
|
8924 | $ac_includes_default |
|
|
8925 | typedef int ac__type_sizeof_; |
|
|
8926 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8927 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8928 | #include <stdio.h> |
|
|
8929 | #include <stdlib.h> |
|
|
8930 | int |
|
|
8931 | main () |
|
|
8932 | { |
|
|
8933 | |
|
|
8934 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8935 | if (! f) |
|
|
8936 | return 1; |
|
|
8937 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8938 | { |
|
|
8939 | long int i = longval (); |
|
|
8940 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8941 | return 1; |
|
|
8942 | fprintf (f, "%ld\n", i); |
|
|
8943 | } |
|
|
8944 | else |
|
|
8945 | { |
|
|
8946 | unsigned long int i = ulongval (); |
|
|
8947 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8948 | return 1; |
|
|
8949 | fprintf (f, "%lu\n", i); |
|
|
8950 | } |
|
|
8951 | return ferror (f) || fclose (f) != 0; |
|
|
8952 | |
|
|
8953 | ; |
|
|
8954 | return 0; |
|
|
8955 | } |
|
|
8956 | _ACEOF |
|
|
8957 | rm -f conftest$ac_exeext |
|
|
8958 | if { (ac_try="$ac_link" |
|
|
8959 | case "(($ac_try" in |
|
|
8960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8961 | *) ac_try_echo=$ac_try;; |
|
|
8962 | esac |
|
|
8963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8964 | (eval "$ac_link") 2>&5 |
|
|
8965 | ac_status=$? |
|
|
8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8967 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8968 | { (case "(($ac_try" in |
|
|
8969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8970 | *) ac_try_echo=$ac_try;; |
|
|
8971 | esac |
|
|
8972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8973 | (eval "$ac_try") 2>&5 |
|
|
8974 | ac_status=$? |
|
|
8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8976 | (exit $ac_status); }; }; then |
|
|
8977 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8978 | else |
|
|
8979 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8980 | echo "$as_me: failed program was:" >&5 |
|
|
8981 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8982 | |
|
|
8983 | ( exit $ac_status ) |
|
|
8984 | if test "$ac_cv_type_int" = yes; then |
|
|
8985 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8986 | See \`config.log' for more details." >&5 |
|
|
8987 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8988 | See \`config.log' for more details." >&2;} |
|
|
8989 | { (exit 77); exit 77; }; } |
|
|
8990 | else |
|
|
8991 | ac_cv_sizeof_int=0 |
|
|
8992 | fi |
|
|
8993 | fi |
|
|
8994 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8995 | fi |
|
|
8996 | rm -f conftest.val |
|
|
8997 | fi |
|
|
8998 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8999 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
9000 | |
|
|
9001 | |
|
|
9002 | |
|
|
9003 | cat >>confdefs.h <<_ACEOF |
|
|
9004 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
9005 | _ACEOF |
|
|
9006 | |
|
|
9007 | |
|
|
9008 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
9009 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
9010 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
9011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9012 | else |
|
|
9013 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9014 | /* confdefs.h. */ |
|
|
9015 | _ACEOF |
|
|
9016 | cat confdefs.h >>conftest.$ac_ext |
|
|
9017 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9018 | /* end confdefs.h. */ |
|
|
9019 | $ac_includes_default |
|
|
9020 | typedef long long ac__type_new_; |
|
|
9021 | int |
|
|
9022 | main () |
|
|
9023 | { |
|
|
9024 | if ((ac__type_new_ *) 0) |
|
|
9025 | return 0; |
|
|
9026 | if (sizeof (ac__type_new_)) |
|
|
9027 | return 0; |
|
|
9028 | ; |
|
|
9029 | return 0; |
|
|
9030 | } |
|
|
9031 | _ACEOF |
|
|
9032 | rm -f conftest.$ac_objext |
|
|
9033 | if { (ac_try="$ac_compile" |
|
|
9034 | case "(($ac_try" in |
|
|
9035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9036 | *) ac_try_echo=$ac_try;; |
|
|
9037 | esac |
|
|
9038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9039 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9040 | ac_status=$? |
|
|
9041 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9042 | rm -f conftest.er1 |
|
|
9043 | cat conftest.err >&5 |
|
|
9044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9045 | (exit $ac_status); } && { |
|
|
9046 | test -z "$ac_cxx_werror_flag" || |
|
|
9047 | test ! -s conftest.err |
|
|
9048 | } && test -s conftest.$ac_objext; then |
|
|
9049 | ac_cv_type_long_long=yes |
|
|
9050 | else |
|
|
9051 | echo "$as_me: failed program was:" >&5 |
|
|
9052 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9053 | |
|
|
9054 | ac_cv_type_long_long=no |
|
|
9055 | fi |
|
|
9056 | |
|
|
9057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9058 | fi |
|
|
9059 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
9060 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
9061 | |
|
|
9062 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9063 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9064 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9065 | # This bug is HP SR number 8606223364. |
|
|
9066 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
9067 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
9068 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
9069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9070 | else |
|
|
9071 | if test "$cross_compiling" = yes; then |
|
|
9072 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9073 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9074 | /* confdefs.h. */ |
|
|
9075 | _ACEOF |
|
|
9076 | cat confdefs.h >>conftest.$ac_ext |
|
|
9077 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9078 | /* end confdefs.h. */ |
|
|
9079 | $ac_includes_default |
|
|
9080 | typedef long long ac__type_sizeof_; |
|
|
9081 | int |
|
|
9082 | main () |
|
|
9083 | { |
|
|
9084 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9085 | test_array [0] = 0 |
|
|
9086 | |
|
|
9087 | ; |
|
|
9088 | return 0; |
|
|
9089 | } |
|
|
9090 | _ACEOF |
|
|
9091 | rm -f conftest.$ac_objext |
|
|
9092 | if { (ac_try="$ac_compile" |
|
|
9093 | case "(($ac_try" in |
|
|
9094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9095 | *) ac_try_echo=$ac_try;; |
|
|
9096 | esac |
|
|
9097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9098 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9099 | ac_status=$? |
|
|
9100 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9101 | rm -f conftest.er1 |
|
|
9102 | cat conftest.err >&5 |
|
|
9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9104 | (exit $ac_status); } && { |
|
|
9105 | test -z "$ac_cxx_werror_flag" || |
|
|
9106 | test ! -s conftest.err |
|
|
9107 | } && test -s conftest.$ac_objext; then |
|
|
9108 | ac_lo=0 ac_mid=0 |
|
|
9109 | while :; do |
|
|
9110 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9111 | /* confdefs.h. */ |
|
|
9112 | _ACEOF |
|
|
9113 | cat confdefs.h >>conftest.$ac_ext |
|
|
9114 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9115 | /* end confdefs.h. */ |
|
|
9116 | $ac_includes_default |
|
|
9117 | typedef long long ac__type_sizeof_; |
|
|
9118 | int |
|
|
9119 | main () |
|
|
9120 | { |
|
|
9121 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9122 | test_array [0] = 0 |
|
|
9123 | |
|
|
9124 | ; |
|
|
9125 | return 0; |
|
|
9126 | } |
|
|
9127 | _ACEOF |
|
|
9128 | rm -f conftest.$ac_objext |
|
|
9129 | if { (ac_try="$ac_compile" |
|
|
9130 | case "(($ac_try" in |
|
|
9131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9132 | *) ac_try_echo=$ac_try;; |
|
|
9133 | esac |
|
|
9134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9135 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9136 | ac_status=$? |
|
|
9137 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9138 | rm -f conftest.er1 |
|
|
9139 | cat conftest.err >&5 |
|
|
9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9141 | (exit $ac_status); } && { |
|
|
9142 | test -z "$ac_cxx_werror_flag" || |
|
|
9143 | test ! -s conftest.err |
|
|
9144 | } && test -s conftest.$ac_objext; then |
|
|
9145 | ac_hi=$ac_mid; break |
|
|
9146 | else |
|
|
9147 | echo "$as_me: failed program was:" >&5 |
|
|
9148 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9149 | |
|
|
9150 | ac_lo=`expr $ac_mid + 1` |
|
|
9151 | if test $ac_lo -le $ac_mid; then |
|
|
9152 | ac_lo= ac_hi= |
|
|
9153 | break |
|
|
9154 | fi |
|
|
9155 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9156 | fi |
|
|
9157 | |
|
|
9158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9159 | done |
|
|
9160 | else |
|
|
9161 | echo "$as_me: failed program was:" >&5 |
|
|
9162 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9163 | |
|
|
9164 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9165 | /* confdefs.h. */ |
|
|
9166 | _ACEOF |
|
|
9167 | cat confdefs.h >>conftest.$ac_ext |
|
|
9168 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9169 | /* end confdefs.h. */ |
|
|
9170 | $ac_includes_default |
|
|
9171 | typedef long long ac__type_sizeof_; |
|
|
9172 | int |
|
|
9173 | main () |
|
|
9174 | { |
|
|
9175 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9176 | test_array [0] = 0 |
|
|
9177 | |
|
|
9178 | ; |
|
|
9179 | return 0; |
|
|
9180 | } |
|
|
9181 | _ACEOF |
|
|
9182 | rm -f conftest.$ac_objext |
|
|
9183 | if { (ac_try="$ac_compile" |
|
|
9184 | case "(($ac_try" in |
|
|
9185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9186 | *) ac_try_echo=$ac_try;; |
|
|
9187 | esac |
|
|
9188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9189 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9190 | ac_status=$? |
|
|
9191 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9192 | rm -f conftest.er1 |
|
|
9193 | cat conftest.err >&5 |
|
|
9194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9195 | (exit $ac_status); } && { |
|
|
9196 | test -z "$ac_cxx_werror_flag" || |
|
|
9197 | test ! -s conftest.err |
|
|
9198 | } && test -s conftest.$ac_objext; then |
|
|
9199 | ac_hi=-1 ac_mid=-1 |
|
|
9200 | while :; do |
|
|
9201 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9202 | /* confdefs.h. */ |
|
|
9203 | _ACEOF |
|
|
9204 | cat confdefs.h >>conftest.$ac_ext |
|
|
9205 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9206 | /* end confdefs.h. */ |
|
|
9207 | $ac_includes_default |
|
|
9208 | typedef long long ac__type_sizeof_; |
|
|
9209 | int |
|
|
9210 | main () |
|
|
9211 | { |
|
|
9212 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9213 | test_array [0] = 0 |
|
|
9214 | |
|
|
9215 | ; |
|
|
9216 | return 0; |
|
|
9217 | } |
|
|
9218 | _ACEOF |
|
|
9219 | rm -f conftest.$ac_objext |
|
|
9220 | if { (ac_try="$ac_compile" |
|
|
9221 | case "(($ac_try" in |
|
|
9222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9223 | *) ac_try_echo=$ac_try;; |
|
|
9224 | esac |
|
|
9225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9226 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9227 | ac_status=$? |
|
|
9228 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9229 | rm -f conftest.er1 |
|
|
9230 | cat conftest.err >&5 |
|
|
9231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9232 | (exit $ac_status); } && { |
|
|
9233 | test -z "$ac_cxx_werror_flag" || |
|
|
9234 | test ! -s conftest.err |
|
|
9235 | } && test -s conftest.$ac_objext; then |
|
|
9236 | ac_lo=$ac_mid; break |
|
|
9237 | else |
|
|
9238 | echo "$as_me: failed program was:" >&5 |
|
|
9239 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9240 | |
|
|
9241 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9242 | if test $ac_mid -le $ac_hi; then |
|
|
9243 | ac_lo= ac_hi= |
|
|
9244 | break |
|
|
9245 | fi |
|
|
9246 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9247 | fi |
|
|
9248 | |
|
|
9249 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9250 | done |
|
|
9251 | else |
|
|
9252 | echo "$as_me: failed program was:" >&5 |
|
|
9253 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9254 | |
|
|
9255 | ac_lo= ac_hi= |
|
|
9256 | fi |
|
|
9257 | |
|
|
9258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9259 | fi |
|
|
9260 | |
|
|
9261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9262 | # Binary search between lo and hi bounds. |
|
|
9263 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9264 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9265 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9266 | /* confdefs.h. */ |
|
|
9267 | _ACEOF |
|
|
9268 | cat confdefs.h >>conftest.$ac_ext |
|
|
9269 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9270 | /* end confdefs.h. */ |
|
|
9271 | $ac_includes_default |
|
|
9272 | typedef long long ac__type_sizeof_; |
|
|
9273 | int |
|
|
9274 | main () |
|
|
9275 | { |
|
|
9276 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9277 | test_array [0] = 0 |
|
|
9278 | |
|
|
9279 | ; |
|
|
9280 | return 0; |
|
|
9281 | } |
|
|
9282 | _ACEOF |
|
|
9283 | rm -f conftest.$ac_objext |
|
|
9284 | if { (ac_try="$ac_compile" |
|
|
9285 | case "(($ac_try" in |
|
|
9286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9287 | *) ac_try_echo=$ac_try;; |
|
|
9288 | esac |
|
|
9289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9290 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9291 | ac_status=$? |
|
|
9292 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9293 | rm -f conftest.er1 |
|
|
9294 | cat conftest.err >&5 |
|
|
9295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9296 | (exit $ac_status); } && { |
|
|
9297 | test -z "$ac_cxx_werror_flag" || |
|
|
9298 | test ! -s conftest.err |
|
|
9299 | } && test -s conftest.$ac_objext; then |
|
|
9300 | ac_hi=$ac_mid |
|
|
9301 | else |
|
|
9302 | echo "$as_me: failed program was:" >&5 |
|
|
9303 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9304 | |
|
|
9305 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9306 | fi |
|
|
9307 | |
|
|
9308 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9309 | done |
|
|
9310 | case $ac_lo in |
|
|
9311 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9312 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9313 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9314 | See \`config.log' for more details." >&5 |
|
|
9315 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9316 | See \`config.log' for more details." >&2;} |
|
|
9317 | { (exit 77); exit 77; }; } |
|
|
9318 | else |
|
|
9319 | ac_cv_sizeof_long_long=0 |
|
|
9320 | fi ;; |
|
|
9321 | esac |
|
|
9322 | else |
|
|
9323 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9324 | /* confdefs.h. */ |
|
|
9325 | _ACEOF |
|
|
9326 | cat confdefs.h >>conftest.$ac_ext |
|
|
9327 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9328 | /* end confdefs.h. */ |
|
|
9329 | $ac_includes_default |
|
|
9330 | typedef long long ac__type_sizeof_; |
|
|
9331 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9332 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9333 | #include <stdio.h> |
|
|
9334 | #include <stdlib.h> |
|
|
9335 | int |
|
|
9336 | main () |
|
|
9337 | { |
|
|
9338 | |
|
|
9339 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9340 | if (! f) |
|
|
9341 | return 1; |
|
|
9342 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9343 | { |
|
|
9344 | long int i = longval (); |
|
|
9345 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9346 | return 1; |
|
|
9347 | fprintf (f, "%ld\n", i); |
|
|
9348 | } |
|
|
9349 | else |
|
|
9350 | { |
|
|
9351 | unsigned long int i = ulongval (); |
|
|
9352 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9353 | return 1; |
|
|
9354 | fprintf (f, "%lu\n", i); |
|
|
9355 | } |
|
|
9356 | return ferror (f) || fclose (f) != 0; |
|
|
9357 | |
|
|
9358 | ; |
|
|
9359 | return 0; |
|
|
9360 | } |
|
|
9361 | _ACEOF |
|
|
9362 | rm -f conftest$ac_exeext |
|
|
9363 | if { (ac_try="$ac_link" |
|
|
9364 | case "(($ac_try" in |
|
|
9365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9366 | *) ac_try_echo=$ac_try;; |
|
|
9367 | esac |
|
|
9368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9369 | (eval "$ac_link") 2>&5 |
|
|
9370 | ac_status=$? |
|
|
9371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9372 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9373 | { (case "(($ac_try" in |
|
|
9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9375 | *) ac_try_echo=$ac_try;; |
|
|
9376 | esac |
|
|
9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9378 | (eval "$ac_try") 2>&5 |
|
|
9379 | ac_status=$? |
|
|
9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9381 | (exit $ac_status); }; }; then |
|
|
9382 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9383 | else |
|
|
9384 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9385 | echo "$as_me: failed program was:" >&5 |
|
|
9386 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9387 | |
|
|
9388 | ( exit $ac_status ) |
|
|
9389 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9390 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9391 | See \`config.log' for more details." >&5 |
|
|
9392 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9393 | See \`config.log' for more details." >&2;} |
|
|
9394 | { (exit 77); exit 77; }; } |
|
|
9395 | else |
|
|
9396 | ac_cv_sizeof_long_long=0 |
|
|
9397 | fi |
|
|
9398 | fi |
|
|
9399 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9400 | fi |
|
|
9401 | rm -f conftest.val |
|
|
9402 | fi |
|
|
9403 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9404 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9405 | |
|
|
9406 | |
|
|
9407 | |
|
|
9408 | cat >>confdefs.h <<_ACEOF |
|
|
9409 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9410 | _ACEOF |
|
|
9411 | |
|
|
9412 | |
|
|
9413 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9414 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9415 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9417 | else |
|
|
9418 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9419 | /* confdefs.h. */ |
|
|
9420 | _ACEOF |
|
|
9421 | cat confdefs.h >>conftest.$ac_ext |
|
|
9422 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9423 | /* end confdefs.h. */ |
|
|
9424 | $ac_includes_default |
|
|
9425 | typedef int * ac__type_new_; |
|
|
9426 | int |
|
|
9427 | main () |
|
|
9428 | { |
|
|
9429 | if ((ac__type_new_ *) 0) |
|
|
9430 | return 0; |
|
|
9431 | if (sizeof (ac__type_new_)) |
|
|
9432 | return 0; |
|
|
9433 | ; |
|
|
9434 | return 0; |
|
|
9435 | } |
|
|
9436 | _ACEOF |
|
|
9437 | rm -f conftest.$ac_objext |
|
|
9438 | if { (ac_try="$ac_compile" |
|
|
9439 | case "(($ac_try" in |
|
|
9440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9441 | *) ac_try_echo=$ac_try;; |
|
|
9442 | esac |
|
|
9443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9444 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9445 | ac_status=$? |
|
|
9446 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9447 | rm -f conftest.er1 |
|
|
9448 | cat conftest.err >&5 |
|
|
9449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9450 | (exit $ac_status); } && { |
|
|
9451 | test -z "$ac_cxx_werror_flag" || |
|
|
9452 | test ! -s conftest.err |
|
|
9453 | } && test -s conftest.$ac_objext; then |
|
|
9454 | ac_cv_type_int_p=yes |
|
|
9455 | else |
|
|
9456 | echo "$as_me: failed program was:" >&5 |
|
|
9457 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9458 | |
|
|
9459 | ac_cv_type_int_p=no |
|
|
9460 | fi |
|
|
9461 | |
|
|
9462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9463 | fi |
|
|
9464 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9465 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9466 | |
|
|
9467 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9468 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9469 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9470 | # This bug is HP SR number 8606223364. |
|
|
9471 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9472 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9473 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9475 | else |
|
|
9476 | if test "$cross_compiling" = yes; then |
|
|
9477 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9478 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9479 | /* confdefs.h. */ |
|
|
9480 | _ACEOF |
|
|
9481 | cat confdefs.h >>conftest.$ac_ext |
|
|
9482 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9483 | /* end confdefs.h. */ |
|
|
9484 | $ac_includes_default |
|
|
9485 | typedef int * ac__type_sizeof_; |
|
|
9486 | int |
|
|
9487 | main () |
|
|
9488 | { |
|
|
9489 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9490 | test_array [0] = 0 |
|
|
9491 | |
|
|
9492 | ; |
|
|
9493 | return 0; |
|
|
9494 | } |
|
|
9495 | _ACEOF |
|
|
9496 | rm -f conftest.$ac_objext |
|
|
9497 | if { (ac_try="$ac_compile" |
|
|
9498 | case "(($ac_try" in |
|
|
9499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9500 | *) ac_try_echo=$ac_try;; |
|
|
9501 | esac |
|
|
9502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9503 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9504 | ac_status=$? |
|
|
9505 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9506 | rm -f conftest.er1 |
|
|
9507 | cat conftest.err >&5 |
|
|
9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9509 | (exit $ac_status); } && { |
|
|
9510 | test -z "$ac_cxx_werror_flag" || |
|
|
9511 | test ! -s conftest.err |
|
|
9512 | } && test -s conftest.$ac_objext; then |
|
|
9513 | ac_lo=0 ac_mid=0 |
|
|
9514 | while :; do |
|
|
9515 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9516 | /* confdefs.h. */ |
|
|
9517 | _ACEOF |
|
|
9518 | cat confdefs.h >>conftest.$ac_ext |
|
|
9519 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9520 | /* end confdefs.h. */ |
|
|
9521 | $ac_includes_default |
|
|
9522 | typedef int * ac__type_sizeof_; |
|
|
9523 | int |
|
|
9524 | main () |
|
|
9525 | { |
|
|
9526 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9527 | test_array [0] = 0 |
|
|
9528 | |
|
|
9529 | ; |
|
|
9530 | return 0; |
|
|
9531 | } |
|
|
9532 | _ACEOF |
|
|
9533 | rm -f conftest.$ac_objext |
|
|
9534 | if { (ac_try="$ac_compile" |
|
|
9535 | case "(($ac_try" in |
|
|
9536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9537 | *) ac_try_echo=$ac_try;; |
|
|
9538 | esac |
|
|
9539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9540 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9541 | ac_status=$? |
|
|
9542 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9543 | rm -f conftest.er1 |
|
|
9544 | cat conftest.err >&5 |
|
|
9545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9546 | (exit $ac_status); } && { |
|
|
9547 | test -z "$ac_cxx_werror_flag" || |
|
|
9548 | test ! -s conftest.err |
|
|
9549 | } && test -s conftest.$ac_objext; then |
|
|
9550 | ac_hi=$ac_mid; break |
|
|
9551 | else |
|
|
9552 | echo "$as_me: failed program was:" >&5 |
|
|
9553 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9554 | |
|
|
9555 | ac_lo=`expr $ac_mid + 1` |
|
|
9556 | if test $ac_lo -le $ac_mid; then |
|
|
9557 | ac_lo= ac_hi= |
|
|
9558 | break |
|
|
9559 | fi |
|
|
9560 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9561 | fi |
|
|
9562 | |
|
|
9563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9564 | done |
|
|
9565 | else |
|
|
9566 | echo "$as_me: failed program was:" >&5 |
|
|
9567 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9568 | |
|
|
9569 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9570 | /* confdefs.h. */ |
|
|
9571 | _ACEOF |
|
|
9572 | cat confdefs.h >>conftest.$ac_ext |
|
|
9573 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9574 | /* end confdefs.h. */ |
|
|
9575 | $ac_includes_default |
|
|
9576 | typedef int * ac__type_sizeof_; |
|
|
9577 | int |
|
|
9578 | main () |
|
|
9579 | { |
|
|
9580 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9581 | test_array [0] = 0 |
|
|
9582 | |
|
|
9583 | ; |
|
|
9584 | return 0; |
|
|
9585 | } |
|
|
9586 | _ACEOF |
|
|
9587 | rm -f conftest.$ac_objext |
|
|
9588 | if { (ac_try="$ac_compile" |
|
|
9589 | case "(($ac_try" in |
|
|
9590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9591 | *) ac_try_echo=$ac_try;; |
|
|
9592 | esac |
|
|
9593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9594 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9595 | ac_status=$? |
|
|
9596 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9597 | rm -f conftest.er1 |
|
|
9598 | cat conftest.err >&5 |
|
|
9599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9600 | (exit $ac_status); } && { |
|
|
9601 | test -z "$ac_cxx_werror_flag" || |
|
|
9602 | test ! -s conftest.err |
|
|
9603 | } && test -s conftest.$ac_objext; then |
|
|
9604 | ac_hi=-1 ac_mid=-1 |
|
|
9605 | while :; do |
|
|
9606 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9607 | /* confdefs.h. */ |
|
|
9608 | _ACEOF |
|
|
9609 | cat confdefs.h >>conftest.$ac_ext |
|
|
9610 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9611 | /* end confdefs.h. */ |
|
|
9612 | $ac_includes_default |
|
|
9613 | typedef int * ac__type_sizeof_; |
|
|
9614 | int |
|
|
9615 | main () |
|
|
9616 | { |
|
|
9617 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9618 | test_array [0] = 0 |
|
|
9619 | |
|
|
9620 | ; |
|
|
9621 | return 0; |
|
|
9622 | } |
|
|
9623 | _ACEOF |
|
|
9624 | rm -f conftest.$ac_objext |
|
|
9625 | if { (ac_try="$ac_compile" |
|
|
9626 | case "(($ac_try" in |
|
|
9627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9628 | *) ac_try_echo=$ac_try;; |
|
|
9629 | esac |
|
|
9630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9631 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9632 | ac_status=$? |
|
|
9633 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9634 | rm -f conftest.er1 |
|
|
9635 | cat conftest.err >&5 |
|
|
9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9637 | (exit $ac_status); } && { |
|
|
9638 | test -z "$ac_cxx_werror_flag" || |
|
|
9639 | test ! -s conftest.err |
|
|
9640 | } && test -s conftest.$ac_objext; then |
|
|
9641 | ac_lo=$ac_mid; break |
|
|
9642 | else |
|
|
9643 | echo "$as_me: failed program was:" >&5 |
|
|
9644 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9645 | |
|
|
9646 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9647 | if test $ac_mid -le $ac_hi; then |
|
|
9648 | ac_lo= ac_hi= |
|
|
9649 | break |
|
|
9650 | fi |
|
|
9651 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9652 | fi |
|
|
9653 | |
|
|
9654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9655 | done |
|
|
9656 | else |
|
|
9657 | echo "$as_me: failed program was:" >&5 |
|
|
9658 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9659 | |
|
|
9660 | ac_lo= ac_hi= |
|
|
9661 | fi |
|
|
9662 | |
|
|
9663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9664 | fi |
|
|
9665 | |
|
|
9666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9667 | # Binary search between lo and hi bounds. |
|
|
9668 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9669 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9670 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9671 | /* confdefs.h. */ |
|
|
9672 | _ACEOF |
|
|
9673 | cat confdefs.h >>conftest.$ac_ext |
|
|
9674 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9675 | /* end confdefs.h. */ |
|
|
9676 | $ac_includes_default |
|
|
9677 | typedef int * ac__type_sizeof_; |
|
|
9678 | int |
|
|
9679 | main () |
|
|
9680 | { |
|
|
9681 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9682 | test_array [0] = 0 |
|
|
9683 | |
|
|
9684 | ; |
|
|
9685 | return 0; |
|
|
9686 | } |
|
|
9687 | _ACEOF |
|
|
9688 | rm -f conftest.$ac_objext |
|
|
9689 | if { (ac_try="$ac_compile" |
|
|
9690 | case "(($ac_try" in |
|
|
9691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9692 | *) ac_try_echo=$ac_try;; |
|
|
9693 | esac |
|
|
9694 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9695 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9696 | ac_status=$? |
|
|
9697 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9698 | rm -f conftest.er1 |
|
|
9699 | cat conftest.err >&5 |
|
|
9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9701 | (exit $ac_status); } && { |
|
|
9702 | test -z "$ac_cxx_werror_flag" || |
|
|
9703 | test ! -s conftest.err |
|
|
9704 | } && test -s conftest.$ac_objext; then |
|
|
9705 | ac_hi=$ac_mid |
|
|
9706 | else |
|
|
9707 | echo "$as_me: failed program was:" >&5 |
|
|
9708 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9709 | |
|
|
9710 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9711 | fi |
|
|
9712 | |
|
|
9713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9714 | done |
|
|
9715 | case $ac_lo in |
|
|
9716 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9717 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9718 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9719 | See \`config.log' for more details." >&5 |
|
|
9720 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9721 | See \`config.log' for more details." >&2;} |
|
|
9722 | { (exit 77); exit 77; }; } |
|
|
9723 | else |
|
|
9724 | ac_cv_sizeof_int_p=0 |
|
|
9725 | fi ;; |
|
|
9726 | esac |
|
|
9727 | else |
|
|
9728 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9729 | /* confdefs.h. */ |
|
|
9730 | _ACEOF |
|
|
9731 | cat confdefs.h >>conftest.$ac_ext |
|
|
9732 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9733 | /* end confdefs.h. */ |
|
|
9734 | $ac_includes_default |
|
|
9735 | typedef int * ac__type_sizeof_; |
|
|
9736 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9737 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9738 | #include <stdio.h> |
|
|
9739 | #include <stdlib.h> |
|
|
9740 | int |
|
|
9741 | main () |
|
|
9742 | { |
|
|
9743 | |
|
|
9744 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9745 | if (! f) |
|
|
9746 | return 1; |
|
|
9747 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9748 | { |
|
|
9749 | long int i = longval (); |
|
|
9750 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9751 | return 1; |
|
|
9752 | fprintf (f, "%ld\n", i); |
|
|
9753 | } |
|
|
9754 | else |
|
|
9755 | { |
|
|
9756 | unsigned long int i = ulongval (); |
|
|
9757 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9758 | return 1; |
|
|
9759 | fprintf (f, "%lu\n", i); |
|
|
9760 | } |
|
|
9761 | return ferror (f) || fclose (f) != 0; |
|
|
9762 | |
|
|
9763 | ; |
|
|
9764 | return 0; |
|
|
9765 | } |
|
|
9766 | _ACEOF |
|
|
9767 | rm -f conftest$ac_exeext |
|
|
9768 | if { (ac_try="$ac_link" |
|
|
9769 | case "(($ac_try" in |
|
|
9770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9771 | *) ac_try_echo=$ac_try;; |
|
|
9772 | esac |
|
|
9773 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9774 | (eval "$ac_link") 2>&5 |
|
|
9775 | ac_status=$? |
|
|
9776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9777 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9778 | { (case "(($ac_try" in |
|
|
9779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9780 | *) ac_try_echo=$ac_try;; |
|
|
9781 | esac |
|
|
9782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9783 | (eval "$ac_try") 2>&5 |
|
|
9784 | ac_status=$? |
|
|
9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9786 | (exit $ac_status); }; }; then |
|
|
9787 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9788 | else |
|
|
9789 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9790 | echo "$as_me: failed program was:" >&5 |
|
|
9791 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9792 | |
|
|
9793 | ( exit $ac_status ) |
|
|
9794 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9795 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9796 | See \`config.log' for more details." >&5 |
|
|
9797 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9798 | See \`config.log' for more details." >&2;} |
|
|
9799 | { (exit 77); exit 77; }; } |
|
|
9800 | else |
|
|
9801 | ac_cv_sizeof_int_p=0 |
|
|
9802 | fi |
|
|
9803 | fi |
|
|
9804 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9805 | fi |
|
|
9806 | rm -f conftest.val |
|
|
9807 | fi |
|
|
9808 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9809 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9810 | |
|
|
9811 | |
|
|
9812 | |
|
|
9813 | cat >>confdefs.h <<_ACEOF |
|
|
9814 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9815 | _ACEOF |
|
|
9816 | |
|
|
9817 | |
|
|
9818 | |
|
|
9819 | |
|
|
9820 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9821 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9822 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9824 | else |
|
|
9825 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9826 | /* confdefs.h. */ |
|
|
9827 | _ACEOF |
|
|
9828 | cat confdefs.h >>conftest.$ac_ext |
|
|
9829 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9830 | /* end confdefs.h. */ |
|
|
9831 | #include <stdint.h> |
|
|
9832 | int |
|
|
9833 | main () |
|
|
9834 | { |
|
|
9835 | int16_t dummy; |
|
|
9836 | ; |
|
|
9837 | return 0; |
|
|
9838 | } |
|
|
9839 | _ACEOF |
|
|
9840 | rm -f conftest.$ac_objext |
|
|
9841 | if { (ac_try="$ac_compile" |
|
|
9842 | case "(($ac_try" in |
|
|
9843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9844 | *) ac_try_echo=$ac_try;; |
|
|
9845 | esac |
|
|
9846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9847 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9848 | ac_status=$? |
|
|
9849 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9850 | rm -f conftest.er1 |
|
|
9851 | cat conftest.err >&5 |
|
|
9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9853 | (exit $ac_status); } && { |
|
|
9854 | test -z "$ac_cxx_werror_flag" || |
|
|
9855 | test ! -s conftest.err |
|
|
9856 | } && test -s conftest.$ac_objext; then |
|
|
9857 | rxvt_cv_int16_t=yes |
|
|
9858 | else |
|
|
9859 | echo "$as_me: failed program was:" >&5 |
|
|
9860 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9861 | |
|
|
9862 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9863 | rxvt_cv_int16_t=" char" |
|
|
9864 | else |
|
|
9865 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9866 | rxvt_cv_int16_t=" short" |
|
|
9867 | else |
|
|
9868 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9869 | rxvt_cv_int16_t=" int" |
|
|
9870 | else |
|
|
9871 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9872 | rxvt_cv_int16_t=" long" |
|
|
9873 | else |
|
|
9874 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9875 | rxvt_cv_int16_t=" long long" |
|
|
9876 | else |
|
|
9877 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9878 | fi |
|
|
9879 | fi |
|
|
9880 | fi |
|
|
9881 | fi |
|
|
9882 | fi |
|
|
9883 | fi |
|
|
9884 | |
|
|
9885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9886 | fi |
|
|
9887 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9888 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9889 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9890 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9891 | else |
|
|
9892 | if test x"" = x; then |
|
|
9893 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9894 | else |
|
|
9895 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9896 | fi |
|
|
9897 | fi |
|
|
9898 | |
|
|
9899 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9900 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9901 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9903 | else |
|
|
9904 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9905 | /* confdefs.h. */ |
|
|
9906 | _ACEOF |
|
|
9907 | cat confdefs.h >>conftest.$ac_ext |
|
|
9908 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9909 | /* end confdefs.h. */ |
|
|
9910 | #include <stdint.h> |
|
|
9911 | int |
|
|
9912 | main () |
|
|
9913 | { |
|
|
9914 | uint16_t dummy; |
|
|
9915 | ; |
|
|
9916 | return 0; |
|
|
9917 | } |
|
|
9918 | _ACEOF |
|
|
9919 | rm -f conftest.$ac_objext |
|
|
9920 | if { (ac_try="$ac_compile" |
|
|
9921 | case "(($ac_try" in |
|
|
9922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9923 | *) ac_try_echo=$ac_try;; |
|
|
9924 | esac |
|
|
9925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9926 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9927 | ac_status=$? |
|
|
9928 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9929 | rm -f conftest.er1 |
|
|
9930 | cat conftest.err >&5 |
|
|
9931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9932 | (exit $ac_status); } && { |
|
|
9933 | test -z "$ac_cxx_werror_flag" || |
|
|
9934 | test ! -s conftest.err |
|
|
9935 | } && test -s conftest.$ac_objext; then |
|
|
9936 | rxvt_cv_uint16_t=yes |
|
|
9937 | else |
|
|
9938 | echo "$as_me: failed program was:" >&5 |
|
|
9939 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9940 | |
|
|
9941 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9942 | rxvt_cv_uint16_t="unsigned char" |
|
|
9943 | else |
|
|
9944 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9945 | rxvt_cv_uint16_t="unsigned short" |
|
|
9946 | else |
|
|
9947 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9948 | rxvt_cv_uint16_t="unsigned int" |
|
|
9949 | else |
|
|
9950 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9951 | rxvt_cv_uint16_t="unsigned long" |
|
|
9952 | else |
|
|
9953 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9954 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9955 | else |
|
|
9956 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9957 | fi |
|
|
9958 | fi |
|
|
9959 | fi |
|
|
9960 | fi |
|
|
9961 | fi |
|
|
9962 | fi |
|
|
9963 | |
|
|
9964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9965 | fi |
|
|
9966 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9967 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9968 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9969 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9970 | else |
|
|
9971 | if test x"unsigned" = x; then |
|
|
9972 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9973 | else |
|
|
9974 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9975 | fi |
|
|
9976 | fi |
|
|
9977 | |
|
|
9978 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9979 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9980 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9982 | else |
|
|
9983 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9984 | /* confdefs.h. */ |
|
|
9985 | _ACEOF |
|
|
9986 | cat confdefs.h >>conftest.$ac_ext |
|
|
9987 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9988 | /* end confdefs.h. */ |
|
|
9989 | #include <stdint.h> |
|
|
9990 | int |
|
|
9991 | main () |
|
|
9992 | { |
|
|
9993 | int32_t dummy; |
|
|
9994 | ; |
|
|
9995 | return 0; |
|
|
9996 | } |
|
|
9997 | _ACEOF |
|
|
9998 | rm -f conftest.$ac_objext |
|
|
9999 | if { (ac_try="$ac_compile" |
|
|
10000 | case "(($ac_try" in |
|
|
10001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10002 | *) ac_try_echo=$ac_try;; |
|
|
10003 | esac |
|
|
10004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10005 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10006 | ac_status=$? |
|
|
10007 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10008 | rm -f conftest.er1 |
|
|
10009 | cat conftest.err >&5 |
|
|
10010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10011 | (exit $ac_status); } && { |
|
|
10012 | test -z "$ac_cxx_werror_flag" || |
|
|
10013 | test ! -s conftest.err |
|
|
10014 | } && test -s conftest.$ac_objext; then |
|
|
10015 | rxvt_cv_int32_t=yes |
|
|
10016 | else |
|
|
10017 | echo "$as_me: failed program was:" >&5 |
|
|
10018 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10019 | |
|
|
10020 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10021 | rxvt_cv_int32_t=" char" |
|
|
10022 | else |
|
|
10023 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10024 | rxvt_cv_int32_t=" short" |
|
|
10025 | else |
|
|
10026 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10027 | rxvt_cv_int32_t=" int" |
|
|
10028 | else |
|
|
10029 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10030 | rxvt_cv_int32_t=" long" |
|
|
10031 | else |
|
|
10032 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10033 | rxvt_cv_int32_t=" long long" |
|
|
10034 | else |
|
|
10035 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
10036 | fi |
|
|
10037 | fi |
|
|
10038 | fi |
|
|
10039 | fi |
|
|
10040 | fi |
|
|
10041 | fi |
|
|
10042 | |
|
|
10043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10044 | fi |
|
|
10045 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
10046 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
10047 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
10048 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
10049 | else |
|
|
10050 | if test x"" = x; then |
|
|
10051 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10052 | else |
|
|
10053 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10054 | fi |
|
|
10055 | fi |
|
|
10056 | |
|
|
10057 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
10058 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
10059 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
10060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10061 | else |
|
|
10062 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10063 | /* confdefs.h. */ |
|
|
10064 | _ACEOF |
|
|
10065 | cat confdefs.h >>conftest.$ac_ext |
|
|
10066 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10067 | /* end confdefs.h. */ |
|
|
10068 | #include <stdint.h> |
|
|
10069 | int |
|
|
10070 | main () |
|
|
10071 | { |
|
|
10072 | uint32_t dummy; |
|
|
10073 | ; |
|
|
10074 | return 0; |
|
|
10075 | } |
|
|
10076 | _ACEOF |
|
|
10077 | rm -f conftest.$ac_objext |
|
|
10078 | if { (ac_try="$ac_compile" |
|
|
10079 | case "(($ac_try" in |
|
|
10080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10081 | *) ac_try_echo=$ac_try;; |
|
|
10082 | esac |
|
|
10083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10084 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10085 | ac_status=$? |
|
|
10086 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10087 | rm -f conftest.er1 |
|
|
10088 | cat conftest.err >&5 |
|
|
10089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10090 | (exit $ac_status); } && { |
|
|
10091 | test -z "$ac_cxx_werror_flag" || |
|
|
10092 | test ! -s conftest.err |
|
|
10093 | } && test -s conftest.$ac_objext; then |
|
|
10094 | rxvt_cv_uint32_t=yes |
|
|
10095 | else |
|
|
10096 | echo "$as_me: failed program was:" >&5 |
|
|
10097 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10098 | |
|
|
10099 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10100 | rxvt_cv_uint32_t="unsigned char" |
|
|
10101 | else |
|
|
10102 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10103 | rxvt_cv_uint32_t="unsigned short" |
|
|
10104 | else |
|
|
10105 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10106 | rxvt_cv_uint32_t="unsigned int" |
|
|
10107 | else |
|
|
10108 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10109 | rxvt_cv_uint32_t="unsigned long" |
|
|
10110 | else |
|
|
10111 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10112 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10113 | else |
|
|
10114 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10115 | fi |
|
|
10116 | fi |
|
|
10117 | fi |
|
|
10118 | fi |
|
|
10119 | fi |
|
|
10120 | fi |
|
|
10121 | |
|
|
10122 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10123 | fi |
|
|
10124 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10125 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10126 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10127 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10128 | else |
|
|
10129 | if test x"unsigned" = x; then |
|
|
10130 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10131 | else |
|
|
10132 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10133 | fi |
|
|
10134 | fi |
|
|
10135 | |
|
|
10136 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10137 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10138 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10139 | else |
|
|
10140 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10141 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10142 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10143 | else |
|
|
10144 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10145 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10146 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10147 | else |
|
|
10148 | rxvt_intp_define="#error set intp_t" |
|
|
10149 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10150 | fi |
|
|
10151 | fi |
|
|
10152 | fi |
|
|
10153 | |
|
|
10154 | |
|
|
10155 | |
|
|
10156 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10157 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10158 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10160 | else |
|
|
10161 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10162 | /* confdefs.h. */ |
|
|
10163 | _ACEOF |
|
|
10164 | cat confdefs.h >>conftest.$ac_ext |
|
|
10165 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10166 | /* end confdefs.h. */ |
|
|
10167 | #include <sys/types.h> |
|
|
10168 | #include <signal.h> |
|
|
10169 | |
|
|
10170 | int |
|
|
10171 | main () |
|
|
10172 | { |
|
|
10173 | return *(signal (0, 0)) (0) == 1; |
|
|
10174 | ; |
|
|
10175 | return 0; |
|
|
10176 | } |
|
|
10177 | _ACEOF |
|
|
10178 | rm -f conftest.$ac_objext |
|
|
10179 | if { (ac_try="$ac_compile" |
|
|
10180 | case "(($ac_try" in |
|
|
10181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10182 | *) ac_try_echo=$ac_try;; |
|
|
10183 | esac |
|
|
10184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10185 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10186 | ac_status=$? |
|
|
10187 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10188 | rm -f conftest.er1 |
|
|
10189 | cat conftest.err >&5 |
|
|
10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10191 | (exit $ac_status); } && { |
|
|
10192 | test -z "$ac_cxx_werror_flag" || |
|
|
10193 | test ! -s conftest.err |
|
|
10194 | } && test -s conftest.$ac_objext; then |
|
|
10195 | ac_cv_type_signal=int |
|
|
10196 | else |
|
|
10197 | echo "$as_me: failed program was:" >&5 |
|
|
10198 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10199 | |
|
|
10200 | ac_cv_type_signal=void |
|
|
10201 | fi |
|
|
10202 | |
|
|
10203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10204 | fi |
|
|
10205 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10206 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10207 | |
|
|
10208 | cat >>confdefs.h <<_ACEOF |
|
|
10209 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10210 | _ACEOF |
|
|
10211 | |
|
|
10212 | |
8484 | |
10213 | |
8485 | |
10214 | |
8486 | |
10215 | for ac_func in unsetenv |
8487 | for ac_func in unsetenv |
10216 | do |
8488 | do |
… | |
… | |
10457 | fi |
8729 | fi |
10458 | done |
8730 | done |
10459 | |
8731 | |
10460 | |
8732 | |
10461 | |
8733 | |
10462 | |
|
|
10463 | |
|
|
10464 | for ac_header in \ |
8734 | for ac_header in lastlog.h |
10465 | utmp.h \ |
|
|
10466 | utmpx.h \ |
|
|
10467 | lastlog.h \ |
|
|
10468 | |
|
|
10469 | do |
8735 | do |
10470 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8736 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10471 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8737 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10472 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8738 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10604 | |
8870 | |
10605 | done |
8871 | done |
10606 | |
8872 | |
10607 | |
8873 | |
10608 | |
8874 | |
10609 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8875 | |
|
|
8876 | for ac_header in utmp.h |
|
|
8877 | do |
|
|
8878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10610 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10611 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10612 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10614 | fi |
8884 | fi |
|
|
8885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10615 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10616 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8887 | echo "${ECHO_T}$ac_res" >&6; } |
10617 | else |
8888 | else |
10618 | # Is the header compilable? |
8889 | # Is the header compilable? |
10619 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10620 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10621 | cat >conftest.$ac_ext <<_ACEOF |
8892 | cat >conftest.$ac_ext <<_ACEOF |
10622 | /* confdefs.h. */ |
8893 | /* confdefs.h. */ |
10623 | _ACEOF |
8894 | _ACEOF |
10624 | cat confdefs.h >>conftest.$ac_ext |
8895 | cat confdefs.h >>conftest.$ac_ext |
10625 | cat >>conftest.$ac_ext <<_ACEOF |
8896 | cat >>conftest.$ac_ext <<_ACEOF |
10626 | /* end confdefs.h. */ |
8897 | /* end confdefs.h. */ |
10627 | $ac_includes_default |
8898 | $ac_includes_default |
10628 | #include <utmp.h> |
8899 | #include <$ac_header> |
10629 | _ACEOF |
8900 | _ACEOF |
10630 | rm -f conftest.$ac_objext |
8901 | rm -f conftest.$ac_objext |
10631 | if { (ac_try="$ac_compile" |
8902 | if { (ac_try="$ac_compile" |
10632 | case "(($ac_try" in |
8903 | case "(($ac_try" in |
10633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10656 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10657 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8928 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10658 | |
8929 | |
10659 | # Is the header present? |
8930 | # Is the header present? |
10660 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8931 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10661 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10662 | cat >conftest.$ac_ext <<_ACEOF |
8933 | cat >conftest.$ac_ext <<_ACEOF |
10663 | /* confdefs.h. */ |
8934 | /* confdefs.h. */ |
10664 | _ACEOF |
8935 | _ACEOF |
10665 | cat confdefs.h >>conftest.$ac_ext |
8936 | cat confdefs.h >>conftest.$ac_ext |
10666 | cat >>conftest.$ac_ext <<_ACEOF |
8937 | cat >>conftest.$ac_ext <<_ACEOF |
10667 | /* end confdefs.h. */ |
8938 | /* end confdefs.h. */ |
10668 | #include <utmp.h> |
8939 | #include <$ac_header> |
10669 | _ACEOF |
8940 | _ACEOF |
10670 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10671 | case "(($ac_try" in |
8942 | case "(($ac_try" in |
10672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10673 | *) ac_try_echo=$ac_try;; |
8944 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10696 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8967 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10697 | |
8968 | |
10698 | # So? What about this header? |
8969 | # So? What about this header? |
10699 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8970 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10700 | yes:no: ) |
8971 | yes:no: ) |
10701 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10702 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10703 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10704 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10705 | ac_header_preproc=yes |
8976 | ac_header_preproc=yes |
10706 | ;; |
8977 | ;; |
10707 | no:yes:* ) |
8978 | no:yes:* ) |
10708 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10709 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10710 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10711 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10712 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10713 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10714 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10715 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10716 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10717 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10718 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10719 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10720 | |
8991 | |
10721 | ;; |
8992 | ;; |
10722 | esac |
8993 | esac |
10723 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10724 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10725 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10726 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10727 | else |
8998 | else |
10728 | ac_cv_header_utmp_h=$ac_header_preproc |
8999 | eval "$as_ac_Header=\$ac_header_preproc" |
10729 | fi |
9000 | fi |
|
|
9001 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10730 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
9002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10731 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
9003 | echo "${ECHO_T}$ac_res" >&6; } |
10732 | |
9004 | |
10733 | fi |
9005 | fi |
10734 | if test $ac_cv_header_utmp_h = yes; then |
9006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9007 | cat >>confdefs.h <<_ACEOF |
|
|
9008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9009 | _ACEOF |
10735 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
9010 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10736 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
9011 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10737 | if test "${struct_utmp+set}" = set; then |
9012 | if test "${struct_utmp+set}" = set; then |
10738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10739 | else |
9014 | else |
10740 | cat >conftest.$ac_ext <<_ACEOF |
9015 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10907 | |
9182 | |
10908 | fi |
9183 | fi |
10909 | |
9184 | |
10910 | fi |
9185 | fi |
10911 | |
9186 | |
|
|
9187 | done |
10912 | |
9188 | |
10913 | |
9189 | |
10914 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9190 | |
|
|
9191 | for ac_header in utmpx.h |
|
|
9192 | do |
|
|
9193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9194 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10915 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9195 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10916 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10917 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10919 | fi |
9199 | fi |
|
|
9200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10920 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10921 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9202 | echo "${ECHO_T}$ac_res" >&6; } |
10922 | else |
9203 | else |
10923 | # Is the header compilable? |
9204 | # Is the header compilable? |
10924 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9205 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10925 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9206 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10926 | cat >conftest.$ac_ext <<_ACEOF |
9207 | cat >conftest.$ac_ext <<_ACEOF |
10927 | /* confdefs.h. */ |
9208 | /* confdefs.h. */ |
10928 | _ACEOF |
9209 | _ACEOF |
10929 | cat confdefs.h >>conftest.$ac_ext |
9210 | cat confdefs.h >>conftest.$ac_ext |
10930 | cat >>conftest.$ac_ext <<_ACEOF |
9211 | cat >>conftest.$ac_ext <<_ACEOF |
10931 | /* end confdefs.h. */ |
9212 | /* end confdefs.h. */ |
10932 | $ac_includes_default |
9213 | $ac_includes_default |
10933 | #include <utmpx.h> |
9214 | #include <$ac_header> |
10934 | _ACEOF |
9215 | _ACEOF |
10935 | rm -f conftest.$ac_objext |
9216 | rm -f conftest.$ac_objext |
10936 | if { (ac_try="$ac_compile" |
9217 | if { (ac_try="$ac_compile" |
10937 | case "(($ac_try" in |
9218 | case "(($ac_try" in |
10938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10961 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9242 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10962 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9243 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10963 | |
9244 | |
10964 | # Is the header present? |
9245 | # Is the header present? |
10965 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9246 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10966 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10967 | cat >conftest.$ac_ext <<_ACEOF |
9248 | cat >conftest.$ac_ext <<_ACEOF |
10968 | /* confdefs.h. */ |
9249 | /* confdefs.h. */ |
10969 | _ACEOF |
9250 | _ACEOF |
10970 | cat confdefs.h >>conftest.$ac_ext |
9251 | cat confdefs.h >>conftest.$ac_ext |
10971 | cat >>conftest.$ac_ext <<_ACEOF |
9252 | cat >>conftest.$ac_ext <<_ACEOF |
10972 | /* end confdefs.h. */ |
9253 | /* end confdefs.h. */ |
10973 | #include <utmpx.h> |
9254 | #include <$ac_header> |
10974 | _ACEOF |
9255 | _ACEOF |
10975 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10976 | case "(($ac_try" in |
9257 | case "(($ac_try" in |
10977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10978 | *) ac_try_echo=$ac_try;; |
9259 | *) ac_try_echo=$ac_try;; |
… | |
… | |
11001 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9282 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
11002 | |
9283 | |
11003 | # So? What about this header? |
9284 | # So? What about this header? |
11004 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9285 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11005 | yes:no: ) |
9286 | yes:no: ) |
11006 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11007 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9288 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11008 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11009 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9290 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11010 | ac_header_preproc=yes |
9291 | ac_header_preproc=yes |
11011 | ;; |
9292 | ;; |
11012 | no:yes:* ) |
9293 | no:yes:* ) |
11013 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11014 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11015 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11016 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11017 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9298 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11018 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11019 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9300 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11020 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9301 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11021 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9302 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11022 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9303 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11023 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9304 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11024 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9305 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11025 | |
9306 | |
11026 | ;; |
9307 | ;; |
11027 | esac |
9308 | esac |
11028 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9309 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11029 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11030 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11032 | else |
9313 | else |
11033 | ac_cv_header_utmpx_h=$ac_header_preproc |
9314 | eval "$as_ac_Header=\$ac_header_preproc" |
11034 | fi |
9315 | fi |
|
|
9316 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11035 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
11036 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9318 | echo "${ECHO_T}$ac_res" >&6; } |
11037 | |
9319 | |
11038 | fi |
9320 | fi |
11039 | if test $ac_cv_header_utmpx_h = yes; then |
9321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9322 | cat >>confdefs.h <<_ACEOF |
|
|
9323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9324 | _ACEOF |
11040 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9325 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
11041 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9326 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
11042 | if test "${struct_utmpx+set}" = set; then |
9327 | if test "${struct_utmpx+set}" = set; then |
11043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11044 | else |
9329 | else |
11045 | cat >conftest.$ac_ext <<_ACEOF |
9330 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
11212 | |
9497 | |
11213 | fi |
9498 | fi |
11214 | |
9499 | |
11215 | fi |
9500 | fi |
11216 | |
9501 | |
|
|
9502 | done |
11217 | |
9503 | |
11218 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9504 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11219 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9505 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
11220 | if test "${struct_lastlog+set}" = set; then |
9506 | if test "${struct_lastlog+set}" = set; then |
11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12291 | |
10577 | |
12292 | |
10578 | |
12293 | |
10579 | |
12294 | |
10580 | |
12295 | |
10581 | |
|
|
10582 | |
12296 | for ac_header in \ |
10583 | for ac_header in \ |
12297 | pty.h \ |
10584 | pty.h \ |
12298 | util.h \ |
10585 | util.h \ |
12299 | libutil.h \ |
10586 | libutil.h \ |
12300 | sys/ioctl.h \ |
10587 | sys/ioctl.h \ |
12301 | sys/stropts.h \ |
10588 | sys/stropts.h \ |
|
|
10589 | stropts.h \ |
12302 | |
10590 | |
12303 | do |
10591 | do |
12304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10592 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12305 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12306 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
13024 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
11312 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
13025 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11313 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13026 | fi |
11314 | fi |
13027 | fi |
11315 | fi |
13028 | |
11316 | |
|
|
11317 | save_LIBS="$LIBS" |
|
|
11318 | LIBS="$LIBS $X_LIBS" |
13029 | |
11319 | |
13030 | for ac_header in X11/Xft/Xft.h |
11320 | for ac_header in X11/Xft/Xft.h |
13031 | do |
11321 | do |
13032 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13033 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11323 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
13166 | support_xft=no |
11456 | support_xft=no |
13167 | fi |
11457 | fi |
13168 | |
11458 | |
13169 | done |
11459 | done |
13170 | |
11460 | |
13171 | ac_save_LIBS="$LIBS" |
|
|
13172 | LIBS="$LIBS $X_LIBS" |
|
|
13173 | |
|
|
13174 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11461 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13175 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11462 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13176 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11463 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13178 | else |
11465 | else |
13179 | ac_check_lib_save_LIBS=$LIBS |
11466 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13231 | LIBS=$ac_check_lib_save_LIBS |
11518 | LIBS=$ac_check_lib_save_LIBS |
13232 | fi |
11519 | fi |
13233 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11520 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13234 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11521 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13235 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11522 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13236 | cat >>confdefs.h <<_ACEOF |
11523 | : |
13237 | #define HAVE_LIBXFT 1 |
|
|
13238 | _ACEOF |
|
|
13239 | |
|
|
13240 | LIBS="-lXft $LIBS" |
|
|
13241 | |
|
|
13242 | else |
11524 | else |
13243 | support_xft=no |
11525 | support_xft=no |
13244 | fi |
11526 | fi |
13245 | |
11527 | |
13246 | LIBS="$ac_save_LIBS" |
11528 | LIBS="$save_LIBS" |
13247 | |
11529 | |
13248 | if test x$support_xft = xyes; then |
11530 | if test x$support_xft = xyes; then |
13249 | |
11531 | |
13250 | cat >>confdefs.h <<\_ACEOF |
11532 | cat >>confdefs.h <<\_ACEOF |
13251 | #define XFT 1 |
11533 | #define XFT 1 |
… | |
… | |
13335 | _ACEOF |
11617 | _ACEOF |
13336 | |
11618 | |
13337 | fi |
11619 | fi |
13338 | |
11620 | |
13339 | |
11621 | |
|
|
11622 | scrolltypes=plain |
|
|
11623 | |
|
|
11624 | cat >>confdefs.h <<\_ACEOF |
|
|
11625 | #define PLAIN_SCROLLBAR 1 |
|
|
11626 | _ACEOF |
|
|
11627 | |
|
|
11628 | |
13340 | if test x$support_scroll_rxvt = xyes; then |
11629 | if test x$support_scroll_rxvt = xyes; then |
13341 | |
11630 | |
13342 | cat >>confdefs.h <<\_ACEOF |
11631 | cat >>confdefs.h <<\_ACEOF |
13343 | #define RXVT_SCROLLBAR 1 |
11632 | #define RXVT_SCROLLBAR 1 |
13344 | _ACEOF |
11633 | _ACEOF |
13345 | |
11634 | |
13346 | scrolltypes="rxvt" |
11635 | scrolltypes="$scrolltypes rxvt" |
13347 | fi |
11636 | fi |
13348 | if test x$support_scroll_next = xyes; then |
11637 | if test x$support_scroll_next = xyes; then |
13349 | |
11638 | |
13350 | cat >>confdefs.h <<\_ACEOF |
11639 | cat >>confdefs.h <<\_ACEOF |
13351 | #define NEXT_SCROLLBAR 1 |
11640 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
13358 | cat >>confdefs.h <<\_ACEOF |
11647 | cat >>confdefs.h <<\_ACEOF |
13359 | #define XTERM_SCROLLBAR 1 |
11648 | #define XTERM_SCROLLBAR 1 |
13360 | _ACEOF |
11649 | _ACEOF |
13361 | |
11650 | |
13362 | scrolltypes="$scrolltypes xterm" |
11651 | scrolltypes="$scrolltypes xterm" |
13363 | fi |
|
|
13364 | if test x$support_scroll_plain = xyes; then |
|
|
13365 | |
|
|
13366 | cat >>confdefs.h <<\_ACEOF |
|
|
13367 | #define PLAIN_SCROLLBAR 1 |
|
|
13368 | _ACEOF |
|
|
13369 | |
|
|
13370 | scrolltypes="$scrolltypes plain" |
|
|
13371 | fi |
11652 | fi |
13372 | if test x$support_pointer_blank = xyes; then |
11653 | if test x$support_pointer_blank = xyes; then |
13373 | |
11654 | |
13374 | cat >>confdefs.h <<\_ACEOF |
11655 | cat >>confdefs.h <<\_ACEOF |
13375 | #define POINTER_BLANK 1 |
11656 | #define POINTER_BLANK 1 |
… | |
… | |
13638 | _ACEOF |
11919 | _ACEOF |
13639 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11920 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13640 | rm -f conftest.sed |
11921 | rm -f conftest.sed |
13641 | |
11922 | |
13642 | |
11923 | |
13643 | |
|
|
13644 | |
|
|
13645 | |
|
|
13646 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13647 | include_stdint_h="#include <stdint.h>" |
|
|
13648 | else |
|
|
13649 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13650 | fi |
|
|
13651 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13652 | include_stdarg_h="#include <cstdarg>" |
|
|
13653 | else |
|
|
13654 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13655 | fi |
|
|
13656 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13657 | include_stdlib_h="#include <cstdlib>" |
|
|
13658 | else |
|
|
13659 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13660 | fi |
|
|
13661 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13662 | include_unistd_h="#include <unistd.h>" |
|
|
13663 | else |
|
|
13664 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13665 | fi |
|
|
13666 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13667 | include_string_h="#include <cstring>" |
|
|
13668 | else |
|
|
13669 | include_string_h="/* #include <cstring> */" |
|
|
13670 | fi |
|
|
13671 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13672 | include_fcntl_h="#include <fcntl.h>" |
|
|
13673 | else |
|
|
13674 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13675 | fi |
|
|
13676 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13677 | include_util_h="#include <util.h>" |
|
|
13678 | else |
|
|
13679 | include_util_h="/* #include <util.h> */" |
|
|
13680 | fi |
|
|
13681 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13682 | include_assert_h="#include <assert.h>" |
|
|
13683 | else |
|
|
13684 | include_assert_h="/* #include <assert.h> */" |
|
|
13685 | fi |
|
|
13686 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13687 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13688 | else |
|
|
13689 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13690 | fi |
|
|
13691 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13692 | include_sys_select_h="#include <sys/select.h>" |
|
|
13693 | else |
|
|
13694 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13695 | fi |
|
|
13696 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13697 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13698 | else |
|
|
13699 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13700 | fi |
|
|
13701 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13702 | include_sys_time_h="#include <sys/time.h>" |
|
|
13703 | else |
|
|
13704 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13705 | fi |
|
|
13706 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13707 | include_time_h="#include <time.h>" |
|
|
13708 | else |
|
|
13709 | include_time_h="/* #include <time.h> */" |
|
|
13710 | fi |
|
|
13711 | |
|
|
13712 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11924 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13713 | |
11925 | |
13714 | cat >confcache <<\_ACEOF |
11926 | cat >confcache <<\_ACEOF |
13715 | # This file is a shell script that caches the results of configure |
11927 | # This file is a shell script that caches the results of configure |
13716 | # tests run on this system so they can be shared between configure |
11928 | # tests run on this system so they can be shared between configure |
13717 | # scripts and configure runs, see configure's option --config-cache. |
11929 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14266 | case $ac_config_target in |
12478 | case $ac_config_target in |
14267 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12479 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14268 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12480 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14269 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12481 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14270 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12482 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14271 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14272 | |
12483 | |
14273 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14274 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14275 | { (exit 1); exit 1; }; };; |
12486 | { (exit 1); exit 1; }; };; |
14276 | esac |
12487 | esac |
… | |
… | |
14375 | host_cpu!$host_cpu$ac_delim |
12586 | host_cpu!$host_cpu$ac_delim |
14376 | host_vendor!$host_vendor$ac_delim |
12587 | host_vendor!$host_vendor$ac_delim |
14377 | host_os!$host_os$ac_delim |
12588 | host_os!$host_os$ac_delim |
14378 | VERSION!$VERSION$ac_delim |
12589 | VERSION!$VERSION$ac_delim |
14379 | DATE!$DATE$ac_delim |
12590 | DATE!$DATE$ac_delim |
14380 | LSMDATE!$LSMDATE$ac_delim |
|
|
14381 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14382 | CC!$CC$ac_delim |
12591 | CC!$CC$ac_delim |
14383 | CFLAGS!$CFLAGS$ac_delim |
12592 | CFLAGS!$CFLAGS$ac_delim |
14384 | LDFLAGS!$LDFLAGS$ac_delim |
12593 | LDFLAGS!$LDFLAGS$ac_delim |
14385 | CPPFLAGS!$CPPFLAGS$ac_delim |
12594 | CPPFLAGS!$CPPFLAGS$ac_delim |
14386 | ac_ct_CC!$ac_ct_CC$ac_delim |
12595 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14394 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12603 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14395 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12604 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14396 | GREP!$GREP$ac_delim |
12605 | GREP!$GREP$ac_delim |
14397 | EGREP!$EGREP$ac_delim |
12606 | EGREP!$EGREP$ac_delim |
14398 | LINKER!$LINKER$ac_delim |
12607 | LINKER!$LINKER$ac_delim |
14399 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14400 | RXVTNAME!$RXVTNAME$ac_delim |
12608 | RXVTNAME!$RXVTNAME$ac_delim |
14401 | CXXCPP!$CXXCPP$ac_delim |
12609 | CXXCPP!$CXXCPP$ac_delim |
14402 | TIC!$TIC$ac_delim |
12610 | TIC!$TIC$ac_delim |
14403 | XMKMF!$XMKMF$ac_delim |
12611 | XMKMF!$XMKMF$ac_delim |
14404 | X_CFLAGS!$X_CFLAGS$ac_delim |
12612 | X_CFLAGS!$X_CFLAGS$ac_delim |
14405 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12613 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14406 | X_LIBS!$X_LIBS$ac_delim |
12614 | X_LIBS!$X_LIBS$ac_delim |
14407 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12615 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14408 | afterimage_config!$afterimage_config$ac_delim |
12616 | afterimage_config!$afterimage_config$ac_delim |
14409 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14410 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14411 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14412 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14413 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14414 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14415 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12617 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14416 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12618 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14417 | PERL!$PERL$ac_delim |
12619 | PERL!$PERL$ac_delim |
14418 | PERLLIB!$PERLLIB$ac_delim |
12620 | PERLLIB!$PERLLIB$ac_delim |
14419 | PERLFLAGS!$PERLFLAGS$ac_delim |
12621 | PERLFLAGS!$PERLFLAGS$ac_delim |
14420 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12622 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14421 | IF_PERL!$IF_PERL$ac_delim |
12623 | IF_PERL!$IF_PERL$ac_delim |
14422 | PERL_O!$PERL_O$ac_delim |
12624 | PERL_O!$PERL_O$ac_delim |
14423 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12625 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14424 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12626 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14425 | include_stdint_h!$include_stdint_h$ac_delim |
12627 | LIBOBJS!$LIBOBJS$ac_delim |
14426 | include_stdarg_h!$include_stdarg_h$ac_delim |
12628 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14427 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14428 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14429 | include_string_h!$include_string_h$ac_delim |
|
|
14430 | _ACEOF |
12629 | _ACEOF |
14431 | |
12630 | |
14432 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12631 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14433 | break |
12632 | break |
14434 | elif $ac_last_try; then |
12633 | elif $ac_last_try; then |
14435 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12634 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14436 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12635 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14437 | { (exit 1); exit 1; }; } |
12636 | { (exit 1); exit 1; }; } |
… | |
… | |
14446 | ac_eof=`expr $ac_eof + 1` |
12645 | ac_eof=`expr $ac_eof + 1` |
14447 | fi |
12646 | fi |
14448 | |
12647 | |
14449 | cat >>$CONFIG_STATUS <<_ACEOF |
12648 | cat >>$CONFIG_STATUS <<_ACEOF |
14450 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12649 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14451 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14452 | _ACEOF |
|
|
14453 | sed ' |
|
|
14454 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14455 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14456 | :n |
|
|
14457 | t n |
|
|
14458 | s/'"$ac_delim"'$/,g/; t |
|
|
14459 | s/$/\\/; p |
|
|
14460 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14461 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14462 | rm -f conf$$subs.sed |
|
|
14463 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14464 | CEOF$ac_eof |
|
|
14465 | _ACEOF |
|
|
14466 | |
|
|
14467 | |
|
|
14468 | ac_delim='%!_!# ' |
|
|
14469 | for ac_last_try in false false false false false :; do |
|
|
14470 | cat >conf$$subs.sed <<_ACEOF |
|
|
14471 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14472 | include_util_h!$include_util_h$ac_delim |
|
|
14473 | include_assert_h!$include_assert_h$ac_delim |
|
|
14474 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14475 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14476 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14477 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14478 | include_time_h!$include_time_h$ac_delim |
|
|
14479 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14480 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14481 | _ACEOF |
|
|
14482 | |
|
|
14483 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
14484 | break |
|
|
14485 | elif $ac_last_try; then |
|
|
14486 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14487 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14488 | { (exit 1); exit 1; }; } |
|
|
14489 | else |
|
|
14490 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14491 | fi |
|
|
14492 | done |
|
|
14493 | |
|
|
14494 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14495 | if test -n "$ac_eof"; then |
|
|
14496 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14497 | ac_eof=`expr $ac_eof + 1` |
|
|
14498 | fi |
|
|
14499 | |
|
|
14500 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14501 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14502 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12650 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14503 | _ACEOF |
12651 | _ACEOF |
14504 | sed ' |
12652 | sed ' |
14505 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12653 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14506 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12654 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14759 | s&@builddir@&$ac_builddir&;t t |
12907 | s&@builddir@&$ac_builddir&;t t |
14760 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12908 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14761 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12909 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14762 | s&@INSTALL@&$ac_INSTALL&;t t |
12910 | s&@INSTALL@&$ac_INSTALL&;t t |
14763 | $ac_datarootdir_hack |
12911 | $ac_datarootdir_hack |
14764 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12912 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14765 | |
12913 | |
14766 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12914 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14767 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12915 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14768 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12916 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14769 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12917 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |