… | |
… | |
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 | XPM_CPPFLAGS |
|
|
693 | XPM_CFLAGS |
|
|
694 | XPM_LIBS |
|
|
695 | rxvt_int16_typedef |
|
|
696 | rxvt_uint16_typedef |
|
|
697 | rxvt_int32_typedef |
|
|
698 | rxvt_uint32_typedef |
|
|
699 | rxvt_intp_define |
|
|
700 | rxvt_u_intp_define |
|
|
701 | PKG_CONFIG |
689 | PKG_CONFIG |
702 | XFT_CONFIG |
690 | XFT_CONFIG |
703 | PERL |
691 | PERL |
704 | PERLLIB |
692 | PERLLIB |
705 | PERLFLAGS |
693 | PERLFLAGS |
706 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
707 | IF_PERL |
695 | IF_PERL |
708 | PERL_O |
696 | PERL_O |
709 | AFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
710 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
711 | include_stdint_h |
|
|
712 | include_stdarg_h |
|
|
713 | include_stdlib_h |
|
|
714 | include_unistd_h |
|
|
715 | include_string_h |
|
|
716 | include_fcntl_h |
|
|
717 | include_util_h |
|
|
718 | include_assert_h |
|
|
719 | include_sys_ioctl_h |
|
|
720 | include_sys_select_h |
|
|
721 | include_sys_strredir_h |
|
|
722 | include_sys_time_h |
|
|
723 | include_time_h |
|
|
724 | LIBOBJS |
699 | LIBOBJS |
725 | LTLIBOBJS' |
700 | LTLIBOBJS' |
726 | ac_subst_files='' |
701 | ac_subst_files='' |
727 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
728 | host_alias |
703 | host_alias |
… | |
… | |
734 | CPPFLAGS |
709 | CPPFLAGS |
735 | CXX |
710 | CXX |
736 | CXXFLAGS |
711 | CXXFLAGS |
737 | CCC |
712 | CCC |
738 | CPP |
713 | CPP |
739 | XMKMF |
|
|
740 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
741 | |
716 | |
742 | |
717 | |
743 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
744 | ac_init_help= |
719 | ac_init_help= |
745 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1318 | |
1293 | |
1319 | Optional Features: |
1294 | Optional Features: |
1320 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1321 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1322 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1323 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1324 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-warnings turn on g++ warnings |
1325 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1300 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1326 | --enable-combining enable composition of base and combining characters |
1301 | --enable-combining enable composition of base and combining characters |
1327 | --enable-xft enable xft support on systems that have it |
1302 | --enable-xft enable xft support on systems that have it |
1328 | --enable-font-styles enable bold and italic support |
1303 | --enable-font-styles enable bold and italic support |
1329 | --enable-xpm-background enable background pixmaps |
|
|
1330 | --enable-afterimage enable integration with libAfterImage for background images |
1304 | --enable-afterimage enable integration with libAfterImage for background images |
1331 | --enable-afterstep enable integration with AfterStep window manager |
|
|
1332 | --enable-transparency enable transparent backgrounds |
1305 | --enable-transparency enable transparent backgrounds |
1333 | --enable-tinting enable tinting of transparent bg |
|
|
1334 | --enable-fading enable colors fading when off focus |
1306 | --enable-fading enable colors fading when off focus |
1335 | --enable-rxvt-scroll enable rxvt style scrollbar |
1307 | --enable-rxvt-scroll enable rxvt style scrollbar |
1336 | --enable-next-scroll enable NeXT style scrollbar |
1308 | --enable-next-scroll enable NeXT style scrollbar |
1337 | --enable-xterm-scroll enable Xterm style scrollbar |
1309 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
1310 | --enable-plain-scroll enable plain style scrollbar |
1338 | --enable-perl enable embedded perl interpreter |
1311 | --enable-perl enable embedded perl interpreter |
1339 | --enable-plain-scroll enable plain style scrollbar |
|
|
1340 | --enable-xim XIM (X Input Method) protocol support |
1312 | --enable-xim XIM (X Input Method) protocol support |
1341 | --disable-backspace-key disable handling of the backspace key |
1313 | --disable-backspace-key disable handling of the backspace key |
1342 | --disable-delete-key disable handling of the delete key |
1314 | --disable-delete-key disable handling of the delete key |
1343 | --disable-resources disable all resource checking |
1315 | --disable-resources disable all resource checking |
1344 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1316 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1345 | --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) |
1346 | --disable-swapscreen disable swap screen support |
1318 | --disable-swapscreen disable swap screen support |
1347 | --enable-iso14755 enable support for extended ISO 14755 modes |
1319 | --enable-iso14755 enable support for extended ISO 14755 modes |
1348 | --enable-frills enable support for rarely used features |
1320 | --enable-frills enable support for rarely used features |
1349 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1321 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1350 | --enable-selectionscrolling enable scrolling during selections |
1322 | --enable-selectionscrolling enable scrolling during selections |
1351 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1323 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1352 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1324 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1353 | --enable-smart-resize enable smart growth/shrink behaviour |
1325 | --enable-smart-resize enable smart growth/shrink behaviour |
1354 | --enable-text-blink enable blinking text |
1326 | --enable-text-blink enable blinking text |
1355 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1327 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1356 | --enable-utmp enable utmp (utmpx) support |
1328 | --enable-utmp enable utmp (utmpx) support |
1357 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1329 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1359 | |
1331 | |
1360 | Optional Packages: |
1332 | Optional Packages: |
1361 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1362 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1363 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1335 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1364 | --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) |
1365 | --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) |
1366 | --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) |
1367 | --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) |
1368 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1340 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1369 | --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 |
1370 | --with-x use the X Window System |
1342 | --with-x use the X Window System |
1371 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1372 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1373 | --with-xpm use XPM |
|
|
1374 | |
1343 | |
1375 | Some influential environment variables: |
1344 | Some influential environment variables: |
1376 | CC C compiler command |
1345 | CC C compiler command |
1377 | CFLAGS C compiler flags |
1346 | CFLAGS C compiler flags |
1378 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1347 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1381 | 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 |
1382 | you have headers in a nonstandard directory <include dir> |
1351 | you have headers in a nonstandard directory <include dir> |
1383 | CXX C++ compiler command |
1352 | CXX C++ compiler command |
1384 | CXXFLAGS C++ compiler flags |
1353 | CXXFLAGS C++ compiler flags |
1385 | CPP C preprocessor |
1354 | CPP C preprocessor |
|
|
1355 | CXXCPP C++ preprocessor |
1386 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1356 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1387 | CXXCPP C++ preprocessor |
|
|
1388 | |
1357 | |
1389 | 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 |
1390 | it to find libraries and programs with nonstandard names/locations. |
1359 | it to find libraries and programs with nonstandard names/locations. |
1391 | |
1360 | |
1392 | _ACEOF |
1361 | _ACEOF |
… | |
… | |
1928 | |
1897 | |
1929 | |
1898 | |
1930 | |
1899 | |
1931 | 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` |
1932 | 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 | |
1933 | echo "" |
1903 | echo "" |
1934 | echo "configuring for rxvt $VERSION" |
1904 | echo "configuring for rxvt $VERSION" |
1935 | echo "" |
1905 | echo "" |
1936 | |
1906 | |
1937 | orig_CXXFLAGS="$CXXFLAGS" |
1907 | orig_CXXFLAGS="$CXXFLAGS" |
1938 | |
|
|
1939 | |
1908 | |
1940 | ac_ext=c |
1909 | ac_ext=c |
1941 | ac_cpp='$CPP $CPPFLAGS' |
1910 | ac_cpp='$CPP $CPPFLAGS' |
1942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1911 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1943 | 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' |
… | |
… | |
3722 | echo "${ECHO_T}no" >&6; } |
3691 | echo "${ECHO_T}no" >&6; } |
3723 | fi |
3692 | fi |
3724 | rm -f conftest* |
3693 | rm -f conftest* |
3725 | |
3694 | |
3726 | |
3695 | |
|
|
3696 | |
|
|
3697 | cat >>confdefs.h <<\_ACEOF |
|
|
3698 | #define _GNU_SOURCE 1 |
|
|
3699 | _ACEOF |
|
|
3700 | |
|
|
3701 | |
3727 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3702 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3728 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3703 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3729 | if test "${ac_cv_search_strerror+set}" = set; then |
3704 | if test "${ac_cv_search_strerror+set}" = set; then |
3730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3731 | else |
3706 | else |
… | |
… | |
3878 | LINKER=$LINKER |
3853 | LINKER=$LINKER |
3879 | |
3854 | |
3880 | |
3855 | |
3881 | if test -z "$orig_CXXFLAGS"; then |
3856 | if test -z "$orig_CXXFLAGS"; then |
3882 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3857 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3883 | 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" |
3884 | cat >conftest.$ac_ext <<_ACEOF |
3859 | cat >conftest.$ac_ext <<_ACEOF |
3885 | /* confdefs.h. */ |
3860 | /* confdefs.h. */ |
3886 | _ACEOF |
3861 | _ACEOF |
3887 | cat confdefs.h >>conftest.$ac_ext |
3862 | cat confdefs.h >>conftest.$ac_ext |
3888 | cat >>conftest.$ac_ext <<_ACEOF |
3863 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3926 | CXXFLAGS="-O" |
3901 | CXXFLAGS="-O" |
3927 | fi |
3902 | fi |
3928 | CFLAGS="$CXXFLAGS" |
3903 | CFLAGS="$CXXFLAGS" |
3929 | fi |
3904 | fi |
3930 | |
3905 | |
3931 | |
|
|
3932 | cat >>confdefs.h <<\_ACEOF |
|
|
3933 | #define _GNU_SOURCE 1 |
|
|
3934 | _ACEOF |
|
|
3935 | |
|
|
3936 | |
|
|
3937 | case $host in |
3906 | case $host in |
3938 | *-*-solaris* ) |
3907 | *-*-solaris* ) |
3939 | |
3908 | |
3940 | cat >>confdefs.h <<\_ACEOF |
3909 | cat >>confdefs.h <<\_ACEOF |
3941 | #define _XOPEN_SOURCE 500 |
3910 | #define _XOPEN_SOURCE 500 |
3942 | _ACEOF |
3911 | _ACEOF |
3943 | |
3912 | |
3944 | ;; |
3913 | ;; |
3945 | esac |
3914 | esac |
3946 | |
|
|
3947 | |
3915 | |
3948 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3916 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3949 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3917 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3950 | if test "${ac_cv_func_setlocale+set}" = set; then |
3918 | if test "${ac_cv_func_setlocale+set}" = set; then |
3951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4398 | fi |
4366 | fi |
4399 | |
4367 | |
4400 | fi |
4368 | fi |
4401 | |
4369 | |
4402 | |
4370 | |
4403 | |
|
|
4404 | support_frills=yes |
4371 | support_frills=yes |
4405 | support_inheritpixmap=yes |
4372 | support_inheritpixmap=yes |
4406 | support_tinting=yes |
|
|
4407 | support_fading=yes |
4373 | support_fading=yes |
4408 | support_keepscrolling=yes |
4374 | support_keepscrolling=yes |
4409 | support_selectionscrolling=yes |
4375 | support_selectionscrolling=yes |
4410 | support_mousewheel=yes |
4376 | support_mousewheel=yes |
4411 | support_mouseslipwheel=yes |
4377 | support_mouseslipwheel=yes |
… | |
… | |
4414 | support_scroll_rxvt=yes |
4380 | support_scroll_rxvt=yes |
4415 | support_scroll_next=yes |
4381 | support_scroll_next=yes |
4416 | support_scroll_xterm=yes |
4382 | support_scroll_xterm=yes |
4417 | support_scroll_plain=yes |
4383 | support_scroll_plain=yes |
4418 | support_xim=yes |
4384 | support_xim=yes |
4419 | support_xpm=yes |
|
|
4420 | support_afterimage=yes |
4385 | support_afterimage=yes |
4421 | support_afterstep=yes |
4386 | support_afterstep=yes |
4422 | support_xft=yes |
4387 | support_xft=yes |
4423 | support_unicode3=no |
4388 | support_unicode3=no |
4424 | support_combining=yes |
4389 | support_combining=yes |
… | |
… | |
4427 | support_styles=yes |
4392 | support_styles=yes |
4428 | support_perl=yes |
4393 | support_perl=yes |
4429 | codesets=all |
4394 | codesets=all |
4430 | |
4395 | |
4431 | |
4396 | |
4432 | if test "x$enable_shared" = xyes; then |
|
|
4433 | |
|
|
4434 | cat >>confdefs.h <<\_ACEOF |
|
|
4435 | #define LIBRXVT 1 |
|
|
4436 | _ACEOF |
|
|
4437 | |
|
|
4438 | INSTALL_LIBRXVT=yes |
|
|
4439 | fi |
|
|
4440 | |
|
|
4441 | |
|
|
4442 | # Check whether --enable-everything was given. |
4397 | # Check whether --enable-everything was given. |
4443 | if test "${enable_everything+set}" = set; then |
4398 | if test "${enable_everything+set}" = set; then |
4444 | enableval=$enable_everything; |
4399 | enableval=$enable_everything; |
4445 | if test x$enableval = xno; then |
4400 | if test x$enableval = xno; then |
4446 | support_frills=no |
4401 | support_frills=no |
4447 | support_inheritpixmap=no |
4402 | support_inheritpixmap=no |
4448 | support_tinting=no |
|
|
4449 | support_fading=no |
4403 | support_fading=no |
4450 | support_keepscrolling=no |
4404 | support_keepscrolling=no |
4451 | support_selectionscrolling=no |
4405 | support_selectionscrolling=no |
4452 | support_lastlog=no |
4406 | support_lastlog=no |
4453 | support_mousewheel=no |
4407 | support_mousewheel=no |
… | |
… | |
4459 | support_scroll_xterm=no |
4413 | support_scroll_xterm=no |
4460 | support_scroll_plain=no |
4414 | support_scroll_plain=no |
4461 | support_utmp=no |
4415 | support_utmp=no |
4462 | support_wtmp=no |
4416 | support_wtmp=no |
4463 | support_xim=no |
4417 | support_xim=no |
4464 | support_xpm=no |
|
|
4465 | support_afterimage=no |
4418 | support_afterimage=no |
4466 | support_afterstep=no |
4419 | support_afterstep=no |
4467 | support_xft=no |
4420 | support_xft=no |
4468 | support_unicode3=no |
4421 | support_unicode3=no |
4469 | support_combining=no |
4422 | support_combining=no |
… | |
… | |
4474 | codesets= |
4427 | codesets= |
4475 | fi |
4428 | fi |
4476 | if test x$enableval = xyes; then |
4429 | if test x$enableval = xyes; then |
4477 | support_frills=yes |
4430 | support_frills=yes |
4478 | support_inheritpixmap=yes |
4431 | support_inheritpixmap=yes |
4479 | support_tinting=yes |
|
|
4480 | support_fading=yes |
4432 | support_fading=yes |
4481 | support_keepscrolling=yes |
4433 | support_keepscrolling=yes |
4482 | support_selectionscrolling=yes |
4434 | support_selectionscrolling=yes |
4483 | support_lastlog=yes |
4435 | support_lastlog=yes |
4484 | support_mousewheel=yes |
4436 | support_mousewheel=yes |
… | |
… | |
4490 | support_scroll_xterm=yes |
4442 | support_scroll_xterm=yes |
4491 | support_scroll_plain=yes |
4443 | support_scroll_plain=yes |
4492 | support_utmp=yes |
4444 | support_utmp=yes |
4493 | support_wtmp=yes |
4445 | support_wtmp=yes |
4494 | support_xim=yes |
4446 | support_xim=yes |
4495 | support_xpm=yes |
|
|
4496 | support_afterimage=yes |
4447 | support_afterimage=yes |
4497 | support_afterstep=yes |
4448 | support_afterstep=yes |
4498 | support_xft=yes |
4449 | support_xft=yes |
4499 | support_unicode3=yes |
4450 | support_unicode3=yes |
4500 | support_combining=yes |
4451 | support_combining=yes |
… | |
… | |
4506 | fi |
4457 | fi |
4507 | |
4458 | |
4508 | fi |
4459 | fi |
4509 | |
4460 | |
4510 | |
4461 | |
|
|
4462 | WARNINGS=no |
|
|
4463 | # Check whether --enable-warnings was given. |
|
|
4464 | if test "${enable_warnings+set}" = set; then |
|
|
4465 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4466 | WARNINGS=yes |
|
|
4467 | fi |
|
|
4468 | fi |
|
|
4469 | |
|
|
4470 | if test x$GXX = xyes; then |
|
|
4471 | if test $WARNINGS = yes; then |
|
|
4472 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4473 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4474 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4475 | /* confdefs.h. */ |
|
|
4476 | _ACEOF |
|
|
4477 | cat confdefs.h >>conftest.$ac_ext |
|
|
4478 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4479 | /* end confdefs.h. */ |
|
|
4480 | |
|
|
4481 | int |
|
|
4482 | main () |
|
|
4483 | { |
|
|
4484 | |
|
|
4485 | ; |
|
|
4486 | return 0; |
|
|
4487 | } |
|
|
4488 | _ACEOF |
|
|
4489 | rm -f conftest.$ac_objext |
|
|
4490 | if { (ac_try="$ac_compile" |
|
|
4491 | case "(($ac_try" in |
|
|
4492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4493 | *) ac_try_echo=$ac_try;; |
|
|
4494 | esac |
|
|
4495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4496 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4497 | ac_status=$? |
|
|
4498 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4499 | rm -f conftest.er1 |
|
|
4500 | cat conftest.err >&5 |
|
|
4501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4502 | (exit $ac_status); } && { |
|
|
4503 | test -z "$ac_cxx_werror_flag" || |
|
|
4504 | test ! -s conftest.err |
|
|
4505 | } && test -s conftest.$ac_objext; then |
|
|
4506 | : |
|
|
4507 | else |
|
|
4508 | echo "$as_me: failed program was:" >&5 |
|
|
4509 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4510 | |
|
|
4511 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4512 | fi |
|
|
4513 | |
|
|
4514 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4515 | else |
|
|
4516 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4517 | fi |
|
|
4518 | fi |
|
|
4519 | |
4511 | # Check whether --enable-unicode3 was given. |
4520 | # Check whether --enable-unicode3 was given. |
4512 | if test "${enable_unicode3+set}" = set; then |
4521 | if test "${enable_unicode3+set}" = set; then |
4513 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4522 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4514 | support_unicode3=$enableval |
4523 | support_unicode3=$enableval |
4515 | fi |
4524 | fi |
… | |
… | |
4538 | support_styles=$enableval |
4547 | support_styles=$enableval |
4539 | fi |
4548 | fi |
4540 | fi |
4549 | fi |
4541 | |
4550 | |
4542 | |
4551 | |
4543 | # Check whether --enable-xpm-background was given. |
|
|
4544 | if test "${enable_xpm_background+set}" = set; then |
|
|
4545 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4546 | support_xpm=$enableval |
|
|
4547 | fi |
|
|
4548 | fi |
|
|
4549 | |
|
|
4550 | |
|
|
4551 | # Check whether --enable-afterimage was given. |
4552 | # Check whether --enable-afterimage was given. |
4552 | if test "${enable_afterimage+set}" = set; then |
4553 | if test "${enable_afterimage+set}" = set; then |
4553 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4554 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4554 | support_afterimage=$enableval |
4555 | support_afterimage=$enableval |
4555 | fi |
4556 | fi |
… | |
… | |
4563 | afterimage_config=$withval/afterimage-config |
4564 | afterimage_config=$withval/afterimage-config |
4564 | fi |
4565 | fi |
4565 | fi |
4566 | fi |
4566 | |
4567 | |
4567 | |
4568 | |
4568 | # Check whether --enable-afterstep was given. |
|
|
4569 | if test "${enable_afterstep+set}" = set; then |
|
|
4570 | enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4571 | support_afterstep=$enableval |
|
|
4572 | fi |
|
|
4573 | fi |
|
|
4574 | |
|
|
4575 | |
4569 | |
4576 | # Check whether --enable-transparency was given. |
4570 | # Check whether --enable-transparency was given. |
4577 | if test "${enable_transparency+set}" = set; then |
4571 | if test "${enable_transparency+set}" = set; then |
4578 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4572 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4579 | support_inheritpixmap=$enableval |
4573 | support_inheritpixmap=$enableval |
4580 | fi |
4574 | fi |
4581 | fi |
4575 | fi |
4582 | |
4576 | |
4583 | |
4577 | |
4584 | # Check whether --enable-tinting was given. |
|
|
4585 | if test "${enable_tinting+set}" = set; then |
|
|
4586 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4587 | support_tinting=$enableval |
|
|
4588 | fi |
|
|
4589 | fi |
|
|
4590 | |
|
|
4591 | |
|
|
4592 | # Check whether --enable-fading was given. |
4578 | # Check whether --enable-fading was given. |
4593 | if test "${enable_fading+set}" = set; then |
4579 | if test "${enable_fading+set}" = set; then |
4594 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4580 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4595 | support_fading=$enableval |
4581 | support_fading=$enableval |
4596 | fi |
4582 | fi |
… | |
… | |
4619 | support_scroll_xterm=$enableval |
4605 | support_scroll_xterm=$enableval |
4620 | fi |
4606 | fi |
4621 | fi |
4607 | fi |
4622 | |
4608 | |
4623 | |
4609 | |
|
|
4610 | # Check whether --enable-plain-scroll was given. |
|
|
4611 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4612 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4613 | support_scroll_plain=$enableval |
|
|
4614 | fi |
|
|
4615 | fi |
|
|
4616 | |
|
|
4617 | |
4624 | # Check whether --enable-perl was given. |
4618 | # Check whether --enable-perl was given. |
4625 | if test "${enable_perl+set}" = set; then |
4619 | if test "${enable_perl+set}" = set; then |
4626 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4620 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4627 | support_perl=$enableval |
4621 | support_perl=$enableval |
4628 | fi |
|
|
4629 | fi |
|
|
4630 | |
|
|
4631 | |
|
|
4632 | # Check whether --enable-plain-scroll was given. |
|
|
4633 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4634 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4635 | support_scroll_plain=$enableval |
|
|
4636 | fi |
4622 | fi |
4637 | fi |
4623 | fi |
4638 | |
4624 | |
4639 | |
4625 | |
4640 | |
4626 | |
… | |
… | |
4867 | #define RXVT_TERMINFO "$withval" |
4853 | #define RXVT_TERMINFO "$withval" |
4868 | _ACEOF |
4854 | _ACEOF |
4869 | terminfo="$withval" |
4855 | terminfo="$withval" |
4870 | fi |
4856 | fi |
4871 | fi |
4857 | fi |
|
|
4858 | |
|
|
4859 | |
|
|
4860 | |
|
|
4861 | LIBEV_M4_AVOID_LIBRT=1 |
|
|
4862 | |
|
|
4863 | ac_ext=cpp |
|
|
4864 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4868 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4869 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4870 | if test -z "$CXXCPP"; then |
|
|
4871 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4873 | else |
|
|
4874 | # Double quotes because CXXCPP needs to be expanded |
|
|
4875 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4876 | do |
|
|
4877 | ac_preproc_ok=false |
|
|
4878 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4879 | do |
|
|
4880 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4881 | # with a fresh cross-compiler works. |
|
|
4882 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4883 | # <limits.h> exists even on freestanding compilers. |
|
|
4884 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4885 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4886 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4887 | /* confdefs.h. */ |
|
|
4888 | _ACEOF |
|
|
4889 | cat confdefs.h >>conftest.$ac_ext |
|
|
4890 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4891 | /* end confdefs.h. */ |
|
|
4892 | #ifdef __STDC__ |
|
|
4893 | # include <limits.h> |
|
|
4894 | #else |
|
|
4895 | # include <assert.h> |
|
|
4896 | #endif |
|
|
4897 | Syntax error |
|
|
4898 | _ACEOF |
|
|
4899 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4900 | case "(($ac_try" in |
|
|
4901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4902 | *) ac_try_echo=$ac_try;; |
|
|
4903 | esac |
|
|
4904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4905 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4906 | ac_status=$? |
|
|
4907 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4908 | rm -f conftest.er1 |
|
|
4909 | cat conftest.err >&5 |
|
|
4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4911 | (exit $ac_status); } >/dev/null && { |
|
|
4912 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4913 | test ! -s conftest.err |
|
|
4914 | }; then |
|
|
4915 | : |
|
|
4916 | else |
|
|
4917 | echo "$as_me: failed program was:" >&5 |
|
|
4918 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4919 | |
|
|
4920 | # Broken: fails on valid input. |
|
|
4921 | continue |
|
|
4922 | fi |
|
|
4923 | |
|
|
4924 | rm -f conftest.err conftest.$ac_ext |
|
|
4925 | |
|
|
4926 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4927 | # can be detected and how. |
|
|
4928 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4929 | /* confdefs.h. */ |
|
|
4930 | _ACEOF |
|
|
4931 | cat confdefs.h >>conftest.$ac_ext |
|
|
4932 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4933 | /* end confdefs.h. */ |
|
|
4934 | #include <ac_nonexistent.h> |
|
|
4935 | _ACEOF |
|
|
4936 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4937 | case "(($ac_try" in |
|
|
4938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4939 | *) ac_try_echo=$ac_try;; |
|
|
4940 | esac |
|
|
4941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4942 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4943 | ac_status=$? |
|
|
4944 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4945 | rm -f conftest.er1 |
|
|
4946 | cat conftest.err >&5 |
|
|
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4948 | (exit $ac_status); } >/dev/null && { |
|
|
4949 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4950 | test ! -s conftest.err |
|
|
4951 | }; then |
|
|
4952 | # Broken: success on invalid input. |
|
|
4953 | continue |
|
|
4954 | else |
|
|
4955 | echo "$as_me: failed program was:" >&5 |
|
|
4956 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4957 | |
|
|
4958 | # Passes both tests. |
|
|
4959 | ac_preproc_ok=: |
|
|
4960 | break |
|
|
4961 | fi |
|
|
4962 | |
|
|
4963 | rm -f conftest.err conftest.$ac_ext |
|
|
4964 | |
|
|
4965 | done |
|
|
4966 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4967 | rm -f conftest.err conftest.$ac_ext |
|
|
4968 | if $ac_preproc_ok; then |
|
|
4969 | break |
|
|
4970 | fi |
|
|
4971 | |
|
|
4972 | done |
|
|
4973 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4974 | |
|
|
4975 | fi |
|
|
4976 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4977 | else |
|
|
4978 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4979 | fi |
|
|
4980 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4981 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4982 | ac_preproc_ok=false |
|
|
4983 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4984 | do |
|
|
4985 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4986 | # with a fresh cross-compiler works. |
|
|
4987 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4988 | # <limits.h> exists even on freestanding compilers. |
|
|
4989 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4990 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4991 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4992 | /* confdefs.h. */ |
|
|
4993 | _ACEOF |
|
|
4994 | cat confdefs.h >>conftest.$ac_ext |
|
|
4995 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4996 | /* end confdefs.h. */ |
|
|
4997 | #ifdef __STDC__ |
|
|
4998 | # include <limits.h> |
|
|
4999 | #else |
|
|
5000 | # include <assert.h> |
|
|
5001 | #endif |
|
|
5002 | Syntax error |
|
|
5003 | _ACEOF |
|
|
5004 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5005 | case "(($ac_try" in |
|
|
5006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5007 | *) ac_try_echo=$ac_try;; |
|
|
5008 | esac |
|
|
5009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5010 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5011 | ac_status=$? |
|
|
5012 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5013 | rm -f conftest.er1 |
|
|
5014 | cat conftest.err >&5 |
|
|
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5016 | (exit $ac_status); } >/dev/null && { |
|
|
5017 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5018 | test ! -s conftest.err |
|
|
5019 | }; then |
|
|
5020 | : |
|
|
5021 | else |
|
|
5022 | echo "$as_me: failed program was:" >&5 |
|
|
5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5024 | |
|
|
5025 | # Broken: fails on valid input. |
|
|
5026 | continue |
|
|
5027 | fi |
|
|
5028 | |
|
|
5029 | rm -f conftest.err conftest.$ac_ext |
|
|
5030 | |
|
|
5031 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5032 | # can be detected and how. |
|
|
5033 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5034 | /* confdefs.h. */ |
|
|
5035 | _ACEOF |
|
|
5036 | cat confdefs.h >>conftest.$ac_ext |
|
|
5037 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5038 | /* end confdefs.h. */ |
|
|
5039 | #include <ac_nonexistent.h> |
|
|
5040 | _ACEOF |
|
|
5041 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5042 | case "(($ac_try" in |
|
|
5043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5044 | *) ac_try_echo=$ac_try;; |
|
|
5045 | esac |
|
|
5046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5047 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5048 | ac_status=$? |
|
|
5049 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5050 | rm -f conftest.er1 |
|
|
5051 | cat conftest.err >&5 |
|
|
5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5053 | (exit $ac_status); } >/dev/null && { |
|
|
5054 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5055 | test ! -s conftest.err |
|
|
5056 | }; then |
|
|
5057 | # Broken: success on invalid input. |
|
|
5058 | continue |
|
|
5059 | else |
|
|
5060 | echo "$as_me: failed program was:" >&5 |
|
|
5061 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5062 | |
|
|
5063 | # Passes both tests. |
|
|
5064 | ac_preproc_ok=: |
|
|
5065 | break |
|
|
5066 | fi |
|
|
5067 | |
|
|
5068 | rm -f conftest.err conftest.$ac_ext |
|
|
5069 | |
|
|
5070 | done |
|
|
5071 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5072 | rm -f conftest.err conftest.$ac_ext |
|
|
5073 | if $ac_preproc_ok; then |
|
|
5074 | : |
|
|
5075 | else |
|
|
5076 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5077 | See \`config.log' for more details." >&5 |
|
|
5078 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5079 | See \`config.log' for more details." >&2;} |
|
|
5080 | { (exit 1); exit 1; }; } |
|
|
5081 | fi |
|
|
5082 | |
|
|
5083 | ac_ext=cpp |
|
|
5084 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5085 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5086 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5087 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5088 | |
|
|
5089 | |
|
|
5090 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
5091 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
5092 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
5093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5094 | else |
|
|
5095 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5096 | /* confdefs.h. */ |
|
|
5097 | _ACEOF |
|
|
5098 | cat confdefs.h >>conftest.$ac_ext |
|
|
5099 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5100 | /* end confdefs.h. */ |
|
|
5101 | #include <stdlib.h> |
|
|
5102 | #include <stdarg.h> |
|
|
5103 | #include <string.h> |
|
|
5104 | #include <float.h> |
|
|
5105 | |
|
|
5106 | int |
|
|
5107 | main () |
|
|
5108 | { |
|
|
5109 | |
|
|
5110 | ; |
|
|
5111 | return 0; |
|
|
5112 | } |
|
|
5113 | _ACEOF |
|
|
5114 | rm -f conftest.$ac_objext |
|
|
5115 | if { (ac_try="$ac_compile" |
|
|
5116 | case "(($ac_try" in |
|
|
5117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5118 | *) ac_try_echo=$ac_try;; |
|
|
5119 | esac |
|
|
5120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5121 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5122 | ac_status=$? |
|
|
5123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5124 | rm -f conftest.er1 |
|
|
5125 | cat conftest.err >&5 |
|
|
5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5127 | (exit $ac_status); } && { |
|
|
5128 | test -z "$ac_cxx_werror_flag" || |
|
|
5129 | test ! -s conftest.err |
|
|
5130 | } && test -s conftest.$ac_objext; then |
|
|
5131 | ac_cv_header_stdc=yes |
|
|
5132 | else |
|
|
5133 | echo "$as_me: failed program was:" >&5 |
|
|
5134 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5135 | |
|
|
5136 | ac_cv_header_stdc=no |
|
|
5137 | fi |
|
|
5138 | |
|
|
5139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5140 | |
|
|
5141 | if test $ac_cv_header_stdc = yes; then |
|
|
5142 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5143 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5144 | /* confdefs.h. */ |
|
|
5145 | _ACEOF |
|
|
5146 | cat confdefs.h >>conftest.$ac_ext |
|
|
5147 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5148 | /* end confdefs.h. */ |
|
|
5149 | #include <string.h> |
|
|
5150 | |
|
|
5151 | _ACEOF |
|
|
5152 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5153 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5154 | : |
|
|
5155 | else |
|
|
5156 | ac_cv_header_stdc=no |
|
|
5157 | fi |
|
|
5158 | rm -f conftest* |
|
|
5159 | |
|
|
5160 | fi |
|
|
5161 | |
|
|
5162 | if test $ac_cv_header_stdc = yes; then |
|
|
5163 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5164 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5165 | /* confdefs.h. */ |
|
|
5166 | _ACEOF |
|
|
5167 | cat confdefs.h >>conftest.$ac_ext |
|
|
5168 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5169 | /* end confdefs.h. */ |
|
|
5170 | #include <stdlib.h> |
|
|
5171 | |
|
|
5172 | _ACEOF |
|
|
5173 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5174 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5175 | : |
|
|
5176 | else |
|
|
5177 | ac_cv_header_stdc=no |
|
|
5178 | fi |
|
|
5179 | rm -f conftest* |
|
|
5180 | |
|
|
5181 | fi |
|
|
5182 | |
|
|
5183 | if test $ac_cv_header_stdc = yes; then |
|
|
5184 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5185 | if test "$cross_compiling" = yes; then |
|
|
5186 | : |
|
|
5187 | else |
|
|
5188 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5189 | /* confdefs.h. */ |
|
|
5190 | _ACEOF |
|
|
5191 | cat confdefs.h >>conftest.$ac_ext |
|
|
5192 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5193 | /* end confdefs.h. */ |
|
|
5194 | #include <ctype.h> |
|
|
5195 | #include <stdlib.h> |
|
|
5196 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5197 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5198 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5199 | #else |
|
|
5200 | # define ISLOWER(c) \ |
|
|
5201 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5202 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5203 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5204 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5205 | #endif |
|
|
5206 | |
|
|
5207 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5208 | int |
|
|
5209 | main () |
|
|
5210 | { |
|
|
5211 | int i; |
|
|
5212 | for (i = 0; i < 256; i++) |
|
|
5213 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5214 | || toupper (i) != TOUPPER (i)) |
|
|
5215 | return 2; |
|
|
5216 | return 0; |
|
|
5217 | } |
|
|
5218 | _ACEOF |
|
|
5219 | rm -f conftest$ac_exeext |
|
|
5220 | if { (ac_try="$ac_link" |
|
|
5221 | case "(($ac_try" in |
|
|
5222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5223 | *) ac_try_echo=$ac_try;; |
|
|
5224 | esac |
|
|
5225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5226 | (eval "$ac_link") 2>&5 |
|
|
5227 | ac_status=$? |
|
|
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5229 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5230 | { (case "(($ac_try" in |
|
|
5231 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5232 | *) ac_try_echo=$ac_try;; |
|
|
5233 | esac |
|
|
5234 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5235 | (eval "$ac_try") 2>&5 |
|
|
5236 | ac_status=$? |
|
|
5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5238 | (exit $ac_status); }; }; then |
|
|
5239 | : |
|
|
5240 | else |
|
|
5241 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5242 | echo "$as_me: failed program was:" >&5 |
|
|
5243 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5244 | |
|
|
5245 | ( exit $ac_status ) |
|
|
5246 | ac_cv_header_stdc=no |
|
|
5247 | fi |
|
|
5248 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5249 | fi |
|
|
5250 | |
|
|
5251 | |
|
|
5252 | fi |
|
|
5253 | fi |
|
|
5254 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5255 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5256 | if test $ac_cv_header_stdc = yes; then |
|
|
5257 | |
|
|
5258 | cat >>confdefs.h <<\_ACEOF |
|
|
5259 | #define STDC_HEADERS 1 |
|
|
5260 | _ACEOF |
|
|
5261 | |
|
|
5262 | fi |
|
|
5263 | |
|
|
5264 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5265 | |
|
|
5266 | |
|
|
5267 | |
|
|
5268 | |
|
|
5269 | |
|
|
5270 | |
|
|
5271 | |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5275 | inttypes.h stdint.h unistd.h |
|
|
5276 | do |
|
|
5277 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5278 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5279 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5280 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5282 | else |
|
|
5283 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5284 | /* confdefs.h. */ |
|
|
5285 | _ACEOF |
|
|
5286 | cat confdefs.h >>conftest.$ac_ext |
|
|
5287 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5288 | /* end confdefs.h. */ |
|
|
5289 | $ac_includes_default |
|
|
5290 | |
|
|
5291 | #include <$ac_header> |
|
|
5292 | _ACEOF |
|
|
5293 | rm -f conftest.$ac_objext |
|
|
5294 | if { (ac_try="$ac_compile" |
|
|
5295 | case "(($ac_try" in |
|
|
5296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5297 | *) ac_try_echo=$ac_try;; |
|
|
5298 | esac |
|
|
5299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5300 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5301 | ac_status=$? |
|
|
5302 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5303 | rm -f conftest.er1 |
|
|
5304 | cat conftest.err >&5 |
|
|
5305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5306 | (exit $ac_status); } && { |
|
|
5307 | test -z "$ac_cxx_werror_flag" || |
|
|
5308 | test ! -s conftest.err |
|
|
5309 | } && test -s conftest.$ac_objext; then |
|
|
5310 | eval "$as_ac_Header=yes" |
|
|
5311 | else |
|
|
5312 | echo "$as_me: failed program was:" >&5 |
|
|
5313 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5314 | |
|
|
5315 | eval "$as_ac_Header=no" |
|
|
5316 | fi |
|
|
5317 | |
|
|
5318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5319 | fi |
|
|
5320 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5321 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5322 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5323 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5324 | cat >>confdefs.h <<_ACEOF |
|
|
5325 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5326 | _ACEOF |
|
|
5327 | |
|
|
5328 | fi |
|
|
5329 | |
|
|
5330 | done |
|
|
5331 | |
|
|
5332 | |
|
|
5333 | |
|
|
5334 | |
|
|
5335 | |
|
|
5336 | |
|
|
5337 | |
|
|
5338 | |
|
|
5339 | |
|
|
5340 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h |
|
|
5341 | do |
|
|
5342 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5343 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5344 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5345 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5346 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5348 | fi |
|
|
5349 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5350 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5351 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5352 | else |
|
|
5353 | # Is the header compilable? |
|
|
5354 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5355 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5356 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5357 | /* confdefs.h. */ |
|
|
5358 | _ACEOF |
|
|
5359 | cat confdefs.h >>conftest.$ac_ext |
|
|
5360 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5361 | /* end confdefs.h. */ |
|
|
5362 | $ac_includes_default |
|
|
5363 | #include <$ac_header> |
|
|
5364 | _ACEOF |
|
|
5365 | rm -f conftest.$ac_objext |
|
|
5366 | if { (ac_try="$ac_compile" |
|
|
5367 | case "(($ac_try" in |
|
|
5368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5369 | *) ac_try_echo=$ac_try;; |
|
|
5370 | esac |
|
|
5371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5372 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5373 | ac_status=$? |
|
|
5374 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5375 | rm -f conftest.er1 |
|
|
5376 | cat conftest.err >&5 |
|
|
5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5378 | (exit $ac_status); } && { |
|
|
5379 | test -z "$ac_cxx_werror_flag" || |
|
|
5380 | test ! -s conftest.err |
|
|
5381 | } && test -s conftest.$ac_objext; then |
|
|
5382 | ac_header_compiler=yes |
|
|
5383 | else |
|
|
5384 | echo "$as_me: failed program was:" >&5 |
|
|
5385 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5386 | |
|
|
5387 | ac_header_compiler=no |
|
|
5388 | fi |
|
|
5389 | |
|
|
5390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5391 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5392 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5393 | |
|
|
5394 | # Is the header present? |
|
|
5395 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5396 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5397 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5398 | /* confdefs.h. */ |
|
|
5399 | _ACEOF |
|
|
5400 | cat confdefs.h >>conftest.$ac_ext |
|
|
5401 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5402 | /* end confdefs.h. */ |
|
|
5403 | #include <$ac_header> |
|
|
5404 | _ACEOF |
|
|
5405 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5406 | case "(($ac_try" in |
|
|
5407 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5408 | *) ac_try_echo=$ac_try;; |
|
|
5409 | esac |
|
|
5410 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5411 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5412 | ac_status=$? |
|
|
5413 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5414 | rm -f conftest.er1 |
|
|
5415 | cat conftest.err >&5 |
|
|
5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5417 | (exit $ac_status); } >/dev/null && { |
|
|
5418 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5419 | test ! -s conftest.err |
|
|
5420 | }; then |
|
|
5421 | ac_header_preproc=yes |
|
|
5422 | else |
|
|
5423 | echo "$as_me: failed program was:" >&5 |
|
|
5424 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5425 | |
|
|
5426 | ac_header_preproc=no |
|
|
5427 | fi |
|
|
5428 | |
|
|
5429 | rm -f conftest.err conftest.$ac_ext |
|
|
5430 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5431 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5432 | |
|
|
5433 | # So? What about this header? |
|
|
5434 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5435 | yes:no: ) |
|
|
5436 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5437 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5438 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5439 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5440 | ac_header_preproc=yes |
|
|
5441 | ;; |
|
|
5442 | no:yes:* ) |
|
|
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5444 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5446 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5447 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5448 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5449 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5450 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5452 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5453 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5454 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5455 | |
|
|
5456 | ;; |
|
|
5457 | esac |
|
|
5458 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5460 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5462 | else |
|
|
5463 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5464 | fi |
|
|
5465 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5466 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5467 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5468 | |
|
|
5469 | fi |
|
|
5470 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5471 | cat >>confdefs.h <<_ACEOF |
|
|
5472 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5473 | _ACEOF |
|
|
5474 | |
|
|
5475 | fi |
|
|
5476 | |
|
|
5477 | done |
|
|
5478 | |
|
|
5479 | |
|
|
5480 | |
|
|
5481 | |
|
|
5482 | |
|
|
5483 | |
|
|
5484 | |
|
|
5485 | |
|
|
5486 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select |
|
|
5487 | do |
|
|
5488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5489 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5491 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5493 | else |
|
|
5494 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5495 | /* confdefs.h. */ |
|
|
5496 | _ACEOF |
|
|
5497 | cat confdefs.h >>conftest.$ac_ext |
|
|
5498 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5499 | /* end confdefs.h. */ |
|
|
5500 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5501 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5502 | #define $ac_func innocuous_$ac_func |
|
|
5503 | |
|
|
5504 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5505 | which can conflict with char $ac_func (); below. |
|
|
5506 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5507 | <limits.h> exists even on freestanding compilers. */ |
|
|
5508 | |
|
|
5509 | #ifdef __STDC__ |
|
|
5510 | # include <limits.h> |
|
|
5511 | #else |
|
|
5512 | # include <assert.h> |
|
|
5513 | #endif |
|
|
5514 | |
|
|
5515 | #undef $ac_func |
|
|
5516 | |
|
|
5517 | /* Override any GCC internal prototype to avoid an error. |
|
|
5518 | Use char because int might match the return type of a GCC |
|
|
5519 | builtin and then its argument prototype would still apply. */ |
|
|
5520 | #ifdef __cplusplus |
|
|
5521 | extern "C" |
|
|
5522 | #endif |
|
|
5523 | char $ac_func (); |
|
|
5524 | /* The GNU C library defines this for functions which it implements |
|
|
5525 | to always fail with ENOSYS. Some functions are actually named |
|
|
5526 | something starting with __ and the normal name is an alias. */ |
|
|
5527 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5528 | choke me |
|
|
5529 | #endif |
|
|
5530 | |
|
|
5531 | int |
|
|
5532 | main () |
|
|
5533 | { |
|
|
5534 | return $ac_func (); |
|
|
5535 | ; |
|
|
5536 | return 0; |
|
|
5537 | } |
|
|
5538 | _ACEOF |
|
|
5539 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5540 | if { (ac_try="$ac_link" |
|
|
5541 | case "(($ac_try" in |
|
|
5542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5543 | *) ac_try_echo=$ac_try;; |
|
|
5544 | esac |
|
|
5545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5546 | (eval "$ac_link") 2>conftest.er1 |
|
|
5547 | ac_status=$? |
|
|
5548 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5549 | rm -f conftest.er1 |
|
|
5550 | cat conftest.err >&5 |
|
|
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5552 | (exit $ac_status); } && { |
|
|
5553 | test -z "$ac_cxx_werror_flag" || |
|
|
5554 | test ! -s conftest.err |
|
|
5555 | } && test -s conftest$ac_exeext && |
|
|
5556 | $as_test_x conftest$ac_exeext; then |
|
|
5557 | eval "$as_ac_var=yes" |
|
|
5558 | else |
|
|
5559 | echo "$as_me: failed program was:" >&5 |
|
|
5560 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5561 | |
|
|
5562 | eval "$as_ac_var=no" |
|
|
5563 | fi |
|
|
5564 | |
|
|
5565 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5566 | conftest$ac_exeext conftest.$ac_ext |
|
|
5567 | fi |
|
|
5568 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5569 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5570 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5571 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5572 | cat >>confdefs.h <<_ACEOF |
|
|
5573 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5574 | _ACEOF |
|
|
5575 | |
|
|
5576 | fi |
|
|
5577 | done |
|
|
5578 | |
|
|
5579 | |
|
|
5580 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5581 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5582 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5584 | else |
|
|
5585 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5586 | /* confdefs.h. */ |
|
|
5587 | _ACEOF |
|
|
5588 | cat confdefs.h >>conftest.$ac_ext |
|
|
5589 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5590 | /* end confdefs.h. */ |
|
|
5591 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5592 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5593 | #define clock_gettime innocuous_clock_gettime |
|
|
5594 | |
|
|
5595 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5596 | which can conflict with char clock_gettime (); below. |
|
|
5597 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5598 | <limits.h> exists even on freestanding compilers. */ |
|
|
5599 | |
|
|
5600 | #ifdef __STDC__ |
|
|
5601 | # include <limits.h> |
|
|
5602 | #else |
|
|
5603 | # include <assert.h> |
|
|
5604 | #endif |
|
|
5605 | |
|
|
5606 | #undef clock_gettime |
|
|
5607 | |
|
|
5608 | /* Override any GCC internal prototype to avoid an error. |
|
|
5609 | Use char because int might match the return type of a GCC |
|
|
5610 | builtin and then its argument prototype would still apply. */ |
|
|
5611 | #ifdef __cplusplus |
|
|
5612 | extern "C" |
|
|
5613 | #endif |
|
|
5614 | char clock_gettime (); |
|
|
5615 | /* The GNU C library defines this for functions which it implements |
|
|
5616 | to always fail with ENOSYS. Some functions are actually named |
|
|
5617 | something starting with __ and the normal name is an alias. */ |
|
|
5618 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5619 | choke me |
|
|
5620 | #endif |
|
|
5621 | |
|
|
5622 | int |
|
|
5623 | main () |
|
|
5624 | { |
|
|
5625 | return clock_gettime (); |
|
|
5626 | ; |
|
|
5627 | return 0; |
|
|
5628 | } |
|
|
5629 | _ACEOF |
|
|
5630 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5631 | if { (ac_try="$ac_link" |
|
|
5632 | case "(($ac_try" in |
|
|
5633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5634 | *) ac_try_echo=$ac_try;; |
|
|
5635 | esac |
|
|
5636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5637 | (eval "$ac_link") 2>conftest.er1 |
|
|
5638 | ac_status=$? |
|
|
5639 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5640 | rm -f conftest.er1 |
|
|
5641 | cat conftest.err >&5 |
|
|
5642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5643 | (exit $ac_status); } && { |
|
|
5644 | test -z "$ac_cxx_werror_flag" || |
|
|
5645 | test ! -s conftest.err |
|
|
5646 | } && test -s conftest$ac_exeext && |
|
|
5647 | $as_test_x conftest$ac_exeext; then |
|
|
5648 | ac_cv_func_clock_gettime=yes |
|
|
5649 | else |
|
|
5650 | echo "$as_me: failed program was:" >&5 |
|
|
5651 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5652 | |
|
|
5653 | ac_cv_func_clock_gettime=no |
|
|
5654 | fi |
|
|
5655 | |
|
|
5656 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5657 | conftest$ac_exeext conftest.$ac_ext |
|
|
5658 | fi |
|
|
5659 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5660 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5661 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5662 | : |
|
|
5663 | else |
|
|
5664 | |
|
|
5665 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5666 | |
|
|
5667 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5668 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5669 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5671 | else |
|
|
5672 | ac_check_lib_save_LIBS=$LIBS |
|
|
5673 | LIBS="-lrt $LIBS" |
|
|
5674 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5675 | /* confdefs.h. */ |
|
|
5676 | _ACEOF |
|
|
5677 | cat confdefs.h >>conftest.$ac_ext |
|
|
5678 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5679 | /* end confdefs.h. */ |
|
|
5680 | |
|
|
5681 | /* Override any GCC internal prototype to avoid an error. |
|
|
5682 | Use char because int might match the return type of a GCC |
|
|
5683 | builtin and then its argument prototype would still apply. */ |
|
|
5684 | #ifdef __cplusplus |
|
|
5685 | extern "C" |
|
|
5686 | #endif |
|
|
5687 | char clock_gettime (); |
|
|
5688 | int |
|
|
5689 | main () |
|
|
5690 | { |
|
|
5691 | return clock_gettime (); |
|
|
5692 | ; |
|
|
5693 | return 0; |
|
|
5694 | } |
|
|
5695 | _ACEOF |
|
|
5696 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5697 | if { (ac_try="$ac_link" |
|
|
5698 | case "(($ac_try" in |
|
|
5699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5700 | *) ac_try_echo=$ac_try;; |
|
|
5701 | esac |
|
|
5702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5703 | (eval "$ac_link") 2>conftest.er1 |
|
|
5704 | ac_status=$? |
|
|
5705 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5706 | rm -f conftest.er1 |
|
|
5707 | cat conftest.err >&5 |
|
|
5708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5709 | (exit $ac_status); } && { |
|
|
5710 | test -z "$ac_cxx_werror_flag" || |
|
|
5711 | test ! -s conftest.err |
|
|
5712 | } && test -s conftest$ac_exeext && |
|
|
5713 | $as_test_x conftest$ac_exeext; then |
|
|
5714 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5715 | else |
|
|
5716 | echo "$as_me: failed program was:" >&5 |
|
|
5717 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5718 | |
|
|
5719 | ac_cv_lib_rt_clock_gettime=no |
|
|
5720 | fi |
|
|
5721 | |
|
|
5722 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5723 | conftest$ac_exeext conftest.$ac_ext |
|
|
5724 | LIBS=$ac_check_lib_save_LIBS |
|
|
5725 | fi |
|
|
5726 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5727 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5728 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5729 | cat >>confdefs.h <<_ACEOF |
|
|
5730 | #define HAVE_LIBRT 1 |
|
|
5731 | _ACEOF |
|
|
5732 | |
|
|
5733 | LIBS="-lrt $LIBS" |
|
|
5734 | |
|
|
5735 | fi |
|
|
5736 | |
|
|
5737 | unset ac_cv_func_clock_gettime |
|
|
5738 | |
|
|
5739 | for ac_func in clock_gettime |
|
|
5740 | do |
|
|
5741 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5742 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5743 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5744 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5746 | else |
|
|
5747 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5748 | /* confdefs.h. */ |
|
|
5749 | _ACEOF |
|
|
5750 | cat confdefs.h >>conftest.$ac_ext |
|
|
5751 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5752 | /* end confdefs.h. */ |
|
|
5753 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5754 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5755 | #define $ac_func innocuous_$ac_func |
|
|
5756 | |
|
|
5757 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5758 | which can conflict with char $ac_func (); below. |
|
|
5759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5760 | <limits.h> exists even on freestanding compilers. */ |
|
|
5761 | |
|
|
5762 | #ifdef __STDC__ |
|
|
5763 | # include <limits.h> |
|
|
5764 | #else |
|
|
5765 | # include <assert.h> |
|
|
5766 | #endif |
|
|
5767 | |
|
|
5768 | #undef $ac_func |
|
|
5769 | |
|
|
5770 | /* Override any GCC internal prototype to avoid an error. |
|
|
5771 | Use char because int might match the return type of a GCC |
|
|
5772 | builtin and then its argument prototype would still apply. */ |
|
|
5773 | #ifdef __cplusplus |
|
|
5774 | extern "C" |
|
|
5775 | #endif |
|
|
5776 | char $ac_func (); |
|
|
5777 | /* The GNU C library defines this for functions which it implements |
|
|
5778 | to always fail with ENOSYS. Some functions are actually named |
|
|
5779 | something starting with __ and the normal name is an alias. */ |
|
|
5780 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5781 | choke me |
|
|
5782 | #endif |
|
|
5783 | |
|
|
5784 | int |
|
|
5785 | main () |
|
|
5786 | { |
|
|
5787 | return $ac_func (); |
|
|
5788 | ; |
|
|
5789 | return 0; |
|
|
5790 | } |
|
|
5791 | _ACEOF |
|
|
5792 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5793 | if { (ac_try="$ac_link" |
|
|
5794 | case "(($ac_try" in |
|
|
5795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5796 | *) ac_try_echo=$ac_try;; |
|
|
5797 | esac |
|
|
5798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5799 | (eval "$ac_link") 2>conftest.er1 |
|
|
5800 | ac_status=$? |
|
|
5801 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5802 | rm -f conftest.er1 |
|
|
5803 | cat conftest.err >&5 |
|
|
5804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5805 | (exit $ac_status); } && { |
|
|
5806 | test -z "$ac_cxx_werror_flag" || |
|
|
5807 | test ! -s conftest.err |
|
|
5808 | } && test -s conftest$ac_exeext && |
|
|
5809 | $as_test_x conftest$ac_exeext; then |
|
|
5810 | eval "$as_ac_var=yes" |
|
|
5811 | else |
|
|
5812 | echo "$as_me: failed program was:" >&5 |
|
|
5813 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5814 | |
|
|
5815 | eval "$as_ac_var=no" |
|
|
5816 | fi |
|
|
5817 | |
|
|
5818 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5819 | conftest$ac_exeext conftest.$ac_ext |
|
|
5820 | fi |
|
|
5821 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5822 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5823 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5824 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5825 | cat >>confdefs.h <<_ACEOF |
|
|
5826 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5827 | _ACEOF |
|
|
5828 | |
|
|
5829 | fi |
|
|
5830 | done |
|
|
5831 | |
|
|
5832 | fi |
|
|
5833 | |
|
|
5834 | fi |
|
|
5835 | |
|
|
5836 | |
|
|
5837 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5838 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5839 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5841 | else |
|
|
5842 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5843 | /* confdefs.h. */ |
|
|
5844 | _ACEOF |
|
|
5845 | cat confdefs.h >>conftest.$ac_ext |
|
|
5846 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5847 | /* end confdefs.h. */ |
|
|
5848 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5849 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5850 | #define nanosleep innocuous_nanosleep |
|
|
5851 | |
|
|
5852 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5853 | which can conflict with char nanosleep (); below. |
|
|
5854 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5855 | <limits.h> exists even on freestanding compilers. */ |
|
|
5856 | |
|
|
5857 | #ifdef __STDC__ |
|
|
5858 | # include <limits.h> |
|
|
5859 | #else |
|
|
5860 | # include <assert.h> |
|
|
5861 | #endif |
|
|
5862 | |
|
|
5863 | #undef nanosleep |
|
|
5864 | |
|
|
5865 | /* Override any GCC internal prototype to avoid an error. |
|
|
5866 | Use char because int might match the return type of a GCC |
|
|
5867 | builtin and then its argument prototype would still apply. */ |
|
|
5868 | #ifdef __cplusplus |
|
|
5869 | extern "C" |
|
|
5870 | #endif |
|
|
5871 | char nanosleep (); |
|
|
5872 | /* The GNU C library defines this for functions which it implements |
|
|
5873 | to always fail with ENOSYS. Some functions are actually named |
|
|
5874 | something starting with __ and the normal name is an alias. */ |
|
|
5875 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5876 | choke me |
|
|
5877 | #endif |
|
|
5878 | |
|
|
5879 | int |
|
|
5880 | main () |
|
|
5881 | { |
|
|
5882 | return nanosleep (); |
|
|
5883 | ; |
|
|
5884 | return 0; |
|
|
5885 | } |
|
|
5886 | _ACEOF |
|
|
5887 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5888 | if { (ac_try="$ac_link" |
|
|
5889 | case "(($ac_try" in |
|
|
5890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5891 | *) ac_try_echo=$ac_try;; |
|
|
5892 | esac |
|
|
5893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5894 | (eval "$ac_link") 2>conftest.er1 |
|
|
5895 | ac_status=$? |
|
|
5896 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5897 | rm -f conftest.er1 |
|
|
5898 | cat conftest.err >&5 |
|
|
5899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5900 | (exit $ac_status); } && { |
|
|
5901 | test -z "$ac_cxx_werror_flag" || |
|
|
5902 | test ! -s conftest.err |
|
|
5903 | } && test -s conftest$ac_exeext && |
|
|
5904 | $as_test_x conftest$ac_exeext; then |
|
|
5905 | ac_cv_func_nanosleep=yes |
|
|
5906 | else |
|
|
5907 | echo "$as_me: failed program was:" >&5 |
|
|
5908 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5909 | |
|
|
5910 | ac_cv_func_nanosleep=no |
|
|
5911 | fi |
|
|
5912 | |
|
|
5913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5914 | conftest$ac_exeext conftest.$ac_ext |
|
|
5915 | fi |
|
|
5916 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5917 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5918 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5919 | : |
|
|
5920 | else |
|
|
5921 | |
|
|
5922 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5923 | |
|
|
5924 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5925 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5926 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5928 | else |
|
|
5929 | ac_check_lib_save_LIBS=$LIBS |
|
|
5930 | LIBS="-lrt $LIBS" |
|
|
5931 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5932 | /* confdefs.h. */ |
|
|
5933 | _ACEOF |
|
|
5934 | cat confdefs.h >>conftest.$ac_ext |
|
|
5935 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5936 | /* end confdefs.h. */ |
|
|
5937 | |
|
|
5938 | /* Override any GCC internal prototype to avoid an error. |
|
|
5939 | Use char because int might match the return type of a GCC |
|
|
5940 | builtin and then its argument prototype would still apply. */ |
|
|
5941 | #ifdef __cplusplus |
|
|
5942 | extern "C" |
|
|
5943 | #endif |
|
|
5944 | char nanosleep (); |
|
|
5945 | int |
|
|
5946 | main () |
|
|
5947 | { |
|
|
5948 | return nanosleep (); |
|
|
5949 | ; |
|
|
5950 | return 0; |
|
|
5951 | } |
|
|
5952 | _ACEOF |
|
|
5953 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5954 | if { (ac_try="$ac_link" |
|
|
5955 | case "(($ac_try" in |
|
|
5956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5957 | *) ac_try_echo=$ac_try;; |
|
|
5958 | esac |
|
|
5959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5960 | (eval "$ac_link") 2>conftest.er1 |
|
|
5961 | ac_status=$? |
|
|
5962 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5963 | rm -f conftest.er1 |
|
|
5964 | cat conftest.err >&5 |
|
|
5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5966 | (exit $ac_status); } && { |
|
|
5967 | test -z "$ac_cxx_werror_flag" || |
|
|
5968 | test ! -s conftest.err |
|
|
5969 | } && test -s conftest$ac_exeext && |
|
|
5970 | $as_test_x conftest$ac_exeext; then |
|
|
5971 | ac_cv_lib_rt_nanosleep=yes |
|
|
5972 | else |
|
|
5973 | echo "$as_me: failed program was:" >&5 |
|
|
5974 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5975 | |
|
|
5976 | ac_cv_lib_rt_nanosleep=no |
|
|
5977 | fi |
|
|
5978 | |
|
|
5979 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5980 | conftest$ac_exeext conftest.$ac_ext |
|
|
5981 | LIBS=$ac_check_lib_save_LIBS |
|
|
5982 | fi |
|
|
5983 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5984 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5985 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5986 | cat >>confdefs.h <<_ACEOF |
|
|
5987 | #define HAVE_LIBRT 1 |
|
|
5988 | _ACEOF |
|
|
5989 | |
|
|
5990 | LIBS="-lrt $LIBS" |
|
|
5991 | |
|
|
5992 | fi |
|
|
5993 | |
|
|
5994 | unset ac_cv_func_nanosleep |
|
|
5995 | |
|
|
5996 | for ac_func in nanosleep |
|
|
5997 | do |
|
|
5998 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5999 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
6000 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
6001 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
6002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6003 | else |
|
|
6004 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6005 | /* confdefs.h. */ |
|
|
6006 | _ACEOF |
|
|
6007 | cat confdefs.h >>conftest.$ac_ext |
|
|
6008 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6009 | /* end confdefs.h. */ |
|
|
6010 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6012 | #define $ac_func innocuous_$ac_func |
|
|
6013 | |
|
|
6014 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6015 | which can conflict with char $ac_func (); below. |
|
|
6016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6017 | <limits.h> exists even on freestanding compilers. */ |
|
|
6018 | |
|
|
6019 | #ifdef __STDC__ |
|
|
6020 | # include <limits.h> |
|
|
6021 | #else |
|
|
6022 | # include <assert.h> |
|
|
6023 | #endif |
|
|
6024 | |
|
|
6025 | #undef $ac_func |
|
|
6026 | |
|
|
6027 | /* Override any GCC internal prototype to avoid an error. |
|
|
6028 | Use char because int might match the return type of a GCC |
|
|
6029 | builtin and then its argument prototype would still apply. */ |
|
|
6030 | #ifdef __cplusplus |
|
|
6031 | extern "C" |
|
|
6032 | #endif |
|
|
6033 | char $ac_func (); |
|
|
6034 | /* The GNU C library defines this for functions which it implements |
|
|
6035 | to always fail with ENOSYS. Some functions are actually named |
|
|
6036 | something starting with __ and the normal name is an alias. */ |
|
|
6037 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6038 | choke me |
|
|
6039 | #endif |
|
|
6040 | |
|
|
6041 | int |
|
|
6042 | main () |
|
|
6043 | { |
|
|
6044 | return $ac_func (); |
|
|
6045 | ; |
|
|
6046 | return 0; |
|
|
6047 | } |
|
|
6048 | _ACEOF |
|
|
6049 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6050 | if { (ac_try="$ac_link" |
|
|
6051 | case "(($ac_try" in |
|
|
6052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6053 | *) ac_try_echo=$ac_try;; |
|
|
6054 | esac |
|
|
6055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6056 | (eval "$ac_link") 2>conftest.er1 |
|
|
6057 | ac_status=$? |
|
|
6058 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6059 | rm -f conftest.er1 |
|
|
6060 | cat conftest.err >&5 |
|
|
6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6062 | (exit $ac_status); } && { |
|
|
6063 | test -z "$ac_cxx_werror_flag" || |
|
|
6064 | test ! -s conftest.err |
|
|
6065 | } && test -s conftest$ac_exeext && |
|
|
6066 | $as_test_x conftest$ac_exeext; then |
|
|
6067 | eval "$as_ac_var=yes" |
|
|
6068 | else |
|
|
6069 | echo "$as_me: failed program was:" >&5 |
|
|
6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6071 | |
|
|
6072 | eval "$as_ac_var=no" |
|
|
6073 | fi |
|
|
6074 | |
|
|
6075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6076 | conftest$ac_exeext conftest.$ac_ext |
|
|
6077 | fi |
|
|
6078 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6079 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6080 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6081 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6082 | cat >>confdefs.h <<_ACEOF |
|
|
6083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6084 | _ACEOF |
|
|
6085 | |
|
|
6086 | fi |
|
|
6087 | done |
|
|
6088 | |
|
|
6089 | fi |
|
|
6090 | |
|
|
6091 | fi |
|
|
6092 | |
|
|
6093 | |
|
|
6094 | |
|
|
6095 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
|
|
6096 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
|
|
6097 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
|
|
6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6099 | else |
|
|
6100 | ac_check_lib_save_LIBS=$LIBS |
|
|
6101 | LIBS="-lm $LIBS" |
|
|
6102 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6103 | /* confdefs.h. */ |
|
|
6104 | _ACEOF |
|
|
6105 | cat confdefs.h >>conftest.$ac_ext |
|
|
6106 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6107 | /* end confdefs.h. */ |
|
|
6108 | |
|
|
6109 | /* Override any GCC internal prototype to avoid an error. |
|
|
6110 | Use char because int might match the return type of a GCC |
|
|
6111 | builtin and then its argument prototype would still apply. */ |
|
|
6112 | #ifdef __cplusplus |
|
|
6113 | extern "C" |
|
|
6114 | #endif |
|
|
6115 | char ceil (); |
|
|
6116 | int |
|
|
6117 | main () |
|
|
6118 | { |
|
|
6119 | return ceil (); |
|
|
6120 | ; |
|
|
6121 | return 0; |
|
|
6122 | } |
|
|
6123 | _ACEOF |
|
|
6124 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6125 | if { (ac_try="$ac_link" |
|
|
6126 | case "(($ac_try" in |
|
|
6127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6128 | *) ac_try_echo=$ac_try;; |
|
|
6129 | esac |
|
|
6130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6131 | (eval "$ac_link") 2>conftest.er1 |
|
|
6132 | ac_status=$? |
|
|
6133 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6134 | rm -f conftest.er1 |
|
|
6135 | cat conftest.err >&5 |
|
|
6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6137 | (exit $ac_status); } && { |
|
|
6138 | test -z "$ac_cxx_werror_flag" || |
|
|
6139 | test ! -s conftest.err |
|
|
6140 | } && test -s conftest$ac_exeext && |
|
|
6141 | $as_test_x conftest$ac_exeext; then |
|
|
6142 | ac_cv_lib_m_ceil=yes |
|
|
6143 | else |
|
|
6144 | echo "$as_me: failed program was:" >&5 |
|
|
6145 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6146 | |
|
|
6147 | ac_cv_lib_m_ceil=no |
|
|
6148 | fi |
|
|
6149 | |
|
|
6150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6151 | conftest$ac_exeext conftest.$ac_ext |
|
|
6152 | LIBS=$ac_check_lib_save_LIBS |
|
|
6153 | fi |
|
|
6154 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
|
|
6155 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
|
|
6156 | if test $ac_cv_lib_m_ceil = yes; then |
|
|
6157 | cat >>confdefs.h <<_ACEOF |
|
|
6158 | #define HAVE_LIBM 1 |
|
|
6159 | _ACEOF |
|
|
6160 | |
|
|
6161 | LIBS="-lm $LIBS" |
|
|
6162 | |
|
|
6163 | fi |
|
|
6164 | |
|
|
6165 | |
|
|
6166 | |
|
|
6167 | |
4872 | |
6168 | |
4873 | |
6169 | |
4874 | |
6170 | |
4875 | # Extract the first word of "tic", so it can be a program name with args. |
6171 | # Extract the first word of "tic", so it can be a program name with args. |
4876 | set dummy tic; ac_word=$2 |
6172 | set dummy tic; ac_word=$2 |
… | |
… | |
4897 | fi |
6193 | fi |
4898 | done |
6194 | done |
4899 | done |
6195 | done |
4900 | IFS=$as_save_IFS |
6196 | IFS=$as_save_IFS |
4901 | |
6197 | |
|
|
6198 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
4902 | ;; |
6199 | ;; |
4903 | esac |
6200 | esac |
4904 | fi |
6201 | fi |
4905 | TIC=$ac_cv_path_TIC |
6202 | TIC=$ac_cv_path_TIC |
4906 | if test -n "$TIC"; then |
6203 | if test -n "$TIC"; then |
… | |
… | |
4909 | else |
6206 | else |
4910 | { echo "$as_me:$LINENO: result: no" >&5 |
6207 | { echo "$as_me:$LINENO: result: no" >&5 |
4911 | echo "${ECHO_T}no" >&6; } |
6208 | echo "${ECHO_T}no" >&6; } |
4912 | fi |
6209 | fi |
4913 | |
6210 | |
4914 | |
|
|
4915 | |
|
|
4916 | |
|
|
4917 | |
|
|
4918 | ac_ext=cpp |
|
|
4919 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4920 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4921 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4922 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4923 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4924 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4925 | if test -z "$CXXCPP"; then |
|
|
4926 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4928 | else |
|
|
4929 | # Double quotes because CXXCPP needs to be expanded |
|
|
4930 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4931 | do |
|
|
4932 | ac_preproc_ok=false |
|
|
4933 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4934 | do |
|
|
4935 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4936 | # with a fresh cross-compiler works. |
|
|
4937 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4938 | # <limits.h> exists even on freestanding compilers. |
|
|
4939 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4940 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4941 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4942 | /* confdefs.h. */ |
|
|
4943 | _ACEOF |
|
|
4944 | cat confdefs.h >>conftest.$ac_ext |
|
|
4945 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4946 | /* end confdefs.h. */ |
|
|
4947 | #ifdef __STDC__ |
|
|
4948 | # include <limits.h> |
|
|
4949 | #else |
|
|
4950 | # include <assert.h> |
|
|
4951 | #endif |
|
|
4952 | Syntax error |
|
|
4953 | _ACEOF |
|
|
4954 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4955 | case "(($ac_try" in |
|
|
4956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4957 | *) ac_try_echo=$ac_try;; |
|
|
4958 | esac |
|
|
4959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4960 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4961 | ac_status=$? |
|
|
4962 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4963 | rm -f conftest.er1 |
|
|
4964 | cat conftest.err >&5 |
|
|
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4966 | (exit $ac_status); } >/dev/null && { |
|
|
4967 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4968 | test ! -s conftest.err |
|
|
4969 | }; then |
|
|
4970 | : |
|
|
4971 | else |
|
|
4972 | echo "$as_me: failed program was:" >&5 |
|
|
4973 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4974 | |
|
|
4975 | # Broken: fails on valid input. |
|
|
4976 | continue |
|
|
4977 | fi |
|
|
4978 | |
|
|
4979 | rm -f conftest.err conftest.$ac_ext |
|
|
4980 | |
|
|
4981 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4982 | # can be detected and how. |
|
|
4983 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4984 | /* confdefs.h. */ |
|
|
4985 | _ACEOF |
|
|
4986 | cat confdefs.h >>conftest.$ac_ext |
|
|
4987 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4988 | /* end confdefs.h. */ |
|
|
4989 | #include <ac_nonexistent.h> |
|
|
4990 | _ACEOF |
|
|
4991 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4992 | case "(($ac_try" in |
|
|
4993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4994 | *) ac_try_echo=$ac_try;; |
|
|
4995 | esac |
|
|
4996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4997 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4998 | ac_status=$? |
|
|
4999 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5000 | rm -f conftest.er1 |
|
|
5001 | cat conftest.err >&5 |
|
|
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5003 | (exit $ac_status); } >/dev/null && { |
|
|
5004 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5005 | test ! -s conftest.err |
|
|
5006 | }; then |
|
|
5007 | # Broken: success on invalid input. |
|
|
5008 | continue |
|
|
5009 | else |
|
|
5010 | echo "$as_me: failed program was:" >&5 |
|
|
5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5012 | |
|
|
5013 | # Passes both tests. |
|
|
5014 | ac_preproc_ok=: |
|
|
5015 | break |
|
|
5016 | fi |
|
|
5017 | |
|
|
5018 | rm -f conftest.err conftest.$ac_ext |
|
|
5019 | |
|
|
5020 | done |
|
|
5021 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5022 | rm -f conftest.err conftest.$ac_ext |
|
|
5023 | if $ac_preproc_ok; then |
|
|
5024 | break |
|
|
5025 | fi |
|
|
5026 | |
|
|
5027 | done |
|
|
5028 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5029 | |
|
|
5030 | fi |
|
|
5031 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5032 | else |
|
|
5033 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5034 | fi |
|
|
5035 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5036 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5037 | ac_preproc_ok=false |
|
|
5038 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5039 | do |
|
|
5040 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5041 | # with a fresh cross-compiler works. |
|
|
5042 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5043 | # <limits.h> exists even on freestanding compilers. |
|
|
5044 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5045 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5046 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5047 | /* confdefs.h. */ |
|
|
5048 | _ACEOF |
|
|
5049 | cat confdefs.h >>conftest.$ac_ext |
|
|
5050 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5051 | /* end confdefs.h. */ |
|
|
5052 | #ifdef __STDC__ |
|
|
5053 | # include <limits.h> |
|
|
5054 | #else |
|
|
5055 | # include <assert.h> |
|
|
5056 | #endif |
|
|
5057 | Syntax error |
|
|
5058 | _ACEOF |
|
|
5059 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5060 | case "(($ac_try" in |
|
|
5061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5062 | *) ac_try_echo=$ac_try;; |
|
|
5063 | esac |
|
|
5064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5065 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5066 | ac_status=$? |
|
|
5067 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5068 | rm -f conftest.er1 |
|
|
5069 | cat conftest.err >&5 |
|
|
5070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5071 | (exit $ac_status); } >/dev/null && { |
|
|
5072 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5073 | test ! -s conftest.err |
|
|
5074 | }; then |
|
|
5075 | : |
|
|
5076 | else |
|
|
5077 | echo "$as_me: failed program was:" >&5 |
|
|
5078 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5079 | |
|
|
5080 | # Broken: fails on valid input. |
|
|
5081 | continue |
|
|
5082 | fi |
|
|
5083 | |
|
|
5084 | rm -f conftest.err conftest.$ac_ext |
|
|
5085 | |
|
|
5086 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5087 | # can be detected and how. |
|
|
5088 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5089 | /* confdefs.h. */ |
|
|
5090 | _ACEOF |
|
|
5091 | cat confdefs.h >>conftest.$ac_ext |
|
|
5092 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5093 | /* end confdefs.h. */ |
|
|
5094 | #include <ac_nonexistent.h> |
|
|
5095 | _ACEOF |
|
|
5096 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5097 | case "(($ac_try" in |
|
|
5098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5099 | *) ac_try_echo=$ac_try;; |
|
|
5100 | esac |
|
|
5101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5102 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5103 | ac_status=$? |
|
|
5104 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5105 | rm -f conftest.er1 |
|
|
5106 | cat conftest.err >&5 |
|
|
5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5108 | (exit $ac_status); } >/dev/null && { |
|
|
5109 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5110 | test ! -s conftest.err |
|
|
5111 | }; then |
|
|
5112 | # Broken: success on invalid input. |
|
|
5113 | continue |
|
|
5114 | else |
|
|
5115 | echo "$as_me: failed program was:" >&5 |
|
|
5116 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5117 | |
|
|
5118 | # Passes both tests. |
|
|
5119 | ac_preproc_ok=: |
|
|
5120 | break |
|
|
5121 | fi |
|
|
5122 | |
|
|
5123 | rm -f conftest.err conftest.$ac_ext |
|
|
5124 | |
|
|
5125 | done |
|
|
5126 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5127 | rm -f conftest.err conftest.$ac_ext |
|
|
5128 | if $ac_preproc_ok; then |
|
|
5129 | : |
|
|
5130 | else |
|
|
5131 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5132 | See \`config.log' for more details." >&5 |
|
|
5133 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5134 | See \`config.log' for more details." >&2;} |
|
|
5135 | { (exit 1); exit 1; }; } |
|
|
5136 | fi |
|
|
5137 | |
|
|
5138 | ac_ext=cpp |
|
|
5139 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5140 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5141 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5142 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5143 | |
6211 | |
5144 | |
6212 | |
5145 | { echo "$as_me:$LINENO: checking for X" >&5 |
6213 | { echo "$as_me:$LINENO: checking for X" >&5 |
5146 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6214 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5147 | |
6215 | |
… | |
… | |
6455 | LDFLAGS=$ac_save_LDFLAGS |
7523 | LDFLAGS=$ac_save_LDFLAGS |
6456 | |
7524 | |
6457 | fi |
7525 | fi |
6458 | |
7526 | |
6459 | |
7527 | |
6460 | |
|
|
6461 | AFTERIMAGE_CFLAGS= |
7528 | AFTERIMAGE_CFLAGS= |
6462 | AFTERIMAGE_LIBS= |
7529 | AFTERIMAGE_LIBS= |
6463 | AFTERIMAGE_VERSION= |
7530 | AFTERIMAGE_VERSION= |
6464 | |
7531 | |
6465 | if test x$support_afterimage = xyes; then |
7532 | if test x$support_afterimage = xyes; then |
… | |
… | |
6506 | echo "${ECHO_T}no" >&6; } |
7573 | echo "${ECHO_T}no" >&6; } |
6507 | fi |
7574 | fi |
6508 | |
7575 | |
6509 | |
7576 | |
6510 | fi |
7577 | fi |
|
|
7578 | if test "x$afterimage_config" != "xno" ; then |
6511 | { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
7579 | { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
6512 | echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
7580 | echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
6513 | AFTERIMAGE_VERSION=`$afterimage_config --version` |
7581 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
6514 | if test -n $AFTERIMAGE_VERSION ; then |
7582 | if test -n "$xAFTERIMAGE_VERSION" ; then |
6515 | AFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
7583 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6516 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
7584 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
6517 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
7585 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
6518 | libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .` |
7586 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
6519 | libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .` |
7587 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
6520 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
7588 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
6521 | support_afterimage=yes |
7589 | support_afterimage=yes |
6522 | fi |
7590 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
6523 | fi |
7591 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
6524 | fi |
7592 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
6525 | |
|
|
6526 | if test "x$support_afterimage" = "xyes"; then |
|
|
6527 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6528 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
6529 | else |
|
|
6530 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
6531 | echo "${ECHO_T}no" >&6; } |
|
|
6532 | fi |
|
|
6533 | fi |
|
|
6534 | |
|
|
6535 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
|
|
6536 | |
|
|
6537 | |
|
|
6538 | |
|
|
6539 | # Initialize some more variables set by options. |
|
|
6540 | # The variables have the same names as the options, with |
|
|
6541 | # dashes changed to underlines. |
|
|
6542 | |
|
|
6543 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6544 | # paths, otherwise set no_xpm=yes. |
|
|
6545 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6546 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6547 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6548 | |
|
|
6549 | |
|
|
6550 | # Check whether --with-xpm_includes was given. |
|
|
6551 | if test "${with_xpm_includes+set}" = set; then |
|
|
6552 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6553 | else |
|
|
6554 | xpm_includes=NO |
|
|
6555 | fi |
|
|
6556 | |
|
|
6557 | |
|
|
6558 | # Check whether --with-xpm_library was given. |
|
|
6559 | if test "${with_xpm_library+set}" = set; then |
|
|
6560 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6561 | else |
|
|
6562 | xpm_libraries=NO |
|
|
6563 | fi |
|
|
6564 | |
|
|
6565 | |
|
|
6566 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6567 | |
|
|
6568 | # Check whether --with-xpm was given. |
|
|
6569 | if test "${with_xpm+set}" = set; then |
|
|
6570 | withval=$with_xpm; |
|
|
6571 | fi |
|
|
6572 | |
|
|
6573 | if test "$with_xpm" = no; then |
|
|
6574 | have_xpm=disabled |
|
|
6575 | else |
|
|
6576 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6578 | else |
|
|
6579 | |
|
|
6580 | vt_xpm_include_X11=no |
|
|
6581 | if test -n "$xpm_includes"; then |
|
|
6582 | vt_xpm_includes=$xpm_includes |
|
|
6583 | else |
|
|
6584 | vt_xpm_includes=NO |
|
|
6585 | fi |
|
|
6586 | if test -n "$xpm_libraries"; then |
|
|
6587 | vt_xpm_libraries=$xpm_libraries |
|
|
6588 | else |
|
|
6589 | vt_xpm_libraries=NO |
|
|
6590 | fi |
|
|
6591 | |
|
|
6592 | if test "$vt_xpm_includes" = NO; then |
|
|
6593 | # Guess where to find xpm.h |
|
|
6594 | |
|
|
6595 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6596 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6597 | |
|
|
6598 | # First, try using that file with no special directory specified. |
|
|
6599 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6600 | /* confdefs.h. */ |
|
|
6601 | _ACEOF |
|
|
6602 | cat confdefs.h >>conftest.$ac_ext |
|
|
6603 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6604 | /* end confdefs.h. */ |
|
|
6605 | #include <X11/xpm.h> |
|
|
6606 | _ACEOF |
|
|
6607 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6608 | case "(($ac_try" in |
|
|
6609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6610 | *) ac_try_echo=$ac_try;; |
|
|
6611 | esac |
|
|
6612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6613 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6614 | ac_status=$? |
|
|
6615 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6616 | rm -f conftest.er1 |
|
|
6617 | cat conftest.err >&5 |
|
|
6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6619 | (exit $ac_status); } >/dev/null && { |
|
|
6620 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6621 | test ! -s conftest.err |
|
|
6622 | }; then |
|
|
6623 | # We can compile using X headers with no special include directory. |
|
|
6624 | vt_xpm_includes= |
|
|
6625 | vt_xpm_include_X11=yes |
|
|
6626 | else |
|
|
6627 | echo "$as_me: failed program was:" >&5 |
|
|
6628 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6629 | |
|
|
6630 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6631 | # Look for the header file in a standard set of common directories. |
|
|
6632 | for ac_dir in \ |
|
|
6633 | /usr/X11/include \ |
|
|
6634 | /usr/X11R6/include \ |
|
|
6635 | /usr/X11R5/include \ |
|
|
6636 | /usr/X11R4/include \ |
|
|
6637 | \ |
|
|
6638 | /usr/include/X11 \ |
|
|
6639 | /usr/include/X11R6 \ |
|
|
6640 | /usr/include/X11R5 \ |
|
|
6641 | /usr/include/X11R4 \ |
|
|
6642 | \ |
|
|
6643 | /usr/local/X11/include \ |
|
|
6644 | /usr/local/X11R6/include \ |
|
|
6645 | /usr/local/X11R5/include \ |
|
|
6646 | /usr/local/X11R4/include \ |
|
|
6647 | \ |
|
|
6648 | /usr/local/include/X11 \ |
|
|
6649 | /usr/local/include/X11R6 \ |
|
|
6650 | /usr/local/include/X11R5 \ |
|
|
6651 | /usr/local/include/X11R4 \ |
|
|
6652 | \ |
|
|
6653 | /usr/X386/include \ |
|
|
6654 | /usr/x386/include \ |
|
|
6655 | /usr/XFree86/include/X11 \ |
|
|
6656 | \ |
|
|
6657 | /usr/include \ |
|
|
6658 | /usr/local/include \ |
|
|
6659 | /usr/unsupported/include \ |
|
|
6660 | /usr/athena/include \ |
|
|
6661 | /usr/local/x11r5/include \ |
|
|
6662 | /usr/lpp/Xamples/include \ |
|
|
6663 | \ |
|
|
6664 | /usr/openwin/include \ |
|
|
6665 | /usr/openwin/share/include \ |
|
|
6666 | ; \ |
|
|
6667 | do |
|
|
6668 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6669 | vt_xpm_includes="$ac_dir" |
|
|
6670 | vt_xpm_include_X11=yes |
|
|
6671 | break |
|
|
6672 | else |
|
|
6673 | if test -r "$ac_dir/xpm.h"; then |
|
|
6674 | vt_xpm_includes=$ac_dir |
|
|
6675 | break |
|
|
6676 | fi |
|
|
6677 | fi |
|
|
6678 | done |
|
|
6679 | fi |
|
|
6680 | |
|
|
6681 | rm -f conftest.err conftest.$ac_ext |
|
|
6682 | fi |
|
|
6683 | |
|
|
6684 | if test "$vt_xpm_libraries" = NO; then |
|
|
6685 | # Check for the libraries. |
|
|
6686 | |
|
|
6687 | # See if we find them without any special options. |
|
|
6688 | # Don't add to $LIBS permanently. |
|
|
6689 | ac_save_LIBS="$LIBS" |
|
|
6690 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6691 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6692 | /* confdefs.h. */ |
|
|
6693 | _ACEOF |
|
|
6694 | cat confdefs.h >>conftest.$ac_ext |
|
|
6695 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6696 | /* end confdefs.h. */ |
|
|
6697 | |
|
|
6698 | int |
|
|
6699 | main () |
|
|
6700 | { |
|
|
6701 | XpmReadFileToPixmap() |
|
|
6702 | ; |
|
|
6703 | return 0; |
|
|
6704 | } |
|
|
6705 | _ACEOF |
|
|
6706 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6707 | if { (ac_try="$ac_link" |
|
|
6708 | case "(($ac_try" in |
|
|
6709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6710 | *) ac_try_echo=$ac_try;; |
|
|
6711 | esac |
|
|
6712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6713 | (eval "$ac_link") 2>conftest.er1 |
|
|
6714 | ac_status=$? |
|
|
6715 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6716 | rm -f conftest.er1 |
|
|
6717 | cat conftest.err >&5 |
|
|
6718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6719 | (exit $ac_status); } && { |
|
|
6720 | test -z "$ac_cxx_werror_flag" || |
|
|
6721 | test ! -s conftest.err |
|
|
6722 | } && test -s conftest$ac_exeext && |
|
|
6723 | $as_test_x conftest$ac_exeext; then |
|
|
6724 | LIBS="$ac_save_LIBS" |
|
|
6725 | # We can link libXpm with no special library path. |
|
|
6726 | vt_xpm_libraries= |
|
|
6727 | else |
|
|
6728 | echo "$as_me: failed program was:" >&5 |
|
|
6729 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6730 | |
|
|
6731 | LIBS="$ac_save_LIBS" |
|
|
6732 | # First see if replacing the include by lib works. |
|
|
6733 | for ac_dir in \ |
|
|
6734 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6735 | /usr/X11/lib \ |
|
|
6736 | /usr/X11R6/lib \ |
|
|
6737 | /usr/X11R5/lib \ |
|
|
6738 | /usr/X11R4/lib \ |
|
|
6739 | \ |
|
|
6740 | /usr/lib/X11 \ |
|
|
6741 | /usr/lib/X11R6 \ |
|
|
6742 | /usr/lib/X11R5 \ |
|
|
6743 | /usr/lib/X11R4 \ |
|
|
6744 | \ |
|
|
6745 | /usr/local/X11/lib \ |
|
|
6746 | /usr/local/X11R6/lib \ |
|
|
6747 | /usr/local/X11R5/lib \ |
|
|
6748 | /usr/local/X11R4/lib \ |
|
|
6749 | \ |
|
|
6750 | /usr/local/lib/X11 \ |
|
|
6751 | /usr/local/lib/X11R6 \ |
|
|
6752 | /usr/local/lib/X11R5 \ |
|
|
6753 | /usr/local/lib/X11R4 \ |
|
|
6754 | \ |
|
|
6755 | /usr/X386/lib \ |
|
|
6756 | /usr/x386/lib \ |
|
|
6757 | /usr/XFree86/lib/X11 \ |
|
|
6758 | \ |
|
|
6759 | /usr/lib \ |
|
|
6760 | /usr/local/lib \ |
|
|
6761 | /usr/unsupported/lib \ |
|
|
6762 | /usr/athena/lib \ |
|
|
6763 | /usr/local/x11r5/lib \ |
|
|
6764 | /usr/lpp/Xamples/lib \ |
|
|
6765 | \ |
|
|
6766 | /usr/openwin/lib \ |
|
|
6767 | /usr/openwin/share/lib \ |
|
|
6768 | ; \ |
|
|
6769 | do |
|
|
6770 | for ac_extension in a so sl; do |
|
|
6771 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6772 | vt_xpm_libraries=$ac_dir |
|
|
6773 | break 2 |
|
|
6774 | fi |
|
|
6775 | done |
|
|
6776 | done |
|
|
6777 | fi |
|
|
6778 | |
|
|
6779 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6780 | conftest$ac_exeext conftest.$ac_ext |
|
|
6781 | fi |
|
|
6782 | |
|
|
6783 | |
|
|
6784 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6785 | ac_cv_have_xpm="have_xpm=no" |
|
|
6786 | else |
|
|
6787 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6788 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6789 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6790 | fi |
|
|
6791 | fi |
|
|
6792 | eval "$ac_cv_have_xpm" |
|
|
6793 | fi |
|
|
6794 | |
|
|
6795 | if test "$have_xpm" != yes; then |
|
|
6796 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6797 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6798 | no_xpm=yes |
|
|
6799 | else |
|
|
6800 | if test "$xpm_includes" != NO; then |
|
|
6801 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6802 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6803 | vt_xpm_include_X11=yes |
|
|
6804 | fi |
|
|
6805 | else |
|
|
6806 | vt_xpm_include_X11=no |
|
|
6807 | if test -z "$xpm_includes"; then |
|
|
6808 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6809 | /* confdefs.h. */ |
|
|
6810 | _ACEOF |
|
|
6811 | cat confdefs.h >>conftest.$ac_ext |
|
|
6812 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6813 | /* end confdefs.h. */ |
|
|
6814 | #include <X11/xpm.h> |
|
|
6815 | _ACEOF |
|
|
6816 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6817 | case "(($ac_try" in |
|
|
6818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6819 | *) ac_try_echo=$ac_try;; |
|
|
6820 | esac |
|
|
6821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6822 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6823 | ac_status=$? |
|
|
6824 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6825 | rm -f conftest.er1 |
|
|
6826 | cat conftest.err >&5 |
|
|
6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6828 | (exit $ac_status); } >/dev/null && { |
|
|
6829 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6830 | test ! -s conftest.err |
|
|
6831 | }; then |
|
|
6832 | vt_xpm_include_X11=yes |
|
|
6833 | else |
|
|
6834 | echo "$as_me: failed program was:" >&5 |
|
|
6835 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6836 | |
|
|
6837 | |
|
|
6838 | fi |
|
|
6839 | |
|
|
6840 | rm -f conftest.err conftest.$ac_ext |
|
|
6841 | else |
|
|
6842 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6843 | vt_xpm_include_X11=yes |
|
|
6844 | fi |
7593 | fi |
6845 | fi |
7594 | fi |
6846 | fi |
7595 | fi |
6847 | vt_xpm_includes=$xpm_includes |
7596 | if test "x$support_afterimage" = "xyes"; then |
|
|
7597 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
7598 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
7599 | else |
|
|
7600 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
7601 | echo "${ECHO_T}no" >&6; } |
|
|
7602 | fi |
6848 | fi |
7603 | fi |
6849 | if test "x$xpm_libraries" != xNO; then |
|
|
6850 | vt_xpm_libraries=$xpm_libraries |
|
|
6851 | fi |
|
|
6852 | # Update the cache value to reflect the command line values. |
|
|
6853 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6854 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6855 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6856 | eval "$ac_cv_have_xpm" |
|
|
6857 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
6858 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
6859 | if test -n "$vt_xpm_includes"; then |
|
|
6860 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
6861 | fi |
|
|
6862 | if test -n "$vt_xpm_includes"; then |
|
|
6863 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
6864 | fi |
|
|
6865 | XPM_LIBS="-lXpm" |
|
|
6866 | if test -n "$vt_xpm_libraries"; then |
|
|
6867 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
6868 | fi |
|
|
6869 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
6870 | |
|
|
6871 | cat >>confdefs.h <<\_ACEOF |
|
|
6872 | #define XPM_INC_X11 1 |
|
|
6873 | _ACEOF |
|
|
6874 | |
|
|
6875 | fi |
|
|
6876 | fi |
7604 | fi |
6877 | |
|
|
6878 | |
|
|
6879 | |
|
|
6880 | |
|
|
6881 | |
|
|
6882 | if test x$no_xpm = xyes; then |
|
|
6883 | support_xpm=needsmanualspecification |
|
|
6884 | fi |
|
|
6885 | fi |
|
|
6886 | |
|
|
6887 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
6888 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
6889 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
6890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6891 | else |
|
|
6892 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6893 | /* confdefs.h. */ |
|
|
6894 | _ACEOF |
|
|
6895 | cat confdefs.h >>conftest.$ac_ext |
|
|
6896 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6897 | /* end confdefs.h. */ |
|
|
6898 | #include <sys/types.h> |
|
|
6899 | #include <sys/wait.h> |
|
|
6900 | #ifndef WEXITSTATUS |
|
|
6901 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
6902 | #endif |
|
|
6903 | #ifndef WIFEXITED |
|
|
6904 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
6905 | #endif |
|
|
6906 | |
|
|
6907 | int |
|
|
6908 | main () |
|
|
6909 | { |
|
|
6910 | int s; |
|
|
6911 | wait (&s); |
|
|
6912 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
6913 | ; |
|
|
6914 | return 0; |
|
|
6915 | } |
|
|
6916 | _ACEOF |
|
|
6917 | rm -f conftest.$ac_objext |
|
|
6918 | if { (ac_try="$ac_compile" |
|
|
6919 | case "(($ac_try" in |
|
|
6920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6921 | *) ac_try_echo=$ac_try;; |
|
|
6922 | esac |
|
|
6923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6924 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6925 | ac_status=$? |
|
|
6926 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6927 | rm -f conftest.er1 |
|
|
6928 | cat conftest.err >&5 |
|
|
6929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6930 | (exit $ac_status); } && { |
|
|
6931 | test -z "$ac_cxx_werror_flag" || |
|
|
6932 | test ! -s conftest.err |
|
|
6933 | } && test -s conftest.$ac_objext; then |
|
|
6934 | ac_cv_header_sys_wait_h=yes |
|
|
6935 | else |
|
|
6936 | echo "$as_me: failed program was:" >&5 |
|
|
6937 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6938 | |
|
|
6939 | ac_cv_header_sys_wait_h=no |
|
|
6940 | fi |
|
|
6941 | |
|
|
6942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6943 | fi |
|
|
6944 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
6945 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
6946 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
6947 | |
|
|
6948 | cat >>confdefs.h <<\_ACEOF |
|
|
6949 | #define HAVE_SYS_WAIT_H 1 |
|
|
6950 | _ACEOF |
|
|
6951 | |
|
|
6952 | fi |
|
|
6953 | |
|
|
6954 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6955 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
6956 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6958 | else |
|
|
6959 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6960 | /* confdefs.h. */ |
|
|
6961 | _ACEOF |
|
|
6962 | cat confdefs.h >>conftest.$ac_ext |
|
|
6963 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6964 | /* end confdefs.h. */ |
|
|
6965 | #include <stdlib.h> |
|
|
6966 | #include <stdarg.h> |
|
|
6967 | #include <string.h> |
|
|
6968 | #include <float.h> |
|
|
6969 | |
|
|
6970 | int |
|
|
6971 | main () |
|
|
6972 | { |
|
|
6973 | |
|
|
6974 | ; |
|
|
6975 | return 0; |
|
|
6976 | } |
|
|
6977 | _ACEOF |
|
|
6978 | rm -f conftest.$ac_objext |
|
|
6979 | if { (ac_try="$ac_compile" |
|
|
6980 | case "(($ac_try" in |
|
|
6981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6982 | *) ac_try_echo=$ac_try;; |
|
|
6983 | esac |
|
|
6984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6985 | (eval "$ac_compile") 2>conftest.er1 |
|
|
6986 | ac_status=$? |
|
|
6987 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6988 | rm -f conftest.er1 |
|
|
6989 | cat conftest.err >&5 |
|
|
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6991 | (exit $ac_status); } && { |
|
|
6992 | test -z "$ac_cxx_werror_flag" || |
|
|
6993 | test ! -s conftest.err |
|
|
6994 | } && test -s conftest.$ac_objext; then |
|
|
6995 | ac_cv_header_stdc=yes |
|
|
6996 | else |
|
|
6997 | echo "$as_me: failed program was:" >&5 |
|
|
6998 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6999 | |
|
|
7000 | ac_cv_header_stdc=no |
|
|
7001 | fi |
|
|
7002 | |
|
|
7003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7004 | |
|
|
7005 | if test $ac_cv_header_stdc = yes; then |
|
|
7006 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7007 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7008 | /* confdefs.h. */ |
|
|
7009 | _ACEOF |
|
|
7010 | cat confdefs.h >>conftest.$ac_ext |
|
|
7011 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7012 | /* end confdefs.h. */ |
|
|
7013 | #include <string.h> |
|
|
7014 | |
|
|
7015 | _ACEOF |
|
|
7016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7017 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7018 | : |
|
|
7019 | else |
|
|
7020 | ac_cv_header_stdc=no |
|
|
7021 | fi |
|
|
7022 | rm -f conftest* |
|
|
7023 | |
|
|
7024 | fi |
|
|
7025 | |
|
|
7026 | if test $ac_cv_header_stdc = yes; then |
|
|
7027 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7028 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7029 | /* confdefs.h. */ |
|
|
7030 | _ACEOF |
|
|
7031 | cat confdefs.h >>conftest.$ac_ext |
|
|
7032 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7033 | /* end confdefs.h. */ |
|
|
7034 | #include <stdlib.h> |
|
|
7035 | |
|
|
7036 | _ACEOF |
|
|
7037 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7038 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7039 | : |
|
|
7040 | else |
|
|
7041 | ac_cv_header_stdc=no |
|
|
7042 | fi |
|
|
7043 | rm -f conftest* |
|
|
7044 | |
|
|
7045 | fi |
|
|
7046 | |
|
|
7047 | if test $ac_cv_header_stdc = yes; then |
|
|
7048 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7049 | if test "$cross_compiling" = yes; then |
|
|
7050 | : |
|
|
7051 | else |
|
|
7052 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7053 | /* confdefs.h. */ |
|
|
7054 | _ACEOF |
|
|
7055 | cat confdefs.h >>conftest.$ac_ext |
|
|
7056 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7057 | /* end confdefs.h. */ |
|
|
7058 | #include <ctype.h> |
|
|
7059 | #include <stdlib.h> |
|
|
7060 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7061 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7062 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7063 | #else |
|
|
7064 | # define ISLOWER(c) \ |
|
|
7065 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7066 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7067 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7068 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7069 | #endif |
|
|
7070 | |
|
|
7071 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7072 | int |
|
|
7073 | main () |
|
|
7074 | { |
|
|
7075 | int i; |
|
|
7076 | for (i = 0; i < 256; i++) |
|
|
7077 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7078 | || toupper (i) != TOUPPER (i)) |
|
|
7079 | return 2; |
|
|
7080 | return 0; |
|
|
7081 | } |
|
|
7082 | _ACEOF |
|
|
7083 | rm -f conftest$ac_exeext |
|
|
7084 | if { (ac_try="$ac_link" |
|
|
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_link") 2>&5 |
|
|
7091 | ac_status=$? |
|
|
7092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7093 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7094 | { (case "(($ac_try" in |
|
|
7095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7096 | *) ac_try_echo=$ac_try;; |
|
|
7097 | esac |
|
|
7098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7099 | (eval "$ac_try") 2>&5 |
|
|
7100 | ac_status=$? |
|
|
7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7102 | (exit $ac_status); }; }; then |
|
|
7103 | : |
|
|
7104 | else |
|
|
7105 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7106 | echo "$as_me: failed program was:" >&5 |
|
|
7107 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7108 | |
|
|
7109 | ( exit $ac_status ) |
|
|
7110 | ac_cv_header_stdc=no |
|
|
7111 | fi |
|
|
7112 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7113 | fi |
|
|
7114 | |
|
|
7115 | |
|
|
7116 | fi |
|
|
7117 | fi |
|
|
7118 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7119 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7120 | if test $ac_cv_header_stdc = yes; then |
|
|
7121 | |
|
|
7122 | cat >>confdefs.h <<\_ACEOF |
|
|
7123 | #define STDC_HEADERS 1 |
|
|
7124 | _ACEOF |
|
|
7125 | |
|
|
7126 | fi |
|
|
7127 | |
|
|
7128 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7129 | |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | |
|
|
7133 | |
|
|
7134 | |
|
|
7135 | |
|
|
7136 | |
|
|
7137 | |
|
|
7138 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7139 | inttypes.h stdint.h unistd.h |
|
|
7140 | do |
|
|
7141 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7142 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7144 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7146 | else |
|
|
7147 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7148 | /* confdefs.h. */ |
|
|
7149 | _ACEOF |
|
|
7150 | cat confdefs.h >>conftest.$ac_ext |
|
|
7151 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7152 | /* end confdefs.h. */ |
|
|
7153 | $ac_includes_default |
|
|
7154 | |
|
|
7155 | #include <$ac_header> |
|
|
7156 | _ACEOF |
|
|
7157 | rm -f conftest.$ac_objext |
|
|
7158 | if { (ac_try="$ac_compile" |
|
|
7159 | case "(($ac_try" in |
|
|
7160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7161 | *) ac_try_echo=$ac_try;; |
|
|
7162 | esac |
|
|
7163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7164 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7165 | ac_status=$? |
|
|
7166 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7167 | rm -f conftest.er1 |
|
|
7168 | cat conftest.err >&5 |
|
|
7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7170 | (exit $ac_status); } && { |
|
|
7171 | test -z "$ac_cxx_werror_flag" || |
|
|
7172 | test ! -s conftest.err |
|
|
7173 | } && test -s conftest.$ac_objext; then |
|
|
7174 | eval "$as_ac_Header=yes" |
|
|
7175 | else |
|
|
7176 | echo "$as_me: failed program was:" >&5 |
|
|
7177 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7178 | |
|
|
7179 | eval "$as_ac_Header=no" |
|
|
7180 | fi |
|
|
7181 | |
|
|
7182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7183 | fi |
|
|
7184 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7185 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7186 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7187 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7188 | cat >>confdefs.h <<_ACEOF |
|
|
7189 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7190 | _ACEOF |
|
|
7191 | |
|
|
7192 | fi |
|
|
7193 | |
|
|
7194 | done |
|
|
7195 | |
|
|
7196 | |
|
|
7197 | |
|
|
7198 | |
|
|
7199 | |
|
|
7200 | |
|
|
7201 | |
|
|
7202 | |
|
|
7203 | |
|
|
7204 | |
|
|
7205 | |
|
|
7206 | |
7605 | |
7207 | |
7606 | |
7208 | |
7607 | |
7209 | |
7608 | |
7210 | |
7609 | |
7211 | |
7610 | |
7212 | |
7611 | |
7213 | |
7612 | |
7214 | for ac_header in \ |
7613 | for ac_header in \ |
7215 | assert.h \ |
|
|
7216 | fcntl.h \ |
|
|
7217 | stdarg.h \ |
|
|
7218 | stdlib.h \ |
|
|
7219 | string.h \ |
|
|
7220 | termios.h \ |
|
|
7221 | unistd.h \ |
|
|
7222 | sys/byteorder.h \ |
7614 | sys/byteorder.h \ |
7223 | sys/ioctl.h \ |
7615 | sys/ioctl.h \ |
7224 | sys/select.h \ |
|
|
7225 | sys/sockio.h \ |
7616 | sys/sockio.h \ |
7226 | sys/strredir.h \ |
7617 | sys/strredir.h \ |
7227 | sys/time.h \ |
|
|
7228 | stdint.h \ |
7618 | stdint.h \ |
7229 | wchar.h \ |
7619 | wchar.h \ |
7230 | cwchar \ |
7620 | cwchar \ |
7231 | clocale \ |
|
|
7232 | |
7621 | |
7233 | do |
7622 | do |
7234 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7623 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7235 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7624 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7236 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7625 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7367 | fi |
7756 | fi |
7368 | |
7757 | |
7369 | done |
7758 | done |
7370 | |
7759 | |
7371 | |
7760 | |
7372 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7373 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7374 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7376 | else |
|
|
7377 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7378 | /* confdefs.h. */ |
|
|
7379 | _ACEOF |
|
|
7380 | cat confdefs.h >>conftest.$ac_ext |
|
|
7381 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7382 | /* end confdefs.h. */ |
|
|
7383 | #include <sys/types.h> |
|
|
7384 | #include <sys/time.h> |
|
|
7385 | #include <time.h> |
|
|
7386 | |
|
|
7387 | int |
|
|
7388 | main () |
|
|
7389 | { |
|
|
7390 | if ((struct tm *) 0) |
|
|
7391 | return 0; |
|
|
7392 | ; |
|
|
7393 | return 0; |
|
|
7394 | } |
|
|
7395 | _ACEOF |
|
|
7396 | rm -f conftest.$ac_objext |
|
|
7397 | if { (ac_try="$ac_compile" |
|
|
7398 | case "(($ac_try" in |
|
|
7399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7400 | *) ac_try_echo=$ac_try;; |
|
|
7401 | esac |
|
|
7402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7403 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7404 | ac_status=$? |
|
|
7405 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7406 | rm -f conftest.er1 |
|
|
7407 | cat conftest.err >&5 |
|
|
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7409 | (exit $ac_status); } && { |
|
|
7410 | test -z "$ac_cxx_werror_flag" || |
|
|
7411 | test ! -s conftest.err |
|
|
7412 | } && test -s conftest.$ac_objext; then |
|
|
7413 | ac_cv_header_time=yes |
|
|
7414 | else |
|
|
7415 | echo "$as_me: failed program was:" >&5 |
|
|
7416 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7417 | |
|
|
7418 | ac_cv_header_time=no |
|
|
7419 | fi |
|
|
7420 | |
|
|
7421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7422 | fi |
|
|
7423 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7424 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7425 | if test $ac_cv_header_time = yes; then |
|
|
7426 | |
|
|
7427 | cat >>confdefs.h <<\_ACEOF |
|
|
7428 | #define TIME_WITH_SYS_TIME 1 |
|
|
7429 | _ACEOF |
|
|
7430 | |
|
|
7431 | fi |
|
|
7432 | |
|
|
7433 | |
|
|
7434 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7435 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7436 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7438 | else |
|
|
7439 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7440 | /* confdefs.h. */ |
|
|
7441 | _ACEOF |
|
|
7442 | cat confdefs.h >>conftest.$ac_ext |
|
|
7443 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7444 | /* end confdefs.h. */ |
|
|
7445 | #include <stdio.h> |
|
|
7446 | #include <sys/ioctl.h> |
|
|
7447 | #ifdef HAVE_TERMIOS_H |
|
|
7448 | #include <termios.h> |
|
|
7449 | #endif |
|
|
7450 | int |
|
|
7451 | main () |
|
|
7452 | { |
|
|
7453 | int a = ECHO; |
|
|
7454 | ; |
|
|
7455 | return 0; |
|
|
7456 | } |
|
|
7457 | _ACEOF |
|
|
7458 | rm -f conftest.$ac_objext |
|
|
7459 | if { (ac_try="$ac_compile" |
|
|
7460 | case "(($ac_try" in |
|
|
7461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7462 | *) ac_try_echo=$ac_try;; |
|
|
7463 | esac |
|
|
7464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7465 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7466 | ac_status=$? |
|
|
7467 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7468 | rm -f conftest.er1 |
|
|
7469 | cat conftest.err >&5 |
|
|
7470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7471 | (exit $ac_status); } && { |
|
|
7472 | test -z "$ac_cxx_werror_flag" || |
|
|
7473 | test ! -s conftest.err |
|
|
7474 | } && test -s conftest.$ac_objext; then |
|
|
7475 | rxvt_cv_header_sysioctl=yes |
|
|
7476 | else |
|
|
7477 | echo "$as_me: failed program was:" >&5 |
|
|
7478 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7479 | |
|
|
7480 | rxvt_cv_header_sysioctl=no |
|
|
7481 | fi |
|
|
7482 | |
|
|
7483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7484 | fi |
|
|
7485 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7486 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7487 | |
|
|
7488 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7761 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7489 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7762 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7490 | if test "${rxvt_cv_xpointer+set}" = set; then |
7763 | if test "${rxvt_cv_xpointer+set}" = set; then |
7491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7492 | else |
7765 | else |
… | |
… | |
7603 | cat >>confdefs.h <<\_ACEOF |
7876 | cat >>confdefs.h <<\_ACEOF |
7604 | #define XLIB_ILLEGAL_ACCESS 1 |
7877 | #define XLIB_ILLEGAL_ACCESS 1 |
7605 | _ACEOF |
7878 | _ACEOF |
7606 | |
7879 | |
7607 | fi |
7880 | fi |
7608 | |
|
|
7609 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7610 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7611 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7613 | else |
|
|
7614 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7615 | /* confdefs.h. */ |
|
|
7616 | _ACEOF |
|
|
7617 | cat confdefs.h >>conftest.$ac_ext |
|
|
7618 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7619 | /* end confdefs.h. */ |
|
|
7620 | |
|
|
7621 | int |
|
|
7622 | main () |
|
|
7623 | { |
|
|
7624 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7625 | #ifndef __cplusplus |
|
|
7626 | /* Ultrix mips cc rejects this. */ |
|
|
7627 | typedef int charset[2]; |
|
|
7628 | const charset cs; |
|
|
7629 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7630 | char const *const *pcpcc; |
|
|
7631 | char **ppc; |
|
|
7632 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7633 | struct point {int x, y;}; |
|
|
7634 | static struct point const zero = {0,0}; |
|
|
7635 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7636 | It does not let you subtract one const X* pointer from another in |
|
|
7637 | an arm of an if-expression whose if-part is not a constant |
|
|
7638 | expression */ |
|
|
7639 | const char *g = "string"; |
|
|
7640 | pcpcc = &g + (g ? g-g : 0); |
|
|
7641 | /* HPUX 7.0 cc rejects these. */ |
|
|
7642 | ++pcpcc; |
|
|
7643 | ppc = (char**) pcpcc; |
|
|
7644 | pcpcc = (char const *const *) ppc; |
|
|
7645 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7646 | char *t; |
|
|
7647 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7648 | |
|
|
7649 | *t++ = 0; |
|
|
7650 | if (s) return 0; |
|
|
7651 | } |
|
|
7652 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7653 | int x[] = {25, 17}; |
|
|
7654 | const int *foo = &x[0]; |
|
|
7655 | ++foo; |
|
|
7656 | } |
|
|
7657 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7658 | typedef const int *iptr; |
|
|
7659 | iptr p = 0; |
|
|
7660 | ++p; |
|
|
7661 | } |
|
|
7662 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7663 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7664 | struct s { int j; const int *ap[3]; }; |
|
|
7665 | struct s *b; b->j = 5; |
|
|
7666 | } |
|
|
7667 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7668 | const int foo = 10; |
|
|
7669 | if (!foo) return 0; |
|
|
7670 | } |
|
|
7671 | return !cs[0] && !zero.x; |
|
|
7672 | #endif |
|
|
7673 | |
|
|
7674 | ; |
|
|
7675 | return 0; |
|
|
7676 | } |
|
|
7677 | _ACEOF |
|
|
7678 | rm -f conftest.$ac_objext |
|
|
7679 | if { (ac_try="$ac_compile" |
|
|
7680 | case "(($ac_try" in |
|
|
7681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7682 | *) ac_try_echo=$ac_try;; |
|
|
7683 | esac |
|
|
7684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7685 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7686 | ac_status=$? |
|
|
7687 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7688 | rm -f conftest.er1 |
|
|
7689 | cat conftest.err >&5 |
|
|
7690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7691 | (exit $ac_status); } && { |
|
|
7692 | test -z "$ac_cxx_werror_flag" || |
|
|
7693 | test ! -s conftest.err |
|
|
7694 | } && test -s conftest.$ac_objext; then |
|
|
7695 | ac_cv_c_const=yes |
|
|
7696 | else |
|
|
7697 | echo "$as_me: failed program was:" >&5 |
|
|
7698 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7699 | |
|
|
7700 | ac_cv_c_const=no |
|
|
7701 | fi |
|
|
7702 | |
|
|
7703 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7704 | fi |
|
|
7705 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7706 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7707 | if test $ac_cv_c_const = no; then |
|
|
7708 | |
|
|
7709 | cat >>confdefs.h <<\_ACEOF |
|
|
7710 | #define const |
|
|
7711 | _ACEOF |
|
|
7712 | |
|
|
7713 | fi |
|
|
7714 | |
|
|
7715 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
7716 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
7717 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7719 | else |
|
|
7720 | ac_cv_c_inline=no |
|
|
7721 | for ac_kw in inline __inline__ __inline; do |
|
|
7722 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7723 | /* confdefs.h. */ |
|
|
7724 | _ACEOF |
|
|
7725 | cat confdefs.h >>conftest.$ac_ext |
|
|
7726 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7727 | /* end confdefs.h. */ |
|
|
7728 | #ifndef __cplusplus |
|
|
7729 | typedef int foo_t; |
|
|
7730 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
7731 | $ac_kw foo_t foo () {return 0; } |
|
|
7732 | #endif |
|
|
7733 | |
|
|
7734 | _ACEOF |
|
|
7735 | rm -f conftest.$ac_objext |
|
|
7736 | if { (ac_try="$ac_compile" |
|
|
7737 | case "(($ac_try" in |
|
|
7738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7739 | *) ac_try_echo=$ac_try;; |
|
|
7740 | esac |
|
|
7741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7742 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7743 | ac_status=$? |
|
|
7744 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7745 | rm -f conftest.er1 |
|
|
7746 | cat conftest.err >&5 |
|
|
7747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7748 | (exit $ac_status); } && { |
|
|
7749 | test -z "$ac_cxx_werror_flag" || |
|
|
7750 | test ! -s conftest.err |
|
|
7751 | } && test -s conftest.$ac_objext; then |
|
|
7752 | ac_cv_c_inline=$ac_kw |
|
|
7753 | else |
|
|
7754 | echo "$as_me: failed program was:" >&5 |
|
|
7755 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7756 | |
|
|
7757 | |
|
|
7758 | fi |
|
|
7759 | |
|
|
7760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7761 | test "$ac_cv_c_inline" != no && break |
|
|
7762 | done |
|
|
7763 | |
|
|
7764 | fi |
|
|
7765 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
7766 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
7767 | |
|
|
7768 | |
|
|
7769 | case $ac_cv_c_inline in |
|
|
7770 | inline | yes) ;; |
|
|
7771 | *) |
|
|
7772 | case $ac_cv_c_inline in |
|
|
7773 | no) ac_val=;; |
|
|
7774 | *) ac_val=$ac_cv_c_inline;; |
|
|
7775 | esac |
|
|
7776 | cat >>confdefs.h <<_ACEOF |
|
|
7777 | #ifndef __cplusplus |
|
|
7778 | #define inline $ac_val |
|
|
7779 | #endif |
|
|
7780 | _ACEOF |
|
|
7781 | ;; |
|
|
7782 | esac |
|
|
7783 | |
|
|
7784 | |
|
|
7785 | |
7881 | |
7786 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7882 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7787 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7883 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7788 | if test "${ac_cv_type_mode_t+set}" = set; then |
7884 | if test "${ac_cv_type_mode_t+set}" = set; then |
7789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7946 | _ACEOF |
8042 | _ACEOF |
7947 | |
8043 | |
7948 | fi |
8044 | fi |
7949 | |
8045 | |
7950 | |
8046 | |
7951 | { echo "$as_me:$LINENO: checking for short" >&5 |
8047 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
7952 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8048 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
7953 | if test "${ac_cv_type_short+set}" = set; then |
8049 | if test "${ac_cv_c_int16_t+set}" = set; then |
7954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7955 | else |
8051 | else |
|
|
8052 | ac_cv_c_int16_t=no |
|
|
8053 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8054 | 'long long int' 'short int' 'signed char'; do |
7956 | cat >conftest.$ac_ext <<_ACEOF |
8055 | cat >conftest.$ac_ext <<_ACEOF |
7957 | /* confdefs.h. */ |
8056 | /* confdefs.h. */ |
7958 | _ACEOF |
8057 | _ACEOF |
7959 | cat confdefs.h >>conftest.$ac_ext |
8058 | cat confdefs.h >>conftest.$ac_ext |
7960 | cat >>conftest.$ac_ext <<_ACEOF |
8059 | cat >>conftest.$ac_ext <<_ACEOF |
7961 | /* end confdefs.h. */ |
8060 | /* end confdefs.h. */ |
7962 | $ac_includes_default |
8061 | $ac_includes_default |
7963 | typedef short ac__type_new_; |
|
|
7964 | int |
8062 | int |
7965 | main () |
8063 | main () |
7966 | { |
8064 | { |
7967 | if ((ac__type_new_ *) 0) |
8065 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
7968 | return 0; |
8066 | test_array [0] = 0 |
7969 | if (sizeof (ac__type_new_)) |
8067 | |
7970 | return 0; |
|
|
7971 | ; |
8068 | ; |
7972 | return 0; |
8069 | return 0; |
7973 | } |
8070 | } |
7974 | _ACEOF |
8071 | _ACEOF |
7975 | rm -f conftest.$ac_objext |
8072 | rm -f conftest.$ac_objext |
… | |
… | |
7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7988 | (exit $ac_status); } && { |
8085 | (exit $ac_status); } && { |
7989 | test -z "$ac_cxx_werror_flag" || |
8086 | test -z "$ac_cxx_werror_flag" || |
7990 | test ! -s conftest.err |
8087 | test ! -s conftest.err |
7991 | } && test -s conftest.$ac_objext; then |
8088 | } && test -s conftest.$ac_objext; then |
7992 | ac_cv_type_short=yes |
|
|
7993 | else |
|
|
7994 | echo "$as_me: failed program was:" >&5 |
|
|
7995 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7996 | |
|
|
7997 | ac_cv_type_short=no |
|
|
7998 | fi |
|
|
7999 | |
|
|
8000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8001 | fi |
|
|
8002 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8003 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8004 | |
|
|
8005 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8006 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8007 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8008 | # This bug is HP SR number 8606223364. |
|
|
8009 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8010 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8011 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8013 | else |
|
|
8014 | if test "$cross_compiling" = yes; then |
|
|
8015 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8016 | cat >conftest.$ac_ext <<_ACEOF |
8089 | cat >conftest.$ac_ext <<_ACEOF |
8017 | /* confdefs.h. */ |
8090 | /* confdefs.h. */ |
8018 | _ACEOF |
8091 | _ACEOF |
8019 | cat confdefs.h >>conftest.$ac_ext |
8092 | cat confdefs.h >>conftest.$ac_ext |
8020 | cat >>conftest.$ac_ext <<_ACEOF |
8093 | cat >>conftest.$ac_ext <<_ACEOF |
8021 | /* end confdefs.h. */ |
8094 | /* end confdefs.h. */ |
8022 | $ac_includes_default |
8095 | $ac_includes_default |
8023 | typedef short ac__type_sizeof_; |
|
|
8024 | int |
8096 | int |
8025 | main () |
8097 | main () |
8026 | { |
8098 | { |
8027 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8099 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8100 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8028 | test_array [0] = 0 |
8101 | test_array [0] = 0 |
8029 | |
8102 | |
8030 | ; |
8103 | ; |
8031 | return 0; |
8104 | return 0; |
8032 | } |
8105 | } |
… | |
… | |
8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8047 | (exit $ac_status); } && { |
8120 | (exit $ac_status); } && { |
8048 | test -z "$ac_cxx_werror_flag" || |
8121 | test -z "$ac_cxx_werror_flag" || |
8049 | test ! -s conftest.err |
8122 | test ! -s conftest.err |
8050 | } && test -s conftest.$ac_objext; then |
8123 | } && test -s conftest.$ac_objext; then |
8051 | ac_lo=0 ac_mid=0 |
8124 | : |
8052 | while :; do |
8125 | else |
|
|
8126 | echo "$as_me: failed program was:" >&5 |
|
|
8127 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8128 | |
|
|
8129 | case $ac_type in |
|
|
8130 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8131 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8132 | esac |
|
|
8133 | |
|
|
8134 | fi |
|
|
8135 | |
|
|
8136 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8137 | else |
|
|
8138 | echo "$as_me: failed program was:" >&5 |
|
|
8139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8140 | |
|
|
8141 | |
|
|
8142 | fi |
|
|
8143 | |
|
|
8144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8145 | test "$ac_cv_c_int16_t" != no && break |
|
|
8146 | done |
|
|
8147 | fi |
|
|
8148 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8149 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8150 | case $ac_cv_c_int16_t in #( |
|
|
8151 | no|yes) ;; #( |
|
|
8152 | *) |
|
|
8153 | |
|
|
8154 | cat >>confdefs.h <<_ACEOF |
|
|
8155 | #define int16_t $ac_cv_c_int16_t |
|
|
8156 | _ACEOF |
|
|
8157 | ;; |
|
|
8158 | esac |
|
|
8159 | |
|
|
8160 | |
|
|
8161 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8162 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8163 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8165 | else |
|
|
8166 | ac_cv_c_uint16_t=no |
|
|
8167 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8168 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8053 | cat >conftest.$ac_ext <<_ACEOF |
8169 | cat >conftest.$ac_ext <<_ACEOF |
8054 | /* confdefs.h. */ |
8170 | /* confdefs.h. */ |
8055 | _ACEOF |
8171 | _ACEOF |
8056 | cat confdefs.h >>conftest.$ac_ext |
8172 | cat confdefs.h >>conftest.$ac_ext |
8057 | cat >>conftest.$ac_ext <<_ACEOF |
8173 | cat >>conftest.$ac_ext <<_ACEOF |
8058 | /* end confdefs.h. */ |
8174 | /* end confdefs.h. */ |
8059 | $ac_includes_default |
8175 | $ac_includes_default |
8060 | typedef short ac__type_sizeof_; |
|
|
8061 | int |
8176 | int |
8062 | main () |
8177 | main () |
8063 | { |
8178 | { |
8064 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8179 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8065 | test_array [0] = 0 |
8180 | test_array [0] = 0 |
8066 | |
8181 | |
8067 | ; |
8182 | ; |
8068 | return 0; |
8183 | return 0; |
8069 | } |
8184 | } |
… | |
… | |
8083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8084 | (exit $ac_status); } && { |
8199 | (exit $ac_status); } && { |
8085 | test -z "$ac_cxx_werror_flag" || |
8200 | test -z "$ac_cxx_werror_flag" || |
8086 | test ! -s conftest.err |
8201 | test ! -s conftest.err |
8087 | } && test -s conftest.$ac_objext; then |
8202 | } && test -s conftest.$ac_objext; then |
8088 | ac_hi=$ac_mid; break |
8203 | case $ac_type in |
|
|
8204 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8205 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8206 | esac |
|
|
8207 | |
8089 | else |
8208 | else |
8090 | echo "$as_me: failed program was:" >&5 |
8209 | echo "$as_me: failed program was:" >&5 |
8091 | sed 's/^/| /' conftest.$ac_ext >&5 |
8210 | sed 's/^/| /' conftest.$ac_ext >&5 |
8092 | |
8211 | |
8093 | ac_lo=`expr $ac_mid + 1` |
8212 | |
8094 | if test $ac_lo -le $ac_mid; then |
|
|
8095 | ac_lo= ac_hi= |
|
|
8096 | break |
|
|
8097 | fi |
|
|
8098 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8099 | fi |
8213 | fi |
8100 | |
8214 | |
8101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8216 | test "$ac_cv_c_uint16_t" != no && break |
8102 | done |
8217 | done |
8103 | else |
8218 | fi |
8104 | echo "$as_me: failed program was:" >&5 |
8219 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8105 | sed 's/^/| /' conftest.$ac_ext >&5 |
8220 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8221 | case $ac_cv_c_uint16_t in #( |
|
|
8222 | no|yes) ;; #( |
|
|
8223 | *) |
8106 | |
8224 | |
|
|
8225 | |
|
|
8226 | cat >>confdefs.h <<_ACEOF |
|
|
8227 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8228 | _ACEOF |
|
|
8229 | ;; |
|
|
8230 | esac |
|
|
8231 | |
|
|
8232 | |
|
|
8233 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8234 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8235 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8237 | else |
|
|
8238 | ac_cv_c_int32_t=no |
|
|
8239 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8240 | 'long long int' 'short int' 'signed char'; do |
8107 | cat >conftest.$ac_ext <<_ACEOF |
8241 | cat >conftest.$ac_ext <<_ACEOF |
8108 | /* confdefs.h. */ |
8242 | /* confdefs.h. */ |
8109 | _ACEOF |
8243 | _ACEOF |
8110 | cat confdefs.h >>conftest.$ac_ext |
8244 | cat confdefs.h >>conftest.$ac_ext |
8111 | cat >>conftest.$ac_ext <<_ACEOF |
8245 | cat >>conftest.$ac_ext <<_ACEOF |
8112 | /* end confdefs.h. */ |
8246 | /* end confdefs.h. */ |
8113 | $ac_includes_default |
8247 | $ac_includes_default |
8114 | typedef short ac__type_sizeof_; |
|
|
8115 | int |
8248 | int |
8116 | main () |
8249 | main () |
8117 | { |
8250 | { |
8118 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8251 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8119 | test_array [0] = 0 |
8252 | test_array [0] = 0 |
8120 | |
8253 | |
8121 | ; |
8254 | ; |
8122 | return 0; |
8255 | return 0; |
8123 | } |
8256 | } |
… | |
… | |
8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8138 | (exit $ac_status); } && { |
8271 | (exit $ac_status); } && { |
8139 | test -z "$ac_cxx_werror_flag" || |
8272 | test -z "$ac_cxx_werror_flag" || |
8140 | test ! -s conftest.err |
8273 | test ! -s conftest.err |
8141 | } && test -s conftest.$ac_objext; then |
8274 | } && test -s conftest.$ac_objext; then |
8142 | ac_hi=-1 ac_mid=-1 |
|
|
8143 | while :; do |
|
|
8144 | cat >conftest.$ac_ext <<_ACEOF |
8275 | cat >conftest.$ac_ext <<_ACEOF |
8145 | /* confdefs.h. */ |
8276 | /* confdefs.h. */ |
8146 | _ACEOF |
8277 | _ACEOF |
8147 | cat confdefs.h >>conftest.$ac_ext |
8278 | cat confdefs.h >>conftest.$ac_ext |
8148 | cat >>conftest.$ac_ext <<_ACEOF |
8279 | cat >>conftest.$ac_ext <<_ACEOF |
8149 | /* end confdefs.h. */ |
8280 | /* end confdefs.h. */ |
8150 | $ac_includes_default |
8281 | $ac_includes_default |
8151 | typedef short ac__type_sizeof_; |
|
|
8152 | int |
8282 | int |
8153 | main () |
8283 | main () |
8154 | { |
8284 | { |
8155 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8285 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8286 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8156 | test_array [0] = 0 |
8287 | test_array [0] = 0 |
8157 | |
8288 | |
8158 | ; |
8289 | ; |
8159 | return 0; |
8290 | return 0; |
8160 | } |
8291 | } |
… | |
… | |
8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8175 | (exit $ac_status); } && { |
8306 | (exit $ac_status); } && { |
8176 | test -z "$ac_cxx_werror_flag" || |
8307 | test -z "$ac_cxx_werror_flag" || |
8177 | test ! -s conftest.err |
8308 | test ! -s conftest.err |
8178 | } && test -s conftest.$ac_objext; then |
8309 | } && test -s conftest.$ac_objext; then |
8179 | ac_lo=$ac_mid; break |
8310 | : |
8180 | else |
8311 | else |
8181 | echo "$as_me: failed program was:" >&5 |
8312 | echo "$as_me: failed program was:" >&5 |
8182 | sed 's/^/| /' conftest.$ac_ext >&5 |
8313 | sed 's/^/| /' conftest.$ac_ext >&5 |
8183 | |
8314 | |
8184 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8315 | case $ac_type in |
8185 | if test $ac_mid -le $ac_hi; then |
8316 | int32_t) ac_cv_c_int32_t=yes ;; |
8186 | ac_lo= ac_hi= |
8317 | *) ac_cv_c_int32_t=$ac_type ;; |
8187 | break |
8318 | esac |
8188 | fi |
8319 | |
8189 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8190 | fi |
8320 | fi |
8191 | |
8321 | |
8192 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8193 | done |
|
|
8194 | else |
8323 | else |
8195 | echo "$as_me: failed program was:" >&5 |
8324 | echo "$as_me: failed program was:" >&5 |
8196 | sed 's/^/| /' conftest.$ac_ext >&5 |
8325 | sed 's/^/| /' conftest.$ac_ext >&5 |
8197 | |
8326 | |
8198 | ac_lo= ac_hi= |
8327 | |
8199 | fi |
8328 | fi |
8200 | |
8329 | |
8201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8331 | test "$ac_cv_c_int32_t" != no && break |
|
|
8332 | done |
8202 | fi |
8333 | fi |
|
|
8334 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8335 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8336 | case $ac_cv_c_int32_t in #( |
|
|
8337 | no|yes) ;; #( |
|
|
8338 | *) |
8203 | |
8339 | |
8204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8340 | cat >>confdefs.h <<_ACEOF |
8205 | # Binary search between lo and hi bounds. |
8341 | #define int32_t $ac_cv_c_int32_t |
8206 | while test "x$ac_lo" != "x$ac_hi"; do |
8342 | _ACEOF |
8207 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8343 | ;; |
|
|
8344 | esac |
|
|
8345 | |
|
|
8346 | |
|
|
8347 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8348 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8349 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8351 | else |
|
|
8352 | ac_cv_c_uint32_t=no |
|
|
8353 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8354 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8208 | cat >conftest.$ac_ext <<_ACEOF |
8355 | cat >conftest.$ac_ext <<_ACEOF |
8209 | /* confdefs.h. */ |
8356 | /* confdefs.h. */ |
8210 | _ACEOF |
8357 | _ACEOF |
8211 | cat confdefs.h >>conftest.$ac_ext |
8358 | cat confdefs.h >>conftest.$ac_ext |
8212 | cat >>conftest.$ac_ext <<_ACEOF |
8359 | cat >>conftest.$ac_ext <<_ACEOF |
8213 | /* end confdefs.h. */ |
8360 | /* end confdefs.h. */ |
8214 | $ac_includes_default |
8361 | $ac_includes_default |
8215 | typedef short ac__type_sizeof_; |
|
|
8216 | int |
8362 | int |
8217 | main () |
8363 | main () |
8218 | { |
8364 | { |
8219 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8365 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8220 | test_array [0] = 0 |
8366 | test_array [0] = 0 |
8221 | |
8367 | |
8222 | ; |
8368 | ; |
8223 | return 0; |
8369 | return 0; |
8224 | } |
8370 | } |
… | |
… | |
8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8239 | (exit $ac_status); } && { |
8385 | (exit $ac_status); } && { |
8240 | test -z "$ac_cxx_werror_flag" || |
8386 | test -z "$ac_cxx_werror_flag" || |
8241 | test ! -s conftest.err |
8387 | test ! -s conftest.err |
8242 | } && test -s conftest.$ac_objext; then |
8388 | } && test -s conftest.$ac_objext; then |
8243 | ac_hi=$ac_mid |
8389 | case $ac_type in |
|
|
8390 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8391 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8392 | esac |
|
|
8393 | |
8244 | else |
8394 | else |
8245 | echo "$as_me: failed program was:" >&5 |
8395 | echo "$as_me: failed program was:" >&5 |
8246 | sed 's/^/| /' conftest.$ac_ext >&5 |
8396 | sed 's/^/| /' conftest.$ac_ext >&5 |
8247 | |
8397 | |
8248 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8398 | |
8249 | fi |
8399 | fi |
8250 | |
8400 | |
8251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8252 | done |
8402 | test "$ac_cv_c_uint32_t" != no && break |
8253 | case $ac_lo in |
8403 | done |
8254 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8255 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8256 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8257 | See \`config.log' for more details." >&5 |
|
|
8258 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8259 | See \`config.log' for more details." >&2;} |
|
|
8260 | { (exit 77); exit 77; }; } |
|
|
8261 | else |
|
|
8262 | ac_cv_sizeof_short=0 |
|
|
8263 | fi ;; |
|
|
8264 | esac |
|
|
8265 | else |
|
|
8266 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8267 | /* confdefs.h. */ |
|
|
8268 | _ACEOF |
|
|
8269 | cat confdefs.h >>conftest.$ac_ext |
|
|
8270 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8271 | /* end confdefs.h. */ |
|
|
8272 | $ac_includes_default |
|
|
8273 | typedef short ac__type_sizeof_; |
|
|
8274 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8275 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8276 | #include <stdio.h> |
|
|
8277 | #include <stdlib.h> |
|
|
8278 | int |
|
|
8279 | main () |
|
|
8280 | { |
|
|
8281 | |
|
|
8282 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8283 | if (! f) |
|
|
8284 | return 1; |
|
|
8285 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8286 | { |
|
|
8287 | long int i = longval (); |
|
|
8288 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8289 | return 1; |
|
|
8290 | fprintf (f, "%ld\n", i); |
|
|
8291 | } |
|
|
8292 | else |
|
|
8293 | { |
|
|
8294 | unsigned long int i = ulongval (); |
|
|
8295 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8296 | return 1; |
|
|
8297 | fprintf (f, "%lu\n", i); |
|
|
8298 | } |
|
|
8299 | return ferror (f) || fclose (f) != 0; |
|
|
8300 | |
|
|
8301 | ; |
|
|
8302 | return 0; |
|
|
8303 | } |
|
|
8304 | _ACEOF |
|
|
8305 | rm -f conftest$ac_exeext |
|
|
8306 | if { (ac_try="$ac_link" |
|
|
8307 | case "(($ac_try" in |
|
|
8308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8309 | *) ac_try_echo=$ac_try;; |
|
|
8310 | esac |
|
|
8311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8312 | (eval "$ac_link") 2>&5 |
|
|
8313 | ac_status=$? |
|
|
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8315 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8316 | { (case "(($ac_try" in |
|
|
8317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8318 | *) ac_try_echo=$ac_try;; |
|
|
8319 | esac |
|
|
8320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8321 | (eval "$ac_try") 2>&5 |
|
|
8322 | ac_status=$? |
|
|
8323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8324 | (exit $ac_status); }; }; then |
|
|
8325 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8326 | else |
|
|
8327 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8328 | echo "$as_me: failed program was:" >&5 |
|
|
8329 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8330 | |
|
|
8331 | ( exit $ac_status ) |
|
|
8332 | if test "$ac_cv_type_short" = yes; then |
|
|
8333 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8334 | See \`config.log' for more details." >&5 |
|
|
8335 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8336 | See \`config.log' for more details." >&2;} |
|
|
8337 | { (exit 77); exit 77; }; } |
|
|
8338 | else |
|
|
8339 | ac_cv_sizeof_short=0 |
|
|
8340 | fi |
|
|
8341 | fi |
8404 | fi |
8342 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8343 | fi |
|
|
8344 | rm -f conftest.val |
|
|
8345 | fi |
|
|
8346 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8405 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8347 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8406 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8407 | case $ac_cv_c_uint32_t in #( |
|
|
8408 | no|yes) ;; #( |
|
|
8409 | *) |
8348 | |
8410 | |
|
|
8411 | cat >>confdefs.h <<\_ACEOF |
|
|
8412 | #define _UINT32_T 1 |
|
|
8413 | _ACEOF |
8349 | |
8414 | |
8350 | |
8415 | |
8351 | cat >>confdefs.h <<_ACEOF |
8416 | cat >>confdefs.h <<_ACEOF |
8352 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8417 | #define uint32_t $ac_cv_c_uint32_t |
8353 | _ACEOF |
8418 | _ACEOF |
8354 | |
8419 | ;; |
8355 | |
|
|
8356 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8357 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8358 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8360 | else |
|
|
8361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8362 | /* confdefs.h. */ |
|
|
8363 | _ACEOF |
|
|
8364 | cat confdefs.h >>conftest.$ac_ext |
|
|
8365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8366 | /* end confdefs.h. */ |
|
|
8367 | $ac_includes_default |
|
|
8368 | typedef int ac__type_new_; |
|
|
8369 | int |
|
|
8370 | main () |
|
|
8371 | { |
|
|
8372 | if ((ac__type_new_ *) 0) |
|
|
8373 | return 0; |
|
|
8374 | if (sizeof (ac__type_new_)) |
|
|
8375 | return 0; |
|
|
8376 | ; |
|
|
8377 | return 0; |
|
|
8378 | } |
|
|
8379 | _ACEOF |
|
|
8380 | rm -f conftest.$ac_objext |
|
|
8381 | if { (ac_try="$ac_compile" |
|
|
8382 | case "(($ac_try" in |
|
|
8383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8384 | *) ac_try_echo=$ac_try;; |
|
|
8385 | esac |
8420 | esac |
8386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8387 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8388 | ac_status=$? |
|
|
8389 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8390 | rm -f conftest.er1 |
|
|
8391 | cat conftest.err >&5 |
|
|
8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8393 | (exit $ac_status); } && { |
|
|
8394 | test -z "$ac_cxx_werror_flag" || |
|
|
8395 | test ! -s conftest.err |
|
|
8396 | } && test -s conftest.$ac_objext; then |
|
|
8397 | ac_cv_type_int=yes |
|
|
8398 | else |
|
|
8399 | echo "$as_me: failed program was:" >&5 |
|
|
8400 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8401 | |
8421 | |
8402 | ac_cv_type_int=no |
|
|
8403 | fi |
|
|
8404 | |
8422 | |
8405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8406 | fi |
|
|
8407 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8408 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8409 | |
8423 | |
8410 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8411 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8412 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8413 | # This bug is HP SR number 8606223364. |
|
|
8414 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8415 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8416 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8418 | else |
|
|
8419 | if test "$cross_compiling" = yes; then |
|
|
8420 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8421 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8422 | /* confdefs.h. */ |
|
|
8423 | _ACEOF |
|
|
8424 | cat confdefs.h >>conftest.$ac_ext |
|
|
8425 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8426 | /* end confdefs.h. */ |
|
|
8427 | $ac_includes_default |
|
|
8428 | typedef int ac__type_sizeof_; |
|
|
8429 | int |
|
|
8430 | main () |
|
|
8431 | { |
|
|
8432 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8433 | test_array [0] = 0 |
|
|
8434 | |
|
|
8435 | ; |
|
|
8436 | return 0; |
|
|
8437 | } |
|
|
8438 | _ACEOF |
|
|
8439 | rm -f conftest.$ac_objext |
|
|
8440 | if { (ac_try="$ac_compile" |
|
|
8441 | case "(($ac_try" in |
|
|
8442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8443 | *) ac_try_echo=$ac_try;; |
|
|
8444 | esac |
|
|
8445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8446 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8447 | ac_status=$? |
|
|
8448 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8449 | rm -f conftest.er1 |
|
|
8450 | cat conftest.err >&5 |
|
|
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8452 | (exit $ac_status); } && { |
|
|
8453 | test -z "$ac_cxx_werror_flag" || |
|
|
8454 | test ! -s conftest.err |
|
|
8455 | } && test -s conftest.$ac_objext; then |
|
|
8456 | ac_lo=0 ac_mid=0 |
|
|
8457 | while :; do |
|
|
8458 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8459 | /* confdefs.h. */ |
|
|
8460 | _ACEOF |
|
|
8461 | cat confdefs.h >>conftest.$ac_ext |
|
|
8462 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8463 | /* end confdefs.h. */ |
|
|
8464 | $ac_includes_default |
|
|
8465 | typedef int ac__type_sizeof_; |
|
|
8466 | int |
|
|
8467 | main () |
|
|
8468 | { |
|
|
8469 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8470 | test_array [0] = 0 |
|
|
8471 | |
|
|
8472 | ; |
|
|
8473 | return 0; |
|
|
8474 | } |
|
|
8475 | _ACEOF |
|
|
8476 | rm -f conftest.$ac_objext |
|
|
8477 | if { (ac_try="$ac_compile" |
|
|
8478 | case "(($ac_try" in |
|
|
8479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8480 | *) ac_try_echo=$ac_try;; |
|
|
8481 | esac |
|
|
8482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8483 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8484 | ac_status=$? |
|
|
8485 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8486 | rm -f conftest.er1 |
|
|
8487 | cat conftest.err >&5 |
|
|
8488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8489 | (exit $ac_status); } && { |
|
|
8490 | test -z "$ac_cxx_werror_flag" || |
|
|
8491 | test ! -s conftest.err |
|
|
8492 | } && test -s conftest.$ac_objext; then |
|
|
8493 | ac_hi=$ac_mid; break |
|
|
8494 | else |
|
|
8495 | echo "$as_me: failed program was:" >&5 |
|
|
8496 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8497 | |
|
|
8498 | ac_lo=`expr $ac_mid + 1` |
|
|
8499 | if test $ac_lo -le $ac_mid; then |
|
|
8500 | ac_lo= ac_hi= |
|
|
8501 | break |
|
|
8502 | fi |
|
|
8503 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8504 | fi |
|
|
8505 | |
|
|
8506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8507 | done |
|
|
8508 | else |
|
|
8509 | echo "$as_me: failed program was:" >&5 |
|
|
8510 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8511 | |
|
|
8512 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8513 | /* confdefs.h. */ |
|
|
8514 | _ACEOF |
|
|
8515 | cat confdefs.h >>conftest.$ac_ext |
|
|
8516 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8517 | /* end confdefs.h. */ |
|
|
8518 | $ac_includes_default |
|
|
8519 | typedef int ac__type_sizeof_; |
|
|
8520 | int |
|
|
8521 | main () |
|
|
8522 | { |
|
|
8523 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8524 | test_array [0] = 0 |
|
|
8525 | |
|
|
8526 | ; |
|
|
8527 | return 0; |
|
|
8528 | } |
|
|
8529 | _ACEOF |
|
|
8530 | rm -f conftest.$ac_objext |
|
|
8531 | if { (ac_try="$ac_compile" |
|
|
8532 | case "(($ac_try" in |
|
|
8533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8534 | *) ac_try_echo=$ac_try;; |
|
|
8535 | esac |
|
|
8536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8537 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8538 | ac_status=$? |
|
|
8539 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8540 | rm -f conftest.er1 |
|
|
8541 | cat conftest.err >&5 |
|
|
8542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8543 | (exit $ac_status); } && { |
|
|
8544 | test -z "$ac_cxx_werror_flag" || |
|
|
8545 | test ! -s conftest.err |
|
|
8546 | } && test -s conftest.$ac_objext; then |
|
|
8547 | ac_hi=-1 ac_mid=-1 |
|
|
8548 | while :; do |
|
|
8549 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8550 | /* confdefs.h. */ |
|
|
8551 | _ACEOF |
|
|
8552 | cat confdefs.h >>conftest.$ac_ext |
|
|
8553 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8554 | /* end confdefs.h. */ |
|
|
8555 | $ac_includes_default |
|
|
8556 | typedef int ac__type_sizeof_; |
|
|
8557 | int |
|
|
8558 | main () |
|
|
8559 | { |
|
|
8560 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8561 | test_array [0] = 0 |
|
|
8562 | |
|
|
8563 | ; |
|
|
8564 | return 0; |
|
|
8565 | } |
|
|
8566 | _ACEOF |
|
|
8567 | rm -f conftest.$ac_objext |
|
|
8568 | if { (ac_try="$ac_compile" |
|
|
8569 | case "(($ac_try" in |
|
|
8570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8571 | *) ac_try_echo=$ac_try;; |
|
|
8572 | esac |
|
|
8573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8574 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8575 | ac_status=$? |
|
|
8576 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8577 | rm -f conftest.er1 |
|
|
8578 | cat conftest.err >&5 |
|
|
8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8580 | (exit $ac_status); } && { |
|
|
8581 | test -z "$ac_cxx_werror_flag" || |
|
|
8582 | test ! -s conftest.err |
|
|
8583 | } && test -s conftest.$ac_objext; then |
|
|
8584 | ac_lo=$ac_mid; break |
|
|
8585 | else |
|
|
8586 | echo "$as_me: failed program was:" >&5 |
|
|
8587 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8588 | |
|
|
8589 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8590 | if test $ac_mid -le $ac_hi; then |
|
|
8591 | ac_lo= ac_hi= |
|
|
8592 | break |
|
|
8593 | fi |
|
|
8594 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8595 | fi |
|
|
8596 | |
|
|
8597 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8598 | done |
|
|
8599 | else |
|
|
8600 | echo "$as_me: failed program was:" >&5 |
|
|
8601 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8602 | |
|
|
8603 | ac_lo= ac_hi= |
|
|
8604 | fi |
|
|
8605 | |
|
|
8606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8607 | fi |
|
|
8608 | |
|
|
8609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8610 | # Binary search between lo and hi bounds. |
|
|
8611 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8612 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8613 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8614 | /* confdefs.h. */ |
|
|
8615 | _ACEOF |
|
|
8616 | cat confdefs.h >>conftest.$ac_ext |
|
|
8617 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8618 | /* end confdefs.h. */ |
|
|
8619 | $ac_includes_default |
|
|
8620 | typedef int ac__type_sizeof_; |
|
|
8621 | int |
|
|
8622 | main () |
|
|
8623 | { |
|
|
8624 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8625 | test_array [0] = 0 |
|
|
8626 | |
|
|
8627 | ; |
|
|
8628 | return 0; |
|
|
8629 | } |
|
|
8630 | _ACEOF |
|
|
8631 | rm -f conftest.$ac_objext |
|
|
8632 | if { (ac_try="$ac_compile" |
|
|
8633 | case "(($ac_try" in |
|
|
8634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8635 | *) ac_try_echo=$ac_try;; |
|
|
8636 | esac |
|
|
8637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8638 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8639 | ac_status=$? |
|
|
8640 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8641 | rm -f conftest.er1 |
|
|
8642 | cat conftest.err >&5 |
|
|
8643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8644 | (exit $ac_status); } && { |
|
|
8645 | test -z "$ac_cxx_werror_flag" || |
|
|
8646 | test ! -s conftest.err |
|
|
8647 | } && test -s conftest.$ac_objext; then |
|
|
8648 | ac_hi=$ac_mid |
|
|
8649 | else |
|
|
8650 | echo "$as_me: failed program was:" >&5 |
|
|
8651 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8652 | |
|
|
8653 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8654 | fi |
|
|
8655 | |
|
|
8656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8657 | done |
|
|
8658 | case $ac_lo in |
|
|
8659 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8660 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8661 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8662 | See \`config.log' for more details." >&5 |
|
|
8663 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8664 | See \`config.log' for more details." >&2;} |
|
|
8665 | { (exit 77); exit 77; }; } |
|
|
8666 | else |
|
|
8667 | ac_cv_sizeof_int=0 |
|
|
8668 | fi ;; |
|
|
8669 | esac |
|
|
8670 | else |
|
|
8671 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8672 | /* confdefs.h. */ |
|
|
8673 | _ACEOF |
|
|
8674 | cat confdefs.h >>conftest.$ac_ext |
|
|
8675 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8676 | /* end confdefs.h. */ |
|
|
8677 | $ac_includes_default |
|
|
8678 | typedef int ac__type_sizeof_; |
|
|
8679 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8680 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8681 | #include <stdio.h> |
|
|
8682 | #include <stdlib.h> |
|
|
8683 | int |
|
|
8684 | main () |
|
|
8685 | { |
|
|
8686 | |
|
|
8687 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8688 | if (! f) |
|
|
8689 | return 1; |
|
|
8690 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8691 | { |
|
|
8692 | long int i = longval (); |
|
|
8693 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8694 | return 1; |
|
|
8695 | fprintf (f, "%ld\n", i); |
|
|
8696 | } |
|
|
8697 | else |
|
|
8698 | { |
|
|
8699 | unsigned long int i = ulongval (); |
|
|
8700 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8701 | return 1; |
|
|
8702 | fprintf (f, "%lu\n", i); |
|
|
8703 | } |
|
|
8704 | return ferror (f) || fclose (f) != 0; |
|
|
8705 | |
|
|
8706 | ; |
|
|
8707 | return 0; |
|
|
8708 | } |
|
|
8709 | _ACEOF |
|
|
8710 | rm -f conftest$ac_exeext |
|
|
8711 | if { (ac_try="$ac_link" |
|
|
8712 | case "(($ac_try" in |
|
|
8713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8714 | *) ac_try_echo=$ac_try;; |
|
|
8715 | esac |
|
|
8716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8717 | (eval "$ac_link") 2>&5 |
|
|
8718 | ac_status=$? |
|
|
8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8721 | { (case "(($ac_try" in |
|
|
8722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8723 | *) ac_try_echo=$ac_try;; |
|
|
8724 | esac |
|
|
8725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8726 | (eval "$ac_try") 2>&5 |
|
|
8727 | ac_status=$? |
|
|
8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8729 | (exit $ac_status); }; }; then |
|
|
8730 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
8731 | else |
|
|
8732 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8733 | echo "$as_me: failed program was:" >&5 |
|
|
8734 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8735 | |
|
|
8736 | ( exit $ac_status ) |
|
|
8737 | if test "$ac_cv_type_int" = yes; then |
|
|
8738 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8739 | See \`config.log' for more details." >&5 |
|
|
8740 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8741 | See \`config.log' for more details." >&2;} |
|
|
8742 | { (exit 77); exit 77; }; } |
|
|
8743 | else |
|
|
8744 | ac_cv_sizeof_int=0 |
|
|
8745 | fi |
|
|
8746 | fi |
|
|
8747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8748 | fi |
|
|
8749 | rm -f conftest.val |
|
|
8750 | fi |
|
|
8751 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
8752 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
8753 | |
|
|
8754 | |
|
|
8755 | |
|
|
8756 | cat >>confdefs.h <<_ACEOF |
|
|
8757 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
8758 | _ACEOF |
|
|
8759 | |
|
|
8760 | |
|
|
8761 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
8762 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
8763 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
8764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8765 | else |
|
|
8766 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8767 | /* confdefs.h. */ |
|
|
8768 | _ACEOF |
|
|
8769 | cat confdefs.h >>conftest.$ac_ext |
|
|
8770 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8771 | /* end confdefs.h. */ |
|
|
8772 | $ac_includes_default |
|
|
8773 | typedef long long ac__type_new_; |
|
|
8774 | int |
|
|
8775 | main () |
|
|
8776 | { |
|
|
8777 | if ((ac__type_new_ *) 0) |
|
|
8778 | return 0; |
|
|
8779 | if (sizeof (ac__type_new_)) |
|
|
8780 | return 0; |
|
|
8781 | ; |
|
|
8782 | return 0; |
|
|
8783 | } |
|
|
8784 | _ACEOF |
|
|
8785 | rm -f conftest.$ac_objext |
|
|
8786 | if { (ac_try="$ac_compile" |
|
|
8787 | case "(($ac_try" in |
|
|
8788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8789 | *) ac_try_echo=$ac_try;; |
|
|
8790 | esac |
|
|
8791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8792 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8793 | ac_status=$? |
|
|
8794 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8795 | rm -f conftest.er1 |
|
|
8796 | cat conftest.err >&5 |
|
|
8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8798 | (exit $ac_status); } && { |
|
|
8799 | test -z "$ac_cxx_werror_flag" || |
|
|
8800 | test ! -s conftest.err |
|
|
8801 | } && test -s conftest.$ac_objext; then |
|
|
8802 | ac_cv_type_long_long=yes |
|
|
8803 | else |
|
|
8804 | echo "$as_me: failed program was:" >&5 |
|
|
8805 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8806 | |
|
|
8807 | ac_cv_type_long_long=no |
|
|
8808 | fi |
|
|
8809 | |
|
|
8810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8811 | fi |
|
|
8812 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
8813 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
8814 | |
|
|
8815 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8816 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8817 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8818 | # This bug is HP SR number 8606223364. |
|
|
8819 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
8820 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
8821 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
8822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8823 | else |
|
|
8824 | if test "$cross_compiling" = yes; then |
|
|
8825 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8826 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8827 | /* confdefs.h. */ |
|
|
8828 | _ACEOF |
|
|
8829 | cat confdefs.h >>conftest.$ac_ext |
|
|
8830 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8831 | /* end confdefs.h. */ |
|
|
8832 | $ac_includes_default |
|
|
8833 | typedef long long ac__type_sizeof_; |
|
|
8834 | int |
|
|
8835 | main () |
|
|
8836 | { |
|
|
8837 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8838 | test_array [0] = 0 |
|
|
8839 | |
|
|
8840 | ; |
|
|
8841 | return 0; |
|
|
8842 | } |
|
|
8843 | _ACEOF |
|
|
8844 | rm -f conftest.$ac_objext |
|
|
8845 | if { (ac_try="$ac_compile" |
|
|
8846 | case "(($ac_try" in |
|
|
8847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8848 | *) ac_try_echo=$ac_try;; |
|
|
8849 | esac |
|
|
8850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8851 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8852 | ac_status=$? |
|
|
8853 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8854 | rm -f conftest.er1 |
|
|
8855 | cat conftest.err >&5 |
|
|
8856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8857 | (exit $ac_status); } && { |
|
|
8858 | test -z "$ac_cxx_werror_flag" || |
|
|
8859 | test ! -s conftest.err |
|
|
8860 | } && test -s conftest.$ac_objext; then |
|
|
8861 | ac_lo=0 ac_mid=0 |
|
|
8862 | while :; do |
|
|
8863 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8864 | /* confdefs.h. */ |
|
|
8865 | _ACEOF |
|
|
8866 | cat confdefs.h >>conftest.$ac_ext |
|
|
8867 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8868 | /* end confdefs.h. */ |
|
|
8869 | $ac_includes_default |
|
|
8870 | typedef long long ac__type_sizeof_; |
|
|
8871 | int |
|
|
8872 | main () |
|
|
8873 | { |
|
|
8874 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8875 | test_array [0] = 0 |
|
|
8876 | |
|
|
8877 | ; |
|
|
8878 | return 0; |
|
|
8879 | } |
|
|
8880 | _ACEOF |
|
|
8881 | rm -f conftest.$ac_objext |
|
|
8882 | if { (ac_try="$ac_compile" |
|
|
8883 | case "(($ac_try" in |
|
|
8884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8885 | *) ac_try_echo=$ac_try;; |
|
|
8886 | esac |
|
|
8887 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8888 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8889 | ac_status=$? |
|
|
8890 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8891 | rm -f conftest.er1 |
|
|
8892 | cat conftest.err >&5 |
|
|
8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8894 | (exit $ac_status); } && { |
|
|
8895 | test -z "$ac_cxx_werror_flag" || |
|
|
8896 | test ! -s conftest.err |
|
|
8897 | } && test -s conftest.$ac_objext; then |
|
|
8898 | ac_hi=$ac_mid; break |
|
|
8899 | else |
|
|
8900 | echo "$as_me: failed program was:" >&5 |
|
|
8901 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8902 | |
|
|
8903 | ac_lo=`expr $ac_mid + 1` |
|
|
8904 | if test $ac_lo -le $ac_mid; then |
|
|
8905 | ac_lo= ac_hi= |
|
|
8906 | break |
|
|
8907 | fi |
|
|
8908 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8909 | fi |
|
|
8910 | |
|
|
8911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8912 | done |
|
|
8913 | else |
|
|
8914 | echo "$as_me: failed program was:" >&5 |
|
|
8915 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8916 | |
|
|
8917 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8918 | /* confdefs.h. */ |
|
|
8919 | _ACEOF |
|
|
8920 | cat confdefs.h >>conftest.$ac_ext |
|
|
8921 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8922 | /* end confdefs.h. */ |
|
|
8923 | $ac_includes_default |
|
|
8924 | typedef long long ac__type_sizeof_; |
|
|
8925 | int |
|
|
8926 | main () |
|
|
8927 | { |
|
|
8928 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8929 | test_array [0] = 0 |
|
|
8930 | |
|
|
8931 | ; |
|
|
8932 | return 0; |
|
|
8933 | } |
|
|
8934 | _ACEOF |
|
|
8935 | rm -f conftest.$ac_objext |
|
|
8936 | if { (ac_try="$ac_compile" |
|
|
8937 | case "(($ac_try" in |
|
|
8938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8939 | *) ac_try_echo=$ac_try;; |
|
|
8940 | esac |
|
|
8941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8942 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8943 | ac_status=$? |
|
|
8944 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8945 | rm -f conftest.er1 |
|
|
8946 | cat conftest.err >&5 |
|
|
8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8948 | (exit $ac_status); } && { |
|
|
8949 | test -z "$ac_cxx_werror_flag" || |
|
|
8950 | test ! -s conftest.err |
|
|
8951 | } && test -s conftest.$ac_objext; then |
|
|
8952 | ac_hi=-1 ac_mid=-1 |
|
|
8953 | while :; do |
|
|
8954 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8955 | /* confdefs.h. */ |
|
|
8956 | _ACEOF |
|
|
8957 | cat confdefs.h >>conftest.$ac_ext |
|
|
8958 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8959 | /* end confdefs.h. */ |
|
|
8960 | $ac_includes_default |
|
|
8961 | typedef long long ac__type_sizeof_; |
|
|
8962 | int |
|
|
8963 | main () |
|
|
8964 | { |
|
|
8965 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8966 | test_array [0] = 0 |
|
|
8967 | |
|
|
8968 | ; |
|
|
8969 | return 0; |
|
|
8970 | } |
|
|
8971 | _ACEOF |
|
|
8972 | rm -f conftest.$ac_objext |
|
|
8973 | if { (ac_try="$ac_compile" |
|
|
8974 | case "(($ac_try" in |
|
|
8975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8976 | *) ac_try_echo=$ac_try;; |
|
|
8977 | esac |
|
|
8978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8979 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8980 | ac_status=$? |
|
|
8981 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8982 | rm -f conftest.er1 |
|
|
8983 | cat conftest.err >&5 |
|
|
8984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8985 | (exit $ac_status); } && { |
|
|
8986 | test -z "$ac_cxx_werror_flag" || |
|
|
8987 | test ! -s conftest.err |
|
|
8988 | } && test -s conftest.$ac_objext; then |
|
|
8989 | ac_lo=$ac_mid; break |
|
|
8990 | else |
|
|
8991 | echo "$as_me: failed program was:" >&5 |
|
|
8992 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8993 | |
|
|
8994 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8995 | if test $ac_mid -le $ac_hi; then |
|
|
8996 | ac_lo= ac_hi= |
|
|
8997 | break |
|
|
8998 | fi |
|
|
8999 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9000 | fi |
|
|
9001 | |
|
|
9002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9003 | done |
|
|
9004 | else |
|
|
9005 | echo "$as_me: failed program was:" >&5 |
|
|
9006 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9007 | |
|
|
9008 | ac_lo= ac_hi= |
|
|
9009 | fi |
|
|
9010 | |
|
|
9011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9012 | fi |
|
|
9013 | |
|
|
9014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9015 | # Binary search between lo and hi bounds. |
|
|
9016 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9017 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9018 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9019 | /* confdefs.h. */ |
|
|
9020 | _ACEOF |
|
|
9021 | cat confdefs.h >>conftest.$ac_ext |
|
|
9022 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9023 | /* end confdefs.h. */ |
|
|
9024 | $ac_includes_default |
|
|
9025 | typedef long long ac__type_sizeof_; |
|
|
9026 | int |
|
|
9027 | main () |
|
|
9028 | { |
|
|
9029 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9030 | test_array [0] = 0 |
|
|
9031 | |
|
|
9032 | ; |
|
|
9033 | return 0; |
|
|
9034 | } |
|
|
9035 | _ACEOF |
|
|
9036 | rm -f conftest.$ac_objext |
|
|
9037 | if { (ac_try="$ac_compile" |
|
|
9038 | case "(($ac_try" in |
|
|
9039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9040 | *) ac_try_echo=$ac_try;; |
|
|
9041 | esac |
|
|
9042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9043 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9044 | ac_status=$? |
|
|
9045 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9046 | rm -f conftest.er1 |
|
|
9047 | cat conftest.err >&5 |
|
|
9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9049 | (exit $ac_status); } && { |
|
|
9050 | test -z "$ac_cxx_werror_flag" || |
|
|
9051 | test ! -s conftest.err |
|
|
9052 | } && test -s conftest.$ac_objext; then |
|
|
9053 | ac_hi=$ac_mid |
|
|
9054 | else |
|
|
9055 | echo "$as_me: failed program was:" >&5 |
|
|
9056 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9057 | |
|
|
9058 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9059 | fi |
|
|
9060 | |
|
|
9061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9062 | done |
|
|
9063 | case $ac_lo in |
|
|
9064 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9065 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9066 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9067 | See \`config.log' for more details." >&5 |
|
|
9068 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9069 | See \`config.log' for more details." >&2;} |
|
|
9070 | { (exit 77); exit 77; }; } |
|
|
9071 | else |
|
|
9072 | ac_cv_sizeof_long_long=0 |
|
|
9073 | fi ;; |
|
|
9074 | esac |
|
|
9075 | else |
|
|
9076 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9077 | /* confdefs.h. */ |
|
|
9078 | _ACEOF |
|
|
9079 | cat confdefs.h >>conftest.$ac_ext |
|
|
9080 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9081 | /* end confdefs.h. */ |
|
|
9082 | $ac_includes_default |
|
|
9083 | typedef long long ac__type_sizeof_; |
|
|
9084 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9085 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9086 | #include <stdio.h> |
|
|
9087 | #include <stdlib.h> |
|
|
9088 | int |
|
|
9089 | main () |
|
|
9090 | { |
|
|
9091 | |
|
|
9092 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9093 | if (! f) |
|
|
9094 | return 1; |
|
|
9095 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9096 | { |
|
|
9097 | long int i = longval (); |
|
|
9098 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9099 | return 1; |
|
|
9100 | fprintf (f, "%ld\n", i); |
|
|
9101 | } |
|
|
9102 | else |
|
|
9103 | { |
|
|
9104 | unsigned long int i = ulongval (); |
|
|
9105 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9106 | return 1; |
|
|
9107 | fprintf (f, "%lu\n", i); |
|
|
9108 | } |
|
|
9109 | return ferror (f) || fclose (f) != 0; |
|
|
9110 | |
|
|
9111 | ; |
|
|
9112 | return 0; |
|
|
9113 | } |
|
|
9114 | _ACEOF |
|
|
9115 | rm -f conftest$ac_exeext |
|
|
9116 | if { (ac_try="$ac_link" |
|
|
9117 | case "(($ac_try" in |
|
|
9118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9119 | *) ac_try_echo=$ac_try;; |
|
|
9120 | esac |
|
|
9121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9122 | (eval "$ac_link") 2>&5 |
|
|
9123 | ac_status=$? |
|
|
9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9125 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9126 | { (case "(($ac_try" in |
|
|
9127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9128 | *) ac_try_echo=$ac_try;; |
|
|
9129 | esac |
|
|
9130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9131 | (eval "$ac_try") 2>&5 |
|
|
9132 | ac_status=$? |
|
|
9133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9134 | (exit $ac_status); }; }; then |
|
|
9135 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9136 | else |
|
|
9137 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9138 | echo "$as_me: failed program was:" >&5 |
|
|
9139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9140 | |
|
|
9141 | ( exit $ac_status ) |
|
|
9142 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9143 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9144 | See \`config.log' for more details." >&5 |
|
|
9145 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9146 | See \`config.log' for more details." >&2;} |
|
|
9147 | { (exit 77); exit 77; }; } |
|
|
9148 | else |
|
|
9149 | ac_cv_sizeof_long_long=0 |
|
|
9150 | fi |
|
|
9151 | fi |
|
|
9152 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9153 | fi |
|
|
9154 | rm -f conftest.val |
|
|
9155 | fi |
|
|
9156 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9157 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9158 | |
|
|
9159 | |
|
|
9160 | |
|
|
9161 | cat >>confdefs.h <<_ACEOF |
|
|
9162 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9163 | _ACEOF |
|
|
9164 | |
|
|
9165 | |
|
|
9166 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9167 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9168 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9170 | else |
|
|
9171 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9172 | /* confdefs.h. */ |
|
|
9173 | _ACEOF |
|
|
9174 | cat confdefs.h >>conftest.$ac_ext |
|
|
9175 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9176 | /* end confdefs.h. */ |
|
|
9177 | $ac_includes_default |
|
|
9178 | typedef int * ac__type_new_; |
|
|
9179 | int |
|
|
9180 | main () |
|
|
9181 | { |
|
|
9182 | if ((ac__type_new_ *) 0) |
|
|
9183 | return 0; |
|
|
9184 | if (sizeof (ac__type_new_)) |
|
|
9185 | return 0; |
|
|
9186 | ; |
|
|
9187 | return 0; |
|
|
9188 | } |
|
|
9189 | _ACEOF |
|
|
9190 | rm -f conftest.$ac_objext |
|
|
9191 | if { (ac_try="$ac_compile" |
|
|
9192 | case "(($ac_try" in |
|
|
9193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9194 | *) ac_try_echo=$ac_try;; |
|
|
9195 | esac |
|
|
9196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9197 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9198 | ac_status=$? |
|
|
9199 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9200 | rm -f conftest.er1 |
|
|
9201 | cat conftest.err >&5 |
|
|
9202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9203 | (exit $ac_status); } && { |
|
|
9204 | test -z "$ac_cxx_werror_flag" || |
|
|
9205 | test ! -s conftest.err |
|
|
9206 | } && test -s conftest.$ac_objext; then |
|
|
9207 | ac_cv_type_int_p=yes |
|
|
9208 | else |
|
|
9209 | echo "$as_me: failed program was:" >&5 |
|
|
9210 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9211 | |
|
|
9212 | ac_cv_type_int_p=no |
|
|
9213 | fi |
|
|
9214 | |
|
|
9215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9216 | fi |
|
|
9217 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9218 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9219 | |
|
|
9220 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9221 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9222 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9223 | # This bug is HP SR number 8606223364. |
|
|
9224 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9225 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9226 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9228 | else |
|
|
9229 | if test "$cross_compiling" = yes; then |
|
|
9230 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9231 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9232 | /* confdefs.h. */ |
|
|
9233 | _ACEOF |
|
|
9234 | cat confdefs.h >>conftest.$ac_ext |
|
|
9235 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9236 | /* end confdefs.h. */ |
|
|
9237 | $ac_includes_default |
|
|
9238 | typedef int * ac__type_sizeof_; |
|
|
9239 | int |
|
|
9240 | main () |
|
|
9241 | { |
|
|
9242 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9243 | test_array [0] = 0 |
|
|
9244 | |
|
|
9245 | ; |
|
|
9246 | return 0; |
|
|
9247 | } |
|
|
9248 | _ACEOF |
|
|
9249 | rm -f conftest.$ac_objext |
|
|
9250 | if { (ac_try="$ac_compile" |
|
|
9251 | case "(($ac_try" in |
|
|
9252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9253 | *) ac_try_echo=$ac_try;; |
|
|
9254 | esac |
|
|
9255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9256 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9257 | ac_status=$? |
|
|
9258 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9259 | rm -f conftest.er1 |
|
|
9260 | cat conftest.err >&5 |
|
|
9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9262 | (exit $ac_status); } && { |
|
|
9263 | test -z "$ac_cxx_werror_flag" || |
|
|
9264 | test ! -s conftest.err |
|
|
9265 | } && test -s conftest.$ac_objext; then |
|
|
9266 | ac_lo=0 ac_mid=0 |
|
|
9267 | while :; do |
|
|
9268 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9269 | /* confdefs.h. */ |
|
|
9270 | _ACEOF |
|
|
9271 | cat confdefs.h >>conftest.$ac_ext |
|
|
9272 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9273 | /* end confdefs.h. */ |
|
|
9274 | $ac_includes_default |
|
|
9275 | typedef int * ac__type_sizeof_; |
|
|
9276 | int |
|
|
9277 | main () |
|
|
9278 | { |
|
|
9279 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9280 | test_array [0] = 0 |
|
|
9281 | |
|
|
9282 | ; |
|
|
9283 | return 0; |
|
|
9284 | } |
|
|
9285 | _ACEOF |
|
|
9286 | rm -f conftest.$ac_objext |
|
|
9287 | if { (ac_try="$ac_compile" |
|
|
9288 | case "(($ac_try" in |
|
|
9289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9290 | *) ac_try_echo=$ac_try;; |
|
|
9291 | esac |
|
|
9292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9293 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9294 | ac_status=$? |
|
|
9295 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9296 | rm -f conftest.er1 |
|
|
9297 | cat conftest.err >&5 |
|
|
9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9299 | (exit $ac_status); } && { |
|
|
9300 | test -z "$ac_cxx_werror_flag" || |
|
|
9301 | test ! -s conftest.err |
|
|
9302 | } && test -s conftest.$ac_objext; then |
|
|
9303 | ac_hi=$ac_mid; break |
|
|
9304 | else |
|
|
9305 | echo "$as_me: failed program was:" >&5 |
|
|
9306 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9307 | |
|
|
9308 | ac_lo=`expr $ac_mid + 1` |
|
|
9309 | if test $ac_lo -le $ac_mid; then |
|
|
9310 | ac_lo= ac_hi= |
|
|
9311 | break |
|
|
9312 | fi |
|
|
9313 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9314 | fi |
|
|
9315 | |
|
|
9316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9317 | done |
|
|
9318 | else |
|
|
9319 | echo "$as_me: failed program was:" >&5 |
|
|
9320 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9321 | |
|
|
9322 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9323 | /* confdefs.h. */ |
|
|
9324 | _ACEOF |
|
|
9325 | cat confdefs.h >>conftest.$ac_ext |
|
|
9326 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9327 | /* end confdefs.h. */ |
|
|
9328 | $ac_includes_default |
|
|
9329 | typedef int * ac__type_sizeof_; |
|
|
9330 | int |
|
|
9331 | main () |
|
|
9332 | { |
|
|
9333 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9334 | test_array [0] = 0 |
|
|
9335 | |
|
|
9336 | ; |
|
|
9337 | return 0; |
|
|
9338 | } |
|
|
9339 | _ACEOF |
|
|
9340 | rm -f conftest.$ac_objext |
|
|
9341 | if { (ac_try="$ac_compile" |
|
|
9342 | case "(($ac_try" in |
|
|
9343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9344 | *) ac_try_echo=$ac_try;; |
|
|
9345 | esac |
|
|
9346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9347 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9348 | ac_status=$? |
|
|
9349 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9350 | rm -f conftest.er1 |
|
|
9351 | cat conftest.err >&5 |
|
|
9352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9353 | (exit $ac_status); } && { |
|
|
9354 | test -z "$ac_cxx_werror_flag" || |
|
|
9355 | test ! -s conftest.err |
|
|
9356 | } && test -s conftest.$ac_objext; then |
|
|
9357 | ac_hi=-1 ac_mid=-1 |
|
|
9358 | while :; do |
|
|
9359 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9360 | /* confdefs.h. */ |
|
|
9361 | _ACEOF |
|
|
9362 | cat confdefs.h >>conftest.$ac_ext |
|
|
9363 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9364 | /* end confdefs.h. */ |
|
|
9365 | $ac_includes_default |
|
|
9366 | typedef int * ac__type_sizeof_; |
|
|
9367 | int |
|
|
9368 | main () |
|
|
9369 | { |
|
|
9370 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9371 | test_array [0] = 0 |
|
|
9372 | |
|
|
9373 | ; |
|
|
9374 | return 0; |
|
|
9375 | } |
|
|
9376 | _ACEOF |
|
|
9377 | rm -f conftest.$ac_objext |
|
|
9378 | if { (ac_try="$ac_compile" |
|
|
9379 | case "(($ac_try" in |
|
|
9380 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9381 | *) ac_try_echo=$ac_try;; |
|
|
9382 | esac |
|
|
9383 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9384 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9385 | ac_status=$? |
|
|
9386 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9387 | rm -f conftest.er1 |
|
|
9388 | cat conftest.err >&5 |
|
|
9389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9390 | (exit $ac_status); } && { |
|
|
9391 | test -z "$ac_cxx_werror_flag" || |
|
|
9392 | test ! -s conftest.err |
|
|
9393 | } && test -s conftest.$ac_objext; then |
|
|
9394 | ac_lo=$ac_mid; break |
|
|
9395 | else |
|
|
9396 | echo "$as_me: failed program was:" >&5 |
|
|
9397 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9398 | |
|
|
9399 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9400 | if test $ac_mid -le $ac_hi; then |
|
|
9401 | ac_lo= ac_hi= |
|
|
9402 | break |
|
|
9403 | fi |
|
|
9404 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9405 | fi |
|
|
9406 | |
|
|
9407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9408 | done |
|
|
9409 | else |
|
|
9410 | echo "$as_me: failed program was:" >&5 |
|
|
9411 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9412 | |
|
|
9413 | ac_lo= ac_hi= |
|
|
9414 | fi |
|
|
9415 | |
|
|
9416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9417 | fi |
|
|
9418 | |
|
|
9419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9420 | # Binary search between lo and hi bounds. |
|
|
9421 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9422 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9423 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9424 | /* confdefs.h. */ |
|
|
9425 | _ACEOF |
|
|
9426 | cat confdefs.h >>conftest.$ac_ext |
|
|
9427 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9428 | /* end confdefs.h. */ |
|
|
9429 | $ac_includes_default |
|
|
9430 | typedef int * ac__type_sizeof_; |
|
|
9431 | int |
|
|
9432 | main () |
|
|
9433 | { |
|
|
9434 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9435 | test_array [0] = 0 |
|
|
9436 | |
|
|
9437 | ; |
|
|
9438 | return 0; |
|
|
9439 | } |
|
|
9440 | _ACEOF |
|
|
9441 | rm -f conftest.$ac_objext |
|
|
9442 | if { (ac_try="$ac_compile" |
|
|
9443 | case "(($ac_try" in |
|
|
9444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9445 | *) ac_try_echo=$ac_try;; |
|
|
9446 | esac |
|
|
9447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9448 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9449 | ac_status=$? |
|
|
9450 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9451 | rm -f conftest.er1 |
|
|
9452 | cat conftest.err >&5 |
|
|
9453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9454 | (exit $ac_status); } && { |
|
|
9455 | test -z "$ac_cxx_werror_flag" || |
|
|
9456 | test ! -s conftest.err |
|
|
9457 | } && test -s conftest.$ac_objext; then |
|
|
9458 | ac_hi=$ac_mid |
|
|
9459 | else |
|
|
9460 | echo "$as_me: failed program was:" >&5 |
|
|
9461 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9462 | |
|
|
9463 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9464 | fi |
|
|
9465 | |
|
|
9466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9467 | done |
|
|
9468 | case $ac_lo in |
|
|
9469 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9470 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9471 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9472 | See \`config.log' for more details." >&5 |
|
|
9473 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9474 | See \`config.log' for more details." >&2;} |
|
|
9475 | { (exit 77); exit 77; }; } |
|
|
9476 | else |
|
|
9477 | ac_cv_sizeof_int_p=0 |
|
|
9478 | fi ;; |
|
|
9479 | esac |
|
|
9480 | else |
|
|
9481 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9482 | /* confdefs.h. */ |
|
|
9483 | _ACEOF |
|
|
9484 | cat confdefs.h >>conftest.$ac_ext |
|
|
9485 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9486 | /* end confdefs.h. */ |
|
|
9487 | $ac_includes_default |
|
|
9488 | typedef int * ac__type_sizeof_; |
|
|
9489 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9490 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9491 | #include <stdio.h> |
|
|
9492 | #include <stdlib.h> |
|
|
9493 | int |
|
|
9494 | main () |
|
|
9495 | { |
|
|
9496 | |
|
|
9497 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9498 | if (! f) |
|
|
9499 | return 1; |
|
|
9500 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9501 | { |
|
|
9502 | long int i = longval (); |
|
|
9503 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9504 | return 1; |
|
|
9505 | fprintf (f, "%ld\n", i); |
|
|
9506 | } |
|
|
9507 | else |
|
|
9508 | { |
|
|
9509 | unsigned long int i = ulongval (); |
|
|
9510 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9511 | return 1; |
|
|
9512 | fprintf (f, "%lu\n", i); |
|
|
9513 | } |
|
|
9514 | return ferror (f) || fclose (f) != 0; |
|
|
9515 | |
|
|
9516 | ; |
|
|
9517 | return 0; |
|
|
9518 | } |
|
|
9519 | _ACEOF |
|
|
9520 | rm -f conftest$ac_exeext |
|
|
9521 | if { (ac_try="$ac_link" |
|
|
9522 | case "(($ac_try" in |
|
|
9523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9524 | *) ac_try_echo=$ac_try;; |
|
|
9525 | esac |
|
|
9526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9527 | (eval "$ac_link") 2>&5 |
|
|
9528 | ac_status=$? |
|
|
9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9531 | { (case "(($ac_try" in |
|
|
9532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9533 | *) ac_try_echo=$ac_try;; |
|
|
9534 | esac |
|
|
9535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9536 | (eval "$ac_try") 2>&5 |
|
|
9537 | ac_status=$? |
|
|
9538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9539 | (exit $ac_status); }; }; then |
|
|
9540 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9541 | else |
|
|
9542 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9543 | echo "$as_me: failed program was:" >&5 |
|
|
9544 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9545 | |
|
|
9546 | ( exit $ac_status ) |
|
|
9547 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9548 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9549 | See \`config.log' for more details." >&5 |
|
|
9550 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9551 | See \`config.log' for more details." >&2;} |
|
|
9552 | { (exit 77); exit 77; }; } |
|
|
9553 | else |
|
|
9554 | ac_cv_sizeof_int_p=0 |
|
|
9555 | fi |
|
|
9556 | fi |
|
|
9557 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9558 | fi |
|
|
9559 | rm -f conftest.val |
|
|
9560 | fi |
|
|
9561 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9562 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9563 | |
|
|
9564 | |
|
|
9565 | |
|
|
9566 | cat >>confdefs.h <<_ACEOF |
|
|
9567 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9568 | _ACEOF |
|
|
9569 | |
|
|
9570 | |
|
|
9571 | |
|
|
9572 | |
|
|
9573 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9574 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9575 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9577 | else |
|
|
9578 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9579 | /* confdefs.h. */ |
|
|
9580 | _ACEOF |
|
|
9581 | cat confdefs.h >>conftest.$ac_ext |
|
|
9582 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9583 | /* end confdefs.h. */ |
|
|
9584 | #include <stdint.h> |
|
|
9585 | int |
|
|
9586 | main () |
|
|
9587 | { |
|
|
9588 | int16_t dummy; |
|
|
9589 | ; |
|
|
9590 | return 0; |
|
|
9591 | } |
|
|
9592 | _ACEOF |
|
|
9593 | rm -f conftest.$ac_objext |
|
|
9594 | if { (ac_try="$ac_compile" |
|
|
9595 | case "(($ac_try" in |
|
|
9596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9597 | *) ac_try_echo=$ac_try;; |
|
|
9598 | esac |
|
|
9599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9600 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9601 | ac_status=$? |
|
|
9602 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9603 | rm -f conftest.er1 |
|
|
9604 | cat conftest.err >&5 |
|
|
9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9606 | (exit $ac_status); } && { |
|
|
9607 | test -z "$ac_cxx_werror_flag" || |
|
|
9608 | test ! -s conftest.err |
|
|
9609 | } && test -s conftest.$ac_objext; then |
|
|
9610 | rxvt_cv_int16_t=yes |
|
|
9611 | else |
|
|
9612 | echo "$as_me: failed program was:" >&5 |
|
|
9613 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9614 | |
|
|
9615 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9616 | rxvt_cv_int16_t=" char" |
|
|
9617 | else |
|
|
9618 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9619 | rxvt_cv_int16_t=" short" |
|
|
9620 | else |
|
|
9621 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9622 | rxvt_cv_int16_t=" int" |
|
|
9623 | else |
|
|
9624 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9625 | rxvt_cv_int16_t=" long" |
|
|
9626 | else |
|
|
9627 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9628 | rxvt_cv_int16_t=" long long" |
|
|
9629 | else |
|
|
9630 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9631 | fi |
|
|
9632 | fi |
|
|
9633 | fi |
|
|
9634 | fi |
|
|
9635 | fi |
|
|
9636 | fi |
|
|
9637 | |
|
|
9638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9639 | fi |
|
|
9640 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9641 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9642 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9643 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9644 | else |
|
|
9645 | if test x"" = x; then |
|
|
9646 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9647 | else |
|
|
9648 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9649 | fi |
|
|
9650 | fi |
|
|
9651 | |
|
|
9652 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9653 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9654 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9656 | else |
|
|
9657 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9658 | /* confdefs.h. */ |
|
|
9659 | _ACEOF |
|
|
9660 | cat confdefs.h >>conftest.$ac_ext |
|
|
9661 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9662 | /* end confdefs.h. */ |
|
|
9663 | #include <stdint.h> |
|
|
9664 | int |
|
|
9665 | main () |
|
|
9666 | { |
|
|
9667 | uint16_t dummy; |
|
|
9668 | ; |
|
|
9669 | return 0; |
|
|
9670 | } |
|
|
9671 | _ACEOF |
|
|
9672 | rm -f conftest.$ac_objext |
|
|
9673 | if { (ac_try="$ac_compile" |
|
|
9674 | case "(($ac_try" in |
|
|
9675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9676 | *) ac_try_echo=$ac_try;; |
|
|
9677 | esac |
|
|
9678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9679 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9680 | ac_status=$? |
|
|
9681 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9682 | rm -f conftest.er1 |
|
|
9683 | cat conftest.err >&5 |
|
|
9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9685 | (exit $ac_status); } && { |
|
|
9686 | test -z "$ac_cxx_werror_flag" || |
|
|
9687 | test ! -s conftest.err |
|
|
9688 | } && test -s conftest.$ac_objext; then |
|
|
9689 | rxvt_cv_uint16_t=yes |
|
|
9690 | else |
|
|
9691 | echo "$as_me: failed program was:" >&5 |
|
|
9692 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9693 | |
|
|
9694 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9695 | rxvt_cv_uint16_t="unsigned char" |
|
|
9696 | else |
|
|
9697 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9698 | rxvt_cv_uint16_t="unsigned short" |
|
|
9699 | else |
|
|
9700 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9701 | rxvt_cv_uint16_t="unsigned int" |
|
|
9702 | else |
|
|
9703 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9704 | rxvt_cv_uint16_t="unsigned long" |
|
|
9705 | else |
|
|
9706 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9707 | rxvt_cv_uint16_t="unsigned long long" |
|
|
9708 | else |
|
|
9709 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
9710 | fi |
|
|
9711 | fi |
|
|
9712 | fi |
|
|
9713 | fi |
|
|
9714 | fi |
|
|
9715 | fi |
|
|
9716 | |
|
|
9717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9718 | fi |
|
|
9719 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
9720 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
9721 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
9722 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
9723 | else |
|
|
9724 | if test x"unsigned" = x; then |
|
|
9725 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
9726 | else |
|
|
9727 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
9728 | fi |
|
|
9729 | fi |
|
|
9730 | |
|
|
9731 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
9732 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
9733 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
9734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9735 | else |
|
|
9736 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9737 | /* confdefs.h. */ |
|
|
9738 | _ACEOF |
|
|
9739 | cat confdefs.h >>conftest.$ac_ext |
|
|
9740 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9741 | /* end confdefs.h. */ |
|
|
9742 | #include <stdint.h> |
|
|
9743 | int |
|
|
9744 | main () |
|
|
9745 | { |
|
|
9746 | int32_t dummy; |
|
|
9747 | ; |
|
|
9748 | return 0; |
|
|
9749 | } |
|
|
9750 | _ACEOF |
|
|
9751 | rm -f conftest.$ac_objext |
|
|
9752 | if { (ac_try="$ac_compile" |
|
|
9753 | case "(($ac_try" in |
|
|
9754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9755 | *) ac_try_echo=$ac_try;; |
|
|
9756 | esac |
|
|
9757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9758 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9759 | ac_status=$? |
|
|
9760 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9761 | rm -f conftest.er1 |
|
|
9762 | cat conftest.err >&5 |
|
|
9763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9764 | (exit $ac_status); } && { |
|
|
9765 | test -z "$ac_cxx_werror_flag" || |
|
|
9766 | test ! -s conftest.err |
|
|
9767 | } && test -s conftest.$ac_objext; then |
|
|
9768 | rxvt_cv_int32_t=yes |
|
|
9769 | else |
|
|
9770 | echo "$as_me: failed program was:" >&5 |
|
|
9771 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9772 | |
|
|
9773 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9774 | rxvt_cv_int32_t=" char" |
|
|
9775 | else |
|
|
9776 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9777 | rxvt_cv_int32_t=" short" |
|
|
9778 | else |
|
|
9779 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9780 | rxvt_cv_int32_t=" int" |
|
|
9781 | else |
|
|
9782 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9783 | rxvt_cv_int32_t=" long" |
|
|
9784 | else |
|
|
9785 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9786 | rxvt_cv_int32_t=" long long" |
|
|
9787 | else |
|
|
9788 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
9789 | fi |
|
|
9790 | fi |
|
|
9791 | fi |
|
|
9792 | fi |
|
|
9793 | fi |
|
|
9794 | fi |
|
|
9795 | |
|
|
9796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9797 | fi |
|
|
9798 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
9799 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
9800 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
9801 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
9802 | else |
|
|
9803 | if test x"" = x; then |
|
|
9804 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9805 | else |
|
|
9806 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
9807 | fi |
|
|
9808 | fi |
|
|
9809 | |
|
|
9810 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
9811 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
9812 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
9813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9814 | else |
|
|
9815 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9816 | /* confdefs.h. */ |
|
|
9817 | _ACEOF |
|
|
9818 | cat confdefs.h >>conftest.$ac_ext |
|
|
9819 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9820 | /* end confdefs.h. */ |
|
|
9821 | #include <stdint.h> |
|
|
9822 | int |
|
|
9823 | main () |
|
|
9824 | { |
|
|
9825 | uint32_t dummy; |
|
|
9826 | ; |
|
|
9827 | return 0; |
|
|
9828 | } |
|
|
9829 | _ACEOF |
|
|
9830 | rm -f conftest.$ac_objext |
|
|
9831 | if { (ac_try="$ac_compile" |
|
|
9832 | case "(($ac_try" in |
|
|
9833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9834 | *) ac_try_echo=$ac_try;; |
|
|
9835 | esac |
|
|
9836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9837 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9838 | ac_status=$? |
|
|
9839 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9840 | rm -f conftest.er1 |
|
|
9841 | cat conftest.err >&5 |
|
|
9842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9843 | (exit $ac_status); } && { |
|
|
9844 | test -z "$ac_cxx_werror_flag" || |
|
|
9845 | test ! -s conftest.err |
|
|
9846 | } && test -s conftest.$ac_objext; then |
|
|
9847 | rxvt_cv_uint32_t=yes |
|
|
9848 | else |
|
|
9849 | echo "$as_me: failed program was:" >&5 |
|
|
9850 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9851 | |
|
|
9852 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
9853 | rxvt_cv_uint32_t="unsigned char" |
|
|
9854 | else |
|
|
9855 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
9856 | rxvt_cv_uint32_t="unsigned short" |
|
|
9857 | else |
|
|
9858 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
9859 | rxvt_cv_uint32_t="unsigned int" |
|
|
9860 | else |
|
|
9861 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
9862 | rxvt_cv_uint32_t="unsigned long" |
|
|
9863 | else |
|
|
9864 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
9865 | rxvt_cv_uint32_t="unsigned long long" |
|
|
9866 | else |
|
|
9867 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
9868 | fi |
|
|
9869 | fi |
|
|
9870 | fi |
|
|
9871 | fi |
|
|
9872 | fi |
|
|
9873 | fi |
|
|
9874 | |
|
|
9875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9876 | fi |
|
|
9877 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
9878 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
9879 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
9880 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
9881 | else |
|
|
9882 | if test x"unsigned" = x; then |
|
|
9883 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
9884 | else |
|
|
9885 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
9886 | fi |
|
|
9887 | fi |
|
|
9888 | |
|
|
9889 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
9890 | rxvt_intp_define="#define intp_t int64_t" |
|
|
9891 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
9892 | else |
|
|
9893 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
9894 | rxvt_intp_define="#define intp_t int32_t" |
|
|
9895 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
9896 | else |
|
|
9897 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
9898 | rxvt_intp_define="#define intp_t int16_t" |
|
|
9899 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
9900 | else |
|
|
9901 | rxvt_intp_define="#error set intp_t" |
|
|
9902 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
9903 | fi |
|
|
9904 | fi |
|
|
9905 | fi |
|
|
9906 | |
|
|
9907 | |
|
|
9908 | |
|
|
9909 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
9910 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
9911 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
9912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9913 | else |
|
|
9914 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9915 | /* confdefs.h. */ |
|
|
9916 | _ACEOF |
|
|
9917 | cat confdefs.h >>conftest.$ac_ext |
|
|
9918 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9919 | /* end confdefs.h. */ |
|
|
9920 | #include <sys/types.h> |
|
|
9921 | #include <signal.h> |
|
|
9922 | |
|
|
9923 | int |
|
|
9924 | main () |
|
|
9925 | { |
|
|
9926 | return *(signal (0, 0)) (0) == 1; |
|
|
9927 | ; |
|
|
9928 | return 0; |
|
|
9929 | } |
|
|
9930 | _ACEOF |
|
|
9931 | rm -f conftest.$ac_objext |
|
|
9932 | if { (ac_try="$ac_compile" |
|
|
9933 | case "(($ac_try" in |
|
|
9934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9935 | *) ac_try_echo=$ac_try;; |
|
|
9936 | esac |
|
|
9937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9938 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9939 | ac_status=$? |
|
|
9940 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9941 | rm -f conftest.er1 |
|
|
9942 | cat conftest.err >&5 |
|
|
9943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9944 | (exit $ac_status); } && { |
|
|
9945 | test -z "$ac_cxx_werror_flag" || |
|
|
9946 | test ! -s conftest.err |
|
|
9947 | } && test -s conftest.$ac_objext; then |
|
|
9948 | ac_cv_type_signal=int |
|
|
9949 | else |
|
|
9950 | echo "$as_me: failed program was:" >&5 |
|
|
9951 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9952 | |
|
|
9953 | ac_cv_type_signal=void |
|
|
9954 | fi |
|
|
9955 | |
|
|
9956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9957 | fi |
|
|
9958 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
9959 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
9960 | |
|
|
9961 | cat >>confdefs.h <<_ACEOF |
|
|
9962 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
9963 | _ACEOF |
|
|
9964 | |
|
|
9965 | |
|
|
9966 | |
|
|
9967 | |
|
|
9968 | |
|
|
9969 | |
|
|
9970 | for ac_func in \ |
8424 | for ac_func in unsetenv |
9971 | unsetenv \ |
|
|
9972 | setutent \ |
|
|
9973 | on_exit \ |
|
|
9974 | |
|
|
9975 | do |
8425 | do |
9976 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8426 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9977 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8427 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9978 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8428 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
9979 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8429 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
10118 | |
8568 | |
10119 | |
8569 | |
10120 | |
8570 | |
10121 | |
8571 | |
10122 | for ac_func in \ |
8572 | for ac_func in \ |
10123 | ttyslot \ |
|
|
10124 | updwtmp \ |
8573 | updwtmp \ |
10125 | updwtmpx \ |
8574 | updwtmpx \ |
|
|
8575 | updlastlogx \ |
10126 | |
8576 | |
10127 | do |
8577 | do |
10128 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8578 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10129 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8579 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10130 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8580 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
11551 | |
10001 | |
11552 | cat >>confdefs.h <<_ACEOF |
10002 | cat >>confdefs.h <<_ACEOF |
11553 | #define LASTLOG_FILE "$path_lastlog" |
10003 | #define LASTLOG_FILE "$path_lastlog" |
11554 | _ACEOF |
10004 | _ACEOF |
11555 | |
10005 | |
11556 | if test -d "$path_lastlog"; then |
|
|
11557 | |
|
|
11558 | cat >>confdefs.h <<\_ACEOF |
|
|
11559 | #define LASTLOG_IS_DIR 1 |
|
|
11560 | _ACEOF |
|
|
11561 | |
|
|
11562 | fi |
|
|
11563 | fi |
10006 | fi |
11564 | |
10007 | |
11565 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10008 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11566 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10009 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11567 | if test "${path_lastlogx+set}" = set; then |
10010 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11649 | |
10092 | |
11650 | fi |
10093 | fi |
11651 | |
10094 | |
11652 | |
10095 | |
11653 | |
10096 | |
11654 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11655 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11656 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11658 | else |
|
|
11659 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11660 | do |
|
|
11661 | if test -f "$ttys_file" ; then |
|
|
11662 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11663 | break |
|
|
11664 | fi |
|
|
11665 | done |
|
|
11666 | |
10097 | |
11667 | fi |
|
|
11668 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11669 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11670 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11671 | |
|
|
11672 | cat >>confdefs.h <<_ACEOF |
|
|
11673 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11674 | _ACEOF |
|
|
11675 | |
|
|
11676 | fi |
|
|
11677 | |
|
|
11678 | |
|
|
11679 | ac_save_LIBS=$LIBS |
10098 | save_LIBS=$LIBS |
11680 | ac_save_CFLAGS=$CFLAGS |
10099 | save_CFLAGS=$CFLAGS |
11681 | CFLAGS="$CFLAGS $X_CFLAGS" |
10100 | CFLAGS="$CFLAGS $X_CFLAGS" |
11682 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10101 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
10102 | if test x$support_xim = xyes; then |
11683 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10103 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11684 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10104 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11685 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
10105 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11687 | else |
10107 | else |
11688 | if test "$cross_compiling" = yes; then |
10108 | if test "$cross_compiling" = yes; then |
11689 | : |
10109 | : |
11690 | else |
10110 | else |
11691 | cat >conftest.$ac_ext <<_ACEOF |
10111 | cat >conftest.$ac_ext <<_ACEOF |
11692 | /* confdefs.h. */ |
10112 | /* confdefs.h. */ |
11693 | _ACEOF |
10113 | _ACEOF |
11694 | cat confdefs.h >>conftest.$ac_ext |
10114 | cat confdefs.h >>conftest.$ac_ext |
11695 | cat >>conftest.$ac_ext <<_ACEOF |
10115 | cat >>conftest.$ac_ext <<_ACEOF |
11696 | /* end confdefs.h. */ |
10116 | /* end confdefs.h. */ |
11697 | #include <X11/Xlib.h> |
10117 | #include <X11/Xlib.h> |
11698 | #include <stdlib.h> |
10118 | #include <stdlib.h> |
11699 | main() { |
10119 | main() { |
11700 | char *p; |
10120 | char *p; |
11701 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10121 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11702 | exit (XSupportsLocale() ? 0 : 1); |
10122 | exit (XSupportsLocale() ? 0 : 1); |
11703 | else |
10123 | else |
11704 | exit (1);} |
10124 | exit (1);} |
11705 | _ACEOF |
10125 | _ACEOF |
11706 | rm -f conftest$ac_exeext |
10126 | rm -f conftest$ac_exeext |
11707 | if { (ac_try="$ac_link" |
10127 | if { (ac_try="$ac_link" |
11708 | case "(($ac_try" in |
10128 | case "(($ac_try" in |
11709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11722 | (eval "$ac_try") 2>&5 |
10142 | (eval "$ac_try") 2>&5 |
11723 | ac_status=$? |
10143 | ac_status=$? |
11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11725 | (exit $ac_status); }; }; then |
10145 | (exit $ac_status); }; }; then |
11726 | rxvt_cv_func_xlocale=yes |
10146 | rxvt_cv_func_xlocale=yes |
11727 | else |
10147 | else |
11728 | echo "$as_me: program exited with status $ac_status" >&5 |
10148 | echo "$as_me: program exited with status $ac_status" >&5 |
11729 | echo "$as_me: failed program was:" >&5 |
10149 | echo "$as_me: failed program was:" >&5 |
11730 | sed 's/^/| /' conftest.$ac_ext >&5 |
10150 | sed 's/^/| /' conftest.$ac_ext >&5 |
11731 | |
10151 | |
… | |
… | |
11737 | |
10157 | |
11738 | |
10158 | |
11739 | fi |
10159 | fi |
11740 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10160 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
11741 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
10161 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
11742 | if test x$support_xim = xyes; then |
|
|
11743 | if test x$rxvt_cv_func_xlocale = xyes; then |
10162 | if test x$rxvt_cv_func_xlocale = xyes; then |
11744 | |
10163 | |
11745 | cat >>confdefs.h <<\_ACEOF |
10164 | cat >>confdefs.h <<\_ACEOF |
11746 | #define USE_XIM 1 |
10165 | #define USE_XIM 1 |
11747 | _ACEOF |
10166 | _ACEOF |
11748 | |
10167 | |
|
|
10168 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10169 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
10170 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
10171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10172 | else |
|
|
10173 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10174 | |
|
|
10175 | #include <X11/Xlib.h> |
|
|
10176 | |
|
|
10177 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10178 | |
|
|
10179 | void f() { |
|
|
10180 | XIMCallback cb; |
|
|
10181 | cb.callback = im_destroy_cb; |
|
|
10182 | } |
|
|
10183 | |
|
|
10184 | _ACEOF |
|
|
10185 | rm -f conftest.$ac_objext |
|
|
10186 | if { (ac_try="$ac_compile" |
|
|
10187 | case "(($ac_try" in |
|
|
10188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10189 | *) ac_try_echo=$ac_try;; |
|
|
10190 | esac |
|
|
10191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10192 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10193 | ac_status=$? |
|
|
10194 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10195 | rm -f conftest.er1 |
|
|
10196 | cat conftest.err >&5 |
|
|
10197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10198 | (exit $ac_status); } && { |
|
|
10199 | test -z "$ac_cxx_werror_flag" || |
|
|
10200 | test ! -s conftest.err |
|
|
10201 | } && test -s conftest.$ac_objext; then |
|
|
10202 | rxvt_broken_ximcb=yes |
|
|
10203 | else |
|
|
10204 | echo "$as_me: failed program was:" >&5 |
|
|
10205 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10206 | |
|
|
10207 | rxvt_broken_ximcb=no |
|
|
10208 | fi |
|
|
10209 | |
|
|
10210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10211 | fi |
|
|
10212 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10213 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10214 | |
|
|
10215 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10216 | |
|
|
10217 | cat >>confdefs.h <<\_ACEOF |
|
|
10218 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10219 | _ACEOF |
|
|
10220 | |
|
|
10221 | fi |
11749 | fi |
10222 | fi |
11750 | fi |
10223 | fi |
11751 | |
10224 | |
11752 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10225 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
11753 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10226 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
… | |
… | |
11806 | cat >>confdefs.h <<\_ACEOF |
10279 | cat >>confdefs.h <<\_ACEOF |
11807 | #define HAVE_XSETLOCALE 1 |
10280 | #define HAVE_XSETLOCALE 1 |
11808 | _ACEOF |
10281 | _ACEOF |
11809 | |
10282 | |
11810 | fi |
10283 | fi |
11811 | LIBS=$ac_save_LIBS |
10284 | LIBS=$save_LIBS |
11812 | CFLAGS=$ac_save_CFLAGS |
10285 | CFLAGS=$save_CFLAGS |
11813 | |
10286 | |
11814 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10287 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
11815 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10288 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
11816 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10289 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
11817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12020 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
10493 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
12021 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10494 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12022 | { (exit 1); exit 1; }; } |
10495 | { (exit 1); exit 1; }; } |
12023 | fi |
10496 | fi |
12024 | |
10497 | |
12025 | |
|
|
12026 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12027 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12028 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12030 | else |
|
|
12031 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12032 | |
|
|
12033 | #include <X11/Xlib.h> |
|
|
12034 | |
|
|
12035 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12036 | |
|
|
12037 | void f() { |
|
|
12038 | XIMCallback cb; |
|
|
12039 | cb.callback = im_destroy_cb; |
|
|
12040 | } |
|
|
12041 | |
|
|
12042 | _ACEOF |
|
|
12043 | rm -f conftest.$ac_objext |
|
|
12044 | if { (ac_try="$ac_compile" |
|
|
12045 | case "(($ac_try" in |
|
|
12046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12047 | *) ac_try_echo=$ac_try;; |
|
|
12048 | esac |
|
|
12049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12050 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12051 | ac_status=$? |
|
|
12052 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12053 | rm -f conftest.er1 |
|
|
12054 | cat conftest.err >&5 |
|
|
12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12056 | (exit $ac_status); } && { |
|
|
12057 | test -z "$ac_cxx_werror_flag" || |
|
|
12058 | test ! -s conftest.err |
|
|
12059 | } && test -s conftest.$ac_objext; then |
|
|
12060 | rxvt_broken_ximcb=yes |
|
|
12061 | else |
|
|
12062 | echo "$as_me: failed program was:" >&5 |
|
|
12063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12064 | |
|
|
12065 | rxvt_broken_ximcb=no |
|
|
12066 | fi |
|
|
12067 | |
|
|
12068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12069 | fi |
|
|
12070 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12071 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12072 | |
|
|
12073 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12074 | |
|
|
12075 | cat >>confdefs.h <<\_ACEOF |
|
|
12076 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12077 | _ACEOF |
|
|
12078 | |
|
|
12079 | fi |
|
|
12080 | |
10498 | |
12081 | |
10499 | |
12082 | |
10500 | |
12083 | |
10501 | |
12084 | |
10502 | |
… | |
… | |
12765 | echo "${ECHO_T}no" >&6; } |
11183 | echo "${ECHO_T}no" >&6; } |
12766 | fi |
11184 | fi |
12767 | |
11185 | |
12768 | |
11186 | |
12769 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11187 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12770 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11188 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
12771 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11189 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12772 | else |
11190 | else |
12773 | # Extract the first word of "xft-config", so it can be a program name with args. |
11191 | # Extract the first word of "xft-config", so it can be a program name with args. |
12774 | set dummy xft-config; ac_word=$2 |
11192 | set dummy xft-config; ac_word=$2 |
12775 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11193 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
12810 | echo "${ECHO_T}no" >&6; } |
11228 | echo "${ECHO_T}no" >&6; } |
12811 | fi |
11229 | fi |
12812 | |
11230 | |
12813 | |
11231 | |
12814 | if test $XFT_CONFIG != no; then |
11232 | if test $XFT_CONFIG != no; then |
12815 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11233 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
12816 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11234 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12817 | fi |
11235 | fi |
12818 | fi |
11236 | fi |
12819 | |
11237 | |
|
|
11238 | save_LIBS="$LIBS" |
|
|
11239 | LIBS="$LIBS $X_LIBS" |
12820 | |
11240 | |
12821 | for ac_header in X11/Xft/Xft.h |
11241 | for ac_header in X11/Xft/Xft.h |
12822 | do |
11242 | do |
12823 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12824 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11244 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
12957 | support_xft=no |
11377 | support_xft=no |
12958 | fi |
11378 | fi |
12959 | |
11379 | |
12960 | done |
11380 | done |
12961 | |
11381 | |
12962 | |
|
|
12963 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11382 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
12964 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11383 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
12965 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11384 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
12966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12967 | else |
11386 | else |
12968 | ac_check_lib_save_LIBS=$LIBS |
11387 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13020 | LIBS=$ac_check_lib_save_LIBS |
11439 | LIBS=$ac_check_lib_save_LIBS |
13021 | fi |
11440 | fi |
13022 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11441 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13023 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11442 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13024 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11443 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13025 | cat >>confdefs.h <<_ACEOF |
11444 | : |
13026 | #define HAVE_LIBXFT 1 |
|
|
13027 | _ACEOF |
|
|
13028 | |
|
|
13029 | LIBS="-lXft $LIBS" |
|
|
13030 | |
|
|
13031 | else |
11445 | else |
13032 | support_xft=no |
11446 | support_xft=no |
13033 | fi |
11447 | fi |
13034 | |
11448 | |
|
|
11449 | LIBS="$save_LIBS" |
13035 | |
11450 | |
13036 | if test x$support_xft = xyes; then |
11451 | if test x$support_xft = xyes; then |
13037 | |
11452 | |
13038 | cat >>confdefs.h <<\_ACEOF |
11453 | cat >>confdefs.h <<\_ACEOF |
13039 | #define XFT 1 |
11454 | #define XFT 1 |
… | |
… | |
13067 | cat >>confdefs.h <<\_ACEOF |
11482 | cat >>confdefs.h <<\_ACEOF |
13068 | #define OFF_FOCUS_FADING 1 |
11483 | #define OFF_FOCUS_FADING 1 |
13069 | _ACEOF |
11484 | _ACEOF |
13070 | |
11485 | |
13071 | fi |
11486 | fi |
13072 | if test x$support_tinting = xyes; then |
|
|
13073 | |
|
|
13074 | cat >>confdefs.h <<\_ACEOF |
|
|
13075 | #define TINTING 1 |
|
|
13076 | _ACEOF |
|
|
13077 | |
|
|
13078 | fi |
|
|
13079 | if test x$support_inheritpixmap = xyes; then |
11487 | if test x$support_inheritpixmap = xyes; then |
13080 | |
11488 | |
13081 | cat >>confdefs.h <<\_ACEOF |
11489 | cat >>confdefs.h <<\_ACEOF |
13082 | #define ENABLE_TRANSPARENCY 1 |
11490 | #define ENABLE_TRANSPARENCY 1 |
13083 | _ACEOF |
11491 | _ACEOF |
… | |
… | |
13095 | cat >>confdefs.h <<\_ACEOF |
11503 | cat >>confdefs.h <<\_ACEOF |
13096 | #define SELECTION_SCROLLING 1 |
11504 | #define SELECTION_SCROLLING 1 |
13097 | _ACEOF |
11505 | _ACEOF |
13098 | |
11506 | |
13099 | fi |
11507 | fi |
|
|
11508 | if test x$support_frills = xyes; then |
|
|
11509 | |
|
|
11510 | cat >>confdefs.h <<\_ACEOF |
|
|
11511 | #define ENABLE_FRILLS 1 |
|
|
11512 | _ACEOF |
|
|
11513 | |
|
|
11514 | fi |
13100 | if test x$support_mousewheel = xyes; then |
11515 | if test x$support_mousewheel = xyes; then |
13101 | |
11516 | |
13102 | cat >>confdefs.h <<\_ACEOF |
11517 | cat >>confdefs.h <<\_ACEOF |
13103 | #define MOUSE_WHEEL 1 |
11518 | #define MOUSE_WHEEL 1 |
13104 | _ACEOF |
11519 | _ACEOF |
… | |
… | |
13109 | cat >>confdefs.h <<\_ACEOF |
11524 | cat >>confdefs.h <<\_ACEOF |
13110 | #define MOUSE_SLIP_WHEELING 1 |
11525 | #define MOUSE_SLIP_WHEELING 1 |
13111 | _ACEOF |
11526 | _ACEOF |
13112 | |
11527 | |
13113 | fi |
11528 | fi |
13114 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
13115 | |
|
|
13116 | cat >>confdefs.h <<\_ACEOF |
|
|
13117 | #define XPM_BACKGROUND 1 |
|
|
13118 | _ACEOF |
|
|
13119 | |
|
|
13120 | fi |
|
|
13121 | |
|
|
13122 | if test x$support_afterimage = xyes; then |
11529 | if test x$support_afterimage = xyes; then |
13123 | |
11530 | |
13124 | cat >>confdefs.h <<\_ACEOF |
11531 | cat >>confdefs.h <<\_ACEOF |
13125 | #define HAVE_AFTERIMAGE 1 |
11532 | #define HAVE_AFTERIMAGE 1 |
13126 | _ACEOF |
11533 | _ACEOF |
13127 | |
11534 | |
13128 | fi |
|
|
13129 | |
|
|
13130 | if test x$support_afterstep = xyes; then |
|
|
13131 | |
11535 | |
13132 | cat >>confdefs.h <<\_ACEOF |
11536 | cat >>confdefs.h <<\_ACEOF |
13133 | #define AFTERSTEP_INTEGRATION 1 |
11537 | #define BG_IMAGE_FROM_FILE 1 |
13134 | _ACEOF |
11538 | _ACEOF |
13135 | |
11539 | |
13136 | fi |
11540 | fi |
|
|
11541 | |
13137 | |
11542 | |
13138 | if test x$support_scroll_rxvt = xyes; then |
11543 | if test x$support_scroll_rxvt = xyes; then |
13139 | |
11544 | |
13140 | cat >>confdefs.h <<\_ACEOF |
11545 | cat >>confdefs.h <<\_ACEOF |
13141 | #define RXVT_SCROLLBAR 1 |
11546 | #define RXVT_SCROLLBAR 1 |
… | |
… | |
13410 | |
11815 | |
13411 | |
11816 | |
13412 | |
11817 | |
13413 | |
11818 | |
13414 | |
11819 | |
13415 | if test x$support_perl = xyes; then |
|
|
13416 | support_frills=yes |
|
|
13417 | fi |
|
|
13418 | |
|
|
13419 | if test x$support_frills = xyes; then |
|
|
13420 | |
|
|
13421 | cat >>confdefs.h <<\_ACEOF |
|
|
13422 | #define ENABLE_FRILLS 1 |
|
|
13423 | _ACEOF |
|
|
13424 | |
|
|
13425 | fi |
|
|
13426 | |
|
|
13427 | |
11820 | |
13428 | |
11821 | |
13429 | |
11822 | |
13430 | |
11823 | |
13431 | |
11824 | |
… | |
… | |
13448 | _ACEOF |
11841 | _ACEOF |
13449 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11842 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13450 | rm -f conftest.sed |
11843 | rm -f conftest.sed |
13451 | |
11844 | |
13452 | |
11845 | |
13453 | |
|
|
13454 | |
|
|
13455 | |
|
|
13456 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13457 | include_stdint_h="#include <stdint.h>" |
|
|
13458 | else |
|
|
13459 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13460 | fi |
|
|
13461 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13462 | include_stdarg_h="#include <cstdarg>" |
|
|
13463 | else |
|
|
13464 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13465 | fi |
|
|
13466 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13467 | include_stdlib_h="#include <cstdlib>" |
|
|
13468 | else |
|
|
13469 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13470 | fi |
|
|
13471 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13472 | include_unistd_h="#include <unistd.h>" |
|
|
13473 | else |
|
|
13474 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13475 | fi |
|
|
13476 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13477 | include_string_h="#include <cstring>" |
|
|
13478 | else |
|
|
13479 | include_string_h="/* #include <cstring> */" |
|
|
13480 | fi |
|
|
13481 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13482 | include_fcntl_h="#include <fcntl.h>" |
|
|
13483 | else |
|
|
13484 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13485 | fi |
|
|
13486 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13487 | include_util_h="#include <util.h>" |
|
|
13488 | else |
|
|
13489 | include_util_h="/* #include <util.h> */" |
|
|
13490 | fi |
|
|
13491 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13492 | include_assert_h="#include <assert.h>" |
|
|
13493 | else |
|
|
13494 | include_assert_h="/* #include <assert.h> */" |
|
|
13495 | fi |
|
|
13496 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13497 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13498 | else |
|
|
13499 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13500 | fi |
|
|
13501 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13502 | include_sys_select_h="#include <sys/select.h>" |
|
|
13503 | else |
|
|
13504 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13505 | fi |
|
|
13506 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13507 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13508 | else |
|
|
13509 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13510 | fi |
|
|
13511 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13512 | include_sys_time_h="#include <sys/time.h>" |
|
|
13513 | else |
|
|
13514 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13515 | fi |
|
|
13516 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13517 | include_time_h="#include <time.h>" |
|
|
13518 | else |
|
|
13519 | include_time_h="/* #include <time.h> */" |
|
|
13520 | fi |
|
|
13521 | |
|
|
13522 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11846 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13523 | |
11847 | |
13524 | cat >confcache <<\_ACEOF |
11848 | cat >confcache <<\_ACEOF |
13525 | # This file is a shell script that caches the results of configure |
11849 | # This file is a shell script that caches the results of configure |
13526 | # tests run on this system so they can be shared between configure |
11850 | # tests run on this system so they can be shared between configure |
13527 | # scripts and configure runs, see configure's option --config-cache. |
11851 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14076 | case $ac_config_target in |
12400 | case $ac_config_target in |
14077 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12401 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14078 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12402 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14079 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12403 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14080 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12404 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14081 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14082 | |
12405 | |
14083 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12406 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14084 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12407 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14085 | { (exit 1); exit 1; }; };; |
12408 | { (exit 1); exit 1; }; };; |
14086 | esac |
12409 | esac |
… | |
… | |
14185 | host_cpu!$host_cpu$ac_delim |
12508 | host_cpu!$host_cpu$ac_delim |
14186 | host_vendor!$host_vendor$ac_delim |
12509 | host_vendor!$host_vendor$ac_delim |
14187 | host_os!$host_os$ac_delim |
12510 | host_os!$host_os$ac_delim |
14188 | VERSION!$VERSION$ac_delim |
12511 | VERSION!$VERSION$ac_delim |
14189 | DATE!$DATE$ac_delim |
12512 | DATE!$DATE$ac_delim |
14190 | LSMDATE!$LSMDATE$ac_delim |
|
|
14191 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14192 | CC!$CC$ac_delim |
12513 | CC!$CC$ac_delim |
14193 | CFLAGS!$CFLAGS$ac_delim |
12514 | CFLAGS!$CFLAGS$ac_delim |
14194 | LDFLAGS!$LDFLAGS$ac_delim |
12515 | LDFLAGS!$LDFLAGS$ac_delim |
14195 | CPPFLAGS!$CPPFLAGS$ac_delim |
12516 | CPPFLAGS!$CPPFLAGS$ac_delim |
14196 | ac_ct_CC!$ac_ct_CC$ac_delim |
12517 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14204 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12525 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14205 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12526 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14206 | GREP!$GREP$ac_delim |
12527 | GREP!$GREP$ac_delim |
14207 | EGREP!$EGREP$ac_delim |
12528 | EGREP!$EGREP$ac_delim |
14208 | LINKER!$LINKER$ac_delim |
12529 | LINKER!$LINKER$ac_delim |
14209 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14210 | RXVTNAME!$RXVTNAME$ac_delim |
12530 | RXVTNAME!$RXVTNAME$ac_delim |
|
|
12531 | CXXCPP!$CXXCPP$ac_delim |
14211 | TIC!$TIC$ac_delim |
12532 | TIC!$TIC$ac_delim |
14212 | XMKMF!$XMKMF$ac_delim |
12533 | XMKMF!$XMKMF$ac_delim |
14213 | CXXCPP!$CXXCPP$ac_delim |
|
|
14214 | X_CFLAGS!$X_CFLAGS$ac_delim |
12534 | X_CFLAGS!$X_CFLAGS$ac_delim |
14215 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12535 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14216 | X_LIBS!$X_LIBS$ac_delim |
12536 | X_LIBS!$X_LIBS$ac_delim |
14217 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12537 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14218 | afterimage_config!$afterimage_config$ac_delim |
12538 | afterimage_config!$afterimage_config$ac_delim |
14219 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
|
|
14220 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14221 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14222 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14223 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14224 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14225 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14226 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14227 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14228 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12539 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14229 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12540 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14230 | PERL!$PERL$ac_delim |
12541 | PERL!$PERL$ac_delim |
14231 | PERLLIB!$PERLLIB$ac_delim |
12542 | PERLLIB!$PERLLIB$ac_delim |
14232 | PERLFLAGS!$PERLFLAGS$ac_delim |
12543 | PERLFLAGS!$PERLFLAGS$ac_delim |
14233 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12544 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14234 | IF_PERL!$IF_PERL$ac_delim |
12545 | IF_PERL!$IF_PERL$ac_delim |
14235 | PERL_O!$PERL_O$ac_delim |
12546 | PERL_O!$PERL_O$ac_delim |
14236 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
12547 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
14237 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
12548 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
14238 | include_stdint_h!$include_stdint_h$ac_delim |
12549 | LIBOBJS!$LIBOBJS$ac_delim |
14239 | include_stdarg_h!$include_stdarg_h$ac_delim |
12550 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14240 | _ACEOF |
12551 | _ACEOF |
14241 | |
12552 | |
14242 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12553 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14243 | break |
12554 | break |
14244 | elif $ac_last_try; then |
12555 | elif $ac_last_try; then |
14245 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12556 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14246 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12557 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14247 | { (exit 1); exit 1; }; } |
12558 | { (exit 1); exit 1; }; } |
… | |
… | |
14256 | ac_eof=`expr $ac_eof + 1` |
12567 | ac_eof=`expr $ac_eof + 1` |
14257 | fi |
12568 | fi |
14258 | |
12569 | |
14259 | cat >>$CONFIG_STATUS <<_ACEOF |
12570 | cat >>$CONFIG_STATUS <<_ACEOF |
14260 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12571 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14261 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14262 | _ACEOF |
|
|
14263 | sed ' |
|
|
14264 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14265 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14266 | :n |
|
|
14267 | t n |
|
|
14268 | s/'"$ac_delim"'$/,g/; t |
|
|
14269 | s/$/\\/; p |
|
|
14270 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14271 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14272 | rm -f conf$$subs.sed |
|
|
14273 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14274 | CEOF$ac_eof |
|
|
14275 | _ACEOF |
|
|
14276 | |
|
|
14277 | |
|
|
14278 | ac_delim='%!_!# ' |
|
|
14279 | for ac_last_try in false false false false false :; do |
|
|
14280 | cat >conf$$subs.sed <<_ACEOF |
|
|
14281 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14282 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14283 | include_string_h!$include_string_h$ac_delim |
|
|
14284 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14285 | include_util_h!$include_util_h$ac_delim |
|
|
14286 | include_assert_h!$include_assert_h$ac_delim |
|
|
14287 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14288 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14289 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14290 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14291 | include_time_h!$include_time_h$ac_delim |
|
|
14292 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14293 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14294 | _ACEOF |
|
|
14295 | |
|
|
14296 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then |
|
|
14297 | break |
|
|
14298 | elif $ac_last_try; then |
|
|
14299 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14300 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14301 | { (exit 1); exit 1; }; } |
|
|
14302 | else |
|
|
14303 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14304 | fi |
|
|
14305 | done |
|
|
14306 | |
|
|
14307 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14308 | if test -n "$ac_eof"; then |
|
|
14309 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14310 | ac_eof=`expr $ac_eof + 1` |
|
|
14311 | fi |
|
|
14312 | |
|
|
14313 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14314 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14315 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12572 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14316 | _ACEOF |
12573 | _ACEOF |
14317 | sed ' |
12574 | sed ' |
14318 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12575 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14319 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12576 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14572 | s&@builddir@&$ac_builddir&;t t |
12829 | s&@builddir@&$ac_builddir&;t t |
14573 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12830 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14574 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12831 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14575 | s&@INSTALL@&$ac_INSTALL&;t t |
12832 | s&@INSTALL@&$ac_INSTALL&;t t |
14576 | $ac_datarootdir_hack |
12833 | $ac_datarootdir_hack |
14577 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12834 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14578 | |
12835 | |
14579 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12836 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14580 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12837 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14581 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12838 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14582 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12839 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
… | |
… | |
14730 | Install path: ${prefix}/bin |
12987 | Install path: ${prefix}/bin |
14731 | Compiler: $CXX |
12988 | Compiler: $CXX |
14732 | Compiler flags: $CXXFLAGS |
12989 | Compiler flags: $CXXFLAGS |
14733 | Linker: $LINKER" |
12990 | Linker: $LINKER" |
14734 | |
12991 | |
14735 | if test x$support_xpm = xyes; then |
|
|
14736 | echo " Xpm library: $XPM_LIBS" |
|
|
14737 | fi |
|
|
14738 | |
|
|
14739 | if test x$support_afterimage = xyes; then |
|
|
14740 | echo " AfterImage support: yes" |
|
|
14741 | fi |
|
|
14742 | |
|
|
14743 | if test x$support_afterstep = xyes; then |
|
|
14744 | echo " AfterStep integration: yes" |
|
|
14745 | fi |
|
|
14746 | |
|
|
14747 | if test x$term != x; then |
12992 | if test x$term != x; then |
14748 | echo " set TERM to: $term" |
12993 | echo " set TERM to: $term" |
14749 | fi |
12994 | fi |
14750 | if test x$terminfo != x; then |
12995 | if test x$terminfo != x; then |
14751 | echo " set TERMINFO to: $terminfo" |
12996 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
14755 | if test x$RESFALLBACK != x; then |
13000 | if test x$RESFALLBACK != x; then |
14756 | echo " resource class fallback: $RESFALLBACK" |
13001 | echo " resource class fallback: $RESFALLBACK" |
14757 | fi |
13002 | fi |
14758 | echo |
13003 | echo |
14759 | echo " embedded perl: $support_perl" |
13004 | echo " embedded perl: $support_perl" |
|
|
13005 | echo " libafterimage: $support_afterimage" |
14760 | echo |
13006 | echo |
14761 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
14762 | echo ".----------------------------------------------------------------." |
|
|
14763 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
14764 | echo ". XPM includes files and libraries could not be found. ." |
|
|
14765 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
14766 | echo ". to use them you should rerun configure with the ." |
|
|
14767 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
14768 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
14769 | echo ".----------------------------------------------------------------." |
|
|
14770 | fi |
|
|
14771 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
13007 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
14772 | echo ".----------------------------------------------------------------." |
13008 | echo ".----------------------------------------------------------------." |
14773 | echo ". WARNING: --enable-xim was specified however the locale support ." |
13009 | echo ". WARNING: --enable-xim was specified however the locale support ." |
14774 | echo ". functions could not be found. ." |
13010 | echo ". functions could not be found. ." |
14775 | echo ". XIM is now being DISABLED! ." |
13011 | echo ". XIM is now being DISABLED! ." |