… | |
… | |
658 | host_cpu |
658 | host_cpu |
659 | host_vendor |
659 | host_vendor |
660 | host_os |
660 | host_os |
661 | VERSION |
661 | VERSION |
662 | DATE |
662 | DATE |
663 | LSMDATE |
|
|
664 | LIBVERSION |
|
|
665 | CC |
663 | CC |
666 | CFLAGS |
664 | CFLAGS |
667 | LDFLAGS |
665 | LDFLAGS |
668 | CPPFLAGS |
666 | CPPFLAGS |
669 | ac_ct_CC |
667 | ac_ct_CC |
… | |
… | |
677 | INSTALL_SCRIPT |
675 | INSTALL_SCRIPT |
678 | INSTALL_DATA |
676 | INSTALL_DATA |
679 | GREP |
677 | GREP |
680 | EGREP |
678 | EGREP |
681 | LINKER |
679 | LINKER |
682 | INSTALL_LIBRXVT |
|
|
683 | RXVTNAME |
680 | RXVTNAME |
684 | MV |
681 | CXXCPP |
685 | CP |
|
|
686 | LN |
|
|
687 | SED |
|
|
688 | ECHO |
|
|
689 | CMP |
|
|
690 | TIC |
682 | TIC |
691 | XMKMF |
683 | XMKMF |
692 | CXXCPP |
|
|
693 | X_CFLAGS |
684 | X_CFLAGS |
694 | X_PRE_LIBS |
685 | X_PRE_LIBS |
695 | X_LIBS |
686 | X_LIBS |
696 | X_EXTRA_LIBS |
687 | X_EXTRA_LIBS |
697 | XPM_CPPFLAGS |
688 | afterimage_config |
698 | XPM_CFLAGS |
|
|
699 | XPM_LIBS |
|
|
700 | rxvt_int16_typedef |
|
|
701 | rxvt_uint16_typedef |
|
|
702 | rxvt_int32_typedef |
|
|
703 | rxvt_uint32_typedef |
|
|
704 | rxvt_intp_define |
|
|
705 | rxvt_u_intp_define |
|
|
706 | PKG_CONFIG |
689 | PKG_CONFIG |
707 | XFT_CONFIG |
690 | XFT_CONFIG |
708 | PERL |
691 | PERL |
709 | PERLLIB |
692 | PERLLIB |
710 | PERLFLAGS |
693 | PERLFLAGS |
711 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
712 | IF_PERL |
695 | IF_PERL |
713 | PERL_O |
696 | PERL_O |
714 | DEBUG |
697 | AFTERIMAGE_CFLAGS |
715 | DINCLUDE |
698 | AFTERIMAGE_LIBS |
716 | DLIB |
|
|
717 | include_stdint_h |
|
|
718 | include_stdarg_h |
|
|
719 | include_stdlib_h |
|
|
720 | include_unistd_h |
|
|
721 | include_string_h |
|
|
722 | include_fcntl_h |
|
|
723 | include_util_h |
|
|
724 | include_assert_h |
|
|
725 | include_sys_ioctl_h |
|
|
726 | include_sys_select_h |
|
|
727 | include_sys_strredir_h |
|
|
728 | include_sys_time_h |
|
|
729 | include_time_h |
|
|
730 | LIBOBJS |
699 | LIBOBJS |
731 | LTLIBOBJS' |
700 | LTLIBOBJS' |
732 | ac_subst_files='' |
701 | ac_subst_files='' |
733 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
734 | host_alias |
703 | host_alias |
… | |
… | |
740 | CPPFLAGS |
709 | CPPFLAGS |
741 | CXX |
710 | CXX |
742 | CXXFLAGS |
711 | CXXFLAGS |
743 | CCC |
712 | CCC |
744 | CPP |
713 | CPP |
745 | XMKMF |
|
|
746 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
747 | |
716 | |
748 | |
717 | |
749 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
750 | ac_init_help= |
719 | ac_init_help= |
751 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1324 | |
1293 | |
1325 | Optional Features: |
1294 | Optional Features: |
1326 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1327 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1328 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1329 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1330 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-warnings turn on g++ warnings |
1331 | --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 |
1332 | --enable-combining enable composition of base and combining characters |
1301 | --enable-combining enable composition of base and combining characters |
1333 | --enable-xft enable xft support on systems that have it |
1302 | --enable-xft enable xft support on systems that have it |
1334 | --enable-font-styles enable bold and italic support |
1303 | --enable-font-styles enable bold and italic support |
1335 | --enable-xpm-background enable XPM background pixmaps |
1304 | --enable-afterimage enable integration with libAfterImage for background images |
1336 | --enable-transparency enable transparent backgrounds |
1305 | --enable-transparency enable transparent backgrounds |
1337 | --enable-tinting enable tinting of transparent bg |
|
|
1338 | --enable-fading enable colors fading when off focus |
1306 | --enable-fading enable colors fading when off focus |
1339 | --enable-rxvt-scroll enable rxvt style scrollbar |
1307 | --enable-rxvt-scroll enable rxvt style scrollbar |
1340 | --enable-next-scroll enable NeXT style scrollbar |
1308 | --enable-next-scroll enable NeXT style scrollbar |
1341 | --enable-xterm-scroll enable Xterm style scrollbar |
1309 | --enable-xterm-scroll enable Xterm style scrollbar |
1342 | --enable-perl enable embedded perl interpreter |
1310 | --enable-perl enable embedded perl interpreter |
1343 | --enable-plain-scroll enable plain style scrollbar |
|
|
1344 | --enable-xim XIM (X Input Method) protocol support |
1311 | --enable-xim XIM (X Input Method) protocol support |
1345 | --disable-backspace-key disable handling of the backspace key |
1312 | --disable-backspace-key disable handling of the backspace key |
1346 | --disable-delete-key disable handling of the delete key |
1313 | --disable-delete-key disable handling of the delete key |
1347 | --disable-resources disable all resource checking |
1314 | --disable-resources disable all resource checking |
1348 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1315 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1349 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1316 | --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1350 | --disable-swapscreen disable swap screen support |
1317 | --disable-swapscreen disable swap screen support |
1351 | --enable-iso14755 enable support for extended ISO 14755 modes |
1318 | --enable-iso14755 enable support for extended ISO 14755 modes |
1352 | --enable-frills enable support for rarely used features |
1319 | --enable-frills enable support for rarely used features |
1353 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1320 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1354 | --enable-selectionscrolling enable scrolling during selections |
1321 | --enable-selectionscrolling enable scrolling during selections |
1355 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1322 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1356 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1323 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1357 | --enable-smart-resize enable smart growth/shrink behaviour |
1324 | --enable-smart-resize enable smart growth/shrink behaviour |
1358 | --enable-text-blink enable blinking text |
1325 | --enable-text-blink enable blinking text |
1359 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1326 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1360 | --enable-utmp enable utmp (utmpx) support |
1327 | --enable-utmp enable utmp (utmpx) support |
1361 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1328 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1362 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1329 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1363 | |
1330 | |
1364 | Optional Packages: |
1331 | Optional Packages: |
1365 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1332 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1366 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1333 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
1334 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1367 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1335 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1368 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1336 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1369 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1337 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1370 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1338 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1371 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1339 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1372 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1340 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
1373 | --with-x use the X Window System |
1341 | --with-x use the X Window System |
1374 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1375 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1376 | --with-xpm use XPM |
|
|
1377 | |
1342 | |
1378 | Some influential environment variables: |
1343 | Some influential environment variables: |
1379 | CC C compiler command |
1344 | CC C compiler command |
1380 | CFLAGS C compiler flags |
1345 | CFLAGS C compiler flags |
1381 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1346 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
… | |
… | |
1384 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1349 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1385 | you have headers in a nonstandard directory <include dir> |
1350 | you have headers in a nonstandard directory <include dir> |
1386 | CXX C++ compiler command |
1351 | CXX C++ compiler command |
1387 | CXXFLAGS C++ compiler flags |
1352 | CXXFLAGS C++ compiler flags |
1388 | CPP C preprocessor |
1353 | CPP C preprocessor |
|
|
1354 | CXXCPP C++ preprocessor |
1389 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1355 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1390 | CXXCPP C++ preprocessor |
|
|
1391 | |
1356 | |
1392 | Use these variables to override the choices made by `configure' or to help |
1357 | Use these variables to override the choices made by `configure' or to help |
1393 | it to find libraries and programs with nonstandard names/locations. |
1358 | it to find libraries and programs with nonstandard names/locations. |
1394 | |
1359 | |
1395 | _ACEOF |
1360 | _ACEOF |
… | |
… | |
1931 | |
1896 | |
1932 | |
1897 | |
1933 | |
1898 | |
1934 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1899 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1935 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1900 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1901 | |
1936 | echo "" |
1902 | echo "" |
1937 | echo "configuring for rxvt $VERSION" |
1903 | echo "configuring for rxvt $VERSION" |
1938 | echo "" |
1904 | echo "" |
1939 | |
1905 | |
1940 | orig_CXXFLAGS="$CXXFLAGS" |
1906 | orig_CXXFLAGS="$CXXFLAGS" |
1941 | |
|
|
1942 | |
1907 | |
1943 | ac_ext=c |
1908 | ac_ext=c |
1944 | ac_cpp='$CPP $CPPFLAGS' |
1909 | ac_cpp='$CPP $CPPFLAGS' |
1945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1911 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
… | |
… | |
3725 | echo "${ECHO_T}no" >&6; } |
3690 | echo "${ECHO_T}no" >&6; } |
3726 | fi |
3691 | fi |
3727 | rm -f conftest* |
3692 | rm -f conftest* |
3728 | |
3693 | |
3729 | |
3694 | |
|
|
3695 | |
|
|
3696 | cat >>confdefs.h <<\_ACEOF |
|
|
3697 | #define _GNU_SOURCE 1 |
|
|
3698 | _ACEOF |
|
|
3699 | |
|
|
3700 | |
3730 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3701 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3731 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3702 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3732 | if test "${ac_cv_search_strerror+set}" = set; then |
3703 | if test "${ac_cv_search_strerror+set}" = set; then |
3733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3734 | else |
3705 | else |
… | |
… | |
3881 | LINKER=$LINKER |
3852 | LINKER=$LINKER |
3882 | |
3853 | |
3883 | |
3854 | |
3884 | if test -z "$orig_CXXFLAGS"; then |
3855 | if test -z "$orig_CXXFLAGS"; then |
3885 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3856 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3886 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3857 | CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs" |
3887 | cat >conftest.$ac_ext <<_ACEOF |
3858 | cat >conftest.$ac_ext <<_ACEOF |
3888 | /* confdefs.h. */ |
3859 | /* confdefs.h. */ |
3889 | _ACEOF |
3860 | _ACEOF |
3890 | cat confdefs.h >>conftest.$ac_ext |
3861 | cat confdefs.h >>conftest.$ac_ext |
3891 | cat >>conftest.$ac_ext <<_ACEOF |
3862 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3929 | CXXFLAGS="-O" |
3900 | CXXFLAGS="-O" |
3930 | fi |
3901 | fi |
3931 | CFLAGS="$CXXFLAGS" |
3902 | CFLAGS="$CXXFLAGS" |
3932 | fi |
3903 | fi |
3933 | |
3904 | |
3934 | |
|
|
3935 | cat >>confdefs.h <<\_ACEOF |
|
|
3936 | #define _GNU_SOURCE 1 |
|
|
3937 | _ACEOF |
|
|
3938 | |
|
|
3939 | |
|
|
3940 | case $host in |
3905 | case $host in |
3941 | *-*-solaris* ) |
3906 | *-*-solaris* ) |
3942 | |
3907 | |
3943 | cat >>confdefs.h <<\_ACEOF |
3908 | cat >>confdefs.h <<\_ACEOF |
3944 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3945 | _ACEOF |
|
|
3946 | |
|
|
3947 | |
|
|
3948 | cat >>confdefs.h <<\_ACEOF |
|
|
3949 | #define _XOPEN_SOURCE 2 |
3909 | #define _XOPEN_SOURCE 500 |
3950 | _ACEOF |
|
|
3951 | |
|
|
3952 | |
|
|
3953 | cat >>confdefs.h <<\_ACEOF |
|
|
3954 | #define __EXTENSIONS__ 1 |
|
|
3955 | _ACEOF |
3910 | _ACEOF |
3956 | |
3911 | |
3957 | ;; |
3912 | ;; |
3958 | esac |
3913 | esac |
3959 | |
|
|
3960 | |
3914 | |
3961 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3915 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3962 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3916 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3963 | if test "${ac_cv_func_setlocale+set}" = set; then |
3917 | if test "${ac_cv_func_setlocale+set}" = set; then |
3964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4411 | fi |
4365 | fi |
4412 | |
4366 | |
4413 | fi |
4367 | fi |
4414 | |
4368 | |
4415 | |
4369 | |
4416 | |
|
|
4417 | support_frills=yes |
4370 | support_frills=yes |
4418 | support_inheritpixmap=yes |
4371 | support_inheritpixmap=yes |
4419 | support_tinting=yes |
|
|
4420 | support_fading=yes |
4372 | support_fading=yes |
4421 | support_keepscrolling=yes |
4373 | support_keepscrolling=yes |
4422 | support_selectionscrolling=yes |
4374 | support_selectionscrolling=yes |
4423 | support_mousewheel=yes |
4375 | support_mousewheel=yes |
4424 | support_mouseslipwheel=yes |
4376 | support_mouseslipwheel=yes |
4425 | support_text_blink=yes |
4377 | support_text_blink=yes |
4426 | support_pointer_blank=yes |
4378 | support_pointer_blank=yes |
4427 | support_scroll_rxvt=yes |
4379 | support_scroll_rxvt=yes |
4428 | support_scroll_next=yes |
4380 | support_scroll_next=yes |
4429 | support_scroll_xterm=yes |
4381 | support_scroll_xterm=yes |
4430 | support_scroll_plain=yes |
|
|
4431 | support_xim=yes |
4382 | support_xim=yes |
4432 | support_xpm=yes |
4383 | support_afterimage=yes |
|
|
4384 | support_afterstep=yes |
4433 | support_xft=yes |
4385 | support_xft=yes |
4434 | support_unicode3=no |
4386 | support_unicode3=no |
4435 | support_combining=yes |
4387 | support_combining=yes |
4436 | support_8bitctrls=no |
4388 | support_8bitctrls=no |
4437 | support_iso14755=yes |
4389 | support_iso14755=yes |
4438 | support_styles=yes |
4390 | support_styles=yes |
4439 | support_perl=yes |
4391 | support_perl=yes |
4440 | codesets=all |
4392 | codesets=all |
4441 | |
4393 | |
4442 | |
4394 | |
4443 | if test "x$enable_shared" = xyes; then |
|
|
4444 | |
|
|
4445 | cat >>confdefs.h <<\_ACEOF |
|
|
4446 | #define LIBRXVT 1 |
|
|
4447 | _ACEOF |
|
|
4448 | |
|
|
4449 | INSTALL_LIBRXVT=yes |
|
|
4450 | fi |
|
|
4451 | |
|
|
4452 | |
|
|
4453 | # Check whether --enable-everything was given. |
4395 | # Check whether --enable-everything was given. |
4454 | if test "${enable_everything+set}" = set; then |
4396 | if test "${enable_everything+set}" = set; then |
4455 | enableval=$enable_everything; |
4397 | enableval=$enable_everything; |
4456 | if test x$enableval = xno; then |
4398 | if test x$enableval = xno; then |
4457 | support_frills=no |
4399 | support_frills=no |
4458 | support_inheritpixmap=no |
4400 | support_inheritpixmap=no |
4459 | support_tinting=no |
|
|
4460 | support_fading=no |
4401 | support_fading=no |
4461 | support_keepscrolling=no |
4402 | support_keepscrolling=no |
4462 | support_selectionscrolling=no |
4403 | support_selectionscrolling=no |
4463 | support_lastlog=no |
4404 | support_lastlog=no |
4464 | support_mousewheel=no |
4405 | support_mousewheel=no |
… | |
… | |
4466 | support_text_blink=no |
4407 | support_text_blink=no |
4467 | support_pointer_blank=no |
4408 | support_pointer_blank=no |
4468 | support_scroll_rxvt=no |
4409 | support_scroll_rxvt=no |
4469 | support_scroll_next=no |
4410 | support_scroll_next=no |
4470 | support_scroll_xterm=no |
4411 | support_scroll_xterm=no |
4471 | support_scroll_plain=no |
|
|
4472 | support_utmp=no |
4412 | support_utmp=no |
4473 | support_wtmp=no |
4413 | support_wtmp=no |
4474 | support_xim=no |
4414 | support_xim=no |
|
|
4415 | support_afterimage=no |
4475 | support_xpm=no |
4416 | support_afterstep=no |
4476 | support_xft=no |
4417 | support_xft=no |
4477 | support_unicode3=no |
4418 | support_unicode3=no |
4478 | support_combining=no |
4419 | support_combining=no |
4479 | support_8bitctrls=no |
4420 | support_8bitctrls=no |
4480 | support_iso14755=no |
4421 | support_iso14755=no |
… | |
… | |
4483 | codesets= |
4424 | codesets= |
4484 | fi |
4425 | fi |
4485 | if test x$enableval = xyes; then |
4426 | if test x$enableval = xyes; then |
4486 | support_frills=yes |
4427 | support_frills=yes |
4487 | support_inheritpixmap=yes |
4428 | support_inheritpixmap=yes |
4488 | support_tinting=yes |
|
|
4489 | support_fading=yes |
4429 | support_fading=yes |
4490 | support_keepscrolling=yes |
4430 | support_keepscrolling=yes |
4491 | support_selectionscrolling=yes |
4431 | support_selectionscrolling=yes |
4492 | support_lastlog=yes |
4432 | support_lastlog=yes |
4493 | support_mousewheel=yes |
4433 | support_mousewheel=yes |
… | |
… | |
4495 | support_text_blink=yes |
4435 | support_text_blink=yes |
4496 | support_pointer_blank=yes |
4436 | support_pointer_blank=yes |
4497 | support_scroll_rxvt=yes |
4437 | support_scroll_rxvt=yes |
4498 | support_scroll_next=yes |
4438 | support_scroll_next=yes |
4499 | support_scroll_xterm=yes |
4439 | support_scroll_xterm=yes |
4500 | support_scroll_plain=yes |
|
|
4501 | support_utmp=yes |
4440 | support_utmp=yes |
4502 | support_wtmp=yes |
4441 | support_wtmp=yes |
4503 | support_xim=yes |
4442 | support_xim=yes |
|
|
4443 | support_afterimage=yes |
4504 | support_xpm=yes |
4444 | support_afterstep=yes |
4505 | support_xft=yes |
4445 | support_xft=yes |
4506 | support_unicode3=yes |
4446 | support_unicode3=yes |
4507 | support_combining=yes |
4447 | support_combining=yes |
4508 | #support_8bitctrls=yes |
4448 | #support_8bitctrls=yes |
4509 | support_iso14755=yes |
4449 | support_iso14755=yes |
… | |
… | |
4513 | fi |
4453 | fi |
4514 | |
4454 | |
4515 | fi |
4455 | fi |
4516 | |
4456 | |
4517 | |
4457 | |
|
|
4458 | WARNINGS=no |
|
|
4459 | # Check whether --enable-warnings was given. |
|
|
4460 | if test "${enable_warnings+set}" = set; then |
|
|
4461 | enableval=$enable_warnings; if test x$enableval = xyes; then |
|
|
4462 | WARNINGS=yes |
|
|
4463 | fi |
|
|
4464 | fi |
|
|
4465 | |
|
|
4466 | if test x$GXX = xyes; then |
|
|
4467 | if test $WARNINGS = yes; then |
|
|
4468 | save_CXXFLAGS="$CXXFLAGS" |
|
|
4469 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
|
|
4470 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4471 | /* confdefs.h. */ |
|
|
4472 | _ACEOF |
|
|
4473 | cat confdefs.h >>conftest.$ac_ext |
|
|
4474 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4475 | /* end confdefs.h. */ |
|
|
4476 | |
|
|
4477 | int |
|
|
4478 | main () |
|
|
4479 | { |
|
|
4480 | |
|
|
4481 | ; |
|
|
4482 | return 0; |
|
|
4483 | } |
|
|
4484 | _ACEOF |
|
|
4485 | rm -f conftest.$ac_objext |
|
|
4486 | if { (ac_try="$ac_compile" |
|
|
4487 | case "(($ac_try" in |
|
|
4488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4489 | *) ac_try_echo=$ac_try;; |
|
|
4490 | esac |
|
|
4491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4492 | (eval "$ac_compile") 2>conftest.er1 |
|
|
4493 | ac_status=$? |
|
|
4494 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4495 | rm -f conftest.er1 |
|
|
4496 | cat conftest.err >&5 |
|
|
4497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4498 | (exit $ac_status); } && { |
|
|
4499 | test -z "$ac_cxx_werror_flag" || |
|
|
4500 | test ! -s conftest.err |
|
|
4501 | } && test -s conftest.$ac_objext; then |
|
|
4502 | : |
|
|
4503 | else |
|
|
4504 | echo "$as_me: failed program was:" >&5 |
|
|
4505 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4506 | |
|
|
4507 | CXXFLAGS="$save_CXXFLAGS" |
|
|
4508 | fi |
|
|
4509 | |
|
|
4510 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4511 | else |
|
|
4512 | CXXFLAGS="$CXXFLAGS -w" |
|
|
4513 | fi |
|
|
4514 | fi |
|
|
4515 | |
4518 | # Check whether --enable-unicode3 was given. |
4516 | # Check whether --enable-unicode3 was given. |
4519 | if test "${enable_unicode3+set}" = set; then |
4517 | if test "${enable_unicode3+set}" = set; then |
4520 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4518 | enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then |
4521 | support_unicode3=$enableval |
4519 | support_unicode3=$enableval |
4522 | fi |
4520 | fi |
… | |
… | |
4545 | support_styles=$enableval |
4543 | support_styles=$enableval |
4546 | fi |
4544 | fi |
4547 | fi |
4545 | fi |
4548 | |
4546 | |
4549 | |
4547 | |
4550 | # Check whether --enable-xpm-background was given. |
4548 | # Check whether --enable-afterimage was given. |
4551 | if test "${enable_xpm_background+set}" = set; then |
4549 | if test "${enable_afterimage+set}" = set; then |
4552 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
4550 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_xpm=$enableval |
4551 | support_afterimage=$enableval |
4554 | fi |
4552 | fi |
4555 | fi |
4553 | fi |
|
|
4554 | |
|
|
4555 | |
|
|
4556 | |
|
|
4557 | # Check whether --with-afterimage_config was given. |
|
|
4558 | if test "${with_afterimage_config+set}" = set; then |
|
|
4559 | withval=$with_afterimage_config; if test "x$withval" != x; then |
|
|
4560 | afterimage_config=$withval/afterimage-config |
|
|
4561 | fi |
|
|
4562 | fi |
|
|
4563 | |
4556 | |
4564 | |
4557 | |
4565 | |
4558 | # Check whether --enable-transparency was given. |
4566 | # Check whether --enable-transparency was given. |
4559 | if test "${enable_transparency+set}" = set; then |
4567 | if test "${enable_transparency+set}" = set; then |
4560 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4568 | enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then |
4561 | support_inheritpixmap=$enableval |
4569 | support_inheritpixmap=$enableval |
4562 | fi |
4570 | fi |
4563 | fi |
4571 | fi |
4564 | |
4572 | |
4565 | |
4573 | |
4566 | # Check whether --enable-tinting was given. |
|
|
4567 | if test "${enable_tinting+set}" = set; then |
|
|
4568 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4569 | support_tinting=$enableval |
|
|
4570 | fi |
|
|
4571 | fi |
|
|
4572 | |
|
|
4573 | |
|
|
4574 | # Check whether --enable-fading was given. |
4574 | # Check whether --enable-fading was given. |
4575 | if test "${enable_fading+set}" = set; then |
4575 | if test "${enable_fading+set}" = set; then |
4576 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4576 | enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then |
4577 | support_fading=$enableval |
4577 | support_fading=$enableval |
4578 | fi |
4578 | fi |
… | |
… | |
4605 | |
4605 | |
4606 | # Check whether --enable-perl was given. |
4606 | # Check whether --enable-perl was given. |
4607 | if test "${enable_perl+set}" = set; then |
4607 | if test "${enable_perl+set}" = set; then |
4608 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4608 | enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then |
4609 | support_perl=$enableval |
4609 | support_perl=$enableval |
4610 | fi |
|
|
4611 | fi |
|
|
4612 | |
|
|
4613 | |
|
|
4614 | # Check whether --enable-plain-scroll was given. |
|
|
4615 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4616 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4617 | support_scroll_plain=$enableval |
|
|
4618 | fi |
4610 | fi |
4619 | fi |
4611 | fi |
4620 | |
4612 | |
4621 | |
4613 | |
4622 | |
4614 | |
… | |
… | |
4852 | fi |
4844 | fi |
4853 | fi |
4845 | fi |
4854 | |
4846 | |
4855 | |
4847 | |
4856 | |
4848 | |
4857 | # Extract the first word of "mv", so it can be a program name with args. |
4849 | LIBEV_M4_AVOID_LIBRT=1 |
4858 | set dummy mv; ac_word=$2 |
4850 | |
4859 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4851 | ac_ext=cpp |
4860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
4852 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4853 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4854 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4855 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4856 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4857 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
4858 | if test -z "$CXXCPP"; then |
4861 | if test "${ac_cv_path_MV+set}" = set; then |
4859 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4863 | else |
4861 | else |
4864 | case $MV in |
4862 | # Double quotes because CXXCPP needs to be expanded |
4865 | [\\/]* | ?:[\\/]*) |
4863 | for CXXCPP in "$CXX -E" "/lib/cpp" |
4866 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
4864 | do |
4867 | ;; |
4865 | ac_preproc_ok=false |
4868 | *) |
4866 | for ac_cxx_preproc_warn_flag in '' yes |
4869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4870 | for as_dir in $PATH |
|
|
4871 | do |
4867 | do |
4872 | IFS=$as_save_IFS |
4868 | # Use a header file that comes with gcc, so configuring glibc |
4873 | test -z "$as_dir" && as_dir=. |
4869 | # with a fresh cross-compiler works. |
4874 | for ac_exec_ext in '' $ac_executable_extensions; do |
4870 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
4871 | # <limits.h> exists even on freestanding compilers. |
4876 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
4872 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4873 | # not just through cpp. "Syntax error" is here to catch this case. |
4878 | break 2 |
4874 | cat >conftest.$ac_ext <<_ACEOF |
4879 | fi |
4875 | /* confdefs.h. */ |
|
|
4876 | _ACEOF |
|
|
4877 | cat confdefs.h >>conftest.$ac_ext |
|
|
4878 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4879 | /* end confdefs.h. */ |
|
|
4880 | #ifdef __STDC__ |
|
|
4881 | # include <limits.h> |
|
|
4882 | #else |
|
|
4883 | # include <assert.h> |
|
|
4884 | #endif |
|
|
4885 | Syntax error |
|
|
4886 | _ACEOF |
|
|
4887 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4888 | case "(($ac_try" in |
|
|
4889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4890 | *) ac_try_echo=$ac_try;; |
|
|
4891 | esac |
|
|
4892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4893 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4894 | ac_status=$? |
|
|
4895 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4896 | rm -f conftest.er1 |
|
|
4897 | cat conftest.err >&5 |
|
|
4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4899 | (exit $ac_status); } >/dev/null && { |
|
|
4900 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4901 | test ! -s conftest.err |
|
|
4902 | }; then |
|
|
4903 | : |
|
|
4904 | else |
|
|
4905 | echo "$as_me: failed program was:" >&5 |
|
|
4906 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4907 | |
|
|
4908 | # Broken: fails on valid input. |
|
|
4909 | continue |
|
|
4910 | fi |
|
|
4911 | |
|
|
4912 | rm -f conftest.err conftest.$ac_ext |
|
|
4913 | |
|
|
4914 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
4915 | # can be detected and how. |
|
|
4916 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4917 | /* confdefs.h. */ |
|
|
4918 | _ACEOF |
|
|
4919 | cat confdefs.h >>conftest.$ac_ext |
|
|
4920 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4921 | /* end confdefs.h. */ |
|
|
4922 | #include <ac_nonexistent.h> |
|
|
4923 | _ACEOF |
|
|
4924 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4925 | case "(($ac_try" in |
|
|
4926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4927 | *) ac_try_echo=$ac_try;; |
|
|
4928 | esac |
|
|
4929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4930 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4931 | ac_status=$? |
|
|
4932 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4933 | rm -f conftest.er1 |
|
|
4934 | cat conftest.err >&5 |
|
|
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4936 | (exit $ac_status); } >/dev/null && { |
|
|
4937 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
4938 | test ! -s conftest.err |
|
|
4939 | }; then |
|
|
4940 | # Broken: success on invalid input. |
|
|
4941 | continue |
|
|
4942 | else |
|
|
4943 | echo "$as_me: failed program was:" >&5 |
|
|
4944 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4945 | |
|
|
4946 | # Passes both tests. |
|
|
4947 | ac_preproc_ok=: |
|
|
4948 | break |
|
|
4949 | fi |
|
|
4950 | |
|
|
4951 | rm -f conftest.err conftest.$ac_ext |
|
|
4952 | |
4880 | done |
4953 | done |
|
|
4954 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4955 | rm -f conftest.err conftest.$ac_ext |
|
|
4956 | if $ac_preproc_ok; then |
|
|
4957 | break |
|
|
4958 | fi |
|
|
4959 | |
|
|
4960 | done |
|
|
4961 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4962 | |
|
|
4963 | fi |
|
|
4964 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
4965 | else |
|
|
4966 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
4967 | fi |
|
|
4968 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
4969 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
4970 | ac_preproc_ok=false |
|
|
4971 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4972 | do |
|
|
4973 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4974 | # with a fresh cross-compiler works. |
|
|
4975 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4976 | # <limits.h> exists even on freestanding compilers. |
|
|
4977 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4978 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4979 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4980 | /* confdefs.h. */ |
|
|
4981 | _ACEOF |
|
|
4982 | cat confdefs.h >>conftest.$ac_ext |
|
|
4983 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4984 | /* end confdefs.h. */ |
|
|
4985 | #ifdef __STDC__ |
|
|
4986 | # include <limits.h> |
|
|
4987 | #else |
|
|
4988 | # include <assert.h> |
|
|
4989 | #endif |
|
|
4990 | Syntax error |
|
|
4991 | _ACEOF |
|
|
4992 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
4993 | case "(($ac_try" in |
|
|
4994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
4995 | *) ac_try_echo=$ac_try;; |
|
|
4996 | esac |
|
|
4997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
4998 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
4999 | ac_status=$? |
|
|
5000 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5001 | rm -f conftest.er1 |
|
|
5002 | cat conftest.err >&5 |
|
|
5003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5004 | (exit $ac_status); } >/dev/null && { |
|
|
5005 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5006 | test ! -s conftest.err |
|
|
5007 | }; then |
|
|
5008 | : |
|
|
5009 | else |
|
|
5010 | echo "$as_me: failed program was:" >&5 |
|
|
5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5012 | |
|
|
5013 | # Broken: fails on valid input. |
|
|
5014 | continue |
|
|
5015 | fi |
|
|
5016 | |
|
|
5017 | rm -f conftest.err conftest.$ac_ext |
|
|
5018 | |
|
|
5019 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5020 | # can be detected and how. |
|
|
5021 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5022 | /* confdefs.h. */ |
|
|
5023 | _ACEOF |
|
|
5024 | cat confdefs.h >>conftest.$ac_ext |
|
|
5025 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5026 | /* end confdefs.h. */ |
|
|
5027 | #include <ac_nonexistent.h> |
|
|
5028 | _ACEOF |
|
|
5029 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5030 | case "(($ac_try" in |
|
|
5031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5032 | *) ac_try_echo=$ac_try;; |
|
|
5033 | esac |
|
|
5034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5035 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5036 | ac_status=$? |
|
|
5037 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5038 | rm -f conftest.er1 |
|
|
5039 | cat conftest.err >&5 |
|
|
5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5041 | (exit $ac_status); } >/dev/null && { |
|
|
5042 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5043 | test ! -s conftest.err |
|
|
5044 | }; then |
|
|
5045 | # Broken: success on invalid input. |
|
|
5046 | continue |
|
|
5047 | else |
|
|
5048 | echo "$as_me: failed program was:" >&5 |
|
|
5049 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5050 | |
|
|
5051 | # Passes both tests. |
|
|
5052 | ac_preproc_ok=: |
|
|
5053 | break |
|
|
5054 | fi |
|
|
5055 | |
|
|
5056 | rm -f conftest.err conftest.$ac_ext |
|
|
5057 | |
4881 | done |
5058 | done |
4882 | IFS=$as_save_IFS |
5059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4883 | |
5060 | rm -f conftest.err conftest.$ac_ext |
4884 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
5061 | if $ac_preproc_ok; then |
4885 | ;; |
5062 | : |
4886 | esac |
|
|
4887 | fi |
|
|
4888 | MV=$ac_cv_path_MV |
|
|
4889 | if test -n "$MV"; then |
|
|
4890 | { echo "$as_me:$LINENO: result: $MV" >&5 |
|
|
4891 | echo "${ECHO_T}$MV" >&6; } |
|
|
4892 | else |
5063 | else |
4893 | { echo "$as_me:$LINENO: result: no" >&5 |
5064 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
4894 | echo "${ECHO_T}no" >&6; } |
5065 | See \`config.log' for more details." >&5 |
|
|
5066 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5067 | See \`config.log' for more details." >&2;} |
|
|
5068 | { (exit 1); exit 1; }; } |
4895 | fi |
5069 | fi |
4896 | |
5070 | |
|
|
5071 | ac_ext=cpp |
|
|
5072 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5073 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5074 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5075 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4897 | |
5076 | |
4898 | # Extract the first word of "cp", so it can be a program name with args. |
5077 | |
4899 | set dummy cp; ac_word=$2 |
|
|
4900 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5078 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4901 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5079 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4902 | if test "${ac_cv_path_CP+set}" = set; then |
5080 | if test "${ac_cv_header_stdc+set}" = set; then |
4903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4904 | else |
5082 | else |
4905 | case $CP in |
5083 | cat >conftest.$ac_ext <<_ACEOF |
4906 | [\\/]* | ?:[\\/]*) |
5084 | /* confdefs.h. */ |
4907 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
5085 | _ACEOF |
|
|
5086 | cat confdefs.h >>conftest.$ac_ext |
|
|
5087 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5088 | /* end confdefs.h. */ |
|
|
5089 | #include <stdlib.h> |
|
|
5090 | #include <stdarg.h> |
|
|
5091 | #include <string.h> |
|
|
5092 | #include <float.h> |
|
|
5093 | |
|
|
5094 | int |
|
|
5095 | main () |
|
|
5096 | { |
|
|
5097 | |
4908 | ;; |
5098 | ; |
4909 | *) |
5099 | return 0; |
4910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5100 | } |
4911 | for as_dir in $PATH |
5101 | _ACEOF |
|
|
5102 | rm -f conftest.$ac_objext |
|
|
5103 | if { (ac_try="$ac_compile" |
|
|
5104 | case "(($ac_try" in |
|
|
5105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5106 | *) ac_try_echo=$ac_try;; |
|
|
5107 | esac |
|
|
5108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5109 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5110 | ac_status=$? |
|
|
5111 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5112 | rm -f conftest.er1 |
|
|
5113 | cat conftest.err >&5 |
|
|
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5115 | (exit $ac_status); } && { |
|
|
5116 | test -z "$ac_cxx_werror_flag" || |
|
|
5117 | test ! -s conftest.err |
|
|
5118 | } && test -s conftest.$ac_objext; then |
|
|
5119 | ac_cv_header_stdc=yes |
|
|
5120 | else |
|
|
5121 | echo "$as_me: failed program was:" >&5 |
|
|
5122 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5123 | |
|
|
5124 | ac_cv_header_stdc=no |
|
|
5125 | fi |
|
|
5126 | |
|
|
5127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5128 | |
|
|
5129 | if test $ac_cv_header_stdc = yes; then |
|
|
5130 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
5131 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5132 | /* confdefs.h. */ |
|
|
5133 | _ACEOF |
|
|
5134 | cat confdefs.h >>conftest.$ac_ext |
|
|
5135 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5136 | /* end confdefs.h. */ |
|
|
5137 | #include <string.h> |
|
|
5138 | |
|
|
5139 | _ACEOF |
|
|
5140 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5141 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
5142 | : |
|
|
5143 | else |
|
|
5144 | ac_cv_header_stdc=no |
|
|
5145 | fi |
|
|
5146 | rm -f conftest* |
|
|
5147 | |
|
|
5148 | fi |
|
|
5149 | |
|
|
5150 | if test $ac_cv_header_stdc = yes; then |
|
|
5151 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
5152 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5153 | /* confdefs.h. */ |
|
|
5154 | _ACEOF |
|
|
5155 | cat confdefs.h >>conftest.$ac_ext |
|
|
5156 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5157 | /* end confdefs.h. */ |
|
|
5158 | #include <stdlib.h> |
|
|
5159 | |
|
|
5160 | _ACEOF |
|
|
5161 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
5162 | $EGREP "free" >/dev/null 2>&1; then |
|
|
5163 | : |
|
|
5164 | else |
|
|
5165 | ac_cv_header_stdc=no |
|
|
5166 | fi |
|
|
5167 | rm -f conftest* |
|
|
5168 | |
|
|
5169 | fi |
|
|
5170 | |
|
|
5171 | if test $ac_cv_header_stdc = yes; then |
|
|
5172 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
5173 | if test "$cross_compiling" = yes; then |
|
|
5174 | : |
|
|
5175 | else |
|
|
5176 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5177 | /* confdefs.h. */ |
|
|
5178 | _ACEOF |
|
|
5179 | cat confdefs.h >>conftest.$ac_ext |
|
|
5180 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5181 | /* end confdefs.h. */ |
|
|
5182 | #include <ctype.h> |
|
|
5183 | #include <stdlib.h> |
|
|
5184 | #if ((' ' & 0x0FF) == 0x020) |
|
|
5185 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
5186 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
5187 | #else |
|
|
5188 | # define ISLOWER(c) \ |
|
|
5189 | (('a' <= (c) && (c) <= 'i') \ |
|
|
5190 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
5191 | || ('s' <= (c) && (c) <= 'z')) |
|
|
5192 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
5193 | #endif |
|
|
5194 | |
|
|
5195 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
5196 | int |
|
|
5197 | main () |
|
|
5198 | { |
|
|
5199 | int i; |
|
|
5200 | for (i = 0; i < 256; i++) |
|
|
5201 | if (XOR (islower (i), ISLOWER (i)) |
|
|
5202 | || toupper (i) != TOUPPER (i)) |
|
|
5203 | return 2; |
|
|
5204 | return 0; |
|
|
5205 | } |
|
|
5206 | _ACEOF |
|
|
5207 | rm -f conftest$ac_exeext |
|
|
5208 | if { (ac_try="$ac_link" |
|
|
5209 | case "(($ac_try" in |
|
|
5210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5211 | *) ac_try_echo=$ac_try;; |
|
|
5212 | esac |
|
|
5213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5214 | (eval "$ac_link") 2>&5 |
|
|
5215 | ac_status=$? |
|
|
5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
5218 | { (case "(($ac_try" in |
|
|
5219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5220 | *) ac_try_echo=$ac_try;; |
|
|
5221 | esac |
|
|
5222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5223 | (eval "$ac_try") 2>&5 |
|
|
5224 | ac_status=$? |
|
|
5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5226 | (exit $ac_status); }; }; then |
|
|
5227 | : |
|
|
5228 | else |
|
|
5229 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
5230 | echo "$as_me: failed program was:" >&5 |
|
|
5231 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5232 | |
|
|
5233 | ( exit $ac_status ) |
|
|
5234 | ac_cv_header_stdc=no |
|
|
5235 | fi |
|
|
5236 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
5237 | fi |
|
|
5238 | |
|
|
5239 | |
|
|
5240 | fi |
|
|
5241 | fi |
|
|
5242 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
5243 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
5244 | if test $ac_cv_header_stdc = yes; then |
|
|
5245 | |
|
|
5246 | cat >>confdefs.h <<\_ACEOF |
|
|
5247 | #define STDC_HEADERS 1 |
|
|
5248 | _ACEOF |
|
|
5249 | |
|
|
5250 | fi |
|
|
5251 | |
|
|
5252 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
5253 | |
|
|
5254 | |
|
|
5255 | |
|
|
5256 | |
|
|
5257 | |
|
|
5258 | |
|
|
5259 | |
|
|
5260 | |
|
|
5261 | |
|
|
5262 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
5263 | inttypes.h stdint.h unistd.h |
4912 | do |
5264 | do |
4913 | IFS=$as_save_IFS |
5265 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4914 | test -z "$as_dir" && as_dir=. |
5266 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4915 | for ac_exec_ext in '' $ac_executable_extensions; do |
5267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4917 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
5269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5270 | else |
4919 | break 2 |
5271 | cat >conftest.$ac_ext <<_ACEOF |
4920 | fi |
5272 | /* confdefs.h. */ |
|
|
5273 | _ACEOF |
|
|
5274 | cat confdefs.h >>conftest.$ac_ext |
|
|
5275 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5276 | /* end confdefs.h. */ |
|
|
5277 | $ac_includes_default |
|
|
5278 | |
|
|
5279 | #include <$ac_header> |
|
|
5280 | _ACEOF |
|
|
5281 | rm -f conftest.$ac_objext |
|
|
5282 | if { (ac_try="$ac_compile" |
|
|
5283 | case "(($ac_try" in |
|
|
5284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5285 | *) ac_try_echo=$ac_try;; |
|
|
5286 | esac |
|
|
5287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5288 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5289 | ac_status=$? |
|
|
5290 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5291 | rm -f conftest.er1 |
|
|
5292 | cat conftest.err >&5 |
|
|
5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5294 | (exit $ac_status); } && { |
|
|
5295 | test -z "$ac_cxx_werror_flag" || |
|
|
5296 | test ! -s conftest.err |
|
|
5297 | } && test -s conftest.$ac_objext; then |
|
|
5298 | eval "$as_ac_Header=yes" |
|
|
5299 | else |
|
|
5300 | echo "$as_me: failed program was:" >&5 |
|
|
5301 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5302 | |
|
|
5303 | eval "$as_ac_Header=no" |
|
|
5304 | fi |
|
|
5305 | |
|
|
5306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5307 | fi |
|
|
5308 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5310 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5311 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5312 | cat >>confdefs.h <<_ACEOF |
|
|
5313 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5314 | _ACEOF |
|
|
5315 | |
|
|
5316 | fi |
|
|
5317 | |
4921 | done |
5318 | done |
|
|
5319 | |
|
|
5320 | |
|
|
5321 | |
|
|
5322 | |
|
|
5323 | |
|
|
5324 | |
|
|
5325 | |
|
|
5326 | |
|
|
5327 | |
|
|
5328 | |
|
|
5329 | for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h |
|
|
5330 | do |
|
|
5331 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
5332 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5333 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5334 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5335 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5337 | fi |
|
|
5338 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5340 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5341 | else |
|
|
5342 | # Is the header compilable? |
|
|
5343 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
5344 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
|
|
5345 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5346 | /* confdefs.h. */ |
|
|
5347 | _ACEOF |
|
|
5348 | cat confdefs.h >>conftest.$ac_ext |
|
|
5349 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5350 | /* end confdefs.h. */ |
|
|
5351 | $ac_includes_default |
|
|
5352 | #include <$ac_header> |
|
|
5353 | _ACEOF |
|
|
5354 | rm -f conftest.$ac_objext |
|
|
5355 | if { (ac_try="$ac_compile" |
|
|
5356 | case "(($ac_try" in |
|
|
5357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5358 | *) ac_try_echo=$ac_try;; |
|
|
5359 | esac |
|
|
5360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5361 | (eval "$ac_compile") 2>conftest.er1 |
|
|
5362 | ac_status=$? |
|
|
5363 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5364 | rm -f conftest.er1 |
|
|
5365 | cat conftest.err >&5 |
|
|
5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5367 | (exit $ac_status); } && { |
|
|
5368 | test -z "$ac_cxx_werror_flag" || |
|
|
5369 | test ! -s conftest.err |
|
|
5370 | } && test -s conftest.$ac_objext; then |
|
|
5371 | ac_header_compiler=yes |
|
|
5372 | else |
|
|
5373 | echo "$as_me: failed program was:" >&5 |
|
|
5374 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5375 | |
|
|
5376 | ac_header_compiler=no |
|
|
5377 | fi |
|
|
5378 | |
|
|
5379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5380 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
5381 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
|
|
5382 | |
|
|
5383 | # Is the header present? |
|
|
5384 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
5385 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
|
|
5386 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5387 | /* confdefs.h. */ |
|
|
5388 | _ACEOF |
|
|
5389 | cat confdefs.h >>conftest.$ac_ext |
|
|
5390 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5391 | /* end confdefs.h. */ |
|
|
5392 | #include <$ac_header> |
|
|
5393 | _ACEOF |
|
|
5394 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5395 | case "(($ac_try" in |
|
|
5396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5397 | *) ac_try_echo=$ac_try;; |
|
|
5398 | esac |
|
|
5399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5400 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5401 | ac_status=$? |
|
|
5402 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5403 | rm -f conftest.er1 |
|
|
5404 | cat conftest.err >&5 |
|
|
5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5406 | (exit $ac_status); } >/dev/null && { |
|
|
5407 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5408 | test ! -s conftest.err |
|
|
5409 | }; then |
|
|
5410 | ac_header_preproc=yes |
|
|
5411 | else |
|
|
5412 | echo "$as_me: failed program was:" >&5 |
|
|
5413 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5414 | |
|
|
5415 | ac_header_preproc=no |
|
|
5416 | fi |
|
|
5417 | |
|
|
5418 | rm -f conftest.err conftest.$ac_ext |
|
|
5419 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
5420 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
|
|
5421 | |
|
|
5422 | # So? What about this header? |
|
|
5423 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
5424 | yes:no: ) |
|
|
5425 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
5426 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
5427 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
5428 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
5429 | ac_header_preproc=yes |
|
|
5430 | ;; |
|
|
5431 | no:yes:* ) |
|
|
5432 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
5433 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
5434 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
5435 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
5436 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
5437 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
5438 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
5439 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
5440 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
5441 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
5442 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
5443 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
5444 | |
|
|
5445 | ;; |
|
|
5446 | esac |
|
|
5447 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
5448 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
5449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5451 | else |
|
|
5452 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
5453 | fi |
|
|
5454 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
5455 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5456 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5457 | |
|
|
5458 | fi |
|
|
5459 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
5460 | cat >>confdefs.h <<_ACEOF |
|
|
5461 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
5462 | _ACEOF |
|
|
5463 | |
|
|
5464 | fi |
|
|
5465 | |
4922 | done |
5466 | done |
4923 | IFS=$as_save_IFS |
|
|
4924 | |
5467 | |
4925 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
|
|
4926 | ;; |
|
|
4927 | esac |
|
|
4928 | fi |
|
|
4929 | CP=$ac_cv_path_CP |
|
|
4930 | if test -n "$CP"; then |
|
|
4931 | { echo "$as_me:$LINENO: result: $CP" >&5 |
|
|
4932 | echo "${ECHO_T}$CP" >&6; } |
|
|
4933 | else |
|
|
4934 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
4935 | echo "${ECHO_T}no" >&6; } |
|
|
4936 | fi |
|
|
4937 | |
5468 | |
4938 | |
5469 | |
4939 | # Extract the first word of "ln", so it can be a program name with args. |
5470 | |
4940 | set dummy ln; ac_word=$2 |
5471 | |
|
|
5472 | |
|
|
5473 | |
|
|
5474 | |
|
|
5475 | |
|
|
5476 | for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd |
|
|
5477 | do |
|
|
5478 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4941 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5479 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
4943 | if test "${ac_cv_path_LN+set}" = set; then |
5481 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
4944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4945 | else |
5483 | else |
4946 | case $LN in |
5484 | cat >conftest.$ac_ext <<_ACEOF |
4947 | [\\/]* | ?:[\\/]*) |
5485 | /* confdefs.h. */ |
4948 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
5486 | _ACEOF |
|
|
5487 | cat confdefs.h >>conftest.$ac_ext |
|
|
5488 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5489 | /* end confdefs.h. */ |
|
|
5490 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5492 | #define $ac_func innocuous_$ac_func |
|
|
5493 | |
|
|
5494 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5495 | which can conflict with char $ac_func (); below. |
|
|
5496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5497 | <limits.h> exists even on freestanding compilers. */ |
|
|
5498 | |
|
|
5499 | #ifdef __STDC__ |
|
|
5500 | # include <limits.h> |
|
|
5501 | #else |
|
|
5502 | # include <assert.h> |
|
|
5503 | #endif |
|
|
5504 | |
|
|
5505 | #undef $ac_func |
|
|
5506 | |
|
|
5507 | /* Override any GCC internal prototype to avoid an error. |
|
|
5508 | Use char because int might match the return type of a GCC |
|
|
5509 | builtin and then its argument prototype would still apply. */ |
|
|
5510 | #ifdef __cplusplus |
|
|
5511 | extern "C" |
|
|
5512 | #endif |
|
|
5513 | char $ac_func (); |
|
|
5514 | /* The GNU C library defines this for functions which it implements |
|
|
5515 | to always fail with ENOSYS. Some functions are actually named |
|
|
5516 | something starting with __ and the normal name is an alias. */ |
|
|
5517 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5518 | choke me |
|
|
5519 | #endif |
|
|
5520 | |
|
|
5521 | int |
|
|
5522 | main () |
|
|
5523 | { |
|
|
5524 | return $ac_func (); |
4949 | ;; |
5525 | ; |
4950 | *) |
5526 | return 0; |
4951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5527 | } |
4952 | for as_dir in $PATH |
5528 | _ACEOF |
|
|
5529 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5530 | if { (ac_try="$ac_link" |
|
|
5531 | case "(($ac_try" in |
|
|
5532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5533 | *) ac_try_echo=$ac_try;; |
|
|
5534 | esac |
|
|
5535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5536 | (eval "$ac_link") 2>conftest.er1 |
|
|
5537 | ac_status=$? |
|
|
5538 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5539 | rm -f conftest.er1 |
|
|
5540 | cat conftest.err >&5 |
|
|
5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5542 | (exit $ac_status); } && { |
|
|
5543 | test -z "$ac_cxx_werror_flag" || |
|
|
5544 | test ! -s conftest.err |
|
|
5545 | } && test -s conftest$ac_exeext && |
|
|
5546 | $as_test_x conftest$ac_exeext; then |
|
|
5547 | eval "$as_ac_var=yes" |
|
|
5548 | else |
|
|
5549 | echo "$as_me: failed program was:" >&5 |
|
|
5550 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5551 | |
|
|
5552 | eval "$as_ac_var=no" |
|
|
5553 | fi |
|
|
5554 | |
|
|
5555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5556 | conftest$ac_exeext conftest.$ac_ext |
|
|
5557 | fi |
|
|
5558 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5559 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5560 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5561 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5562 | cat >>confdefs.h <<_ACEOF |
|
|
5563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5564 | _ACEOF |
|
|
5565 | |
|
|
5566 | fi |
|
|
5567 | done |
|
|
5568 | |
|
|
5569 | |
|
|
5570 | { echo "$as_me:$LINENO: checking for clock_gettime" >&5 |
|
|
5571 | echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; } |
|
|
5572 | if test "${ac_cv_func_clock_gettime+set}" = set; then |
|
|
5573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5574 | else |
|
|
5575 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5576 | /* confdefs.h. */ |
|
|
5577 | _ACEOF |
|
|
5578 | cat confdefs.h >>conftest.$ac_ext |
|
|
5579 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5580 | /* end confdefs.h. */ |
|
|
5581 | /* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime. |
|
|
5582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5583 | #define clock_gettime innocuous_clock_gettime |
|
|
5584 | |
|
|
5585 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5586 | which can conflict with char clock_gettime (); below. |
|
|
5587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5588 | <limits.h> exists even on freestanding compilers. */ |
|
|
5589 | |
|
|
5590 | #ifdef __STDC__ |
|
|
5591 | # include <limits.h> |
|
|
5592 | #else |
|
|
5593 | # include <assert.h> |
|
|
5594 | #endif |
|
|
5595 | |
|
|
5596 | #undef clock_gettime |
|
|
5597 | |
|
|
5598 | /* Override any GCC internal prototype to avoid an error. |
|
|
5599 | Use char because int might match the return type of a GCC |
|
|
5600 | builtin and then its argument prototype would still apply. */ |
|
|
5601 | #ifdef __cplusplus |
|
|
5602 | extern "C" |
|
|
5603 | #endif |
|
|
5604 | char clock_gettime (); |
|
|
5605 | /* The GNU C library defines this for functions which it implements |
|
|
5606 | to always fail with ENOSYS. Some functions are actually named |
|
|
5607 | something starting with __ and the normal name is an alias. */ |
|
|
5608 | #if defined __stub_clock_gettime || defined __stub___clock_gettime |
|
|
5609 | choke me |
|
|
5610 | #endif |
|
|
5611 | |
|
|
5612 | int |
|
|
5613 | main () |
|
|
5614 | { |
|
|
5615 | return clock_gettime (); |
|
|
5616 | ; |
|
|
5617 | return 0; |
|
|
5618 | } |
|
|
5619 | _ACEOF |
|
|
5620 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5621 | if { (ac_try="$ac_link" |
|
|
5622 | case "(($ac_try" in |
|
|
5623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5624 | *) ac_try_echo=$ac_try;; |
|
|
5625 | esac |
|
|
5626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5627 | (eval "$ac_link") 2>conftest.er1 |
|
|
5628 | ac_status=$? |
|
|
5629 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5630 | rm -f conftest.er1 |
|
|
5631 | cat conftest.err >&5 |
|
|
5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5633 | (exit $ac_status); } && { |
|
|
5634 | test -z "$ac_cxx_werror_flag" || |
|
|
5635 | test ! -s conftest.err |
|
|
5636 | } && test -s conftest$ac_exeext && |
|
|
5637 | $as_test_x conftest$ac_exeext; then |
|
|
5638 | ac_cv_func_clock_gettime=yes |
|
|
5639 | else |
|
|
5640 | echo "$as_me: failed program was:" >&5 |
|
|
5641 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5642 | |
|
|
5643 | ac_cv_func_clock_gettime=no |
|
|
5644 | fi |
|
|
5645 | |
|
|
5646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5647 | conftest$ac_exeext conftest.$ac_ext |
|
|
5648 | fi |
|
|
5649 | { echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5 |
|
|
5650 | echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } |
|
|
5651 | if test $ac_cv_func_clock_gettime = yes; then |
|
|
5652 | : |
|
|
5653 | else |
|
|
5654 | |
|
|
5655 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5656 | |
|
|
5657 | { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 |
|
|
5658 | echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } |
|
|
5659 | if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then |
|
|
5660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5661 | else |
|
|
5662 | ac_check_lib_save_LIBS=$LIBS |
|
|
5663 | LIBS="-lrt $LIBS" |
|
|
5664 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5665 | /* confdefs.h. */ |
|
|
5666 | _ACEOF |
|
|
5667 | cat confdefs.h >>conftest.$ac_ext |
|
|
5668 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5669 | /* end confdefs.h. */ |
|
|
5670 | |
|
|
5671 | /* Override any GCC internal prototype to avoid an error. |
|
|
5672 | Use char because int might match the return type of a GCC |
|
|
5673 | builtin and then its argument prototype would still apply. */ |
|
|
5674 | #ifdef __cplusplus |
|
|
5675 | extern "C" |
|
|
5676 | #endif |
|
|
5677 | char clock_gettime (); |
|
|
5678 | int |
|
|
5679 | main () |
|
|
5680 | { |
|
|
5681 | return clock_gettime (); |
|
|
5682 | ; |
|
|
5683 | return 0; |
|
|
5684 | } |
|
|
5685 | _ACEOF |
|
|
5686 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5687 | if { (ac_try="$ac_link" |
|
|
5688 | case "(($ac_try" in |
|
|
5689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5690 | *) ac_try_echo=$ac_try;; |
|
|
5691 | esac |
|
|
5692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5693 | (eval "$ac_link") 2>conftest.er1 |
|
|
5694 | ac_status=$? |
|
|
5695 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5696 | rm -f conftest.er1 |
|
|
5697 | cat conftest.err >&5 |
|
|
5698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5699 | (exit $ac_status); } && { |
|
|
5700 | test -z "$ac_cxx_werror_flag" || |
|
|
5701 | test ! -s conftest.err |
|
|
5702 | } && test -s conftest$ac_exeext && |
|
|
5703 | $as_test_x conftest$ac_exeext; then |
|
|
5704 | ac_cv_lib_rt_clock_gettime=yes |
|
|
5705 | else |
|
|
5706 | echo "$as_me: failed program was:" >&5 |
|
|
5707 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5708 | |
|
|
5709 | ac_cv_lib_rt_clock_gettime=no |
|
|
5710 | fi |
|
|
5711 | |
|
|
5712 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5713 | conftest$ac_exeext conftest.$ac_ext |
|
|
5714 | LIBS=$ac_check_lib_save_LIBS |
|
|
5715 | fi |
|
|
5716 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 |
|
|
5717 | echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; } |
|
|
5718 | if test $ac_cv_lib_rt_clock_gettime = yes; then |
|
|
5719 | cat >>confdefs.h <<_ACEOF |
|
|
5720 | #define HAVE_LIBRT 1 |
|
|
5721 | _ACEOF |
|
|
5722 | |
|
|
5723 | LIBS="-lrt $LIBS" |
|
|
5724 | |
|
|
5725 | fi |
|
|
5726 | |
|
|
5727 | unset ac_cv_func_clock_gettime |
|
|
5728 | |
|
|
5729 | for ac_func in clock_gettime |
4953 | do |
5730 | do |
4954 | IFS=$as_save_IFS |
5731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4955 | test -z "$as_dir" && as_dir=. |
5732 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4956 | for ac_exec_ext in '' $ac_executable_extensions; do |
5733 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
4957 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5734 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
4958 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5736 | else |
4960 | break 2 |
5737 | cat >conftest.$ac_ext <<_ACEOF |
4961 | fi |
5738 | /* confdefs.h. */ |
|
|
5739 | _ACEOF |
|
|
5740 | cat confdefs.h >>conftest.$ac_ext |
|
|
5741 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5742 | /* end confdefs.h. */ |
|
|
5743 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
5744 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5745 | #define $ac_func innocuous_$ac_func |
|
|
5746 | |
|
|
5747 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5748 | which can conflict with char $ac_func (); below. |
|
|
5749 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5750 | <limits.h> exists even on freestanding compilers. */ |
|
|
5751 | |
|
|
5752 | #ifdef __STDC__ |
|
|
5753 | # include <limits.h> |
|
|
5754 | #else |
|
|
5755 | # include <assert.h> |
|
|
5756 | #endif |
|
|
5757 | |
|
|
5758 | #undef $ac_func |
|
|
5759 | |
|
|
5760 | /* Override any GCC internal prototype to avoid an error. |
|
|
5761 | Use char because int might match the return type of a GCC |
|
|
5762 | builtin and then its argument prototype would still apply. */ |
|
|
5763 | #ifdef __cplusplus |
|
|
5764 | extern "C" |
|
|
5765 | #endif |
|
|
5766 | char $ac_func (); |
|
|
5767 | /* The GNU C library defines this for functions which it implements |
|
|
5768 | to always fail with ENOSYS. Some functions are actually named |
|
|
5769 | something starting with __ and the normal name is an alias. */ |
|
|
5770 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
5771 | choke me |
|
|
5772 | #endif |
|
|
5773 | |
|
|
5774 | int |
|
|
5775 | main () |
|
|
5776 | { |
|
|
5777 | return $ac_func (); |
|
|
5778 | ; |
|
|
5779 | return 0; |
|
|
5780 | } |
|
|
5781 | _ACEOF |
|
|
5782 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5783 | if { (ac_try="$ac_link" |
|
|
5784 | case "(($ac_try" in |
|
|
5785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5786 | *) ac_try_echo=$ac_try;; |
|
|
5787 | esac |
|
|
5788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5789 | (eval "$ac_link") 2>conftest.er1 |
|
|
5790 | ac_status=$? |
|
|
5791 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5792 | rm -f conftest.er1 |
|
|
5793 | cat conftest.err >&5 |
|
|
5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5795 | (exit $ac_status); } && { |
|
|
5796 | test -z "$ac_cxx_werror_flag" || |
|
|
5797 | test ! -s conftest.err |
|
|
5798 | } && test -s conftest$ac_exeext && |
|
|
5799 | $as_test_x conftest$ac_exeext; then |
|
|
5800 | eval "$as_ac_var=yes" |
|
|
5801 | else |
|
|
5802 | echo "$as_me: failed program was:" >&5 |
|
|
5803 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5804 | |
|
|
5805 | eval "$as_ac_var=no" |
|
|
5806 | fi |
|
|
5807 | |
|
|
5808 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5809 | conftest$ac_exeext conftest.$ac_ext |
|
|
5810 | fi |
|
|
5811 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
5812 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
5813 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
5814 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
5815 | cat >>confdefs.h <<_ACEOF |
|
|
5816 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
5817 | _ACEOF |
|
|
5818 | |
|
|
5819 | fi |
4962 | done |
5820 | done |
|
|
5821 | |
|
|
5822 | fi |
|
|
5823 | |
|
|
5824 | fi |
|
|
5825 | |
|
|
5826 | |
|
|
5827 | { echo "$as_me:$LINENO: checking for nanosleep" >&5 |
|
|
5828 | echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; } |
|
|
5829 | if test "${ac_cv_func_nanosleep+set}" = set; then |
|
|
5830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5831 | else |
|
|
5832 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5833 | /* confdefs.h. */ |
|
|
5834 | _ACEOF |
|
|
5835 | cat confdefs.h >>conftest.$ac_ext |
|
|
5836 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5837 | /* end confdefs.h. */ |
|
|
5838 | /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep. |
|
|
5839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
5840 | #define nanosleep innocuous_nanosleep |
|
|
5841 | |
|
|
5842 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
5843 | which can conflict with char nanosleep (); below. |
|
|
5844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5845 | <limits.h> exists even on freestanding compilers. */ |
|
|
5846 | |
|
|
5847 | #ifdef __STDC__ |
|
|
5848 | # include <limits.h> |
|
|
5849 | #else |
|
|
5850 | # include <assert.h> |
|
|
5851 | #endif |
|
|
5852 | |
|
|
5853 | #undef nanosleep |
|
|
5854 | |
|
|
5855 | /* Override any GCC internal prototype to avoid an error. |
|
|
5856 | Use char because int might match the return type of a GCC |
|
|
5857 | builtin and then its argument prototype would still apply. */ |
|
|
5858 | #ifdef __cplusplus |
|
|
5859 | extern "C" |
|
|
5860 | #endif |
|
|
5861 | char nanosleep (); |
|
|
5862 | /* The GNU C library defines this for functions which it implements |
|
|
5863 | to always fail with ENOSYS. Some functions are actually named |
|
|
5864 | something starting with __ and the normal name is an alias. */ |
|
|
5865 | #if defined __stub_nanosleep || defined __stub___nanosleep |
|
|
5866 | choke me |
|
|
5867 | #endif |
|
|
5868 | |
|
|
5869 | int |
|
|
5870 | main () |
|
|
5871 | { |
|
|
5872 | return nanosleep (); |
|
|
5873 | ; |
|
|
5874 | return 0; |
|
|
5875 | } |
|
|
5876 | _ACEOF |
|
|
5877 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5878 | if { (ac_try="$ac_link" |
|
|
5879 | case "(($ac_try" in |
|
|
5880 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5881 | *) ac_try_echo=$ac_try;; |
|
|
5882 | esac |
|
|
5883 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5884 | (eval "$ac_link") 2>conftest.er1 |
|
|
5885 | ac_status=$? |
|
|
5886 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5887 | rm -f conftest.er1 |
|
|
5888 | cat conftest.err >&5 |
|
|
5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5890 | (exit $ac_status); } && { |
|
|
5891 | test -z "$ac_cxx_werror_flag" || |
|
|
5892 | test ! -s conftest.err |
|
|
5893 | } && test -s conftest$ac_exeext && |
|
|
5894 | $as_test_x conftest$ac_exeext; then |
|
|
5895 | ac_cv_func_nanosleep=yes |
|
|
5896 | else |
|
|
5897 | echo "$as_me: failed program was:" >&5 |
|
|
5898 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5899 | |
|
|
5900 | ac_cv_func_nanosleep=no |
|
|
5901 | fi |
|
|
5902 | |
|
|
5903 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5904 | conftest$ac_exeext conftest.$ac_ext |
|
|
5905 | fi |
|
|
5906 | { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5 |
|
|
5907 | echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; } |
|
|
5908 | if test $ac_cv_func_nanosleep = yes; then |
|
|
5909 | : |
|
|
5910 | else |
|
|
5911 | |
|
|
5912 | if test -z "$LIBEV_M4_AVOID_LIBRT"; then |
|
|
5913 | |
|
|
5914 | { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5 |
|
|
5915 | echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; } |
|
|
5916 | if test "${ac_cv_lib_rt_nanosleep+set}" = set; then |
|
|
5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5918 | else |
|
|
5919 | ac_check_lib_save_LIBS=$LIBS |
|
|
5920 | LIBS="-lrt $LIBS" |
|
|
5921 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5922 | /* confdefs.h. */ |
|
|
5923 | _ACEOF |
|
|
5924 | cat confdefs.h >>conftest.$ac_ext |
|
|
5925 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5926 | /* end confdefs.h. */ |
|
|
5927 | |
|
|
5928 | /* Override any GCC internal prototype to avoid an error. |
|
|
5929 | Use char because int might match the return type of a GCC |
|
|
5930 | builtin and then its argument prototype would still apply. */ |
|
|
5931 | #ifdef __cplusplus |
|
|
5932 | extern "C" |
|
|
5933 | #endif |
|
|
5934 | char nanosleep (); |
|
|
5935 | int |
|
|
5936 | main () |
|
|
5937 | { |
|
|
5938 | return nanosleep (); |
|
|
5939 | ; |
|
|
5940 | return 0; |
|
|
5941 | } |
|
|
5942 | _ACEOF |
|
|
5943 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5944 | if { (ac_try="$ac_link" |
|
|
5945 | case "(($ac_try" in |
|
|
5946 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5947 | *) ac_try_echo=$ac_try;; |
|
|
5948 | esac |
|
|
5949 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5950 | (eval "$ac_link") 2>conftest.er1 |
|
|
5951 | ac_status=$? |
|
|
5952 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5953 | rm -f conftest.er1 |
|
|
5954 | cat conftest.err >&5 |
|
|
5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5956 | (exit $ac_status); } && { |
|
|
5957 | test -z "$ac_cxx_werror_flag" || |
|
|
5958 | test ! -s conftest.err |
|
|
5959 | } && test -s conftest$ac_exeext && |
|
|
5960 | $as_test_x conftest$ac_exeext; then |
|
|
5961 | ac_cv_lib_rt_nanosleep=yes |
|
|
5962 | else |
|
|
5963 | echo "$as_me: failed program was:" >&5 |
|
|
5964 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5965 | |
|
|
5966 | ac_cv_lib_rt_nanosleep=no |
|
|
5967 | fi |
|
|
5968 | |
|
|
5969 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
5970 | conftest$ac_exeext conftest.$ac_ext |
|
|
5971 | LIBS=$ac_check_lib_save_LIBS |
|
|
5972 | fi |
|
|
5973 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5 |
|
|
5974 | echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; } |
|
|
5975 | if test $ac_cv_lib_rt_nanosleep = yes; then |
|
|
5976 | cat >>confdefs.h <<_ACEOF |
|
|
5977 | #define HAVE_LIBRT 1 |
|
|
5978 | _ACEOF |
|
|
5979 | |
|
|
5980 | LIBS="-lrt $LIBS" |
|
|
5981 | |
|
|
5982 | fi |
|
|
5983 | |
|
|
5984 | unset ac_cv_func_nanosleep |
|
|
5985 | |
|
|
5986 | for ac_func in nanosleep |
|
|
5987 | do |
|
|
5988 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
5989 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
5990 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
|
|
5991 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
5992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5993 | else |
|
|
5994 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5995 | /* confdefs.h. */ |
|
|
5996 | _ACEOF |
|
|
5997 | cat confdefs.h >>conftest.$ac_ext |
|
|
5998 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5999 | /* end confdefs.h. */ |
|
|
6000 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
6001 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
6002 | #define $ac_func innocuous_$ac_func |
|
|
6003 | |
|
|
6004 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
6005 | which can conflict with char $ac_func (); below. |
|
|
6006 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
6007 | <limits.h> exists even on freestanding compilers. */ |
|
|
6008 | |
|
|
6009 | #ifdef __STDC__ |
|
|
6010 | # include <limits.h> |
|
|
6011 | #else |
|
|
6012 | # include <assert.h> |
|
|
6013 | #endif |
|
|
6014 | |
|
|
6015 | #undef $ac_func |
|
|
6016 | |
|
|
6017 | /* Override any GCC internal prototype to avoid an error. |
|
|
6018 | Use char because int might match the return type of a GCC |
|
|
6019 | builtin and then its argument prototype would still apply. */ |
|
|
6020 | #ifdef __cplusplus |
|
|
6021 | extern "C" |
|
|
6022 | #endif |
|
|
6023 | char $ac_func (); |
|
|
6024 | /* The GNU C library defines this for functions which it implements |
|
|
6025 | to always fail with ENOSYS. Some functions are actually named |
|
|
6026 | something starting with __ and the normal name is an alias. */ |
|
|
6027 | #if defined __stub_$ac_func || defined __stub___$ac_func |
|
|
6028 | choke me |
|
|
6029 | #endif |
|
|
6030 | |
|
|
6031 | int |
|
|
6032 | main () |
|
|
6033 | { |
|
|
6034 | return $ac_func (); |
|
|
6035 | ; |
|
|
6036 | return 0; |
|
|
6037 | } |
|
|
6038 | _ACEOF |
|
|
6039 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6040 | if { (ac_try="$ac_link" |
|
|
6041 | case "(($ac_try" in |
|
|
6042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6043 | *) ac_try_echo=$ac_try;; |
|
|
6044 | esac |
|
|
6045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6046 | (eval "$ac_link") 2>conftest.er1 |
|
|
6047 | ac_status=$? |
|
|
6048 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6049 | rm -f conftest.er1 |
|
|
6050 | cat conftest.err >&5 |
|
|
6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6052 | (exit $ac_status); } && { |
|
|
6053 | test -z "$ac_cxx_werror_flag" || |
|
|
6054 | test ! -s conftest.err |
|
|
6055 | } && test -s conftest$ac_exeext && |
|
|
6056 | $as_test_x conftest$ac_exeext; then |
|
|
6057 | eval "$as_ac_var=yes" |
|
|
6058 | else |
|
|
6059 | echo "$as_me: failed program was:" >&5 |
|
|
6060 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6061 | |
|
|
6062 | eval "$as_ac_var=no" |
|
|
6063 | fi |
|
|
6064 | |
|
|
6065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6066 | conftest$ac_exeext conftest.$ac_ext |
|
|
6067 | fi |
|
|
6068 | ac_res=`eval echo '${'$as_ac_var'}'` |
|
|
6069 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
6070 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
6071 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
6072 | cat >>confdefs.h <<_ACEOF |
|
|
6073 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6074 | _ACEOF |
|
|
6075 | |
|
|
6076 | fi |
4963 | done |
6077 | done |
4964 | IFS=$as_save_IFS |
|
|
4965 | |
6078 | |
4966 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
6079 | fi |
4967 | ;; |
|
|
4968 | esac |
|
|
4969 | fi |
|
|
4970 | LN=$ac_cv_path_LN |
|
|
4971 | if test -n "$LN"; then |
|
|
4972 | { echo "$as_me:$LINENO: result: $LN" >&5 |
|
|
4973 | echo "${ECHO_T}$LN" >&6; } |
|
|
4974 | else |
|
|
4975 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
4976 | echo "${ECHO_T}no" >&6; } |
|
|
4977 | fi |
|
|
4978 | |
6080 | |
|
|
6081 | fi |
4979 | |
6082 | |
4980 | # Extract the first word of "sed", so it can be a program name with args. |
6083 | |
4981 | set dummy sed; ac_word=$2 |
6084 | |
4982 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6085 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
4983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6086 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
4984 | if test "${ac_cv_path_SED+set}" = set; then |
6087 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4986 | else |
6089 | else |
4987 | case $SED in |
6090 | ac_check_lib_save_LIBS=$LIBS |
4988 | [\\/]* | ?:[\\/]*) |
6091 | LIBS="-lm $LIBS" |
4989 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
6092 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6093 | /* confdefs.h. */ |
|
|
6094 | _ACEOF |
|
|
6095 | cat confdefs.h >>conftest.$ac_ext |
|
|
6096 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6097 | /* end confdefs.h. */ |
|
|
6098 | |
|
|
6099 | /* Override any GCC internal prototype to avoid an error. |
|
|
6100 | Use char because int might match the return type of a GCC |
|
|
6101 | builtin and then its argument prototype would still apply. */ |
|
|
6102 | #ifdef __cplusplus |
|
|
6103 | extern "C" |
|
|
6104 | #endif |
|
|
6105 | char ceil (); |
|
|
6106 | int |
|
|
6107 | main () |
|
|
6108 | { |
|
|
6109 | return ceil (); |
4990 | ;; |
6110 | ; |
4991 | *) |
6111 | return 0; |
4992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6112 | } |
4993 | for as_dir in $PATH |
6113 | _ACEOF |
4994 | do |
6114 | rm -f conftest.$ac_objext conftest$ac_exeext |
4995 | IFS=$as_save_IFS |
6115 | if { (ac_try="$ac_link" |
4996 | test -z "$as_dir" && as_dir=. |
6116 | case "(($ac_try" in |
4997 | for ac_exec_ext in '' $ac_executable_extensions; do |
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6118 | *) ac_try_echo=$ac_try;; |
4999 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
|
|
5000 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5001 | break 2 |
|
|
5002 | fi |
|
|
5003 | done |
|
|
5004 | done |
|
|
5005 | IFS=$as_save_IFS |
|
|
5006 | |
|
|
5007 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
|
|
5008 | ;; |
|
|
5009 | esac |
6119 | esac |
|
|
6120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6121 | (eval "$ac_link") 2>conftest.er1 |
|
|
6122 | ac_status=$? |
|
|
6123 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6124 | rm -f conftest.er1 |
|
|
6125 | cat conftest.err >&5 |
|
|
6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6127 | (exit $ac_status); } && { |
|
|
6128 | test -z "$ac_cxx_werror_flag" || |
|
|
6129 | test ! -s conftest.err |
|
|
6130 | } && test -s conftest$ac_exeext && |
|
|
6131 | $as_test_x conftest$ac_exeext; then |
|
|
6132 | ac_cv_lib_m_ceil=yes |
|
|
6133 | else |
|
|
6134 | echo "$as_me: failed program was:" >&5 |
|
|
6135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6136 | |
|
|
6137 | ac_cv_lib_m_ceil=no |
5010 | fi |
6138 | fi |
5011 | SED=$ac_cv_path_SED |
6139 | |
5012 | if test -n "$SED"; then |
6140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6141 | conftest$ac_exeext conftest.$ac_ext |
|
|
6142 | LIBS=$ac_check_lib_save_LIBS |
|
|
6143 | fi |
5013 | { echo "$as_me:$LINENO: result: $SED" >&5 |
6144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
5014 | echo "${ECHO_T}$SED" >&6; } |
6145 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
5015 | else |
6146 | if test $ac_cv_lib_m_ceil = yes; then |
5016 | { echo "$as_me:$LINENO: result: no" >&5 |
6147 | cat >>confdefs.h <<_ACEOF |
5017 | echo "${ECHO_T}no" >&6; } |
6148 | #define HAVE_LIBM 1 |
5018 | fi |
6149 | _ACEOF |
5019 | |
6150 | |
|
|
6151 | LIBS="-lm $LIBS" |
5020 | |
6152 | |
5021 | # Extract the first word of "echo", so it can be a program name with args. |
|
|
5022 | set dummy echo; ac_word=$2 |
|
|
5023 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
5025 | if test "${ac_cv_path_ECHO+set}" = set; then |
|
|
5026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5027 | else |
|
|
5028 | case $ECHO in |
|
|
5029 | [\\/]* | ?:[\\/]*) |
|
|
5030 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
|
|
5031 | ;; |
|
|
5032 | *) |
|
|
5033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5034 | for as_dir in $PATH |
|
|
5035 | do |
|
|
5036 | IFS=$as_save_IFS |
|
|
5037 | test -z "$as_dir" && as_dir=. |
|
|
5038 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5039 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
5040 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
|
|
5041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5042 | break 2 |
|
|
5043 | fi |
|
|
5044 | done |
|
|
5045 | done |
|
|
5046 | IFS=$as_save_IFS |
|
|
5047 | |
|
|
5048 | test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" |
|
|
5049 | ;; |
|
|
5050 | esac |
|
|
5051 | fi |
6153 | fi |
5052 | ECHO=$ac_cv_path_ECHO |
|
|
5053 | if test -n "$ECHO"; then |
|
|
5054 | { echo "$as_me:$LINENO: result: $ECHO" >&5 |
|
|
5055 | echo "${ECHO_T}$ECHO" >&6; } |
|
|
5056 | else |
|
|
5057 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5058 | echo "${ECHO_T}no" >&6; } |
|
|
5059 | fi |
|
|
5060 | |
6154 | |
5061 | |
6155 | |
5062 | # Extract the first word of "cmp", so it can be a program name with args. |
|
|
5063 | set dummy cmp; ac_word=$2 |
|
|
5064 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5065 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
5066 | if test "${ac_cv_path_CMP+set}" = set; then |
|
|
5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5068 | else |
|
|
5069 | case $CMP in |
|
|
5070 | [\\/]* | ?:[\\/]*) |
|
|
5071 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
|
|
5072 | ;; |
|
|
5073 | *) |
|
|
5074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5075 | for as_dir in $PATH |
|
|
5076 | do |
|
|
5077 | IFS=$as_save_IFS |
|
|
5078 | test -z "$as_dir" && as_dir=. |
|
|
5079 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5080 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
5081 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
|
|
5082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5083 | break 2 |
|
|
5084 | fi |
|
|
5085 | done |
|
|
5086 | done |
|
|
5087 | IFS=$as_save_IFS |
|
|
5088 | |
6156 | |
5089 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
6157 | |
5090 | ;; |
6158 | |
5091 | esac |
|
|
5092 | fi |
|
|
5093 | CMP=$ac_cv_path_CMP |
|
|
5094 | if test -n "$CMP"; then |
|
|
5095 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
|
|
5096 | echo "${ECHO_T}$CMP" >&6; } |
|
|
5097 | else |
|
|
5098 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5099 | echo "${ECHO_T}no" >&6; } |
|
|
5100 | fi |
|
|
5101 | |
6159 | |
5102 | |
6160 | |
5103 | # Extract the first word of "tic", so it can be a program name with args. |
6161 | # Extract the first word of "tic", so it can be a program name with args. |
5104 | set dummy tic; ac_word=$2 |
6162 | set dummy tic; ac_word=$2 |
5105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
5125 | fi |
6183 | fi |
5126 | done |
6184 | done |
5127 | done |
6185 | done |
5128 | IFS=$as_save_IFS |
6186 | IFS=$as_save_IFS |
5129 | |
6187 | |
|
|
6188 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
5130 | ;; |
6189 | ;; |
5131 | esac |
6190 | esac |
5132 | fi |
6191 | fi |
5133 | TIC=$ac_cv_path_TIC |
6192 | TIC=$ac_cv_path_TIC |
5134 | if test -n "$TIC"; then |
6193 | if test -n "$TIC"; then |
… | |
… | |
5137 | else |
6196 | else |
5138 | { echo "$as_me:$LINENO: result: no" >&5 |
6197 | { echo "$as_me:$LINENO: result: no" >&5 |
5139 | echo "${ECHO_T}no" >&6; } |
6198 | echo "${ECHO_T}no" >&6; } |
5140 | fi |
6199 | fi |
5141 | |
6200 | |
5142 | |
|
|
5143 | |
|
|
5144 | |
|
|
5145 | |
|
|
5146 | ac_ext=cpp |
|
|
5147 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5148 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5149 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5150 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5151 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
5152 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
5153 | if test -z "$CXXCPP"; then |
|
|
5154 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
5155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5156 | else |
|
|
5157 | # Double quotes because CXXCPP needs to be expanded |
|
|
5158 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
5159 | do |
|
|
5160 | ac_preproc_ok=false |
|
|
5161 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5162 | do |
|
|
5163 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5164 | # with a fresh cross-compiler works. |
|
|
5165 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5166 | # <limits.h> exists even on freestanding compilers. |
|
|
5167 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5168 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5170 | /* confdefs.h. */ |
|
|
5171 | _ACEOF |
|
|
5172 | cat confdefs.h >>conftest.$ac_ext |
|
|
5173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5174 | /* end confdefs.h. */ |
|
|
5175 | #ifdef __STDC__ |
|
|
5176 | # include <limits.h> |
|
|
5177 | #else |
|
|
5178 | # include <assert.h> |
|
|
5179 | #endif |
|
|
5180 | Syntax error |
|
|
5181 | _ACEOF |
|
|
5182 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5183 | case "(($ac_try" in |
|
|
5184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5185 | *) ac_try_echo=$ac_try;; |
|
|
5186 | esac |
|
|
5187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5189 | ac_status=$? |
|
|
5190 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5191 | rm -f conftest.er1 |
|
|
5192 | cat conftest.err >&5 |
|
|
5193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5194 | (exit $ac_status); } >/dev/null && { |
|
|
5195 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5196 | test ! -s conftest.err |
|
|
5197 | }; then |
|
|
5198 | : |
|
|
5199 | else |
|
|
5200 | echo "$as_me: failed program was:" >&5 |
|
|
5201 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5202 | |
|
|
5203 | # Broken: fails on valid input. |
|
|
5204 | continue |
|
|
5205 | fi |
|
|
5206 | |
|
|
5207 | rm -f conftest.err conftest.$ac_ext |
|
|
5208 | |
|
|
5209 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5210 | # can be detected and how. |
|
|
5211 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5212 | /* confdefs.h. */ |
|
|
5213 | _ACEOF |
|
|
5214 | cat confdefs.h >>conftest.$ac_ext |
|
|
5215 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5216 | /* end confdefs.h. */ |
|
|
5217 | #include <ac_nonexistent.h> |
|
|
5218 | _ACEOF |
|
|
5219 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5220 | case "(($ac_try" in |
|
|
5221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5222 | *) ac_try_echo=$ac_try;; |
|
|
5223 | esac |
|
|
5224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5225 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5226 | ac_status=$? |
|
|
5227 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5228 | rm -f conftest.er1 |
|
|
5229 | cat conftest.err >&5 |
|
|
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5231 | (exit $ac_status); } >/dev/null && { |
|
|
5232 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5233 | test ! -s conftest.err |
|
|
5234 | }; then |
|
|
5235 | # Broken: success on invalid input. |
|
|
5236 | continue |
|
|
5237 | else |
|
|
5238 | echo "$as_me: failed program was:" >&5 |
|
|
5239 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5240 | |
|
|
5241 | # Passes both tests. |
|
|
5242 | ac_preproc_ok=: |
|
|
5243 | break |
|
|
5244 | fi |
|
|
5245 | |
|
|
5246 | rm -f conftest.err conftest.$ac_ext |
|
|
5247 | |
|
|
5248 | done |
|
|
5249 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5250 | rm -f conftest.err conftest.$ac_ext |
|
|
5251 | if $ac_preproc_ok; then |
|
|
5252 | break |
|
|
5253 | fi |
|
|
5254 | |
|
|
5255 | done |
|
|
5256 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5257 | |
|
|
5258 | fi |
|
|
5259 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5260 | else |
|
|
5261 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5262 | fi |
|
|
5263 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5264 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5265 | ac_preproc_ok=false |
|
|
5266 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5267 | do |
|
|
5268 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5269 | # with a fresh cross-compiler works. |
|
|
5270 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5271 | # <limits.h> exists even on freestanding compilers. |
|
|
5272 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5273 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5274 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5275 | /* confdefs.h. */ |
|
|
5276 | _ACEOF |
|
|
5277 | cat confdefs.h >>conftest.$ac_ext |
|
|
5278 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5279 | /* end confdefs.h. */ |
|
|
5280 | #ifdef __STDC__ |
|
|
5281 | # include <limits.h> |
|
|
5282 | #else |
|
|
5283 | # include <assert.h> |
|
|
5284 | #endif |
|
|
5285 | Syntax error |
|
|
5286 | _ACEOF |
|
|
5287 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5288 | case "(($ac_try" in |
|
|
5289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5290 | *) ac_try_echo=$ac_try;; |
|
|
5291 | esac |
|
|
5292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5293 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5294 | ac_status=$? |
|
|
5295 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5296 | rm -f conftest.er1 |
|
|
5297 | cat conftest.err >&5 |
|
|
5298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5299 | (exit $ac_status); } >/dev/null && { |
|
|
5300 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5301 | test ! -s conftest.err |
|
|
5302 | }; then |
|
|
5303 | : |
|
|
5304 | else |
|
|
5305 | echo "$as_me: failed program was:" >&5 |
|
|
5306 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5307 | |
|
|
5308 | # Broken: fails on valid input. |
|
|
5309 | continue |
|
|
5310 | fi |
|
|
5311 | |
|
|
5312 | rm -f conftest.err conftest.$ac_ext |
|
|
5313 | |
|
|
5314 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5315 | # can be detected and how. |
|
|
5316 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5317 | /* confdefs.h. */ |
|
|
5318 | _ACEOF |
|
|
5319 | cat confdefs.h >>conftest.$ac_ext |
|
|
5320 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5321 | /* end confdefs.h. */ |
|
|
5322 | #include <ac_nonexistent.h> |
|
|
5323 | _ACEOF |
|
|
5324 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5325 | case "(($ac_try" in |
|
|
5326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5327 | *) ac_try_echo=$ac_try;; |
|
|
5328 | esac |
|
|
5329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5330 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5331 | ac_status=$? |
|
|
5332 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5333 | rm -f conftest.er1 |
|
|
5334 | cat conftest.err >&5 |
|
|
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5336 | (exit $ac_status); } >/dev/null && { |
|
|
5337 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5338 | test ! -s conftest.err |
|
|
5339 | }; then |
|
|
5340 | # Broken: success on invalid input. |
|
|
5341 | continue |
|
|
5342 | else |
|
|
5343 | echo "$as_me: failed program was:" >&5 |
|
|
5344 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5345 | |
|
|
5346 | # Passes both tests. |
|
|
5347 | ac_preproc_ok=: |
|
|
5348 | break |
|
|
5349 | fi |
|
|
5350 | |
|
|
5351 | rm -f conftest.err conftest.$ac_ext |
|
|
5352 | |
|
|
5353 | done |
|
|
5354 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5355 | rm -f conftest.err conftest.$ac_ext |
|
|
5356 | if $ac_preproc_ok; then |
|
|
5357 | : |
|
|
5358 | else |
|
|
5359 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5360 | See \`config.log' for more details." >&5 |
|
|
5361 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5362 | See \`config.log' for more details." >&2;} |
|
|
5363 | { (exit 1); exit 1; }; } |
|
|
5364 | fi |
|
|
5365 | |
|
|
5366 | ac_ext=cpp |
|
|
5367 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5368 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5369 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5370 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5371 | |
6201 | |
5372 | |
6202 | |
5373 | { echo "$as_me:$LINENO: checking for X" >&5 |
6203 | { echo "$as_me:$LINENO: checking for X" >&5 |
5374 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6204 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5375 | |
6205 | |
… | |
… | |
6683 | LDFLAGS=$ac_save_LDFLAGS |
7513 | LDFLAGS=$ac_save_LDFLAGS |
6684 | |
7514 | |
6685 | fi |
7515 | fi |
6686 | |
7516 | |
6687 | |
7517 | |
|
|
7518 | AFTERIMAGE_CFLAGS= |
|
|
7519 | AFTERIMAGE_LIBS= |
|
|
7520 | AFTERIMAGE_VERSION= |
6688 | |
7521 | |
6689 | if test x$support_xpm = xyes; then |
7522 | if test x$support_afterimage = xyes; then |
|
|
7523 | support_afterimage=no |
6690 | |
7524 | |
6691 | |
7525 | if test "x$afterimage_config" = "x" ; then |
6692 | |
7526 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
6693 | # Initialize some more variables set by options. |
7527 | set dummy afterimage-config; ac_word=$2 |
6694 | # The variables have the same names as the options, with |
|
|
6695 | # dashes changed to underlines. |
|
|
6696 | |
|
|
6697 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6698 | # paths, otherwise set no_xpm=yes. |
|
|
6699 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6700 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
7528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6701 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
7529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6702 | |
|
|
6703 | |
|
|
6704 | # Check whether --with-xpm_includes was given. |
|
|
6705 | if test "${with_xpm_includes+set}" = set; then |
|
|
6706 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6707 | else |
|
|
6708 | xpm_includes=NO |
|
|
6709 | fi |
|
|
6710 | |
|
|
6711 | |
|
|
6712 | # Check whether --with-xpm_library was given. |
|
|
6713 | if test "${with_xpm_library+set}" = set; then |
|
|
6714 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6715 | else |
|
|
6716 | xpm_libraries=NO |
|
|
6717 | fi |
|
|
6718 | |
|
|
6719 | |
|
|
6720 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6721 | |
|
|
6722 | # Check whether --with-xpm was given. |
|
|
6723 | if test "${with_xpm+set}" = set; then |
|
|
6724 | withval=$with_xpm; |
|
|
6725 | fi |
|
|
6726 | |
|
|
6727 | if test "$with_xpm" = no; then |
|
|
6728 | have_xpm=disabled |
|
|
6729 | else |
|
|
6730 | if test "${ac_cv_have_xpm+set}" = set; then |
7530 | if test "${ac_cv_path_afterimage_config+set}" = set; then |
6731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6732 | else |
7532 | else |
6733 | |
7533 | case $afterimage_config in |
6734 | vt_xpm_include_X11=no |
7534 | [\\/]* | ?:[\\/]*) |
6735 | if test -n "$xpm_includes"; then |
7535 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
6736 | vt_xpm_includes=$xpm_includes |
7536 | ;; |
6737 | else |
7537 | *) |
6738 | vt_xpm_includes=NO |
7538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7539 | for as_dir in $PATH |
|
|
7540 | do |
|
|
7541 | IFS=$as_save_IFS |
|
|
7542 | test -z "$as_dir" && as_dir=. |
|
|
7543 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7544 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7545 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
7546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7547 | break 2 |
6739 | fi |
7548 | fi |
6740 | if test -n "$xpm_libraries"; then |
7549 | done |
6741 | vt_xpm_libraries=$xpm_libraries |
7550 | done |
|
|
7551 | IFS=$as_save_IFS |
|
|
7552 | |
|
|
7553 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
7554 | ;; |
|
|
7555 | esac |
|
|
7556 | fi |
|
|
7557 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
7558 | if test -n "$afterimage_config"; then |
|
|
7559 | { echo "$as_me:$LINENO: result: $afterimage_config" >&5 |
|
|
7560 | echo "${ECHO_T}$afterimage_config" >&6; } |
6742 | else |
7561 | else |
6743 | vt_xpm_libraries=NO |
7562 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
7563 | echo "${ECHO_T}no" >&6; } |
|
|
7564 | fi |
|
|
7565 | |
|
|
7566 | |
6744 | fi |
7567 | fi |
6745 | |
7568 | if test "x$afterimage_config" != "xno" ; then |
6746 | if test "$vt_xpm_includes" = NO; then |
7569 | { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
6747 | # Guess where to find xpm.h |
7570 | echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
6748 | |
7571 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
6749 | ac_save_CPPFLAGS="$CPPFLAGS" |
7572 | if test -n "$xAFTERIMAGE_VERSION" ; then |
6750 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
7573 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6751 | |
7574 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
6752 | # First, try using that file with no special directory specified. |
7575 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
6753 | cat >conftest.$ac_ext <<_ACEOF |
7576 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
6754 | /* confdefs.h. */ |
7577 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
6755 | _ACEOF |
7578 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
6756 | cat confdefs.h >>conftest.$ac_ext |
7579 | support_afterimage=yes |
6757 | cat >>conftest.$ac_ext <<_ACEOF |
7580 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
6758 | /* end confdefs.h. */ |
7581 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
6759 | #include <X11/xpm.h> |
7582 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
6760 | _ACEOF |
|
|
6761 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6762 | case "(($ac_try" in |
|
|
6763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6764 | *) ac_try_echo=$ac_try;; |
|
|
6765 | esac |
|
|
6766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6767 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6768 | ac_status=$? |
|
|
6769 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6770 | rm -f conftest.er1 |
|
|
6771 | cat conftest.err >&5 |
|
|
6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6773 | (exit $ac_status); } >/dev/null && { |
|
|
6774 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6775 | test ! -s conftest.err |
|
|
6776 | }; then |
|
|
6777 | # We can compile using X headers with no special include directory. |
|
|
6778 | vt_xpm_includes= |
|
|
6779 | vt_xpm_include_X11=yes |
|
|
6780 | else |
|
|
6781 | echo "$as_me: failed program was:" >&5 |
|
|
6782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6783 | |
|
|
6784 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6785 | # Look for the header file in a standard set of common directories. |
|
|
6786 | for ac_dir in \ |
|
|
6787 | /usr/X11/include \ |
|
|
6788 | /usr/X11R6/include \ |
|
|
6789 | /usr/X11R5/include \ |
|
|
6790 | /usr/X11R4/include \ |
|
|
6791 | \ |
|
|
6792 | /usr/include/X11 \ |
|
|
6793 | /usr/include/X11R6 \ |
|
|
6794 | /usr/include/X11R5 \ |
|
|
6795 | /usr/include/X11R4 \ |
|
|
6796 | \ |
|
|
6797 | /usr/local/X11/include \ |
|
|
6798 | /usr/local/X11R6/include \ |
|
|
6799 | /usr/local/X11R5/include \ |
|
|
6800 | /usr/local/X11R4/include \ |
|
|
6801 | \ |
|
|
6802 | /usr/local/include/X11 \ |
|
|
6803 | /usr/local/include/X11R6 \ |
|
|
6804 | /usr/local/include/X11R5 \ |
|
|
6805 | /usr/local/include/X11R4 \ |
|
|
6806 | \ |
|
|
6807 | /usr/X386/include \ |
|
|
6808 | /usr/x386/include \ |
|
|
6809 | /usr/XFree86/include/X11 \ |
|
|
6810 | \ |
|
|
6811 | /usr/include \ |
|
|
6812 | /usr/local/include \ |
|
|
6813 | /usr/unsupported/include \ |
|
|
6814 | /usr/athena/include \ |
|
|
6815 | /usr/local/x11r5/include \ |
|
|
6816 | /usr/lpp/Xamples/include \ |
|
|
6817 | \ |
|
|
6818 | /usr/openwin/include \ |
|
|
6819 | /usr/openwin/share/include \ |
|
|
6820 | ; \ |
|
|
6821 | do |
|
|
6822 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6823 | vt_xpm_includes="$ac_dir" |
|
|
6824 | vt_xpm_include_X11=yes |
|
|
6825 | break |
|
|
6826 | else |
|
|
6827 | if test -r "$ac_dir/xpm.h"; then |
|
|
6828 | vt_xpm_includes=$ac_dir |
|
|
6829 | break |
|
|
6830 | fi |
|
|
6831 | fi |
|
|
6832 | done |
|
|
6833 | fi |
|
|
6834 | |
|
|
6835 | rm -f conftest.err conftest.$ac_ext |
|
|
6836 | fi |
|
|
6837 | |
|
|
6838 | if test "$vt_xpm_libraries" = NO; then |
|
|
6839 | # Check for the libraries. |
|
|
6840 | |
|
|
6841 | # See if we find them without any special options. |
|
|
6842 | # Don't add to $LIBS permanently. |
|
|
6843 | ac_save_LIBS="$LIBS" |
|
|
6844 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6845 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6846 | /* confdefs.h. */ |
|
|
6847 | _ACEOF |
|
|
6848 | cat confdefs.h >>conftest.$ac_ext |
|
|
6849 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6850 | /* end confdefs.h. */ |
|
|
6851 | |
|
|
6852 | int |
|
|
6853 | main () |
|
|
6854 | { |
|
|
6855 | XpmReadFileToPixmap() |
|
|
6856 | ; |
|
|
6857 | return 0; |
|
|
6858 | } |
|
|
6859 | _ACEOF |
|
|
6860 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6861 | if { (ac_try="$ac_link" |
|
|
6862 | case "(($ac_try" in |
|
|
6863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6864 | *) ac_try_echo=$ac_try;; |
|
|
6865 | esac |
|
|
6866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6867 | (eval "$ac_link") 2>conftest.er1 |
|
|
6868 | ac_status=$? |
|
|
6869 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6870 | rm -f conftest.er1 |
|
|
6871 | cat conftest.err >&5 |
|
|
6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6873 | (exit $ac_status); } && { |
|
|
6874 | test -z "$ac_cxx_werror_flag" || |
|
|
6875 | test ! -s conftest.err |
|
|
6876 | } && test -s conftest$ac_exeext && |
|
|
6877 | $as_test_x conftest$ac_exeext; then |
|
|
6878 | LIBS="$ac_save_LIBS" |
|
|
6879 | # We can link libXpm with no special library path. |
|
|
6880 | vt_xpm_libraries= |
|
|
6881 | else |
|
|
6882 | echo "$as_me: failed program was:" >&5 |
|
|
6883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6884 | |
|
|
6885 | LIBS="$ac_save_LIBS" |
|
|
6886 | # First see if replacing the include by lib works. |
|
|
6887 | for ac_dir in \ |
|
|
6888 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6889 | /usr/X11/lib \ |
|
|
6890 | /usr/X11R6/lib \ |
|
|
6891 | /usr/X11R5/lib \ |
|
|
6892 | /usr/X11R4/lib \ |
|
|
6893 | \ |
|
|
6894 | /usr/lib/X11 \ |
|
|
6895 | /usr/lib/X11R6 \ |
|
|
6896 | /usr/lib/X11R5 \ |
|
|
6897 | /usr/lib/X11R4 \ |
|
|
6898 | \ |
|
|
6899 | /usr/local/X11/lib \ |
|
|
6900 | /usr/local/X11R6/lib \ |
|
|
6901 | /usr/local/X11R5/lib \ |
|
|
6902 | /usr/local/X11R4/lib \ |
|
|
6903 | \ |
|
|
6904 | /usr/local/lib/X11 \ |
|
|
6905 | /usr/local/lib/X11R6 \ |
|
|
6906 | /usr/local/lib/X11R5 \ |
|
|
6907 | /usr/local/lib/X11R4 \ |
|
|
6908 | \ |
|
|
6909 | /usr/X386/lib \ |
|
|
6910 | /usr/x386/lib \ |
|
|
6911 | /usr/XFree86/lib/X11 \ |
|
|
6912 | \ |
|
|
6913 | /usr/lib \ |
|
|
6914 | /usr/local/lib \ |
|
|
6915 | /usr/unsupported/lib \ |
|
|
6916 | /usr/athena/lib \ |
|
|
6917 | /usr/local/x11r5/lib \ |
|
|
6918 | /usr/lpp/Xamples/lib \ |
|
|
6919 | \ |
|
|
6920 | /usr/openwin/lib \ |
|
|
6921 | /usr/openwin/share/lib \ |
|
|
6922 | ; \ |
|
|
6923 | do |
|
|
6924 | for ac_extension in a so sl; do |
|
|
6925 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
6926 | vt_xpm_libraries=$ac_dir |
|
|
6927 | break 2 |
|
|
6928 | fi |
|
|
6929 | done |
|
|
6930 | done |
|
|
6931 | fi |
|
|
6932 | |
|
|
6933 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
6934 | conftest$ac_exeext conftest.$ac_ext |
|
|
6935 | fi |
|
|
6936 | |
|
|
6937 | |
|
|
6938 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
6939 | ac_cv_have_xpm="have_xpm=no" |
|
|
6940 | else |
|
|
6941 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
6942 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
6943 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
6944 | fi |
|
|
6945 | fi |
|
|
6946 | eval "$ac_cv_have_xpm" |
|
|
6947 | fi |
|
|
6948 | |
|
|
6949 | if test "$have_xpm" != yes; then |
|
|
6950 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
6951 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
6952 | no_xpm=yes |
|
|
6953 | else |
|
|
6954 | if test "$xpm_includes" != NO; then |
|
|
6955 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
6956 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6957 | vt_xpm_include_X11=yes |
|
|
6958 | fi |
|
|
6959 | else |
|
|
6960 | vt_xpm_include_X11=no |
|
|
6961 | if test -z "$xpm_includes"; then |
|
|
6962 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6963 | /* confdefs.h. */ |
|
|
6964 | _ACEOF |
|
|
6965 | cat confdefs.h >>conftest.$ac_ext |
|
|
6966 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6967 | /* end confdefs.h. */ |
|
|
6968 | #include <X11/xpm.h> |
|
|
6969 | _ACEOF |
|
|
6970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6971 | case "(($ac_try" in |
|
|
6972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6973 | *) ac_try_echo=$ac_try;; |
|
|
6974 | esac |
|
|
6975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6976 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6977 | ac_status=$? |
|
|
6978 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6979 | rm -f conftest.er1 |
|
|
6980 | cat conftest.err >&5 |
|
|
6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6982 | (exit $ac_status); } >/dev/null && { |
|
|
6983 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6984 | test ! -s conftest.err |
|
|
6985 | }; then |
|
|
6986 | vt_xpm_include_X11=yes |
|
|
6987 | else |
|
|
6988 | echo "$as_me: failed program was:" >&5 |
|
|
6989 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6990 | |
|
|
6991 | |
|
|
6992 | fi |
|
|
6993 | |
|
|
6994 | rm -f conftest.err conftest.$ac_ext |
|
|
6995 | else |
|
|
6996 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
6997 | vt_xpm_include_X11=yes |
|
|
6998 | fi |
7583 | fi |
6999 | fi |
7584 | fi |
7000 | fi |
7585 | fi |
7001 | vt_xpm_includes=$xpm_includes |
7586 | if test "x$support_afterimage" = "xyes"; then |
|
|
7587 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
7588 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
7589 | else |
|
|
7590 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
7591 | echo "${ECHO_T}no" >&6; } |
|
|
7592 | fi |
7002 | fi |
7593 | fi |
7003 | if test "x$xpm_libraries" != xNO; then |
|
|
7004 | vt_xpm_libraries=$xpm_libraries |
|
|
7005 | fi |
|
|
7006 | # Update the cache value to reflect the command line values. |
|
|
7007 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
7008 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
7009 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
7010 | eval "$ac_cv_have_xpm" |
|
|
7011 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
7012 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
7013 | if test -n "$vt_xpm_includes"; then |
|
|
7014 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
7015 | fi |
|
|
7016 | if test -n "$vt_xpm_includes"; then |
|
|
7017 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
7018 | fi |
|
|
7019 | XPM_LIBS="-lXpm" |
|
|
7020 | if test -n "$vt_xpm_libraries"; then |
|
|
7021 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
7022 | fi |
|
|
7023 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
7024 | |
|
|
7025 | cat >>confdefs.h <<\_ACEOF |
|
|
7026 | #define XPM_INC_X11 1 |
|
|
7027 | _ACEOF |
|
|
7028 | |
|
|
7029 | fi |
|
|
7030 | fi |
7594 | fi |
7031 | |
|
|
7032 | |
|
|
7033 | |
|
|
7034 | |
|
|
7035 | |
|
|
7036 | if test x$no_xpm = xyes; then |
|
|
7037 | support_xpm=needsmanualspecification |
|
|
7038 | fi |
|
|
7039 | fi |
|
|
7040 | |
|
|
7041 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
7042 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
7043 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
7044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7045 | else |
|
|
7046 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7047 | /* confdefs.h. */ |
|
|
7048 | _ACEOF |
|
|
7049 | cat confdefs.h >>conftest.$ac_ext |
|
|
7050 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7051 | /* end confdefs.h. */ |
|
|
7052 | #include <sys/types.h> |
|
|
7053 | #include <sys/wait.h> |
|
|
7054 | #ifndef WEXITSTATUS |
|
|
7055 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
7056 | #endif |
|
|
7057 | #ifndef WIFEXITED |
|
|
7058 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
7059 | #endif |
|
|
7060 | |
|
|
7061 | int |
|
|
7062 | main () |
|
|
7063 | { |
|
|
7064 | int s; |
|
|
7065 | wait (&s); |
|
|
7066 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
7067 | ; |
|
|
7068 | return 0; |
|
|
7069 | } |
|
|
7070 | _ACEOF |
|
|
7071 | rm -f conftest.$ac_objext |
|
|
7072 | if { (ac_try="$ac_compile" |
|
|
7073 | case "(($ac_try" in |
|
|
7074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7075 | *) ac_try_echo=$ac_try;; |
|
|
7076 | esac |
|
|
7077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7078 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7079 | ac_status=$? |
|
|
7080 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7081 | rm -f conftest.er1 |
|
|
7082 | cat conftest.err >&5 |
|
|
7083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7084 | (exit $ac_status); } && { |
|
|
7085 | test -z "$ac_cxx_werror_flag" || |
|
|
7086 | test ! -s conftest.err |
|
|
7087 | } && test -s conftest.$ac_objext; then |
|
|
7088 | ac_cv_header_sys_wait_h=yes |
|
|
7089 | else |
|
|
7090 | echo "$as_me: failed program was:" >&5 |
|
|
7091 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7092 | |
|
|
7093 | ac_cv_header_sys_wait_h=no |
|
|
7094 | fi |
|
|
7095 | |
|
|
7096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7097 | fi |
|
|
7098 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7099 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
7100 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7101 | |
|
|
7102 | cat >>confdefs.h <<\_ACEOF |
|
|
7103 | #define HAVE_SYS_WAIT_H 1 |
|
|
7104 | _ACEOF |
|
|
7105 | |
|
|
7106 | fi |
|
|
7107 | |
|
|
7108 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
7109 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
7110 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
7111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7112 | else |
|
|
7113 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7114 | /* confdefs.h. */ |
|
|
7115 | _ACEOF |
|
|
7116 | cat confdefs.h >>conftest.$ac_ext |
|
|
7117 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7118 | /* end confdefs.h. */ |
|
|
7119 | #include <stdlib.h> |
|
|
7120 | #include <stdarg.h> |
|
|
7121 | #include <string.h> |
|
|
7122 | #include <float.h> |
|
|
7123 | |
|
|
7124 | int |
|
|
7125 | main () |
|
|
7126 | { |
|
|
7127 | |
|
|
7128 | ; |
|
|
7129 | return 0; |
|
|
7130 | } |
|
|
7131 | _ACEOF |
|
|
7132 | rm -f conftest.$ac_objext |
|
|
7133 | if { (ac_try="$ac_compile" |
|
|
7134 | case "(($ac_try" in |
|
|
7135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7136 | *) ac_try_echo=$ac_try;; |
|
|
7137 | esac |
|
|
7138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7139 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7140 | ac_status=$? |
|
|
7141 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7142 | rm -f conftest.er1 |
|
|
7143 | cat conftest.err >&5 |
|
|
7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7145 | (exit $ac_status); } && { |
|
|
7146 | test -z "$ac_cxx_werror_flag" || |
|
|
7147 | test ! -s conftest.err |
|
|
7148 | } && test -s conftest.$ac_objext; then |
|
|
7149 | ac_cv_header_stdc=yes |
|
|
7150 | else |
|
|
7151 | echo "$as_me: failed program was:" >&5 |
|
|
7152 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7153 | |
|
|
7154 | ac_cv_header_stdc=no |
|
|
7155 | fi |
|
|
7156 | |
|
|
7157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7158 | |
|
|
7159 | if test $ac_cv_header_stdc = yes; then |
|
|
7160 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7161 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7162 | /* confdefs.h. */ |
|
|
7163 | _ACEOF |
|
|
7164 | cat confdefs.h >>conftest.$ac_ext |
|
|
7165 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7166 | /* end confdefs.h. */ |
|
|
7167 | #include <string.h> |
|
|
7168 | |
|
|
7169 | _ACEOF |
|
|
7170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7171 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7172 | : |
|
|
7173 | else |
|
|
7174 | ac_cv_header_stdc=no |
|
|
7175 | fi |
|
|
7176 | rm -f conftest* |
|
|
7177 | |
|
|
7178 | fi |
|
|
7179 | |
|
|
7180 | if test $ac_cv_header_stdc = yes; then |
|
|
7181 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7182 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7183 | /* confdefs.h. */ |
|
|
7184 | _ACEOF |
|
|
7185 | cat confdefs.h >>conftest.$ac_ext |
|
|
7186 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7187 | /* end confdefs.h. */ |
|
|
7188 | #include <stdlib.h> |
|
|
7189 | |
|
|
7190 | _ACEOF |
|
|
7191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7192 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7193 | : |
|
|
7194 | else |
|
|
7195 | ac_cv_header_stdc=no |
|
|
7196 | fi |
|
|
7197 | rm -f conftest* |
|
|
7198 | |
|
|
7199 | fi |
|
|
7200 | |
|
|
7201 | if test $ac_cv_header_stdc = yes; then |
|
|
7202 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7203 | if test "$cross_compiling" = yes; then |
|
|
7204 | : |
|
|
7205 | else |
|
|
7206 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7207 | /* confdefs.h. */ |
|
|
7208 | _ACEOF |
|
|
7209 | cat confdefs.h >>conftest.$ac_ext |
|
|
7210 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7211 | /* end confdefs.h. */ |
|
|
7212 | #include <ctype.h> |
|
|
7213 | #include <stdlib.h> |
|
|
7214 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7215 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7216 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7217 | #else |
|
|
7218 | # define ISLOWER(c) \ |
|
|
7219 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7220 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7221 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7222 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7223 | #endif |
|
|
7224 | |
|
|
7225 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7226 | int |
|
|
7227 | main () |
|
|
7228 | { |
|
|
7229 | int i; |
|
|
7230 | for (i = 0; i < 256; i++) |
|
|
7231 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7232 | || toupper (i) != TOUPPER (i)) |
|
|
7233 | return 2; |
|
|
7234 | return 0; |
|
|
7235 | } |
|
|
7236 | _ACEOF |
|
|
7237 | rm -f conftest$ac_exeext |
|
|
7238 | if { (ac_try="$ac_link" |
|
|
7239 | case "(($ac_try" in |
|
|
7240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7241 | *) ac_try_echo=$ac_try;; |
|
|
7242 | esac |
|
|
7243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7244 | (eval "$ac_link") 2>&5 |
|
|
7245 | ac_status=$? |
|
|
7246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7248 | { (case "(($ac_try" in |
|
|
7249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7250 | *) ac_try_echo=$ac_try;; |
|
|
7251 | esac |
|
|
7252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7253 | (eval "$ac_try") 2>&5 |
|
|
7254 | ac_status=$? |
|
|
7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7256 | (exit $ac_status); }; }; then |
|
|
7257 | : |
|
|
7258 | else |
|
|
7259 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7260 | echo "$as_me: failed program was:" >&5 |
|
|
7261 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7262 | |
|
|
7263 | ( exit $ac_status ) |
|
|
7264 | ac_cv_header_stdc=no |
|
|
7265 | fi |
|
|
7266 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7267 | fi |
|
|
7268 | |
|
|
7269 | |
|
|
7270 | fi |
|
|
7271 | fi |
|
|
7272 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7273 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7274 | if test $ac_cv_header_stdc = yes; then |
|
|
7275 | |
|
|
7276 | cat >>confdefs.h <<\_ACEOF |
|
|
7277 | #define STDC_HEADERS 1 |
|
|
7278 | _ACEOF |
|
|
7279 | |
|
|
7280 | fi |
|
|
7281 | |
|
|
7282 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7283 | |
|
|
7284 | |
|
|
7285 | |
|
|
7286 | |
|
|
7287 | |
|
|
7288 | |
|
|
7289 | |
|
|
7290 | |
|
|
7291 | |
|
|
7292 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7293 | inttypes.h stdint.h unistd.h |
|
|
7294 | do |
|
|
7295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7296 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7298 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7300 | else |
|
|
7301 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7302 | /* confdefs.h. */ |
|
|
7303 | _ACEOF |
|
|
7304 | cat confdefs.h >>conftest.$ac_ext |
|
|
7305 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7306 | /* end confdefs.h. */ |
|
|
7307 | $ac_includes_default |
|
|
7308 | |
|
|
7309 | #include <$ac_header> |
|
|
7310 | _ACEOF |
|
|
7311 | rm -f conftest.$ac_objext |
|
|
7312 | if { (ac_try="$ac_compile" |
|
|
7313 | case "(($ac_try" in |
|
|
7314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7315 | *) ac_try_echo=$ac_try;; |
|
|
7316 | esac |
|
|
7317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7318 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7319 | ac_status=$? |
|
|
7320 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7321 | rm -f conftest.er1 |
|
|
7322 | cat conftest.err >&5 |
|
|
7323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7324 | (exit $ac_status); } && { |
|
|
7325 | test -z "$ac_cxx_werror_flag" || |
|
|
7326 | test ! -s conftest.err |
|
|
7327 | } && test -s conftest.$ac_objext; then |
|
|
7328 | eval "$as_ac_Header=yes" |
|
|
7329 | else |
|
|
7330 | echo "$as_me: failed program was:" >&5 |
|
|
7331 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7332 | |
|
|
7333 | eval "$as_ac_Header=no" |
|
|
7334 | fi |
|
|
7335 | |
|
|
7336 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7337 | fi |
|
|
7338 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7339 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7340 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7342 | cat >>confdefs.h <<_ACEOF |
|
|
7343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7344 | _ACEOF |
|
|
7345 | |
|
|
7346 | fi |
|
|
7347 | |
|
|
7348 | done |
|
|
7349 | |
|
|
7350 | |
|
|
7351 | |
|
|
7352 | |
|
|
7353 | |
|
|
7354 | |
|
|
7355 | |
|
|
7356 | |
|
|
7357 | |
|
|
7358 | |
|
|
7359 | |
|
|
7360 | |
7595 | |
7361 | |
7596 | |
7362 | |
7597 | |
7363 | |
7598 | |
7364 | |
7599 | |
7365 | |
7600 | |
7366 | |
7601 | |
7367 | |
7602 | |
7368 | for ac_header in \ |
7603 | for ac_header in \ |
7369 | assert.h \ |
|
|
7370 | fcntl.h \ |
|
|
7371 | stdarg.h \ |
|
|
7372 | stdlib.h \ |
|
|
7373 | string.h \ |
|
|
7374 | termios.h \ |
|
|
7375 | unistd.h \ |
|
|
7376 | sys/byteorder.h \ |
7604 | sys/byteorder.h \ |
7377 | sys/ioctl.h \ |
7605 | sys/ioctl.h \ |
7378 | sys/select.h \ |
|
|
7379 | sys/sockio.h \ |
7606 | sys/sockio.h \ |
7380 | sys/strredir.h \ |
7607 | sys/strredir.h \ |
7381 | sys/time.h \ |
|
|
7382 | stdint.h \ |
7608 | stdint.h \ |
7383 | wchar.h \ |
7609 | wchar.h \ |
7384 | cwchar \ |
7610 | cwchar \ |
7385 | clocale \ |
|
|
7386 | |
7611 | |
7387 | do |
7612 | do |
7388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7613 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7389 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7614 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7390 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7615 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7521 | fi |
7746 | fi |
7522 | |
7747 | |
7523 | done |
7748 | done |
7524 | |
7749 | |
7525 | |
7750 | |
7526 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7527 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7528 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7530 | else |
|
|
7531 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7532 | /* confdefs.h. */ |
|
|
7533 | _ACEOF |
|
|
7534 | cat confdefs.h >>conftest.$ac_ext |
|
|
7535 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7536 | /* end confdefs.h. */ |
|
|
7537 | #include <sys/types.h> |
|
|
7538 | #include <sys/time.h> |
|
|
7539 | #include <time.h> |
|
|
7540 | |
|
|
7541 | int |
|
|
7542 | main () |
|
|
7543 | { |
|
|
7544 | if ((struct tm *) 0) |
|
|
7545 | return 0; |
|
|
7546 | ; |
|
|
7547 | return 0; |
|
|
7548 | } |
|
|
7549 | _ACEOF |
|
|
7550 | rm -f conftest.$ac_objext |
|
|
7551 | if { (ac_try="$ac_compile" |
|
|
7552 | case "(($ac_try" in |
|
|
7553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7554 | *) ac_try_echo=$ac_try;; |
|
|
7555 | esac |
|
|
7556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7557 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7558 | ac_status=$? |
|
|
7559 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7560 | rm -f conftest.er1 |
|
|
7561 | cat conftest.err >&5 |
|
|
7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7563 | (exit $ac_status); } && { |
|
|
7564 | test -z "$ac_cxx_werror_flag" || |
|
|
7565 | test ! -s conftest.err |
|
|
7566 | } && test -s conftest.$ac_objext; then |
|
|
7567 | ac_cv_header_time=yes |
|
|
7568 | else |
|
|
7569 | echo "$as_me: failed program was:" >&5 |
|
|
7570 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7571 | |
|
|
7572 | ac_cv_header_time=no |
|
|
7573 | fi |
|
|
7574 | |
|
|
7575 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7576 | fi |
|
|
7577 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7578 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7579 | if test $ac_cv_header_time = yes; then |
|
|
7580 | |
|
|
7581 | cat >>confdefs.h <<\_ACEOF |
|
|
7582 | #define TIME_WITH_SYS_TIME 1 |
|
|
7583 | _ACEOF |
|
|
7584 | |
|
|
7585 | fi |
|
|
7586 | |
|
|
7587 | |
|
|
7588 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7589 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7590 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7592 | else |
|
|
7593 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7594 | /* confdefs.h. */ |
|
|
7595 | _ACEOF |
|
|
7596 | cat confdefs.h >>conftest.$ac_ext |
|
|
7597 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7598 | /* end confdefs.h. */ |
|
|
7599 | #include <stdio.h> |
|
|
7600 | #include <sys/ioctl.h> |
|
|
7601 | #ifdef HAVE_TERMIOS_H |
|
|
7602 | #include <termios.h> |
|
|
7603 | #endif |
|
|
7604 | int |
|
|
7605 | main () |
|
|
7606 | { |
|
|
7607 | int a = ECHO; |
|
|
7608 | ; |
|
|
7609 | return 0; |
|
|
7610 | } |
|
|
7611 | _ACEOF |
|
|
7612 | rm -f conftest.$ac_objext |
|
|
7613 | if { (ac_try="$ac_compile" |
|
|
7614 | case "(($ac_try" in |
|
|
7615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7616 | *) ac_try_echo=$ac_try;; |
|
|
7617 | esac |
|
|
7618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7619 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7620 | ac_status=$? |
|
|
7621 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7622 | rm -f conftest.er1 |
|
|
7623 | cat conftest.err >&5 |
|
|
7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7625 | (exit $ac_status); } && { |
|
|
7626 | test -z "$ac_cxx_werror_flag" || |
|
|
7627 | test ! -s conftest.err |
|
|
7628 | } && test -s conftest.$ac_objext; then |
|
|
7629 | rxvt_cv_header_sysioctl=yes |
|
|
7630 | else |
|
|
7631 | echo "$as_me: failed program was:" >&5 |
|
|
7632 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7633 | |
|
|
7634 | rxvt_cv_header_sysioctl=no |
|
|
7635 | fi |
|
|
7636 | |
|
|
7637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7638 | fi |
|
|
7639 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7640 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7641 | |
|
|
7642 | if test -n "$GCC"; then |
|
|
7643 | LDARG="-Wl," |
|
|
7644 | else |
|
|
7645 | LDARG="" |
|
|
7646 | fi |
|
|
7647 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g' |
|
|
7648 | |
|
|
7649 | ac_save_CFLAGS=$CFLAGS |
|
|
7650 | ac_save_LIBS=$LIBS |
|
|
7651 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
7652 | LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7653 | { echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5 |
|
|
7654 | echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; } |
|
|
7655 | if test "${rxvt_cv_rpath+set}" = set; then |
|
|
7656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7657 | else |
|
|
7658 | if test "$cross_compiling" = yes; then |
|
|
7659 | { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5 |
|
|
7660 | echo "$as_me: WARNING: You may need to check the LIBS line" >&2;} |
|
|
7661 | else |
|
|
7662 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7663 | /* confdefs.h. */ |
|
|
7664 | _ACEOF |
|
|
7665 | cat confdefs.h >>conftest.$ac_ext |
|
|
7666 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7667 | /* end confdefs.h. */ |
|
|
7668 | #include <X11/Xlib.h> |
|
|
7669 | #include <stdlib.h> |
|
|
7670 | main() |
|
|
7671 | { |
|
|
7672 | exit(0); |
|
|
7673 | (void) XOpenDisplay("foobar"); |
|
|
7674 | } |
|
|
7675 | _ACEOF |
|
|
7676 | rm -f conftest$ac_exeext |
|
|
7677 | if { (ac_try="$ac_link" |
|
|
7678 | case "(($ac_try" in |
|
|
7679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7680 | *) ac_try_echo=$ac_try;; |
|
|
7681 | esac |
|
|
7682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7683 | (eval "$ac_link") 2>&5 |
|
|
7684 | ac_status=$? |
|
|
7685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7687 | { (case "(($ac_try" in |
|
|
7688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7689 | *) ac_try_echo=$ac_try;; |
|
|
7690 | esac |
|
|
7691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7692 | (eval "$ac_try") 2>&5 |
|
|
7693 | ac_status=$? |
|
|
7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7695 | (exit $ac_status); }; }; then |
|
|
7696 | rxvt_cv_rpath=yes |
|
|
7697 | else |
|
|
7698 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7699 | echo "$as_me: failed program was:" >&5 |
|
|
7700 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7701 | |
|
|
7702 | ( exit $ac_status ) |
|
|
7703 | rxvt_cv_rpath=no |
|
|
7704 | fi |
|
|
7705 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7706 | fi |
|
|
7707 | |
|
|
7708 | |
|
|
7709 | fi |
|
|
7710 | { echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5 |
|
|
7711 | echo "${ECHO_T}$rxvt_cv_rpath" >&6; } |
|
|
7712 | if test x$rxvt_cv_rpath != xyes; then |
|
|
7713 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' |
|
|
7714 | LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7715 | { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5 |
|
|
7716 | echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; } |
|
|
7717 | if test "${rxvt_cv_R+set}" = set; then |
|
|
7718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7719 | else |
|
|
7720 | if test "$cross_compiling" = yes; then |
|
|
7721 | rxvt_cv_R=no |
|
|
7722 | else |
|
|
7723 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7724 | /* confdefs.h. */ |
|
|
7725 | _ACEOF |
|
|
7726 | cat confdefs.h >>conftest.$ac_ext |
|
|
7727 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7728 | /* end confdefs.h. */ |
|
|
7729 | #include <X11/Xlib.h> |
|
|
7730 | #include <stdlib.h> |
|
|
7731 | main() |
|
|
7732 | { |
|
|
7733 | exit(0); |
|
|
7734 | (void) XOpenDisplay("foobar"); |
|
|
7735 | } |
|
|
7736 | _ACEOF |
|
|
7737 | rm -f conftest$ac_exeext |
|
|
7738 | if { (ac_try="$ac_link" |
|
|
7739 | case "(($ac_try" in |
|
|
7740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7741 | *) ac_try_echo=$ac_try;; |
|
|
7742 | esac |
|
|
7743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7744 | (eval "$ac_link") 2>&5 |
|
|
7745 | ac_status=$? |
|
|
7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7747 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7748 | { (case "(($ac_try" in |
|
|
7749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7750 | *) ac_try_echo=$ac_try;; |
|
|
7751 | esac |
|
|
7752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7753 | (eval "$ac_try") 2>&5 |
|
|
7754 | ac_status=$? |
|
|
7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7756 | (exit $ac_status); }; }; then |
|
|
7757 | rxvt_cv_R=yes |
|
|
7758 | else |
|
|
7759 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7760 | echo "$as_me: failed program was:" >&5 |
|
|
7761 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7762 | |
|
|
7763 | ( exit $ac_status ) |
|
|
7764 | rxvt_cv_R=no |
|
|
7765 | fi |
|
|
7766 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7767 | fi |
|
|
7768 | |
|
|
7769 | |
|
|
7770 | fi |
|
|
7771 | { echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5 |
|
|
7772 | echo "${ECHO_T}$rxvt_cv_R" >&6; } |
|
|
7773 | if test x$rxvt_cv_R != xyes; then |
|
|
7774 | LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
7775 | fi |
|
|
7776 | fi |
|
|
7777 | |
|
|
7778 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7751 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7779 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7752 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7780 | if test "${rxvt_cv_xpointer+set}" = set; then |
7753 | if test "${rxvt_cv_xpointer+set}" = set; then |
7781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7782 | else |
7755 | else |
… | |
… | |
7829 | cat >>confdefs.h <<\_ACEOF |
7802 | cat >>confdefs.h <<\_ACEOF |
7830 | #define HAVE_XPOINTER 1 |
7803 | #define HAVE_XPOINTER 1 |
7831 | _ACEOF |
7804 | _ACEOF |
7832 | |
7805 | |
7833 | fi |
7806 | fi |
7834 | LIBS=$ac_save_LIBS |
|
|
7835 | CFLAGS=$ac_save_CFLAGS |
|
|
7836 | |
7807 | |
7837 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7808 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7838 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7809 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7839 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7810 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
7895 | cat >>confdefs.h <<\_ACEOF |
7866 | cat >>confdefs.h <<\_ACEOF |
7896 | #define XLIB_ILLEGAL_ACCESS 1 |
7867 | #define XLIB_ILLEGAL_ACCESS 1 |
7897 | _ACEOF |
7868 | _ACEOF |
7898 | |
7869 | |
7899 | fi |
7870 | fi |
7900 | |
|
|
7901 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
7902 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
7903 | if test "${ac_cv_c_const+set}" = set; then |
|
|
7904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7905 | else |
|
|
7906 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7907 | /* confdefs.h. */ |
|
|
7908 | _ACEOF |
|
|
7909 | cat confdefs.h >>conftest.$ac_ext |
|
|
7910 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7911 | /* end confdefs.h. */ |
|
|
7912 | |
|
|
7913 | int |
|
|
7914 | main () |
|
|
7915 | { |
|
|
7916 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
7917 | #ifndef __cplusplus |
|
|
7918 | /* Ultrix mips cc rejects this. */ |
|
|
7919 | typedef int charset[2]; |
|
|
7920 | const charset cs; |
|
|
7921 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
7922 | char const *const *pcpcc; |
|
|
7923 | char **ppc; |
|
|
7924 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
7925 | struct point {int x, y;}; |
|
|
7926 | static struct point const zero = {0,0}; |
|
|
7927 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
7928 | It does not let you subtract one const X* pointer from another in |
|
|
7929 | an arm of an if-expression whose if-part is not a constant |
|
|
7930 | expression */ |
|
|
7931 | const char *g = "string"; |
|
|
7932 | pcpcc = &g + (g ? g-g : 0); |
|
|
7933 | /* HPUX 7.0 cc rejects these. */ |
|
|
7934 | ++pcpcc; |
|
|
7935 | ppc = (char**) pcpcc; |
|
|
7936 | pcpcc = (char const *const *) ppc; |
|
|
7937 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
7938 | char *t; |
|
|
7939 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
7940 | |
|
|
7941 | *t++ = 0; |
|
|
7942 | if (s) return 0; |
|
|
7943 | } |
|
|
7944 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
7945 | int x[] = {25, 17}; |
|
|
7946 | const int *foo = &x[0]; |
|
|
7947 | ++foo; |
|
|
7948 | } |
|
|
7949 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
7950 | typedef const int *iptr; |
|
|
7951 | iptr p = 0; |
|
|
7952 | ++p; |
|
|
7953 | } |
|
|
7954 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
7955 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
7956 | struct s { int j; const int *ap[3]; }; |
|
|
7957 | struct s *b; b->j = 5; |
|
|
7958 | } |
|
|
7959 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
7960 | const int foo = 10; |
|
|
7961 | if (!foo) return 0; |
|
|
7962 | } |
|
|
7963 | return !cs[0] && !zero.x; |
|
|
7964 | #endif |
|
|
7965 | |
|
|
7966 | ; |
|
|
7967 | return 0; |
|
|
7968 | } |
|
|
7969 | _ACEOF |
|
|
7970 | rm -f conftest.$ac_objext |
|
|
7971 | if { (ac_try="$ac_compile" |
|
|
7972 | case "(($ac_try" in |
|
|
7973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7974 | *) ac_try_echo=$ac_try;; |
|
|
7975 | esac |
|
|
7976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7977 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7978 | ac_status=$? |
|
|
7979 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7980 | rm -f conftest.er1 |
|
|
7981 | cat conftest.err >&5 |
|
|
7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7983 | (exit $ac_status); } && { |
|
|
7984 | test -z "$ac_cxx_werror_flag" || |
|
|
7985 | test ! -s conftest.err |
|
|
7986 | } && test -s conftest.$ac_objext; then |
|
|
7987 | ac_cv_c_const=yes |
|
|
7988 | else |
|
|
7989 | echo "$as_me: failed program was:" >&5 |
|
|
7990 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7991 | |
|
|
7992 | ac_cv_c_const=no |
|
|
7993 | fi |
|
|
7994 | |
|
|
7995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7996 | fi |
|
|
7997 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
7998 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
7999 | if test $ac_cv_c_const = no; then |
|
|
8000 | |
|
|
8001 | cat >>confdefs.h <<\_ACEOF |
|
|
8002 | #define const |
|
|
8003 | _ACEOF |
|
|
8004 | |
|
|
8005 | fi |
|
|
8006 | |
|
|
8007 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
8008 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
8009 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
8010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8011 | else |
|
|
8012 | ac_cv_c_inline=no |
|
|
8013 | for ac_kw in inline __inline__ __inline; do |
|
|
8014 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8015 | /* confdefs.h. */ |
|
|
8016 | _ACEOF |
|
|
8017 | cat confdefs.h >>conftest.$ac_ext |
|
|
8018 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8019 | /* end confdefs.h. */ |
|
|
8020 | #ifndef __cplusplus |
|
|
8021 | typedef int foo_t; |
|
|
8022 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
8023 | $ac_kw foo_t foo () {return 0; } |
|
|
8024 | #endif |
|
|
8025 | |
|
|
8026 | _ACEOF |
|
|
8027 | rm -f conftest.$ac_objext |
|
|
8028 | if { (ac_try="$ac_compile" |
|
|
8029 | case "(($ac_try" in |
|
|
8030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8031 | *) ac_try_echo=$ac_try;; |
|
|
8032 | esac |
|
|
8033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8034 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8035 | ac_status=$? |
|
|
8036 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8037 | rm -f conftest.er1 |
|
|
8038 | cat conftest.err >&5 |
|
|
8039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8040 | (exit $ac_status); } && { |
|
|
8041 | test -z "$ac_cxx_werror_flag" || |
|
|
8042 | test ! -s conftest.err |
|
|
8043 | } && test -s conftest.$ac_objext; then |
|
|
8044 | ac_cv_c_inline=$ac_kw |
|
|
8045 | else |
|
|
8046 | echo "$as_me: failed program was:" >&5 |
|
|
8047 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8048 | |
|
|
8049 | |
|
|
8050 | fi |
|
|
8051 | |
|
|
8052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8053 | test "$ac_cv_c_inline" != no && break |
|
|
8054 | done |
|
|
8055 | |
|
|
8056 | fi |
|
|
8057 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
8058 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
8059 | |
|
|
8060 | |
|
|
8061 | case $ac_cv_c_inline in |
|
|
8062 | inline | yes) ;; |
|
|
8063 | *) |
|
|
8064 | case $ac_cv_c_inline in |
|
|
8065 | no) ac_val=;; |
|
|
8066 | *) ac_val=$ac_cv_c_inline;; |
|
|
8067 | esac |
|
|
8068 | cat >>confdefs.h <<_ACEOF |
|
|
8069 | #ifndef __cplusplus |
|
|
8070 | #define inline $ac_val |
|
|
8071 | #endif |
|
|
8072 | _ACEOF |
|
|
8073 | ;; |
|
|
8074 | esac |
|
|
8075 | |
|
|
8076 | |
|
|
8077 | |
7871 | |
8078 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7872 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
8079 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7873 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
8080 | if test "${ac_cv_type_mode_t+set}" = set; then |
7874 | if test "${ac_cv_type_mode_t+set}" = set; then |
8081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8238 | _ACEOF |
8032 | _ACEOF |
8239 | |
8033 | |
8240 | fi |
8034 | fi |
8241 | |
8035 | |
8242 | |
8036 | |
8243 | { echo "$as_me:$LINENO: checking for short" >&5 |
8037 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
8244 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8038 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8245 | if test "${ac_cv_type_short+set}" = set; then |
8039 | if test "${ac_cv_c_int16_t+set}" = set; then |
8246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8247 | else |
8041 | else |
|
|
8042 | ac_cv_c_int16_t=no |
|
|
8043 | for ac_type in 'int16_t' 'int' 'long int' \ |
|
|
8044 | 'long long int' 'short int' 'signed char'; do |
8248 | cat >conftest.$ac_ext <<_ACEOF |
8045 | cat >conftest.$ac_ext <<_ACEOF |
8249 | /* confdefs.h. */ |
8046 | /* confdefs.h. */ |
8250 | _ACEOF |
8047 | _ACEOF |
8251 | cat confdefs.h >>conftest.$ac_ext |
8048 | cat confdefs.h >>conftest.$ac_ext |
8252 | cat >>conftest.$ac_ext <<_ACEOF |
8049 | cat >>conftest.$ac_ext <<_ACEOF |
8253 | /* end confdefs.h. */ |
8050 | /* end confdefs.h. */ |
8254 | $ac_includes_default |
8051 | $ac_includes_default |
8255 | typedef short ac__type_new_; |
|
|
8256 | int |
8052 | int |
8257 | main () |
8053 | main () |
8258 | { |
8054 | { |
8259 | if ((ac__type_new_ *) 0) |
8055 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8260 | return 0; |
8056 | test_array [0] = 0 |
8261 | if (sizeof (ac__type_new_)) |
8057 | |
8262 | return 0; |
|
|
8263 | ; |
8058 | ; |
8264 | return 0; |
8059 | return 0; |
8265 | } |
8060 | } |
8266 | _ACEOF |
8061 | _ACEOF |
8267 | rm -f conftest.$ac_objext |
8062 | rm -f conftest.$ac_objext |
… | |
… | |
8279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8280 | (exit $ac_status); } && { |
8075 | (exit $ac_status); } && { |
8281 | test -z "$ac_cxx_werror_flag" || |
8076 | test -z "$ac_cxx_werror_flag" || |
8282 | test ! -s conftest.err |
8077 | test ! -s conftest.err |
8283 | } && test -s conftest.$ac_objext; then |
8078 | } && test -s conftest.$ac_objext; then |
8284 | ac_cv_type_short=yes |
|
|
8285 | else |
|
|
8286 | echo "$as_me: failed program was:" >&5 |
|
|
8287 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8288 | |
|
|
8289 | ac_cv_type_short=no |
|
|
8290 | fi |
|
|
8291 | |
|
|
8292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8293 | fi |
|
|
8294 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8295 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8296 | |
|
|
8297 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8298 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8299 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8300 | # This bug is HP SR number 8606223364. |
|
|
8301 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8302 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8303 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8305 | else |
|
|
8306 | if test "$cross_compiling" = yes; then |
|
|
8307 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8308 | cat >conftest.$ac_ext <<_ACEOF |
8079 | cat >conftest.$ac_ext <<_ACEOF |
8309 | /* confdefs.h. */ |
8080 | /* confdefs.h. */ |
8310 | _ACEOF |
8081 | _ACEOF |
8311 | cat confdefs.h >>conftest.$ac_ext |
8082 | cat confdefs.h >>conftest.$ac_ext |
8312 | cat >>conftest.$ac_ext <<_ACEOF |
8083 | cat >>conftest.$ac_ext <<_ACEOF |
8313 | /* end confdefs.h. */ |
8084 | /* end confdefs.h. */ |
8314 | $ac_includes_default |
8085 | $ac_includes_default |
8315 | typedef short ac__type_sizeof_; |
|
|
8316 | int |
8086 | int |
8317 | main () |
8087 | main () |
8318 | { |
8088 | { |
8319 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
8089 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1) |
|
|
8090 | < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))]; |
8320 | test_array [0] = 0 |
8091 | test_array [0] = 0 |
8321 | |
8092 | |
8322 | ; |
8093 | ; |
8323 | return 0; |
8094 | return 0; |
8324 | } |
8095 | } |
… | |
… | |
8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8339 | (exit $ac_status); } && { |
8110 | (exit $ac_status); } && { |
8340 | test -z "$ac_cxx_werror_flag" || |
8111 | test -z "$ac_cxx_werror_flag" || |
8341 | test ! -s conftest.err |
8112 | test ! -s conftest.err |
8342 | } && test -s conftest.$ac_objext; then |
8113 | } && test -s conftest.$ac_objext; then |
8343 | ac_lo=0 ac_mid=0 |
8114 | : |
8344 | while :; do |
8115 | else |
|
|
8116 | echo "$as_me: failed program was:" >&5 |
|
|
8117 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8118 | |
|
|
8119 | case $ac_type in |
|
|
8120 | int16_t) ac_cv_c_int16_t=yes ;; |
|
|
8121 | *) ac_cv_c_int16_t=$ac_type ;; |
|
|
8122 | esac |
|
|
8123 | |
|
|
8124 | fi |
|
|
8125 | |
|
|
8126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8127 | else |
|
|
8128 | echo "$as_me: failed program was:" >&5 |
|
|
8129 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8130 | |
|
|
8131 | |
|
|
8132 | fi |
|
|
8133 | |
|
|
8134 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8135 | test "$ac_cv_c_int16_t" != no && break |
|
|
8136 | done |
|
|
8137 | fi |
|
|
8138 | { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5 |
|
|
8139 | echo "${ECHO_T}$ac_cv_c_int16_t" >&6; } |
|
|
8140 | case $ac_cv_c_int16_t in #( |
|
|
8141 | no|yes) ;; #( |
|
|
8142 | *) |
|
|
8143 | |
|
|
8144 | cat >>confdefs.h <<_ACEOF |
|
|
8145 | #define int16_t $ac_cv_c_int16_t |
|
|
8146 | _ACEOF |
|
|
8147 | ;; |
|
|
8148 | esac |
|
|
8149 | |
|
|
8150 | |
|
|
8151 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
8152 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
8153 | if test "${ac_cv_c_uint16_t+set}" = set; then |
|
|
8154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8155 | else |
|
|
8156 | ac_cv_c_uint16_t=no |
|
|
8157 | for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ |
|
|
8158 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8345 | cat >conftest.$ac_ext <<_ACEOF |
8159 | cat >conftest.$ac_ext <<_ACEOF |
8346 | /* confdefs.h. */ |
8160 | /* confdefs.h. */ |
8347 | _ACEOF |
8161 | _ACEOF |
8348 | cat confdefs.h >>conftest.$ac_ext |
8162 | cat confdefs.h >>conftest.$ac_ext |
8349 | cat >>conftest.$ac_ext <<_ACEOF |
8163 | cat >>conftest.$ac_ext <<_ACEOF |
8350 | /* end confdefs.h. */ |
8164 | /* end confdefs.h. */ |
8351 | $ac_includes_default |
8165 | $ac_includes_default |
8352 | typedef short ac__type_sizeof_; |
|
|
8353 | int |
8166 | int |
8354 | main () |
8167 | main () |
8355 | { |
8168 | { |
8356 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8169 | static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; |
8357 | test_array [0] = 0 |
8170 | test_array [0] = 0 |
8358 | |
8171 | |
8359 | ; |
8172 | ; |
8360 | return 0; |
8173 | return 0; |
8361 | } |
8174 | } |
… | |
… | |
8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8376 | (exit $ac_status); } && { |
8189 | (exit $ac_status); } && { |
8377 | test -z "$ac_cxx_werror_flag" || |
8190 | test -z "$ac_cxx_werror_flag" || |
8378 | test ! -s conftest.err |
8191 | test ! -s conftest.err |
8379 | } && test -s conftest.$ac_objext; then |
8192 | } && test -s conftest.$ac_objext; then |
8380 | ac_hi=$ac_mid; break |
8193 | case $ac_type in |
|
|
8194 | uint16_t) ac_cv_c_uint16_t=yes ;; |
|
|
8195 | *) ac_cv_c_uint16_t=$ac_type ;; |
|
|
8196 | esac |
|
|
8197 | |
8381 | else |
8198 | else |
8382 | echo "$as_me: failed program was:" >&5 |
8199 | echo "$as_me: failed program was:" >&5 |
8383 | sed 's/^/| /' conftest.$ac_ext >&5 |
8200 | sed 's/^/| /' conftest.$ac_ext >&5 |
8384 | |
8201 | |
8385 | ac_lo=`expr $ac_mid + 1` |
8202 | |
8386 | if test $ac_lo -le $ac_mid; then |
|
|
8387 | ac_lo= ac_hi= |
|
|
8388 | break |
|
|
8389 | fi |
|
|
8390 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8391 | fi |
8203 | fi |
8392 | |
8204 | |
8393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8206 | test "$ac_cv_c_uint16_t" != no && break |
8394 | done |
8207 | done |
8395 | else |
8208 | fi |
8396 | echo "$as_me: failed program was:" >&5 |
8209 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8397 | sed 's/^/| /' conftest.$ac_ext >&5 |
8210 | echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } |
|
|
8211 | case $ac_cv_c_uint16_t in #( |
|
|
8212 | no|yes) ;; #( |
|
|
8213 | *) |
8398 | |
8214 | |
|
|
8215 | |
|
|
8216 | cat >>confdefs.h <<_ACEOF |
|
|
8217 | #define uint16_t $ac_cv_c_uint16_t |
|
|
8218 | _ACEOF |
|
|
8219 | ;; |
|
|
8220 | esac |
|
|
8221 | |
|
|
8222 | |
|
|
8223 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
8224 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
8225 | if test "${ac_cv_c_int32_t+set}" = set; then |
|
|
8226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8227 | else |
|
|
8228 | ac_cv_c_int32_t=no |
|
|
8229 | for ac_type in 'int32_t' 'int' 'long int' \ |
|
|
8230 | 'long long int' 'short int' 'signed char'; do |
8399 | cat >conftest.$ac_ext <<_ACEOF |
8231 | cat >conftest.$ac_ext <<_ACEOF |
8400 | /* confdefs.h. */ |
8232 | /* confdefs.h. */ |
8401 | _ACEOF |
8233 | _ACEOF |
8402 | cat confdefs.h >>conftest.$ac_ext |
8234 | cat confdefs.h >>conftest.$ac_ext |
8403 | cat >>conftest.$ac_ext <<_ACEOF |
8235 | cat >>conftest.$ac_ext <<_ACEOF |
8404 | /* end confdefs.h. */ |
8236 | /* end confdefs.h. */ |
8405 | $ac_includes_default |
8237 | $ac_includes_default |
8406 | typedef short ac__type_sizeof_; |
|
|
8407 | int |
8238 | int |
8408 | main () |
8239 | main () |
8409 | { |
8240 | { |
8410 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
8241 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))]; |
8411 | test_array [0] = 0 |
8242 | test_array [0] = 0 |
8412 | |
8243 | |
8413 | ; |
8244 | ; |
8414 | return 0; |
8245 | return 0; |
8415 | } |
8246 | } |
… | |
… | |
8429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8430 | (exit $ac_status); } && { |
8261 | (exit $ac_status); } && { |
8431 | test -z "$ac_cxx_werror_flag" || |
8262 | test -z "$ac_cxx_werror_flag" || |
8432 | test ! -s conftest.err |
8263 | test ! -s conftest.err |
8433 | } && test -s conftest.$ac_objext; then |
8264 | } && test -s conftest.$ac_objext; then |
8434 | ac_hi=-1 ac_mid=-1 |
|
|
8435 | while :; do |
|
|
8436 | cat >conftest.$ac_ext <<_ACEOF |
8265 | cat >conftest.$ac_ext <<_ACEOF |
8437 | /* confdefs.h. */ |
8266 | /* confdefs.h. */ |
8438 | _ACEOF |
8267 | _ACEOF |
8439 | cat confdefs.h >>conftest.$ac_ext |
8268 | cat confdefs.h >>conftest.$ac_ext |
8440 | cat >>conftest.$ac_ext <<_ACEOF |
8269 | cat >>conftest.$ac_ext <<_ACEOF |
8441 | /* end confdefs.h. */ |
8270 | /* end confdefs.h. */ |
8442 | $ac_includes_default |
8271 | $ac_includes_default |
8443 | typedef short ac__type_sizeof_; |
|
|
8444 | int |
8272 | int |
8445 | main () |
8273 | main () |
8446 | { |
8274 | { |
8447 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
8275 | static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1) |
|
|
8276 | < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))]; |
8448 | test_array [0] = 0 |
8277 | test_array [0] = 0 |
8449 | |
8278 | |
8450 | ; |
8279 | ; |
8451 | return 0; |
8280 | return 0; |
8452 | } |
8281 | } |
… | |
… | |
8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8467 | (exit $ac_status); } && { |
8296 | (exit $ac_status); } && { |
8468 | test -z "$ac_cxx_werror_flag" || |
8297 | test -z "$ac_cxx_werror_flag" || |
8469 | test ! -s conftest.err |
8298 | test ! -s conftest.err |
8470 | } && test -s conftest.$ac_objext; then |
8299 | } && test -s conftest.$ac_objext; then |
8471 | ac_lo=$ac_mid; break |
8300 | : |
8472 | else |
8301 | else |
8473 | echo "$as_me: failed program was:" >&5 |
8302 | echo "$as_me: failed program was:" >&5 |
8474 | sed 's/^/| /' conftest.$ac_ext >&5 |
8303 | sed 's/^/| /' conftest.$ac_ext >&5 |
8475 | |
8304 | |
8476 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8305 | case $ac_type in |
8477 | if test $ac_mid -le $ac_hi; then |
8306 | int32_t) ac_cv_c_int32_t=yes ;; |
8478 | ac_lo= ac_hi= |
8307 | *) ac_cv_c_int32_t=$ac_type ;; |
8479 | break |
8308 | esac |
8480 | fi |
8309 | |
8481 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8482 | fi |
8310 | fi |
8483 | |
8311 | |
8484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8485 | done |
|
|
8486 | else |
8313 | else |
8487 | echo "$as_me: failed program was:" >&5 |
8314 | echo "$as_me: failed program was:" >&5 |
8488 | sed 's/^/| /' conftest.$ac_ext >&5 |
8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
8489 | |
8316 | |
8490 | ac_lo= ac_hi= |
8317 | |
8491 | fi |
8318 | fi |
8492 | |
8319 | |
8493 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8321 | test "$ac_cv_c_int32_t" != no && break |
|
|
8322 | done |
8494 | fi |
8323 | fi |
|
|
8324 | { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5 |
|
|
8325 | echo "${ECHO_T}$ac_cv_c_int32_t" >&6; } |
|
|
8326 | case $ac_cv_c_int32_t in #( |
|
|
8327 | no|yes) ;; #( |
|
|
8328 | *) |
8495 | |
8329 | |
8496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8330 | cat >>confdefs.h <<_ACEOF |
8497 | # Binary search between lo and hi bounds. |
8331 | #define int32_t $ac_cv_c_int32_t |
8498 | while test "x$ac_lo" != "x$ac_hi"; do |
8332 | _ACEOF |
8499 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
8333 | ;; |
|
|
8334 | esac |
|
|
8335 | |
|
|
8336 | |
|
|
8337 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
8338 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
8339 | if test "${ac_cv_c_uint32_t+set}" = set; then |
|
|
8340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8341 | else |
|
|
8342 | ac_cv_c_uint32_t=no |
|
|
8343 | for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ |
|
|
8344 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
8500 | cat >conftest.$ac_ext <<_ACEOF |
8345 | cat >conftest.$ac_ext <<_ACEOF |
8501 | /* confdefs.h. */ |
8346 | /* confdefs.h. */ |
8502 | _ACEOF |
8347 | _ACEOF |
8503 | cat confdefs.h >>conftest.$ac_ext |
8348 | cat confdefs.h >>conftest.$ac_ext |
8504 | cat >>conftest.$ac_ext <<_ACEOF |
8349 | cat >>conftest.$ac_ext <<_ACEOF |
8505 | /* end confdefs.h. */ |
8350 | /* end confdefs.h. */ |
8506 | $ac_includes_default |
8351 | $ac_includes_default |
8507 | typedef short ac__type_sizeof_; |
|
|
8508 | int |
8352 | int |
8509 | main () |
8353 | main () |
8510 | { |
8354 | { |
8511 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
8355 | static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; |
8512 | test_array [0] = 0 |
8356 | test_array [0] = 0 |
8513 | |
8357 | |
8514 | ; |
8358 | ; |
8515 | return 0; |
8359 | return 0; |
8516 | } |
8360 | } |
… | |
… | |
8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8531 | (exit $ac_status); } && { |
8375 | (exit $ac_status); } && { |
8532 | test -z "$ac_cxx_werror_flag" || |
8376 | test -z "$ac_cxx_werror_flag" || |
8533 | test ! -s conftest.err |
8377 | test ! -s conftest.err |
8534 | } && test -s conftest.$ac_objext; then |
8378 | } && test -s conftest.$ac_objext; then |
8535 | ac_hi=$ac_mid |
8379 | case $ac_type in |
|
|
8380 | uint32_t) ac_cv_c_uint32_t=yes ;; |
|
|
8381 | *) ac_cv_c_uint32_t=$ac_type ;; |
|
|
8382 | esac |
|
|
8383 | |
8536 | else |
8384 | else |
8537 | echo "$as_me: failed program was:" >&5 |
8385 | echo "$as_me: failed program was:" >&5 |
8538 | sed 's/^/| /' conftest.$ac_ext >&5 |
8386 | sed 's/^/| /' conftest.$ac_ext >&5 |
8539 | |
8387 | |
8540 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8388 | |
8541 | fi |
8389 | fi |
8542 | |
8390 | |
8543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8544 | done |
8392 | test "$ac_cv_c_uint32_t" != no && break |
8545 | case $ac_lo in |
8393 | done |
8546 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8547 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8548 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8549 | See \`config.log' for more details." >&5 |
|
|
8550 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8551 | See \`config.log' for more details." >&2;} |
|
|
8552 | { (exit 77); exit 77; }; } |
|
|
8553 | else |
|
|
8554 | ac_cv_sizeof_short=0 |
|
|
8555 | fi ;; |
|
|
8556 | esac |
|
|
8557 | else |
|
|
8558 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8559 | /* confdefs.h. */ |
|
|
8560 | _ACEOF |
|
|
8561 | cat confdefs.h >>conftest.$ac_ext |
|
|
8562 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8563 | /* end confdefs.h. */ |
|
|
8564 | $ac_includes_default |
|
|
8565 | typedef short ac__type_sizeof_; |
|
|
8566 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8567 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8568 | #include <stdio.h> |
|
|
8569 | #include <stdlib.h> |
|
|
8570 | int |
|
|
8571 | main () |
|
|
8572 | { |
|
|
8573 | |
|
|
8574 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8575 | if (! f) |
|
|
8576 | return 1; |
|
|
8577 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8578 | { |
|
|
8579 | long int i = longval (); |
|
|
8580 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8581 | return 1; |
|
|
8582 | fprintf (f, "%ld\n", i); |
|
|
8583 | } |
|
|
8584 | else |
|
|
8585 | { |
|
|
8586 | unsigned long int i = ulongval (); |
|
|
8587 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8588 | return 1; |
|
|
8589 | fprintf (f, "%lu\n", i); |
|
|
8590 | } |
|
|
8591 | return ferror (f) || fclose (f) != 0; |
|
|
8592 | |
|
|
8593 | ; |
|
|
8594 | return 0; |
|
|
8595 | } |
|
|
8596 | _ACEOF |
|
|
8597 | rm -f conftest$ac_exeext |
|
|
8598 | if { (ac_try="$ac_link" |
|
|
8599 | case "(($ac_try" in |
|
|
8600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8601 | *) ac_try_echo=$ac_try;; |
|
|
8602 | esac |
|
|
8603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8604 | (eval "$ac_link") 2>&5 |
|
|
8605 | ac_status=$? |
|
|
8606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8607 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8608 | { (case "(($ac_try" in |
|
|
8609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8610 | *) ac_try_echo=$ac_try;; |
|
|
8611 | esac |
|
|
8612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8613 | (eval "$ac_try") 2>&5 |
|
|
8614 | ac_status=$? |
|
|
8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8616 | (exit $ac_status); }; }; then |
|
|
8617 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8618 | else |
|
|
8619 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8620 | echo "$as_me: failed program was:" >&5 |
|
|
8621 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8622 | |
|
|
8623 | ( exit $ac_status ) |
|
|
8624 | if test "$ac_cv_type_short" = yes; then |
|
|
8625 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8626 | See \`config.log' for more details." >&5 |
|
|
8627 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8628 | See \`config.log' for more details." >&2;} |
|
|
8629 | { (exit 77); exit 77; }; } |
|
|
8630 | else |
|
|
8631 | ac_cv_sizeof_short=0 |
|
|
8632 | fi |
|
|
8633 | fi |
8394 | fi |
8634 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8635 | fi |
|
|
8636 | rm -f conftest.val |
|
|
8637 | fi |
|
|
8638 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8395 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8639 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
8396 | echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } |
|
|
8397 | case $ac_cv_c_uint32_t in #( |
|
|
8398 | no|yes) ;; #( |
|
|
8399 | *) |
8640 | |
8400 | |
|
|
8401 | cat >>confdefs.h <<\_ACEOF |
|
|
8402 | #define _UINT32_T 1 |
|
|
8403 | _ACEOF |
8641 | |
8404 | |
8642 | |
8405 | |
8643 | cat >>confdefs.h <<_ACEOF |
8406 | cat >>confdefs.h <<_ACEOF |
8644 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8407 | #define uint32_t $ac_cv_c_uint32_t |
8645 | _ACEOF |
8408 | _ACEOF |
8646 | |
8409 | ;; |
8647 | |
|
|
8648 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8649 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8650 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8652 | else |
|
|
8653 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8654 | /* confdefs.h. */ |
|
|
8655 | _ACEOF |
|
|
8656 | cat confdefs.h >>conftest.$ac_ext |
|
|
8657 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8658 | /* end confdefs.h. */ |
|
|
8659 | $ac_includes_default |
|
|
8660 | typedef int ac__type_new_; |
|
|
8661 | int |
|
|
8662 | main () |
|
|
8663 | { |
|
|
8664 | if ((ac__type_new_ *) 0) |
|
|
8665 | return 0; |
|
|
8666 | if (sizeof (ac__type_new_)) |
|
|
8667 | return 0; |
|
|
8668 | ; |
|
|
8669 | return 0; |
|
|
8670 | } |
|
|
8671 | _ACEOF |
|
|
8672 | rm -f conftest.$ac_objext |
|
|
8673 | if { (ac_try="$ac_compile" |
|
|
8674 | case "(($ac_try" in |
|
|
8675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8676 | *) ac_try_echo=$ac_try;; |
|
|
8677 | esac |
8410 | esac |
8678 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8679 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8680 | ac_status=$? |
|
|
8681 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8682 | rm -f conftest.er1 |
|
|
8683 | cat conftest.err >&5 |
|
|
8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8685 | (exit $ac_status); } && { |
|
|
8686 | test -z "$ac_cxx_werror_flag" || |
|
|
8687 | test ! -s conftest.err |
|
|
8688 | } && test -s conftest.$ac_objext; then |
|
|
8689 | ac_cv_type_int=yes |
|
|
8690 | else |
|
|
8691 | echo "$as_me: failed program was:" >&5 |
|
|
8692 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8693 | |
8411 | |
8694 | ac_cv_type_int=no |
|
|
8695 | fi |
|
|
8696 | |
8412 | |
8697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8698 | fi |
|
|
8699 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8700 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8701 | |
8413 | |
8702 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8703 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8704 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8705 | # This bug is HP SR number 8606223364. |
|
|
8706 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8707 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8708 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8710 | else |
|
|
8711 | if test "$cross_compiling" = yes; then |
|
|
8712 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8713 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8714 | /* confdefs.h. */ |
|
|
8715 | _ACEOF |
|
|
8716 | cat confdefs.h >>conftest.$ac_ext |
|
|
8717 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8718 | /* end confdefs.h. */ |
|
|
8719 | $ac_includes_default |
|
|
8720 | typedef int ac__type_sizeof_; |
|
|
8721 | int |
|
|
8722 | main () |
|
|
8723 | { |
|
|
8724 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8725 | test_array [0] = 0 |
|
|
8726 | |
|
|
8727 | ; |
|
|
8728 | return 0; |
|
|
8729 | } |
|
|
8730 | _ACEOF |
|
|
8731 | rm -f conftest.$ac_objext |
|
|
8732 | if { (ac_try="$ac_compile" |
|
|
8733 | case "(($ac_try" in |
|
|
8734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8735 | *) ac_try_echo=$ac_try;; |
|
|
8736 | esac |
|
|
8737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8738 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8739 | ac_status=$? |
|
|
8740 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8741 | rm -f conftest.er1 |
|
|
8742 | cat conftest.err >&5 |
|
|
8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8744 | (exit $ac_status); } && { |
|
|
8745 | test -z "$ac_cxx_werror_flag" || |
|
|
8746 | test ! -s conftest.err |
|
|
8747 | } && test -s conftest.$ac_objext; then |
|
|
8748 | ac_lo=0 ac_mid=0 |
|
|
8749 | while :; do |
|
|
8750 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8751 | /* confdefs.h. */ |
|
|
8752 | _ACEOF |
|
|
8753 | cat confdefs.h >>conftest.$ac_ext |
|
|
8754 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8755 | /* end confdefs.h. */ |
|
|
8756 | $ac_includes_default |
|
|
8757 | typedef int ac__type_sizeof_; |
|
|
8758 | int |
|
|
8759 | main () |
|
|
8760 | { |
|
|
8761 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8762 | test_array [0] = 0 |
|
|
8763 | |
|
|
8764 | ; |
|
|
8765 | return 0; |
|
|
8766 | } |
|
|
8767 | _ACEOF |
|
|
8768 | rm -f conftest.$ac_objext |
|
|
8769 | if { (ac_try="$ac_compile" |
|
|
8770 | case "(($ac_try" in |
|
|
8771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8772 | *) ac_try_echo=$ac_try;; |
|
|
8773 | esac |
|
|
8774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8775 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8776 | ac_status=$? |
|
|
8777 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8778 | rm -f conftest.er1 |
|
|
8779 | cat conftest.err >&5 |
|
|
8780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8781 | (exit $ac_status); } && { |
|
|
8782 | test -z "$ac_cxx_werror_flag" || |
|
|
8783 | test ! -s conftest.err |
|
|
8784 | } && test -s conftest.$ac_objext; then |
|
|
8785 | ac_hi=$ac_mid; break |
|
|
8786 | else |
|
|
8787 | echo "$as_me: failed program was:" >&5 |
|
|
8788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8789 | |
|
|
8790 | ac_lo=`expr $ac_mid + 1` |
|
|
8791 | if test $ac_lo -le $ac_mid; then |
|
|
8792 | ac_lo= ac_hi= |
|
|
8793 | break |
|
|
8794 | fi |
|
|
8795 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8796 | fi |
|
|
8797 | |
|
|
8798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8799 | done |
|
|
8800 | else |
|
|
8801 | echo "$as_me: failed program was:" >&5 |
|
|
8802 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8803 | |
|
|
8804 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8805 | /* confdefs.h. */ |
|
|
8806 | _ACEOF |
|
|
8807 | cat confdefs.h >>conftest.$ac_ext |
|
|
8808 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8809 | /* end confdefs.h. */ |
|
|
8810 | $ac_includes_default |
|
|
8811 | typedef int ac__type_sizeof_; |
|
|
8812 | int |
|
|
8813 | main () |
|
|
8814 | { |
|
|
8815 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8816 | test_array [0] = 0 |
|
|
8817 | |
|
|
8818 | ; |
|
|
8819 | return 0; |
|
|
8820 | } |
|
|
8821 | _ACEOF |
|
|
8822 | rm -f conftest.$ac_objext |
|
|
8823 | if { (ac_try="$ac_compile" |
|
|
8824 | case "(($ac_try" in |
|
|
8825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8826 | *) ac_try_echo=$ac_try;; |
|
|
8827 | esac |
|
|
8828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8829 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8830 | ac_status=$? |
|
|
8831 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8832 | rm -f conftest.er1 |
|
|
8833 | cat conftest.err >&5 |
|
|
8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8835 | (exit $ac_status); } && { |
|
|
8836 | test -z "$ac_cxx_werror_flag" || |
|
|
8837 | test ! -s conftest.err |
|
|
8838 | } && test -s conftest.$ac_objext; then |
|
|
8839 | ac_hi=-1 ac_mid=-1 |
|
|
8840 | while :; do |
|
|
8841 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8842 | /* confdefs.h. */ |
|
|
8843 | _ACEOF |
|
|
8844 | cat confdefs.h >>conftest.$ac_ext |
|
|
8845 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8846 | /* end confdefs.h. */ |
|
|
8847 | $ac_includes_default |
|
|
8848 | typedef int ac__type_sizeof_; |
|
|
8849 | int |
|
|
8850 | main () |
|
|
8851 | { |
|
|
8852 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8853 | test_array [0] = 0 |
|
|
8854 | |
|
|
8855 | ; |
|
|
8856 | return 0; |
|
|
8857 | } |
|
|
8858 | _ACEOF |
|
|
8859 | rm -f conftest.$ac_objext |
|
|
8860 | if { (ac_try="$ac_compile" |
|
|
8861 | case "(($ac_try" in |
|
|
8862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8863 | *) ac_try_echo=$ac_try;; |
|
|
8864 | esac |
|
|
8865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8866 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8867 | ac_status=$? |
|
|
8868 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8869 | rm -f conftest.er1 |
|
|
8870 | cat conftest.err >&5 |
|
|
8871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8872 | (exit $ac_status); } && { |
|
|
8873 | test -z "$ac_cxx_werror_flag" || |
|
|
8874 | test ! -s conftest.err |
|
|
8875 | } && test -s conftest.$ac_objext; then |
|
|
8876 | ac_lo=$ac_mid; break |
|
|
8877 | else |
|
|
8878 | echo "$as_me: failed program was:" >&5 |
|
|
8879 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8880 | |
|
|
8881 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8882 | if test $ac_mid -le $ac_hi; then |
|
|
8883 | ac_lo= ac_hi= |
|
|
8884 | break |
|
|
8885 | fi |
|
|
8886 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8887 | fi |
|
|
8888 | |
|
|
8889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8890 | done |
|
|
8891 | else |
|
|
8892 | echo "$as_me: failed program was:" >&5 |
|
|
8893 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8894 | |
|
|
8895 | ac_lo= ac_hi= |
|
|
8896 | fi |
|
|
8897 | |
|
|
8898 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8899 | fi |
|
|
8900 | |
|
|
8901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8902 | # Binary search between lo and hi bounds. |
|
|
8903 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
8904 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
8905 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8906 | /* confdefs.h. */ |
|
|
8907 | _ACEOF |
|
|
8908 | cat confdefs.h >>conftest.$ac_ext |
|
|
8909 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8910 | /* end confdefs.h. */ |
|
|
8911 | $ac_includes_default |
|
|
8912 | typedef int ac__type_sizeof_; |
|
|
8913 | int |
|
|
8914 | main () |
|
|
8915 | { |
|
|
8916 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8917 | test_array [0] = 0 |
|
|
8918 | |
|
|
8919 | ; |
|
|
8920 | return 0; |
|
|
8921 | } |
|
|
8922 | _ACEOF |
|
|
8923 | rm -f conftest.$ac_objext |
|
|
8924 | if { (ac_try="$ac_compile" |
|
|
8925 | case "(($ac_try" in |
|
|
8926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8927 | *) ac_try_echo=$ac_try;; |
|
|
8928 | esac |
|
|
8929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8930 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8931 | ac_status=$? |
|
|
8932 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8933 | rm -f conftest.er1 |
|
|
8934 | cat conftest.err >&5 |
|
|
8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8936 | (exit $ac_status); } && { |
|
|
8937 | test -z "$ac_cxx_werror_flag" || |
|
|
8938 | test ! -s conftest.err |
|
|
8939 | } && test -s conftest.$ac_objext; then |
|
|
8940 | ac_hi=$ac_mid |
|
|
8941 | else |
|
|
8942 | echo "$as_me: failed program was:" >&5 |
|
|
8943 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8944 | |
|
|
8945 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
8946 | fi |
|
|
8947 | |
|
|
8948 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8949 | done |
|
|
8950 | case $ac_lo in |
|
|
8951 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
8952 | '') if test "$ac_cv_type_int" = yes; then |
|
|
8953 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
8954 | See \`config.log' for more details." >&5 |
|
|
8955 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
8956 | See \`config.log' for more details." >&2;} |
|
|
8957 | { (exit 77); exit 77; }; } |
|
|
8958 | else |
|
|
8959 | ac_cv_sizeof_int=0 |
|
|
8960 | fi ;; |
|
|
8961 | esac |
|
|
8962 | else |
|
|
8963 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8964 | /* confdefs.h. */ |
|
|
8965 | _ACEOF |
|
|
8966 | cat confdefs.h >>conftest.$ac_ext |
|
|
8967 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8968 | /* end confdefs.h. */ |
|
|
8969 | $ac_includes_default |
|
|
8970 | typedef int ac__type_sizeof_; |
|
|
8971 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8972 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8973 | #include <stdio.h> |
|
|
8974 | #include <stdlib.h> |
|
|
8975 | int |
|
|
8976 | main () |
|
|
8977 | { |
|
|
8978 | |
|
|
8979 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8980 | if (! f) |
|
|
8981 | return 1; |
|
|
8982 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8983 | { |
|
|
8984 | long int i = longval (); |
|
|
8985 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8986 | return 1; |
|
|
8987 | fprintf (f, "%ld\n", i); |
|
|
8988 | } |
|
|
8989 | else |
|
|
8990 | { |
|
|
8991 | unsigned long int i = ulongval (); |
|
|
8992 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8993 | return 1; |
|
|
8994 | fprintf (f, "%lu\n", i); |
|
|
8995 | } |
|
|
8996 | return ferror (f) || fclose (f) != 0; |
|
|
8997 | |
|
|
8998 | ; |
|
|
8999 | return 0; |
|
|
9000 | } |
|
|
9001 | _ACEOF |
|
|
9002 | rm -f conftest$ac_exeext |
|
|
9003 | if { (ac_try="$ac_link" |
|
|
9004 | case "(($ac_try" in |
|
|
9005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9006 | *) ac_try_echo=$ac_try;; |
|
|
9007 | esac |
|
|
9008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9009 | (eval "$ac_link") 2>&5 |
|
|
9010 | ac_status=$? |
|
|
9011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9012 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9013 | { (case "(($ac_try" in |
|
|
9014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9015 | *) ac_try_echo=$ac_try;; |
|
|
9016 | esac |
|
|
9017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9018 | (eval "$ac_try") 2>&5 |
|
|
9019 | ac_status=$? |
|
|
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9021 | (exit $ac_status); }; }; then |
|
|
9022 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
9023 | else |
|
|
9024 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9025 | echo "$as_me: failed program was:" >&5 |
|
|
9026 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9027 | |
|
|
9028 | ( exit $ac_status ) |
|
|
9029 | if test "$ac_cv_type_int" = yes; then |
|
|
9030 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
9031 | See \`config.log' for more details." >&5 |
|
|
9032 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
9033 | See \`config.log' for more details." >&2;} |
|
|
9034 | { (exit 77); exit 77; }; } |
|
|
9035 | else |
|
|
9036 | ac_cv_sizeof_int=0 |
|
|
9037 | fi |
|
|
9038 | fi |
|
|
9039 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9040 | fi |
|
|
9041 | rm -f conftest.val |
|
|
9042 | fi |
|
|
9043 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
9044 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
9045 | |
|
|
9046 | |
|
|
9047 | |
|
|
9048 | cat >>confdefs.h <<_ACEOF |
|
|
9049 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
9050 | _ACEOF |
|
|
9051 | |
|
|
9052 | |
|
|
9053 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
9054 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
9055 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
9056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9057 | else |
|
|
9058 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9059 | /* confdefs.h. */ |
|
|
9060 | _ACEOF |
|
|
9061 | cat confdefs.h >>conftest.$ac_ext |
|
|
9062 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9063 | /* end confdefs.h. */ |
|
|
9064 | $ac_includes_default |
|
|
9065 | typedef long long ac__type_new_; |
|
|
9066 | int |
|
|
9067 | main () |
|
|
9068 | { |
|
|
9069 | if ((ac__type_new_ *) 0) |
|
|
9070 | return 0; |
|
|
9071 | if (sizeof (ac__type_new_)) |
|
|
9072 | return 0; |
|
|
9073 | ; |
|
|
9074 | return 0; |
|
|
9075 | } |
|
|
9076 | _ACEOF |
|
|
9077 | rm -f conftest.$ac_objext |
|
|
9078 | if { (ac_try="$ac_compile" |
|
|
9079 | case "(($ac_try" in |
|
|
9080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9081 | *) ac_try_echo=$ac_try;; |
|
|
9082 | esac |
|
|
9083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9084 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9085 | ac_status=$? |
|
|
9086 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9087 | rm -f conftest.er1 |
|
|
9088 | cat conftest.err >&5 |
|
|
9089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9090 | (exit $ac_status); } && { |
|
|
9091 | test -z "$ac_cxx_werror_flag" || |
|
|
9092 | test ! -s conftest.err |
|
|
9093 | } && test -s conftest.$ac_objext; then |
|
|
9094 | ac_cv_type_long_long=yes |
|
|
9095 | else |
|
|
9096 | echo "$as_me: failed program was:" >&5 |
|
|
9097 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9098 | |
|
|
9099 | ac_cv_type_long_long=no |
|
|
9100 | fi |
|
|
9101 | |
|
|
9102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9103 | fi |
|
|
9104 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
9105 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
9106 | |
|
|
9107 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9108 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9109 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9110 | # This bug is HP SR number 8606223364. |
|
|
9111 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
9112 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
9113 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
9114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9115 | else |
|
|
9116 | if test "$cross_compiling" = yes; then |
|
|
9117 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9118 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9119 | /* confdefs.h. */ |
|
|
9120 | _ACEOF |
|
|
9121 | cat confdefs.h >>conftest.$ac_ext |
|
|
9122 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9123 | /* end confdefs.h. */ |
|
|
9124 | $ac_includes_default |
|
|
9125 | typedef long long ac__type_sizeof_; |
|
|
9126 | int |
|
|
9127 | main () |
|
|
9128 | { |
|
|
9129 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9130 | test_array [0] = 0 |
|
|
9131 | |
|
|
9132 | ; |
|
|
9133 | return 0; |
|
|
9134 | } |
|
|
9135 | _ACEOF |
|
|
9136 | rm -f conftest.$ac_objext |
|
|
9137 | if { (ac_try="$ac_compile" |
|
|
9138 | case "(($ac_try" in |
|
|
9139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9140 | *) ac_try_echo=$ac_try;; |
|
|
9141 | esac |
|
|
9142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9143 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9144 | ac_status=$? |
|
|
9145 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9146 | rm -f conftest.er1 |
|
|
9147 | cat conftest.err >&5 |
|
|
9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9149 | (exit $ac_status); } && { |
|
|
9150 | test -z "$ac_cxx_werror_flag" || |
|
|
9151 | test ! -s conftest.err |
|
|
9152 | } && test -s conftest.$ac_objext; then |
|
|
9153 | ac_lo=0 ac_mid=0 |
|
|
9154 | while :; do |
|
|
9155 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9156 | /* confdefs.h. */ |
|
|
9157 | _ACEOF |
|
|
9158 | cat confdefs.h >>conftest.$ac_ext |
|
|
9159 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9160 | /* end confdefs.h. */ |
|
|
9161 | $ac_includes_default |
|
|
9162 | typedef long long ac__type_sizeof_; |
|
|
9163 | int |
|
|
9164 | main () |
|
|
9165 | { |
|
|
9166 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9167 | test_array [0] = 0 |
|
|
9168 | |
|
|
9169 | ; |
|
|
9170 | return 0; |
|
|
9171 | } |
|
|
9172 | _ACEOF |
|
|
9173 | rm -f conftest.$ac_objext |
|
|
9174 | if { (ac_try="$ac_compile" |
|
|
9175 | case "(($ac_try" in |
|
|
9176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9177 | *) ac_try_echo=$ac_try;; |
|
|
9178 | esac |
|
|
9179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9180 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9181 | ac_status=$? |
|
|
9182 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9183 | rm -f conftest.er1 |
|
|
9184 | cat conftest.err >&5 |
|
|
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9186 | (exit $ac_status); } && { |
|
|
9187 | test -z "$ac_cxx_werror_flag" || |
|
|
9188 | test ! -s conftest.err |
|
|
9189 | } && test -s conftest.$ac_objext; then |
|
|
9190 | ac_hi=$ac_mid; break |
|
|
9191 | else |
|
|
9192 | echo "$as_me: failed program was:" >&5 |
|
|
9193 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9194 | |
|
|
9195 | ac_lo=`expr $ac_mid + 1` |
|
|
9196 | if test $ac_lo -le $ac_mid; then |
|
|
9197 | ac_lo= ac_hi= |
|
|
9198 | break |
|
|
9199 | fi |
|
|
9200 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9201 | fi |
|
|
9202 | |
|
|
9203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9204 | done |
|
|
9205 | else |
|
|
9206 | echo "$as_me: failed program was:" >&5 |
|
|
9207 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9208 | |
|
|
9209 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9210 | /* confdefs.h. */ |
|
|
9211 | _ACEOF |
|
|
9212 | cat confdefs.h >>conftest.$ac_ext |
|
|
9213 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9214 | /* end confdefs.h. */ |
|
|
9215 | $ac_includes_default |
|
|
9216 | typedef long long ac__type_sizeof_; |
|
|
9217 | int |
|
|
9218 | main () |
|
|
9219 | { |
|
|
9220 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9221 | test_array [0] = 0 |
|
|
9222 | |
|
|
9223 | ; |
|
|
9224 | return 0; |
|
|
9225 | } |
|
|
9226 | _ACEOF |
|
|
9227 | rm -f conftest.$ac_objext |
|
|
9228 | if { (ac_try="$ac_compile" |
|
|
9229 | case "(($ac_try" in |
|
|
9230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9231 | *) ac_try_echo=$ac_try;; |
|
|
9232 | esac |
|
|
9233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9234 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9235 | ac_status=$? |
|
|
9236 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9237 | rm -f conftest.er1 |
|
|
9238 | cat conftest.err >&5 |
|
|
9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9240 | (exit $ac_status); } && { |
|
|
9241 | test -z "$ac_cxx_werror_flag" || |
|
|
9242 | test ! -s conftest.err |
|
|
9243 | } && test -s conftest.$ac_objext; then |
|
|
9244 | ac_hi=-1 ac_mid=-1 |
|
|
9245 | while :; do |
|
|
9246 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9247 | /* confdefs.h. */ |
|
|
9248 | _ACEOF |
|
|
9249 | cat confdefs.h >>conftest.$ac_ext |
|
|
9250 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9251 | /* end confdefs.h. */ |
|
|
9252 | $ac_includes_default |
|
|
9253 | typedef long long ac__type_sizeof_; |
|
|
9254 | int |
|
|
9255 | main () |
|
|
9256 | { |
|
|
9257 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9258 | test_array [0] = 0 |
|
|
9259 | |
|
|
9260 | ; |
|
|
9261 | return 0; |
|
|
9262 | } |
|
|
9263 | _ACEOF |
|
|
9264 | rm -f conftest.$ac_objext |
|
|
9265 | if { (ac_try="$ac_compile" |
|
|
9266 | case "(($ac_try" in |
|
|
9267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9268 | *) ac_try_echo=$ac_try;; |
|
|
9269 | esac |
|
|
9270 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9271 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9272 | ac_status=$? |
|
|
9273 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9274 | rm -f conftest.er1 |
|
|
9275 | cat conftest.err >&5 |
|
|
9276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9277 | (exit $ac_status); } && { |
|
|
9278 | test -z "$ac_cxx_werror_flag" || |
|
|
9279 | test ! -s conftest.err |
|
|
9280 | } && test -s conftest.$ac_objext; then |
|
|
9281 | ac_lo=$ac_mid; break |
|
|
9282 | else |
|
|
9283 | echo "$as_me: failed program was:" >&5 |
|
|
9284 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9285 | |
|
|
9286 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9287 | if test $ac_mid -le $ac_hi; then |
|
|
9288 | ac_lo= ac_hi= |
|
|
9289 | break |
|
|
9290 | fi |
|
|
9291 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9292 | fi |
|
|
9293 | |
|
|
9294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9295 | done |
|
|
9296 | else |
|
|
9297 | echo "$as_me: failed program was:" >&5 |
|
|
9298 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9299 | |
|
|
9300 | ac_lo= ac_hi= |
|
|
9301 | fi |
|
|
9302 | |
|
|
9303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9304 | fi |
|
|
9305 | |
|
|
9306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9307 | # Binary search between lo and hi bounds. |
|
|
9308 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9309 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9310 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9311 | /* confdefs.h. */ |
|
|
9312 | _ACEOF |
|
|
9313 | cat confdefs.h >>conftest.$ac_ext |
|
|
9314 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9315 | /* end confdefs.h. */ |
|
|
9316 | $ac_includes_default |
|
|
9317 | typedef long long ac__type_sizeof_; |
|
|
9318 | int |
|
|
9319 | main () |
|
|
9320 | { |
|
|
9321 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9322 | test_array [0] = 0 |
|
|
9323 | |
|
|
9324 | ; |
|
|
9325 | return 0; |
|
|
9326 | } |
|
|
9327 | _ACEOF |
|
|
9328 | rm -f conftest.$ac_objext |
|
|
9329 | if { (ac_try="$ac_compile" |
|
|
9330 | case "(($ac_try" in |
|
|
9331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9332 | *) ac_try_echo=$ac_try;; |
|
|
9333 | esac |
|
|
9334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9335 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9336 | ac_status=$? |
|
|
9337 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9338 | rm -f conftest.er1 |
|
|
9339 | cat conftest.err >&5 |
|
|
9340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9341 | (exit $ac_status); } && { |
|
|
9342 | test -z "$ac_cxx_werror_flag" || |
|
|
9343 | test ! -s conftest.err |
|
|
9344 | } && test -s conftest.$ac_objext; then |
|
|
9345 | ac_hi=$ac_mid |
|
|
9346 | else |
|
|
9347 | echo "$as_me: failed program was:" >&5 |
|
|
9348 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9349 | |
|
|
9350 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9351 | fi |
|
|
9352 | |
|
|
9353 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9354 | done |
|
|
9355 | case $ac_lo in |
|
|
9356 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9357 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9358 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9359 | See \`config.log' for more details." >&5 |
|
|
9360 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9361 | See \`config.log' for more details." >&2;} |
|
|
9362 | { (exit 77); exit 77; }; } |
|
|
9363 | else |
|
|
9364 | ac_cv_sizeof_long_long=0 |
|
|
9365 | fi ;; |
|
|
9366 | esac |
|
|
9367 | else |
|
|
9368 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9369 | /* confdefs.h. */ |
|
|
9370 | _ACEOF |
|
|
9371 | cat confdefs.h >>conftest.$ac_ext |
|
|
9372 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9373 | /* end confdefs.h. */ |
|
|
9374 | $ac_includes_default |
|
|
9375 | typedef long long ac__type_sizeof_; |
|
|
9376 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9377 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9378 | #include <stdio.h> |
|
|
9379 | #include <stdlib.h> |
|
|
9380 | int |
|
|
9381 | main () |
|
|
9382 | { |
|
|
9383 | |
|
|
9384 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9385 | if (! f) |
|
|
9386 | return 1; |
|
|
9387 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9388 | { |
|
|
9389 | long int i = longval (); |
|
|
9390 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9391 | return 1; |
|
|
9392 | fprintf (f, "%ld\n", i); |
|
|
9393 | } |
|
|
9394 | else |
|
|
9395 | { |
|
|
9396 | unsigned long int i = ulongval (); |
|
|
9397 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9398 | return 1; |
|
|
9399 | fprintf (f, "%lu\n", i); |
|
|
9400 | } |
|
|
9401 | return ferror (f) || fclose (f) != 0; |
|
|
9402 | |
|
|
9403 | ; |
|
|
9404 | return 0; |
|
|
9405 | } |
|
|
9406 | _ACEOF |
|
|
9407 | rm -f conftest$ac_exeext |
|
|
9408 | if { (ac_try="$ac_link" |
|
|
9409 | case "(($ac_try" in |
|
|
9410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9411 | *) ac_try_echo=$ac_try;; |
|
|
9412 | esac |
|
|
9413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9414 | (eval "$ac_link") 2>&5 |
|
|
9415 | ac_status=$? |
|
|
9416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9417 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9418 | { (case "(($ac_try" in |
|
|
9419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9420 | *) ac_try_echo=$ac_try;; |
|
|
9421 | esac |
|
|
9422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9423 | (eval "$ac_try") 2>&5 |
|
|
9424 | ac_status=$? |
|
|
9425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9426 | (exit $ac_status); }; }; then |
|
|
9427 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9428 | else |
|
|
9429 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9430 | echo "$as_me: failed program was:" >&5 |
|
|
9431 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9432 | |
|
|
9433 | ( exit $ac_status ) |
|
|
9434 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9435 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9436 | See \`config.log' for more details." >&5 |
|
|
9437 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9438 | See \`config.log' for more details." >&2;} |
|
|
9439 | { (exit 77); exit 77; }; } |
|
|
9440 | else |
|
|
9441 | ac_cv_sizeof_long_long=0 |
|
|
9442 | fi |
|
|
9443 | fi |
|
|
9444 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9445 | fi |
|
|
9446 | rm -f conftest.val |
|
|
9447 | fi |
|
|
9448 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9449 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9450 | |
|
|
9451 | |
|
|
9452 | |
|
|
9453 | cat >>confdefs.h <<_ACEOF |
|
|
9454 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9455 | _ACEOF |
|
|
9456 | |
|
|
9457 | |
|
|
9458 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9459 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9460 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9462 | else |
|
|
9463 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9464 | /* confdefs.h. */ |
|
|
9465 | _ACEOF |
|
|
9466 | cat confdefs.h >>conftest.$ac_ext |
|
|
9467 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9468 | /* end confdefs.h. */ |
|
|
9469 | $ac_includes_default |
|
|
9470 | typedef int * ac__type_new_; |
|
|
9471 | int |
|
|
9472 | main () |
|
|
9473 | { |
|
|
9474 | if ((ac__type_new_ *) 0) |
|
|
9475 | return 0; |
|
|
9476 | if (sizeof (ac__type_new_)) |
|
|
9477 | return 0; |
|
|
9478 | ; |
|
|
9479 | return 0; |
|
|
9480 | } |
|
|
9481 | _ACEOF |
|
|
9482 | rm -f conftest.$ac_objext |
|
|
9483 | if { (ac_try="$ac_compile" |
|
|
9484 | case "(($ac_try" in |
|
|
9485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9486 | *) ac_try_echo=$ac_try;; |
|
|
9487 | esac |
|
|
9488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9489 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9490 | ac_status=$? |
|
|
9491 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9492 | rm -f conftest.er1 |
|
|
9493 | cat conftest.err >&5 |
|
|
9494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9495 | (exit $ac_status); } && { |
|
|
9496 | test -z "$ac_cxx_werror_flag" || |
|
|
9497 | test ! -s conftest.err |
|
|
9498 | } && test -s conftest.$ac_objext; then |
|
|
9499 | ac_cv_type_int_p=yes |
|
|
9500 | else |
|
|
9501 | echo "$as_me: failed program was:" >&5 |
|
|
9502 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9503 | |
|
|
9504 | ac_cv_type_int_p=no |
|
|
9505 | fi |
|
|
9506 | |
|
|
9507 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9508 | fi |
|
|
9509 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9510 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9511 | |
|
|
9512 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9513 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9514 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9515 | # This bug is HP SR number 8606223364. |
|
|
9516 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9517 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9518 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9520 | else |
|
|
9521 | if test "$cross_compiling" = yes; then |
|
|
9522 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9523 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9524 | /* confdefs.h. */ |
|
|
9525 | _ACEOF |
|
|
9526 | cat confdefs.h >>conftest.$ac_ext |
|
|
9527 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9528 | /* end confdefs.h. */ |
|
|
9529 | $ac_includes_default |
|
|
9530 | typedef int * ac__type_sizeof_; |
|
|
9531 | int |
|
|
9532 | main () |
|
|
9533 | { |
|
|
9534 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9535 | test_array [0] = 0 |
|
|
9536 | |
|
|
9537 | ; |
|
|
9538 | return 0; |
|
|
9539 | } |
|
|
9540 | _ACEOF |
|
|
9541 | rm -f conftest.$ac_objext |
|
|
9542 | if { (ac_try="$ac_compile" |
|
|
9543 | case "(($ac_try" in |
|
|
9544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9545 | *) ac_try_echo=$ac_try;; |
|
|
9546 | esac |
|
|
9547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9548 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9549 | ac_status=$? |
|
|
9550 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9551 | rm -f conftest.er1 |
|
|
9552 | cat conftest.err >&5 |
|
|
9553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9554 | (exit $ac_status); } && { |
|
|
9555 | test -z "$ac_cxx_werror_flag" || |
|
|
9556 | test ! -s conftest.err |
|
|
9557 | } && test -s conftest.$ac_objext; then |
|
|
9558 | ac_lo=0 ac_mid=0 |
|
|
9559 | while :; do |
|
|
9560 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9561 | /* confdefs.h. */ |
|
|
9562 | _ACEOF |
|
|
9563 | cat confdefs.h >>conftest.$ac_ext |
|
|
9564 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9565 | /* end confdefs.h. */ |
|
|
9566 | $ac_includes_default |
|
|
9567 | typedef int * ac__type_sizeof_; |
|
|
9568 | int |
|
|
9569 | main () |
|
|
9570 | { |
|
|
9571 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9572 | test_array [0] = 0 |
|
|
9573 | |
|
|
9574 | ; |
|
|
9575 | return 0; |
|
|
9576 | } |
|
|
9577 | _ACEOF |
|
|
9578 | rm -f conftest.$ac_objext |
|
|
9579 | if { (ac_try="$ac_compile" |
|
|
9580 | case "(($ac_try" in |
|
|
9581 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9582 | *) ac_try_echo=$ac_try;; |
|
|
9583 | esac |
|
|
9584 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9585 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9586 | ac_status=$? |
|
|
9587 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9588 | rm -f conftest.er1 |
|
|
9589 | cat conftest.err >&5 |
|
|
9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9591 | (exit $ac_status); } && { |
|
|
9592 | test -z "$ac_cxx_werror_flag" || |
|
|
9593 | test ! -s conftest.err |
|
|
9594 | } && test -s conftest.$ac_objext; then |
|
|
9595 | ac_hi=$ac_mid; break |
|
|
9596 | else |
|
|
9597 | echo "$as_me: failed program was:" >&5 |
|
|
9598 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9599 | |
|
|
9600 | ac_lo=`expr $ac_mid + 1` |
|
|
9601 | if test $ac_lo -le $ac_mid; then |
|
|
9602 | ac_lo= ac_hi= |
|
|
9603 | break |
|
|
9604 | fi |
|
|
9605 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9606 | fi |
|
|
9607 | |
|
|
9608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9609 | done |
|
|
9610 | else |
|
|
9611 | echo "$as_me: failed program was:" >&5 |
|
|
9612 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9613 | |
|
|
9614 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9615 | /* confdefs.h. */ |
|
|
9616 | _ACEOF |
|
|
9617 | cat confdefs.h >>conftest.$ac_ext |
|
|
9618 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9619 | /* end confdefs.h. */ |
|
|
9620 | $ac_includes_default |
|
|
9621 | typedef int * ac__type_sizeof_; |
|
|
9622 | int |
|
|
9623 | main () |
|
|
9624 | { |
|
|
9625 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9626 | test_array [0] = 0 |
|
|
9627 | |
|
|
9628 | ; |
|
|
9629 | return 0; |
|
|
9630 | } |
|
|
9631 | _ACEOF |
|
|
9632 | rm -f conftest.$ac_objext |
|
|
9633 | if { (ac_try="$ac_compile" |
|
|
9634 | case "(($ac_try" in |
|
|
9635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9636 | *) ac_try_echo=$ac_try;; |
|
|
9637 | esac |
|
|
9638 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9639 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9640 | ac_status=$? |
|
|
9641 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9642 | rm -f conftest.er1 |
|
|
9643 | cat conftest.err >&5 |
|
|
9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9645 | (exit $ac_status); } && { |
|
|
9646 | test -z "$ac_cxx_werror_flag" || |
|
|
9647 | test ! -s conftest.err |
|
|
9648 | } && test -s conftest.$ac_objext; then |
|
|
9649 | ac_hi=-1 ac_mid=-1 |
|
|
9650 | while :; do |
|
|
9651 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9652 | /* confdefs.h. */ |
|
|
9653 | _ACEOF |
|
|
9654 | cat confdefs.h >>conftest.$ac_ext |
|
|
9655 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9656 | /* end confdefs.h. */ |
|
|
9657 | $ac_includes_default |
|
|
9658 | typedef int * ac__type_sizeof_; |
|
|
9659 | int |
|
|
9660 | main () |
|
|
9661 | { |
|
|
9662 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9663 | test_array [0] = 0 |
|
|
9664 | |
|
|
9665 | ; |
|
|
9666 | return 0; |
|
|
9667 | } |
|
|
9668 | _ACEOF |
|
|
9669 | rm -f conftest.$ac_objext |
|
|
9670 | if { (ac_try="$ac_compile" |
|
|
9671 | case "(($ac_try" in |
|
|
9672 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9673 | *) ac_try_echo=$ac_try;; |
|
|
9674 | esac |
|
|
9675 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9676 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9677 | ac_status=$? |
|
|
9678 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9679 | rm -f conftest.er1 |
|
|
9680 | cat conftest.err >&5 |
|
|
9681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9682 | (exit $ac_status); } && { |
|
|
9683 | test -z "$ac_cxx_werror_flag" || |
|
|
9684 | test ! -s conftest.err |
|
|
9685 | } && test -s conftest.$ac_objext; then |
|
|
9686 | ac_lo=$ac_mid; break |
|
|
9687 | else |
|
|
9688 | echo "$as_me: failed program was:" >&5 |
|
|
9689 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9690 | |
|
|
9691 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9692 | if test $ac_mid -le $ac_hi; then |
|
|
9693 | ac_lo= ac_hi= |
|
|
9694 | break |
|
|
9695 | fi |
|
|
9696 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9697 | fi |
|
|
9698 | |
|
|
9699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9700 | done |
|
|
9701 | else |
|
|
9702 | echo "$as_me: failed program was:" >&5 |
|
|
9703 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9704 | |
|
|
9705 | ac_lo= ac_hi= |
|
|
9706 | fi |
|
|
9707 | |
|
|
9708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9709 | fi |
|
|
9710 | |
|
|
9711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9712 | # Binary search between lo and hi bounds. |
|
|
9713 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9714 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9715 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9716 | /* confdefs.h. */ |
|
|
9717 | _ACEOF |
|
|
9718 | cat confdefs.h >>conftest.$ac_ext |
|
|
9719 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9720 | /* end confdefs.h. */ |
|
|
9721 | $ac_includes_default |
|
|
9722 | typedef int * ac__type_sizeof_; |
|
|
9723 | int |
|
|
9724 | main () |
|
|
9725 | { |
|
|
9726 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9727 | test_array [0] = 0 |
|
|
9728 | |
|
|
9729 | ; |
|
|
9730 | return 0; |
|
|
9731 | } |
|
|
9732 | _ACEOF |
|
|
9733 | rm -f conftest.$ac_objext |
|
|
9734 | if { (ac_try="$ac_compile" |
|
|
9735 | case "(($ac_try" in |
|
|
9736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9737 | *) ac_try_echo=$ac_try;; |
|
|
9738 | esac |
|
|
9739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9740 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9741 | ac_status=$? |
|
|
9742 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9743 | rm -f conftest.er1 |
|
|
9744 | cat conftest.err >&5 |
|
|
9745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9746 | (exit $ac_status); } && { |
|
|
9747 | test -z "$ac_cxx_werror_flag" || |
|
|
9748 | test ! -s conftest.err |
|
|
9749 | } && test -s conftest.$ac_objext; then |
|
|
9750 | ac_hi=$ac_mid |
|
|
9751 | else |
|
|
9752 | echo "$as_me: failed program was:" >&5 |
|
|
9753 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9754 | |
|
|
9755 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9756 | fi |
|
|
9757 | |
|
|
9758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9759 | done |
|
|
9760 | case $ac_lo in |
|
|
9761 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9762 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9763 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9764 | See \`config.log' for more details." >&5 |
|
|
9765 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9766 | See \`config.log' for more details." >&2;} |
|
|
9767 | { (exit 77); exit 77; }; } |
|
|
9768 | else |
|
|
9769 | ac_cv_sizeof_int_p=0 |
|
|
9770 | fi ;; |
|
|
9771 | esac |
|
|
9772 | else |
|
|
9773 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9774 | /* confdefs.h. */ |
|
|
9775 | _ACEOF |
|
|
9776 | cat confdefs.h >>conftest.$ac_ext |
|
|
9777 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9778 | /* end confdefs.h. */ |
|
|
9779 | $ac_includes_default |
|
|
9780 | typedef int * ac__type_sizeof_; |
|
|
9781 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9782 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9783 | #include <stdio.h> |
|
|
9784 | #include <stdlib.h> |
|
|
9785 | int |
|
|
9786 | main () |
|
|
9787 | { |
|
|
9788 | |
|
|
9789 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9790 | if (! f) |
|
|
9791 | return 1; |
|
|
9792 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9793 | { |
|
|
9794 | long int i = longval (); |
|
|
9795 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9796 | return 1; |
|
|
9797 | fprintf (f, "%ld\n", i); |
|
|
9798 | } |
|
|
9799 | else |
|
|
9800 | { |
|
|
9801 | unsigned long int i = ulongval (); |
|
|
9802 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9803 | return 1; |
|
|
9804 | fprintf (f, "%lu\n", i); |
|
|
9805 | } |
|
|
9806 | return ferror (f) || fclose (f) != 0; |
|
|
9807 | |
|
|
9808 | ; |
|
|
9809 | return 0; |
|
|
9810 | } |
|
|
9811 | _ACEOF |
|
|
9812 | rm -f conftest$ac_exeext |
|
|
9813 | if { (ac_try="$ac_link" |
|
|
9814 | case "(($ac_try" in |
|
|
9815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9816 | *) ac_try_echo=$ac_try;; |
|
|
9817 | esac |
|
|
9818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9819 | (eval "$ac_link") 2>&5 |
|
|
9820 | ac_status=$? |
|
|
9821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9822 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9823 | { (case "(($ac_try" in |
|
|
9824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9825 | *) ac_try_echo=$ac_try;; |
|
|
9826 | esac |
|
|
9827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9828 | (eval "$ac_try") 2>&5 |
|
|
9829 | ac_status=$? |
|
|
9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9831 | (exit $ac_status); }; }; then |
|
|
9832 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9833 | else |
|
|
9834 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9835 | echo "$as_me: failed program was:" >&5 |
|
|
9836 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9837 | |
|
|
9838 | ( exit $ac_status ) |
|
|
9839 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9840 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9841 | See \`config.log' for more details." >&5 |
|
|
9842 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9843 | See \`config.log' for more details." >&2;} |
|
|
9844 | { (exit 77); exit 77; }; } |
|
|
9845 | else |
|
|
9846 | ac_cv_sizeof_int_p=0 |
|
|
9847 | fi |
|
|
9848 | fi |
|
|
9849 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9850 | fi |
|
|
9851 | rm -f conftest.val |
|
|
9852 | fi |
|
|
9853 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9854 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9855 | |
|
|
9856 | |
|
|
9857 | |
|
|
9858 | cat >>confdefs.h <<_ACEOF |
|
|
9859 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9860 | _ACEOF |
|
|
9861 | |
|
|
9862 | |
|
|
9863 | |
|
|
9864 | |
|
|
9865 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9866 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9867 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9869 | else |
|
|
9870 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9871 | /* confdefs.h. */ |
|
|
9872 | _ACEOF |
|
|
9873 | cat confdefs.h >>conftest.$ac_ext |
|
|
9874 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9875 | /* end confdefs.h. */ |
|
|
9876 | #include <stdint.h> |
|
|
9877 | int |
|
|
9878 | main () |
|
|
9879 | { |
|
|
9880 | int16_t dummy; |
|
|
9881 | ; |
|
|
9882 | return 0; |
|
|
9883 | } |
|
|
9884 | _ACEOF |
|
|
9885 | rm -f conftest.$ac_objext |
|
|
9886 | if { (ac_try="$ac_compile" |
|
|
9887 | case "(($ac_try" in |
|
|
9888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9889 | *) ac_try_echo=$ac_try;; |
|
|
9890 | esac |
|
|
9891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9892 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9893 | ac_status=$? |
|
|
9894 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9895 | rm -f conftest.er1 |
|
|
9896 | cat conftest.err >&5 |
|
|
9897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9898 | (exit $ac_status); } && { |
|
|
9899 | test -z "$ac_cxx_werror_flag" || |
|
|
9900 | test ! -s conftest.err |
|
|
9901 | } && test -s conftest.$ac_objext; then |
|
|
9902 | rxvt_cv_int16_t=yes |
|
|
9903 | else |
|
|
9904 | echo "$as_me: failed program was:" >&5 |
|
|
9905 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9906 | |
|
|
9907 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9908 | rxvt_cv_int16_t=" char" |
|
|
9909 | else |
|
|
9910 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9911 | rxvt_cv_int16_t=" short" |
|
|
9912 | else |
|
|
9913 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9914 | rxvt_cv_int16_t=" int" |
|
|
9915 | else |
|
|
9916 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9917 | rxvt_cv_int16_t=" long" |
|
|
9918 | else |
|
|
9919 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9920 | rxvt_cv_int16_t=" long long" |
|
|
9921 | else |
|
|
9922 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
9923 | fi |
|
|
9924 | fi |
|
|
9925 | fi |
|
|
9926 | fi |
|
|
9927 | fi |
|
|
9928 | fi |
|
|
9929 | |
|
|
9930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9931 | fi |
|
|
9932 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
9933 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
9934 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
9935 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
9936 | else |
|
|
9937 | if test x"" = x; then |
|
|
9938 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9939 | else |
|
|
9940 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
9941 | fi |
|
|
9942 | fi |
|
|
9943 | |
|
|
9944 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
9945 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
9946 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
9947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9948 | else |
|
|
9949 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9950 | /* confdefs.h. */ |
|
|
9951 | _ACEOF |
|
|
9952 | cat confdefs.h >>conftest.$ac_ext |
|
|
9953 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9954 | /* end confdefs.h. */ |
|
|
9955 | #include <stdint.h> |
|
|
9956 | int |
|
|
9957 | main () |
|
|
9958 | { |
|
|
9959 | uint16_t dummy; |
|
|
9960 | ; |
|
|
9961 | return 0; |
|
|
9962 | } |
|
|
9963 | _ACEOF |
|
|
9964 | rm -f conftest.$ac_objext |
|
|
9965 | if { (ac_try="$ac_compile" |
|
|
9966 | case "(($ac_try" in |
|
|
9967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9968 | *) ac_try_echo=$ac_try;; |
|
|
9969 | esac |
|
|
9970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9971 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9972 | ac_status=$? |
|
|
9973 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9974 | rm -f conftest.er1 |
|
|
9975 | cat conftest.err >&5 |
|
|
9976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9977 | (exit $ac_status); } && { |
|
|
9978 | test -z "$ac_cxx_werror_flag" || |
|
|
9979 | test ! -s conftest.err |
|
|
9980 | } && test -s conftest.$ac_objext; then |
|
|
9981 | rxvt_cv_uint16_t=yes |
|
|
9982 | else |
|
|
9983 | echo "$as_me: failed program was:" >&5 |
|
|
9984 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9985 | |
|
|
9986 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
9987 | rxvt_cv_uint16_t="unsigned char" |
|
|
9988 | else |
|
|
9989 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
9990 | rxvt_cv_uint16_t="unsigned short" |
|
|
9991 | else |
|
|
9992 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
9993 | rxvt_cv_uint16_t="unsigned int" |
|
|
9994 | else |
|
|
9995 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
9996 | rxvt_cv_uint16_t="unsigned long" |
|
|
9997 | else |
|
|
9998 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
9999 | rxvt_cv_uint16_t="unsigned long long" |
|
|
10000 | else |
|
|
10001 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
10002 | fi |
|
|
10003 | fi |
|
|
10004 | fi |
|
|
10005 | fi |
|
|
10006 | fi |
|
|
10007 | fi |
|
|
10008 | |
|
|
10009 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10010 | fi |
|
|
10011 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
10012 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
10013 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
10014 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
10015 | else |
|
|
10016 | if test x"unsigned" = x; then |
|
|
10017 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
10018 | else |
|
|
10019 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
10020 | fi |
|
|
10021 | fi |
|
|
10022 | |
|
|
10023 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
10024 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
10025 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
10026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10027 | else |
|
|
10028 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10029 | /* confdefs.h. */ |
|
|
10030 | _ACEOF |
|
|
10031 | cat confdefs.h >>conftest.$ac_ext |
|
|
10032 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10033 | /* end confdefs.h. */ |
|
|
10034 | #include <stdint.h> |
|
|
10035 | int |
|
|
10036 | main () |
|
|
10037 | { |
|
|
10038 | int32_t dummy; |
|
|
10039 | ; |
|
|
10040 | return 0; |
|
|
10041 | } |
|
|
10042 | _ACEOF |
|
|
10043 | rm -f conftest.$ac_objext |
|
|
10044 | if { (ac_try="$ac_compile" |
|
|
10045 | case "(($ac_try" in |
|
|
10046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10047 | *) ac_try_echo=$ac_try;; |
|
|
10048 | esac |
|
|
10049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10050 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10051 | ac_status=$? |
|
|
10052 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10053 | rm -f conftest.er1 |
|
|
10054 | cat conftest.err >&5 |
|
|
10055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10056 | (exit $ac_status); } && { |
|
|
10057 | test -z "$ac_cxx_werror_flag" || |
|
|
10058 | test ! -s conftest.err |
|
|
10059 | } && test -s conftest.$ac_objext; then |
|
|
10060 | rxvt_cv_int32_t=yes |
|
|
10061 | else |
|
|
10062 | echo "$as_me: failed program was:" >&5 |
|
|
10063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10064 | |
|
|
10065 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10066 | rxvt_cv_int32_t=" char" |
|
|
10067 | else |
|
|
10068 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10069 | rxvt_cv_int32_t=" short" |
|
|
10070 | else |
|
|
10071 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10072 | rxvt_cv_int32_t=" int" |
|
|
10073 | else |
|
|
10074 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10075 | rxvt_cv_int32_t=" long" |
|
|
10076 | else |
|
|
10077 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10078 | rxvt_cv_int32_t=" long long" |
|
|
10079 | else |
|
|
10080 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
10081 | fi |
|
|
10082 | fi |
|
|
10083 | fi |
|
|
10084 | fi |
|
|
10085 | fi |
|
|
10086 | fi |
|
|
10087 | |
|
|
10088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10089 | fi |
|
|
10090 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
10091 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
10092 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
10093 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
10094 | else |
|
|
10095 | if test x"" = x; then |
|
|
10096 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10097 | else |
|
|
10098 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10099 | fi |
|
|
10100 | fi |
|
|
10101 | |
|
|
10102 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
10103 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
10104 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
10105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10106 | else |
|
|
10107 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10108 | /* confdefs.h. */ |
|
|
10109 | _ACEOF |
|
|
10110 | cat confdefs.h >>conftest.$ac_ext |
|
|
10111 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10112 | /* end confdefs.h. */ |
|
|
10113 | #include <stdint.h> |
|
|
10114 | int |
|
|
10115 | main () |
|
|
10116 | { |
|
|
10117 | uint32_t dummy; |
|
|
10118 | ; |
|
|
10119 | return 0; |
|
|
10120 | } |
|
|
10121 | _ACEOF |
|
|
10122 | rm -f conftest.$ac_objext |
|
|
10123 | if { (ac_try="$ac_compile" |
|
|
10124 | case "(($ac_try" in |
|
|
10125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10126 | *) ac_try_echo=$ac_try;; |
|
|
10127 | esac |
|
|
10128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10129 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10130 | ac_status=$? |
|
|
10131 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10132 | rm -f conftest.er1 |
|
|
10133 | cat conftest.err >&5 |
|
|
10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10135 | (exit $ac_status); } && { |
|
|
10136 | test -z "$ac_cxx_werror_flag" || |
|
|
10137 | test ! -s conftest.err |
|
|
10138 | } && test -s conftest.$ac_objext; then |
|
|
10139 | rxvt_cv_uint32_t=yes |
|
|
10140 | else |
|
|
10141 | echo "$as_me: failed program was:" >&5 |
|
|
10142 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10143 | |
|
|
10144 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10145 | rxvt_cv_uint32_t="unsigned char" |
|
|
10146 | else |
|
|
10147 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10148 | rxvt_cv_uint32_t="unsigned short" |
|
|
10149 | else |
|
|
10150 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10151 | rxvt_cv_uint32_t="unsigned int" |
|
|
10152 | else |
|
|
10153 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10154 | rxvt_cv_uint32_t="unsigned long" |
|
|
10155 | else |
|
|
10156 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10157 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10158 | else |
|
|
10159 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10160 | fi |
|
|
10161 | fi |
|
|
10162 | fi |
|
|
10163 | fi |
|
|
10164 | fi |
|
|
10165 | fi |
|
|
10166 | |
|
|
10167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10168 | fi |
|
|
10169 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10170 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10171 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10172 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10173 | else |
|
|
10174 | if test x"unsigned" = x; then |
|
|
10175 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10176 | else |
|
|
10177 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10178 | fi |
|
|
10179 | fi |
|
|
10180 | |
|
|
10181 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10182 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10183 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10184 | else |
|
|
10185 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10186 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10187 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10188 | else |
|
|
10189 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10190 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10191 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10192 | else |
|
|
10193 | rxvt_intp_define="#error set intp_t" |
|
|
10194 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10195 | fi |
|
|
10196 | fi |
|
|
10197 | fi |
|
|
10198 | |
|
|
10199 | |
|
|
10200 | |
|
|
10201 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10202 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10203 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10205 | else |
|
|
10206 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10207 | /* confdefs.h. */ |
|
|
10208 | _ACEOF |
|
|
10209 | cat confdefs.h >>conftest.$ac_ext |
|
|
10210 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10211 | /* end confdefs.h. */ |
|
|
10212 | #include <sys/types.h> |
|
|
10213 | #include <signal.h> |
|
|
10214 | |
|
|
10215 | int |
|
|
10216 | main () |
|
|
10217 | { |
|
|
10218 | return *(signal (0, 0)) (0) == 1; |
|
|
10219 | ; |
|
|
10220 | return 0; |
|
|
10221 | } |
|
|
10222 | _ACEOF |
|
|
10223 | rm -f conftest.$ac_objext |
|
|
10224 | if { (ac_try="$ac_compile" |
|
|
10225 | case "(($ac_try" in |
|
|
10226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10227 | *) ac_try_echo=$ac_try;; |
|
|
10228 | esac |
|
|
10229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10230 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10231 | ac_status=$? |
|
|
10232 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10233 | rm -f conftest.er1 |
|
|
10234 | cat conftest.err >&5 |
|
|
10235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10236 | (exit $ac_status); } && { |
|
|
10237 | test -z "$ac_cxx_werror_flag" || |
|
|
10238 | test ! -s conftest.err |
|
|
10239 | } && test -s conftest.$ac_objext; then |
|
|
10240 | ac_cv_type_signal=int |
|
|
10241 | else |
|
|
10242 | echo "$as_me: failed program was:" >&5 |
|
|
10243 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10244 | |
|
|
10245 | ac_cv_type_signal=void |
|
|
10246 | fi |
|
|
10247 | |
|
|
10248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10249 | fi |
|
|
10250 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10251 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10252 | |
|
|
10253 | cat >>confdefs.h <<_ACEOF |
|
|
10254 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10255 | _ACEOF |
|
|
10256 | |
|
|
10257 | |
|
|
10258 | |
|
|
10259 | |
|
|
10260 | |
|
|
10261 | |
|
|
10262 | for ac_func in \ |
8414 | for ac_func in unsetenv |
10263 | unsetenv \ |
|
|
10264 | setutent \ |
|
|
10265 | on_exit \ |
|
|
10266 | |
|
|
10267 | do |
8415 | do |
10268 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8416 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10269 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8417 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10270 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10271 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
8419 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
10410 | |
8558 | |
10411 | |
8559 | |
10412 | |
8560 | |
10413 | |
8561 | |
10414 | for ac_func in \ |
8562 | for ac_func in \ |
10415 | ttyslot \ |
|
|
10416 | updwtmp \ |
8563 | updwtmp \ |
10417 | updwtmpx \ |
8564 | updwtmpx \ |
|
|
8565 | updlastlogx \ |
10418 | |
8566 | |
10419 | do |
8567 | do |
10420 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
8568 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10421 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8569 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10422 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8570 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
… | |
… | |
10508 | fi |
8656 | fi |
10509 | done |
8657 | done |
10510 | |
8658 | |
10511 | |
8659 | |
10512 | |
8660 | |
10513 | |
|
|
10514 | |
|
|
10515 | for ac_header in \ |
8661 | for ac_header in lastlog.h |
10516 | utmp.h \ |
|
|
10517 | utmpx.h \ |
|
|
10518 | lastlog.h \ |
|
|
10519 | |
|
|
10520 | do |
8662 | do |
10521 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8663 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10522 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
8664 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10523 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8665 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
8666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
… | |
… | |
10655 | |
8797 | |
10656 | done |
8798 | done |
10657 | |
8799 | |
10658 | |
8800 | |
10659 | |
8801 | |
10660 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8802 | |
|
|
8803 | for ac_header in utmp.h |
|
|
8804 | do |
|
|
8805 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
8806 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10661 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8807 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10662 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10663 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8809 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10665 | fi |
8811 | fi |
|
|
8812 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10666 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8813 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10667 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8814 | echo "${ECHO_T}$ac_res" >&6; } |
10668 | else |
8815 | else |
10669 | # Is the header compilable? |
8816 | # Is the header compilable? |
10670 | { echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
8817 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10671 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } |
8818 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10672 | cat >conftest.$ac_ext <<_ACEOF |
8819 | cat >conftest.$ac_ext <<_ACEOF |
10673 | /* confdefs.h. */ |
8820 | /* confdefs.h. */ |
10674 | _ACEOF |
8821 | _ACEOF |
10675 | cat confdefs.h >>conftest.$ac_ext |
8822 | cat confdefs.h >>conftest.$ac_ext |
10676 | cat >>conftest.$ac_ext <<_ACEOF |
8823 | cat >>conftest.$ac_ext <<_ACEOF |
10677 | /* end confdefs.h. */ |
8824 | /* end confdefs.h. */ |
10678 | $ac_includes_default |
8825 | $ac_includes_default |
10679 | #include <utmp.h> |
8826 | #include <$ac_header> |
10680 | _ACEOF |
8827 | _ACEOF |
10681 | rm -f conftest.$ac_objext |
8828 | rm -f conftest.$ac_objext |
10682 | if { (ac_try="$ac_compile" |
8829 | if { (ac_try="$ac_compile" |
10683 | case "(($ac_try" in |
8830 | case "(($ac_try" in |
10684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
10706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10707 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8854 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10708 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
8855 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
10709 | |
8856 | |
10710 | # Is the header present? |
8857 | # Is the header present? |
10711 | { echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
8858 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10712 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } |
8859 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
10713 | cat >conftest.$ac_ext <<_ACEOF |
8860 | cat >conftest.$ac_ext <<_ACEOF |
10714 | /* confdefs.h. */ |
8861 | /* confdefs.h. */ |
10715 | _ACEOF |
8862 | _ACEOF |
10716 | cat confdefs.h >>conftest.$ac_ext |
8863 | cat confdefs.h >>conftest.$ac_ext |
10717 | cat >>conftest.$ac_ext <<_ACEOF |
8864 | cat >>conftest.$ac_ext <<_ACEOF |
10718 | /* end confdefs.h. */ |
8865 | /* end confdefs.h. */ |
10719 | #include <utmp.h> |
8866 | #include <$ac_header> |
10720 | _ACEOF |
8867 | _ACEOF |
10721 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
8868 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10722 | case "(($ac_try" in |
8869 | case "(($ac_try" in |
10723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10724 | *) ac_try_echo=$ac_try;; |
8871 | *) ac_try_echo=$ac_try;; |
… | |
… | |
10747 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
8894 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
10748 | |
8895 | |
10749 | # So? What about this header? |
8896 | # So? What about this header? |
10750 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
8897 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
10751 | yes:no: ) |
8898 | yes:no: ) |
10752 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
8899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10753 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
8900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
10754 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
8901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10755 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
8902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
10756 | ac_header_preproc=yes |
8903 | ac_header_preproc=yes |
10757 | ;; |
8904 | ;; |
10758 | no:yes:* ) |
8905 | no:yes:* ) |
10759 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
8906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
10760 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
8907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
10761 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
8908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
10762 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
8909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
10763 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
8910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
10764 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
8911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
10765 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
8912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
10766 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
8913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
10767 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
8914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10768 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
8915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
10769 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
8916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10770 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
8917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
10771 | |
8918 | |
10772 | ;; |
8919 | ;; |
10773 | esac |
8920 | esac |
10774 | { echo "$as_me:$LINENO: checking for utmp.h" >&5 |
8921 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10775 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } |
8922 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10776 | if test "${ac_cv_header_utmp_h+set}" = set; then |
8923 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10778 | else |
8925 | else |
10779 | ac_cv_header_utmp_h=$ac_header_preproc |
8926 | eval "$as_ac_Header=\$ac_header_preproc" |
10780 | fi |
8927 | fi |
|
|
8928 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10781 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
8929 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10782 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } |
8930 | echo "${ECHO_T}$ac_res" >&6; } |
10783 | |
8931 | |
10784 | fi |
8932 | fi |
10785 | if test $ac_cv_header_utmp_h = yes; then |
8933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
8934 | cat >>confdefs.h <<_ACEOF |
|
|
8935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
8936 | _ACEOF |
10786 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
8937 | { echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10787 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
8938 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } |
10788 | if test "${struct_utmp+set}" = set; then |
8939 | if test "${struct_utmp+set}" = set; then |
10789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10790 | else |
8941 | else |
10791 | cat >conftest.$ac_ext <<_ACEOF |
8942 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
10958 | |
9109 | |
10959 | fi |
9110 | fi |
10960 | |
9111 | |
10961 | fi |
9112 | fi |
10962 | |
9113 | |
|
|
9114 | done |
10963 | |
9115 | |
10964 | |
9116 | |
10965 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9117 | |
|
|
9118 | for ac_header in utmpx.h |
|
|
9119 | do |
|
|
9120 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
9121 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10966 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9122 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10967 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9123 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
10968 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9124 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10969 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10970 | fi |
9126 | fi |
|
|
9127 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10971 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9128 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
10972 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9129 | echo "${ECHO_T}$ac_res" >&6; } |
10973 | else |
9130 | else |
10974 | # Is the header compilable? |
9131 | # Is the header compilable? |
10975 | { echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
9132 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10976 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } |
9133 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
10977 | cat >conftest.$ac_ext <<_ACEOF |
9134 | cat >conftest.$ac_ext <<_ACEOF |
10978 | /* confdefs.h. */ |
9135 | /* confdefs.h. */ |
10979 | _ACEOF |
9136 | _ACEOF |
10980 | cat confdefs.h >>conftest.$ac_ext |
9137 | cat confdefs.h >>conftest.$ac_ext |
10981 | cat >>conftest.$ac_ext <<_ACEOF |
9138 | cat >>conftest.$ac_ext <<_ACEOF |
10982 | /* end confdefs.h. */ |
9139 | /* end confdefs.h. */ |
10983 | $ac_includes_default |
9140 | $ac_includes_default |
10984 | #include <utmpx.h> |
9141 | #include <$ac_header> |
10985 | _ACEOF |
9142 | _ACEOF |
10986 | rm -f conftest.$ac_objext |
9143 | rm -f conftest.$ac_objext |
10987 | if { (ac_try="$ac_compile" |
9144 | if { (ac_try="$ac_compile" |
10988 | case "(($ac_try" in |
9145 | case "(($ac_try" in |
10989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
11011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11012 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9169 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11013 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
9170 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
11014 | |
9171 | |
11015 | # Is the header present? |
9172 | # Is the header present? |
11016 | { echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
9173 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11017 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } |
9174 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
11018 | cat >conftest.$ac_ext <<_ACEOF |
9175 | cat >conftest.$ac_ext <<_ACEOF |
11019 | /* confdefs.h. */ |
9176 | /* confdefs.h. */ |
11020 | _ACEOF |
9177 | _ACEOF |
11021 | cat confdefs.h >>conftest.$ac_ext |
9178 | cat confdefs.h >>conftest.$ac_ext |
11022 | cat >>conftest.$ac_ext <<_ACEOF |
9179 | cat >>conftest.$ac_ext <<_ACEOF |
11023 | /* end confdefs.h. */ |
9180 | /* end confdefs.h. */ |
11024 | #include <utmpx.h> |
9181 | #include <$ac_header> |
11025 | _ACEOF |
9182 | _ACEOF |
11026 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9183 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11027 | case "(($ac_try" in |
9184 | case "(($ac_try" in |
11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11029 | *) ac_try_echo=$ac_try;; |
9186 | *) ac_try_echo=$ac_try;; |
… | |
… | |
11052 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
9209 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
11053 | |
9210 | |
11054 | # So? What about this header? |
9211 | # So? What about this header? |
11055 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
9212 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
11056 | yes:no: ) |
9213 | yes:no: ) |
11057 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9214 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11058 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
9215 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
11059 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
9216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11060 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
9217 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
11061 | ac_header_preproc=yes |
9218 | ac_header_preproc=yes |
11062 | ;; |
9219 | ;; |
11063 | no:yes:* ) |
9220 | no:yes:* ) |
11064 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
9221 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11065 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
9222 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
11066 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
9223 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11067 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
9224 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
11068 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
9225 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
11069 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
9226 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
11070 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
9227 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
11071 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
9228 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
11072 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
9229 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11073 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
9230 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
11074 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
9231 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11075 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
9232 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
11076 | |
9233 | |
11077 | ;; |
9234 | ;; |
11078 | esac |
9235 | esac |
11079 | { echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
9236 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11080 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } |
9237 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
11081 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
9238 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11083 | else |
9240 | else |
11084 | ac_cv_header_utmpx_h=$ac_header_preproc |
9241 | eval "$as_ac_Header=\$ac_header_preproc" |
11085 | fi |
9242 | fi |
|
|
9243 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11086 | { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
9244 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
11087 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } |
9245 | echo "${ECHO_T}$ac_res" >&6; } |
11088 | |
9246 | |
11089 | fi |
9247 | fi |
11090 | if test $ac_cv_header_utmpx_h = yes; then |
9248 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
9249 | cat >>confdefs.h <<_ACEOF |
|
|
9250 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
9251 | _ACEOF |
11091 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
9252 | { echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
11092 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
9253 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } |
11093 | if test "${struct_utmpx+set}" = set; then |
9254 | if test "${struct_utmpx+set}" = set; then |
11094 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11095 | else |
9256 | else |
11096 | cat >conftest.$ac_ext <<_ACEOF |
9257 | cat >conftest.$ac_ext <<_ACEOF |
… | |
… | |
11263 | |
9424 | |
11264 | fi |
9425 | fi |
11265 | |
9426 | |
11266 | fi |
9427 | fi |
11267 | |
9428 | |
|
|
9429 | done |
11268 | |
9430 | |
11269 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
9431 | { echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11270 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
9432 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } |
11271 | if test "${struct_lastlog+set}" = set; then |
9433 | if test "${struct_lastlog+set}" = set; then |
11272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11843 | |
10005 | |
11844 | cat >>confdefs.h <<_ACEOF |
10006 | cat >>confdefs.h <<_ACEOF |
11845 | #define LASTLOG_FILE "$path_lastlog" |
10007 | #define LASTLOG_FILE "$path_lastlog" |
11846 | _ACEOF |
10008 | _ACEOF |
11847 | |
10009 | |
11848 | if test -d "$path_lastlog"; then |
|
|
11849 | |
|
|
11850 | cat >>confdefs.h <<\_ACEOF |
|
|
11851 | #define LASTLOG_IS_DIR 1 |
|
|
11852 | _ACEOF |
|
|
11853 | |
|
|
11854 | fi |
|
|
11855 | fi |
10010 | fi |
11856 | |
10011 | |
11857 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
10012 | { echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11858 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
10013 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } |
11859 | if test "${path_lastlogx+set}" = set; then |
10014 | if test "${path_lastlogx+set}" = set; then |
… | |
… | |
11941 | |
10096 | |
11942 | fi |
10097 | fi |
11943 | |
10098 | |
11944 | |
10099 | |
11945 | |
10100 | |
11946 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11947 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
11948 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11950 | else |
|
|
11951 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11952 | do |
|
|
11953 | if test -f "$ttys_file" ; then |
|
|
11954 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11955 | break |
|
|
11956 | fi |
|
|
11957 | done |
|
|
11958 | |
10101 | |
11959 | fi |
|
|
11960 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11961 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
11962 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11963 | |
|
|
11964 | cat >>confdefs.h <<_ACEOF |
|
|
11965 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11966 | _ACEOF |
|
|
11967 | |
|
|
11968 | fi |
|
|
11969 | |
|
|
11970 | |
|
|
11971 | ac_save_LIBS=$LIBS |
10102 | save_LIBS=$LIBS |
11972 | ac_save_CFLAGS=$CFLAGS |
10103 | save_CFLAGS=$CFLAGS |
11973 | CFLAGS="$CFLAGS $X_CFLAGS" |
10104 | CFLAGS="$CFLAGS $X_CFLAGS" |
11974 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10105 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
11975 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
10106 | if test x$support_xim = xyes; then |
11976 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
11977 | fi |
|
|
11978 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10107 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
11979 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10108 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
11980 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
10109 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
11981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11982 | else |
10111 | else |
11983 | if test "$cross_compiling" = yes; then |
10112 | if test "$cross_compiling" = yes; then |
11984 | { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 |
10113 | : |
11985 | echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;} |
|
|
11986 | else |
10114 | else |
11987 | cat >conftest.$ac_ext <<_ACEOF |
10115 | cat >conftest.$ac_ext <<_ACEOF |
11988 | /* confdefs.h. */ |
10116 | /* confdefs.h. */ |
11989 | _ACEOF |
10117 | _ACEOF |
11990 | cat confdefs.h >>conftest.$ac_ext |
10118 | cat confdefs.h >>conftest.$ac_ext |
11991 | cat >>conftest.$ac_ext <<_ACEOF |
10119 | cat >>conftest.$ac_ext <<_ACEOF |
11992 | /* end confdefs.h. */ |
10120 | /* end confdefs.h. */ |
11993 | #include <X11/Xlib.h> |
10121 | #include <X11/Xlib.h> |
11994 | #include <stdlib.h> |
10122 | #include <stdlib.h> |
11995 | main() { |
10123 | main() { |
11996 | char *p; |
10124 | char *p; |
11997 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10125 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
11998 | exit (XSupportsLocale() ? 0 : 1); |
10126 | exit (XSupportsLocale() ? 0 : 1); |
11999 | else |
10127 | else |
12000 | exit (1);} |
10128 | exit (1);} |
12001 | _ACEOF |
10129 | _ACEOF |
12002 | rm -f conftest$ac_exeext |
10130 | rm -f conftest$ac_exeext |
12003 | if { (ac_try="$ac_link" |
10131 | if { (ac_try="$ac_link" |
12004 | case "(($ac_try" in |
10132 | case "(($ac_try" in |
12005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
12017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12018 | (eval "$ac_try") 2>&5 |
10146 | (eval "$ac_try") 2>&5 |
12019 | ac_status=$? |
10147 | ac_status=$? |
12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12021 | (exit $ac_status); }; }; then |
10149 | (exit $ac_status); }; }; then |
12022 | rxvt_cv_func_xlocale=yes |
10150 | rxvt_cv_func_xlocale=yes |
12023 | else |
10151 | else |
12024 | echo "$as_me: program exited with status $ac_status" >&5 |
10152 | echo "$as_me: program exited with status $ac_status" >&5 |
12025 | echo "$as_me: failed program was:" >&5 |
10153 | echo "$as_me: failed program was:" >&5 |
12026 | sed 's/^/| /' conftest.$ac_ext >&5 |
10154 | sed 's/^/| /' conftest.$ac_ext >&5 |
12027 | |
10155 | |
… | |
… | |
12033 | |
10161 | |
12034 | |
10162 | |
12035 | fi |
10163 | fi |
12036 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10164 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
12037 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
10165 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
12038 | if test x$rxvt_cv_func_xlocale = xyes; then |
10166 | if test x$rxvt_cv_func_xlocale = xyes; then |
12039 | |
10167 | |
12040 | cat >>confdefs.h <<\_ACEOF |
10168 | cat >>confdefs.h <<\_ACEOF |
12041 | #define HAVE_XLOCALE 1 |
10169 | #define USE_XIM 1 |
12042 | _ACEOF |
10170 | _ACEOF |
12043 | |
10171 | |
|
|
10172 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10173 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
10174 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
10175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10176 | else |
|
|
10177 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10178 | |
|
|
10179 | #include <X11/Xlib.h> |
|
|
10180 | |
|
|
10181 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10182 | |
|
|
10183 | void f() { |
|
|
10184 | XIMCallback cb; |
|
|
10185 | cb.callback = im_destroy_cb; |
|
|
10186 | } |
|
|
10187 | |
|
|
10188 | _ACEOF |
|
|
10189 | rm -f conftest.$ac_objext |
|
|
10190 | if { (ac_try="$ac_compile" |
|
|
10191 | case "(($ac_try" in |
|
|
10192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10193 | *) ac_try_echo=$ac_try;; |
|
|
10194 | esac |
|
|
10195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10196 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10197 | ac_status=$? |
|
|
10198 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10199 | rm -f conftest.er1 |
|
|
10200 | cat conftest.err >&5 |
|
|
10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10202 | (exit $ac_status); } && { |
|
|
10203 | test -z "$ac_cxx_werror_flag" || |
|
|
10204 | test ! -s conftest.err |
|
|
10205 | } && test -s conftest.$ac_objext; then |
|
|
10206 | rxvt_broken_ximcb=yes |
|
|
10207 | else |
|
|
10208 | echo "$as_me: failed program was:" >&5 |
|
|
10209 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10210 | |
|
|
10211 | rxvt_broken_ximcb=no |
|
|
10212 | fi |
|
|
10213 | |
|
|
10214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10215 | fi |
|
|
10216 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10217 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10218 | |
|
|
10219 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10220 | |
|
|
10221 | cat >>confdefs.h <<\_ACEOF |
|
|
10222 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10223 | _ACEOF |
|
|
10224 | |
|
|
10225 | fi |
|
|
10226 | fi |
12044 | fi |
10227 | fi |
12045 | |
10228 | |
12046 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10229 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
12047 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10230 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
12048 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
10231 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
… | |
… | |
12100 | cat >>confdefs.h <<\_ACEOF |
10283 | cat >>confdefs.h <<\_ACEOF |
12101 | #define HAVE_XSETLOCALE 1 |
10284 | #define HAVE_XSETLOCALE 1 |
12102 | _ACEOF |
10285 | _ACEOF |
12103 | |
10286 | |
12104 | fi |
10287 | fi |
12105 | LIBS=$ac_save_LIBS |
10288 | LIBS=$save_LIBS |
12106 | CFLAGS=$ac_save_CFLAGS |
10289 | CFLAGS=$save_CFLAGS |
12107 | |
10290 | |
12108 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10291 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
12109 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10292 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
12110 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10293 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
12111 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12315 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10498 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12316 | { (exit 1); exit 1; }; } |
10499 | { (exit 1); exit 1; }; } |
12317 | fi |
10500 | fi |
12318 | |
10501 | |
12319 | |
10502 | |
12320 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12321 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12322 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12324 | else |
|
|
12325 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12326 | |
|
|
12327 | #include <X11/Xlib.h> |
|
|
12328 | |
|
|
12329 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12330 | |
|
|
12331 | void f() { |
|
|
12332 | XIMCallback cb; |
|
|
12333 | cb.callback = im_destroy_cb; |
|
|
12334 | } |
|
|
12335 | |
|
|
12336 | _ACEOF |
|
|
12337 | rm -f conftest.$ac_objext |
|
|
12338 | if { (ac_try="$ac_compile" |
|
|
12339 | case "(($ac_try" in |
|
|
12340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12341 | *) ac_try_echo=$ac_try;; |
|
|
12342 | esac |
|
|
12343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12344 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12345 | ac_status=$? |
|
|
12346 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12347 | rm -f conftest.er1 |
|
|
12348 | cat conftest.err >&5 |
|
|
12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12350 | (exit $ac_status); } && { |
|
|
12351 | test -z "$ac_cxx_werror_flag" || |
|
|
12352 | test ! -s conftest.err |
|
|
12353 | } && test -s conftest.$ac_objext; then |
|
|
12354 | rxvt_broken_ximcb=yes |
|
|
12355 | else |
|
|
12356 | echo "$as_me: failed program was:" >&5 |
|
|
12357 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12358 | |
|
|
12359 | rxvt_broken_ximcb=no |
|
|
12360 | fi |
|
|
12361 | |
|
|
12362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12363 | fi |
|
|
12364 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12365 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12366 | |
|
|
12367 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12368 | |
|
|
12369 | cat >>confdefs.h <<\_ACEOF |
|
|
12370 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12371 | _ACEOF |
|
|
12372 | |
|
|
12373 | fi |
|
|
12374 | |
10503 | |
12375 | |
10504 | |
12376 | |
10505 | |
12377 | |
10506 | |
12378 | |
10507 | |
… | |
… | |
12382 | pty.h \ |
10511 | pty.h \ |
12383 | util.h \ |
10512 | util.h \ |
12384 | libutil.h \ |
10513 | libutil.h \ |
12385 | sys/ioctl.h \ |
10514 | sys/ioctl.h \ |
12386 | sys/stropts.h \ |
10515 | sys/stropts.h \ |
|
|
10516 | stropts.h \ |
12387 | |
10517 | |
12388 | do |
10518 | do |
12389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10519 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12390 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10520 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12391 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10521 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
13059 | echo "${ECHO_T}no" >&6; } |
11189 | echo "${ECHO_T}no" >&6; } |
13060 | fi |
11190 | fi |
13061 | |
11191 | |
13062 | |
11192 | |
13063 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11193 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
13064 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11194 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
13065 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11195 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
13066 | else |
11196 | else |
13067 | # Extract the first word of "xft-config", so it can be a program name with args. |
11197 | # Extract the first word of "xft-config", so it can be a program name with args. |
13068 | set dummy xft-config; ac_word=$2 |
11198 | set dummy xft-config; ac_word=$2 |
13069 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11199 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
13104 | echo "${ECHO_T}no" >&6; } |
11234 | echo "${ECHO_T}no" >&6; } |
13105 | fi |
11235 | fi |
13106 | |
11236 | |
13107 | |
11237 | |
13108 | if test $XFT_CONFIG != no; then |
11238 | if test $XFT_CONFIG != no; then |
13109 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11239 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
13110 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11240 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13111 | fi |
11241 | fi |
13112 | fi |
11242 | fi |
13113 | |
11243 | |
|
|
11244 | save_LIBS="$LIBS" |
|
|
11245 | LIBS="$LIBS $X_LIBS" |
13114 | |
11246 | |
13115 | for ac_header in X11/Xft/Xft.h |
11247 | for ac_header in X11/Xft/Xft.h |
13116 | do |
11248 | do |
13117 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11249 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13118 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11250 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
13251 | support_xft=no |
11383 | support_xft=no |
13252 | fi |
11384 | fi |
13253 | |
11385 | |
13254 | done |
11386 | done |
13255 | |
11387 | |
13256 | |
|
|
13257 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11388 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13258 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11389 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13259 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11390 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13261 | else |
11392 | else |
13262 | ac_check_lib_save_LIBS=$LIBS |
11393 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13314 | LIBS=$ac_check_lib_save_LIBS |
11445 | LIBS=$ac_check_lib_save_LIBS |
13315 | fi |
11446 | fi |
13316 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11447 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13317 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11448 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13318 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11449 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13319 | cat >>confdefs.h <<_ACEOF |
11450 | : |
13320 | #define HAVE_LIBXFT 1 |
|
|
13321 | _ACEOF |
|
|
13322 | |
|
|
13323 | LIBS="-lXft $LIBS" |
|
|
13324 | |
|
|
13325 | else |
11451 | else |
13326 | support_xft=no |
11452 | support_xft=no |
13327 | fi |
11453 | fi |
13328 | |
11454 | |
|
|
11455 | LIBS="$save_LIBS" |
13329 | |
11456 | |
13330 | if test x$support_xft = xyes; then |
11457 | if test x$support_xft = xyes; then |
13331 | |
11458 | |
13332 | cat >>confdefs.h <<\_ACEOF |
11459 | cat >>confdefs.h <<\_ACEOF |
13333 | #define XFT 1 |
11460 | #define XFT 1 |
… | |
… | |
13361 | cat >>confdefs.h <<\_ACEOF |
11488 | cat >>confdefs.h <<\_ACEOF |
13362 | #define OFF_FOCUS_FADING 1 |
11489 | #define OFF_FOCUS_FADING 1 |
13363 | _ACEOF |
11490 | _ACEOF |
13364 | |
11491 | |
13365 | fi |
11492 | fi |
13366 | if test x$support_tinting = xyes; then |
11493 | if test x$support_inheritpixmap = xyes; then |
13367 | |
11494 | |
13368 | cat >>confdefs.h <<\_ACEOF |
11495 | cat >>confdefs.h <<\_ACEOF |
13369 | #define TINTING 1 |
|
|
13370 | _ACEOF |
|
|
13371 | |
|
|
13372 | fi |
|
|
13373 | if test x$support_inheritpixmap = xyes; then |
|
|
13374 | |
|
|
13375 | cat >>confdefs.h <<\_ACEOF |
|
|
13376 | #define TRANSPARENT 1 |
11496 | #define ENABLE_TRANSPARENCY 1 |
13377 | _ACEOF |
11497 | _ACEOF |
13378 | |
11498 | |
13379 | fi |
11499 | fi |
13380 | if test x$support_keepscrolling = xno; then |
11500 | if test x$support_keepscrolling = xno; then |
13381 | |
11501 | |
… | |
… | |
13410 | cat >>confdefs.h <<\_ACEOF |
11530 | cat >>confdefs.h <<\_ACEOF |
13411 | #define MOUSE_SLIP_WHEELING 1 |
11531 | #define MOUSE_SLIP_WHEELING 1 |
13412 | _ACEOF |
11532 | _ACEOF |
13413 | |
11533 | |
13414 | fi |
11534 | fi |
13415 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
11535 | if test x$support_afterimage = xyes; then |
13416 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
13417 | |
11536 | |
13418 | cat >>confdefs.h <<\_ACEOF |
11537 | cat >>confdefs.h <<\_ACEOF |
13419 | #define USE_XIM 1 |
11538 | #define HAVE_AFTERIMAGE 1 |
13420 | _ACEOF |
11539 | _ACEOF |
13421 | |
11540 | |
13422 | fi |
|
|
13423 | fi |
|
|
13424 | if test x$support_xpm = xyes; then |
|
|
13425 | |
11541 | |
13426 | cat >>confdefs.h <<\_ACEOF |
11542 | cat >>confdefs.h <<\_ACEOF |
13427 | #define XPM_BACKGROUND 1 |
11543 | #define BG_IMAGE_FROM_FILE 1 |
13428 | _ACEOF |
11544 | _ACEOF |
13429 | |
11545 | |
13430 | fi |
11546 | fi |
|
|
11547 | |
|
|
11548 | |
|
|
11549 | scrolltypes=plain |
|
|
11550 | |
|
|
11551 | cat >>confdefs.h <<\_ACEOF |
|
|
11552 | #define PLAIN_SCROLLBAR 1 |
|
|
11553 | _ACEOF |
|
|
11554 | |
|
|
11555 | |
13431 | if test x$support_scroll_rxvt = xyes; then |
11556 | if test x$support_scroll_rxvt = xyes; then |
13432 | |
11557 | |
13433 | cat >>confdefs.h <<\_ACEOF |
11558 | cat >>confdefs.h <<\_ACEOF |
13434 | #define RXVT_SCROLLBAR 1 |
11559 | #define RXVT_SCROLLBAR 1 |
13435 | _ACEOF |
11560 | _ACEOF |
13436 | |
11561 | |
13437 | scrolltypes="rxvt" |
11562 | scrolltypes="$scrolltypes rxvt" |
13438 | fi |
11563 | fi |
13439 | if test x$support_scroll_next = xyes; then |
11564 | if test x$support_scroll_next = xyes; then |
13440 | |
11565 | |
13441 | cat >>confdefs.h <<\_ACEOF |
11566 | cat >>confdefs.h <<\_ACEOF |
13442 | #define NEXT_SCROLLBAR 1 |
11567 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
13449 | cat >>confdefs.h <<\_ACEOF |
11574 | cat >>confdefs.h <<\_ACEOF |
13450 | #define XTERM_SCROLLBAR 1 |
11575 | #define XTERM_SCROLLBAR 1 |
13451 | _ACEOF |
11576 | _ACEOF |
13452 | |
11577 | |
13453 | scrolltypes="$scrolltypes xterm" |
11578 | scrolltypes="$scrolltypes xterm" |
13454 | fi |
|
|
13455 | if test x$support_scroll_plain = xyes; then |
|
|
13456 | |
|
|
13457 | cat >>confdefs.h <<\_ACEOF |
|
|
13458 | #define PLAIN_SCROLLBAR 1 |
|
|
13459 | _ACEOF |
|
|
13460 | |
|
|
13461 | scrolltypes="$scrolltypes plain" |
|
|
13462 | fi |
11579 | fi |
13463 | if test x$support_pointer_blank = xyes; then |
11580 | if test x$support_pointer_blank = xyes; then |
13464 | |
11581 | |
13465 | cat >>confdefs.h <<\_ACEOF |
11582 | cat >>confdefs.h <<\_ACEOF |
13466 | #define POINTER_BLANK 1 |
11583 | #define POINTER_BLANK 1 |
… | |
… | |
13703 | |
11820 | |
13704 | |
11821 | |
13705 | |
11822 | |
13706 | |
11823 | |
13707 | |
11824 | |
13708 | if test x$support_perl = xyes; then |
|
|
13709 | support_frills=yes |
|
|
13710 | fi |
|
|
13711 | |
11825 | |
13712 | |
11826 | |
13713 | |
11827 | |
13714 | |
11828 | |
13715 | |
11829 | |
13716 | |
11830 | |
13717 | |
11831 | |
13718 | |
|
|
13719 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13720 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
13721 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13722 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13723 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13724 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13725 | fi |
|
|
13726 | |
11832 | |
13727 | |
11833 | |
13728 | |
11834 | |
13729 | |
11835 | |
13730 | |
11836 | |
… | |
… | |
13740 | _ACEOF |
11846 | _ACEOF |
13741 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11847 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13742 | rm -f conftest.sed |
11848 | rm -f conftest.sed |
13743 | |
11849 | |
13744 | |
11850 | |
13745 | |
|
|
13746 | |
|
|
13747 | |
|
|
13748 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13749 | include_stdint_h="#include <stdint.h>" |
|
|
13750 | else |
|
|
13751 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13752 | fi |
|
|
13753 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13754 | include_stdarg_h="#include <cstdarg>" |
|
|
13755 | else |
|
|
13756 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13757 | fi |
|
|
13758 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13759 | include_stdlib_h="#include <cstdlib>" |
|
|
13760 | else |
|
|
13761 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13762 | fi |
|
|
13763 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13764 | include_unistd_h="#include <unistd.h>" |
|
|
13765 | else |
|
|
13766 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13767 | fi |
|
|
13768 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13769 | include_string_h="#include <cstring>" |
|
|
13770 | else |
|
|
13771 | include_string_h="/* #include <cstring> */" |
|
|
13772 | fi |
|
|
13773 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13774 | include_fcntl_h="#include <fcntl.h>" |
|
|
13775 | else |
|
|
13776 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13777 | fi |
|
|
13778 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13779 | include_util_h="#include <util.h>" |
|
|
13780 | else |
|
|
13781 | include_util_h="/* #include <util.h> */" |
|
|
13782 | fi |
|
|
13783 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13784 | include_assert_h="#include <assert.h>" |
|
|
13785 | else |
|
|
13786 | include_assert_h="/* #include <assert.h> */" |
|
|
13787 | fi |
|
|
13788 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13789 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13790 | else |
|
|
13791 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13792 | fi |
|
|
13793 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13794 | include_sys_select_h="#include <sys/select.h>" |
|
|
13795 | else |
|
|
13796 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13797 | fi |
|
|
13798 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13799 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13800 | else |
|
|
13801 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13802 | fi |
|
|
13803 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13804 | include_sys_time_h="#include <sys/time.h>" |
|
|
13805 | else |
|
|
13806 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13807 | fi |
|
|
13808 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13809 | include_time_h="#include <time.h>" |
|
|
13810 | else |
|
|
13811 | include_time_h="/* #include <time.h> */" |
|
|
13812 | fi |
|
|
13813 | |
|
|
13814 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11851 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13815 | |
11852 | |
13816 | cat >confcache <<\_ACEOF |
11853 | cat >confcache <<\_ACEOF |
13817 | # This file is a shell script that caches the results of configure |
11854 | # This file is a shell script that caches the results of configure |
13818 | # tests run on this system so they can be shared between configure |
11855 | # tests run on this system so they can be shared between configure |
13819 | # scripts and configure runs, see configure's option --config-cache. |
11856 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14368 | case $ac_config_target in |
12405 | case $ac_config_target in |
14369 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12406 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14370 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12407 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14371 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12408 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14372 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12409 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14373 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14374 | |
12410 | |
14375 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12411 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14376 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12412 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14377 | { (exit 1); exit 1; }; };; |
12413 | { (exit 1); exit 1; }; };; |
14378 | esac |
12414 | esac |
… | |
… | |
14477 | host_cpu!$host_cpu$ac_delim |
12513 | host_cpu!$host_cpu$ac_delim |
14478 | host_vendor!$host_vendor$ac_delim |
12514 | host_vendor!$host_vendor$ac_delim |
14479 | host_os!$host_os$ac_delim |
12515 | host_os!$host_os$ac_delim |
14480 | VERSION!$VERSION$ac_delim |
12516 | VERSION!$VERSION$ac_delim |
14481 | DATE!$DATE$ac_delim |
12517 | DATE!$DATE$ac_delim |
14482 | LSMDATE!$LSMDATE$ac_delim |
|
|
14483 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14484 | CC!$CC$ac_delim |
12518 | CC!$CC$ac_delim |
14485 | CFLAGS!$CFLAGS$ac_delim |
12519 | CFLAGS!$CFLAGS$ac_delim |
14486 | LDFLAGS!$LDFLAGS$ac_delim |
12520 | LDFLAGS!$LDFLAGS$ac_delim |
14487 | CPPFLAGS!$CPPFLAGS$ac_delim |
12521 | CPPFLAGS!$CPPFLAGS$ac_delim |
14488 | ac_ct_CC!$ac_ct_CC$ac_delim |
12522 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14496 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12530 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14497 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12531 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14498 | GREP!$GREP$ac_delim |
12532 | GREP!$GREP$ac_delim |
14499 | EGREP!$EGREP$ac_delim |
12533 | EGREP!$EGREP$ac_delim |
14500 | LINKER!$LINKER$ac_delim |
12534 | LINKER!$LINKER$ac_delim |
14501 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14502 | RXVTNAME!$RXVTNAME$ac_delim |
12535 | RXVTNAME!$RXVTNAME$ac_delim |
14503 | MV!$MV$ac_delim |
|
|
14504 | CP!$CP$ac_delim |
12536 | CXXCPP!$CXXCPP$ac_delim |
14505 | LN!$LN$ac_delim |
|
|
14506 | SED!$SED$ac_delim |
|
|
14507 | ECHO!$ECHO$ac_delim |
|
|
14508 | CMP!$CMP$ac_delim |
|
|
14509 | TIC!$TIC$ac_delim |
12537 | TIC!$TIC$ac_delim |
14510 | XMKMF!$XMKMF$ac_delim |
12538 | XMKMF!$XMKMF$ac_delim |
14511 | CXXCPP!$CXXCPP$ac_delim |
|
|
14512 | X_CFLAGS!$X_CFLAGS$ac_delim |
12539 | X_CFLAGS!$X_CFLAGS$ac_delim |
14513 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12540 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14514 | X_LIBS!$X_LIBS$ac_delim |
12541 | X_LIBS!$X_LIBS$ac_delim |
14515 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12542 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14516 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
12543 | afterimage_config!$afterimage_config$ac_delim |
14517 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14518 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14519 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14520 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14521 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14522 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14523 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14524 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14525 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12544 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14526 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12545 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14527 | PERL!$PERL$ac_delim |
12546 | PERL!$PERL$ac_delim |
14528 | PERLLIB!$PERLLIB$ac_delim |
12547 | PERLLIB!$PERLLIB$ac_delim |
14529 | PERLFLAGS!$PERLFLAGS$ac_delim |
12548 | PERLFLAGS!$PERLFLAGS$ac_delim |
14530 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12549 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
14531 | IF_PERL!$IF_PERL$ac_delim |
12550 | IF_PERL!$IF_PERL$ac_delim |
|
|
12551 | PERL_O!$PERL_O$ac_delim |
|
|
12552 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
|
|
12553 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
|
|
12554 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12555 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14532 | _ACEOF |
12556 | _ACEOF |
14533 | |
12557 | |
14534 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12558 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14535 | break |
12559 | break |
14536 | elif $ac_last_try; then |
12560 | elif $ac_last_try; then |
14537 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12561 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14538 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12562 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14539 | { (exit 1); exit 1; }; } |
12563 | { (exit 1); exit 1; }; } |
… | |
… | |
14548 | ac_eof=`expr $ac_eof + 1` |
12572 | ac_eof=`expr $ac_eof + 1` |
14549 | fi |
12573 | fi |
14550 | |
12574 | |
14551 | cat >>$CONFIG_STATUS <<_ACEOF |
12575 | cat >>$CONFIG_STATUS <<_ACEOF |
14552 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12576 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14553 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14554 | _ACEOF |
|
|
14555 | sed ' |
|
|
14556 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14557 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14558 | :n |
|
|
14559 | t n |
|
|
14560 | s/'"$ac_delim"'$/,g/; t |
|
|
14561 | s/$/\\/; p |
|
|
14562 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14563 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14564 | rm -f conf$$subs.sed |
|
|
14565 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14566 | CEOF$ac_eof |
|
|
14567 | _ACEOF |
|
|
14568 | |
|
|
14569 | |
|
|
14570 | ac_delim='%!_!# ' |
|
|
14571 | for ac_last_try in false false false false false :; do |
|
|
14572 | cat >conf$$subs.sed <<_ACEOF |
|
|
14573 | PERL_O!$PERL_O$ac_delim |
|
|
14574 | DEBUG!$DEBUG$ac_delim |
|
|
14575 | DINCLUDE!$DINCLUDE$ac_delim |
|
|
14576 | DLIB!$DLIB$ac_delim |
|
|
14577 | include_stdint_h!$include_stdint_h$ac_delim |
|
|
14578 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14579 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14580 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14581 | include_string_h!$include_string_h$ac_delim |
|
|
14582 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14583 | include_util_h!$include_util_h$ac_delim |
|
|
14584 | include_assert_h!$include_assert_h$ac_delim |
|
|
14585 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14586 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14587 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14588 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14589 | include_time_h!$include_time_h$ac_delim |
|
|
14590 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14591 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14592 | _ACEOF |
|
|
14593 | |
|
|
14594 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then |
|
|
14595 | break |
|
|
14596 | elif $ac_last_try; then |
|
|
14597 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14598 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14599 | { (exit 1); exit 1; }; } |
|
|
14600 | else |
|
|
14601 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14602 | fi |
|
|
14603 | done |
|
|
14604 | |
|
|
14605 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14606 | if test -n "$ac_eof"; then |
|
|
14607 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14608 | ac_eof=`expr $ac_eof + 1` |
|
|
14609 | fi |
|
|
14610 | |
|
|
14611 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14612 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14613 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12577 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14614 | _ACEOF |
12578 | _ACEOF |
14615 | sed ' |
12579 | sed ' |
14616 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12580 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14617 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12581 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
14870 | s&@builddir@&$ac_builddir&;t t |
12834 | s&@builddir@&$ac_builddir&;t t |
14871 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12835 | s&@abs_builddir@&$ac_abs_builddir&;t t |
14872 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12836 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
14873 | s&@INSTALL@&$ac_INSTALL&;t t |
12837 | s&@INSTALL@&$ac_INSTALL&;t t |
14874 | $ac_datarootdir_hack |
12838 | $ac_datarootdir_hack |
14875 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12839 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
14876 | |
12840 | |
14877 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12841 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14878 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12842 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
14879 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12843 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
14880 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12844 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
… | |
… | |
15028 | Install path: ${prefix}/bin |
12992 | Install path: ${prefix}/bin |
15029 | Compiler: $CXX |
12993 | Compiler: $CXX |
15030 | Compiler flags: $CXXFLAGS |
12994 | Compiler flags: $CXXFLAGS |
15031 | Linker: $LINKER" |
12995 | Linker: $LINKER" |
15032 | |
12996 | |
15033 | if test x$support_xpm = xyes; then |
|
|
15034 | echo " Xpm library: $XPM_LIBS" |
|
|
15035 | fi |
|
|
15036 | |
|
|
15037 | if test x$term != x; then |
12997 | if test x$term != x; then |
15038 | echo " set TERM to: $term" |
12998 | echo " set TERM to: $term" |
15039 | fi |
12999 | fi |
15040 | if test x$terminfo != x; then |
13000 | if test x$terminfo != x; then |
15041 | echo " set TERMINFO to: $terminfo" |
13001 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
15045 | if test x$RESFALLBACK != x; then |
13005 | if test x$RESFALLBACK != x; then |
15046 | echo " resource class fallback: $RESFALLBACK" |
13006 | echo " resource class fallback: $RESFALLBACK" |
15047 | fi |
13007 | fi |
15048 | echo |
13008 | echo |
15049 | echo " embedded perl: $support_perl" |
13009 | echo " embedded perl: $support_perl" |
|
|
13010 | echo " libafterimage: $support_afterimage" |
15050 | echo |
13011 | echo |
15051 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
15052 | echo ".----------------------------------------------------------------." |
|
|
15053 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
15054 | echo ". XPM includes files and libraries could not be found. ." |
|
|
15055 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
15056 | echo ". to use them you should rerun configure with the ." |
|
|
15057 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
15058 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
15059 | echo ".----------------------------------------------------------------." |
|
|
15060 | fi |
|
|
15061 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
13012 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
15062 | echo ".----------------------------------------------------------------." |
13013 | echo ".----------------------------------------------------------------." |
15063 | echo ". WARNING: --enable-xim was specified however the locale support ." |
13014 | echo ". WARNING: --enable-xim was specified however the locale support ." |
15064 | echo ". functions could not be found. ." |
13015 | echo ". functions could not be found. ." |
15065 | echo ". XIM is now being DISABLED! ." |
13016 | echo ". XIM is now being DISABLED! ." |