… | |
… | |
658 | host_cpu |
658 | host_cpu |
659 | host_vendor |
659 | host_vendor |
660 | host_os |
660 | host_os |
661 | VERSION |
661 | VERSION |
662 | DATE |
662 | DATE |
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
663 | CC |
666 | CFLAGS |
664 | CFLAGS |
667 | LDFLAGS |
665 | LDFLAGS |
668 | CPPFLAGS |
666 | CPPFLAGS |
669 | ac_ct_CC |
667 | ac_ct_CC |
… | |
… | |
677 | INSTALL_SCRIPT |
675 | INSTALL_SCRIPT |
678 | INSTALL_DATA |
676 | INSTALL_DATA |
679 | GREP |
677 | GREP |
680 | EGREP |
678 | EGREP |
681 | LINKER |
679 | LINKER |
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
680 | RXVTNAME |
|
|
681 | CXXCPP |
684 | TIC |
682 | TIC |
685 | XMKMF |
683 | XMKMF |
686 | CXXCPP |
|
|
687 | X_CFLAGS |
684 | X_CFLAGS |
688 | X_PRE_LIBS |
685 | X_PRE_LIBS |
689 | X_LIBS |
686 | X_LIBS |
690 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
691 | afterimage_config |
688 | afterimage_config |
692 | rxvt_int16_typedef |
|
|
693 | rxvt_uint16_typedef |
|
|
694 | rxvt_int32_typedef |
|
|
695 | rxvt_uint32_typedef |
|
|
696 | rxvt_intp_define |
|
|
697 | rxvt_u_intp_define |
|
|
698 | PKG_CONFIG |
689 | PKG_CONFIG |
699 | XFT_CONFIG |
690 | XFT_CONFIG |
700 | PERL |
691 | PERL |
701 | PERLLIB |
692 | PERLLIB |
702 | PERLFLAGS |
693 | PERLFLAGS |
703 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
704 | IF_PERL |
695 | IF_PERL |
705 | PERL_O |
696 | PERL_O |
706 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
707 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
708 | include_stdint_h |
|
|
709 | include_stdarg_h |
|
|
710 | include_stdlib_h |
|
|
711 | include_unistd_h |
|
|
712 | include_string_h |
|
|
713 | include_fcntl_h |
|
|
714 | include_util_h |
|
|
715 | include_assert_h |
|
|
716 | include_sys_ioctl_h |
|
|
717 | include_sys_select_h |
|
|
718 | include_sys_strredir_h |
|
|
719 | include_sys_time_h |
|
|
720 | include_time_h |
|
|
721 | LIBOBJS |
699 | LIBOBJS |
722 | LTLIBOBJS' |
700 | LTLIBOBJS' |
723 | ac_subst_files='' |
701 | ac_subst_files='' |
724 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
725 | host_alias |
703 | host_alias |
… | |
… | |
731 | CPPFLAGS |
709 | CPPFLAGS |
732 | CXX |
710 | CXX |
733 | CXXFLAGS |
711 | CXXFLAGS |
734 | CCC |
712 | CCC |
735 | CPP |
713 | CPP |
736 | XMKMF |
|
|
737 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
738 | |
716 | |
739 | |
717 | |
740 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
741 | ac_init_help= |
719 | ac_init_help= |
742 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1315 | |
1293 | |
1316 | Optional Features: |
1294 | Optional Features: |
1317 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1318 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1319 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1320 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1321 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-assert enable assertions |
|
|
1300 | --enable-warnings turn on g++ warnings |
1322 | --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 |
1323 | --enable-combining enable composition of base and combining characters |
1302 | --enable-combining enable composition of base and combining characters |
1324 | --enable-xft enable xft support on systems that have it |
1303 | --enable-xft enable xft support on systems that have it |
1325 | --enable-font-styles enable bold and italic support |
1304 | --enable-font-styles enable bold and italic support |
1326 | --enable-afterimage enable integration with libAfterImage for background images |
1305 | --enable-afterimage enable integration with libAfterImage for background images |
1327 | --enable-transparency enable transparent backgrounds |
1306 | --enable-transparency enable transparent backgrounds |
1328 | --enable-tinting enable tinting of transparent bg |
|
|
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) |
1340 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1317 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1341 | --disable-swapscreen disable swap screen support |
1318 | --disable-swapscreen disable swap screen support |
1342 | --enable-iso14755 enable support for extended ISO 14755 modes |
1319 | --enable-iso14755 enable support for extended ISO 14755 modes |
1343 | --enable-frills enable support for rarely used features |
1320 | --enable-frills enable support for rarely used features |
1344 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1321 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1345 | --enable-selectionscrolling enable scrolling during selections |
1322 | --enable-selectionscrolling enable scrolling during selections |
1346 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1323 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1347 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1324 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1348 | --enable-smart-resize enable smart growth/shrink behaviour |
1325 | --enable-smart-resize enable smart growth/shrink behaviour |
1349 | --enable-text-blink enable blinking text |
1326 | --enable-text-blink enable blinking text |
1350 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1327 | --enable-pointer-blank enable pointer blanking when typing or inactive |
1351 | --enable-utmp enable utmp (utmpx) support |
1328 | --enable-utmp enable utmp (utmpx) support |
1352 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1329 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1353 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1330 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1354 | |
1331 | |
1355 | Optional Packages: |
1332 | Optional Packages: |
1356 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1357 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1358 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1335 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1359 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1336 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1360 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1337 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1361 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1338 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1362 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1339 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1363 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1340 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1364 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1341 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1373 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1350 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1374 | you have headers in a nonstandard directory <include dir> |
1351 | you have headers in a nonstandard directory <include dir> |
1375 | CXX C++ compiler command |
1352 | CXX C++ compiler command |
1376 | CXXFLAGS C++ compiler flags |
1353 | CXXFLAGS C++ compiler flags |
1377 | CPP C preprocessor |
1354 | CPP C preprocessor |
|
|
1355 | CXXCPP C++ preprocessor |
1378 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1356 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1379 | CXXCPP C++ preprocessor |
|
|
1380 | |
1357 | |
1381 | Use these variables to override the choices made by `configure' or to help |
1358 | Use these variables to override the choices made by `configure' or to help |
1382 | it to find libraries and programs with nonstandard names/locations. |
1359 | it to find libraries and programs with nonstandard names/locations. |
1383 | |
1360 | |
1384 | _ACEOF |
1361 | _ACEOF |
… | |
… | |
1920 | |
1897 | |
1921 | |
1898 | |
1922 | |
1899 | |
1923 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1900 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1924 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1901 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1902 | |
1925 | echo "" |
1903 | echo "" |
1926 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1927 | echo "" |
1905 | echo "" |
1928 | |
1906 | |
1929 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1930 | |
|
|
1931 | |
1908 | |
1932 | ac_ext=c |
1909 | ac_ext=c |
1933 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1912 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3714 | echo "${ECHO_T}no" >&6; } |
3691 | echo "${ECHO_T}no" >&6; } |
3715 | fi |
3692 | fi |
3716 | rm -f conftest* |
3693 | rm -f conftest* |
3717 | |
3694 | |
3718 | |
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
3719 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3720 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3721 | if test "${ac_cv_search_strerror+set}" = set; then |
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3723 | else |
3706 | else |
… | |
… | |
3870 | LINKER=$LINKER |
3853 | LINKER=$LINKER |
3871 | |
3854 | |
3872 | |
3855 | |
3873 | if test -z "$orig_CXXFLAGS"; then |
3856 | if test -z "$orig_CXXFLAGS"; then |
3874 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3875 | 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" |
3876 | cat >conftest.$ac_ext <<_ACEOF |
3859 | cat >conftest.$ac_ext <<_ACEOF |
3877 | /* confdefs.h. */ |
3860 | /* confdefs.h. */ |
3878 | _ACEOF |
3861 | _ACEOF |
3879 | cat confdefs.h >>conftest.$ac_ext |
3862 | cat confdefs.h >>conftest.$ac_ext |
3880 | cat >>conftest.$ac_ext <<_ACEOF |
3863 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3918 | CXXFLAGS="-O" |
3901 | CXXFLAGS="-O" |
3919 | fi |
3902 | fi |
3920 | CFLAGS="$CXXFLAGS" |
3903 | CFLAGS="$CXXFLAGS" |
3921 | fi |
3904 | fi |
3922 | |
3905 | |
3923 | |
|
|
3924 | cat >>confdefs.h <<\_ACEOF |
|
|
3925 | #define _GNU_SOURCE 1 |
|
|
3926 | _ACEOF |
|
|
3927 | |
|
|
3928 | |
|
|
3929 | case $host in |
3906 | case $host in |
3930 | *-*-solaris* ) |
3907 | *-*-solaris* ) |
3931 | |
3908 | |
3932 | cat >>confdefs.h <<\_ACEOF |
3909 | cat >>confdefs.h <<\_ACEOF |
3933 | #define _XOPEN_SOURCE 500 |
3910 | #define _XOPEN_SOURCE 500 |
3934 | _ACEOF |
3911 | _ACEOF |
3935 | |
3912 | |
3936 | ;; |
3913 | ;; |
3937 | esac |
3914 | esac |
3938 | |
|
|
3939 | |
3915 | |
3940 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3941 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3942 | if test "${ac_cv_func_setlocale+set}" = set; then |
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4390 | fi |
4366 | fi |
4391 | |
4367 | |
4392 | fi |
4368 | fi |
4393 | |
4369 | |
4394 | |
4370 | |
4395 | |
|
|
4396 | support_frills=yes |
4371 | support_frills=yes |
4397 | support_inheritpixmap=yes |
4372 | support_inheritpixmap=yes |
4398 | support_tinting=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 |
4402 | support_mousewheel=yes |
4376 | support_mousewheel=yes |
4403 | support_mouseslipwheel=yes |
4377 | support_mouseslipwheel=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 |
… | |
… | |
4418 | support_styles=yes |
4391 | support_styles=yes |
4419 | support_perl=yes |
4392 | support_perl=yes |
4420 | codesets=all |
4393 | codesets=all |
4421 | |
4394 | |
4422 | |
4395 | |
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 | |
|
|
4432 | |
|
|
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; |
4436 | if test x$enableval = xno; then |
4399 | if test x$enableval = xno; then |
4437 | support_frills=no |
4400 | support_frills=no |
4438 | support_inheritpixmap=no |
4401 | support_inheritpixmap=no |
4439 | support_tinting=no |
|
|
4440 | support_fading=no |
4402 | support_fading=no |
4441 | support_keepscrolling=no |
4403 | support_keepscrolling=no |
4442 | support_selectionscrolling=no |
4404 | support_selectionscrolling=no |
4443 | support_lastlog=no |
4405 | support_lastlog=no |
4444 | support_mousewheel=no |
4406 | support_mousewheel=no |
… | |
… | |
4446 | support_text_blink=no |
4408 | support_text_blink=no |
4447 | support_pointer_blank=no |
4409 | support_pointer_blank=no |
4448 | support_scroll_rxvt=no |
4410 | support_scroll_rxvt=no |
4449 | support_scroll_next=no |
4411 | support_scroll_next=no |
4450 | support_scroll_xterm=no |
4412 | support_scroll_xterm=no |
4451 | support_scroll_plain=no |
|
|
4452 | support_utmp=no |
4413 | support_utmp=no |
4453 | support_wtmp=no |
4414 | support_wtmp=no |
4454 | support_xim=no |
4415 | support_xim=no |
4455 | support_afterimage=no |
4416 | support_afterimage=no |
4456 | support_afterstep=no |
4417 | support_afterstep=no |
… | |
… | |
4464 | codesets= |
4425 | codesets= |
4465 | fi |
4426 | fi |
4466 | if test x$enableval = xyes; then |
4427 | if test x$enableval = xyes; then |
4467 | support_frills=yes |
4428 | support_frills=yes |
4468 | support_inheritpixmap=yes |
4429 | support_inheritpixmap=yes |
4469 | support_tinting=yes |
|
|
4470 | support_fading=yes |
4430 | support_fading=yes |
4471 | support_keepscrolling=yes |
4431 | support_keepscrolling=yes |
4472 | support_selectionscrolling=yes |
4432 | support_selectionscrolling=yes |
4473 | support_lastlog=yes |
4433 | support_lastlog=yes |
4474 | support_mousewheel=yes |
4434 | support_mousewheel=yes |
… | |
… | |
4476 | support_text_blink=yes |
4436 | support_text_blink=yes |
4477 | support_pointer_blank=yes |
4437 | support_pointer_blank=yes |
4478 | support_scroll_rxvt=yes |
4438 | support_scroll_rxvt=yes |
4479 | support_scroll_next=yes |
4439 | support_scroll_next=yes |
4480 | support_scroll_xterm=yes |
4440 | support_scroll_xterm=yes |
4481 | support_scroll_plain=yes |
|
|
4482 | support_utmp=yes |
4441 | support_utmp=yes |
4483 | support_wtmp=yes |
4442 | support_wtmp=yes |
4484 | support_xim=yes |
4443 | support_xim=yes |
4485 | support_afterimage=yes |
4444 | support_afterimage=yes |
4486 | support_afterstep=yes |
4445 | support_afterstep=yes |
… | |
… | |
4495 | fi |
4454 | fi |
4496 | |
4455 | |
4497 | fi |
4456 | fi |
4498 | |
4457 | |
4499 | |
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 | |
|
|
4475 | WARNINGS=no |
|
|
4476 | # Check whether --enable-warnings was given. |
|
|
4477 | if test "${enable_warnings+set}" = set; then |
|
|
4478 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4479 | WARNINGS=yes |
|
|
4480 | fi |
|
|
4481 | fi |
|
|
4482 | |
|
|
4483 | if test x$GXX = xyes; then |
|
|
4484 | if test $WARNINGS = yes; then |
|
|
4485 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4486 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4487 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4488 | /* confdefs.h. */ |
|
|
4489 | _ACEOF |
|
|
4490 | cat confdefs.h >>conftest.$ac_ext |
|
|
4491 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4492 | /* end confdefs.h. */ |
|
|
4493 | |
|
|
4494 | int |
|
|
4495 | main () |
|
|
4496 | { |
|
|
4497 | |
|
|
4498 | ; |
|
|
4499 | return 0; |
|
|
4500 | } |
|
|
4501 | _ACEOF |
|
|
4502 | rm -f conftest.$ac_objext |
|
|
4503 | if { (ac_try="$ac_compile" |
|
|
4504 | case "(($ac_try" in |
|
|
4505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4506 | *) ac_try_echo=$ac_try;; |
|
|
4507 | esac |
|
|
4508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4509 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4510 | ac_status=$? |
|
|
4511 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4512 | rm -f conftest.er1 |
|
|
4513 | cat conftest.err >&5 |
|
|
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4515 | (exit $ac_status); } && { |
|
|
4516 | test -z "$ac_cxx_werror_flag" || |
|
|
4517 | test ! -s conftest.err |
|
|
4518 | } && test -s conftest.$ac_objext; then |
|
|
4519 | : |
|
|
4520 | else |
|
|
4521 | echo "$as_me: failed program was:" >&5 |
|
|
4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4523 | |
|
|
4524 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4525 | fi |
|
|
4526 | |
|
|
4527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4528 | else |
|
|
4529 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4530 | fi |
|
|
4531 | fi |
|
|
4532 | |
4500 | # Check whether --enable-unicode3 was given. |
4533 | # Check whether --enable-unicode3 was given. |
4501 | if test "${enable_unicode3+set}" = set; then |
4534 | if test "${enable_unicode3+set}" = set; then |
4502 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4535 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4503 | support_unicode3=$enableval |
4536 | support_unicode3=$enableval |
4504 | fi |
4537 | fi |
… | |
… | |
4553 | support_inheritpixmap=$enableval |
4586 | support_inheritpixmap=$enableval |
4554 | fi |
4587 | fi |
4555 | fi |
4588 | fi |
4556 | |
4589 | |
4557 | |
4590 | |
4558 | # Check whether --enable-tinting was given. |
|
|
4559 | if test "${enable_tinting+set}" = set; then |
|
|
4560 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4561 | support_tinting=$enableval |
|
|
4562 | fi |
|
|
4563 | fi |
|
|
4564 | |
|
|
4565 | |
|
|
4566 | # Check whether --enable-fading was given. |
4591 | # Check whether --enable-fading was given. |
4567 | if test "${enable_fading+set}" = set; then |
4592 | if test "${enable_fading+set}" = set; then |
4568 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4593 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4569 | support_fading=$enableval |
4594 | support_fading=$enableval |
4570 | fi |
4595 | fi |
… | |
… | |
4597 | |
4622 | |
4598 | # Check whether --enable-perl was given. |
4623 | # Check whether --enable-perl was given. |
4599 | if test "${enable_perl+set}" = set; then |
4624 | if test "${enable_perl+set}" = set; then |
4600 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4625 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4601 | support_perl=$enableval |
4626 | support_perl=$enableval |
4602 | fi |
|
|
4603 | fi |
|
|
4604 | |
|
|
4605 | |
|
|
4606 | # Check whether --enable-plain-scroll was given. |
|
|
4607 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4608 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4609 | support_scroll_plain=$enableval |
|
|
4610 | fi |
4627 | fi |
4611 | fi |
4628 | fi |
4612 | |
4629 | |
4613 | |
4630 | |
4614 | |
4631 | |
… | |
… | |
4841 | #define RXVT_TERMINFO "$withval" |
4858 | #define RXVT_TERMINFO "$withval" |
4842 | _ACEOF |
4859 | _ACEOF |
4843 | terminfo="$withval" |
4860 | terminfo="$withval" |
4844 | fi |
4861 | fi |
4845 | fi |
4862 | fi |
|
|
4863 | |
|
|
4864 | |
|
|
4865 | |
|
|
4866 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4867 | |
|
|
4868 | ac_ext=cpp |
|
|
4869 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4870 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4871 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4872 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4873 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4874 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4875 | if test -z "$CXXCPP"; then |
|
|
4876 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4878 | else |
|
|
4879 | # Double quotes because CXXCPP needs to be expanded |
|
|
4880 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4881 | do |
|
|
4882 | ac_preproc_ok=false |
|
|
4883 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4884 | do |
|
|
4885 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4886 | # with a fresh cross-compiler works. |
|
|
4887 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4888 | # <limits.h> exists even on freestanding compilers. |
|
|
4889 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4890 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4891 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4892 | /* confdefs.h. */ |
|
|
4893 | _ACEOF |
|
|
4894 | cat confdefs.h >>conftest.$ac_ext |
|
|
4895 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4896 | /* end confdefs.h. */ |
|
|
4897 | #ifdef __STDC__ |
|
|
4898 | # include <limits.h> |
|
|
4899 | #else |
|
|
4900 | # include <assert.h> |
|
|
4901 | #endif |
|
|
4902 | Syntax error |
|
|
4903 | _ACEOF |
|
|
4904 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4905 | case "(($ac_try" in |
|
|
4906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4907 | *) ac_try_echo=$ac_try;; |
|
|
4908 | esac |
|
|
4909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4910 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4911 | ac_status=$? |
|
|
4912 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4913 | rm -f conftest.er1 |
|
|
4914 | cat conftest.err >&5 |
|
|
4915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4916 | (exit $ac_status); } >/dev/null && { |
|
|
4917 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4918 | test ! -s conftest.err |
|
|
4919 | }; then |
|
|
4920 | : |
|
|
4921 | else |
|
|
4922 | echo "$as_me: failed program was:" >&5 |
|
|
4923 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4924 | |
|
|
4925 | # Broken: fails on valid input. |
|
|
4926 | continue |
|
|
4927 | fi |
|
|
4928 | |
|
|
4929 | rm -f conftest.err conftest.$ac_ext |
|
|
4930 | |
|
|
4931 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4932 | # can be detected and how. |
|
|
4933 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4934 | /* confdefs.h. */ |
|
|
4935 | _ACEOF |
|
|
4936 | cat confdefs.h >>conftest.$ac_ext |
|
|
4937 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4938 | /* end confdefs.h. */ |
|
|
4939 | #include <ac_nonexistent.h> |
|
|
4940 | _ACEOF |
|
|
4941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4942 | case "(($ac_try" in |
|
|
4943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4944 | *) ac_try_echo=$ac_try;; |
|
|
4945 | esac |
|
|
4946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4948 | ac_status=$? |
|
|
4949 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4950 | rm -f conftest.er1 |
|
|
4951 | cat conftest.err >&5 |
|
|
4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4953 | (exit $ac_status); } >/dev/null && { |
|
|
4954 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4955 | test ! -s conftest.err |
|
|
4956 | }; then |
|
|
4957 | # Broken: success on invalid input. |
|
|
4958 | continue |
|
|
4959 | else |
|
|
4960 | echo "$as_me: failed program was:" >&5 |
|
|
4961 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4962 | |
|
|
4963 | # Passes both tests. |
|
|
4964 | ac_preproc_ok=: |
|
|
4965 | break |
|
|
4966 | fi |
|
|
4967 | |
|
|
4968 | rm -f conftest.err conftest.$ac_ext |
|
|
4969 | |
|
|
4970 | done |
|
|
4971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4972 | rm -f conftest.err conftest.$ac_ext |
|
|
4973 | if $ac_preproc_ok; then |
|
|
4974 | break |
|
|
4975 | fi |
|
|
4976 | |
|
|
4977 | done |
|
|
4978 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4979 | |
|
|
4980 | fi |
|
|
4981 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4982 | else |
|
|
4983 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4984 | fi |
|
|
4985 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4986 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4987 | ac_preproc_ok=false |
|
|
4988 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4989 | do |
|
|
4990 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4991 | # with a fresh cross-compiler works. |
|
|
4992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4993 | # <limits.h> exists even on freestanding compilers. |
|
|
4994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4995 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4996 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4997 | /* confdefs.h. */ |
|
|
4998 | _ACEOF |
|
|
4999 | cat confdefs.h >>conftest.$ac_ext |
|
|
5000 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5001 | /* end confdefs.h. */ |
|
|
5002 | #ifdef __STDC__ |
|
|
5003 | # include <limits.h> |
|
|
5004 | #else |
|
|
5005 | # include <assert.h> |
|
|
5006 | #endif |
|
|
5007 | Syntax error |
|
|
5008 | _ACEOF |
|
|
5009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5010 | case "(($ac_try" in |
|
|
5011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5012 | *) ac_try_echo=$ac_try;; |
|
|
5013 | esac |
|
|
5014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5016 | ac_status=$? |
|
|
5017 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5018 | rm -f conftest.er1 |
|
|
5019 | cat conftest.err >&5 |
|
|
5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5021 | (exit $ac_status); } >/dev/null && { |
|
|
5022 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5023 | test ! -s conftest.err |
|
|
5024 | }; then |
|
|
5025 | : |
|
|
5026 | else |
|
|
5027 | echo "$as_me: failed program was:" >&5 |
|
|
5028 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5029 | |
|
|
5030 | # Broken: fails on valid input. |
|
|
5031 | continue |
|
|
5032 | fi |
|
|
5033 | |
|
|
5034 | rm -f conftest.err conftest.$ac_ext |
|
|
5035 | |
|
|
5036 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5037 | # can be detected and how. |
|
|
5038 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5039 | /* confdefs.h. */ |
|
|
5040 | _ACEOF |
|
|
5041 | cat confdefs.h >>conftest.$ac_ext |
|
|
5042 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5043 | /* end confdefs.h. */ |
|
|
5044 | #include <ac_nonexistent.h> |
|
|
5045 | _ACEOF |
|
|
5046 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5047 | case "(($ac_try" in |
|
|
5048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5049 | *) ac_try_echo=$ac_try;; |
|
|
5050 | esac |
|
|
5051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5052 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5053 | ac_status=$? |
|
|
5054 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5055 | rm -f conftest.er1 |
|
|
5056 | cat conftest.err >&5 |
|
|
5057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5058 | (exit $ac_status); } >/dev/null && { |
|
|
5059 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5060 | test ! -s conftest.err |
|
|
5061 | }; then |
|
|
5062 | # Broken: success on invalid input. |
|
|
5063 | continue |
|
|
5064 | else |
|
|
5065 | echo "$as_me: failed program was:" >&5 |
|
|
5066 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5067 | |
|
|
5068 | # Passes both tests. |
|
|
5069 | ac_preproc_ok=: |
|
|
5070 | break |
|
|
5071 | fi |
|
|
5072 | |
|
|
5073 | rm -f conftest.err conftest.$ac_ext |
|
|
5074 | |
|
|
5075 | done |
|
|
5076 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5077 | rm -f conftest.err conftest.$ac_ext |
|
|
5078 | if $ac_preproc_ok; then |
|
|
5079 | : |
|
|
5080 | else |
|
|
5081 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5082 | See \`config.log' for more details." >&5 |
|
|
5083 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5084 | See \`config.log' for more details." >&2;} |
|
|
5085 | { (exit 1); exit 1; }; } |
|
|
5086 | fi |
|
|
5087 | |
|
|
5088 | ac_ext=cpp |
|
|
5089 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5093 | |
|
|
5094 | |
|
|
5095 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5096 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5097 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5099 | else |
|
|
5100 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5101 | /* confdefs.h. */ |
|
|
5102 | _ACEOF |
|
|
5103 | cat confdefs.h >>conftest.$ac_ext |
|
|
5104 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5105 | /* end confdefs.h. */ |
|
|
5106 | #include <stdlib.h> |
|
|
5107 | #include <stdarg.h> |
|
|
5108 | #include <string.h> |
|
|
5109 | #include <float.h> |
|
|
5110 | |
|
|
5111 | int |
|
|
5112 | main () |
|
|
5113 | { |
|
|
5114 | |
|
|
5115 | ; |
|
|
5116 | return 0; |
|
|
5117 | } |
|
|
5118 | _ACEOF |
|
|
5119 | rm -f conftest.$ac_objext |
|
|
5120 | if { (ac_try="$ac_compile" |
|
|
5121 | case "(($ac_try" in |
|
|
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5123 | *) ac_try_echo=$ac_try;; |
|
|
5124 | esac |
|
|
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5126 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5127 | ac_status=$? |
|
|
5128 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5129 | rm -f conftest.er1 |
|
|
5130 | cat conftest.err >&5 |
|
|
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5132 | (exit $ac_status); } && { |
|
|
5133 | test -z "$ac_cxx_werror_flag" || |
|
|
5134 | test ! -s conftest.err |
|
|
5135 | } && test -s conftest.$ac_objext; then |
|
|
5136 | ac_cv_header_stdc=yes |
|
|
5137 | else |
|
|
5138 | echo "$as_me: failed program was:" >&5 |
|
|
5139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5140 | |
|
|
5141 | ac_cv_header_stdc=no |
|
|
5142 | fi |
|
|
5143 | |
|
|
5144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5145 | |
|
|
5146 | if test $ac_cv_header_stdc = yes; then |
|
|
5147 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5148 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5149 | /* confdefs.h. */ |
|
|
5150 | _ACEOF |
|
|
5151 | cat confdefs.h >>conftest.$ac_ext |
|
|
5152 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5153 | /* end confdefs.h. */ |
|
|
5154 | #include <string.h> |
|
|
5155 | |
|
|
5156 | _ACEOF |
|
|
5157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5158 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5159 | : |
|
|
5160 | else |
|
|
5161 | ac_cv_header_stdc=no |
|
|
5162 | fi |
|
|
5163 | rm -f conftest* |
|
|
5164 | |
|
|
5165 | fi |
|
|
5166 | |
|
|
5167 | if test $ac_cv_header_stdc = yes; then |
|
|
5168 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5170 | /* confdefs.h. */ |
|
|
5171 | _ACEOF |
|
|
5172 | cat confdefs.h >>conftest.$ac_ext |
|
|
5173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5174 | /* end confdefs.h. */ |
|
|
5175 | #include <stdlib.h> |
|
|
5176 | |
|
|
5177 | _ACEOF |
|
|
5178 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5179 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5180 | : |
|
|
5181 | else |
|
|
5182 | ac_cv_header_stdc=no |
|
|
5183 | fi |
|
|
5184 | rm -f conftest* |
|
|
5185 | |
|
|
5186 | fi |
|
|
5187 | |
|
|
5188 | if test $ac_cv_header_stdc = yes; then |
|
|
5189 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5190 | if test "$cross_compiling" = yes; then |
|
|
5191 | : |
|
|
5192 | else |
|
|
5193 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5194 | /* confdefs.h. */ |
|
|
5195 | _ACEOF |
|
|
5196 | cat confdefs.h >>conftest.$ac_ext |
|
|
5197 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5198 | /* end confdefs.h. */ |
|
|
5199 | #include <ctype.h> |
|
|
5200 | #include <stdlib.h> |
|
|
5201 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5202 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5203 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5204 | #else |
|
|
5205 | # define ISLOWER(c) \ |
|
|
5206 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5207 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5208 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5209 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5210 | #endif |
|
|
5211 | |
|
|
5212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5213 | int |
|
|
5214 | main () |
|
|
5215 | { |
|
|
5216 | int i; |
|
|
5217 | for (i = 0; i < 256; i++) |
|
|
5218 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5219 | || toupper (i) != TOUPPER (i)) |
|
|
5220 | return 2; |
|
|
5221 | return 0; |
|
|
5222 | } |
|
|
5223 | _ACEOF |
|
|
5224 | rm -f conftest$ac_exeext |
|
|
5225 | if { (ac_try="$ac_link" |
|
|
5226 | case "(($ac_try" in |
|
|
5227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5228 | *) ac_try_echo=$ac_try;; |
|
|
5229 | esac |
|
|
5230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5231 | (eval "$ac_link") 2>&5 |
|
|
5232 | ac_status=$? |
|
|
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5234 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5235 | { (case "(($ac_try" in |
|
|
5236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5237 | *) ac_try_echo=$ac_try;; |
|
|
5238 | esac |
|
|
5239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5240 | (eval "$ac_try") 2>&5 |
|
|
5241 | ac_status=$? |
|
|
5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5243 | (exit $ac_status); }; }; then |
|
|
5244 | : |
|
|
5245 | else |
|
|
5246 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5247 | echo "$as_me: failed program was:" >&5 |
|
|
5248 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5249 | |
|
|
5250 | ( exit $ac_status ) |
|
|
5251 | ac_cv_header_stdc=no |
|
|
5252 | fi |
|
|
5253 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5254 | fi |
|
|
5255 | |
|
|
5256 | |
|
|
5257 | fi |
|
|
5258 | fi |
|
|
5259 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5260 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5261 | if test $ac_cv_header_stdc = yes; then |
|
|
5262 | |
|
|
5263 | cat >>confdefs.h <<\_ACEOF |
|
|
5264 | #define STDC_HEADERS 1 |
|
|
5265 | _ACEOF |
|
|
5266 | |
|
|
5267 | fi |
|
|
5268 | |
|
|
5269 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | |
|
|
5275 | |
|
|
5276 | |
|
|
5277 | |
|
|
5278 | |
|
|
5279 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5280 | inttypes.h stdint.h unistd.h |
|
|
5281 | do |
|
|
5282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5283 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5285 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5287 | else |
|
|
5288 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5289 | /* confdefs.h. */ |
|
|
5290 | _ACEOF |
|
|
5291 | cat confdefs.h >>conftest.$ac_ext |
|
|
5292 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5293 | /* end confdefs.h. */ |
|
|
5294 | $ac_includes_default |
|
|
5295 | |
|
|
5296 | #include <$ac_header> |
|
|
5297 | _ACEOF |
|
|
5298 | rm -f conftest.$ac_objext |
|
|
5299 | if { (ac_try="$ac_compile" |
|
|
5300 | case "(($ac_try" in |
|
|
5301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5302 | *) ac_try_echo=$ac_try;; |
|
|
5303 | esac |
|
|
5304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5305 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5306 | ac_status=$? |
|
|
5307 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5308 | rm -f conftest.er1 |
|
|
5309 | cat conftest.err >&5 |
|
|
5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5311 | (exit $ac_status); } && { |
|
|
5312 | test -z "$ac_cxx_werror_flag" || |
|
|
5313 | test ! -s conftest.err |
|
|
5314 | } && test -s conftest.$ac_objext; then |
|
|
5315 | eval "$as_ac_Header=yes" |
|
|
5316 | else |
|
|
5317 | echo "$as_me: failed program was:" >&5 |
|
|
5318 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5319 | |
|
|
5320 | eval "$as_ac_Header=no" |
|
|
5321 | fi |
|
|
5322 | |
|
|
5323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5324 | fi |
|
|
5325 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5326 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5327 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5329 | cat >>confdefs.h <<_ACEOF |
|
|
5330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5331 | _ACEOF |
|
|
5332 | |
|
|
5333 | fi |
|
|
5334 | |
|
|
5335 | done |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | |
|
|
5342 | |
|
|
5343 | |
|
|
5344 | |
|
|
5345 | |
|
|
5346 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h |
|
|
5347 | do |
|
|
5348 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5349 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5350 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5352 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5354 | fi |
|
|
5355 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5357 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5358 | else |
|
|
5359 | # Is the header compilable? |
|
|
5360 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5361 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5362 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5363 | /* confdefs.h. */ |
|
|
5364 | _ACEOF |
|
|
5365 | cat confdefs.h >>conftest.$ac_ext |
|
|
5366 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5367 | /* end confdefs.h. */ |
|
|
5368 | $ac_includes_default |
|
|
5369 | #include <$ac_header> |
|
|
5370 | _ACEOF |
|
|
5371 | rm -f conftest.$ac_objext |
|
|
5372 | if { (ac_try="$ac_compile" |
|
|
5373 | case "(($ac_try" in |
|
|
5374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5375 | *) ac_try_echo=$ac_try;; |
|
|
5376 | esac |
|
|
5377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5378 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5379 | ac_status=$? |
|
|
5380 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5381 | rm -f conftest.er1 |
|
|
5382 | cat conftest.err >&5 |
|
|
5383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5384 | (exit $ac_status); } && { |
|
|
5385 | test -z "$ac_cxx_werror_flag" || |
|
|
5386 | test ! -s conftest.err |
|
|
5387 | } && test -s conftest.$ac_objext; then |
|
|
5388 | ac_header_compiler=yes |
|
|
5389 | else |
|
|
5390 | echo "$as_me: failed program was:" >&5 |
|
|
5391 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5392 | |
|
|
5393 | ac_header_compiler=no |
|
|
5394 | fi |
|
|
5395 | |
|
|
5396 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5397 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5398 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5399 | |
|
|
5400 | # Is the header present? |
|
|
5401 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5402 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5403 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5404 | /* confdefs.h. */ |
|
|
5405 | _ACEOF |
|
|
5406 | cat confdefs.h >>conftest.$ac_ext |
|
|
5407 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5408 | /* end confdefs.h. */ |
|
|
5409 | #include <$ac_header> |
|
|
5410 | _ACEOF |
|
|
5411 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5412 | case "(($ac_try" in |
|
|
5413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5414 | *) ac_try_echo=$ac_try;; |
|
|
5415 | esac |
|
|
5416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5417 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5418 | ac_status=$? |
|
|
5419 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5420 | rm -f conftest.er1 |
|
|
5421 | cat conftest.err >&5 |
|
|
5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5423 | (exit $ac_status); } >/dev/null && { |
|
|
5424 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5425 | test ! -s conftest.err |
|
|
5426 | }; then |
|
|
5427 | ac_header_preproc=yes |
|
|
5428 | else |
|
|
5429 | echo "$as_me: failed program was:" >&5 |
|
|
5430 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5431 | |
|
|
5432 | ac_header_preproc=no |
|
|
5433 | fi |
|
|
5434 | |
|
|
5435 | rm -f conftest.err conftest.$ac_ext |
|
|
5436 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5437 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5438 | |
|
|
5439 | # So? What about this header? |
|
|
5440 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5441 | yes:no: ) |
|
|
5442 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5443 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5445 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5446 | ac_header_preproc=yes |
|
|
5447 | ;; |
|
|
5448 | no:yes:* ) |
|
|
5449 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5450 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5451 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5452 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5454 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5455 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5456 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5458 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5459 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5460 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5461 | |
|
|
5462 | ;; |
|
|
5463 | esac |
|
|
5464 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5466 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5468 | else |
|
|
5469 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5470 | fi |
|
|
5471 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5472 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5473 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5474 | |
|
|
5475 | fi |
|
|
5476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5477 | cat >>confdefs.h <<_ACEOF |
|
|
5478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5479 | _ACEOF |
|
|
5480 | |
|
|
5481 | fi |
|
|
5482 | |
|
|
5483 | done |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | |
|
|
5487 | |
|
|
5488 | |
|
|
5489 | |
|
|
5490 | |
|
|
5491 | |
|
|
5492 | |
|
|
5493 | |
|
|
5494 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd |
|
|
5495 | do |
|
|
5496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5497 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5499 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5501 | else |
|
|
5502 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5503 | /* confdefs.h. */ |
|
|
5504 | _ACEOF |
|
|
5505 | cat confdefs.h >>conftest.$ac_ext |
|
|
5506 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5507 | /* end confdefs.h. */ |
|
|
5508 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5510 | #define $ac_func innocuous_$ac_func |
|
|
5511 | |
|
|
5512 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5513 | which can conflict with char $ac_func (); below. |
|
|
5514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5515 | <limits.h> exists even on freestanding compilers. */ |
|
|
5516 | |
|
|
5517 | #ifdef __STDC__ |
|
|
5518 | # include <limits.h> |
|
|
5519 | #else |
|
|
5520 | # include <assert.h> |
|
|
5521 | #endif |
|
|
5522 | |
|
|
5523 | #undef $ac_func |
|
|
5524 | |
|
|
5525 | /* Override any GCC internal prototype to avoid an error. |
|
|
5526 | Use char because int might match the return type of a GCC |
|
|
5527 | builtin and then its argument prototype would still apply. */ |
|
|
5528 | #ifdef __cplusplus |
|
|
5529 | extern "C" |
|
|
5530 | #endif |
|
|
5531 | char $ac_func (); |
|
|
5532 | /* The GNU C library defines this for functions which it implements |
|
|
5533 | to always fail with ENOSYS. Some functions are actually named |
|
|
5534 | something starting with __ and the normal name is an alias. */ |
|
|
5535 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5536 | choke me |
|
|
5537 | #endif |
|
|
5538 | |
|
|
5539 | int |
|
|
5540 | main () |
|
|
5541 | { |
|
|
5542 | return $ac_func (); |
|
|
5543 | ; |
|
|
5544 | return 0; |
|
|
5545 | } |
|
|
5546 | _ACEOF |
|
|
5547 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5548 | if { (ac_try="$ac_link" |
|
|
5549 | case "(($ac_try" in |
|
|
5550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5551 | *) ac_try_echo=$ac_try;; |
|
|
5552 | esac |
|
|
5553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5554 | (eval "$ac_link") 2>conftest.er1 |
|
|
5555 | ac_status=$? |
|
|
5556 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5557 | rm -f conftest.er1 |
|
|
5558 | cat conftest.err >&5 |
|
|
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5560 | (exit $ac_status); } && { |
|
|
5561 | test -z "$ac_cxx_werror_flag" || |
|
|
5562 | test ! -s conftest.err |
|
|
5563 | } && test -s conftest$ac_exeext && |
|
|
5564 | $as_test_x conftest$ac_exeext; then |
|
|
5565 | eval "$as_ac_var=yes" |
|
|
5566 | else |
|
|
5567 | echo "$as_me: failed program was:" >&5 |
|
|
5568 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5569 | |
|
|
5570 | eval "$as_ac_var=no" |
|
|
5571 | fi |
|
|
5572 | |
|
|
5573 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5574 | conftest$ac_exeext conftest.$ac_ext |
|
|
5575 | fi |
|
|
5576 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5577 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5578 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5579 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5580 | cat >>confdefs.h <<_ACEOF |
|
|
5581 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5582 | _ACEOF |
|
|
5583 | |
|
|
5584 | fi |
|
|
5585 | done |
|
|
5586 | |
|
|
5587 | |
|
|
5588 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5589 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5590 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5592 | else |
|
|
5593 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5594 | /* confdefs.h. */ |
|
|
5595 | _ACEOF |
|
|
5596 | cat confdefs.h >>conftest.$ac_ext |
|
|
5597 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5598 | /* end confdefs.h. */ |
|
|
5599 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5601 | #define clock_gettime innocuous_clock_gettime |
|
|
5602 | |
|
|
5603 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5604 | which can conflict with char clock_gettime (); below. |
|
|
5605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5606 | <limits.h> exists even on freestanding compilers. */ |
|
|
5607 | |
|
|
5608 | #ifdef __STDC__ |
|
|
5609 | # include <limits.h> |
|
|
5610 | #else |
|
|
5611 | # include <assert.h> |
|
|
5612 | #endif |
|
|
5613 | |
|
|
5614 | #undef clock_gettime |
|
|
5615 | |
|
|
5616 | /* Override any GCC internal prototype to avoid an error. |
|
|
5617 | Use char because int might match the return type of a GCC |
|
|
5618 | builtin and then its argument prototype would still apply. */ |
|
|
5619 | #ifdef __cplusplus |
|
|
5620 | extern "C" |
|
|
5621 | #endif |
|
|
5622 | char clock_gettime (); |
|
|
5623 | /* The GNU C library defines this for functions which it implements |
|
|
5624 | to always fail with ENOSYS. Some functions are actually named |
|
|
5625 | something starting with __ and the normal name is an alias. */ |
|
|
5626 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5627 | choke me |
|
|
5628 | #endif |
|
|
5629 | |
|
|
5630 | int |
|
|
5631 | main () |
|
|
5632 | { |
|
|
5633 | return clock_gettime (); |
|
|
5634 | ; |
|
|
5635 | return 0; |
|
|
5636 | } |
|
|
5637 | _ACEOF |
|
|
5638 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5639 | if { (ac_try="$ac_link" |
|
|
5640 | case "(($ac_try" in |
|
|
5641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5642 | *) ac_try_echo=$ac_try;; |
|
|
5643 | esac |
|
|
5644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5645 | (eval "$ac_link") 2>conftest.er1 |
|
|
5646 | ac_status=$? |
|
|
5647 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5648 | rm -f conftest.er1 |
|
|
5649 | cat conftest.err >&5 |
|
|
5650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5651 | (exit $ac_status); } && { |
|
|
5652 | test -z "$ac_cxx_werror_flag" || |
|
|
5653 | test ! -s conftest.err |
|
|
5654 | } && test -s conftest$ac_exeext && |
|
|
5655 | $as_test_x conftest$ac_exeext; then |
|
|
5656 | ac_cv_func_clock_gettime=yes |
|
|
5657 | else |
|
|
5658 | echo "$as_me: failed program was:" >&5 |
|
|
5659 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5660 | |
|
|
5661 | ac_cv_func_clock_gettime=no |
|
|
5662 | fi |
|
|
5663 | |
|
|
5664 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5665 | conftest$ac_exeext conftest.$ac_ext |
|
|
5666 | fi |
|
|
5667 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5668 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5669 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5670 | : |
|
|
5671 | else |
|
|
5672 | |
|
|
5673 | if test $(uname) = Linux; then |
|
|
5674 | { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5 |
|
|
5675 | echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; } |
|
|
5676 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5677 | /* confdefs.h. */ |
|
|
5678 | _ACEOF |
|
|
5679 | cat confdefs.h >>conftest.$ac_ext |
|
|
5680 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5681 | /* end confdefs.h. */ |
|
|
5682 | #include <unistd.h> |
|
|
5683 | #include <sys/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 |
|
|
5731 | |
|
|
5732 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5733 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5734 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5736 | else |
|
|
5737 | ac_check_lib_save_LIBS=$LIBS |
|
|
5738 | LIBS="-lrt $LIBS" |
|
|
5739 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5740 | /* confdefs.h. */ |
|
|
5741 | _ACEOF |
|
|
5742 | cat confdefs.h >>conftest.$ac_ext |
|
|
5743 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5744 | /* end confdefs.h. */ |
|
|
5745 | |
|
|
5746 | /* Override any GCC internal prototype to avoid an error. |
|
|
5747 | Use char because int might match the return type of a GCC |
|
|
5748 | builtin and then its argument prototype would still apply. */ |
|
|
5749 | #ifdef __cplusplus |
|
|
5750 | extern "C" |
|
|
5751 | #endif |
|
|
5752 | char clock_gettime (); |
|
|
5753 | int |
|
|
5754 | main () |
|
|
5755 | { |
|
|
5756 | return clock_gettime (); |
|
|
5757 | ; |
|
|
5758 | return 0; |
|
|
5759 | } |
|
|
5760 | _ACEOF |
|
|
5761 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5762 | if { (ac_try="$ac_link" |
|
|
5763 | case "(($ac_try" in |
|
|
5764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5765 | *) ac_try_echo=$ac_try;; |
|
|
5766 | esac |
|
|
5767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5768 | (eval "$ac_link") 2>conftest.er1 |
|
|
5769 | ac_status=$? |
|
|
5770 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5771 | rm -f conftest.er1 |
|
|
5772 | cat conftest.err >&5 |
|
|
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5774 | (exit $ac_status); } && { |
|
|
5775 | test -z "$ac_cxx_werror_flag" || |
|
|
5776 | test ! -s conftest.err |
|
|
5777 | } && test -s conftest$ac_exeext && |
|
|
5778 | $as_test_x conftest$ac_exeext; then |
|
|
5779 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5780 | else |
|
|
5781 | echo "$as_me: failed program was:" >&5 |
|
|
5782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5783 | |
|
|
5784 | ac_cv_lib_rt_clock_gettime=no |
|
|
5785 | fi |
|
|
5786 | |
|
|
5787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5788 | conftest$ac_exeext conftest.$ac_ext |
|
|
5789 | LIBS=$ac_check_lib_save_LIBS |
|
|
5790 | fi |
|
|
5791 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5792 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5793 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5794 | cat >>confdefs.h <<_ACEOF |
|
|
5795 | #define HAVE_LIBRT 1 |
|
|
5796 | _ACEOF |
|
|
5797 | |
|
|
5798 | LIBS="-lrt $LIBS" |
|
|
5799 | |
|
|
5800 | fi |
|
|
5801 | |
|
|
5802 | unset ac_cv_func_clock_gettime |
|
|
5803 | |
|
|
5804 | for ac_func in clock_gettime |
|
|
5805 | do |
|
|
5806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5807 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5809 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5811 | else |
|
|
5812 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5813 | /* confdefs.h. */ |
|
|
5814 | _ACEOF |
|
|
5815 | cat confdefs.h >>conftest.$ac_ext |
|
|
5816 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5817 | /* end confdefs.h. */ |
|
|
5818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5820 | #define $ac_func innocuous_$ac_func |
|
|
5821 | |
|
|
5822 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5823 | which can conflict with char $ac_func (); below. |
|
|
5824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5825 | <limits.h> exists even on freestanding compilers. */ |
|
|
5826 | |
|
|
5827 | #ifdef __STDC__ |
|
|
5828 | # include <limits.h> |
|
|
5829 | #else |
|
|
5830 | # include <assert.h> |
|
|
5831 | #endif |
|
|
5832 | |
|
|
5833 | #undef $ac_func |
|
|
5834 | |
|
|
5835 | /* Override any GCC internal prototype to avoid an error. |
|
|
5836 | Use char because int might match the return type of a GCC |
|
|
5837 | builtin and then its argument prototype would still apply. */ |
|
|
5838 | #ifdef __cplusplus |
|
|
5839 | extern "C" |
|
|
5840 | #endif |
|
|
5841 | char $ac_func (); |
|
|
5842 | /* The GNU C library defines this for functions which it implements |
|
|
5843 | to always fail with ENOSYS. Some functions are actually named |
|
|
5844 | something starting with __ and the normal name is an alias. */ |
|
|
5845 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5846 | choke me |
|
|
5847 | #endif |
|
|
5848 | |
|
|
5849 | int |
|
|
5850 | main () |
|
|
5851 | { |
|
|
5852 | return $ac_func (); |
|
|
5853 | ; |
|
|
5854 | return 0; |
|
|
5855 | } |
|
|
5856 | _ACEOF |
|
|
5857 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5858 | if { (ac_try="$ac_link" |
|
|
5859 | case "(($ac_try" in |
|
|
5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5861 | *) ac_try_echo=$ac_try;; |
|
|
5862 | esac |
|
|
5863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5864 | (eval "$ac_link") 2>conftest.er1 |
|
|
5865 | ac_status=$? |
|
|
5866 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5867 | rm -f conftest.er1 |
|
|
5868 | cat conftest.err >&5 |
|
|
5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5870 | (exit $ac_status); } && { |
|
|
5871 | test -z "$ac_cxx_werror_flag" || |
|
|
5872 | test ! -s conftest.err |
|
|
5873 | } && test -s conftest$ac_exeext && |
|
|
5874 | $as_test_x conftest$ac_exeext; then |
|
|
5875 | eval "$as_ac_var=yes" |
|
|
5876 | else |
|
|
5877 | echo "$as_me: failed program was:" >&5 |
|
|
5878 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5879 | |
|
|
5880 | eval "$as_ac_var=no" |
|
|
5881 | fi |
|
|
5882 | |
|
|
5883 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5884 | conftest$ac_exeext conftest.$ac_ext |
|
|
5885 | fi |
|
|
5886 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5887 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5888 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5889 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5890 | cat >>confdefs.h <<_ACEOF |
|
|
5891 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5892 | _ACEOF |
|
|
5893 | |
|
|
5894 | fi |
|
|
5895 | done |
|
|
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 |
|
|
6155 | |
|
|
6156 | fi |
|
|
6157 | |
|
|
6158 | |
|
|
6159 | |
|
|
6160 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6161 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6162 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6164 | else |
|
|
6165 | ac_check_lib_save_LIBS=$LIBS |
|
|
6166 | LIBS="-lm $LIBS" |
|
|
6167 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6168 | /* confdefs.h. */ |
|
|
6169 | _ACEOF |
|
|
6170 | cat confdefs.h >>conftest.$ac_ext |
|
|
6171 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6172 | /* end confdefs.h. */ |
|
|
6173 | |
|
|
6174 | /* Override any GCC internal prototype to avoid an error. |
|
|
6175 | Use char because int might match the return type of a GCC |
|
|
6176 | builtin and then its argument prototype would still apply. */ |
|
|
6177 | #ifdef __cplusplus |
|
|
6178 | extern "C" |
|
|
6179 | #endif |
|
|
6180 | char ceil (); |
|
|
6181 | int |
|
|
6182 | main () |
|
|
6183 | { |
|
|
6184 | return ceil (); |
|
|
6185 | ; |
|
|
6186 | return 0; |
|
|
6187 | } |
|
|
6188 | _ACEOF |
|
|
6189 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6190 | if { (ac_try="$ac_link" |
|
|
6191 | case "(($ac_try" in |
|
|
6192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6193 | *) ac_try_echo=$ac_try;; |
|
|
6194 | esac |
|
|
6195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6196 | (eval "$ac_link") 2>conftest.er1 |
|
|
6197 | ac_status=$? |
|
|
6198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6199 | rm -f conftest.er1 |
|
|
6200 | cat conftest.err >&5 |
|
|
6201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6202 | (exit $ac_status); } && { |
|
|
6203 | test -z "$ac_cxx_werror_flag" || |
|
|
6204 | test ! -s conftest.err |
|
|
6205 | } && test -s conftest$ac_exeext && |
|
|
6206 | $as_test_x conftest$ac_exeext; then |
|
|
6207 | ac_cv_lib_m_ceil=yes |
|
|
6208 | else |
|
|
6209 | echo "$as_me: failed program was:" >&5 |
|
|
6210 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6211 | |
|
|
6212 | ac_cv_lib_m_ceil=no |
|
|
6213 | fi |
|
|
6214 | |
|
|
6215 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6216 | conftest$ac_exeext conftest.$ac_ext |
|
|
6217 | LIBS=$ac_check_lib_save_LIBS |
|
|
6218 | fi |
|
|
6219 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6220 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6221 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6222 | cat >>confdefs.h <<_ACEOF |
|
|
6223 | #define HAVE_LIBM 1 |
|
|
6224 | _ACEOF |
|
|
6225 | |
|
|
6226 | LIBS="-lm $LIBS" |
|
|
6227 | |
|
|
6228 | fi |
|
|
6229 | |
|
|
6230 | |
4846 | |
6231 | |
4847 | |
6232 | |
4848 | |
6233 | |
4849 | # Extract the first word of "tic", so it can be a program name with args. |
6234 | # Extract the first word of "tic", so it can be a program name with args. |
4850 | set dummy tic; ac_word=$2 |
6235 | set dummy tic; ac_word=$2 |
… | |
… | |
4871 | fi |
6256 | fi |
4872 | done |
6257 | done |
4873 | done |
6258 | done |
4874 | IFS=$as_save_IFS |
6259 | IFS=$as_save_IFS |
4875 | |
6260 | |
|
|
6261 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4876 | ;; |
6262 | ;; |
4877 | esac |
6263 | esac |
4878 | fi |
6264 | fi |
4879 | TIC=$ac_cv_path_TIC |
6265 | TIC=$ac_cv_path_TIC |
4880 | if test -n "$TIC"; then |
6266 | if test -n "$TIC"; then |
… | |
… | |
4883 | else |
6269 | else |
4884 | { echo "$as_me:$LINENO: result: no" >&5 |
6270 | { echo "$as_me:$LINENO: result: no" >&5 |
4885 | echo "${ECHO_T}no" >&6; } |
6271 | echo "${ECHO_T}no" >&6; } |
4886 | fi |
6272 | fi |
4887 | |
6273 | |
4888 | |
|
|
4889 | |
|
|
4890 | |
|
|
4891 | |
|
|
4892 | ac_ext=cpp |
|
|
4893 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4894 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4895 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4896 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4897 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4898 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4899 | if test -z "$CXXCPP"; then |
|
|
4900 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4902 | else |
|
|
4903 | # Double quotes because CXXCPP needs to be expanded |
|
|
4904 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4905 | do |
|
|
4906 | ac_preproc_ok=false |
|
|
4907 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4908 | do |
|
|
4909 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4910 | # with a fresh cross-compiler works. |
|
|
4911 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4912 | # <limits.h> exists even on freestanding compilers. |
|
|
4913 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4914 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4915 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4916 | /* confdefs.h. */ |
|
|
4917 | _ACEOF |
|
|
4918 | cat confdefs.h >>conftest.$ac_ext |
|
|
4919 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4920 | /* end confdefs.h. */ |
|
|
4921 | #ifdef __STDC__ |
|
|
4922 | # include <limits.h> |
|
|
4923 | #else |
|
|
4924 | # include <assert.h> |
|
|
4925 | #endif |
|
|
4926 | Syntax error |
|
|
4927 | _ACEOF |
|
|
4928 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4929 | case "(($ac_try" in |
|
|
4930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4931 | *) ac_try_echo=$ac_try;; |
|
|
4932 | esac |
|
|
4933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4934 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4935 | ac_status=$? |
|
|
4936 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4937 | rm -f conftest.er1 |
|
|
4938 | cat conftest.err >&5 |
|
|
4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4940 | (exit $ac_status); } >/dev/null && { |
|
|
4941 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4942 | test ! -s conftest.err |
|
|
4943 | }; then |
|
|
4944 | : |
|
|
4945 | else |
|
|
4946 | echo "$as_me: failed program was:" >&5 |
|
|
4947 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4948 | |
|
|
4949 | # Broken: fails on valid input. |
|
|
4950 | continue |
|
|
4951 | fi |
|
|
4952 | |
|
|
4953 | rm -f conftest.err conftest.$ac_ext |
|
|
4954 | |
|
|
4955 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4956 | # can be detected and how. |
|
|
4957 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4958 | /* confdefs.h. */ |
|
|
4959 | _ACEOF |
|
|
4960 | cat confdefs.h >>conftest.$ac_ext |
|
|
4961 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4962 | /* end confdefs.h. */ |
|
|
4963 | #include <ac_nonexistent.h> |
|
|
4964 | _ACEOF |
|
|
4965 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4966 | case "(($ac_try" in |
|
|
4967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4968 | *) ac_try_echo=$ac_try;; |
|
|
4969 | esac |
|
|
4970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4972 | ac_status=$? |
|
|
4973 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4974 | rm -f conftest.er1 |
|
|
4975 | cat conftest.err >&5 |
|
|
4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4977 | (exit $ac_status); } >/dev/null && { |
|
|
4978 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4979 | test ! -s conftest.err |
|
|
4980 | }; then |
|
|
4981 | # Broken: success on invalid input. |
|
|
4982 | continue |
|
|
4983 | else |
|
|
4984 | echo "$as_me: failed program was:" >&5 |
|
|
4985 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4986 | |
|
|
4987 | # Passes both tests. |
|
|
4988 | ac_preproc_ok=: |
|
|
4989 | break |
|
|
4990 | fi |
|
|
4991 | |
|
|
4992 | rm -f conftest.err conftest.$ac_ext |
|
|
4993 | |
|
|
4994 | done |
|
|
4995 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4996 | rm -f conftest.err conftest.$ac_ext |
|
|
4997 | if $ac_preproc_ok; then |
|
|
4998 | break |
|
|
4999 | fi |
|
|
5000 | |
|
|
5001 | done |
|
|
5002 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5003 | |
|
|
5004 | fi |
|
|
5005 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5006 | else |
|
|
5007 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5008 | fi |
|
|
5009 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5010 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5011 | ac_preproc_ok=false |
|
|
5012 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5013 | do |
|
|
5014 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5015 | # with a fresh cross-compiler works. |
|
|
5016 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5017 | # <limits.h> exists even on freestanding compilers. |
|
|
5018 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5019 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5020 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5021 | /* confdefs.h. */ |
|
|
5022 | _ACEOF |
|
|
5023 | cat confdefs.h >>conftest.$ac_ext |
|
|
5024 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5025 | /* end confdefs.h. */ |
|
|
5026 | #ifdef __STDC__ |
|
|
5027 | # include <limits.h> |
|
|
5028 | #else |
|
|
5029 | # include <assert.h> |
|
|
5030 | #endif |
|
|
5031 | Syntax error |
|
|
5032 | _ACEOF |
|
|
5033 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5034 | case "(($ac_try" in |
|
|
5035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5036 | *) ac_try_echo=$ac_try;; |
|
|
5037 | esac |
|
|
5038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5039 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5040 | ac_status=$? |
|
|
5041 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5042 | rm -f conftest.er1 |
|
|
5043 | cat conftest.err >&5 |
|
|
5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5045 | (exit $ac_status); } >/dev/null && { |
|
|
5046 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5047 | test ! -s conftest.err |
|
|
5048 | }; then |
|
|
5049 | : |
|
|
5050 | else |
|
|
5051 | echo "$as_me: failed program was:" >&5 |
|
|
5052 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5053 | |
|
|
5054 | # Broken: fails on valid input. |
|
|
5055 | continue |
|
|
5056 | fi |
|
|
5057 | |
|
|
5058 | rm -f conftest.err conftest.$ac_ext |
|
|
5059 | |
|
|
5060 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5061 | # can be detected and how. |
|
|
5062 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5063 | /* confdefs.h. */ |
|
|
5064 | _ACEOF |
|
|
5065 | cat confdefs.h >>conftest.$ac_ext |
|
|
5066 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5067 | /* end confdefs.h. */ |
|
|
5068 | #include <ac_nonexistent.h> |
|
|
5069 | _ACEOF |
|
|
5070 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5071 | case "(($ac_try" in |
|
|
5072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5073 | *) ac_try_echo=$ac_try;; |
|
|
5074 | esac |
|
|
5075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5077 | ac_status=$? |
|
|
5078 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5079 | rm -f conftest.er1 |
|
|
5080 | cat conftest.err >&5 |
|
|
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5082 | (exit $ac_status); } >/dev/null && { |
|
|
5083 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5084 | test ! -s conftest.err |
|
|
5085 | }; then |
|
|
5086 | # Broken: success on invalid input. |
|
|
5087 | continue |
|
|
5088 | else |
|
|
5089 | echo "$as_me: failed program was:" >&5 |
|
|
5090 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5091 | |
|
|
5092 | # Passes both tests. |
|
|
5093 | ac_preproc_ok=: |
|
|
5094 | break |
|
|
5095 | fi |
|
|
5096 | |
|
|
5097 | rm -f conftest.err conftest.$ac_ext |
|
|
5098 | |
|
|
5099 | done |
|
|
5100 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5101 | rm -f conftest.err conftest.$ac_ext |
|
|
5102 | if $ac_preproc_ok; then |
|
|
5103 | : |
|
|
5104 | else |
|
|
5105 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5106 | See \`config.log' for more details." >&5 |
|
|
5107 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5108 | See \`config.log' for more details." >&2;} |
|
|
5109 | { (exit 1); exit 1; }; } |
|
|
5110 | fi |
|
|
5111 | |
|
|
5112 | ac_ext=cpp |
|
|
5113 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5114 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5115 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5116 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5117 | |
6274 | |
5118 | |
6275 | |
5119 | { echo "$as_me:$LINENO: checking for X" >&5 |
6276 | { echo "$as_me:$LINENO: checking for X" >&5 |
5120 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6277 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5121 | |
6278 | |
… | |
… | |
6507 | echo "${ECHO_T}no" >&6; } |
7664 | echo "${ECHO_T}no" >&6; } |
6508 | fi |
7665 | fi |
6509 | fi |
7666 | fi |
6510 | fi |
7667 | fi |
6511 | |
7668 | |
6512 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6513 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6514 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6516 | else |
|
|
6517 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6518 | /* confdefs.h. */ |
|
|
6519 | _ACEOF |
|
|
6520 | cat confdefs.h >>conftest.$ac_ext |
|
|
6521 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6522 | /* end confdefs.h. */ |
|
|
6523 | #include <sys/types.h> |
|
|
6524 | #include <sys/wait.h> |
|
|
6525 | #ifndef WEXITSTATUS |
|
|
6526 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6527 | #endif |
|
|
6528 | #ifndef WIFEXITED |
|
|
6529 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6530 | #endif |
|
|
6531 | |
|
|
6532 | int |
|
|
6533 | main () |
|
|
6534 | { |
|
|
6535 | int s; |
|
|
6536 | wait (&s); |
|
|
6537 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6538 | ; |
|
|
6539 | return 0; |
|
|
6540 | } |
|
|
6541 | _ACEOF |
|
|
6542 | rm -f conftest.$ac_objext |
|
|
6543 | if { (ac_try="$ac_compile" |
|
|
6544 | case "(($ac_try" in |
|
|
6545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6546 | *) ac_try_echo=$ac_try;; |
|
|
6547 | esac |
|
|
6548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6549 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6550 | ac_status=$? |
|
|
6551 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6552 | rm -f conftest.er1 |
|
|
6553 | cat conftest.err >&5 |
|
|
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6555 | (exit $ac_status); } && { |
|
|
6556 | test -z "$ac_cxx_werror_flag" || |
|
|
6557 | test ! -s conftest.err |
|
|
6558 | } && test -s conftest.$ac_objext; then |
|
|
6559 | ac_cv_header_sys_wait_h=yes |
|
|
6560 | else |
|
|
6561 | echo "$as_me: failed program was:" >&5 |
|
|
6562 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6563 | |
|
|
6564 | ac_cv_header_sys_wait_h=no |
|
|
6565 | fi |
|
|
6566 | |
|
|
6567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6568 | fi |
|
|
6569 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6570 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6571 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6572 | |
|
|
6573 | cat >>confdefs.h <<\_ACEOF |
|
|
6574 | #define HAVE_SYS_WAIT_H 1 |
|
|
6575 | _ACEOF |
|
|
6576 | |
|
|
6577 | fi |
|
|
6578 | |
|
|
6579 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6580 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6581 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6583 | else |
|
|
6584 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6585 | /* confdefs.h. */ |
|
|
6586 | _ACEOF |
|
|
6587 | cat confdefs.h >>conftest.$ac_ext |
|
|
6588 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6589 | /* end confdefs.h. */ |
|
|
6590 | #include <stdlib.h> |
|
|
6591 | #include <stdarg.h> |
|
|
6592 | #include <string.h> |
|
|
6593 | #include <float.h> |
|
|
6594 | |
|
|
6595 | int |
|
|
6596 | main () |
|
|
6597 | { |
|
|
6598 | |
|
|
6599 | ; |
|
|
6600 | return 0; |
|
|
6601 | } |
|
|
6602 | _ACEOF |
|
|
6603 | rm -f conftest.$ac_objext |
|
|
6604 | if { (ac_try="$ac_compile" |
|
|
6605 | case "(($ac_try" in |
|
|
6606 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6607 | *) ac_try_echo=$ac_try;; |
|
|
6608 | esac |
|
|
6609 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6610 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6611 | ac_status=$? |
|
|
6612 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6613 | rm -f conftest.er1 |
|
|
6614 | cat conftest.err >&5 |
|
|
6615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6616 | (exit $ac_status); } && { |
|
|
6617 | test -z "$ac_cxx_werror_flag" || |
|
|
6618 | test ! -s conftest.err |
|
|
6619 | } && test -s conftest.$ac_objext; then |
|
|
6620 | ac_cv_header_stdc=yes |
|
|
6621 | else |
|
|
6622 | echo "$as_me: failed program was:" >&5 |
|
|
6623 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6624 | |
|
|
6625 | ac_cv_header_stdc=no |
|
|
6626 | fi |
|
|
6627 | |
|
|
6628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6629 | |
|
|
6630 | if test $ac_cv_header_stdc = yes; then |
|
|
6631 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
6632 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6633 | /* confdefs.h. */ |
|
|
6634 | _ACEOF |
|
|
6635 | cat confdefs.h >>conftest.$ac_ext |
|
|
6636 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6637 | /* end confdefs.h. */ |
|
|
6638 | #include <string.h> |
|
|
6639 | |
|
|
6640 | _ACEOF |
|
|
6641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6642 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
6643 | : |
|
|
6644 | else |
|
|
6645 | ac_cv_header_stdc=no |
|
|
6646 | fi |
|
|
6647 | rm -f conftest* |
|
|
6648 | |
|
|
6649 | fi |
|
|
6650 | |
|
|
6651 | if test $ac_cv_header_stdc = yes; then |
|
|
6652 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
6653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6654 | /* confdefs.h. */ |
|
|
6655 | _ACEOF |
|
|
6656 | cat confdefs.h >>conftest.$ac_ext |
|
|
6657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6658 | /* end confdefs.h. */ |
|
|
6659 | #include <stdlib.h> |
|
|
6660 | |
|
|
6661 | _ACEOF |
|
|
6662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6663 | $EGREP "free" >/dev/null 2>&1; then |
|
|
6664 | : |
|
|
6665 | else |
|
|
6666 | ac_cv_header_stdc=no |
|
|
6667 | fi |
|
|
6668 | rm -f conftest* |
|
|
6669 | |
|
|
6670 | fi |
|
|
6671 | |
|
|
6672 | if test $ac_cv_header_stdc = yes; then |
|
|
6673 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
6674 | if test "$cross_compiling" = yes; then |
|
|
6675 | : |
|
|
6676 | else |
|
|
6677 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6678 | /* confdefs.h. */ |
|
|
6679 | _ACEOF |
|
|
6680 | cat confdefs.h >>conftest.$ac_ext |
|
|
6681 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6682 | /* end confdefs.h. */ |
|
|
6683 | #include <ctype.h> |
|
|
6684 | #include <stdlib.h> |
|
|
6685 | #if ((' ' & 0x0FF) == 0x020) |
|
|
6686 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
6687 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
6688 | #else |
|
|
6689 | # define ISLOWER(c) \ |
|
|
6690 | (('a' <= (c) && (c) <= 'i') \ |
|
|
6691 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
6692 | || ('s' <= (c) && (c) <= 'z')) |
|
|
6693 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
6694 | #endif |
|
|
6695 | |
|
|
6696 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
6697 | int |
|
|
6698 | main () |
|
|
6699 | { |
|
|
6700 | int i; |
|
|
6701 | for (i = 0; i < 256; i++) |
|
|
6702 | if (XOR (islower (i), ISLOWER (i)) |
|
|
6703 | || toupper (i) != TOUPPER (i)) |
|
|
6704 | return 2; |
|
|
6705 | return 0; |
|
|
6706 | } |
|
|
6707 | _ACEOF |
|
|
6708 | rm -f conftest$ac_exeext |
|
|
6709 | if { (ac_try="$ac_link" |
|
|
6710 | case "(($ac_try" in |
|
|
6711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6712 | *) ac_try_echo=$ac_try;; |
|
|
6713 | esac |
|
|
6714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6715 | (eval "$ac_link") 2>&5 |
|
|
6716 | ac_status=$? |
|
|
6717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6718 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
6719 | { (case "(($ac_try" in |
|
|
6720 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6721 | *) ac_try_echo=$ac_try;; |
|
|
6722 | esac |
|
|
6723 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6724 | (eval "$ac_try") 2>&5 |
|
|
6725 | ac_status=$? |
|
|
6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6727 | (exit $ac_status); }; }; then |
|
|
6728 | : |
|
|
6729 | else |
|
|
6730 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
6731 | echo "$as_me: failed program was:" >&5 |
|
|
6732 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6733 | |
|
|
6734 | ( exit $ac_status ) |
|
|
6735 | ac_cv_header_stdc=no |
|
|
6736 | fi |
|
|
6737 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
6738 | fi |
|
|
6739 | |
|
|
6740 | |
|
|
6741 | fi |
|
|
6742 | fi |
|
|
6743 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
6744 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
6745 | if test $ac_cv_header_stdc = yes; then |
|
|
6746 | |
|
|
6747 | cat >>confdefs.h <<\_ACEOF |
|
|
6748 | #define STDC_HEADERS 1 |
|
|
6749 | _ACEOF |
|
|
6750 | |
|
|
6751 | fi |
|
|
6752 | |
|
|
6753 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
6754 | |
|
|
6755 | |
|
|
6756 | |
|
|
6757 | |
|
|
6758 | |
|
|
6759 | |
|
|
6760 | |
|
|
6761 | |
|
|
6762 | |
|
|
6763 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
6764 | inttypes.h stdint.h unistd.h |
|
|
6765 | do |
|
|
6766 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6767 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
6768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
6769 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6771 | else |
|
|
6772 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6773 | /* confdefs.h. */ |
|
|
6774 | _ACEOF |
|
|
6775 | cat confdefs.h >>conftest.$ac_ext |
|
|
6776 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6777 | /* end confdefs.h. */ |
|
|
6778 | $ac_includes_default |
|
|
6779 | |
|
|
6780 | #include <$ac_header> |
|
|
6781 | _ACEOF |
|
|
6782 | rm -f conftest.$ac_objext |
|
|
6783 | if { (ac_try="$ac_compile" |
|
|
6784 | case "(($ac_try" in |
|
|
6785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6786 | *) ac_try_echo=$ac_try;; |
|
|
6787 | esac |
|
|
6788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6789 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6790 | ac_status=$? |
|
|
6791 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6792 | rm -f conftest.er1 |
|
|
6793 | cat conftest.err >&5 |
|
|
6794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6795 | (exit $ac_status); } && { |
|
|
6796 | test -z "$ac_cxx_werror_flag" || |
|
|
6797 | test ! -s conftest.err |
|
|
6798 | } && test -s conftest.$ac_objext; then |
|
|
6799 | eval "$as_ac_Header=yes" |
|
|
6800 | else |
|
|
6801 | echo "$as_me: failed program was:" >&5 |
|
|
6802 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6803 | |
|
|
6804 | eval "$as_ac_Header=no" |
|
|
6805 | fi |
|
|
6806 | |
|
|
6807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6808 | fi |
|
|
6809 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
6810 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6811 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6812 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
6813 | cat >>confdefs.h <<_ACEOF |
|
|
6814 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6815 | _ACEOF |
|
|
6816 | |
|
|
6817 | fi |
|
|
6818 | |
|
|
6819 | done |
|
|
6820 | |
|
|
6821 | |
|
|
6822 | |
|
|
6823 | |
|
|
6824 | |
|
|
6825 | |
|
|
6826 | |
|
|
6827 | |
|
|
6828 | |
|
|
6829 | |
|
|
6830 | |
|
|
6831 | |
|
|
6832 | |
7669 | |
6833 | |
7670 | |
6834 | |
7671 | |
6835 | |
7672 | |
6836 | |
7673 | |
6837 | |
7674 | |
6838 | |
7675 | |
6839 | for ac_header in \ |
7676 | for ac_header in \ |
6840 | assert.h \ |
|
|
6841 | fcntl.h \ |
|
|
6842 | stdarg.h \ |
|
|
6843 | stdlib.h \ |
|
|
6844 | string.h \ |
|
|
6845 | termios.h \ |
|
|
6846 | unistd.h \ |
|
|
6847 | sys/byteorder.h \ |
7677 | sys/byteorder.h \ |
6848 | sys/ioctl.h \ |
7678 | sys/ioctl.h \ |
6849 | sys/select.h \ |
|
|
6850 | sys/sockio.h \ |
7679 | sys/sockio.h \ |
6851 | sys/strredir.h \ |
7680 | sys/strredir.h \ |
6852 | sys/time.h \ |
|
|
6853 | stdint.h \ |
7681 | stdint.h \ |
6854 | wchar.h \ |
7682 | wchar.h \ |
6855 | cwchar \ |
7683 | cwchar \ |
6856 | clocale \ |
|
|
6857 | |
7684 | |
6858 | do |
7685 | do |
6859 | 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` |
6860 | 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 |
6861 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7688 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
6992 | fi |
7819 | fi |
6993 | |
7820 | |
6994 | done |
7821 | done |
6995 | |
7822 | |
6996 | |
7823 | |
6997 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
6998 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
6999 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7001 | else |
|
|
7002 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7003 | /* confdefs.h. */ |
|
|
7004 | _ACEOF |
|
|
7005 | cat confdefs.h >>conftest.$ac_ext |
|
|
7006 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7007 | /* end confdefs.h. */ |
|
|
7008 | #include <sys/types.h> |
|
|
7009 | #include <sys/time.h> |
|
|
7010 | #include <time.h> |
|
|
7011 | |
|
|
7012 | int |
|
|
7013 | main () |
|
|
7014 | { |
|
|
7015 | if ((struct tm *) 0) |
|
|
7016 | return 0; |
|
|
7017 | ; |
|
|
7018 | return 0; |
|
|
7019 | } |
|
|
7020 | _ACEOF |
|
|
7021 | rm -f conftest.$ac_objext |
|
|
7022 | if { (ac_try="$ac_compile" |
|
|
7023 | case "(($ac_try" in |
|
|
7024 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7025 | *) ac_try_echo=$ac_try;; |
|
|
7026 | esac |
|
|
7027 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7028 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7029 | ac_status=$? |
|
|
7030 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7031 | rm -f conftest.er1 |
|
|
7032 | cat conftest.err >&5 |
|
|
7033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7034 | (exit $ac_status); } && { |
|
|
7035 | test -z "$ac_cxx_werror_flag" || |
|
|
7036 | test ! -s conftest.err |
|
|
7037 | } && test -s conftest.$ac_objext; then |
|
|
7038 | ac_cv_header_time=yes |
|
|
7039 | else |
|
|
7040 | echo "$as_me: failed program was:" >&5 |
|
|
7041 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7042 | |
|
|
7043 | ac_cv_header_time=no |
|
|
7044 | fi |
|
|
7045 | |
|
|
7046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7047 | fi |
|
|
7048 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7049 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7050 | if test $ac_cv_header_time = yes; then |
|
|
7051 | |
|
|
7052 | cat >>confdefs.h <<\_ACEOF |
|
|
7053 | #define TIME_WITH_SYS_TIME 1 |
|
|
7054 | _ACEOF |
|
|
7055 | |
|
|
7056 | fi |
|
|
7057 | |
|
|
7058 | |
|
|
7059 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7060 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7061 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7063 | else |
|
|
7064 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7065 | /* confdefs.h. */ |
|
|
7066 | _ACEOF |
|
|
7067 | cat confdefs.h >>conftest.$ac_ext |
|
|
7068 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7069 | /* end confdefs.h. */ |
|
|
7070 | #include <stdio.h> |
|
|
7071 | #include <sys/ioctl.h> |
|
|
7072 | #ifdef HAVE_TERMIOS_H |
|
|
7073 | #include <termios.h> |
|
|
7074 | #endif |
|
|
7075 | int |
|
|
7076 | main () |
|
|
7077 | { |
|
|
7078 | int a = ECHO; |
|
|
7079 | ; |
|
|
7080 | return 0; |
|
|
7081 | } |
|
|
7082 | _ACEOF |
|
|
7083 | rm -f conftest.$ac_objext |
|
|
7084 | if { (ac_try="$ac_compile" |
|
|
7085 | case "(($ac_try" in |
|
|
7086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7087 | *) ac_try_echo=$ac_try;; |
|
|
7088 | esac |
|
|
7089 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7090 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7091 | ac_status=$? |
|
|
7092 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7093 | rm -f conftest.er1 |
|
|
7094 | cat conftest.err >&5 |
|
|
7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7096 | (exit $ac_status); } && { |
|
|
7097 | test -z "$ac_cxx_werror_flag" || |
|
|
7098 | test ! -s conftest.err |
|
|
7099 | } && test -s conftest.$ac_objext; then |
|
|
7100 | rxvt_cv_header_sysioctl=yes |
|
|
7101 | else |
|
|
7102 | echo "$as_me: failed program was:" >&5 |
|
|
7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7104 | |
|
|
7105 | rxvt_cv_header_sysioctl=no |
|
|
7106 | fi |
|
|
7107 | |
|
|
7108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7109 | fi |
|
|
7110 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7111 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7112 | |
|
|
7113 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7824 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7114 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7825 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7115 | if test "${rxvt_cv_xpointer+set}" = set; then |
7826 | if test "${rxvt_cv_xpointer+set}" = set; then |
7116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7117 | else |
7828 | else |
… | |
… | |
7167 | |
7878 | |
7168 | fi |
7879 | fi |
7169 | |
7880 | |
7170 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7881 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7171 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7882 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7172 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7883 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then |
7173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7174 | else |
7885 | else |
7175 | cat >conftest.$ac_ext <<_ACEOF |
7886 | cat >conftest.$ac_ext <<_ACEOF |
7176 | /* confdefs.h. */ |
7887 | /* confdefs.h. */ |
7177 | _ACEOF |
7888 | _ACEOF |
… | |
… | |
7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7209 | (exit $ac_status); } && { |
7920 | (exit $ac_status); } && { |
7210 | test -z "$ac_cxx_werror_flag" || |
7921 | test -z "$ac_cxx_werror_flag" || |
7211 | test ! -s conftest.err |
7922 | test ! -s conftest.err |
7212 | } && test -s conftest.$ac_objext; then |
7923 | } && test -s conftest.$ac_objext; then |
7213 | rxvt_xlib_illegal_access=yes |
7924 | rxvt_cv_xlib_illegal_access=yes |
7214 | else |
7925 | else |
7215 | echo "$as_me: failed program was:" >&5 |
7926 | echo "$as_me: failed program was:" >&5 |
7216 | sed 's/^/| /' conftest.$ac_ext >&5 |
7927 | sed 's/^/| /' conftest.$ac_ext >&5 |
7217 | |
7928 | |
7218 | rxvt_xlib_illegal_access=no |
7929 | rxvt_cv_xlib_illegal_access=no |
7219 | |
7930 | |
7220 | fi |
7931 | fi |
7221 | |
7932 | |
7222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7223 | fi |
7934 | fi |
7224 | { echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 |
7935 | { echo "$as_me:$LINENO: result: $rxvt_cv_xlib_illegal_access" >&5 |
7225 | echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } |
7936 | echo "${ECHO_T}$rxvt_cv_xlib_illegal_access" >&6; } |
7226 | if test x$rxvt_xlib_illegal_access = xyes; then |
7937 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
7227 | |
7938 | |
7228 | cat >>confdefs.h <<\_ACEOF |
7939 | cat >>confdefs.h <<\_ACEOF |
7229 | #define XLIB_ILLEGAL_ACCESS 1 |
7940 | #define XLIB_ILLEGAL_ACCESS 1 |
7230 | _ACEOF |
7941 | _ACEOF |
7231 | |
7942 | |
7232 | fi |
7943 | fi |
7233 | |
|
|
7234 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7235 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7236 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7238 | else |
|
|
7239 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7240 | /* confdefs.h. */ |
|
|
7241 | _ACEOF |
|
|
7242 | cat confdefs.h >>conftest.$ac_ext |
|
|
7243 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7244 | /* end confdefs.h. */ |
|
|
7245 | |
|
|
7246 | int |
|
|
7247 | main () |
|
|
7248 | { |
|
|
7249 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7250 | #ifndef __cplusplus |
|
|
7251 | /* Ultrix mips cc rejects this. */ |
|
|
7252 | typedef int charset[2]; |
|
|
7253 | const charset cs; |
|
|
7254 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7255 | char const *const *pcpcc; |
|
|
7256 | char **ppc; |
|
|
7257 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7258 | struct point {int x, y;}; |
|
|
7259 | static struct point const zero = {0,0}; |
|
|
7260 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7261 | It does not let you subtract one const X* pointer from another in |
|
|
7262 | an arm of an if-expression whose if-part is not a constant |
|
|
7263 | expression */ |
|
|
7264 | const char *g = "string"; |
|
|
7265 | pcpcc = &g + (g ? g-g : 0); |
|
|
7266 | /* HPUX 7.0 cc rejects these. */ |
|
|
7267 | ++pcpcc; |
|
|
7268 | ppc = (char**) pcpcc; |
|
|
7269 | pcpcc = (char const *const *) ppc; |
|
|
7270 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7271 | char *t; |
|
|
7272 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7273 | |
|
|
7274 | *t++ = 0; |
|
|
7275 | if (s) return 0; |
|
|
7276 | } |
|
|
7277 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7278 | int x[] = {25, 17}; |
|
|
7279 | const int *foo = &x[0]; |
|
|
7280 | ++foo; |
|
|
7281 | } |
|
|
7282 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7283 | typedef const int *iptr; |
|
|
7284 | iptr p = 0; |
|
|
7285 | ++p; |
|
|
7286 | } |
|
|
7287 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7288 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7289 | struct s { int j; const int *ap[3]; }; |
|
|
7290 | struct s *b; b->j = 5; |
|
|
7291 | } |
|
|
7292 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7293 | const int foo = 10; |
|
|
7294 | if (!foo) return 0; |
|
|
7295 | } |
|
|
7296 | return !cs[0] && !zero.x; |
|
|
7297 | #endif |
|
|
7298 | |
|
|
7299 | ; |
|
|
7300 | return 0; |
|
|
7301 | } |
|
|
7302 | _ACEOF |
|
|
7303 | rm -f conftest.$ac_objext |
|
|
7304 | if { (ac_try="$ac_compile" |
|
|
7305 | case "(($ac_try" in |
|
|
7306 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7307 | *) ac_try_echo=$ac_try;; |
|
|
7308 | esac |
|
|
7309 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7310 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7311 | ac_status=$? |
|
|
7312 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7313 | rm -f conftest.er1 |
|
|
7314 | cat conftest.err >&5 |
|
|
7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7316 | (exit $ac_status); } && { |
|
|
7317 | test -z "$ac_cxx_werror_flag" || |
|
|
7318 | test ! -s conftest.err |
|
|
7319 | } && test -s conftest.$ac_objext; then |
|
|
7320 | ac_cv_c_const=yes |
|
|
7321 | else |
|
|
7322 | echo "$as_me: failed program was:" >&5 |
|
|
7323 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7324 | |
|
|
7325 | ac_cv_c_const=no |
|
|
7326 | fi |
|
|
7327 | |
|
|
7328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7329 | fi |
|
|
7330 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7331 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7332 | if test $ac_cv_c_const = no; then |
|
|
7333 | |
|
|
7334 | cat >>confdefs.h <<\_ACEOF |
|
|
7335 | #define const |
|
|
7336 | _ACEOF |
|
|
7337 | |
|
|
7338 | fi |
|
|
7339 | |
|
|
7340 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7341 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7342 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7344 | else |
|
|
7345 | ac_cv_c_inline=no |
|
|
7346 | for ac_kw in inline __inline__ __inline; do |
|
|
7347 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7348 | /* confdefs.h. */ |
|
|
7349 | _ACEOF |
|
|
7350 | cat confdefs.h >>conftest.$ac_ext |
|
|
7351 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7352 | /* end confdefs.h. */ |
|
|
7353 | #ifndef __cplusplus |
|
|
7354 | typedef int foo_t; |
|
|
7355 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7356 | $ac_kw foo_t foo () {return 0; } |
|
|
7357 | #endif |
|
|
7358 | |
|
|
7359 | _ACEOF |
|
|
7360 | rm -f conftest.$ac_objext |
|
|
7361 | if { (ac_try="$ac_compile" |
|
|
7362 | case "(($ac_try" in |
|
|
7363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7364 | *) ac_try_echo=$ac_try;; |
|
|
7365 | esac |
|
|
7366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7367 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7368 | ac_status=$? |
|
|
7369 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7370 | rm -f conftest.er1 |
|
|
7371 | cat conftest.err >&5 |
|
|
7372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7373 | (exit $ac_status); } && { |
|
|
7374 | test -z "$ac_cxx_werror_flag" || |
|
|
7375 | test ! -s conftest.err |
|
|
7376 | } && test -s conftest.$ac_objext; then |
|
|
7377 | ac_cv_c_inline=$ac_kw |
|
|
7378 | else |
|
|
7379 | echo "$as_me: failed program was:" >&5 |
|
|
7380 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7381 | |
|
|
7382 | |
|
|
7383 | fi |
|
|
7384 | |
|
|
7385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7386 | test "$ac_cv_c_inline" != no && break |
|
|
7387 | done |
|
|
7388 | |
|
|
7389 | fi |
|
|
7390 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7391 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7392 | |
|
|
7393 | |
|
|
7394 | case $ac_cv_c_inline in |
|
|
7395 | inline | yes) ;; |
|
|
7396 | *) |
|
|
7397 | case $ac_cv_c_inline in |
|
|
7398 | no) ac_val=;; |
|
|
7399 | *) ac_val=$ac_cv_c_inline;; |
|
|
7400 | esac |
|
|
7401 | cat >>confdefs.h <<_ACEOF |
|
|
7402 | #ifndef __cplusplus |
|
|
7403 | #define inline $ac_val |
|
|
7404 | #endif |
|
|
7405 | _ACEOF |
|
|
7406 | ;; |
|
|
7407 | esac |
|
|
7408 | |
|
|
7409 | |
|
|
7410 | |
7944 | |
7411 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7945 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7412 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7946 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7413 | if test "${ac_cv_type_mode_t+set}" = set; then |
7947 | if test "${ac_cv_type_mode_t+set}" = set; then |
7414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7571 | _ACEOF |
8105 | _ACEOF |
7572 | |
8106 | |
7573 | fi |
8107 | fi |
7574 | |
8108 | |
7575 | |
8109 | |
7576 | { echo "$as_me:$LINENO: checking for short" >&5 |
8110 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7577 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8111 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7578 | if test "${ac_cv_type_short+set}" = set; then |
8112 | if test "${ac_cv_c_int16_t+set}" = set; then |
7579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7580 | 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 |
7581 | cat >conftest.$ac_ext <<_ACEOF |
8118 | cat >conftest.$ac_ext <<_ACEOF |
7582 | /* confdefs.h. */ |
8119 | /* confdefs.h. */ |
7583 | _ACEOF |
8120 | _ACEOF |
7584 | cat confdefs.h >>conftest.$ac_ext |
8121 | cat confdefs.h >>conftest.$ac_ext |
7585 | cat >>conftest.$ac_ext <<_ACEOF |
8122 | cat >>conftest.$ac_ext <<_ACEOF |
7586 | /* end confdefs.h. */ |
8123 | /* end confdefs.h. */ |
7587 | $ac_includes_default |
8124 | $ac_includes_default |
7588 | typedef short ac__type_new_; |
|
|
7589 | int |
8125 | int |
7590 | main () |
8126 | main () |
7591 | { |
8127 | { |
7592 | if ((ac__type_new_ *) 0) |
8128 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7593 | return 0; |
8129 | test_array [0] = 0 |
7594 | if (sizeof (ac__type_new_)) |
8130 | |
7595 | return 0; |
|
|
7596 | ; |
8131 | ; |
7597 | return 0; |
8132 | return 0; |
7598 | } |
8133 | } |
7599 | _ACEOF |
8134 | _ACEOF |
7600 | rm -f conftest.$ac_objext |
8135 | rm -f conftest.$ac_objext |
… | |
… | |
7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7613 | (exit $ac_status); } && { |
8148 | (exit $ac_status); } && { |
7614 | test -z "$ac_cxx_werror_flag" || |
8149 | test -z "$ac_cxx_werror_flag" || |
7615 | test ! -s conftest.err |
8150 | test ! -s conftest.err |
7616 | } && test -s conftest.$ac_objext; then |
8151 | } && test -s conftest.$ac_objext; then |
7617 | ac_cv_type_short=yes |
|
|
7618 | else |
|
|
7619 | echo "$as_me: failed program was:" >&5 |
|
|
7620 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7621 | |
|
|
7622 | ac_cv_type_short=no |
|
|
7623 | fi |
|
|
7624 | |
|
|
7625 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7626 | fi |
|
|
7627 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
7628 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
7629 | |
|
|
7630 | # The cast to long int works around a bug in the HP C Compiler |
|
|
7631 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
7632 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
7633 | # This bug is HP SR number 8606223364. |
|
|
7634 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
7635 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
7636 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
7637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7638 | else |
|
|
7639 | if test "$cross_compiling" = yes; then |
|
|
7640 | # Depending upon the size, compute the lo and hi bounds. |
|
|
7641 | cat >conftest.$ac_ext <<_ACEOF |
8152 | cat >conftest.$ac_ext <<_ACEOF |
7642 | /* confdefs.h. */ |
8153 | /* confdefs.h. */ |
7643 | _ACEOF |
8154 | _ACEOF |
7644 | cat confdefs.h >>conftest.$ac_ext |
8155 | cat confdefs.h >>conftest.$ac_ext |
7645 | cat >>conftest.$ac_ext <<_ACEOF |
8156 | cat >>conftest.$ac_ext <<_ACEOF |
7646 | /* end confdefs.h. */ |
8157 | /* end confdefs.h. */ |
7647 | $ac_includes_default |
8158 | $ac_includes_default |
7648 | typedef short ac__type_sizeof_; |
|
|
7649 | int |
8159 | int |
7650 | main () |
8160 | main () |
7651 | { |
8161 | { |
7652 | 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))]; |
7653 | test_array [0] = 0 |
8164 | test_array [0] = 0 |
7654 | |
8165 | |
7655 | ; |
8166 | ; |
7656 | return 0; |
8167 | return 0; |
7657 | } |
8168 | } |
… | |
… | |
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7672 | (exit $ac_status); } && { |
8183 | (exit $ac_status); } && { |
7673 | test -z "$ac_cxx_werror_flag" || |
8184 | test -z "$ac_cxx_werror_flag" || |
7674 | test ! -s conftest.err |
8185 | test ! -s conftest.err |
7675 | } && test -s conftest.$ac_objext; then |
8186 | } && test -s conftest.$ac_objext; then |
7676 | ac_lo=0 ac_mid=0 |
8187 | : |
7677 | 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 |
7678 | cat >conftest.$ac_ext <<_ACEOF |
8232 | cat >conftest.$ac_ext <<_ACEOF |
7679 | /* confdefs.h. */ |
8233 | /* confdefs.h. */ |
7680 | _ACEOF |
8234 | _ACEOF |
7681 | cat confdefs.h >>conftest.$ac_ext |
8235 | cat confdefs.h >>conftest.$ac_ext |
7682 | cat >>conftest.$ac_ext <<_ACEOF |
8236 | cat >>conftest.$ac_ext <<_ACEOF |
7683 | /* end confdefs.h. */ |
8237 | /* end confdefs.h. */ |
7684 | $ac_includes_default |
8238 | $ac_includes_default |
7685 | typedef short ac__type_sizeof_; |
|
|
7686 | int |
8239 | int |
7687 | main () |
8240 | main () |
7688 | { |
8241 | { |
7689 | 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)]; |
7690 | test_array [0] = 0 |
8243 | test_array [0] = 0 |
7691 | |
8244 | |
7692 | ; |
8245 | ; |
7693 | return 0; |
8246 | return 0; |
7694 | } |
8247 | } |
… | |
… | |
7708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7709 | (exit $ac_status); } && { |
8262 | (exit $ac_status); } && { |
7710 | test -z "$ac_cxx_werror_flag" || |
8263 | test -z "$ac_cxx_werror_flag" || |
7711 | test ! -s conftest.err |
8264 | test ! -s conftest.err |
7712 | } && test -s conftest.$ac_objext; then |
8265 | } && test -s conftest.$ac_objext; then |
7713 | 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 | |
7714 | else |
8271 | else |
7715 | echo "$as_me: failed program was:" >&5 |
8272 | echo "$as_me: failed program was:" >&5 |
7716 | sed 's/^/| /' conftest.$ac_ext >&5 |
8273 | sed 's/^/| /' conftest.$ac_ext >&5 |
7717 | |
8274 | |
7718 | ac_lo=`expr $ac_mid + 1` |
8275 | |
7719 | if test $ac_lo -le $ac_mid; then |
|
|
7720 | ac_lo= ac_hi= |
|
|
7721 | break |
|
|
7722 | fi |
|
|
7723 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
7724 | fi |
8276 | fi |
7725 | |
8277 | |
7726 | 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 |
7727 | done |
8280 | done |
7728 | else |
8281 | fi |
7729 | echo "$as_me: failed program was:" >&5 |
8282 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
7730 | 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 | *) |
7731 | |
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 |
7732 | cat >conftest.$ac_ext <<_ACEOF |
8304 | cat >conftest.$ac_ext <<_ACEOF |
7733 | /* confdefs.h. */ |
8305 | /* confdefs.h. */ |
7734 | _ACEOF |
8306 | _ACEOF |
7735 | cat confdefs.h >>conftest.$ac_ext |
8307 | cat confdefs.h >>conftest.$ac_ext |
7736 | cat >>conftest.$ac_ext <<_ACEOF |
8308 | cat >>conftest.$ac_ext <<_ACEOF |
7737 | /* end confdefs.h. */ |
8309 | /* end confdefs.h. */ |
7738 | $ac_includes_default |
8310 | $ac_includes_default |
7739 | typedef short ac__type_sizeof_; |
|
|
7740 | int |
8311 | int |
7741 | main () |
8312 | main () |
7742 | { |
8313 | { |
7743 | 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))]; |
7744 | test_array [0] = 0 |
8315 | test_array [0] = 0 |
7745 | |
8316 | |
7746 | ; |
8317 | ; |
7747 | return 0; |
8318 | return 0; |
7748 | } |
8319 | } |
… | |
… | |
7762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7763 | (exit $ac_status); } && { |
8334 | (exit $ac_status); } && { |
7764 | test -z "$ac_cxx_werror_flag" || |
8335 | test -z "$ac_cxx_werror_flag" || |
7765 | test ! -s conftest.err |
8336 | test ! -s conftest.err |
7766 | } && test -s conftest.$ac_objext; then |
8337 | } && test -s conftest.$ac_objext; then |
7767 | ac_hi=-1 ac_mid=-1 |
|
|
7768 | while :; do |
|
|
7769 | cat >conftest.$ac_ext <<_ACEOF |
8338 | cat >conftest.$ac_ext <<_ACEOF |
7770 | /* confdefs.h. */ |
8339 | /* confdefs.h. */ |
7771 | _ACEOF |
8340 | _ACEOF |
7772 | cat confdefs.h >>conftest.$ac_ext |
8341 | cat confdefs.h >>conftest.$ac_ext |
7773 | cat >>conftest.$ac_ext <<_ACEOF |
8342 | cat >>conftest.$ac_ext <<_ACEOF |
7774 | /* end confdefs.h. */ |
8343 | /* end confdefs.h. */ |
7775 | $ac_includes_default |
8344 | $ac_includes_default |
7776 | typedef short ac__type_sizeof_; |
|
|
7777 | int |
8345 | int |
7778 | main () |
8346 | main () |
7779 | { |
8347 | { |
7780 | 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))]; |
7781 | test_array [0] = 0 |
8350 | test_array [0] = 0 |
7782 | |
8351 | |
7783 | ; |
8352 | ; |
7784 | return 0; |
8353 | return 0; |
7785 | } |
8354 | } |
… | |
… | |
7799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7800 | (exit $ac_status); } && { |
8369 | (exit $ac_status); } && { |
7801 | test -z "$ac_cxx_werror_flag" || |
8370 | test -z "$ac_cxx_werror_flag" || |
7802 | test ! -s conftest.err |
8371 | test ! -s conftest.err |
7803 | } && test -s conftest.$ac_objext; then |
8372 | } && test -s conftest.$ac_objext; then |
7804 | ac_lo=$ac_mid; break |
8373 | : |
7805 | else |
8374 | else |
7806 | echo "$as_me: failed program was:" >&5 |
8375 | echo "$as_me: failed program was:" >&5 |
7807 | sed 's/^/| /' conftest.$ac_ext >&5 |
8376 | sed 's/^/| /' conftest.$ac_ext >&5 |
7808 | |
8377 | |
7809 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8378 | case $ac_type in |
7810 | if test $ac_mid -le $ac_hi; then |
8379 | int32_t) ac_cv_c_int32_t=yes ;; |
7811 | ac_lo= ac_hi= |
8380 | *) ac_cv_c_int32_t=$ac_type ;; |
7812 | break |
8381 | esac |
7813 | fi |
8382 | |
7814 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
7815 | fi |
8383 | fi |
7816 | |
8384 | |
7817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7818 | done |
|
|
7819 | else |
8386 | else |
7820 | echo "$as_me: failed program was:" >&5 |
8387 | echo "$as_me: failed program was:" >&5 |
7821 | sed 's/^/| /' conftest.$ac_ext >&5 |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 |
7822 | |
8389 | |
7823 | ac_lo= ac_hi= |
8390 | |
7824 | fi |
8391 | fi |
7825 | |
8392 | |
7826 | 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 |
7827 | 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 | *) |
7828 | |
8402 | |
7829 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8403 | cat >>confdefs.h <<_ACEOF |
7830 | # Binary search between lo and hi bounds. |
8404 | #define int32_t $ac_cv_c_int32_t |
7831 | while test "x$ac_lo" != "x$ac_hi"; do |
8405 | _ACEOF |
7832 | 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 |
7833 | cat >conftest.$ac_ext <<_ACEOF |
8418 | cat >conftest.$ac_ext <<_ACEOF |
7834 | /* confdefs.h. */ |
8419 | /* confdefs.h. */ |
7835 | _ACEOF |
8420 | _ACEOF |
7836 | cat confdefs.h >>conftest.$ac_ext |
8421 | cat confdefs.h >>conftest.$ac_ext |
7837 | cat >>conftest.$ac_ext <<_ACEOF |
8422 | cat >>conftest.$ac_ext <<_ACEOF |
7838 | /* end confdefs.h. */ |
8423 | /* end confdefs.h. */ |
7839 | $ac_includes_default |
8424 | $ac_includes_default |
7840 | typedef short ac__type_sizeof_; |
|
|
7841 | int |
8425 | int |
7842 | main () |
8426 | main () |
7843 | { |
8427 | { |
7844 | 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)]; |
7845 | test_array [0] = 0 |
8429 | test_array [0] = 0 |
7846 | |
8430 | |
7847 | ; |
8431 | ; |
7848 | return 0; |
8432 | return 0; |
7849 | } |
8433 | } |
… | |
… | |
7863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7864 | (exit $ac_status); } && { |
8448 | (exit $ac_status); } && { |
7865 | test -z "$ac_cxx_werror_flag" || |
8449 | test -z "$ac_cxx_werror_flag" || |
7866 | test ! -s conftest.err |
8450 | test ! -s conftest.err |
7867 | } && test -s conftest.$ac_objext; then |
8451 | } && test -s conftest.$ac_objext; then |
7868 | 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 | |
7869 | else |
8457 | else |
7870 | echo "$as_me: failed program was:" >&5 |
8458 | echo "$as_me: failed program was:" >&5 |
7871 | sed 's/^/| /' conftest.$ac_ext >&5 |
8459 | sed 's/^/| /' conftest.$ac_ext >&5 |
7872 | |
8460 | |
7873 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8461 | |
7874 | fi |
8462 | fi |
7875 | |
8463 | |
7876 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7877 | done |
8465 | test "$ac_cv_c_uint32_t" != no && break |
7878 | case $ac_lo in |
8466 | done |
7879 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
7880 | '') if test "$ac_cv_type_short" = yes; then |
|
|
7881 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7882 | See \`config.log' for more details." >&5 |
|
|
7883 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7884 | See \`config.log' for more details." >&2;} |
|
|
7885 | { (exit 77); exit 77; }; } |
|
|
7886 | else |
|
|
7887 | ac_cv_sizeof_short=0 |
|
|
7888 | fi ;; |
|
|
7889 | esac |
|
|
7890 | else |
|
|
7891 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7892 | /* confdefs.h. */ |
|
|
7893 | _ACEOF |
|
|
7894 | cat confdefs.h >>conftest.$ac_ext |
|
|
7895 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7896 | /* end confdefs.h. */ |
|
|
7897 | $ac_includes_default |
|
|
7898 | typedef short ac__type_sizeof_; |
|
|
7899 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7900 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
7901 | #include <stdio.h> |
|
|
7902 | #include <stdlib.h> |
|
|
7903 | int |
|
|
7904 | main () |
|
|
7905 | { |
|
|
7906 | |
|
|
7907 | FILE *f = fopen ("conftest.val", "w"); |
|
|
7908 | if (! f) |
|
|
7909 | return 1; |
|
|
7910 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
7911 | { |
|
|
7912 | long int i = longval (); |
|
|
7913 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7914 | return 1; |
|
|
7915 | fprintf (f, "%ld\n", i); |
|
|
7916 | } |
|
|
7917 | else |
|
|
7918 | { |
|
|
7919 | unsigned long int i = ulongval (); |
|
|
7920 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
7921 | return 1; |
|
|
7922 | fprintf (f, "%lu\n", i); |
|
|
7923 | } |
|
|
7924 | return ferror (f) || fclose (f) != 0; |
|
|
7925 | |
|
|
7926 | ; |
|
|
7927 | return 0; |
|
|
7928 | } |
|
|
7929 | _ACEOF |
|
|
7930 | rm -f conftest$ac_exeext |
|
|
7931 | if { (ac_try="$ac_link" |
|
|
7932 | case "(($ac_try" in |
|
|
7933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7934 | *) ac_try_echo=$ac_try;; |
|
|
7935 | esac |
|
|
7936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7937 | (eval "$ac_link") 2>&5 |
|
|
7938 | ac_status=$? |
|
|
7939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7941 | { (case "(($ac_try" in |
|
|
7942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7943 | *) ac_try_echo=$ac_try;; |
|
|
7944 | esac |
|
|
7945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7946 | (eval "$ac_try") 2>&5 |
|
|
7947 | ac_status=$? |
|
|
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7949 | (exit $ac_status); }; }; then |
|
|
7950 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
7951 | else |
|
|
7952 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7953 | echo "$as_me: failed program was:" >&5 |
|
|
7954 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7955 | |
|
|
7956 | ( exit $ac_status ) |
|
|
7957 | if test "$ac_cv_type_short" = yes; then |
|
|
7958 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
7959 | See \`config.log' for more details." >&5 |
|
|
7960 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
7961 | See \`config.log' for more details." >&2;} |
|
|
7962 | { (exit 77); exit 77; }; } |
|
|
7963 | else |
|
|
7964 | ac_cv_sizeof_short=0 |
|
|
7965 | fi |
|
|
7966 | fi |
8467 | fi |
7967 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7968 | fi |
|
|
7969 | rm -f conftest.val |
|
|
7970 | fi |
|
|
7971 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8468 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
7972 | 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 | *) |
7973 | |
8473 | |
|
|
8474 | cat >>confdefs.h <<\_ACEOF |
|
|
8475 | #define _UINT32_T 1 |
|
|
8476 | _ACEOF |
7974 | |
8477 | |
7975 | |
8478 | |
7976 | cat >>confdefs.h <<_ACEOF |
8479 | cat >>confdefs.h <<_ACEOF |
7977 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8480 | #define uint32_t $ac_cv_c_uint32_t |
7978 | _ACEOF |
8481 | _ACEOF |
7979 | |
8482 | ;; |
7980 | |
|
|
7981 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
7982 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
7983 | if test "${ac_cv_type_int+set}" = set; then |
|
|
7984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7985 | else |
|
|
7986 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7987 | /* confdefs.h. */ |
|
|
7988 | _ACEOF |
|
|
7989 | cat confdefs.h >>conftest.$ac_ext |
|
|
7990 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7991 | /* end confdefs.h. */ |
|
|
7992 | $ac_includes_default |
|
|
7993 | typedef int ac__type_new_; |
|
|
7994 | int |
|
|
7995 | main () |
|
|
7996 | { |
|
|
7997 | if ((ac__type_new_ *) 0) |
|
|
7998 | return 0; |
|
|
7999 | if (sizeof (ac__type_new_)) |
|
|
8000 | return 0; |
|
|
8001 | ; |
|
|
8002 | return 0; |
|
|
8003 | } |
|
|
8004 | _ACEOF |
|
|
8005 | rm -f conftest.$ac_objext |
|
|
8006 | if { (ac_try="$ac_compile" |
|
|
8007 | case "(($ac_try" in |
|
|
8008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8009 | *) ac_try_echo=$ac_try;; |
|
|
8010 | esac |
8483 | esac |
8011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8012 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8013 | ac_status=$? |
|
|
8014 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8015 | rm -f conftest.er1 |
|
|
8016 | cat conftest.err >&5 |
|
|
8017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8018 | (exit $ac_status); } && { |
|
|
8019 | test -z "$ac_cxx_werror_flag" || |
|
|
8020 | test ! -s conftest.err |
|
|
8021 | } && test -s conftest.$ac_objext; then |
|
|
8022 | ac_cv_type_int=yes |
|
|
8023 | else |
|
|
8024 | echo "$as_me: failed program was:" >&5 |
|
|
8025 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8026 | |
8484 | |
8027 | ac_cv_type_int=no |
|
|
8028 | fi |
|
|
8029 | |
8485 | |
8030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8031 | fi |
|
|
8032 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8033 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8034 | |
8486 | |
8035 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8036 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8037 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8038 | # This bug is HP SR number 8606223364. |
|
|
8039 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8040 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8041 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8043 | else |
|
|
8044 | if test "$cross_compiling" = yes; then |
|
|
8045 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8046 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8047 | /* confdefs.h. */ |
|
|
8048 | _ACEOF |
|
|
8049 | cat confdefs.h >>conftest.$ac_ext |
|
|
8050 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8051 | /* end confdefs.h. */ |
|
|
8052 | $ac_includes_default |
|
|
8053 | typedef int ac__type_sizeof_; |
|
|
8054 | int |
|
|
8055 | main () |
|
|
8056 | { |
|
|
8057 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8058 | test_array [0] = 0 |
|
|
8059 | |
|
|
8060 | ; |
|
|
8061 | return 0; |
|
|
8062 | } |
|
|
8063 | _ACEOF |
|
|
8064 | rm -f conftest.$ac_objext |
|
|
8065 | if { (ac_try="$ac_compile" |
|
|
8066 | case "(($ac_try" in |
|
|
8067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8068 | *) ac_try_echo=$ac_try;; |
|
|
8069 | esac |
|
|
8070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8071 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8072 | ac_status=$? |
|
|
8073 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8074 | rm -f conftest.er1 |
|
|
8075 | cat conftest.err >&5 |
|
|
8076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8077 | (exit $ac_status); } && { |
|
|
8078 | test -z "$ac_cxx_werror_flag" || |
|
|
8079 | test ! -s conftest.err |
|
|
8080 | } && test -s conftest.$ac_objext; then |
|
|
8081 | ac_lo=0 ac_mid=0 |
|
|
8082 | while :; do |
|
|
8083 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8084 | /* confdefs.h. */ |
|
|
8085 | _ACEOF |
|
|
8086 | cat confdefs.h >>conftest.$ac_ext |
|
|
8087 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8088 | /* end confdefs.h. */ |
|
|
8089 | $ac_includes_default |
|
|
8090 | typedef int ac__type_sizeof_; |
|
|
8091 | int |
|
|
8092 | main () |
|
|
8093 | { |
|
|
8094 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8095 | test_array [0] = 0 |
|
|
8096 | |
|
|
8097 | ; |
|
|
8098 | return 0; |
|
|
8099 | } |
|
|
8100 | _ACEOF |
|
|
8101 | rm -f conftest.$ac_objext |
|
|
8102 | if { (ac_try="$ac_compile" |
|
|
8103 | case "(($ac_try" in |
|
|
8104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8105 | *) ac_try_echo=$ac_try;; |
|
|
8106 | esac |
|
|
8107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8108 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8109 | ac_status=$? |
|
|
8110 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8111 | rm -f conftest.er1 |
|
|
8112 | cat conftest.err >&5 |
|
|
8113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8114 | (exit $ac_status); } && { |
|
|
8115 | test -z "$ac_cxx_werror_flag" || |
|
|
8116 | test ! -s conftest.err |
|
|
8117 | } && test -s conftest.$ac_objext; then |
|
|
8118 | ac_hi=$ac_mid; break |
|
|
8119 | else |
|
|
8120 | echo "$as_me: failed program was:" >&5 |
|
|
8121 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8122 | |
|
|
8123 | ac_lo=`expr $ac_mid + 1` |
|
|
8124 | if test $ac_lo -le $ac_mid; then |
|
|
8125 | ac_lo= ac_hi= |
|
|
8126 | break |
|
|
8127 | fi |
|
|
8128 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8129 | fi |
|
|
8130 | |
|
|
8131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8132 | done |
|
|
8133 | else |
|
|
8134 | echo "$as_me: failed program was:" >&5 |
|
|
8135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8136 | |
|
|
8137 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8138 | /* confdefs.h. */ |
|
|
8139 | _ACEOF |
|
|
8140 | cat confdefs.h >>conftest.$ac_ext |
|
|
8141 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8142 | /* end confdefs.h. */ |
|
|
8143 | $ac_includes_default |
|
|
8144 | typedef int ac__type_sizeof_; |
|
|
8145 | int |
|
|
8146 | main () |
|
|
8147 | { |
|
|
8148 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8149 | test_array [0] = 0 |
|
|
8150 | |
|
|
8151 | ; |
|
|
8152 | return 0; |
|
|
8153 | } |
|
|
8154 | _ACEOF |
|
|
8155 | rm -f conftest.$ac_objext |
|
|
8156 | if { (ac_try="$ac_compile" |
|
|
8157 | case "(($ac_try" in |
|
|
8158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8159 | *) ac_try_echo=$ac_try;; |
|
|
8160 | esac |
|
|
8161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8162 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8163 | ac_status=$? |
|
|
8164 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8165 | rm -f conftest.er1 |
|
|
8166 | cat conftest.err >&5 |
|
|
8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8168 | (exit $ac_status); } && { |
|
|
8169 | test -z "$ac_cxx_werror_flag" || |
|
|
8170 | test ! -s conftest.err |
|
|
8171 | } && test -s conftest.$ac_objext; then |
|
|
8172 | ac_hi=-1 ac_mid=-1 |
|
|
8173 | while :; do |
|
|
8174 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8175 | /* confdefs.h. */ |
|
|
8176 | _ACEOF |
|
|
8177 | cat confdefs.h >>conftest.$ac_ext |
|
|
8178 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8179 | /* end confdefs.h. */ |
|
|
8180 | $ac_includes_default |
|
|
8181 | typedef int ac__type_sizeof_; |
|
|
8182 | int |
|
|
8183 | main () |
|
|
8184 | { |
|
|
8185 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8186 | test_array [0] = 0 |
|
|
8187 | |
|
|
8188 | ; |
|
|
8189 | return 0; |
|
|
8190 | } |
|
|
8191 | _ACEOF |
|
|
8192 | rm -f conftest.$ac_objext |
|
|
8193 | if { (ac_try="$ac_compile" |
|
|
8194 | case "(($ac_try" in |
|
|
8195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8196 | *) ac_try_echo=$ac_try;; |
|
|
8197 | esac |
|
|
8198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8199 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8200 | ac_status=$? |
|
|
8201 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8202 | rm -f conftest.er1 |
|
|
8203 | cat conftest.err >&5 |
|
|
8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8205 | (exit $ac_status); } && { |
|
|
8206 | test -z "$ac_cxx_werror_flag" || |
|
|
8207 | test ! -s conftest.err |
|
|
8208 | } && test -s conftest.$ac_objext; then |
|
|
8209 | ac_lo=$ac_mid; break |
|
|
8210 | else |
|
|
8211 | echo "$as_me: failed program was:" >&5 |
|
|
8212 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8213 | |
|
|
8214 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8215 | if test $ac_mid -le $ac_hi; then |
|
|
8216 | ac_lo= ac_hi= |
|
|
8217 | break |
|
|
8218 | fi |
|
|
8219 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8220 | fi |
|
|
8221 | |
|
|
8222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8223 | done |
|
|
8224 | else |
|
|
8225 | echo "$as_me: failed program was:" >&5 |
|
|
8226 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8227 | |
|
|
8228 | ac_lo= ac_hi= |
|
|
8229 | fi |
|
|
8230 | |
|
|
8231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8232 | fi |
|
|
8233 | |
|
|
8234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8235 | # Binary search between lo and hi bounds. |
|
|
8236 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8237 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8238 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8239 | /* confdefs.h. */ |
|
|
8240 | _ACEOF |
|
|
8241 | cat confdefs.h >>conftest.$ac_ext |
|
|
8242 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8243 | /* end confdefs.h. */ |
|
|
8244 | $ac_includes_default |
|
|
8245 | typedef int ac__type_sizeof_; |
|
|
8246 | int |
|
|
8247 | main () |
|
|
8248 | { |
|
|
8249 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8250 | test_array [0] = 0 |
|
|
8251 | |
|
|
8252 | ; |
|
|
8253 | return 0; |
|
|
8254 | } |
|
|
8255 | _ACEOF |
|
|
8256 | rm -f conftest.$ac_objext |
|
|
8257 | if { (ac_try="$ac_compile" |
|
|
8258 | case "(($ac_try" in |
|
|
8259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8260 | *) ac_try_echo=$ac_try;; |
|
|
8261 | esac |
|
|
8262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8263 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8264 | ac_status=$? |
|
|
8265 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8266 | rm -f conftest.er1 |
|
|
8267 | cat conftest.err >&5 |
|
|
8268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8269 | (exit $ac_status); } && { |
|
|
8270 | test -z "$ac_cxx_werror_flag" || |
|
|
8271 | test ! -s conftest.err |
|
|
8272 | } && test -s conftest.$ac_objext; then |
|
|
8273 | ac_hi=$ac_mid |
|
|
8274 | else |
|
|
8275 | echo "$as_me: failed program was:" >&5 |
|
|
8276 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8277 | |
|
|
8278 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8279 | fi |
|
|
8280 | |
|
|
8281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8282 | done |
|
|
8283 | case $ac_lo in |
|
|
8284 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8285 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8286 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8287 | See \`config.log' for more details." >&5 |
|
|
8288 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8289 | See \`config.log' for more details." >&2;} |
|
|
8290 | { (exit 77); exit 77; }; } |
|
|
8291 | else |
|
|
8292 | ac_cv_sizeof_int=0 |
|
|
8293 | fi ;; |
|
|
8294 | esac |
|
|
8295 | else |
|
|
8296 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8297 | /* confdefs.h. */ |
|
|
8298 | _ACEOF |
|
|
8299 | cat confdefs.h >>conftest.$ac_ext |
|
|
8300 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8301 | /* end confdefs.h. */ |
|
|
8302 | $ac_includes_default |
|
|
8303 | typedef int ac__type_sizeof_; |
|
|
8304 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8305 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8306 | #include <stdio.h> |
|
|
8307 | #include <stdlib.h> |
|
|
8308 | int |
|
|
8309 | main () |
|
|
8310 | { |
|
|
8311 | |
|
|
8312 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8313 | if (! f) |
|
|
8314 | return 1; |
|
|
8315 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8316 | { |
|
|
8317 | long int i = longval (); |
|
|
8318 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8319 | return 1; |
|
|
8320 | fprintf (f, "%ld\n", i); |
|
|
8321 | } |
|
|
8322 | else |
|
|
8323 | { |
|
|
8324 | unsigned long int i = ulongval (); |
|
|
8325 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8326 | return 1; |
|
|
8327 | fprintf (f, "%lu\n", i); |
|
|
8328 | } |
|
|
8329 | return ferror (f) || fclose (f) != 0; |
|
|
8330 | |
|
|
8331 | ; |
|
|
8332 | return 0; |
|
|
8333 | } |
|
|
8334 | _ACEOF |
|
|
8335 | rm -f conftest$ac_exeext |
|
|
8336 | if { (ac_try="$ac_link" |
|
|
8337 | case "(($ac_try" in |
|
|
8338 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8339 | *) ac_try_echo=$ac_try;; |
|
|
8340 | esac |
|
|
8341 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8342 | (eval "$ac_link") 2>&5 |
|
|
8343 | ac_status=$? |
|
|
8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8345 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8346 | { (case "(($ac_try" in |
|
|
8347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8348 | *) ac_try_echo=$ac_try;; |
|
|
8349 | esac |
|
|
8350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8351 | (eval "$ac_try") 2>&5 |
|
|
8352 | ac_status=$? |
|
|
8353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8354 | (exit $ac_status); }; }; then |
|
|
8355 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8356 | else |
|
|
8357 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8358 | echo "$as_me: failed program was:" >&5 |
|
|
8359 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8360 | |
|
|
8361 | ( exit $ac_status ) |
|
|
8362 | if test "$ac_cv_type_int" = yes; then |
|
|
8363 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8364 | See \`config.log' for more details." >&5 |
|
|
8365 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8366 | See \`config.log' for more details." >&2;} |
|
|
8367 | { (exit 77); exit 77; }; } |
|
|
8368 | else |
|
|
8369 | ac_cv_sizeof_int=0 |
|
|
8370 | fi |
|
|
8371 | fi |
|
|
8372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8373 | fi |
|
|
8374 | rm -f conftest.val |
|
|
8375 | fi |
|
|
8376 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8377 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8378 | |
|
|
8379 | |
|
|
8380 | |
|
|
8381 | cat >>confdefs.h <<_ACEOF |
|
|
8382 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8383 | _ACEOF |
|
|
8384 | |
|
|
8385 | |
|
|
8386 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8387 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8388 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8390 | else |
|
|
8391 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8392 | /* confdefs.h. */ |
|
|
8393 | _ACEOF |
|
|
8394 | cat confdefs.h >>conftest.$ac_ext |
|
|
8395 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8396 | /* end confdefs.h. */ |
|
|
8397 | $ac_includes_default |
|
|
8398 | typedef long long ac__type_new_; |
|
|
8399 | int |
|
|
8400 | main () |
|
|
8401 | { |
|
|
8402 | if ((ac__type_new_ *) 0) |
|
|
8403 | return 0; |
|
|
8404 | if (sizeof (ac__type_new_)) |
|
|
8405 | return 0; |
|
|
8406 | ; |
|
|
8407 | return 0; |
|
|
8408 | } |
|
|
8409 | _ACEOF |
|
|
8410 | rm -f conftest.$ac_objext |
|
|
8411 | if { (ac_try="$ac_compile" |
|
|
8412 | case "(($ac_try" in |
|
|
8413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8414 | *) ac_try_echo=$ac_try;; |
|
|
8415 | esac |
|
|
8416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8417 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8418 | ac_status=$? |
|
|
8419 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8420 | rm -f conftest.er1 |
|
|
8421 | cat conftest.err >&5 |
|
|
8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8423 | (exit $ac_status); } && { |
|
|
8424 | test -z "$ac_cxx_werror_flag" || |
|
|
8425 | test ! -s conftest.err |
|
|
8426 | } && test -s conftest.$ac_objext; then |
|
|
8427 | ac_cv_type_long_long=yes |
|
|
8428 | else |
|
|
8429 | echo "$as_me: failed program was:" >&5 |
|
|
8430 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8431 | |
|
|
8432 | ac_cv_type_long_long=no |
|
|
8433 | fi |
|
|
8434 | |
|
|
8435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8436 | fi |
|
|
8437 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8438 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8439 | |
|
|
8440 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8441 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8442 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8443 | # This bug is HP SR number 8606223364. |
|
|
8444 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8445 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8446 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8448 | else |
|
|
8449 | if test "$cross_compiling" = yes; then |
|
|
8450 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8451 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8452 | /* confdefs.h. */ |
|
|
8453 | _ACEOF |
|
|
8454 | cat confdefs.h >>conftest.$ac_ext |
|
|
8455 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8456 | /* end confdefs.h. */ |
|
|
8457 | $ac_includes_default |
|
|
8458 | typedef long long ac__type_sizeof_; |
|
|
8459 | int |
|
|
8460 | main () |
|
|
8461 | { |
|
|
8462 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8463 | test_array [0] = 0 |
|
|
8464 | |
|
|
8465 | ; |
|
|
8466 | return 0; |
|
|
8467 | } |
|
|
8468 | _ACEOF |
|
|
8469 | rm -f conftest.$ac_objext |
|
|
8470 | if { (ac_try="$ac_compile" |
|
|
8471 | case "(($ac_try" in |
|
|
8472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8473 | *) ac_try_echo=$ac_try;; |
|
|
8474 | esac |
|
|
8475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8476 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8477 | ac_status=$? |
|
|
8478 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8479 | rm -f conftest.er1 |
|
|
8480 | cat conftest.err >&5 |
|
|
8481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8482 | (exit $ac_status); } && { |
|
|
8483 | test -z "$ac_cxx_werror_flag" || |
|
|
8484 | test ! -s conftest.err |
|
|
8485 | } && test -s conftest.$ac_objext; then |
|
|
8486 | ac_lo=0 ac_mid=0 |
|
|
8487 | while :; do |
|
|
8488 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8489 | /* confdefs.h. */ |
|
|
8490 | _ACEOF |
|
|
8491 | cat confdefs.h >>conftest.$ac_ext |
|
|
8492 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8493 | /* end confdefs.h. */ |
|
|
8494 | $ac_includes_default |
|
|
8495 | typedef long long ac__type_sizeof_; |
|
|
8496 | int |
|
|
8497 | main () |
|
|
8498 | { |
|
|
8499 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8500 | test_array [0] = 0 |
|
|
8501 | |
|
|
8502 | ; |
|
|
8503 | return 0; |
|
|
8504 | } |
|
|
8505 | _ACEOF |
|
|
8506 | rm -f conftest.$ac_objext |
|
|
8507 | if { (ac_try="$ac_compile" |
|
|
8508 | case "(($ac_try" in |
|
|
8509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8510 | *) ac_try_echo=$ac_try;; |
|
|
8511 | esac |
|
|
8512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8513 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8514 | ac_status=$? |
|
|
8515 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8516 | rm -f conftest.er1 |
|
|
8517 | cat conftest.err >&5 |
|
|
8518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8519 | (exit $ac_status); } && { |
|
|
8520 | test -z "$ac_cxx_werror_flag" || |
|
|
8521 | test ! -s conftest.err |
|
|
8522 | } && test -s conftest.$ac_objext; then |
|
|
8523 | ac_hi=$ac_mid; break |
|
|
8524 | else |
|
|
8525 | echo "$as_me: failed program was:" >&5 |
|
|
8526 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8527 | |
|
|
8528 | ac_lo=`expr $ac_mid + 1` |
|
|
8529 | if test $ac_lo -le $ac_mid; then |
|
|
8530 | ac_lo= ac_hi= |
|
|
8531 | break |
|
|
8532 | fi |
|
|
8533 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8534 | fi |
|
|
8535 | |
|
|
8536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8537 | done |
|
|
8538 | else |
|
|
8539 | echo "$as_me: failed program was:" >&5 |
|
|
8540 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8541 | |
|
|
8542 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8543 | /* confdefs.h. */ |
|
|
8544 | _ACEOF |
|
|
8545 | cat confdefs.h >>conftest.$ac_ext |
|
|
8546 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8547 | /* end confdefs.h. */ |
|
|
8548 | $ac_includes_default |
|
|
8549 | typedef long long ac__type_sizeof_; |
|
|
8550 | int |
|
|
8551 | main () |
|
|
8552 | { |
|
|
8553 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8554 | test_array [0] = 0 |
|
|
8555 | |
|
|
8556 | ; |
|
|
8557 | return 0; |
|
|
8558 | } |
|
|
8559 | _ACEOF |
|
|
8560 | rm -f conftest.$ac_objext |
|
|
8561 | if { (ac_try="$ac_compile" |
|
|
8562 | case "(($ac_try" in |
|
|
8563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8564 | *) ac_try_echo=$ac_try;; |
|
|
8565 | esac |
|
|
8566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8567 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8568 | ac_status=$? |
|
|
8569 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8570 | rm -f conftest.er1 |
|
|
8571 | cat conftest.err >&5 |
|
|
8572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8573 | (exit $ac_status); } && { |
|
|
8574 | test -z "$ac_cxx_werror_flag" || |
|
|
8575 | test ! -s conftest.err |
|
|
8576 | } && test -s conftest.$ac_objext; then |
|
|
8577 | ac_hi=-1 ac_mid=-1 |
|
|
8578 | while :; do |
|
|
8579 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8580 | /* confdefs.h. */ |
|
|
8581 | _ACEOF |
|
|
8582 | cat confdefs.h >>conftest.$ac_ext |
|
|
8583 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8584 | /* end confdefs.h. */ |
|
|
8585 | $ac_includes_default |
|
|
8586 | typedef long long ac__type_sizeof_; |
|
|
8587 | int |
|
|
8588 | main () |
|
|
8589 | { |
|
|
8590 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8591 | test_array [0] = 0 |
|
|
8592 | |
|
|
8593 | ; |
|
|
8594 | return 0; |
|
|
8595 | } |
|
|
8596 | _ACEOF |
|
|
8597 | rm -f conftest.$ac_objext |
|
|
8598 | if { (ac_try="$ac_compile" |
|
|
8599 | case "(($ac_try" in |
|
|
8600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8601 | *) ac_try_echo=$ac_try;; |
|
|
8602 | esac |
|
|
8603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8604 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8605 | ac_status=$? |
|
|
8606 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8607 | rm -f conftest.er1 |
|
|
8608 | cat conftest.err >&5 |
|
|
8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8610 | (exit $ac_status); } && { |
|
|
8611 | test -z "$ac_cxx_werror_flag" || |
|
|
8612 | test ! -s conftest.err |
|
|
8613 | } && test -s conftest.$ac_objext; then |
|
|
8614 | ac_lo=$ac_mid; break |
|
|
8615 | else |
|
|
8616 | echo "$as_me: failed program was:" >&5 |
|
|
8617 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8618 | |
|
|
8619 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8620 | if test $ac_mid -le $ac_hi; then |
|
|
8621 | ac_lo= ac_hi= |
|
|
8622 | break |
|
|
8623 | fi |
|
|
8624 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8625 | fi |
|
|
8626 | |
|
|
8627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8628 | done |
|
|
8629 | else |
|
|
8630 | echo "$as_me: failed program was:" >&5 |
|
|
8631 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8632 | |
|
|
8633 | ac_lo= ac_hi= |
|
|
8634 | fi |
|
|
8635 | |
|
|
8636 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8637 | fi |
|
|
8638 | |
|
|
8639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8640 | # Binary search between lo and hi bounds. |
|
|
8641 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8642 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8643 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8644 | /* confdefs.h. */ |
|
|
8645 | _ACEOF |
|
|
8646 | cat confdefs.h >>conftest.$ac_ext |
|
|
8647 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8648 | /* end confdefs.h. */ |
|
|
8649 | $ac_includes_default |
|
|
8650 | typedef long long ac__type_sizeof_; |
|
|
8651 | int |
|
|
8652 | main () |
|
|
8653 | { |
|
|
8654 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8655 | test_array [0] = 0 |
|
|
8656 | |
|
|
8657 | ; |
|
|
8658 | return 0; |
|
|
8659 | } |
|
|
8660 | _ACEOF |
|
|
8661 | rm -f conftest.$ac_objext |
|
|
8662 | if { (ac_try="$ac_compile" |
|
|
8663 | case "(($ac_try" in |
|
|
8664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8665 | *) ac_try_echo=$ac_try;; |
|
|
8666 | esac |
|
|
8667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8668 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8669 | ac_status=$? |
|
|
8670 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8671 | rm -f conftest.er1 |
|
|
8672 | cat conftest.err >&5 |
|
|
8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8674 | (exit $ac_status); } && { |
|
|
8675 | test -z "$ac_cxx_werror_flag" || |
|
|
8676 | test ! -s conftest.err |
|
|
8677 | } && test -s conftest.$ac_objext; then |
|
|
8678 | ac_hi=$ac_mid |
|
|
8679 | else |
|
|
8680 | echo "$as_me: failed program was:" >&5 |
|
|
8681 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8682 | |
|
|
8683 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8684 | fi |
|
|
8685 | |
|
|
8686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8687 | done |
|
|
8688 | case $ac_lo in |
|
|
8689 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
8690 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
8691 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8692 | See \`config.log' for more details." >&5 |
|
|
8693 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8694 | See \`config.log' for more details." >&2;} |
|
|
8695 | { (exit 77); exit 77; }; } |
|
|
8696 | else |
|
|
8697 | ac_cv_sizeof_long_long=0 |
|
|
8698 | fi ;; |
|
|
8699 | esac |
|
|
8700 | else |
|
|
8701 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8702 | /* confdefs.h. */ |
|
|
8703 | _ACEOF |
|
|
8704 | cat confdefs.h >>conftest.$ac_ext |
|
|
8705 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8706 | /* end confdefs.h. */ |
|
|
8707 | $ac_includes_default |
|
|
8708 | typedef long long ac__type_sizeof_; |
|
|
8709 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8710 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8711 | #include <stdio.h> |
|
|
8712 | #include <stdlib.h> |
|
|
8713 | int |
|
|
8714 | main () |
|
|
8715 | { |
|
|
8716 | |
|
|
8717 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8718 | if (! f) |
|
|
8719 | return 1; |
|
|
8720 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8721 | { |
|
|
8722 | long int i = longval (); |
|
|
8723 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8724 | return 1; |
|
|
8725 | fprintf (f, "%ld\n", i); |
|
|
8726 | } |
|
|
8727 | else |
|
|
8728 | { |
|
|
8729 | unsigned long int i = ulongval (); |
|
|
8730 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8731 | return 1; |
|
|
8732 | fprintf (f, "%lu\n", i); |
|
|
8733 | } |
|
|
8734 | return ferror (f) || fclose (f) != 0; |
|
|
8735 | |
|
|
8736 | ; |
|
|
8737 | return 0; |
|
|
8738 | } |
|
|
8739 | _ACEOF |
|
|
8740 | rm -f conftest$ac_exeext |
|
|
8741 | if { (ac_try="$ac_link" |
|
|
8742 | case "(($ac_try" in |
|
|
8743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8744 | *) ac_try_echo=$ac_try;; |
|
|
8745 | esac |
|
|
8746 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8747 | (eval "$ac_link") 2>&5 |
|
|
8748 | ac_status=$? |
|
|
8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8750 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8751 | { (case "(($ac_try" in |
|
|
8752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8753 | *) ac_try_echo=$ac_try;; |
|
|
8754 | esac |
|
|
8755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8756 | (eval "$ac_try") 2>&5 |
|
|
8757 | ac_status=$? |
|
|
8758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8759 | (exit $ac_status); }; }; then |
|
|
8760 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
8761 | else |
|
|
8762 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8763 | echo "$as_me: failed program was:" >&5 |
|
|
8764 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8765 | |
|
|
8766 | ( exit $ac_status ) |
|
|
8767 | if test "$ac_cv_type_long_long" = yes; then |
|
|
8768 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
8769 | See \`config.log' for more details." >&5 |
|
|
8770 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
8771 | See \`config.log' for more details." >&2;} |
|
|
8772 | { (exit 77); exit 77; }; } |
|
|
8773 | else |
|
|
8774 | ac_cv_sizeof_long_long=0 |
|
|
8775 | fi |
|
|
8776 | fi |
|
|
8777 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8778 | fi |
|
|
8779 | rm -f conftest.val |
|
|
8780 | fi |
|
|
8781 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
8782 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
8783 | |
|
|
8784 | |
|
|
8785 | |
|
|
8786 | cat >>confdefs.h <<_ACEOF |
|
|
8787 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
8788 | _ACEOF |
|
|
8789 | |
|
|
8790 | |
|
|
8791 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
8792 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
8793 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
8794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8795 | else |
|
|
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_new_; |
|
|
8804 | int |
|
|
8805 | main () |
|
|
8806 | { |
|
|
8807 | if ((ac__type_new_ *) 0) |
|
|
8808 | return 0; |
|
|
8809 | if (sizeof (ac__type_new_)) |
|
|
8810 | return 0; |
|
|
8811 | ; |
|
|
8812 | return 0; |
|
|
8813 | } |
|
|
8814 | _ACEOF |
|
|
8815 | rm -f conftest.$ac_objext |
|
|
8816 | if { (ac_try="$ac_compile" |
|
|
8817 | case "(($ac_try" in |
|
|
8818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8819 | *) ac_try_echo=$ac_try;; |
|
|
8820 | esac |
|
|
8821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8822 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8823 | ac_status=$? |
|
|
8824 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8825 | rm -f conftest.er1 |
|
|
8826 | cat conftest.err >&5 |
|
|
8827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8828 | (exit $ac_status); } && { |
|
|
8829 | test -z "$ac_cxx_werror_flag" || |
|
|
8830 | test ! -s conftest.err |
|
|
8831 | } && test -s conftest.$ac_objext; then |
|
|
8832 | ac_cv_type_int_p=yes |
|
|
8833 | else |
|
|
8834 | echo "$as_me: failed program was:" >&5 |
|
|
8835 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8836 | |
|
|
8837 | ac_cv_type_int_p=no |
|
|
8838 | fi |
|
|
8839 | |
|
|
8840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8841 | fi |
|
|
8842 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
8843 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
8844 | |
|
|
8845 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8846 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8847 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8848 | # This bug is HP SR number 8606223364. |
|
|
8849 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
8850 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
8851 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
8852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8853 | else |
|
|
8854 | if test "$cross_compiling" = yes; then |
|
|
8855 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8856 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8857 | /* confdefs.h. */ |
|
|
8858 | _ACEOF |
|
|
8859 | cat confdefs.h >>conftest.$ac_ext |
|
|
8860 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8861 | /* end confdefs.h. */ |
|
|
8862 | $ac_includes_default |
|
|
8863 | typedef int * ac__type_sizeof_; |
|
|
8864 | int |
|
|
8865 | main () |
|
|
8866 | { |
|
|
8867 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8868 | test_array [0] = 0 |
|
|
8869 | |
|
|
8870 | ; |
|
|
8871 | return 0; |
|
|
8872 | } |
|
|
8873 | _ACEOF |
|
|
8874 | rm -f conftest.$ac_objext |
|
|
8875 | if { (ac_try="$ac_compile" |
|
|
8876 | case "(($ac_try" in |
|
|
8877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8878 | *) ac_try_echo=$ac_try;; |
|
|
8879 | esac |
|
|
8880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8881 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8882 | ac_status=$? |
|
|
8883 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8884 | rm -f conftest.er1 |
|
|
8885 | cat conftest.err >&5 |
|
|
8886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8887 | (exit $ac_status); } && { |
|
|
8888 | test -z "$ac_cxx_werror_flag" || |
|
|
8889 | test ! -s conftest.err |
|
|
8890 | } && test -s conftest.$ac_objext; then |
|
|
8891 | ac_lo=0 ac_mid=0 |
|
|
8892 | while :; do |
|
|
8893 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8894 | /* confdefs.h. */ |
|
|
8895 | _ACEOF |
|
|
8896 | cat confdefs.h >>conftest.$ac_ext |
|
|
8897 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8898 | /* end confdefs.h. */ |
|
|
8899 | $ac_includes_default |
|
|
8900 | typedef int * ac__type_sizeof_; |
|
|
8901 | int |
|
|
8902 | main () |
|
|
8903 | { |
|
|
8904 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8905 | test_array [0] = 0 |
|
|
8906 | |
|
|
8907 | ; |
|
|
8908 | return 0; |
|
|
8909 | } |
|
|
8910 | _ACEOF |
|
|
8911 | rm -f conftest.$ac_objext |
|
|
8912 | if { (ac_try="$ac_compile" |
|
|
8913 | case "(($ac_try" in |
|
|
8914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8915 | *) ac_try_echo=$ac_try;; |
|
|
8916 | esac |
|
|
8917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8918 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8919 | ac_status=$? |
|
|
8920 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8921 | rm -f conftest.er1 |
|
|
8922 | cat conftest.err >&5 |
|
|
8923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8924 | (exit $ac_status); } && { |
|
|
8925 | test -z "$ac_cxx_werror_flag" || |
|
|
8926 | test ! -s conftest.err |
|
|
8927 | } && test -s conftest.$ac_objext; then |
|
|
8928 | ac_hi=$ac_mid; break |
|
|
8929 | else |
|
|
8930 | echo "$as_me: failed program was:" >&5 |
|
|
8931 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8932 | |
|
|
8933 | ac_lo=`expr $ac_mid + 1` |
|
|
8934 | if test $ac_lo -le $ac_mid; then |
|
|
8935 | ac_lo= ac_hi= |
|
|
8936 | break |
|
|
8937 | fi |
|
|
8938 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8939 | fi |
|
|
8940 | |
|
|
8941 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8942 | done |
|
|
8943 | else |
|
|
8944 | echo "$as_me: failed program was:" >&5 |
|
|
8945 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8946 | |
|
|
8947 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8948 | /* confdefs.h. */ |
|
|
8949 | _ACEOF |
|
|
8950 | cat confdefs.h >>conftest.$ac_ext |
|
|
8951 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8952 | /* end confdefs.h. */ |
|
|
8953 | $ac_includes_default |
|
|
8954 | typedef int * ac__type_sizeof_; |
|
|
8955 | int |
|
|
8956 | main () |
|
|
8957 | { |
|
|
8958 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8959 | test_array [0] = 0 |
|
|
8960 | |
|
|
8961 | ; |
|
|
8962 | return 0; |
|
|
8963 | } |
|
|
8964 | _ACEOF |
|
|
8965 | rm -f conftest.$ac_objext |
|
|
8966 | if { (ac_try="$ac_compile" |
|
|
8967 | case "(($ac_try" in |
|
|
8968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8969 | *) ac_try_echo=$ac_try;; |
|
|
8970 | esac |
|
|
8971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8972 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8973 | ac_status=$? |
|
|
8974 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8975 | rm -f conftest.er1 |
|
|
8976 | cat conftest.err >&5 |
|
|
8977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8978 | (exit $ac_status); } && { |
|
|
8979 | test -z "$ac_cxx_werror_flag" || |
|
|
8980 | test ! -s conftest.err |
|
|
8981 | } && test -s conftest.$ac_objext; then |
|
|
8982 | ac_hi=-1 ac_mid=-1 |
|
|
8983 | while :; do |
|
|
8984 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8985 | /* confdefs.h. */ |
|
|
8986 | _ACEOF |
|
|
8987 | cat confdefs.h >>conftest.$ac_ext |
|
|
8988 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8989 | /* end confdefs.h. */ |
|
|
8990 | $ac_includes_default |
|
|
8991 | typedef int * ac__type_sizeof_; |
|
|
8992 | int |
|
|
8993 | main () |
|
|
8994 | { |
|
|
8995 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8996 | test_array [0] = 0 |
|
|
8997 | |
|
|
8998 | ; |
|
|
8999 | return 0; |
|
|
9000 | } |
|
|
9001 | _ACEOF |
|
|
9002 | rm -f conftest.$ac_objext |
|
|
9003 | if { (ac_try="$ac_compile" |
|
|
9004 | case "(($ac_try" in |
|
|
9005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9006 | *) ac_try_echo=$ac_try;; |
|
|
9007 | esac |
|
|
9008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9009 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9010 | ac_status=$? |
|
|
9011 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9012 | rm -f conftest.er1 |
|
|
9013 | cat conftest.err >&5 |
|
|
9014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9015 | (exit $ac_status); } && { |
|
|
9016 | test -z "$ac_cxx_werror_flag" || |
|
|
9017 | test ! -s conftest.err |
|
|
9018 | } && test -s conftest.$ac_objext; then |
|
|
9019 | ac_lo=$ac_mid; break |
|
|
9020 | else |
|
|
9021 | echo "$as_me: failed program was:" >&5 |
|
|
9022 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9023 | |
|
|
9024 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9025 | if test $ac_mid -le $ac_hi; then |
|
|
9026 | ac_lo= ac_hi= |
|
|
9027 | break |
|
|
9028 | fi |
|
|
9029 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9030 | fi |
|
|
9031 | |
|
|
9032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9033 | done |
|
|
9034 | else |
|
|
9035 | echo "$as_me: failed program was:" >&5 |
|
|
9036 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9037 | |
|
|
9038 | ac_lo= ac_hi= |
|
|
9039 | fi |
|
|
9040 | |
|
|
9041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9042 | fi |
|
|
9043 | |
|
|
9044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9045 | # Binary search between lo and hi bounds. |
|
|
9046 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9047 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9049 | /* confdefs.h. */ |
|
|
9050 | _ACEOF |
|
|
9051 | cat confdefs.h >>conftest.$ac_ext |
|
|
9052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9053 | /* end confdefs.h. */ |
|
|
9054 | $ac_includes_default |
|
|
9055 | typedef int * ac__type_sizeof_; |
|
|
9056 | int |
|
|
9057 | main () |
|
|
9058 | { |
|
|
9059 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9060 | test_array [0] = 0 |
|
|
9061 | |
|
|
9062 | ; |
|
|
9063 | return 0; |
|
|
9064 | } |
|
|
9065 | _ACEOF |
|
|
9066 | rm -f conftest.$ac_objext |
|
|
9067 | if { (ac_try="$ac_compile" |
|
|
9068 | case "(($ac_try" in |
|
|
9069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9070 | *) ac_try_echo=$ac_try;; |
|
|
9071 | esac |
|
|
9072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9073 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9074 | ac_status=$? |
|
|
9075 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9076 | rm -f conftest.er1 |
|
|
9077 | cat conftest.err >&5 |
|
|
9078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9079 | (exit $ac_status); } && { |
|
|
9080 | test -z "$ac_cxx_werror_flag" || |
|
|
9081 | test ! -s conftest.err |
|
|
9082 | } && test -s conftest.$ac_objext; then |
|
|
9083 | ac_hi=$ac_mid |
|
|
9084 | else |
|
|
9085 | echo "$as_me: failed program was:" >&5 |
|
|
9086 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9087 | |
|
|
9088 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9089 | fi |
|
|
9090 | |
|
|
9091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9092 | done |
|
|
9093 | case $ac_lo in |
|
|
9094 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9095 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9096 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9097 | See \`config.log' for more details." >&5 |
|
|
9098 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9099 | See \`config.log' for more details." >&2;} |
|
|
9100 | { (exit 77); exit 77; }; } |
|
|
9101 | else |
|
|
9102 | ac_cv_sizeof_int_p=0 |
|
|
9103 | fi ;; |
|
|
9104 | esac |
|
|
9105 | else |
|
|
9106 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9107 | /* confdefs.h. */ |
|
|
9108 | _ACEOF |
|
|
9109 | cat confdefs.h >>conftest.$ac_ext |
|
|
9110 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9111 | /* end confdefs.h. */ |
|
|
9112 | $ac_includes_default |
|
|
9113 | typedef int * ac__type_sizeof_; |
|
|
9114 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9115 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9116 | #include <stdio.h> |
|
|
9117 | #include <stdlib.h> |
|
|
9118 | int |
|
|
9119 | main () |
|
|
9120 | { |
|
|
9121 | |
|
|
9122 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9123 | if (! f) |
|
|
9124 | return 1; |
|
|
9125 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9126 | { |
|
|
9127 | long int i = longval (); |
|
|
9128 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9129 | return 1; |
|
|
9130 | fprintf (f, "%ld\n", i); |
|
|
9131 | } |
|
|
9132 | else |
|
|
9133 | { |
|
|
9134 | unsigned long int i = ulongval (); |
|
|
9135 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9136 | return 1; |
|
|
9137 | fprintf (f, "%lu\n", i); |
|
|
9138 | } |
|
|
9139 | return ferror (f) || fclose (f) != 0; |
|
|
9140 | |
|
|
9141 | ; |
|
|
9142 | return 0; |
|
|
9143 | } |
|
|
9144 | _ACEOF |
|
|
9145 | rm -f conftest$ac_exeext |
|
|
9146 | if { (ac_try="$ac_link" |
|
|
9147 | case "(($ac_try" in |
|
|
9148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9149 | *) ac_try_echo=$ac_try;; |
|
|
9150 | esac |
|
|
9151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9152 | (eval "$ac_link") 2>&5 |
|
|
9153 | ac_status=$? |
|
|
9154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9155 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9156 | { (case "(($ac_try" in |
|
|
9157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9158 | *) ac_try_echo=$ac_try;; |
|
|
9159 | esac |
|
|
9160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9161 | (eval "$ac_try") 2>&5 |
|
|
9162 | ac_status=$? |
|
|
9163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9164 | (exit $ac_status); }; }; then |
|
|
9165 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9166 | else |
|
|
9167 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9168 | echo "$as_me: failed program was:" >&5 |
|
|
9169 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9170 | |
|
|
9171 | ( exit $ac_status ) |
|
|
9172 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9173 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9174 | See \`config.log' for more details." >&5 |
|
|
9175 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9176 | See \`config.log' for more details." >&2;} |
|
|
9177 | { (exit 77); exit 77; }; } |
|
|
9178 | else |
|
|
9179 | ac_cv_sizeof_int_p=0 |
|
|
9180 | fi |
|
|
9181 | fi |
|
|
9182 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9183 | fi |
|
|
9184 | rm -f conftest.val |
|
|
9185 | fi |
|
|
9186 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9187 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9188 | |
|
|
9189 | |
|
|
9190 | |
|
|
9191 | cat >>confdefs.h <<_ACEOF |
|
|
9192 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9193 | _ACEOF |
|
|
9194 | |
|
|
9195 | |
|
|
9196 | |
|
|
9197 | |
|
|
9198 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9199 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9200 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9202 | else |
|
|
9203 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9204 | /* confdefs.h. */ |
|
|
9205 | _ACEOF |
|
|
9206 | cat confdefs.h >>conftest.$ac_ext |
|
|
9207 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9208 | /* end confdefs.h. */ |
|
|
9209 | #include <stdint.h> |
|
|
9210 | int |
|
|
9211 | main () |
|
|
9212 | { |
|
|
9213 | int16_t dummy; |
|
|
9214 | ; |
|
|
9215 | return 0; |
|
|
9216 | } |
|
|
9217 | _ACEOF |
|
|
9218 | rm -f conftest.$ac_objext |
|
|
9219 | if { (ac_try="$ac_compile" |
|
|
9220 | case "(($ac_try" in |
|
|
9221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9222 | *) ac_try_echo=$ac_try;; |
|
|
9223 | esac |
|
|
9224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9225 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9226 | ac_status=$? |
|
|
9227 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9228 | rm -f conftest.er1 |
|
|
9229 | cat conftest.err >&5 |
|
|
9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9231 | (exit $ac_status); } && { |
|
|
9232 | test -z "$ac_cxx_werror_flag" || |
|
|
9233 | test ! -s conftest.err |
|
|
9234 | } && test -s conftest.$ac_objext; then |
|
|
9235 | rxvt_cv_int16_t=yes |
|
|
9236 | else |
|
|
9237 | echo "$as_me: failed program was:" >&5 |
|
|
9238 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9239 | |
|
|
9240 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9241 | rxvt_cv_int16_t=" char" |
|
|
9242 | else |
|
|
9243 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9244 | rxvt_cv_int16_t=" short" |
|
|
9245 | else |
|
|
9246 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9247 | rxvt_cv_int16_t=" int" |
|
|
9248 | else |
|
|
9249 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9250 | rxvt_cv_int16_t=" long" |
|
|
9251 | else |
|
|
9252 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9253 | rxvt_cv_int16_t=" long long" |
|
|
9254 | else |
|
|
9255 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9256 | fi |
|
|
9257 | fi |
|
|
9258 | fi |
|
|
9259 | fi |
|
|
9260 | fi |
|
|
9261 | fi |
|
|
9262 | |
|
|
9263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9264 | fi |
|
|
9265 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9266 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9267 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9268 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9269 | else |
|
|
9270 | if test x"" = x; then |
|
|
9271 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9272 | else |
|
|
9273 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9274 | fi |
|
|
9275 | fi |
|
|
9276 | |
|
|
9277 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9278 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9279 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9281 | else |
|
|
9282 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9283 | /* confdefs.h. */ |
|
|
9284 | _ACEOF |
|
|
9285 | cat confdefs.h >>conftest.$ac_ext |
|
|
9286 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9287 | /* end confdefs.h. */ |
|
|
9288 | #include <stdint.h> |
|
|
9289 | int |
|
|
9290 | main () |
|
|
9291 | { |
|
|
9292 | uint16_t dummy; |
|
|
9293 | ; |
|
|
9294 | return 0; |
|
|
9295 | } |
|
|
9296 | _ACEOF |
|
|
9297 | rm -f conftest.$ac_objext |
|
|
9298 | if { (ac_try="$ac_compile" |
|
|
9299 | case "(($ac_try" in |
|
|
9300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9301 | *) ac_try_echo=$ac_try;; |
|
|
9302 | esac |
|
|
9303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9304 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9305 | ac_status=$? |
|
|
9306 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9307 | rm -f conftest.er1 |
|
|
9308 | cat conftest.err >&5 |
|
|
9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9310 | (exit $ac_status); } && { |
|
|
9311 | test -z "$ac_cxx_werror_flag" || |
|
|
9312 | test ! -s conftest.err |
|
|
9313 | } && test -s conftest.$ac_objext; then |
|
|
9314 | rxvt_cv_uint16_t=yes |
|
|
9315 | else |
|
|
9316 | echo "$as_me: failed program was:" >&5 |
|
|
9317 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9318 | |
|
|
9319 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9320 | rxvt_cv_uint16_t="unsigned char" |
|
|
9321 | else |
|
|
9322 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9323 | rxvt_cv_uint16_t="unsigned short" |
|
|
9324 | else |
|
|
9325 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9326 | rxvt_cv_uint16_t="unsigned int" |
|
|
9327 | else |
|
|
9328 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9329 | rxvt_cv_uint16_t="unsigned long" |
|
|
9330 | else |
|
|
9331 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9332 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9333 | else |
|
|
9334 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9335 | fi |
|
|
9336 | fi |
|
|
9337 | fi |
|
|
9338 | fi |
|
|
9339 | fi |
|
|
9340 | fi |
|
|
9341 | |
|
|
9342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9343 | fi |
|
|
9344 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9345 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9346 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9347 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9348 | else |
|
|
9349 | if test x"unsigned" = x; then |
|
|
9350 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9351 | else |
|
|
9352 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9353 | fi |
|
|
9354 | fi |
|
|
9355 | |
|
|
9356 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9357 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9358 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9360 | else |
|
|
9361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9362 | /* confdefs.h. */ |
|
|
9363 | _ACEOF |
|
|
9364 | cat confdefs.h >>conftest.$ac_ext |
|
|
9365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9366 | /* end confdefs.h. */ |
|
|
9367 | #include <stdint.h> |
|
|
9368 | int |
|
|
9369 | main () |
|
|
9370 | { |
|
|
9371 | int32_t dummy; |
|
|
9372 | ; |
|
|
9373 | return 0; |
|
|
9374 | } |
|
|
9375 | _ACEOF |
|
|
9376 | rm -f conftest.$ac_objext |
|
|
9377 | if { (ac_try="$ac_compile" |
|
|
9378 | case "(($ac_try" in |
|
|
9379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9380 | *) ac_try_echo=$ac_try;; |
|
|
9381 | esac |
|
|
9382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9383 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9384 | ac_status=$? |
|
|
9385 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9386 | rm -f conftest.er1 |
|
|
9387 | cat conftest.err >&5 |
|
|
9388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9389 | (exit $ac_status); } && { |
|
|
9390 | test -z "$ac_cxx_werror_flag" || |
|
|
9391 | test ! -s conftest.err |
|
|
9392 | } && test -s conftest.$ac_objext; then |
|
|
9393 | rxvt_cv_int32_t=yes |
|
|
9394 | else |
|
|
9395 | echo "$as_me: failed program was:" >&5 |
|
|
9396 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9397 | |
|
|
9398 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9399 | rxvt_cv_int32_t=" char" |
|
|
9400 | else |
|
|
9401 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9402 | rxvt_cv_int32_t=" short" |
|
|
9403 | else |
|
|
9404 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9405 | rxvt_cv_int32_t=" int" |
|
|
9406 | else |
|
|
9407 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9408 | rxvt_cv_int32_t=" long" |
|
|
9409 | else |
|
|
9410 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9411 | rxvt_cv_int32_t=" long long" |
|
|
9412 | else |
|
|
9413 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9414 | fi |
|
|
9415 | fi |
|
|
9416 | fi |
|
|
9417 | fi |
|
|
9418 | fi |
|
|
9419 | fi |
|
|
9420 | |
|
|
9421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9422 | fi |
|
|
9423 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9424 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9425 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9426 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9427 | else |
|
|
9428 | if test x"" = x; then |
|
|
9429 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9430 | else |
|
|
9431 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9432 | fi |
|
|
9433 | fi |
|
|
9434 | |
|
|
9435 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9436 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9437 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9439 | else |
|
|
9440 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9441 | /* confdefs.h. */ |
|
|
9442 | _ACEOF |
|
|
9443 | cat confdefs.h >>conftest.$ac_ext |
|
|
9444 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9445 | /* end confdefs.h. */ |
|
|
9446 | #include <stdint.h> |
|
|
9447 | int |
|
|
9448 | main () |
|
|
9449 | { |
|
|
9450 | uint32_t dummy; |
|
|
9451 | ; |
|
|
9452 | return 0; |
|
|
9453 | } |
|
|
9454 | _ACEOF |
|
|
9455 | rm -f conftest.$ac_objext |
|
|
9456 | if { (ac_try="$ac_compile" |
|
|
9457 | case "(($ac_try" in |
|
|
9458 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9459 | *) ac_try_echo=$ac_try;; |
|
|
9460 | esac |
|
|
9461 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9462 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9463 | ac_status=$? |
|
|
9464 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9465 | rm -f conftest.er1 |
|
|
9466 | cat conftest.err >&5 |
|
|
9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9468 | (exit $ac_status); } && { |
|
|
9469 | test -z "$ac_cxx_werror_flag" || |
|
|
9470 | test ! -s conftest.err |
|
|
9471 | } && test -s conftest.$ac_objext; then |
|
|
9472 | rxvt_cv_uint32_t=yes |
|
|
9473 | else |
|
|
9474 | echo "$as_me: failed program was:" >&5 |
|
|
9475 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9476 | |
|
|
9477 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9478 | rxvt_cv_uint32_t="unsigned char" |
|
|
9479 | else |
|
|
9480 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9481 | rxvt_cv_uint32_t="unsigned short" |
|
|
9482 | else |
|
|
9483 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9484 | rxvt_cv_uint32_t="unsigned int" |
|
|
9485 | else |
|
|
9486 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9487 | rxvt_cv_uint32_t="unsigned long" |
|
|
9488 | else |
|
|
9489 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9490 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9491 | else |
|
|
9492 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9493 | fi |
|
|
9494 | fi |
|
|
9495 | fi |
|
|
9496 | fi |
|
|
9497 | fi |
|
|
9498 | fi |
|
|
9499 | |
|
|
9500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9501 | fi |
|
|
9502 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9503 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9504 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9505 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9506 | else |
|
|
9507 | if test x"unsigned" = x; then |
|
|
9508 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9509 | else |
|
|
9510 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9511 | fi |
|
|
9512 | fi |
|
|
9513 | |
|
|
9514 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9515 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9516 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9517 | else |
|
|
9518 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9519 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9520 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9521 | else |
|
|
9522 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9523 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9524 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9525 | else |
|
|
9526 | rxvt_intp_define="#error set intp_t" |
|
|
9527 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9528 | fi |
|
|
9529 | fi |
|
|
9530 | fi |
|
|
9531 | |
|
|
9532 | |
|
|
9533 | |
|
|
9534 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9535 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9536 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9538 | else |
|
|
9539 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9540 | /* confdefs.h. */ |
|
|
9541 | _ACEOF |
|
|
9542 | cat confdefs.h >>conftest.$ac_ext |
|
|
9543 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9544 | /* end confdefs.h. */ |
|
|
9545 | #include <sys/types.h> |
|
|
9546 | #include <signal.h> |
|
|
9547 | |
|
|
9548 | int |
|
|
9549 | main () |
|
|
9550 | { |
|
|
9551 | return *(signal (0, 0)) (0) == 1; |
|
|
9552 | ; |
|
|
9553 | return 0; |
|
|
9554 | } |
|
|
9555 | _ACEOF |
|
|
9556 | rm -f conftest.$ac_objext |
|
|
9557 | if { (ac_try="$ac_compile" |
|
|
9558 | case "(($ac_try" in |
|
|
9559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9560 | *) ac_try_echo=$ac_try;; |
|
|
9561 | esac |
|
|
9562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9563 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9564 | ac_status=$? |
|
|
9565 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9566 | rm -f conftest.er1 |
|
|
9567 | cat conftest.err >&5 |
|
|
9568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9569 | (exit $ac_status); } && { |
|
|
9570 | test -z "$ac_cxx_werror_flag" || |
|
|
9571 | test ! -s conftest.err |
|
|
9572 | } && test -s conftest.$ac_objext; then |
|
|
9573 | ac_cv_type_signal=int |
|
|
9574 | else |
|
|
9575 | echo "$as_me: failed program was:" >&5 |
|
|
9576 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9577 | |
|
|
9578 | ac_cv_type_signal=void |
|
|
9579 | fi |
|
|
9580 | |
|
|
9581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9582 | fi |
|
|
9583 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9584 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9585 | |
|
|
9586 | cat >>confdefs.h <<_ACEOF |
|
|
9587 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9588 | _ACEOF |
|
|
9589 | |
|
|
9590 | |
|
|
9591 | |
|
|
9592 | |
|
|
9593 | |
|
|
9594 | |
|
|
9595 | for ac_func in \ |
8487 | for ac_func in unsetenv |
9596 | unsetenv \ |
|
|
9597 | setutent \ |
|
|
9598 | on_exit \ |
|
|
9599 | |
|
|
9600 | do |
8488 | do |
9601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9602 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8490 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9604 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8492 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
9743 | |
8631 | |
9744 | |
8632 | |
9745 | |
8633 | |
9746 | |
8634 | |
9747 | for ac_func in \ |
8635 | for ac_func in \ |
9748 | ttyslot \ |
|
|
9749 | updwtmp \ |
8636 | updwtmp \ |
9750 | updwtmpx \ |
8637 | updwtmpx \ |
|
|
8638 | updlastlogx \ |
9751 | |
8639 | |
9752 | do |
8640 | do |
9753 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8641 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9754 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8642 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9755 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8643 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
9841 | fi |
8729 | fi |
9842 | done |
8730 | done |
9843 | |
8731 | |
9844 | |
8732 | |
9845 | |
8733 | |
9846 | |
|
|
9847 | |
|
|
9848 | for ac_header in \ |
8734 | for ac_header in lastlog.h |
9849 | utmp.h \ |
|
|
9850 | utmpx.h \ |
|
|
9851 | lastlog.h \ |
|
|
9852 | |
|
|
9853 | do |
8735 | do |
9854 | 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` |
9855 | 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 |
9856 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8738 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8739 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
9988 | |
8870 | |
9989 | done |
8871 | done |
9990 | |
8872 | |
9991 | |
8873 | |
9992 | |
8874 | |
9993 | 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 |
9994 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9995 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
9996 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9998 | fi |
8884 | fi |
|
|
8885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9999 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10000 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8887 | echo "${ECHO_T}$ac_res" >&6; } |
10001 | else |
8888 | else |
10002 | # Is the header compilable? |
8889 | # Is the header compilable? |
10003 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10004 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10005 | cat >conftest.$ac_ext <<_ACEOF |
8892 | cat >conftest.$ac_ext <<_ACEOF |
10006 | /* confdefs.h. */ |
8893 | /* confdefs.h. */ |
10007 | _ACEOF |
8894 | _ACEOF |
10008 | cat confdefs.h >>conftest.$ac_ext |
8895 | cat confdefs.h >>conftest.$ac_ext |
10009 | cat >>conftest.$ac_ext <<_ACEOF |
8896 | cat >>conftest.$ac_ext <<_ACEOF |
10010 | /* end confdefs.h. */ |
8897 | /* end confdefs.h. */ |
10011 | $ac_includes_default |
8898 | $ac_includes_default |
10012 | #include <utmp.h> |
8899 | #include <$ac_header> |
10013 | _ACEOF |
8900 | _ACEOF |
10014 | rm -f conftest.$ac_objext |
8901 | rm -f conftest.$ac_objext |
10015 | if { (ac_try="$ac_compile" |
8902 | if { (ac_try="$ac_compile" |
10016 | case "(($ac_try" in |
8903 | case "(($ac_try" in |
10017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10040 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10041 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8928 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10042 | |
8929 | |
10043 | # Is the header present? |
8930 | # Is the header present? |
10044 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8931 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10045 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10046 | cat >conftest.$ac_ext <<_ACEOF |
8933 | cat >conftest.$ac_ext <<_ACEOF |
10047 | /* confdefs.h. */ |
8934 | /* confdefs.h. */ |
10048 | _ACEOF |
8935 | _ACEOF |
10049 | cat confdefs.h >>conftest.$ac_ext |
8936 | cat confdefs.h >>conftest.$ac_ext |
10050 | cat >>conftest.$ac_ext <<_ACEOF |
8937 | cat >>conftest.$ac_ext <<_ACEOF |
10051 | /* end confdefs.h. */ |
8938 | /* end confdefs.h. */ |
10052 | #include <utmp.h> |
8939 | #include <$ac_header> |
10053 | _ACEOF |
8940 | _ACEOF |
10054 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10055 | case "(($ac_try" in |
8942 | case "(($ac_try" in |
10056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10057 | *) ac_try_echo=$ac_try;; |
8944 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10080 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8967 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10081 | |
8968 | |
10082 | # So? What about this header? |
8969 | # So? What about this header? |
10083 | 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 |
10084 | yes:no: ) |
8971 | yes:no: ) |
10085 | { 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 |
10086 | 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;} |
10087 | { 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 |
10088 | 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;} |
10089 | ac_header_preproc=yes |
8976 | ac_header_preproc=yes |
10090 | ;; |
8977 | ;; |
10091 | no:yes:* ) |
8978 | no:yes:* ) |
10092 | { 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 |
10093 | 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;} |
10094 | { 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 |
10095 | 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;} |
10096 | { 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 |
10097 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10098 | { 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 |
10099 | 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;} |
10100 | { 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 |
10101 | 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;} |
10102 | { 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 |
10103 | 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;} |
10104 | |
8991 | |
10105 | ;; |
8992 | ;; |
10106 | esac |
8993 | esac |
10107 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10108 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10109 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10111 | else |
8998 | else |
10112 | ac_cv_header_utmp_h=$ac_header_preproc |
8999 | eval "$as_ac_Header=\$ac_header_preproc" |
10113 | fi |
9000 | fi |
|
|
9001 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10114 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
9002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10115 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
9003 | echo "${ECHO_T}$ac_res" >&6; } |
10116 | |
9004 | |
10117 | fi |
9005 | fi |
10118 | 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 |
10119 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
9010 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10120 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
9011 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10121 | if test "${struct_utmp+set}" = set; then |
9012 | if test "${struct_utmp+set}" = set; then |
10122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10123 | else |
9014 | else |
10124 | cat >conftest.$ac_ext <<_ACEOF |
9015 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10291 | |
9182 | |
10292 | fi |
9183 | fi |
10293 | |
9184 | |
10294 | fi |
9185 | fi |
10295 | |
9186 | |
|
|
9187 | done |
10296 | |
9188 | |
10297 | |
9189 | |
10298 | 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 |
10299 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9195 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10300 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10301 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9197 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10303 | fi |
9199 | fi |
|
|
9200 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10304 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9201 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10305 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9202 | echo "${ECHO_T}$ac_res" >&6; } |
10306 | else |
9203 | else |
10307 | # Is the header compilable? |
9204 | # Is the header compilable? |
10308 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9205 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10309 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9206 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10310 | cat >conftest.$ac_ext <<_ACEOF |
9207 | cat >conftest.$ac_ext <<_ACEOF |
10311 | /* confdefs.h. */ |
9208 | /* confdefs.h. */ |
10312 | _ACEOF |
9209 | _ACEOF |
10313 | cat confdefs.h >>conftest.$ac_ext |
9210 | cat confdefs.h >>conftest.$ac_ext |
10314 | cat >>conftest.$ac_ext <<_ACEOF |
9211 | cat >>conftest.$ac_ext <<_ACEOF |
10315 | /* end confdefs.h. */ |
9212 | /* end confdefs.h. */ |
10316 | $ac_includes_default |
9213 | $ac_includes_default |
10317 | #include <utmpx.h> |
9214 | #include <$ac_header> |
10318 | _ACEOF |
9215 | _ACEOF |
10319 | rm -f conftest.$ac_objext |
9216 | rm -f conftest.$ac_objext |
10320 | if { (ac_try="$ac_compile" |
9217 | if { (ac_try="$ac_compile" |
10321 | case "(($ac_try" in |
9218 | case "(($ac_try" in |
10322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9241 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10345 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9242 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10346 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9243 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10347 | |
9244 | |
10348 | # Is the header present? |
9245 | # Is the header present? |
10349 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9246 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10350 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10351 | cat >conftest.$ac_ext <<_ACEOF |
9248 | cat >conftest.$ac_ext <<_ACEOF |
10352 | /* confdefs.h. */ |
9249 | /* confdefs.h. */ |
10353 | _ACEOF |
9250 | _ACEOF |
10354 | cat confdefs.h >>conftest.$ac_ext |
9251 | cat confdefs.h >>conftest.$ac_ext |
10355 | cat >>conftest.$ac_ext <<_ACEOF |
9252 | cat >>conftest.$ac_ext <<_ACEOF |
10356 | /* end confdefs.h. */ |
9253 | /* end confdefs.h. */ |
10357 | #include <utmpx.h> |
9254 | #include <$ac_header> |
10358 | _ACEOF |
9255 | _ACEOF |
10359 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9256 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10360 | case "(($ac_try" in |
9257 | case "(($ac_try" in |
10361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10362 | *) ac_try_echo=$ac_try;; |
9259 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10385 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9282 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10386 | |
9283 | |
10387 | # So? What about this header? |
9284 | # So? What about this header? |
10388 | 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 |
10389 | yes:no: ) |
9286 | yes:no: ) |
10390 | { 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 |
10391 | 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;} |
10392 | { 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 |
10393 | 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;} |
10394 | ac_header_preproc=yes |
9291 | ac_header_preproc=yes |
10395 | ;; |
9292 | ;; |
10396 | no:yes:* ) |
9293 | no:yes:* ) |
10397 | { 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 |
10398 | 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;} |
10399 | { 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 |
10400 | 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;} |
10401 | { 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 |
10402 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9299 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10403 | { 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 |
10404 | 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;} |
10405 | { 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 |
10406 | 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;} |
10407 | { 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 |
10408 | 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;} |
10409 | |
9306 | |
10410 | ;; |
9307 | ;; |
10411 | esac |
9308 | esac |
10412 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9309 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10413 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10414 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10416 | else |
9313 | else |
10417 | ac_cv_header_utmpx_h=$ac_header_preproc |
9314 | eval "$as_ac_Header=\$ac_header_preproc" |
10418 | fi |
9315 | fi |
|
|
9316 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10419 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10420 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9318 | echo "${ECHO_T}$ac_res" >&6; } |
10421 | |
9319 | |
10422 | fi |
9320 | fi |
10423 | 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 |
10424 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9325 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10425 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9326 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
10426 | if test "${struct_utmpx+set}" = set; then |
9327 | if test "${struct_utmpx+set}" = set; then |
10427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10428 | else |
9329 | else |
10429 | cat >conftest.$ac_ext <<_ACEOF |
9330 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10596 | |
9497 | |
10597 | fi |
9498 | fi |
10598 | |
9499 | |
10599 | fi |
9500 | fi |
10600 | |
9501 | |
|
|
9502 | done |
10601 | |
9503 | |
10602 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9504 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10603 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9505 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
10604 | if test "${struct_lastlog+set}" = set; then |
9506 | if test "${struct_lastlog+set}" = set; then |
10605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11176 | |
10078 | |
11177 | cat >>confdefs.h <<_ACEOF |
10079 | cat >>confdefs.h <<_ACEOF |
11178 | #define LASTLOG_FILE "$path_lastlog" |
10080 | #define LASTLOG_FILE "$path_lastlog" |
11179 | _ACEOF |
10081 | _ACEOF |
11180 | |
10082 | |
11181 | if test -d "$path_lastlog"; then |
|
|
11182 | |
|
|
11183 | cat >>confdefs.h <<\_ACEOF |
|
|
11184 | #define LASTLOG_IS_DIR 1 |
|
|
11185 | _ACEOF |
|
|
11186 | |
|
|
11187 | fi |
|
|
11188 | fi |
10083 | fi |
11189 | |
10084 | |
11190 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10085 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11191 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10086 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11192 | if test "${path_lastlogx+set}" = set; then |
10087 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11274 | |
10169 | |
11275 | fi |
10170 | fi |
11276 | |
10171 | |
11277 | |
10172 | |
11278 | |
10173 | |
11279 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11280 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11281 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11283 | else |
|
|
11284 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11285 | do |
|
|
11286 | if test -f "$ttys_file" ; then |
|
|
11287 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11288 | break |
|
|
11289 | fi |
|
|
11290 | done |
|
|
11291 | |
10174 | |
11292 | fi |
|
|
11293 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11294 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11295 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11296 | |
|
|
11297 | cat >>confdefs.h <<_ACEOF |
|
|
11298 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11299 | _ACEOF |
|
|
11300 | |
|
|
11301 | fi |
|
|
11302 | |
|
|
11303 | |
|
|
11304 | ac_save_LIBS=$LIBS |
10175 | save_LIBS=$LIBS |
11305 | ac_save_CFLAGS=$CFLAGS |
10176 | save_CFLAGS=$CFLAGS |
11306 | CFLAGS="$CFLAGS $X_CFLAGS" |
10177 | CFLAGS="$CFLAGS $X_CFLAGS" |
11307 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10178 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
10179 | if test x$support_xim = xyes; then |
11308 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10180 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11309 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10181 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11310 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
10182 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11312 | else |
10184 | else |
11313 | if test "$cross_compiling" = yes; then |
10185 | if test "$cross_compiling" = yes; then |
11314 | : |
10186 | : |
11315 | else |
10187 | else |
11316 | cat >conftest.$ac_ext <<_ACEOF |
10188 | cat >conftest.$ac_ext <<_ACEOF |
11317 | /* confdefs.h. */ |
10189 | /* confdefs.h. */ |
11318 | _ACEOF |
10190 | _ACEOF |
11319 | cat confdefs.h >>conftest.$ac_ext |
10191 | cat confdefs.h >>conftest.$ac_ext |
11320 | cat >>conftest.$ac_ext <<_ACEOF |
10192 | cat >>conftest.$ac_ext <<_ACEOF |
11321 | /* end confdefs.h. */ |
10193 | /* end confdefs.h. */ |
11322 | #include <X11/Xlib.h> |
10194 | #include <X11/Xlib.h> |
11323 | #include <stdlib.h> |
10195 | #include <stdlib.h> |
11324 | main() { |
10196 | main() { |
11325 | char *p; |
10197 | char *p; |
11326 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10198 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11327 | exit (XSupportsLocale() ? 0 : 1); |
10199 | exit (XSupportsLocale() ? 0 : 1); |
11328 | else |
10200 | else |
11329 | exit (1);} |
10201 | exit (1);} |
11330 | _ACEOF |
10202 | _ACEOF |
11331 | rm -f conftest$ac_exeext |
10203 | rm -f conftest$ac_exeext |
11332 | if { (ac_try="$ac_link" |
10204 | if { (ac_try="$ac_link" |
11333 | case "(($ac_try" in |
10205 | case "(($ac_try" in |
11334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11347 | (eval "$ac_try") 2>&5 |
10219 | (eval "$ac_try") 2>&5 |
11348 | ac_status=$? |
10220 | ac_status=$? |
11349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11350 | (exit $ac_status); }; }; then |
10222 | (exit $ac_status); }; }; then |
11351 | rxvt_cv_func_xlocale=yes |
10223 | rxvt_cv_func_xlocale=yes |
11352 | else |
10224 | else |
11353 | echo "$as_me: program exited with status $ac_status" >&5 |
10225 | echo "$as_me: program exited with status $ac_status" >&5 |
11354 | echo "$as_me: failed program was:" >&5 |
10226 | echo "$as_me: failed program was:" >&5 |
11355 | sed 's/^/| /' conftest.$ac_ext >&5 |
10227 | sed 's/^/| /' conftest.$ac_ext >&5 |
11356 | |
10228 | |
… | |
… | |
11362 | |
10234 | |
11363 | |
10235 | |
11364 | fi |
10236 | fi |
11365 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10237 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11366 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
10238 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
11367 | if test x$support_xim = xyes; then |
|
|
11368 | if test x$rxvt_cv_func_xlocale = xyes; then |
10239 | if test x$rxvt_cv_func_xlocale = xyes; then |
11369 | |
10240 | |
11370 | cat >>confdefs.h <<\_ACEOF |
10241 | cat >>confdefs.h <<\_ACEOF |
11371 | #define USE_XIM 1 |
10242 | #define USE_XIM 1 |
11372 | _ACEOF |
10243 | _ACEOF |
11373 | |
10244 | |
|
|
10245 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10246 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
10247 | if test "${rxvt_cv_broken_ximcb+set}" = set; then |
|
|
10248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10249 | else |
|
|
10250 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10251 | |
|
|
10252 | #include <X11/Xlib.h> |
|
|
10253 | |
|
|
10254 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10255 | |
|
|
10256 | void f() { |
|
|
10257 | XIMCallback cb; |
|
|
10258 | cb.callback = im_destroy_cb; |
|
|
10259 | } |
|
|
10260 | |
|
|
10261 | _ACEOF |
|
|
10262 | rm -f conftest.$ac_objext |
|
|
10263 | if { (ac_try="$ac_compile" |
|
|
10264 | case "(($ac_try" in |
|
|
10265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10266 | *) ac_try_echo=$ac_try;; |
|
|
10267 | esac |
|
|
10268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10269 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10270 | ac_status=$? |
|
|
10271 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10272 | rm -f conftest.er1 |
|
|
10273 | cat conftest.err >&5 |
|
|
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10275 | (exit $ac_status); } && { |
|
|
10276 | test -z "$ac_cxx_werror_flag" || |
|
|
10277 | test ! -s conftest.err |
|
|
10278 | } && test -s conftest.$ac_objext; then |
|
|
10279 | rxvt_cv_broken_ximcb=yes |
|
|
10280 | else |
|
|
10281 | echo "$as_me: failed program was:" >&5 |
|
|
10282 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10283 | |
|
|
10284 | rxvt_cv_broken_ximcb=no |
|
|
10285 | fi |
|
|
10286 | |
|
|
10287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10288 | fi |
|
|
10289 | { echo "$as_me:$LINENO: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
10290 | echo "${ECHO_T}$rxvt_cv_broken_ximcb" >&6; } |
|
|
10291 | |
|
|
10292 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
10293 | |
|
|
10294 | cat >>confdefs.h <<\_ACEOF |
|
|
10295 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10296 | _ACEOF |
|
|
10297 | |
|
|
10298 | fi |
11374 | fi |
10299 | fi |
11375 | fi |
10300 | fi |
11376 | |
10301 | |
11377 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10302 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11378 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10303 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
… | |
… | |
11431 | cat >>confdefs.h <<\_ACEOF |
10356 | cat >>confdefs.h <<\_ACEOF |
11432 | #define HAVE_XSETLOCALE 1 |
10357 | #define HAVE_XSETLOCALE 1 |
11433 | _ACEOF |
10358 | _ACEOF |
11434 | |
10359 | |
11435 | fi |
10360 | fi |
11436 | LIBS=$ac_save_LIBS |
10361 | LIBS=$save_LIBS |
11437 | CFLAGS=$ac_save_CFLAGS |
10362 | CFLAGS=$save_CFLAGS |
11438 | |
10363 | |
11439 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10364 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11440 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10365 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11441 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10366 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11646 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10571 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
11647 | { (exit 1); exit 1; }; } |
10572 | { (exit 1); exit 1; }; } |
11648 | fi |
10573 | fi |
11649 | |
10574 | |
11650 | |
10575 | |
11651 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
11652 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
11653 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
11654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11655 | else |
|
|
11656 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11657 | |
|
|
11658 | #include <X11/Xlib.h> |
|
|
11659 | |
|
|
11660 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
11661 | |
|
|
11662 | void f() { |
|
|
11663 | XIMCallback cb; |
|
|
11664 | cb.callback = im_destroy_cb; |
|
|
11665 | } |
|
|
11666 | |
|
|
11667 | _ACEOF |
|
|
11668 | rm -f conftest.$ac_objext |
|
|
11669 | if { (ac_try="$ac_compile" |
|
|
11670 | case "(($ac_try" in |
|
|
11671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
11672 | *) ac_try_echo=$ac_try;; |
|
|
11673 | esac |
|
|
11674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
11675 | (eval "$ac_compile") 2>conftest.er1 |
|
|
11676 | ac_status=$? |
|
|
11677 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11678 | rm -f conftest.er1 |
|
|
11679 | cat conftest.err >&5 |
|
|
11680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11681 | (exit $ac_status); } && { |
|
|
11682 | test -z "$ac_cxx_werror_flag" || |
|
|
11683 | test ! -s conftest.err |
|
|
11684 | } && test -s conftest.$ac_objext; then |
|
|
11685 | rxvt_broken_ximcb=yes |
|
|
11686 | else |
|
|
11687 | echo "$as_me: failed program was:" >&5 |
|
|
11688 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11689 | |
|
|
11690 | rxvt_broken_ximcb=no |
|
|
11691 | fi |
|
|
11692 | |
|
|
11693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11694 | fi |
|
|
11695 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
11696 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
11697 | |
|
|
11698 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
11699 | |
|
|
11700 | cat >>confdefs.h <<\_ACEOF |
|
|
11701 | #define XIMCB_PROTO_BROKEN 1 |
|
|
11702 | _ACEOF |
|
|
11703 | |
|
|
11704 | fi |
|
|
11705 | |
10576 | |
11706 | |
10577 | |
11707 | |
10578 | |
11708 | |
10579 | |
11709 | |
10580 | |
… | |
… | |
11713 | pty.h \ |
10584 | pty.h \ |
11714 | util.h \ |
10585 | util.h \ |
11715 | libutil.h \ |
10586 | libutil.h \ |
11716 | sys/ioctl.h \ |
10587 | sys/ioctl.h \ |
11717 | sys/stropts.h \ |
10588 | sys/stropts.h \ |
|
|
10589 | stropts.h \ |
11718 | |
10590 | |
11719 | do |
10591 | do |
11720 | 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` |
11721 | 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 |
11722 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10594 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
12390 | echo "${ECHO_T}no" >&6; } |
11262 | echo "${ECHO_T}no" >&6; } |
12391 | fi |
11263 | fi |
12392 | |
11264 | |
12393 | |
11265 | |
12394 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11266 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12395 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11267 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12396 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11268 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12397 | else |
11269 | else |
12398 | # Extract the first word of "xft-config", so it can be a program name with args. |
11270 | # Extract the first word of "xft-config", so it can be a program name with args. |
12399 | set dummy xft-config; ac_word=$2 |
11271 | set dummy xft-config; ac_word=$2 |
12400 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12435 | echo "${ECHO_T}no" >&6; } |
11307 | echo "${ECHO_T}no" >&6; } |
12436 | fi |
11308 | fi |
12437 | |
11309 | |
12438 | |
11310 | |
12439 | if test $XFT_CONFIG != no; then |
11311 | if test $XFT_CONFIG != no; then |
12440 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11312 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12441 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11313 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12442 | fi |
11314 | fi |
12443 | fi |
11315 | fi |
12444 | |
11316 | |
|
|
11317 | save_LIBS="$LIBS" |
|
|
11318 | LIBS="$LIBS $X_LIBS" |
12445 | |
11319 | |
12446 | for ac_header in X11/Xft/Xft.h |
11320 | for ac_header in X11/Xft/Xft.h |
12447 | do |
11321 | do |
12448 | 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` |
12449 | 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 |
… | |
… | |
12582 | support_xft=no |
11456 | support_xft=no |
12583 | fi |
11457 | fi |
12584 | |
11458 | |
12585 | done |
11459 | done |
12586 | |
11460 | |
12587 | |
|
|
12588 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11461 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12589 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11462 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12590 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11463 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12592 | else |
11465 | else |
12593 | ac_check_lib_save_LIBS=$LIBS |
11466 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
12645 | LIBS=$ac_check_lib_save_LIBS |
11518 | LIBS=$ac_check_lib_save_LIBS |
12646 | fi |
11519 | fi |
12647 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11520 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
12648 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11521 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
12649 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11522 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
12650 | cat >>confdefs.h <<_ACEOF |
11523 | : |
12651 | #define HAVE_LIBXFT 1 |
|
|
12652 | _ACEOF |
|
|
12653 | |
|
|
12654 | LIBS="-lXft $LIBS" |
|
|
12655 | |
|
|
12656 | else |
11524 | else |
12657 | support_xft=no |
11525 | support_xft=no |
12658 | fi |
11526 | fi |
12659 | |
11527 | |
|
|
11528 | LIBS="$save_LIBS" |
12660 | |
11529 | |
12661 | if test x$support_xft = xyes; then |
11530 | if test x$support_xft = xyes; then |
12662 | |
11531 | |
12663 | cat >>confdefs.h <<\_ACEOF |
11532 | cat >>confdefs.h <<\_ACEOF |
12664 | #define XFT 1 |
11533 | #define XFT 1 |
… | |
… | |
12692 | cat >>confdefs.h <<\_ACEOF |
11561 | cat >>confdefs.h <<\_ACEOF |
12693 | #define OFF_FOCUS_FADING 1 |
11562 | #define OFF_FOCUS_FADING 1 |
12694 | _ACEOF |
11563 | _ACEOF |
12695 | |
11564 | |
12696 | fi |
11565 | fi |
12697 | if test x$support_tinting = xyes; then |
|
|
12698 | |
|
|
12699 | cat >>confdefs.h <<\_ACEOF |
|
|
12700 | #define TINTING 1 |
|
|
12701 | _ACEOF |
|
|
12702 | |
|
|
12703 | fi |
|
|
12704 | if test x$support_inheritpixmap = xyes; then |
11566 | if test x$support_inheritpixmap = xyes; then |
12705 | |
11567 | |
12706 | cat >>confdefs.h <<\_ACEOF |
11568 | cat >>confdefs.h <<\_ACEOF |
12707 | #define ENABLE_TRANSPARENCY 1 |
11569 | #define ENABLE_TRANSPARENCY 1 |
12708 | _ACEOF |
11570 | _ACEOF |
… | |
… | |
12720 | cat >>confdefs.h <<\_ACEOF |
11582 | cat >>confdefs.h <<\_ACEOF |
12721 | #define SELECTION_SCROLLING 1 |
11583 | #define SELECTION_SCROLLING 1 |
12722 | _ACEOF |
11584 | _ACEOF |
12723 | |
11585 | |
12724 | fi |
11586 | fi |
|
|
11587 | if test x$support_frills = xyes; then |
|
|
11588 | |
|
|
11589 | cat >>confdefs.h <<\_ACEOF |
|
|
11590 | #define ENABLE_FRILLS 1 |
|
|
11591 | _ACEOF |
|
|
11592 | |
|
|
11593 | fi |
12725 | if test x$support_mousewheel = xyes; then |
11594 | if test x$support_mousewheel = xyes; then |
12726 | |
11595 | |
12727 | cat >>confdefs.h <<\_ACEOF |
11596 | cat >>confdefs.h <<\_ACEOF |
12728 | #define MOUSE_WHEEL 1 |
11597 | #define MOUSE_WHEEL 1 |
12729 | _ACEOF |
11598 | _ACEOF |
… | |
… | |
12742 | #define HAVE_AFTERIMAGE 1 |
11611 | #define HAVE_AFTERIMAGE 1 |
12743 | _ACEOF |
11612 | _ACEOF |
12744 | |
11613 | |
12745 | |
11614 | |
12746 | cat >>confdefs.h <<\_ACEOF |
11615 | cat >>confdefs.h <<\_ACEOF |
12747 | #define XPM_BACKGROUND 1 |
11616 | #define BG_IMAGE_FROM_FILE 1 |
12748 | _ACEOF |
11617 | _ACEOF |
12749 | |
11618 | |
12750 | fi |
11619 | fi |
|
|
11620 | |
|
|
11621 | |
|
|
11622 | scrolltypes=plain |
|
|
11623 | |
|
|
11624 | cat >>confdefs.h <<\_ACEOF |
|
|
11625 | #define PLAIN_SCROLLBAR 1 |
|
|
11626 | _ACEOF |
12751 | |
11627 | |
12752 | |
11628 | |
12753 | if test x$support_scroll_rxvt = xyes; then |
11629 | if test x$support_scroll_rxvt = xyes; then |
12754 | |
11630 | |
12755 | cat >>confdefs.h <<\_ACEOF |
11631 | cat >>confdefs.h <<\_ACEOF |
12756 | #define RXVT_SCROLLBAR 1 |
11632 | #define RXVT_SCROLLBAR 1 |
12757 | _ACEOF |
11633 | _ACEOF |
12758 | |
11634 | |
12759 | scrolltypes="rxvt" |
11635 | scrolltypes="$scrolltypes rxvt" |
12760 | fi |
11636 | fi |
12761 | if test x$support_scroll_next = xyes; then |
11637 | if test x$support_scroll_next = xyes; then |
12762 | |
11638 | |
12763 | cat >>confdefs.h <<\_ACEOF |
11639 | cat >>confdefs.h <<\_ACEOF |
12764 | #define NEXT_SCROLLBAR 1 |
11640 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
12771 | cat >>confdefs.h <<\_ACEOF |
11647 | cat >>confdefs.h <<\_ACEOF |
12772 | #define XTERM_SCROLLBAR 1 |
11648 | #define XTERM_SCROLLBAR 1 |
12773 | _ACEOF |
11649 | _ACEOF |
12774 | |
11650 | |
12775 | scrolltypes="$scrolltypes xterm" |
11651 | scrolltypes="$scrolltypes xterm" |
12776 | fi |
|
|
12777 | if test x$support_scroll_plain = xyes; then |
|
|
12778 | |
|
|
12779 | cat >>confdefs.h <<\_ACEOF |
|
|
12780 | #define PLAIN_SCROLLBAR 1 |
|
|
12781 | _ACEOF |
|
|
12782 | |
|
|
12783 | scrolltypes="$scrolltypes plain" |
|
|
12784 | fi |
11652 | fi |
12785 | if test x$support_pointer_blank = xyes; then |
11653 | if test x$support_pointer_blank = xyes; then |
12786 | |
11654 | |
12787 | cat >>confdefs.h <<\_ACEOF |
11655 | cat >>confdefs.h <<\_ACEOF |
12788 | #define POINTER_BLANK 1 |
11656 | #define POINTER_BLANK 1 |
… | |
… | |
13025 | |
11893 | |
13026 | |
11894 | |
13027 | |
11895 | |
13028 | |
11896 | |
13029 | |
11897 | |
13030 | if test x$support_perl = xyes; then |
|
|
13031 | support_frills=yes |
|
|
13032 | fi |
|
|
13033 | |
|
|
13034 | if test x$support_frills = xyes; then |
|
|
13035 | |
|
|
13036 | cat >>confdefs.h <<\_ACEOF |
|
|
13037 | #define ENABLE_FRILLS 1 |
|
|
13038 | _ACEOF |
|
|
13039 | |
|
|
13040 | fi |
|
|
13041 | |
|
|
13042 | |
11898 | |
13043 | |
11899 | |
13044 | |
11900 | |
13045 | |
11901 | |
13046 | |
11902 | |
… | |
… | |
13063 | _ACEOF |
11919 | _ACEOF |
13064 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11920 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13065 | rm -f conftest.sed |
11921 | rm -f conftest.sed |
13066 | |
11922 | |
13067 | |
11923 | |
13068 | |
|
|
13069 | |
|
|
13070 | |
|
|
13071 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13072 | include_stdint_h="#include <stdint.h>" |
|
|
13073 | else |
|
|
13074 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13075 | fi |
|
|
13076 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13077 | include_stdarg_h="#include <cstdarg>" |
|
|
13078 | else |
|
|
13079 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13080 | fi |
|
|
13081 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13082 | include_stdlib_h="#include <cstdlib>" |
|
|
13083 | else |
|
|
13084 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13085 | fi |
|
|
13086 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13087 | include_unistd_h="#include <unistd.h>" |
|
|
13088 | else |
|
|
13089 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13090 | fi |
|
|
13091 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13092 | include_string_h="#include <cstring>" |
|
|
13093 | else |
|
|
13094 | include_string_h="/* #include <cstring> */" |
|
|
13095 | fi |
|
|
13096 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13097 | include_fcntl_h="#include <fcntl.h>" |
|
|
13098 | else |
|
|
13099 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13100 | fi |
|
|
13101 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13102 | include_util_h="#include <util.h>" |
|
|
13103 | else |
|
|
13104 | include_util_h="/* #include <util.h> */" |
|
|
13105 | fi |
|
|
13106 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13107 | include_assert_h="#include <assert.h>" |
|
|
13108 | else |
|
|
13109 | include_assert_h="/* #include <assert.h> */" |
|
|
13110 | fi |
|
|
13111 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13112 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13113 | else |
|
|
13114 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13115 | fi |
|
|
13116 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13117 | include_sys_select_h="#include <sys/select.h>" |
|
|
13118 | else |
|
|
13119 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13120 | fi |
|
|
13121 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13122 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13123 | else |
|
|
13124 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13125 | fi |
|
|
13126 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13127 | include_sys_time_h="#include <sys/time.h>" |
|
|
13128 | else |
|
|
13129 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13130 | fi |
|
|
13131 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13132 | include_time_h="#include <time.h>" |
|
|
13133 | else |
|
|
13134 | include_time_h="/* #include <time.h> */" |
|
|
13135 | fi |
|
|
13136 | |
|
|
13137 | 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" |
13138 | |
11925 | |
13139 | cat >confcache <<\_ACEOF |
11926 | cat >confcache <<\_ACEOF |
13140 | # 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 |
13141 | # 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 |
13142 | # scripts and configure runs, see configure's option --config-cache. |
11929 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13691 | case $ac_config_target in |
12478 | case $ac_config_target in |
13692 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12479 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
13693 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12480 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13694 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12481 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13695 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12482 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13696 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
13697 | |
12483 | |
13698 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12484 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13699 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12485 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13700 | { (exit 1); exit 1; }; };; |
12486 | { (exit 1); exit 1; }; };; |
13701 | esac |
12487 | esac |
… | |
… | |
13800 | host_cpu!$host_cpu$ac_delim |
12586 | host_cpu!$host_cpu$ac_delim |
13801 | host_vendor!$host_vendor$ac_delim |
12587 | host_vendor!$host_vendor$ac_delim |
13802 | host_os!$host_os$ac_delim |
12588 | host_os!$host_os$ac_delim |
13803 | VERSION!$VERSION$ac_delim |
12589 | VERSION!$VERSION$ac_delim |
13804 | DATE!$DATE$ac_delim |
12590 | DATE!$DATE$ac_delim |
13805 | LSMDATE!$LSMDATE$ac_delim |
|
|
13806 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
13807 | CC!$CC$ac_delim |
12591 | CC!$CC$ac_delim |
13808 | CFLAGS!$CFLAGS$ac_delim |
12592 | CFLAGS!$CFLAGS$ac_delim |
13809 | LDFLAGS!$LDFLAGS$ac_delim |
12593 | LDFLAGS!$LDFLAGS$ac_delim |
13810 | CPPFLAGS!$CPPFLAGS$ac_delim |
12594 | CPPFLAGS!$CPPFLAGS$ac_delim |
13811 | ac_ct_CC!$ac_ct_CC$ac_delim |
12595 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
13819 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12603 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
13820 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12604 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
13821 | GREP!$GREP$ac_delim |
12605 | GREP!$GREP$ac_delim |
13822 | EGREP!$EGREP$ac_delim |
12606 | EGREP!$EGREP$ac_delim |
13823 | LINKER!$LINKER$ac_delim |
12607 | LINKER!$LINKER$ac_delim |
13824 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
13825 | RXVTNAME!$RXVTNAME$ac_delim |
12608 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12609 | CXXCPP!$CXXCPP$ac_delim |
13826 | TIC!$TIC$ac_delim |
12610 | TIC!$TIC$ac_delim |
13827 | XMKMF!$XMKMF$ac_delim |
12611 | XMKMF!$XMKMF$ac_delim |
13828 | CXXCPP!$CXXCPP$ac_delim |
|
|
13829 | X_CFLAGS!$X_CFLAGS$ac_delim |
12612 | X_CFLAGS!$X_CFLAGS$ac_delim |
13830 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12613 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
13831 | X_LIBS!$X_LIBS$ac_delim |
12614 | X_LIBS!$X_LIBS$ac_delim |
13832 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12615 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
13833 | afterimage_config!$afterimage_config$ac_delim |
12616 | afterimage_config!$afterimage_config$ac_delim |
13834 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
13835 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
13836 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
13837 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
13838 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
13839 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
13840 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12617 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
13841 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12618 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
13842 | PERL!$PERL$ac_delim |
12619 | PERL!$PERL$ac_delim |
13843 | PERLLIB!$PERLLIB$ac_delim |
12620 | PERLLIB!$PERLLIB$ac_delim |
13844 | PERLFLAGS!$PERLFLAGS$ac_delim |
12621 | PERLFLAGS!$PERLFLAGS$ac_delim |
13845 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12622 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
13846 | IF_PERL!$IF_PERL$ac_delim |
12623 | IF_PERL!$IF_PERL$ac_delim |
13847 | PERL_O!$PERL_O$ac_delim |
12624 | PERL_O!$PERL_O$ac_delim |
13848 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12625 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
13849 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12626 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
13850 | include_stdint_h!$include_stdint_h$ac_delim |
12627 | LIBOBJS!$LIBOBJS$ac_delim |
13851 | include_stdarg_h!$include_stdarg_h$ac_delim |
12628 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
13852 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
13853 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
13854 | include_string_h!$include_string_h$ac_delim |
|
|
13855 | _ACEOF |
12629 | _ACEOF |
13856 | |
12630 | |
13857 | 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 |
13858 | break |
12632 | break |
13859 | elif $ac_last_try; then |
12633 | elif $ac_last_try; then |
13860 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12634 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
13861 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12635 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
13862 | { (exit 1); exit 1; }; } |
12636 | { (exit 1); exit 1; }; } |
… | |
… | |
13871 | ac_eof=`expr $ac_eof + 1` |
12645 | ac_eof=`expr $ac_eof + 1` |
13872 | fi |
12646 | fi |
13873 | |
12647 | |
13874 | cat >>$CONFIG_STATUS <<_ACEOF |
12648 | cat >>$CONFIG_STATUS <<_ACEOF |
13875 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12649 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
13876 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
13877 | _ACEOF |
|
|
13878 | sed ' |
|
|
13879 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
13880 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
13881 | :n |
|
|
13882 | t n |
|
|
13883 | s/'"$ac_delim"'$/,g/; t |
|
|
13884 | s/$/\\/; p |
|
|
13885 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
13886 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
13887 | rm -f conf$$subs.sed |
|
|
13888 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13889 | CEOF$ac_eof |
|
|
13890 | _ACEOF |
|
|
13891 | |
|
|
13892 | |
|
|
13893 | ac_delim='%!_!# ' |
|
|
13894 | for ac_last_try in false false false false false :; do |
|
|
13895 | cat >conf$$subs.sed <<_ACEOF |
|
|
13896 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
13897 | include_util_h!$include_util_h$ac_delim |
|
|
13898 | include_assert_h!$include_assert_h$ac_delim |
|
|
13899 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
13900 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
13901 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
13902 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
13903 | include_time_h!$include_time_h$ac_delim |
|
|
13904 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
13905 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
13906 | _ACEOF |
|
|
13907 | |
|
|
13908 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then |
|
|
13909 | break |
|
|
13910 | elif $ac_last_try; then |
|
|
13911 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
13912 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
13913 | { (exit 1); exit 1; }; } |
|
|
13914 | else |
|
|
13915 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
13916 | fi |
|
|
13917 | done |
|
|
13918 | |
|
|
13919 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
13920 | if test -n "$ac_eof"; then |
|
|
13921 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
13922 | ac_eof=`expr $ac_eof + 1` |
|
|
13923 | fi |
|
|
13924 | |
|
|
13925 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
13926 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
13927 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12650 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
13928 | _ACEOF |
12651 | _ACEOF |
13929 | sed ' |
12652 | sed ' |
13930 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12653 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
13931 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12654 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14184 | s&@builddir@&$ac_builddir&;t t |
12907 | s&@builddir@&$ac_builddir&;t t |
14185 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12908 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14186 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12909 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14187 | s&@INSTALL@&$ac_INSTALL&;t t |
12910 | s&@INSTALL@&$ac_INSTALL&;t t |
14188 | $ac_datarootdir_hack |
12911 | $ac_datarootdir_hack |
14189 | " $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 |
14190 | |
12913 | |
14191 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12914 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14192 | { 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"; } && |
14193 | { 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"; } && |
14194 | { 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' |