… | |
… | |
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 | afterimage_config |
688 | afterimage_config |
698 | XPM_CPPFLAGS |
|
|
699 | XPM_CFLAGS |
|
|
700 | XPM_LIBS |
|
|
701 | rxvt_int16_typedef |
|
|
702 | rxvt_uint16_typedef |
|
|
703 | rxvt_int32_typedef |
|
|
704 | rxvt_uint32_typedef |
|
|
705 | rxvt_intp_define |
|
|
706 | rxvt_u_intp_define |
|
|
707 | PKG_CONFIG |
689 | PKG_CONFIG |
708 | XFT_CONFIG |
690 | XFT_CONFIG |
709 | PERL |
691 | PERL |
710 | PERLLIB |
692 | PERLLIB |
711 | PERLFLAGS |
693 | PERLFLAGS |
712 | PERLPRIVLIBEXP |
694 | PERLPRIVLIBEXP |
713 | IF_PERL |
695 | IF_PERL |
714 | PERL_O |
696 | PERL_O |
715 | DEBUG |
|
|
716 | DINCLUDE |
|
|
717 | DLIB |
|
|
718 | LIBAFTERIMAGE_CFLAGS |
697 | AFTERIMAGE_CFLAGS |
719 | AFTERIMAGE_LIBS |
698 | AFTERIMAGE_LIBS |
720 | include_stdint_h |
|
|
721 | include_stdarg_h |
|
|
722 | include_stdlib_h |
|
|
723 | include_unistd_h |
|
|
724 | include_string_h |
|
|
725 | include_fcntl_h |
|
|
726 | include_util_h |
|
|
727 | include_assert_h |
|
|
728 | include_sys_ioctl_h |
|
|
729 | include_sys_select_h |
|
|
730 | include_sys_strredir_h |
|
|
731 | include_sys_time_h |
|
|
732 | include_time_h |
|
|
733 | LIBOBJS |
699 | LIBOBJS |
734 | LTLIBOBJS' |
700 | LTLIBOBJS' |
735 | ac_subst_files='' |
701 | ac_subst_files='' |
736 | ac_precious_vars='build_alias |
702 | ac_precious_vars='build_alias |
737 | host_alias |
703 | host_alias |
… | |
… | |
743 | CPPFLAGS |
709 | CPPFLAGS |
744 | CXX |
710 | CXX |
745 | CXXFLAGS |
711 | CXXFLAGS |
746 | CCC |
712 | CCC |
747 | CPP |
713 | CPP |
748 | XMKMF |
|
|
749 | CXXCPP' |
714 | CXXCPP |
|
|
715 | XMKMF' |
750 | |
716 | |
751 | |
717 | |
752 | # Initialize some variables set by options. |
718 | # Initialize some variables set by options. |
753 | ac_init_help= |
719 | ac_init_help= |
754 | ac_init_version=false |
720 | ac_init_version=false |
… | |
… | |
1327 | |
1293 | |
1328 | Optional Features: |
1294 | Optional Features: |
1329 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1330 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1331 | --enable-everything enable standard non-multichoice features |
1297 | --enable-everything enable standard non-multichoice features |
1332 | NOTE: this option is order dependent |
1298 | NOTE: this option is order dependent |
1333 | NOTE: automatically enabled with --enable-shared |
1299 | --enable-warnings turn on g++ warnings |
1334 | --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 |
1335 | --enable-combining enable composition of base and combining characters |
1301 | --enable-combining enable composition of base and combining characters |
1336 | --enable-xft enable xft support on systems that have it |
1302 | --enable-xft enable xft support on systems that have it |
1337 | --enable-font-styles enable bold and italic support |
1303 | --enable-font-styles enable bold and italic support |
1338 | --enable-xpm-background enable background pixmaps |
|
|
1339 | --enable-afterimage enable integration with libAfterImage for background images |
1304 | --enable-afterimage enable integration with libAfterImage for background images |
1340 | --enable-afterstep enable integration with AfterStep window manager |
|
|
1341 | --enable-transparency enable transparent backgrounds |
1305 | --enable-transparency enable transparent backgrounds |
1342 | --enable-tinting enable tinting of transparent bg |
|
|
1343 | --enable-fading enable colors fading when off focus |
1306 | --enable-fading enable colors fading when off focus |
1344 | --enable-rxvt-scroll enable rxvt style scrollbar |
1307 | --enable-rxvt-scroll enable rxvt style scrollbar |
1345 | --enable-next-scroll enable NeXT style scrollbar |
1308 | --enable-next-scroll enable NeXT style scrollbar |
1346 | --enable-xterm-scroll enable Xterm style scrollbar |
1309 | --enable-xterm-scroll enable Xterm style scrollbar |
1347 | --enable-perl enable embedded perl interpreter |
1310 | --enable-perl enable embedded perl interpreter |
1348 | --enable-plain-scroll enable plain style scrollbar |
|
|
1349 | --enable-xim XIM (X Input Method) protocol support |
1311 | --enable-xim XIM (X Input Method) protocol support |
1350 | --disable-backspace-key disable handling of the backspace key |
1312 | --disable-backspace-key disable handling of the backspace key |
1351 | --disable-delete-key disable handling of the delete key |
1313 | --disable-delete-key disable handling of the delete key |
1352 | --disable-resources disable all resource checking |
1314 | --disable-resources disable all resource checking |
1353 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1315 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1354 | --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) |
1355 | --disable-swapscreen disable swap screen support |
1317 | --disable-swapscreen disable swap screen support |
1356 | --enable-iso14755 enable support for extended ISO 14755 modes |
1318 | --enable-iso14755 enable support for extended ISO 14755 modes |
1357 | --enable-frills enable support for rarely used features |
1319 | --enable-frills enable support for rarely used features |
1358 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1320 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1359 | --enable-selectionscrolling enable scrolling during selections |
1321 | --enable-selectionscrolling enable scrolling during selections |
1360 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1322 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1361 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1323 | --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel) |
1362 | --enable-smart-resize enable smart growth/shrink behaviour |
1324 | --enable-smart-resize enable smart growth/shrink behaviour |
1363 | --enable-text-blink enable blinking text |
1325 | --enable-text-blink enable blinking text |
1364 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1326 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1365 | --enable-utmp enable utmp (utmpx) support |
1327 | --enable-utmp enable utmp (utmpx) support |
1366 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1328 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
… | |
… | |
1368 | |
1330 | |
1369 | Optional Packages: |
1331 | Optional Packages: |
1370 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1332 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1371 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1333 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1372 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1334 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
1373 | --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) |
1374 | --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) |
1375 | --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) |
1376 | --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) |
1377 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1339 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1378 | --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 |
1379 | --with-x use the X Window System |
1341 | --with-x use the X Window System |
1380 | --with-xpm-includes=DIR use XPM includes in DIR |
|
|
1381 | --with-xpm-library=DIR use XPM library in DIR |
|
|
1382 | --with-xpm use XPM |
|
|
1383 | |
1342 | |
1384 | Some influential environment variables: |
1343 | Some influential environment variables: |
1385 | CC C compiler command |
1344 | CC C compiler command |
1386 | CFLAGS C compiler flags |
1345 | CFLAGS C compiler flags |
1387 | 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 |
… | |
… | |
1390 | 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 |
1391 | you have headers in a nonstandard directory <include dir> |
1350 | you have headers in a nonstandard directory <include dir> |
1392 | CXX C++ compiler command |
1351 | CXX C++ compiler command |
1393 | CXXFLAGS C++ compiler flags |
1352 | CXXFLAGS C++ compiler flags |
1394 | CPP C preprocessor |
1353 | CPP C preprocessor |
|
|
1354 | CXXCPP C++ preprocessor |
1395 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1355 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1396 | CXXCPP C++ preprocessor |
|
|
1397 | |
1356 | |
1398 | 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 |
1399 | it to find libraries and programs with nonstandard names/locations. |
1358 | it to find libraries and programs with nonstandard names/locations. |
1400 | |
1359 | |
1401 | _ACEOF |
1360 | _ACEOF |
… | |
… | |
1937 | |
1896 | |
1938 | |
1897 | |
1939 | |
1898 | |
1940 | 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` |
1941 | 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 | |
1942 | echo "" |
1902 | echo "" |
1943 | echo "configuring for rxvt $VERSION" |
1903 | echo "configuring for rxvt $VERSION" |
1944 | echo "" |
1904 | echo "" |
1945 | |
1905 | |
1946 | orig_CXXFLAGS="$CXXFLAGS" |
1906 | orig_CXXFLAGS="$CXXFLAGS" |
1947 | |
|
|
1948 | |
1907 | |
1949 | ac_ext=c |
1908 | ac_ext=c |
1950 | ac_cpp='$CPP $CPPFLAGS' |
1909 | ac_cpp='$CPP $CPPFLAGS' |
1951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1910 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1952 | 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' |
… | |
… | |
3731 | echo "${ECHO_T}no" >&6; } |
3690 | echo "${ECHO_T}no" >&6; } |
3732 | fi |
3691 | fi |
3733 | rm -f conftest* |
3692 | rm -f conftest* |
3734 | |
3693 | |
3735 | |
3694 | |
|
|
3695 | |
|
|
3696 | cat >>confdefs.h <<\_ACEOF |
|
|
3697 | #define _GNU_SOURCE 1 |
|
|
3698 | _ACEOF |
|
|
3699 | |
|
|
3700 | |
3736 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3701 | { echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
3737 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3702 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } |
3738 | if test "${ac_cv_search_strerror+set}" = set; then |
3703 | if test "${ac_cv_search_strerror+set}" = set; then |
3739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3740 | else |
3705 | else |
… | |
… | |
3887 | LINKER=$LINKER |
3852 | LINKER=$LINKER |
3888 | |
3853 | |
3889 | |
3854 | |
3890 | if test -z "$orig_CXXFLAGS"; then |
3855 | if test -z "$orig_CXXFLAGS"; then |
3891 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3856 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3892 | 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" |
3893 | cat >conftest.$ac_ext <<_ACEOF |
3858 | cat >conftest.$ac_ext <<_ACEOF |
3894 | /* confdefs.h. */ |
3859 | /* confdefs.h. */ |
3895 | _ACEOF |
3860 | _ACEOF |
3896 | cat confdefs.h >>conftest.$ac_ext |
3861 | cat confdefs.h >>conftest.$ac_ext |
3897 | cat >>conftest.$ac_ext <<_ACEOF |
3862 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
3935 | CXXFLAGS="-O" |
3900 | CXXFLAGS="-O" |
3936 | fi |
3901 | fi |
3937 | CFLAGS="$CXXFLAGS" |
3902 | CFLAGS="$CXXFLAGS" |
3938 | fi |
3903 | fi |
3939 | |
3904 | |
3940 | |
|
|
3941 | cat >>confdefs.h <<\_ACEOF |
|
|
3942 | #define _GNU_SOURCE 1 |
|
|
3943 | _ACEOF |
|
|
3944 | |
|
|
3945 | |
|
|
3946 | case $host in |
3905 | case $host in |
3947 | *-*-solaris* ) |
3906 | *-*-solaris* ) |
3948 | |
3907 | |
3949 | cat >>confdefs.h <<\_ACEOF |
3908 | cat >>confdefs.h <<\_ACEOF |
3950 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3951 | _ACEOF |
|
|
3952 | |
|
|
3953 | |
|
|
3954 | cat >>confdefs.h <<\_ACEOF |
|
|
3955 | #define _XOPEN_SOURCE 2 |
3909 | #define _XOPEN_SOURCE 500 |
3956 | _ACEOF |
|
|
3957 | |
|
|
3958 | |
|
|
3959 | cat >>confdefs.h <<\_ACEOF |
|
|
3960 | #define __EXTENSIONS__ 1 |
|
|
3961 | _ACEOF |
3910 | _ACEOF |
3962 | |
3911 | |
3963 | ;; |
3912 | ;; |
3964 | esac |
3913 | esac |
3965 | |
|
|
3966 | |
3914 | |
3967 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3915 | { echo "$as_me:$LINENO: checking for setlocale" >&5 |
3968 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3916 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } |
3969 | if test "${ac_cv_func_setlocale+set}" = set; then |
3917 | if test "${ac_cv_func_setlocale+set}" = set; then |
3970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
4417 | fi |
4365 | fi |
4418 | |
4366 | |
4419 | fi |
4367 | fi |
4420 | |
4368 | |
4421 | |
4369 | |
4422 | |
|
|
4423 | support_frills=yes |
4370 | support_frills=yes |
4424 | support_inheritpixmap=yes |
4371 | support_inheritpixmap=yes |
4425 | support_tinting=yes |
|
|
4426 | support_fading=yes |
4372 | support_fading=yes |
4427 | support_keepscrolling=yes |
4373 | support_keepscrolling=yes |
4428 | support_selectionscrolling=yes |
4374 | support_selectionscrolling=yes |
4429 | support_mousewheel=yes |
4375 | support_mousewheel=yes |
4430 | support_mouseslipwheel=yes |
4376 | support_mouseslipwheel=yes |
4431 | support_text_blink=yes |
4377 | support_text_blink=yes |
4432 | support_pointer_blank=yes |
4378 | support_pointer_blank=yes |
4433 | support_scroll_rxvt=yes |
4379 | support_scroll_rxvt=yes |
4434 | support_scroll_next=yes |
4380 | support_scroll_next=yes |
4435 | support_scroll_xterm=yes |
4381 | support_scroll_xterm=yes |
4436 | support_scroll_plain=yes |
|
|
4437 | support_xim=yes |
4382 | support_xim=yes |
4438 | support_xpm=yes |
|
|
4439 | support_afterimage=yes |
4383 | support_afterimage=yes |
4440 | support_afterstep=yes |
4384 | support_afterstep=yes |
4441 | support_xft=yes |
4385 | support_xft=yes |
4442 | support_unicode3=no |
4386 | support_unicode3=no |
4443 | support_combining=yes |
4387 | support_combining=yes |
… | |
… | |
4446 | support_styles=yes |
4390 | support_styles=yes |
4447 | support_perl=yes |
4391 | support_perl=yes |
4448 | codesets=all |
4392 | codesets=all |
4449 | |
4393 | |
4450 | |
4394 | |
4451 | if test "x$enable_shared" = xyes; then |
|
|
4452 | |
|
|
4453 | cat >>confdefs.h <<\_ACEOF |
|
|
4454 | #define LIBRXVT 1 |
|
|
4455 | _ACEOF |
|
|
4456 | |
|
|
4457 | INSTALL_LIBRXVT=yes |
|
|
4458 | fi |
|
|
4459 | |
|
|
4460 | |
|
|
4461 | # Check whether --enable-everything was given. |
4395 | # Check whether --enable-everything was given. |
4462 | if test "${enable_everything+set}" = set; then |
4396 | if test "${enable_everything+set}" = set; then |
4463 | enableval=$enable_everything; |
4397 | enableval=$enable_everything; |
4464 | if test x$enableval = xno; then |
4398 | if test x$enableval = xno; then |
4465 | support_frills=no |
4399 | support_frills=no |
4466 | support_inheritpixmap=no |
4400 | support_inheritpixmap=no |
4467 | support_tinting=no |
|
|
4468 | support_fading=no |
4401 | support_fading=no |
4469 | support_keepscrolling=no |
4402 | support_keepscrolling=no |
4470 | support_selectionscrolling=no |
4403 | support_selectionscrolling=no |
4471 | support_lastlog=no |
4404 | support_lastlog=no |
4472 | support_mousewheel=no |
4405 | support_mousewheel=no |
… | |
… | |
4474 | support_text_blink=no |
4407 | support_text_blink=no |
4475 | support_pointer_blank=no |
4408 | support_pointer_blank=no |
4476 | support_scroll_rxvt=no |
4409 | support_scroll_rxvt=no |
4477 | support_scroll_next=no |
4410 | support_scroll_next=no |
4478 | support_scroll_xterm=no |
4411 | support_scroll_xterm=no |
4479 | support_scroll_plain=no |
|
|
4480 | support_utmp=no |
4412 | support_utmp=no |
4481 | support_wtmp=no |
4413 | support_wtmp=no |
4482 | support_xim=no |
4414 | support_xim=no |
4483 | support_xpm=no |
|
|
4484 | support_afterimage=no |
4415 | support_afterimage=no |
4485 | support_afterstep=no |
4416 | support_afterstep=no |
4486 | support_xft=no |
4417 | support_xft=no |
4487 | support_unicode3=no |
4418 | support_unicode3=no |
4488 | support_combining=no |
4419 | support_combining=no |
… | |
… | |
4493 | codesets= |
4424 | codesets= |
4494 | fi |
4425 | fi |
4495 | if test x$enableval = xyes; then |
4426 | if test x$enableval = xyes; then |
4496 | support_frills=yes |
4427 | support_frills=yes |
4497 | support_inheritpixmap=yes |
4428 | support_inheritpixmap=yes |
4498 | support_tinting=yes |
|
|
4499 | support_fading=yes |
4429 | support_fading=yes |
4500 | support_keepscrolling=yes |
4430 | support_keepscrolling=yes |
4501 | support_selectionscrolling=yes |
4431 | support_selectionscrolling=yes |
4502 | support_lastlog=yes |
4432 | support_lastlog=yes |
4503 | support_mousewheel=yes |
4433 | support_mousewheel=yes |
… | |
… | |
4505 | support_text_blink=yes |
4435 | support_text_blink=yes |
4506 | support_pointer_blank=yes |
4436 | support_pointer_blank=yes |
4507 | support_scroll_rxvt=yes |
4437 | support_scroll_rxvt=yes |
4508 | support_scroll_next=yes |
4438 | support_scroll_next=yes |
4509 | support_scroll_xterm=yes |
4439 | support_scroll_xterm=yes |
4510 | support_scroll_plain=yes |
|
|
4511 | support_utmp=yes |
4440 | support_utmp=yes |
4512 | support_wtmp=yes |
4441 | support_wtmp=yes |
4513 | support_xim=yes |
4442 | support_xim=yes |
4514 | support_xpm=yes |
|
|
4515 | support_afterimage=yes |
4443 | support_afterimage=yes |
4516 | support_afterstep=yes |
4444 | support_afterstep=yes |
4517 | support_xft=yes |
4445 | support_xft=yes |
4518 | support_unicode3=yes |
4446 | support_unicode3=yes |
4519 | support_combining=yes |
4447 | support_combining=yes |
… | |
… | |
4525 | fi |
4453 | fi |
4526 | |
4454 | |
4527 | fi |
4455 | fi |
4528 | |
4456 | |
4529 | |
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 | |
4530 | # Check whether --enable-unicode3 was given. |
4516 | # Check whether --enable-unicode3 was given. |
4531 | if test "${enable_unicode3+set}" = set; then |
4517 | if test "${enable_unicode3+set}" = set; then |
4532 | 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 |
4533 | support_unicode3=$enableval |
4519 | support_unicode3=$enableval |
4534 | fi |
4520 | fi |
… | |
… | |
4557 | support_styles=$enableval |
4543 | support_styles=$enableval |
4558 | fi |
4544 | fi |
4559 | fi |
4545 | fi |
4560 | |
4546 | |
4561 | |
4547 | |
4562 | # Check whether --enable-xpm-background was given. |
|
|
4563 | if test "${enable_xpm_background+set}" = set; then |
|
|
4564 | enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4565 | support_xpm=$enableval |
|
|
4566 | fi |
|
|
4567 | fi |
|
|
4568 | |
|
|
4569 | |
|
|
4570 | # Check whether --enable-afterimage was given. |
4548 | # Check whether --enable-afterimage was given. |
4571 | if test "${enable_afterimage+set}" = set; then |
4549 | if test "${enable_afterimage+set}" = set; then |
4572 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4550 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
4573 | support_afterimage=$enableval |
4551 | support_afterimage=$enableval |
4574 | fi |
4552 | fi |
… | |
… | |
4576 | |
4554 | |
4577 | |
4555 | |
4578 | |
4556 | |
4579 | # Check whether --with-afterimage_config was given. |
4557 | # Check whether --with-afterimage_config was given. |
4580 | if test "${with_afterimage_config+set}" = set; then |
4558 | if test "${with_afterimage_config+set}" = set; then |
4581 | withval=$with_afterimage_config; afterimage_config="$withval" |
4559 | withval=$with_afterimage_config; if test "x$withval" != x; then |
4582 | fi |
4560 | afterimage_config=$withval/afterimage-config |
4583 | |
|
|
4584 | |
|
|
4585 | # Check whether --enable-afterstep was given. |
|
|
4586 | if test "${enable_afterstep+set}" = set; then |
|
|
4587 | enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4588 | support_afterstep=$enableval |
|
|
4589 | fi |
4561 | fi |
4590 | fi |
4562 | fi |
|
|
4563 | |
4591 | |
4564 | |
4592 | |
4565 | |
4593 | # Check whether --enable-transparency was given. |
4566 | # Check whether --enable-transparency was given. |
4594 | if test "${enable_transparency+set}" = set; then |
4567 | if test "${enable_transparency+set}" = set; then |
4595 | 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 |
4596 | support_inheritpixmap=$enableval |
4569 | support_inheritpixmap=$enableval |
4597 | fi |
4570 | fi |
4598 | fi |
4571 | fi |
4599 | |
4572 | |
4600 | |
4573 | |
4601 | # Check whether --enable-tinting was given. |
|
|
4602 | if test "${enable_tinting+set}" = set; then |
|
|
4603 | enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4604 | support_tinting=$enableval |
|
|
4605 | fi |
|
|
4606 | fi |
|
|
4607 | |
|
|
4608 | |
|
|
4609 | # Check whether --enable-fading was given. |
4574 | # Check whether --enable-fading was given. |
4610 | if test "${enable_fading+set}" = set; then |
4575 | if test "${enable_fading+set}" = set; then |
4611 | 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 |
4612 | support_fading=$enableval |
4577 | support_fading=$enableval |
4613 | fi |
4578 | fi |
… | |
… | |
4640 | |
4605 | |
4641 | # Check whether --enable-perl was given. |
4606 | # Check whether --enable-perl was given. |
4642 | if test "${enable_perl+set}" = set; then |
4607 | if test "${enable_perl+set}" = set; then |
4643 | 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 |
4644 | support_perl=$enableval |
4609 | support_perl=$enableval |
4645 | fi |
|
|
4646 | fi |
|
|
4647 | |
|
|
4648 | |
|
|
4649 | # Check whether --enable-plain-scroll was given. |
|
|
4650 | if test "${enable_plain_scroll+set}" = set; then |
|
|
4651 | enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4652 | support_scroll_plain=$enableval |
|
|
4653 | fi |
4610 | fi |
4654 | fi |
4611 | fi |
4655 | |
4612 | |
4656 | |
4613 | |
4657 | |
4614 | |
… | |
… | |
4887 | fi |
4844 | fi |
4888 | fi |
4845 | fi |
4889 | |
4846 | |
4890 | |
4847 | |
4891 | |
4848 | |
4892 | # Extract the first word of "mv", so it can be a program name with args. |
4849 | LIBEV_M4_AVOID_LIBRT=1 |
4893 | set dummy mv; ac_word=$2 |
4850 | |
4894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4851 | ac_ext=cpp |
4895 | 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 |
4896 | if test "${ac_cv_path_MV+set}" = set; then |
4859 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
4897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4898 | else |
4861 | else |
4899 | case $MV in |
4862 | # Double quotes because CXXCPP needs to be expanded |
4900 | [\\/]* | ?:[\\/]*) |
4863 | for CXXCPP in "$CXX -E" "/lib/cpp" |
4901 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
4864 | do |
4902 | ;; |
4865 | ac_preproc_ok=false |
4903 | *) |
4866 | for ac_cxx_preproc_warn_flag in '' yes |
4904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4905 | for as_dir in $PATH |
|
|
4906 | do |
4867 | do |
4907 | IFS=$as_save_IFS |
4868 | # Use a header file that comes with gcc, so configuring glibc |
4908 | test -z "$as_dir" && as_dir=. |
4869 | # with a fresh cross-compiler works. |
4909 | for ac_exec_ext in '' $ac_executable_extensions; do |
4870 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4910 | 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. |
4911 | 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, |
4912 | 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. |
4913 | break 2 |
4874 | cat >conftest.$ac_ext <<_ACEOF |
4914 | 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 | |
4915 | 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 | |
4916 | done |
5058 | done |
4917 | IFS=$as_save_IFS |
5059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4918 | |
5060 | rm -f conftest.err conftest.$ac_ext |
4919 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
5061 | if $ac_preproc_ok; then |
4920 | ;; |
5062 | : |
4921 | esac |
|
|
4922 | fi |
|
|
4923 | MV=$ac_cv_path_MV |
|
|
4924 | if test -n "$MV"; then |
|
|
4925 | { echo "$as_me:$LINENO: result: $MV" >&5 |
|
|
4926 | echo "${ECHO_T}$MV" >&6; } |
|
|
4927 | else |
5063 | else |
4928 | { echo "$as_me:$LINENO: result: no" >&5 |
5064 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
4929 | 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; }; } |
4930 | fi |
5069 | fi |
4931 | |
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 |
4932 | |
5076 | |
4933 | # Extract the first word of "cp", so it can be a program name with args. |
5077 | |
4934 | set dummy cp; ac_word=$2 |
|
|
4935 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5078 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5079 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4937 | if test "${ac_cv_path_CP+set}" = set; then |
5080 | if test "${ac_cv_header_stdc+set}" = set; then |
4938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4939 | else |
5082 | else |
4940 | case $CP in |
5083 | cat >conftest.$ac_ext <<_ACEOF |
4941 | [\\/]* | ?:[\\/]*) |
5084 | /* confdefs.h. */ |
4942 | 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 | |
4943 | ;; |
5098 | ; |
4944 | *) |
5099 | return 0; |
4945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5100 | } |
4946 | 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 |
4947 | do |
5264 | do |
4948 | IFS=$as_save_IFS |
5265 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4949 | test -z "$as_dir" && as_dir=. |
5266 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4950 | for ac_exec_ext in '' $ac_executable_extensions; do |
5267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4951 | 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 |
4952 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
5269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5270 | else |
4954 | break 2 |
5271 | cat >conftest.$ac_ext <<_ACEOF |
4955 | 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 | |
4956 | 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 | |
4957 | done |
5466 | done |
4958 | IFS=$as_save_IFS |
|
|
4959 | |
5467 | |
4960 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
|
|
4961 | ;; |
|
|
4962 | esac |
|
|
4963 | fi |
|
|
4964 | CP=$ac_cv_path_CP |
|
|
4965 | if test -n "$CP"; then |
|
|
4966 | { echo "$as_me:$LINENO: result: $CP" >&5 |
|
|
4967 | echo "${ECHO_T}$CP" >&6; } |
|
|
4968 | else |
|
|
4969 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
4970 | echo "${ECHO_T}no" >&6; } |
|
|
4971 | fi |
|
|
4972 | |
5468 | |
4973 | |
5469 | |
4974 | # Extract the first word of "ln", so it can be a program name with args. |
5470 | |
4975 | 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` |
4976 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5479 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5480 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
4978 | if test "${ac_cv_path_LN+set}" = set; then |
5481 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
4979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4980 | else |
5483 | else |
4981 | case $LN in |
5484 | cat >conftest.$ac_ext <<_ACEOF |
4982 | [\\/]* | ?:[\\/]*) |
5485 | /* confdefs.h. */ |
4983 | 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 (); |
4984 | ;; |
5525 | ; |
4985 | *) |
5526 | return 0; |
4986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5527 | } |
4987 | 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 |
4988 | do |
5730 | do |
4989 | IFS=$as_save_IFS |
5731 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4990 | test -z "$as_dir" && as_dir=. |
5732 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4991 | for ac_exec_ext in '' $ac_executable_extensions; do |
5733 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
4992 | 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 |
4993 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
5735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5736 | else |
4995 | break 2 |
5737 | cat >conftest.$ac_ext <<_ACEOF |
4996 | 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 |
4997 | 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 |
4998 | done |
6077 | done |
4999 | IFS=$as_save_IFS |
|
|
5000 | |
6078 | |
5001 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
6079 | fi |
5002 | ;; |
|
|
5003 | esac |
|
|
5004 | fi |
|
|
5005 | LN=$ac_cv_path_LN |
|
|
5006 | if test -n "$LN"; then |
|
|
5007 | { echo "$as_me:$LINENO: result: $LN" >&5 |
|
|
5008 | echo "${ECHO_T}$LN" >&6; } |
|
|
5009 | else |
|
|
5010 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5011 | echo "${ECHO_T}no" >&6; } |
|
|
5012 | fi |
|
|
5013 | |
6080 | |
|
|
6081 | fi |
5014 | |
6082 | |
5015 | # Extract the first word of "sed", so it can be a program name with args. |
6083 | |
5016 | set dummy sed; ac_word=$2 |
6084 | |
5017 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6085 | { echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
5018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6086 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; } |
5019 | if test "${ac_cv_path_SED+set}" = set; then |
6087 | if test "${ac_cv_lib_m_ceil+set}" = set; then |
5020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5021 | else |
6089 | else |
5022 | case $SED in |
6090 | ac_check_lib_save_LIBS=$LIBS |
5023 | [\\/]* | ?:[\\/]*) |
6091 | LIBS="-lm $LIBS" |
5024 | 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 (); |
5025 | ;; |
6110 | ; |
5026 | *) |
6111 | return 0; |
5027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6112 | } |
5028 | for as_dir in $PATH |
6113 | _ACEOF |
5029 | do |
6114 | rm -f conftest.$ac_objext conftest$ac_exeext |
5030 | IFS=$as_save_IFS |
6115 | if { (ac_try="$ac_link" |
5031 | test -z "$as_dir" && as_dir=. |
6116 | case "(($ac_try" in |
5032 | for ac_exec_ext in '' $ac_executable_extensions; do |
6117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5033 | 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;; |
5034 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
|
|
5035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5036 | break 2 |
|
|
5037 | fi |
|
|
5038 | done |
|
|
5039 | done |
|
|
5040 | IFS=$as_save_IFS |
|
|
5041 | |
|
|
5042 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
|
|
5043 | ;; |
|
|
5044 | 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 |
5045 | fi |
6138 | fi |
5046 | SED=$ac_cv_path_SED |
6139 | |
5047 | 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 |
5048 | { echo "$as_me:$LINENO: result: $SED" >&5 |
6144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
5049 | echo "${ECHO_T}$SED" >&6; } |
6145 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; } |
5050 | else |
6146 | if test $ac_cv_lib_m_ceil = yes; then |
5051 | { echo "$as_me:$LINENO: result: no" >&5 |
6147 | cat >>confdefs.h <<_ACEOF |
5052 | echo "${ECHO_T}no" >&6; } |
6148 | #define HAVE_LIBM 1 |
5053 | fi |
6149 | _ACEOF |
5054 | |
6150 | |
|
|
6151 | LIBS="-lm $LIBS" |
5055 | |
6152 | |
5056 | # Extract the first word of "echo", so it can be a program name with args. |
|
|
5057 | set dummy echo; ac_word=$2 |
|
|
5058 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5059 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
5060 | if test "${ac_cv_path_ECHO+set}" = set; then |
|
|
5061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5062 | else |
|
|
5063 | case $ECHO in |
|
|
5064 | [\\/]* | ?:[\\/]*) |
|
|
5065 | ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. |
|
|
5066 | ;; |
|
|
5067 | *) |
|
|
5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5069 | for as_dir in $PATH |
|
|
5070 | do |
|
|
5071 | IFS=$as_save_IFS |
|
|
5072 | test -z "$as_dir" && as_dir=. |
|
|
5073 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
5075 | ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" |
|
|
5076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5077 | break 2 |
|
|
5078 | fi |
|
|
5079 | done |
|
|
5080 | done |
|
|
5081 | IFS=$as_save_IFS |
|
|
5082 | |
|
|
5083 | test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo" |
|
|
5084 | ;; |
|
|
5085 | esac |
|
|
5086 | fi |
6153 | fi |
5087 | ECHO=$ac_cv_path_ECHO |
|
|
5088 | if test -n "$ECHO"; then |
|
|
5089 | { echo "$as_me:$LINENO: result: $ECHO" >&5 |
|
|
5090 | echo "${ECHO_T}$ECHO" >&6; } |
|
|
5091 | else |
|
|
5092 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5093 | echo "${ECHO_T}no" >&6; } |
|
|
5094 | fi |
|
|
5095 | |
6154 | |
5096 | |
6155 | |
5097 | # Extract the first word of "cmp", so it can be a program name with args. |
|
|
5098 | set dummy cmp; ac_word=$2 |
|
|
5099 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
|
|
5101 | if test "${ac_cv_path_CMP+set}" = set; then |
|
|
5102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5103 | else |
|
|
5104 | case $CMP in |
|
|
5105 | [\\/]* | ?:[\\/]*) |
|
|
5106 | ac_cv_path_CMP="$CMP" # Let the user override the test with a path. |
|
|
5107 | ;; |
|
|
5108 | *) |
|
|
5109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5110 | for as_dir in $PATH |
|
|
5111 | do |
|
|
5112 | IFS=$as_save_IFS |
|
|
5113 | test -z "$as_dir" && as_dir=. |
|
|
5114 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
5116 | ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" |
|
|
5117 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5118 | break 2 |
|
|
5119 | fi |
|
|
5120 | done |
|
|
5121 | done |
|
|
5122 | IFS=$as_save_IFS |
|
|
5123 | |
6156 | |
5124 | test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" |
6157 | |
5125 | ;; |
6158 | |
5126 | esac |
|
|
5127 | fi |
|
|
5128 | CMP=$ac_cv_path_CMP |
|
|
5129 | if test -n "$CMP"; then |
|
|
5130 | { echo "$as_me:$LINENO: result: $CMP" >&5 |
|
|
5131 | echo "${ECHO_T}$CMP" >&6; } |
|
|
5132 | else |
|
|
5133 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
5134 | echo "${ECHO_T}no" >&6; } |
|
|
5135 | fi |
|
|
5136 | |
6159 | |
5137 | |
6160 | |
5138 | # 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. |
5139 | set dummy tic; ac_word=$2 |
6162 | set dummy tic; ac_word=$2 |
5140 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
5160 | fi |
6183 | fi |
5161 | done |
6184 | done |
5162 | done |
6185 | done |
5163 | IFS=$as_save_IFS |
6186 | IFS=$as_save_IFS |
5164 | |
6187 | |
|
|
6188 | test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":" |
5165 | ;; |
6189 | ;; |
5166 | esac |
6190 | esac |
5167 | fi |
6191 | fi |
5168 | TIC=$ac_cv_path_TIC |
6192 | TIC=$ac_cv_path_TIC |
5169 | if test -n "$TIC"; then |
6193 | if test -n "$TIC"; then |
… | |
… | |
5172 | else |
6196 | else |
5173 | { echo "$as_me:$LINENO: result: no" >&5 |
6197 | { echo "$as_me:$LINENO: result: no" >&5 |
5174 | echo "${ECHO_T}no" >&6; } |
6198 | echo "${ECHO_T}no" >&6; } |
5175 | fi |
6199 | fi |
5176 | |
6200 | |
5177 | |
|
|
5178 | |
|
|
5179 | |
|
|
5180 | |
|
|
5181 | ac_ext=cpp |
|
|
5182 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5183 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5184 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5185 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5186 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
5187 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
|
|
5188 | if test -z "$CXXCPP"; then |
|
|
5189 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
5190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5191 | else |
|
|
5192 | # Double quotes because CXXCPP needs to be expanded |
|
|
5193 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
5194 | do |
|
|
5195 | ac_preproc_ok=false |
|
|
5196 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5197 | do |
|
|
5198 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5199 | # with a fresh cross-compiler works. |
|
|
5200 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5201 | # <limits.h> exists even on freestanding compilers. |
|
|
5202 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5203 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5204 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5205 | /* confdefs.h. */ |
|
|
5206 | _ACEOF |
|
|
5207 | cat confdefs.h >>conftest.$ac_ext |
|
|
5208 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5209 | /* end confdefs.h. */ |
|
|
5210 | #ifdef __STDC__ |
|
|
5211 | # include <limits.h> |
|
|
5212 | #else |
|
|
5213 | # include <assert.h> |
|
|
5214 | #endif |
|
|
5215 | Syntax error |
|
|
5216 | _ACEOF |
|
|
5217 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
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_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5224 | ac_status=$? |
|
|
5225 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5226 | rm -f conftest.er1 |
|
|
5227 | cat conftest.err >&5 |
|
|
5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5229 | (exit $ac_status); } >/dev/null && { |
|
|
5230 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5231 | test ! -s conftest.err |
|
|
5232 | }; then |
|
|
5233 | : |
|
|
5234 | else |
|
|
5235 | echo "$as_me: failed program was:" >&5 |
|
|
5236 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5237 | |
|
|
5238 | # Broken: fails on valid input. |
|
|
5239 | continue |
|
|
5240 | fi |
|
|
5241 | |
|
|
5242 | rm -f conftest.err conftest.$ac_ext |
|
|
5243 | |
|
|
5244 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5245 | # can be detected and how. |
|
|
5246 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5247 | /* confdefs.h. */ |
|
|
5248 | _ACEOF |
|
|
5249 | cat confdefs.h >>conftest.$ac_ext |
|
|
5250 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5251 | /* end confdefs.h. */ |
|
|
5252 | #include <ac_nonexistent.h> |
|
|
5253 | _ACEOF |
|
|
5254 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5255 | case "(($ac_try" in |
|
|
5256 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5257 | *) ac_try_echo=$ac_try;; |
|
|
5258 | esac |
|
|
5259 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5260 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5261 | ac_status=$? |
|
|
5262 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5263 | rm -f conftest.er1 |
|
|
5264 | cat conftest.err >&5 |
|
|
5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5266 | (exit $ac_status); } >/dev/null && { |
|
|
5267 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5268 | test ! -s conftest.err |
|
|
5269 | }; then |
|
|
5270 | # Broken: success on invalid input. |
|
|
5271 | continue |
|
|
5272 | else |
|
|
5273 | echo "$as_me: failed program was:" >&5 |
|
|
5274 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5275 | |
|
|
5276 | # Passes both tests. |
|
|
5277 | ac_preproc_ok=: |
|
|
5278 | break |
|
|
5279 | fi |
|
|
5280 | |
|
|
5281 | rm -f conftest.err conftest.$ac_ext |
|
|
5282 | |
|
|
5283 | done |
|
|
5284 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5285 | rm -f conftest.err conftest.$ac_ext |
|
|
5286 | if $ac_preproc_ok; then |
|
|
5287 | break |
|
|
5288 | fi |
|
|
5289 | |
|
|
5290 | done |
|
|
5291 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5292 | |
|
|
5293 | fi |
|
|
5294 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5295 | else |
|
|
5296 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5297 | fi |
|
|
5298 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5299 | echo "${ECHO_T}$CXXCPP" >&6; } |
|
|
5300 | ac_preproc_ok=false |
|
|
5301 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5302 | do |
|
|
5303 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5304 | # with a fresh cross-compiler works. |
|
|
5305 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5306 | # <limits.h> exists even on freestanding compilers. |
|
|
5307 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5308 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5309 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5310 | /* confdefs.h. */ |
|
|
5311 | _ACEOF |
|
|
5312 | cat confdefs.h >>conftest.$ac_ext |
|
|
5313 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5314 | /* end confdefs.h. */ |
|
|
5315 | #ifdef __STDC__ |
|
|
5316 | # include <limits.h> |
|
|
5317 | #else |
|
|
5318 | # include <assert.h> |
|
|
5319 | #endif |
|
|
5320 | Syntax error |
|
|
5321 | _ACEOF |
|
|
5322 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5323 | case "(($ac_try" in |
|
|
5324 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5325 | *) ac_try_echo=$ac_try;; |
|
|
5326 | esac |
|
|
5327 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5328 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5329 | ac_status=$? |
|
|
5330 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5331 | rm -f conftest.er1 |
|
|
5332 | cat conftest.err >&5 |
|
|
5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5334 | (exit $ac_status); } >/dev/null && { |
|
|
5335 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5336 | test ! -s conftest.err |
|
|
5337 | }; then |
|
|
5338 | : |
|
|
5339 | else |
|
|
5340 | echo "$as_me: failed program was:" >&5 |
|
|
5341 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5342 | |
|
|
5343 | # Broken: fails on valid input. |
|
|
5344 | continue |
|
|
5345 | fi |
|
|
5346 | |
|
|
5347 | rm -f conftest.err conftest.$ac_ext |
|
|
5348 | |
|
|
5349 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
5350 | # can be detected and how. |
|
|
5351 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5352 | /* confdefs.h. */ |
|
|
5353 | _ACEOF |
|
|
5354 | cat confdefs.h >>conftest.$ac_ext |
|
|
5355 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5356 | /* end confdefs.h. */ |
|
|
5357 | #include <ac_nonexistent.h> |
|
|
5358 | _ACEOF |
|
|
5359 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
5360 | case "(($ac_try" in |
|
|
5361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
5362 | *) ac_try_echo=$ac_try;; |
|
|
5363 | esac |
|
|
5364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
5365 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
5366 | ac_status=$? |
|
|
5367 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5368 | rm -f conftest.er1 |
|
|
5369 | cat conftest.err >&5 |
|
|
5370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5371 | (exit $ac_status); } >/dev/null && { |
|
|
5372 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
5373 | test ! -s conftest.err |
|
|
5374 | }; then |
|
|
5375 | # Broken: success on invalid input. |
|
|
5376 | continue |
|
|
5377 | else |
|
|
5378 | echo "$as_me: failed program was:" >&5 |
|
|
5379 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5380 | |
|
|
5381 | # Passes both tests. |
|
|
5382 | ac_preproc_ok=: |
|
|
5383 | break |
|
|
5384 | fi |
|
|
5385 | |
|
|
5386 | rm -f conftest.err conftest.$ac_ext |
|
|
5387 | |
|
|
5388 | done |
|
|
5389 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5390 | rm -f conftest.err conftest.$ac_ext |
|
|
5391 | if $ac_preproc_ok; then |
|
|
5392 | : |
|
|
5393 | else |
|
|
5394 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5395 | See \`config.log' for more details." >&5 |
|
|
5396 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5397 | See \`config.log' for more details." >&2;} |
|
|
5398 | { (exit 1); exit 1; }; } |
|
|
5399 | fi |
|
|
5400 | |
|
|
5401 | ac_ext=cpp |
|
|
5402 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5403 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5404 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5405 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5406 | |
6201 | |
5407 | |
6202 | |
5408 | { echo "$as_me:$LINENO: checking for X" >&5 |
6203 | { echo "$as_me:$LINENO: checking for X" >&5 |
5409 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
6204 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
5410 | |
6205 | |
… | |
… | |
6718 | LDFLAGS=$ac_save_LDFLAGS |
7513 | LDFLAGS=$ac_save_LDFLAGS |
6719 | |
7514 | |
6720 | fi |
7515 | fi |
6721 | |
7516 | |
6722 | |
7517 | |
6723 | |
|
|
6724 | LIBAFTERIMAGE_CFLAGS= |
7518 | AFTERIMAGE_CFLAGS= |
6725 | AFTERIMAGE_LIBS= |
7519 | AFTERIMAGE_LIBS= |
6726 | have_afterimage= |
7520 | AFTERIMAGE_VERSION= |
6727 | |
7521 | |
6728 | if test x$support_afterimage = xyes; then |
7522 | if test x$support_afterimage = xyes; then |
6729 | support_afterimage=no |
7523 | support_afterimage=no |
6730 | |
7524 | |
6731 | if test "x$afterimage_config" = "x" ; then |
7525 | if test "x$afterimage_config" = "x" ; then |
6732 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
7526 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
6733 | set dummy afterimage-config; ac_word=$2 |
7527 | set dummy afterimage-config; ac_word=$2 |
6734 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7528 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6736 | if test "${ac_cv_path_afterimage_config+set}" = set; then |
7530 | if test "${ac_cv_path_afterimage_config+set}" = set; then |
… | |
… | |
6768 | { echo "$as_me:$LINENO: result: no" >&5 |
7562 | { echo "$as_me:$LINENO: result: no" >&5 |
6769 | echo "${ECHO_T}no" >&6; } |
7563 | echo "${ECHO_T}no" >&6; } |
6770 | fi |
7564 | fi |
6771 | |
7565 | |
6772 | |
7566 | |
6773 | else |
|
|
6774 | afterimage_config=$afterimage_config/afterimage-config |
|
|
6775 | fi |
7567 | fi |
6776 | |
7568 | if test "x$afterimage_config" != "xno" ; then |
6777 | { echo "$as_me:$LINENO: checking for libAfterImage" >&5 |
7569 | { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 |
6778 | echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6; } |
7570 | echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } |
6779 | if $afterimage_config --version >/dev/null 2>&1 ; then |
7571 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
|
|
7572 | if test -n "$xAFTERIMAGE_VERSION" ; then |
6780 | LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
7573 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
6781 | AFTERIMAGE_LIBS=`$afterimage_config --libs` |
7574 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
6782 | if test "x$AFTERIMAGE_LIBS" != "x"; then |
7575 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
|
|
7576 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
|
|
7577 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
|
|
7578 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
6783 | support_afterimage=yes |
7579 | support_afterimage=yes |
6784 | fi |
7580 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
6785 | fi |
7581 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
6786 | |
7582 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
6787 | if test "x$support_afterimage" = "xyes"; then |
|
|
6788 | { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6789 | echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } |
|
|
6790 | else |
|
|
6791 | { echo "$as_me:$LINENO: result: no" >&5 |
|
|
6792 | echo "${ECHO_T}no" >&6; } |
|
|
6793 | fi |
|
|
6794 | fi |
|
|
6795 | |
|
|
6796 | if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then |
|
|
6797 | |
|
|
6798 | |
|
|
6799 | |
|
|
6800 | # Initialize some more variables set by options. |
|
|
6801 | # The variables have the same names as the options, with |
|
|
6802 | # dashes changed to underlines. |
|
|
6803 | |
|
|
6804 | # If we find XPM, set shell vars xpm_includes and xpm_libraries to the |
|
|
6805 | # paths, otherwise set no_xpm=yes. |
|
|
6806 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
|
|
6807 | { echo "$as_me:$LINENO: checking for libXpm" >&5 |
|
|
6808 | echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } |
|
|
6809 | |
|
|
6810 | |
|
|
6811 | # Check whether --with-xpm_includes was given. |
|
|
6812 | if test "${with_xpm_includes+set}" = set; then |
|
|
6813 | withval=$with_xpm_includes; xpm_includes="$withval" |
|
|
6814 | else |
|
|
6815 | xpm_includes=NO |
|
|
6816 | fi |
|
|
6817 | |
|
|
6818 | |
|
|
6819 | # Check whether --with-xpm_library was given. |
|
|
6820 | if test "${with_xpm_library+set}" = set; then |
|
|
6821 | withval=$with_xpm_library; xpm_libraries="$withval" |
|
|
6822 | else |
|
|
6823 | xpm_libraries=NO |
|
|
6824 | fi |
|
|
6825 | |
|
|
6826 | |
|
|
6827 | # --without-xpm overrides everything else, but does not touch the cache. |
|
|
6828 | |
|
|
6829 | # Check whether --with-xpm was given. |
|
|
6830 | if test "${with_xpm+set}" = set; then |
|
|
6831 | withval=$with_xpm; |
|
|
6832 | fi |
|
|
6833 | |
|
|
6834 | if test "$with_xpm" = no; then |
|
|
6835 | have_xpm=disabled |
|
|
6836 | else |
|
|
6837 | if test "${ac_cv_have_xpm+set}" = set; then |
|
|
6838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6839 | else |
|
|
6840 | |
|
|
6841 | vt_xpm_include_X11=no |
|
|
6842 | if test -n "$xpm_includes"; then |
|
|
6843 | vt_xpm_includes=$xpm_includes |
|
|
6844 | else |
|
|
6845 | vt_xpm_includes=NO |
|
|
6846 | fi |
|
|
6847 | if test -n "$xpm_libraries"; then |
|
|
6848 | vt_xpm_libraries=$xpm_libraries |
|
|
6849 | else |
|
|
6850 | vt_xpm_libraries=NO |
|
|
6851 | fi |
|
|
6852 | |
|
|
6853 | if test "$vt_xpm_includes" = NO; then |
|
|
6854 | # Guess where to find xpm.h |
|
|
6855 | |
|
|
6856 | ac_save_CPPFLAGS="$CPPFLAGS" |
|
|
6857 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
|
|
6858 | |
|
|
6859 | # First, try using that file with no special directory specified. |
|
|
6860 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6861 | /* confdefs.h. */ |
|
|
6862 | _ACEOF |
|
|
6863 | cat confdefs.h >>conftest.$ac_ext |
|
|
6864 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6865 | /* end confdefs.h. */ |
|
|
6866 | #include <X11/xpm.h> |
|
|
6867 | _ACEOF |
|
|
6868 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
6869 | case "(($ac_try" in |
|
|
6870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6871 | *) ac_try_echo=$ac_try;; |
|
|
6872 | esac |
|
|
6873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6874 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
6875 | ac_status=$? |
|
|
6876 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6877 | rm -f conftest.er1 |
|
|
6878 | cat conftest.err >&5 |
|
|
6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6880 | (exit $ac_status); } >/dev/null && { |
|
|
6881 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
6882 | test ! -s conftest.err |
|
|
6883 | }; then |
|
|
6884 | # We can compile using X headers with no special include directory. |
|
|
6885 | vt_xpm_includes= |
|
|
6886 | vt_xpm_include_X11=yes |
|
|
6887 | else |
|
|
6888 | echo "$as_me: failed program was:" >&5 |
|
|
6889 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6890 | |
|
|
6891 | CPPFLAGS="$ac_save_CPPFLAGS" |
|
|
6892 | # Look for the header file in a standard set of common directories. |
|
|
6893 | for ac_dir in \ |
|
|
6894 | /usr/X11/include \ |
|
|
6895 | /usr/X11R6/include \ |
|
|
6896 | /usr/X11R5/include \ |
|
|
6897 | /usr/X11R4/include \ |
|
|
6898 | \ |
|
|
6899 | /usr/include/X11 \ |
|
|
6900 | /usr/include/X11R6 \ |
|
|
6901 | /usr/include/X11R5 \ |
|
|
6902 | /usr/include/X11R4 \ |
|
|
6903 | \ |
|
|
6904 | /usr/local/X11/include \ |
|
|
6905 | /usr/local/X11R6/include \ |
|
|
6906 | /usr/local/X11R5/include \ |
|
|
6907 | /usr/local/X11R4/include \ |
|
|
6908 | \ |
|
|
6909 | /usr/local/include/X11 \ |
|
|
6910 | /usr/local/include/X11R6 \ |
|
|
6911 | /usr/local/include/X11R5 \ |
|
|
6912 | /usr/local/include/X11R4 \ |
|
|
6913 | \ |
|
|
6914 | /usr/X386/include \ |
|
|
6915 | /usr/x386/include \ |
|
|
6916 | /usr/XFree86/include/X11 \ |
|
|
6917 | \ |
|
|
6918 | /usr/include \ |
|
|
6919 | /usr/local/include \ |
|
|
6920 | /usr/unsupported/include \ |
|
|
6921 | /usr/athena/include \ |
|
|
6922 | /usr/local/x11r5/include \ |
|
|
6923 | /usr/lpp/Xamples/include \ |
|
|
6924 | \ |
|
|
6925 | /usr/openwin/include \ |
|
|
6926 | /usr/openwin/share/include \ |
|
|
6927 | ; \ |
|
|
6928 | do |
|
|
6929 | if test -r "$ac_dir/X11/xpm.h"; then |
|
|
6930 | vt_xpm_includes="$ac_dir" |
|
|
6931 | vt_xpm_include_X11=yes |
|
|
6932 | break |
|
|
6933 | else |
|
|
6934 | if test -r "$ac_dir/xpm.h"; then |
|
|
6935 | vt_xpm_includes=$ac_dir |
|
|
6936 | break |
|
|
6937 | fi |
|
|
6938 | fi |
|
|
6939 | done |
|
|
6940 | fi |
|
|
6941 | |
|
|
6942 | rm -f conftest.err conftest.$ac_ext |
|
|
6943 | fi |
|
|
6944 | |
|
|
6945 | if test "$vt_xpm_libraries" = NO; then |
|
|
6946 | # Check for the libraries. |
|
|
6947 | |
|
|
6948 | # See if we find them without any special options. |
|
|
6949 | # Don't add to $LIBS permanently. |
|
|
6950 | ac_save_LIBS="$LIBS" |
|
|
6951 | LIBS="$LIBS $X_LIBS -lXpm -lX11" |
|
|
6952 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6953 | /* confdefs.h. */ |
|
|
6954 | _ACEOF |
|
|
6955 | cat confdefs.h >>conftest.$ac_ext |
|
|
6956 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6957 | /* end confdefs.h. */ |
|
|
6958 | |
|
|
6959 | int |
|
|
6960 | main () |
|
|
6961 | { |
|
|
6962 | XpmReadFileToPixmap() |
|
|
6963 | ; |
|
|
6964 | return 0; |
|
|
6965 | } |
|
|
6966 | _ACEOF |
|
|
6967 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6968 | if { (ac_try="$ac_link" |
|
|
6969 | case "(($ac_try" in |
|
|
6970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
6971 | *) ac_try_echo=$ac_try;; |
|
|
6972 | esac |
|
|
6973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
6974 | (eval "$ac_link") 2>conftest.er1 |
|
|
6975 | ac_status=$? |
|
|
6976 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6977 | rm -f conftest.er1 |
|
|
6978 | cat conftest.err >&5 |
|
|
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6980 | (exit $ac_status); } && { |
|
|
6981 | test -z "$ac_cxx_werror_flag" || |
|
|
6982 | test ! -s conftest.err |
|
|
6983 | } && test -s conftest$ac_exeext && |
|
|
6984 | $as_test_x conftest$ac_exeext; then |
|
|
6985 | LIBS="$ac_save_LIBS" |
|
|
6986 | # We can link libXpm with no special library path. |
|
|
6987 | vt_xpm_libraries= |
|
|
6988 | else |
|
|
6989 | echo "$as_me: failed program was:" >&5 |
|
|
6990 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6991 | |
|
|
6992 | LIBS="$ac_save_LIBS" |
|
|
6993 | # First see if replacing the include by lib works. |
|
|
6994 | for ac_dir in \ |
|
|
6995 | `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ |
|
|
6996 | /usr/X11/lib \ |
|
|
6997 | /usr/X11R6/lib \ |
|
|
6998 | /usr/X11R5/lib \ |
|
|
6999 | /usr/X11R4/lib \ |
|
|
7000 | \ |
|
|
7001 | /usr/lib/X11 \ |
|
|
7002 | /usr/lib/X11R6 \ |
|
|
7003 | /usr/lib/X11R5 \ |
|
|
7004 | /usr/lib/X11R4 \ |
|
|
7005 | \ |
|
|
7006 | /usr/local/X11/lib \ |
|
|
7007 | /usr/local/X11R6/lib \ |
|
|
7008 | /usr/local/X11R5/lib \ |
|
|
7009 | /usr/local/X11R4/lib \ |
|
|
7010 | \ |
|
|
7011 | /usr/local/lib/X11 \ |
|
|
7012 | /usr/local/lib/X11R6 \ |
|
|
7013 | /usr/local/lib/X11R5 \ |
|
|
7014 | /usr/local/lib/X11R4 \ |
|
|
7015 | \ |
|
|
7016 | /usr/X386/lib \ |
|
|
7017 | /usr/x386/lib \ |
|
|
7018 | /usr/XFree86/lib/X11 \ |
|
|
7019 | \ |
|
|
7020 | /usr/lib \ |
|
|
7021 | /usr/local/lib \ |
|
|
7022 | /usr/unsupported/lib \ |
|
|
7023 | /usr/athena/lib \ |
|
|
7024 | /usr/local/x11r5/lib \ |
|
|
7025 | /usr/lpp/Xamples/lib \ |
|
|
7026 | \ |
|
|
7027 | /usr/openwin/lib \ |
|
|
7028 | /usr/openwin/share/lib \ |
|
|
7029 | ; \ |
|
|
7030 | do |
|
|
7031 | for ac_extension in a so sl; do |
|
|
7032 | if test -r $ac_dir/libXpm.$ac_extension; then |
|
|
7033 | vt_xpm_libraries=$ac_dir |
|
|
7034 | break 2 |
|
|
7035 | fi |
|
|
7036 | done |
|
|
7037 | done |
|
|
7038 | fi |
|
|
7039 | |
|
|
7040 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
7041 | conftest$ac_exeext conftest.$ac_ext |
|
|
7042 | fi |
|
|
7043 | |
|
|
7044 | |
|
|
7045 | if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then |
|
|
7046 | ac_cv_have_xpm="have_xpm=no" |
|
|
7047 | else |
|
|
7048 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
7049 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
7050 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
7051 | fi |
|
|
7052 | fi |
|
|
7053 | eval "$ac_cv_have_xpm" |
|
|
7054 | fi |
|
|
7055 | |
|
|
7056 | if test "$have_xpm" != yes; then |
|
|
7057 | { echo "$as_me:$LINENO: result: $have_xpm" >&5 |
|
|
7058 | echo "${ECHO_T}$have_xpm" >&6; } |
|
|
7059 | no_xpm=yes |
|
|
7060 | else |
|
|
7061 | if test "$xpm_includes" != NO; then |
|
|
7062 | if test "$xpm_includes" = "$vt_xpm_includes"; then |
|
|
7063 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
7064 | vt_xpm_include_X11=yes |
|
|
7065 | fi |
|
|
7066 | else |
|
|
7067 | vt_xpm_include_X11=no |
|
|
7068 | if test -z "$xpm_includes"; then |
|
|
7069 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7070 | /* confdefs.h. */ |
|
|
7071 | _ACEOF |
|
|
7072 | cat confdefs.h >>conftest.$ac_ext |
|
|
7073 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7074 | /* end confdefs.h. */ |
|
|
7075 | #include <X11/xpm.h> |
|
|
7076 | _ACEOF |
|
|
7077 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
|
|
7078 | case "(($ac_try" in |
|
|
7079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7080 | *) ac_try_echo=$ac_try;; |
|
|
7081 | esac |
|
|
7082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7083 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
|
|
7084 | ac_status=$? |
|
|
7085 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7086 | rm -f conftest.er1 |
|
|
7087 | cat conftest.err >&5 |
|
|
7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7089 | (exit $ac_status); } >/dev/null && { |
|
|
7090 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
|
7091 | test ! -s conftest.err |
|
|
7092 | }; then |
|
|
7093 | vt_xpm_include_X11=yes |
|
|
7094 | else |
|
|
7095 | echo "$as_me: failed program was:" >&5 |
|
|
7096 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7097 | |
|
|
7098 | |
|
|
7099 | fi |
|
|
7100 | |
|
|
7101 | rm -f conftest.err conftest.$ac_ext |
|
|
7102 | else |
|
|
7103 | if test -r "$xpm_includes/X11/xpm.h"; then |
|
|
7104 | vt_xpm_include_X11=yes |
|
|
7105 | fi |
7583 | fi |
7106 | fi |
7584 | fi |
7107 | fi |
7585 | fi |
7108 | 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 |
7109 | fi |
7593 | fi |
7110 | if test "x$xpm_libraries" != xNO; then |
|
|
7111 | vt_xpm_libraries=$xpm_libraries |
|
|
7112 | fi |
|
|
7113 | # Update the cache value to reflect the command line values. |
|
|
7114 | ac_cv_have_xpm="have_xpm=yes \ |
|
|
7115 | vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ |
|
|
7116 | vt_xpm_include_X11=$vt_xpm_include_X11" |
|
|
7117 | eval "$ac_cv_have_xpm" |
|
|
7118 | { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5 |
|
|
7119 | echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; } |
|
|
7120 | if test -n "$vt_xpm_includes"; then |
|
|
7121 | XPM_CPPFLAGS="-DHAVE_LIBXPM" |
|
|
7122 | fi |
|
|
7123 | if test -n "$vt_xpm_includes"; then |
|
|
7124 | XPM_CFLAGS="-I$vt_xpm_includes" |
|
|
7125 | fi |
|
|
7126 | XPM_LIBS="-lXpm" |
|
|
7127 | if test -n "$vt_xpm_libraries"; then |
|
|
7128 | XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" |
|
|
7129 | fi |
|
|
7130 | if test "x$vt_xpm_include_X11" = xyes; then |
|
|
7131 | |
|
|
7132 | cat >>confdefs.h <<\_ACEOF |
|
|
7133 | #define XPM_INC_X11 1 |
|
|
7134 | _ACEOF |
|
|
7135 | |
|
|
7136 | fi |
|
|
7137 | fi |
7594 | fi |
7138 | |
|
|
7139 | |
|
|
7140 | |
|
|
7141 | |
|
|
7142 | |
|
|
7143 | if test x$no_xpm = xyes; then |
|
|
7144 | support_xpm=needsmanualspecification |
|
|
7145 | fi |
|
|
7146 | fi |
|
|
7147 | |
|
|
7148 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
|
|
7149 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } |
|
|
7150 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
|
|
7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7152 | else |
|
|
7153 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7154 | /* confdefs.h. */ |
|
|
7155 | _ACEOF |
|
|
7156 | cat confdefs.h >>conftest.$ac_ext |
|
|
7157 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7158 | /* end confdefs.h. */ |
|
|
7159 | #include <sys/types.h> |
|
|
7160 | #include <sys/wait.h> |
|
|
7161 | #ifndef WEXITSTATUS |
|
|
7162 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
|
|
7163 | #endif |
|
|
7164 | #ifndef WIFEXITED |
|
|
7165 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
|
|
7166 | #endif |
|
|
7167 | |
|
|
7168 | int |
|
|
7169 | main () |
|
|
7170 | { |
|
|
7171 | int s; |
|
|
7172 | wait (&s); |
|
|
7173 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
|
|
7174 | ; |
|
|
7175 | return 0; |
|
|
7176 | } |
|
|
7177 | _ACEOF |
|
|
7178 | rm -f conftest.$ac_objext |
|
|
7179 | if { (ac_try="$ac_compile" |
|
|
7180 | case "(($ac_try" in |
|
|
7181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7182 | *) ac_try_echo=$ac_try;; |
|
|
7183 | esac |
|
|
7184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7185 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7186 | ac_status=$? |
|
|
7187 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7188 | rm -f conftest.er1 |
|
|
7189 | cat conftest.err >&5 |
|
|
7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7191 | (exit $ac_status); } && { |
|
|
7192 | test -z "$ac_cxx_werror_flag" || |
|
|
7193 | test ! -s conftest.err |
|
|
7194 | } && test -s conftest.$ac_objext; then |
|
|
7195 | ac_cv_header_sys_wait_h=yes |
|
|
7196 | else |
|
|
7197 | echo "$as_me: failed program was:" >&5 |
|
|
7198 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7199 | |
|
|
7200 | ac_cv_header_sys_wait_h=no |
|
|
7201 | fi |
|
|
7202 | |
|
|
7203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7204 | fi |
|
|
7205 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
|
|
7206 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } |
|
|
7207 | if test $ac_cv_header_sys_wait_h = yes; then |
|
|
7208 | |
|
|
7209 | cat >>confdefs.h <<\_ACEOF |
|
|
7210 | #define HAVE_SYS_WAIT_H 1 |
|
|
7211 | _ACEOF |
|
|
7212 | |
|
|
7213 | fi |
|
|
7214 | |
|
|
7215 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
7216 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
|
|
7217 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
7218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7219 | else |
|
|
7220 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7221 | /* confdefs.h. */ |
|
|
7222 | _ACEOF |
|
|
7223 | cat confdefs.h >>conftest.$ac_ext |
|
|
7224 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7225 | /* end confdefs.h. */ |
|
|
7226 | #include <stdlib.h> |
|
|
7227 | #include <stdarg.h> |
|
|
7228 | #include <string.h> |
|
|
7229 | #include <float.h> |
|
|
7230 | |
|
|
7231 | int |
|
|
7232 | main () |
|
|
7233 | { |
|
|
7234 | |
|
|
7235 | ; |
|
|
7236 | return 0; |
|
|
7237 | } |
|
|
7238 | _ACEOF |
|
|
7239 | rm -f conftest.$ac_objext |
|
|
7240 | if { (ac_try="$ac_compile" |
|
|
7241 | case "(($ac_try" in |
|
|
7242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7243 | *) ac_try_echo=$ac_try;; |
|
|
7244 | esac |
|
|
7245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7246 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7247 | ac_status=$? |
|
|
7248 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7249 | rm -f conftest.er1 |
|
|
7250 | cat conftest.err >&5 |
|
|
7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7252 | (exit $ac_status); } && { |
|
|
7253 | test -z "$ac_cxx_werror_flag" || |
|
|
7254 | test ! -s conftest.err |
|
|
7255 | } && test -s conftest.$ac_objext; then |
|
|
7256 | ac_cv_header_stdc=yes |
|
|
7257 | else |
|
|
7258 | echo "$as_me: failed program was:" >&5 |
|
|
7259 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7260 | |
|
|
7261 | ac_cv_header_stdc=no |
|
|
7262 | fi |
|
|
7263 | |
|
|
7264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7265 | |
|
|
7266 | if test $ac_cv_header_stdc = yes; then |
|
|
7267 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7268 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7269 | /* confdefs.h. */ |
|
|
7270 | _ACEOF |
|
|
7271 | cat confdefs.h >>conftest.$ac_ext |
|
|
7272 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7273 | /* end confdefs.h. */ |
|
|
7274 | #include <string.h> |
|
|
7275 | |
|
|
7276 | _ACEOF |
|
|
7277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7278 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7279 | : |
|
|
7280 | else |
|
|
7281 | ac_cv_header_stdc=no |
|
|
7282 | fi |
|
|
7283 | rm -f conftest* |
|
|
7284 | |
|
|
7285 | fi |
|
|
7286 | |
|
|
7287 | if test $ac_cv_header_stdc = yes; then |
|
|
7288 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7289 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7290 | /* confdefs.h. */ |
|
|
7291 | _ACEOF |
|
|
7292 | cat confdefs.h >>conftest.$ac_ext |
|
|
7293 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7294 | /* end confdefs.h. */ |
|
|
7295 | #include <stdlib.h> |
|
|
7296 | |
|
|
7297 | _ACEOF |
|
|
7298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7299 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7300 | : |
|
|
7301 | else |
|
|
7302 | ac_cv_header_stdc=no |
|
|
7303 | fi |
|
|
7304 | rm -f conftest* |
|
|
7305 | |
|
|
7306 | fi |
|
|
7307 | |
|
|
7308 | if test $ac_cv_header_stdc = yes; then |
|
|
7309 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7310 | if test "$cross_compiling" = yes; then |
|
|
7311 | : |
|
|
7312 | else |
|
|
7313 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7314 | /* confdefs.h. */ |
|
|
7315 | _ACEOF |
|
|
7316 | cat confdefs.h >>conftest.$ac_ext |
|
|
7317 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7318 | /* end confdefs.h. */ |
|
|
7319 | #include <ctype.h> |
|
|
7320 | #include <stdlib.h> |
|
|
7321 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7322 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7323 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7324 | #else |
|
|
7325 | # define ISLOWER(c) \ |
|
|
7326 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7327 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7328 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7329 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7330 | #endif |
|
|
7331 | |
|
|
7332 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7333 | int |
|
|
7334 | main () |
|
|
7335 | { |
|
|
7336 | int i; |
|
|
7337 | for (i = 0; i < 256; i++) |
|
|
7338 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7339 | || toupper (i) != TOUPPER (i)) |
|
|
7340 | return 2; |
|
|
7341 | return 0; |
|
|
7342 | } |
|
|
7343 | _ACEOF |
|
|
7344 | rm -f conftest$ac_exeext |
|
|
7345 | if { (ac_try="$ac_link" |
|
|
7346 | case "(($ac_try" in |
|
|
7347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7348 | *) ac_try_echo=$ac_try;; |
|
|
7349 | esac |
|
|
7350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7351 | (eval "$ac_link") 2>&5 |
|
|
7352 | ac_status=$? |
|
|
7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7354 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7355 | { (case "(($ac_try" in |
|
|
7356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7357 | *) ac_try_echo=$ac_try;; |
|
|
7358 | esac |
|
|
7359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7360 | (eval "$ac_try") 2>&5 |
|
|
7361 | ac_status=$? |
|
|
7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7363 | (exit $ac_status); }; }; then |
|
|
7364 | : |
|
|
7365 | else |
|
|
7366 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7367 | echo "$as_me: failed program was:" >&5 |
|
|
7368 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7369 | |
|
|
7370 | ( exit $ac_status ) |
|
|
7371 | ac_cv_header_stdc=no |
|
|
7372 | fi |
|
|
7373 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7374 | fi |
|
|
7375 | |
|
|
7376 | |
|
|
7377 | fi |
|
|
7378 | fi |
|
|
7379 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7380 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
|
|
7381 | if test $ac_cv_header_stdc = yes; then |
|
|
7382 | |
|
|
7383 | cat >>confdefs.h <<\_ACEOF |
|
|
7384 | #define STDC_HEADERS 1 |
|
|
7385 | _ACEOF |
|
|
7386 | |
|
|
7387 | fi |
|
|
7388 | |
|
|
7389 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7390 | |
|
|
7391 | |
|
|
7392 | |
|
|
7393 | |
|
|
7394 | |
|
|
7395 | |
|
|
7396 | |
|
|
7397 | |
|
|
7398 | |
|
|
7399 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7400 | inttypes.h stdint.h unistd.h |
|
|
7401 | do |
|
|
7402 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7403 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
|
|
7405 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
|
|
7406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7407 | else |
|
|
7408 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7409 | /* confdefs.h. */ |
|
|
7410 | _ACEOF |
|
|
7411 | cat confdefs.h >>conftest.$ac_ext |
|
|
7412 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7413 | /* end confdefs.h. */ |
|
|
7414 | $ac_includes_default |
|
|
7415 | |
|
|
7416 | #include <$ac_header> |
|
|
7417 | _ACEOF |
|
|
7418 | rm -f conftest.$ac_objext |
|
|
7419 | if { (ac_try="$ac_compile" |
|
|
7420 | case "(($ac_try" in |
|
|
7421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7422 | *) ac_try_echo=$ac_try;; |
|
|
7423 | esac |
|
|
7424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7425 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7426 | ac_status=$? |
|
|
7427 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7428 | rm -f conftest.er1 |
|
|
7429 | cat conftest.err >&5 |
|
|
7430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7431 | (exit $ac_status); } && { |
|
|
7432 | test -z "$ac_cxx_werror_flag" || |
|
|
7433 | test ! -s conftest.err |
|
|
7434 | } && test -s conftest.$ac_objext; then |
|
|
7435 | eval "$as_ac_Header=yes" |
|
|
7436 | else |
|
|
7437 | echo "$as_me: failed program was:" >&5 |
|
|
7438 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7439 | |
|
|
7440 | eval "$as_ac_Header=no" |
|
|
7441 | fi |
|
|
7442 | |
|
|
7443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7444 | fi |
|
|
7445 | ac_res=`eval echo '${'$as_ac_Header'}'` |
|
|
7446 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
|
|
7447 | echo "${ECHO_T}$ac_res" >&6; } |
|
|
7448 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7449 | cat >>confdefs.h <<_ACEOF |
|
|
7450 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7451 | _ACEOF |
|
|
7452 | |
|
|
7453 | fi |
|
|
7454 | |
|
|
7455 | done |
|
|
7456 | |
|
|
7457 | |
|
|
7458 | |
|
|
7459 | |
|
|
7460 | |
|
|
7461 | |
|
|
7462 | |
|
|
7463 | |
|
|
7464 | |
|
|
7465 | |
|
|
7466 | |
|
|
7467 | |
7595 | |
7468 | |
7596 | |
7469 | |
7597 | |
7470 | |
7598 | |
7471 | |
7599 | |
7472 | |
7600 | |
7473 | |
7601 | |
7474 | |
7602 | |
7475 | for ac_header in \ |
7603 | for ac_header in \ |
7476 | assert.h \ |
|
|
7477 | fcntl.h \ |
|
|
7478 | stdarg.h \ |
|
|
7479 | stdlib.h \ |
|
|
7480 | string.h \ |
|
|
7481 | termios.h \ |
|
|
7482 | unistd.h \ |
|
|
7483 | sys/byteorder.h \ |
7604 | sys/byteorder.h \ |
7484 | sys/ioctl.h \ |
7605 | sys/ioctl.h \ |
7485 | sys/select.h \ |
|
|
7486 | sys/sockio.h \ |
7606 | sys/sockio.h \ |
7487 | sys/strredir.h \ |
7607 | sys/strredir.h \ |
7488 | sys/time.h \ |
|
|
7489 | stdint.h \ |
7608 | stdint.h \ |
7490 | wchar.h \ |
7609 | wchar.h \ |
7491 | cwchar \ |
7610 | cwchar \ |
7492 | clocale \ |
|
|
7493 | |
7611 | |
7494 | do |
7612 | do |
7495 | 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` |
7496 | 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 |
7497 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7615 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
7628 | fi |
7746 | fi |
7629 | |
7747 | |
7630 | done |
7748 | done |
7631 | |
7749 | |
7632 | |
7750 | |
7633 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
|
|
7634 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
|
|
7635 | if test "${ac_cv_header_time+set}" = set; then |
|
|
7636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7637 | else |
|
|
7638 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7639 | /* confdefs.h. */ |
|
|
7640 | _ACEOF |
|
|
7641 | cat confdefs.h >>conftest.$ac_ext |
|
|
7642 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7643 | /* end confdefs.h. */ |
|
|
7644 | #include <sys/types.h> |
|
|
7645 | #include <sys/time.h> |
|
|
7646 | #include <time.h> |
|
|
7647 | |
|
|
7648 | int |
|
|
7649 | main () |
|
|
7650 | { |
|
|
7651 | if ((struct tm *) 0) |
|
|
7652 | return 0; |
|
|
7653 | ; |
|
|
7654 | return 0; |
|
|
7655 | } |
|
|
7656 | _ACEOF |
|
|
7657 | rm -f conftest.$ac_objext |
|
|
7658 | if { (ac_try="$ac_compile" |
|
|
7659 | case "(($ac_try" in |
|
|
7660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7661 | *) ac_try_echo=$ac_try;; |
|
|
7662 | esac |
|
|
7663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7664 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7665 | ac_status=$? |
|
|
7666 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7667 | rm -f conftest.er1 |
|
|
7668 | cat conftest.err >&5 |
|
|
7669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7670 | (exit $ac_status); } && { |
|
|
7671 | test -z "$ac_cxx_werror_flag" || |
|
|
7672 | test ! -s conftest.err |
|
|
7673 | } && test -s conftest.$ac_objext; then |
|
|
7674 | ac_cv_header_time=yes |
|
|
7675 | else |
|
|
7676 | echo "$as_me: failed program was:" >&5 |
|
|
7677 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7678 | |
|
|
7679 | ac_cv_header_time=no |
|
|
7680 | fi |
|
|
7681 | |
|
|
7682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7683 | fi |
|
|
7684 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
|
|
7685 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
|
|
7686 | if test $ac_cv_header_time = yes; then |
|
|
7687 | |
|
|
7688 | cat >>confdefs.h <<\_ACEOF |
|
|
7689 | #define TIME_WITH_SYS_TIME 1 |
|
|
7690 | _ACEOF |
|
|
7691 | |
|
|
7692 | fi |
|
|
7693 | |
|
|
7694 | |
|
|
7695 | { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 |
|
|
7696 | echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } |
|
|
7697 | if test "${rxvt_cv_header_sysioctl+set}" = set; then |
|
|
7698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7699 | else |
|
|
7700 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7701 | /* confdefs.h. */ |
|
|
7702 | _ACEOF |
|
|
7703 | cat confdefs.h >>conftest.$ac_ext |
|
|
7704 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7705 | /* end confdefs.h. */ |
|
|
7706 | #include <stdio.h> |
|
|
7707 | #include <sys/ioctl.h> |
|
|
7708 | #ifdef HAVE_TERMIOS_H |
|
|
7709 | #include <termios.h> |
|
|
7710 | #endif |
|
|
7711 | int |
|
|
7712 | main () |
|
|
7713 | { |
|
|
7714 | int a = ECHO; |
|
|
7715 | ; |
|
|
7716 | return 0; |
|
|
7717 | } |
|
|
7718 | _ACEOF |
|
|
7719 | rm -f conftest.$ac_objext |
|
|
7720 | if { (ac_try="$ac_compile" |
|
|
7721 | case "(($ac_try" in |
|
|
7722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7723 | *) ac_try_echo=$ac_try;; |
|
|
7724 | esac |
|
|
7725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7726 | (eval "$ac_compile") 2>conftest.er1 |
|
|
7727 | ac_status=$? |
|
|
7728 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7729 | rm -f conftest.er1 |
|
|
7730 | cat conftest.err >&5 |
|
|
7731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7732 | (exit $ac_status); } && { |
|
|
7733 | test -z "$ac_cxx_werror_flag" || |
|
|
7734 | test ! -s conftest.err |
|
|
7735 | } && test -s conftest.$ac_objext; then |
|
|
7736 | rxvt_cv_header_sysioctl=yes |
|
|
7737 | else |
|
|
7738 | echo "$as_me: failed program was:" >&5 |
|
|
7739 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7740 | |
|
|
7741 | rxvt_cv_header_sysioctl=no |
|
|
7742 | fi |
|
|
7743 | |
|
|
7744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7745 | fi |
|
|
7746 | { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 |
|
|
7747 | echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } |
|
|
7748 | |
|
|
7749 | if test -n "$GCC"; then |
|
|
7750 | LDARG="-Wl," |
|
|
7751 | else |
|
|
7752 | LDARG="" |
|
|
7753 | fi |
|
|
7754 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g' |
|
|
7755 | |
|
|
7756 | ac_save_CFLAGS=$CFLAGS |
|
|
7757 | ac_save_LIBS=$LIBS |
|
|
7758 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
7759 | LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7760 | { echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5 |
|
|
7761 | echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; } |
|
|
7762 | if test "${rxvt_cv_rpath+set}" = set; then |
|
|
7763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7764 | else |
|
|
7765 | if test "$cross_compiling" = yes; then |
|
|
7766 | { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5 |
|
|
7767 | echo "$as_me: WARNING: You may need to check the LIBS line" >&2;} |
|
|
7768 | else |
|
|
7769 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7770 | /* confdefs.h. */ |
|
|
7771 | _ACEOF |
|
|
7772 | cat confdefs.h >>conftest.$ac_ext |
|
|
7773 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7774 | /* end confdefs.h. */ |
|
|
7775 | #include <X11/Xlib.h> |
|
|
7776 | #include <stdlib.h> |
|
|
7777 | main() |
|
|
7778 | { |
|
|
7779 | exit(0); |
|
|
7780 | (void) XOpenDisplay("foobar"); |
|
|
7781 | } |
|
|
7782 | _ACEOF |
|
|
7783 | rm -f conftest$ac_exeext |
|
|
7784 | if { (ac_try="$ac_link" |
|
|
7785 | case "(($ac_try" in |
|
|
7786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7787 | *) ac_try_echo=$ac_try;; |
|
|
7788 | esac |
|
|
7789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7790 | (eval "$ac_link") 2>&5 |
|
|
7791 | ac_status=$? |
|
|
7792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7794 | { (case "(($ac_try" in |
|
|
7795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7796 | *) ac_try_echo=$ac_try;; |
|
|
7797 | esac |
|
|
7798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7799 | (eval "$ac_try") 2>&5 |
|
|
7800 | ac_status=$? |
|
|
7801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7802 | (exit $ac_status); }; }; then |
|
|
7803 | rxvt_cv_rpath=yes |
|
|
7804 | else |
|
|
7805 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7806 | echo "$as_me: failed program was:" >&5 |
|
|
7807 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7808 | |
|
|
7809 | ( exit $ac_status ) |
|
|
7810 | rxvt_cv_rpath=no |
|
|
7811 | fi |
|
|
7812 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7813 | fi |
|
|
7814 | |
|
|
7815 | |
|
|
7816 | fi |
|
|
7817 | { echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5 |
|
|
7818 | echo "${ECHO_T}$rxvt_cv_rpath" >&6; } |
|
|
7819 | if test x$rxvt_cv_rpath != xyes; then |
|
|
7820 | R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g' |
|
|
7821 | LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"` |
|
|
7822 | { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5 |
|
|
7823 | echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; } |
|
|
7824 | if test "${rxvt_cv_R+set}" = set; then |
|
|
7825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7826 | else |
|
|
7827 | if test "$cross_compiling" = yes; then |
|
|
7828 | rxvt_cv_R=no |
|
|
7829 | else |
|
|
7830 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7831 | /* confdefs.h. */ |
|
|
7832 | _ACEOF |
|
|
7833 | cat confdefs.h >>conftest.$ac_ext |
|
|
7834 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7835 | /* end confdefs.h. */ |
|
|
7836 | #include <X11/Xlib.h> |
|
|
7837 | #include <stdlib.h> |
|
|
7838 | main() |
|
|
7839 | { |
|
|
7840 | exit(0); |
|
|
7841 | (void) XOpenDisplay("foobar"); |
|
|
7842 | } |
|
|
7843 | _ACEOF |
|
|
7844 | rm -f conftest$ac_exeext |
|
|
7845 | if { (ac_try="$ac_link" |
|
|
7846 | case "(($ac_try" in |
|
|
7847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7848 | *) ac_try_echo=$ac_try;; |
|
|
7849 | esac |
|
|
7850 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7851 | (eval "$ac_link") 2>&5 |
|
|
7852 | ac_status=$? |
|
|
7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7855 | { (case "(($ac_try" in |
|
|
7856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
7857 | *) ac_try_echo=$ac_try;; |
|
|
7858 | esac |
|
|
7859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
7860 | (eval "$ac_try") 2>&5 |
|
|
7861 | ac_status=$? |
|
|
7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7863 | (exit $ac_status); }; }; then |
|
|
7864 | rxvt_cv_R=yes |
|
|
7865 | else |
|
|
7866 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7867 | echo "$as_me: failed program was:" >&5 |
|
|
7868 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7869 | |
|
|
7870 | ( exit $ac_status ) |
|
|
7871 | rxvt_cv_R=no |
|
|
7872 | fi |
|
|
7873 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7874 | fi |
|
|
7875 | |
|
|
7876 | |
|
|
7877 | fi |
|
|
7878 | { echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5 |
|
|
7879 | echo "${ECHO_T}$rxvt_cv_R" >&6; } |
|
|
7880 | if test x$rxvt_cv_R != xyes; then |
|
|
7881 | LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
7882 | fi |
|
|
7883 | fi |
|
|
7884 | |
|
|
7885 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7751 | { echo "$as_me:$LINENO: checking for XPointer" >&5 |
7886 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7752 | echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } |
7887 | if test "${rxvt_cv_xpointer+set}" = set; then |
7753 | if test "${rxvt_cv_xpointer+set}" = set; then |
7888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7889 | else |
7755 | else |
… | |
… | |
7936 | cat >>confdefs.h <<\_ACEOF |
7802 | cat >>confdefs.h <<\_ACEOF |
7937 | #define HAVE_XPOINTER 1 |
7803 | #define HAVE_XPOINTER 1 |
7938 | _ACEOF |
7804 | _ACEOF |
7939 | |
7805 | |
7940 | fi |
7806 | fi |
7941 | LIBS=$ac_save_LIBS |
|
|
7942 | CFLAGS=$ac_save_CFLAGS |
|
|
7943 | |
7807 | |
7944 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7808 | { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 |
7945 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7809 | echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } |
7946 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7810 | if test "${rxvt_xlib_illegal_access+set}" = set; then |
7947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8002 | cat >>confdefs.h <<\_ACEOF |
7866 | cat >>confdefs.h <<\_ACEOF |
8003 | #define XLIB_ILLEGAL_ACCESS 1 |
7867 | #define XLIB_ILLEGAL_ACCESS 1 |
8004 | _ACEOF |
7868 | _ACEOF |
8005 | |
7869 | |
8006 | fi |
7870 | fi |
8007 | |
|
|
8008 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
|
|
8009 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
|
|
8010 | if test "${ac_cv_c_const+set}" = set; then |
|
|
8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8012 | else |
|
|
8013 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8014 | /* confdefs.h. */ |
|
|
8015 | _ACEOF |
|
|
8016 | cat confdefs.h >>conftest.$ac_ext |
|
|
8017 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8018 | /* end confdefs.h. */ |
|
|
8019 | |
|
|
8020 | int |
|
|
8021 | main () |
|
|
8022 | { |
|
|
8023 | /* FIXME: Include the comments suggested by Paul. */ |
|
|
8024 | #ifndef __cplusplus |
|
|
8025 | /* Ultrix mips cc rejects this. */ |
|
|
8026 | typedef int charset[2]; |
|
|
8027 | const charset cs; |
|
|
8028 | /* SunOS 4.1.1 cc rejects this. */ |
|
|
8029 | char const *const *pcpcc; |
|
|
8030 | char **ppc; |
|
|
8031 | /* NEC SVR4.0.2 mips cc rejects this. */ |
|
|
8032 | struct point {int x, y;}; |
|
|
8033 | static struct point const zero = {0,0}; |
|
|
8034 | /* AIX XL C 1.02.0.0 rejects this. |
|
|
8035 | It does not let you subtract one const X* pointer from another in |
|
|
8036 | an arm of an if-expression whose if-part is not a constant |
|
|
8037 | expression */ |
|
|
8038 | const char *g = "string"; |
|
|
8039 | pcpcc = &g + (g ? g-g : 0); |
|
|
8040 | /* HPUX 7.0 cc rejects these. */ |
|
|
8041 | ++pcpcc; |
|
|
8042 | ppc = (char**) pcpcc; |
|
|
8043 | pcpcc = (char const *const *) ppc; |
|
|
8044 | { /* SCO 3.2v4 cc rejects this. */ |
|
|
8045 | char *t; |
|
|
8046 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
8047 | |
|
|
8048 | *t++ = 0; |
|
|
8049 | if (s) return 0; |
|
|
8050 | } |
|
|
8051 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
8052 | int x[] = {25, 17}; |
|
|
8053 | const int *foo = &x[0]; |
|
|
8054 | ++foo; |
|
|
8055 | } |
|
|
8056 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
8057 | typedef const int *iptr; |
|
|
8058 | iptr p = 0; |
|
|
8059 | ++p; |
|
|
8060 | } |
|
|
8061 | { /* AIX XL C 1.02.0.0 rejects this saying |
|
|
8062 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
8063 | struct s { int j; const int *ap[3]; }; |
|
|
8064 | struct s *b; b->j = 5; |
|
|
8065 | } |
|
|
8066 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
8067 | const int foo = 10; |
|
|
8068 | if (!foo) return 0; |
|
|
8069 | } |
|
|
8070 | return !cs[0] && !zero.x; |
|
|
8071 | #endif |
|
|
8072 | |
|
|
8073 | ; |
|
|
8074 | return 0; |
|
|
8075 | } |
|
|
8076 | _ACEOF |
|
|
8077 | rm -f conftest.$ac_objext |
|
|
8078 | if { (ac_try="$ac_compile" |
|
|
8079 | case "(($ac_try" in |
|
|
8080 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8081 | *) ac_try_echo=$ac_try;; |
|
|
8082 | esac |
|
|
8083 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8084 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8085 | ac_status=$? |
|
|
8086 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8087 | rm -f conftest.er1 |
|
|
8088 | cat conftest.err >&5 |
|
|
8089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8090 | (exit $ac_status); } && { |
|
|
8091 | test -z "$ac_cxx_werror_flag" || |
|
|
8092 | test ! -s conftest.err |
|
|
8093 | } && test -s conftest.$ac_objext; then |
|
|
8094 | ac_cv_c_const=yes |
|
|
8095 | else |
|
|
8096 | echo "$as_me: failed program was:" >&5 |
|
|
8097 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8098 | |
|
|
8099 | ac_cv_c_const=no |
|
|
8100 | fi |
|
|
8101 | |
|
|
8102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8103 | fi |
|
|
8104 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
|
|
8105 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
|
|
8106 | if test $ac_cv_c_const = no; then |
|
|
8107 | |
|
|
8108 | cat >>confdefs.h <<\_ACEOF |
|
|
8109 | #define const |
|
|
8110 | _ACEOF |
|
|
8111 | |
|
|
8112 | fi |
|
|
8113 | |
|
|
8114 | { echo "$as_me:$LINENO: checking for inline" >&5 |
|
|
8115 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
|
|
8116 | if test "${ac_cv_c_inline+set}" = set; then |
|
|
8117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8118 | else |
|
|
8119 | ac_cv_c_inline=no |
|
|
8120 | for ac_kw in inline __inline__ __inline; do |
|
|
8121 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8122 | /* confdefs.h. */ |
|
|
8123 | _ACEOF |
|
|
8124 | cat confdefs.h >>conftest.$ac_ext |
|
|
8125 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8126 | /* end confdefs.h. */ |
|
|
8127 | #ifndef __cplusplus |
|
|
8128 | typedef int foo_t; |
|
|
8129 | static $ac_kw foo_t static_foo () {return 0; } |
|
|
8130 | $ac_kw foo_t foo () {return 0; } |
|
|
8131 | #endif |
|
|
8132 | |
|
|
8133 | _ACEOF |
|
|
8134 | rm -f conftest.$ac_objext |
|
|
8135 | if { (ac_try="$ac_compile" |
|
|
8136 | case "(($ac_try" in |
|
|
8137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8138 | *) ac_try_echo=$ac_try;; |
|
|
8139 | esac |
|
|
8140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8141 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8142 | ac_status=$? |
|
|
8143 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8144 | rm -f conftest.er1 |
|
|
8145 | cat conftest.err >&5 |
|
|
8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8147 | (exit $ac_status); } && { |
|
|
8148 | test -z "$ac_cxx_werror_flag" || |
|
|
8149 | test ! -s conftest.err |
|
|
8150 | } && test -s conftest.$ac_objext; then |
|
|
8151 | ac_cv_c_inline=$ac_kw |
|
|
8152 | else |
|
|
8153 | echo "$as_me: failed program was:" >&5 |
|
|
8154 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8155 | |
|
|
8156 | |
|
|
8157 | fi |
|
|
8158 | |
|
|
8159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8160 | test "$ac_cv_c_inline" != no && break |
|
|
8161 | done |
|
|
8162 | |
|
|
8163 | fi |
|
|
8164 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
|
|
8165 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
|
|
8166 | |
|
|
8167 | |
|
|
8168 | case $ac_cv_c_inline in |
|
|
8169 | inline | yes) ;; |
|
|
8170 | *) |
|
|
8171 | case $ac_cv_c_inline in |
|
|
8172 | no) ac_val=;; |
|
|
8173 | *) ac_val=$ac_cv_c_inline;; |
|
|
8174 | esac |
|
|
8175 | cat >>confdefs.h <<_ACEOF |
|
|
8176 | #ifndef __cplusplus |
|
|
8177 | #define inline $ac_val |
|
|
8178 | #endif |
|
|
8179 | _ACEOF |
|
|
8180 | ;; |
|
|
8181 | esac |
|
|
8182 | |
|
|
8183 | |
|
|
8184 | |
7871 | |
8185 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
7872 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
8186 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
7873 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } |
8187 | if test "${ac_cv_type_mode_t+set}" = set; then |
7874 | if test "${ac_cv_type_mode_t+set}" = set; then |
8188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
8345 | _ACEOF |
8032 | _ACEOF |
8346 | |
8033 | |
8347 | fi |
8034 | fi |
8348 | |
8035 | |
8349 | |
8036 | |
8350 | { echo "$as_me:$LINENO: checking for short" >&5 |
8037 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
8351 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
8038 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
8352 | if test "${ac_cv_type_short+set}" = set; then |
8039 | if test "${ac_cv_c_int16_t+set}" = set; then |
8353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8354 | 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 |
8355 | cat >conftest.$ac_ext <<_ACEOF |
8045 | cat >conftest.$ac_ext <<_ACEOF |
8356 | /* confdefs.h. */ |
8046 | /* confdefs.h. */ |
8357 | _ACEOF |
8047 | _ACEOF |
8358 | cat confdefs.h >>conftest.$ac_ext |
8048 | cat confdefs.h >>conftest.$ac_ext |
8359 | cat >>conftest.$ac_ext <<_ACEOF |
8049 | cat >>conftest.$ac_ext <<_ACEOF |
8360 | /* end confdefs.h. */ |
8050 | /* end confdefs.h. */ |
8361 | $ac_includes_default |
8051 | $ac_includes_default |
8362 | typedef short ac__type_new_; |
|
|
8363 | int |
8052 | int |
8364 | main () |
8053 | main () |
8365 | { |
8054 | { |
8366 | if ((ac__type_new_ *) 0) |
8055 | static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))]; |
8367 | return 0; |
8056 | test_array [0] = 0 |
8368 | if (sizeof (ac__type_new_)) |
8057 | |
8369 | return 0; |
|
|
8370 | ; |
8058 | ; |
8371 | return 0; |
8059 | return 0; |
8372 | } |
8060 | } |
8373 | _ACEOF |
8061 | _ACEOF |
8374 | rm -f conftest.$ac_objext |
8062 | rm -f conftest.$ac_objext |
… | |
… | |
8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8387 | (exit $ac_status); } && { |
8075 | (exit $ac_status); } && { |
8388 | test -z "$ac_cxx_werror_flag" || |
8076 | test -z "$ac_cxx_werror_flag" || |
8389 | test ! -s conftest.err |
8077 | test ! -s conftest.err |
8390 | } && test -s conftest.$ac_objext; then |
8078 | } && test -s conftest.$ac_objext; then |
8391 | ac_cv_type_short=yes |
|
|
8392 | else |
|
|
8393 | echo "$as_me: failed program was:" >&5 |
|
|
8394 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8395 | |
|
|
8396 | ac_cv_type_short=no |
|
|
8397 | fi |
|
|
8398 | |
|
|
8399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8400 | fi |
|
|
8401 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
|
|
8402 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
|
|
8403 | |
|
|
8404 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8405 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8406 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8407 | # This bug is HP SR number 8606223364. |
|
|
8408 | { echo "$as_me:$LINENO: checking size of short" >&5 |
|
|
8409 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
|
|
8410 | if test "${ac_cv_sizeof_short+set}" = set; then |
|
|
8411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8412 | else |
|
|
8413 | if test "$cross_compiling" = yes; then |
|
|
8414 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8415 | cat >conftest.$ac_ext <<_ACEOF |
8079 | cat >conftest.$ac_ext <<_ACEOF |
8416 | /* confdefs.h. */ |
8080 | /* confdefs.h. */ |
8417 | _ACEOF |
8081 | _ACEOF |
8418 | cat confdefs.h >>conftest.$ac_ext |
8082 | cat confdefs.h >>conftest.$ac_ext |
8419 | cat >>conftest.$ac_ext <<_ACEOF |
8083 | cat >>conftest.$ac_ext <<_ACEOF |
8420 | /* end confdefs.h. */ |
8084 | /* end confdefs.h. */ |
8421 | $ac_includes_default |
8085 | $ac_includes_default |
8422 | typedef short ac__type_sizeof_; |
|
|
8423 | int |
8086 | int |
8424 | main () |
8087 | main () |
8425 | { |
8088 | { |
8426 | 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))]; |
8427 | test_array [0] = 0 |
8091 | test_array [0] = 0 |
8428 | |
8092 | |
8429 | ; |
8093 | ; |
8430 | return 0; |
8094 | return 0; |
8431 | } |
8095 | } |
… | |
… | |
8445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8446 | (exit $ac_status); } && { |
8110 | (exit $ac_status); } && { |
8447 | test -z "$ac_cxx_werror_flag" || |
8111 | test -z "$ac_cxx_werror_flag" || |
8448 | test ! -s conftest.err |
8112 | test ! -s conftest.err |
8449 | } && test -s conftest.$ac_objext; then |
8113 | } && test -s conftest.$ac_objext; then |
8450 | ac_lo=0 ac_mid=0 |
8114 | : |
8451 | 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 |
8452 | cat >conftest.$ac_ext <<_ACEOF |
8159 | cat >conftest.$ac_ext <<_ACEOF |
8453 | /* confdefs.h. */ |
8160 | /* confdefs.h. */ |
8454 | _ACEOF |
8161 | _ACEOF |
8455 | cat confdefs.h >>conftest.$ac_ext |
8162 | cat confdefs.h >>conftest.$ac_ext |
8456 | cat >>conftest.$ac_ext <<_ACEOF |
8163 | cat >>conftest.$ac_ext <<_ACEOF |
8457 | /* end confdefs.h. */ |
8164 | /* end confdefs.h. */ |
8458 | $ac_includes_default |
8165 | $ac_includes_default |
8459 | typedef short ac__type_sizeof_; |
|
|
8460 | int |
8166 | int |
8461 | main () |
8167 | main () |
8462 | { |
8168 | { |
8463 | 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)]; |
8464 | test_array [0] = 0 |
8170 | test_array [0] = 0 |
8465 | |
8171 | |
8466 | ; |
8172 | ; |
8467 | return 0; |
8173 | return 0; |
8468 | } |
8174 | } |
… | |
… | |
8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8483 | (exit $ac_status); } && { |
8189 | (exit $ac_status); } && { |
8484 | test -z "$ac_cxx_werror_flag" || |
8190 | test -z "$ac_cxx_werror_flag" || |
8485 | test ! -s conftest.err |
8191 | test ! -s conftest.err |
8486 | } && test -s conftest.$ac_objext; then |
8192 | } && test -s conftest.$ac_objext; then |
8487 | 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 | |
8488 | else |
8198 | else |
8489 | echo "$as_me: failed program was:" >&5 |
8199 | echo "$as_me: failed program was:" >&5 |
8490 | sed 's/^/| /' conftest.$ac_ext >&5 |
8200 | sed 's/^/| /' conftest.$ac_ext >&5 |
8491 | |
8201 | |
8492 | ac_lo=`expr $ac_mid + 1` |
8202 | |
8493 | if test $ac_lo -le $ac_mid; then |
|
|
8494 | ac_lo= ac_hi= |
|
|
8495 | break |
|
|
8496 | fi |
|
|
8497 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8498 | fi |
8203 | fi |
8499 | |
8204 | |
8500 | 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 |
8501 | done |
8207 | done |
8502 | else |
8208 | fi |
8503 | echo "$as_me: failed program was:" >&5 |
8209 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 |
8504 | 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 | *) |
8505 | |
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 |
8506 | cat >conftest.$ac_ext <<_ACEOF |
8231 | cat >conftest.$ac_ext <<_ACEOF |
8507 | /* confdefs.h. */ |
8232 | /* confdefs.h. */ |
8508 | _ACEOF |
8233 | _ACEOF |
8509 | cat confdefs.h >>conftest.$ac_ext |
8234 | cat confdefs.h >>conftest.$ac_ext |
8510 | cat >>conftest.$ac_ext <<_ACEOF |
8235 | cat >>conftest.$ac_ext <<_ACEOF |
8511 | /* end confdefs.h. */ |
8236 | /* end confdefs.h. */ |
8512 | $ac_includes_default |
8237 | $ac_includes_default |
8513 | typedef short ac__type_sizeof_; |
|
|
8514 | int |
8238 | int |
8515 | main () |
8239 | main () |
8516 | { |
8240 | { |
8517 | 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))]; |
8518 | test_array [0] = 0 |
8242 | test_array [0] = 0 |
8519 | |
8243 | |
8520 | ; |
8244 | ; |
8521 | return 0; |
8245 | return 0; |
8522 | } |
8246 | } |
… | |
… | |
8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8537 | (exit $ac_status); } && { |
8261 | (exit $ac_status); } && { |
8538 | test -z "$ac_cxx_werror_flag" || |
8262 | test -z "$ac_cxx_werror_flag" || |
8539 | test ! -s conftest.err |
8263 | test ! -s conftest.err |
8540 | } && test -s conftest.$ac_objext; then |
8264 | } && test -s conftest.$ac_objext; then |
8541 | ac_hi=-1 ac_mid=-1 |
|
|
8542 | while :; do |
|
|
8543 | cat >conftest.$ac_ext <<_ACEOF |
8265 | cat >conftest.$ac_ext <<_ACEOF |
8544 | /* confdefs.h. */ |
8266 | /* confdefs.h. */ |
8545 | _ACEOF |
8267 | _ACEOF |
8546 | cat confdefs.h >>conftest.$ac_ext |
8268 | cat confdefs.h >>conftest.$ac_ext |
8547 | cat >>conftest.$ac_ext <<_ACEOF |
8269 | cat >>conftest.$ac_ext <<_ACEOF |
8548 | /* end confdefs.h. */ |
8270 | /* end confdefs.h. */ |
8549 | $ac_includes_default |
8271 | $ac_includes_default |
8550 | typedef short ac__type_sizeof_; |
|
|
8551 | int |
8272 | int |
8552 | main () |
8273 | main () |
8553 | { |
8274 | { |
8554 | 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))]; |
8555 | test_array [0] = 0 |
8277 | test_array [0] = 0 |
8556 | |
8278 | |
8557 | ; |
8279 | ; |
8558 | return 0; |
8280 | return 0; |
8559 | } |
8281 | } |
… | |
… | |
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8574 | (exit $ac_status); } && { |
8296 | (exit $ac_status); } && { |
8575 | test -z "$ac_cxx_werror_flag" || |
8297 | test -z "$ac_cxx_werror_flag" || |
8576 | test ! -s conftest.err |
8298 | test ! -s conftest.err |
8577 | } && test -s conftest.$ac_objext; then |
8299 | } && test -s conftest.$ac_objext; then |
8578 | ac_lo=$ac_mid; break |
8300 | : |
8579 | else |
8301 | else |
8580 | echo "$as_me: failed program was:" >&5 |
8302 | echo "$as_me: failed program was:" >&5 |
8581 | sed 's/^/| /' conftest.$ac_ext >&5 |
8303 | sed 's/^/| /' conftest.$ac_ext >&5 |
8582 | |
8304 | |
8583 | ac_hi=`expr '(' $ac_mid ')' - 1` |
8305 | case $ac_type in |
8584 | if test $ac_mid -le $ac_hi; then |
8306 | int32_t) ac_cv_c_int32_t=yes ;; |
8585 | ac_lo= ac_hi= |
8307 | *) ac_cv_c_int32_t=$ac_type ;; |
8586 | break |
8308 | esac |
8587 | fi |
8309 | |
8588 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8589 | fi |
8310 | fi |
8590 | |
8311 | |
8591 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8592 | done |
|
|
8593 | else |
8313 | else |
8594 | echo "$as_me: failed program was:" >&5 |
8314 | echo "$as_me: failed program was:" >&5 |
8595 | sed 's/^/| /' conftest.$ac_ext >&5 |
8315 | sed 's/^/| /' conftest.$ac_ext >&5 |
8596 | |
8316 | |
8597 | ac_lo= ac_hi= |
8317 | |
8598 | fi |
8318 | fi |
8599 | |
8319 | |
8600 | 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 |
8601 | 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 | *) |
8602 | |
8329 | |
8603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8330 | cat >>confdefs.h <<_ACEOF |
8604 | # Binary search between lo and hi bounds. |
8331 | #define int32_t $ac_cv_c_int32_t |
8605 | while test "x$ac_lo" != "x$ac_hi"; do |
8332 | _ACEOF |
8606 | 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 |
8607 | cat >conftest.$ac_ext <<_ACEOF |
8345 | cat >conftest.$ac_ext <<_ACEOF |
8608 | /* confdefs.h. */ |
8346 | /* confdefs.h. */ |
8609 | _ACEOF |
8347 | _ACEOF |
8610 | cat confdefs.h >>conftest.$ac_ext |
8348 | cat confdefs.h >>conftest.$ac_ext |
8611 | cat >>conftest.$ac_ext <<_ACEOF |
8349 | cat >>conftest.$ac_ext <<_ACEOF |
8612 | /* end confdefs.h. */ |
8350 | /* end confdefs.h. */ |
8613 | $ac_includes_default |
8351 | $ac_includes_default |
8614 | typedef short ac__type_sizeof_; |
|
|
8615 | int |
8352 | int |
8616 | main () |
8353 | main () |
8617 | { |
8354 | { |
8618 | 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)]; |
8619 | test_array [0] = 0 |
8356 | test_array [0] = 0 |
8620 | |
8357 | |
8621 | ; |
8358 | ; |
8622 | return 0; |
8359 | return 0; |
8623 | } |
8360 | } |
… | |
… | |
8637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8638 | (exit $ac_status); } && { |
8375 | (exit $ac_status); } && { |
8639 | test -z "$ac_cxx_werror_flag" || |
8376 | test -z "$ac_cxx_werror_flag" || |
8640 | test ! -s conftest.err |
8377 | test ! -s conftest.err |
8641 | } && test -s conftest.$ac_objext; then |
8378 | } && test -s conftest.$ac_objext; then |
8642 | 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 | |
8643 | else |
8384 | else |
8644 | echo "$as_me: failed program was:" >&5 |
8385 | echo "$as_me: failed program was:" >&5 |
8645 | sed 's/^/| /' conftest.$ac_ext >&5 |
8386 | sed 's/^/| /' conftest.$ac_ext >&5 |
8646 | |
8387 | |
8647 | ac_lo=`expr '(' $ac_mid ')' + 1` |
8388 | |
8648 | fi |
8389 | fi |
8649 | |
8390 | |
8650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8651 | done |
8392 | test "$ac_cv_c_uint32_t" != no && break |
8652 | case $ac_lo in |
8393 | done |
8653 | ?*) ac_cv_sizeof_short=$ac_lo;; |
|
|
8654 | '') if test "$ac_cv_type_short" = yes; then |
|
|
8655 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8656 | See \`config.log' for more details." >&5 |
|
|
8657 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8658 | See \`config.log' for more details." >&2;} |
|
|
8659 | { (exit 77); exit 77; }; } |
|
|
8660 | else |
|
|
8661 | ac_cv_sizeof_short=0 |
|
|
8662 | fi ;; |
|
|
8663 | esac |
|
|
8664 | else |
|
|
8665 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8666 | /* confdefs.h. */ |
|
|
8667 | _ACEOF |
|
|
8668 | cat confdefs.h >>conftest.$ac_ext |
|
|
8669 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8670 | /* end confdefs.h. */ |
|
|
8671 | $ac_includes_default |
|
|
8672 | typedef short ac__type_sizeof_; |
|
|
8673 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8674 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
8675 | #include <stdio.h> |
|
|
8676 | #include <stdlib.h> |
|
|
8677 | int |
|
|
8678 | main () |
|
|
8679 | { |
|
|
8680 | |
|
|
8681 | FILE *f = fopen ("conftest.val", "w"); |
|
|
8682 | if (! f) |
|
|
8683 | return 1; |
|
|
8684 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
8685 | { |
|
|
8686 | long int i = longval (); |
|
|
8687 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8688 | return 1; |
|
|
8689 | fprintf (f, "%ld\n", i); |
|
|
8690 | } |
|
|
8691 | else |
|
|
8692 | { |
|
|
8693 | unsigned long int i = ulongval (); |
|
|
8694 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
8695 | return 1; |
|
|
8696 | fprintf (f, "%lu\n", i); |
|
|
8697 | } |
|
|
8698 | return ferror (f) || fclose (f) != 0; |
|
|
8699 | |
|
|
8700 | ; |
|
|
8701 | return 0; |
|
|
8702 | } |
|
|
8703 | _ACEOF |
|
|
8704 | rm -f conftest$ac_exeext |
|
|
8705 | if { (ac_try="$ac_link" |
|
|
8706 | case "(($ac_try" in |
|
|
8707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8708 | *) ac_try_echo=$ac_try;; |
|
|
8709 | esac |
|
|
8710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8711 | (eval "$ac_link") 2>&5 |
|
|
8712 | ac_status=$? |
|
|
8713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8714 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
8715 | { (case "(($ac_try" in |
|
|
8716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8717 | *) ac_try_echo=$ac_try;; |
|
|
8718 | esac |
|
|
8719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8720 | (eval "$ac_try") 2>&5 |
|
|
8721 | ac_status=$? |
|
|
8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8723 | (exit $ac_status); }; }; then |
|
|
8724 | ac_cv_sizeof_short=`cat conftest.val` |
|
|
8725 | else |
|
|
8726 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
8727 | echo "$as_me: failed program was:" >&5 |
|
|
8728 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8729 | |
|
|
8730 | ( exit $ac_status ) |
|
|
8731 | if test "$ac_cv_type_short" = yes; then |
|
|
8732 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
|
|
8733 | See \`config.log' for more details." >&5 |
|
|
8734 | echo "$as_me: error: cannot compute sizeof (short) |
|
|
8735 | See \`config.log' for more details." >&2;} |
|
|
8736 | { (exit 77); exit 77; }; } |
|
|
8737 | else |
|
|
8738 | ac_cv_sizeof_short=0 |
|
|
8739 | fi |
|
|
8740 | fi |
8394 | fi |
8741 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
8742 | fi |
|
|
8743 | rm -f conftest.val |
|
|
8744 | fi |
|
|
8745 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
8395 | { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 |
8746 | 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 | *) |
8747 | |
8400 | |
|
|
8401 | cat >>confdefs.h <<\_ACEOF |
|
|
8402 | #define _UINT32_T 1 |
|
|
8403 | _ACEOF |
8748 | |
8404 | |
8749 | |
8405 | |
8750 | cat >>confdefs.h <<_ACEOF |
8406 | cat >>confdefs.h <<_ACEOF |
8751 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
8407 | #define uint32_t $ac_cv_c_uint32_t |
8752 | _ACEOF |
8408 | _ACEOF |
8753 | |
8409 | ;; |
8754 | |
|
|
8755 | { echo "$as_me:$LINENO: checking for int" >&5 |
|
|
8756 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
|
|
8757 | if test "${ac_cv_type_int+set}" = set; then |
|
|
8758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8759 | else |
|
|
8760 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8761 | /* confdefs.h. */ |
|
|
8762 | _ACEOF |
|
|
8763 | cat confdefs.h >>conftest.$ac_ext |
|
|
8764 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8765 | /* end confdefs.h. */ |
|
|
8766 | $ac_includes_default |
|
|
8767 | typedef int ac__type_new_; |
|
|
8768 | int |
|
|
8769 | main () |
|
|
8770 | { |
|
|
8771 | if ((ac__type_new_ *) 0) |
|
|
8772 | return 0; |
|
|
8773 | if (sizeof (ac__type_new_)) |
|
|
8774 | return 0; |
|
|
8775 | ; |
|
|
8776 | return 0; |
|
|
8777 | } |
|
|
8778 | _ACEOF |
|
|
8779 | rm -f conftest.$ac_objext |
|
|
8780 | if { (ac_try="$ac_compile" |
|
|
8781 | case "(($ac_try" in |
|
|
8782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8783 | *) ac_try_echo=$ac_try;; |
|
|
8784 | esac |
8410 | esac |
8785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8786 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8787 | ac_status=$? |
|
|
8788 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8789 | rm -f conftest.er1 |
|
|
8790 | cat conftest.err >&5 |
|
|
8791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8792 | (exit $ac_status); } && { |
|
|
8793 | test -z "$ac_cxx_werror_flag" || |
|
|
8794 | test ! -s conftest.err |
|
|
8795 | } && test -s conftest.$ac_objext; then |
|
|
8796 | ac_cv_type_int=yes |
|
|
8797 | else |
|
|
8798 | echo "$as_me: failed program was:" >&5 |
|
|
8799 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8800 | |
8411 | |
8801 | ac_cv_type_int=no |
|
|
8802 | fi |
|
|
8803 | |
8412 | |
8804 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8805 | fi |
|
|
8806 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
|
|
8807 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
|
|
8808 | |
8413 | |
8809 | # The cast to long int works around a bug in the HP C Compiler |
|
|
8810 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
8811 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
8812 | # This bug is HP SR number 8606223364. |
|
|
8813 | { echo "$as_me:$LINENO: checking size of int" >&5 |
|
|
8814 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
|
|
8815 | if test "${ac_cv_sizeof_int+set}" = set; then |
|
|
8816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8817 | else |
|
|
8818 | if test "$cross_compiling" = yes; then |
|
|
8819 | # Depending upon the size, compute the lo and hi bounds. |
|
|
8820 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8821 | /* confdefs.h. */ |
|
|
8822 | _ACEOF |
|
|
8823 | cat confdefs.h >>conftest.$ac_ext |
|
|
8824 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8825 | /* end confdefs.h. */ |
|
|
8826 | $ac_includes_default |
|
|
8827 | typedef int ac__type_sizeof_; |
|
|
8828 | int |
|
|
8829 | main () |
|
|
8830 | { |
|
|
8831 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
8832 | test_array [0] = 0 |
|
|
8833 | |
|
|
8834 | ; |
|
|
8835 | return 0; |
|
|
8836 | } |
|
|
8837 | _ACEOF |
|
|
8838 | rm -f conftest.$ac_objext |
|
|
8839 | if { (ac_try="$ac_compile" |
|
|
8840 | case "(($ac_try" in |
|
|
8841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8842 | *) ac_try_echo=$ac_try;; |
|
|
8843 | esac |
|
|
8844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8845 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8846 | ac_status=$? |
|
|
8847 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8848 | rm -f conftest.er1 |
|
|
8849 | cat conftest.err >&5 |
|
|
8850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8851 | (exit $ac_status); } && { |
|
|
8852 | test -z "$ac_cxx_werror_flag" || |
|
|
8853 | test ! -s conftest.err |
|
|
8854 | } && test -s conftest.$ac_objext; then |
|
|
8855 | ac_lo=0 ac_mid=0 |
|
|
8856 | while :; do |
|
|
8857 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8858 | /* confdefs.h. */ |
|
|
8859 | _ACEOF |
|
|
8860 | cat confdefs.h >>conftest.$ac_ext |
|
|
8861 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8862 | /* end confdefs.h. */ |
|
|
8863 | $ac_includes_default |
|
|
8864 | typedef int ac__type_sizeof_; |
|
|
8865 | int |
|
|
8866 | main () |
|
|
8867 | { |
|
|
8868 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
8869 | test_array [0] = 0 |
|
|
8870 | |
|
|
8871 | ; |
|
|
8872 | return 0; |
|
|
8873 | } |
|
|
8874 | _ACEOF |
|
|
8875 | rm -f conftest.$ac_objext |
|
|
8876 | if { (ac_try="$ac_compile" |
|
|
8877 | case "(($ac_try" in |
|
|
8878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8879 | *) ac_try_echo=$ac_try;; |
|
|
8880 | esac |
|
|
8881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8882 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8883 | ac_status=$? |
|
|
8884 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8885 | rm -f conftest.er1 |
|
|
8886 | cat conftest.err >&5 |
|
|
8887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8888 | (exit $ac_status); } && { |
|
|
8889 | test -z "$ac_cxx_werror_flag" || |
|
|
8890 | test ! -s conftest.err |
|
|
8891 | } && test -s conftest.$ac_objext; then |
|
|
8892 | ac_hi=$ac_mid; break |
|
|
8893 | else |
|
|
8894 | echo "$as_me: failed program was:" >&5 |
|
|
8895 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8896 | |
|
|
8897 | ac_lo=`expr $ac_mid + 1` |
|
|
8898 | if test $ac_lo -le $ac_mid; then |
|
|
8899 | ac_lo= ac_hi= |
|
|
8900 | break |
|
|
8901 | fi |
|
|
8902 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
8903 | fi |
|
|
8904 | |
|
|
8905 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8906 | done |
|
|
8907 | else |
|
|
8908 | echo "$as_me: failed program was:" >&5 |
|
|
8909 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8910 | |
|
|
8911 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8912 | /* confdefs.h. */ |
|
|
8913 | _ACEOF |
|
|
8914 | cat confdefs.h >>conftest.$ac_ext |
|
|
8915 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8916 | /* end confdefs.h. */ |
|
|
8917 | $ac_includes_default |
|
|
8918 | typedef int ac__type_sizeof_; |
|
|
8919 | int |
|
|
8920 | main () |
|
|
8921 | { |
|
|
8922 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
8923 | test_array [0] = 0 |
|
|
8924 | |
|
|
8925 | ; |
|
|
8926 | return 0; |
|
|
8927 | } |
|
|
8928 | _ACEOF |
|
|
8929 | rm -f conftest.$ac_objext |
|
|
8930 | if { (ac_try="$ac_compile" |
|
|
8931 | case "(($ac_try" in |
|
|
8932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8933 | *) ac_try_echo=$ac_try;; |
|
|
8934 | esac |
|
|
8935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8936 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8937 | ac_status=$? |
|
|
8938 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8939 | rm -f conftest.er1 |
|
|
8940 | cat conftest.err >&5 |
|
|
8941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8942 | (exit $ac_status); } && { |
|
|
8943 | test -z "$ac_cxx_werror_flag" || |
|
|
8944 | test ! -s conftest.err |
|
|
8945 | } && test -s conftest.$ac_objext; then |
|
|
8946 | ac_hi=-1 ac_mid=-1 |
|
|
8947 | while :; do |
|
|
8948 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8949 | /* confdefs.h. */ |
|
|
8950 | _ACEOF |
|
|
8951 | cat confdefs.h >>conftest.$ac_ext |
|
|
8952 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8953 | /* end confdefs.h. */ |
|
|
8954 | $ac_includes_default |
|
|
8955 | typedef int ac__type_sizeof_; |
|
|
8956 | int |
|
|
8957 | main () |
|
|
8958 | { |
|
|
8959 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
8960 | test_array [0] = 0 |
|
|
8961 | |
|
|
8962 | ; |
|
|
8963 | return 0; |
|
|
8964 | } |
|
|
8965 | _ACEOF |
|
|
8966 | rm -f conftest.$ac_objext |
|
|
8967 | if { (ac_try="$ac_compile" |
|
|
8968 | case "(($ac_try" in |
|
|
8969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
8970 | *) ac_try_echo=$ac_try;; |
|
|
8971 | esac |
|
|
8972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
8973 | (eval "$ac_compile") 2>conftest.er1 |
|
|
8974 | ac_status=$? |
|
|
8975 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8976 | rm -f conftest.er1 |
|
|
8977 | cat conftest.err >&5 |
|
|
8978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8979 | (exit $ac_status); } && { |
|
|
8980 | test -z "$ac_cxx_werror_flag" || |
|
|
8981 | test ! -s conftest.err |
|
|
8982 | } && test -s conftest.$ac_objext; then |
|
|
8983 | ac_lo=$ac_mid; break |
|
|
8984 | else |
|
|
8985 | echo "$as_me: failed program was:" >&5 |
|
|
8986 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8987 | |
|
|
8988 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
8989 | if test $ac_mid -le $ac_hi; then |
|
|
8990 | ac_lo= ac_hi= |
|
|
8991 | break |
|
|
8992 | fi |
|
|
8993 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
8994 | fi |
|
|
8995 | |
|
|
8996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
8997 | done |
|
|
8998 | else |
|
|
8999 | echo "$as_me: failed program was:" >&5 |
|
|
9000 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9001 | |
|
|
9002 | ac_lo= ac_hi= |
|
|
9003 | fi |
|
|
9004 | |
|
|
9005 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9006 | fi |
|
|
9007 | |
|
|
9008 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9009 | # Binary search between lo and hi bounds. |
|
|
9010 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9011 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9012 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9013 | /* confdefs.h. */ |
|
|
9014 | _ACEOF |
|
|
9015 | cat confdefs.h >>conftest.$ac_ext |
|
|
9016 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9017 | /* end confdefs.h. */ |
|
|
9018 | $ac_includes_default |
|
|
9019 | typedef int ac__type_sizeof_; |
|
|
9020 | int |
|
|
9021 | main () |
|
|
9022 | { |
|
|
9023 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9024 | test_array [0] = 0 |
|
|
9025 | |
|
|
9026 | ; |
|
|
9027 | return 0; |
|
|
9028 | } |
|
|
9029 | _ACEOF |
|
|
9030 | rm -f conftest.$ac_objext |
|
|
9031 | if { (ac_try="$ac_compile" |
|
|
9032 | case "(($ac_try" in |
|
|
9033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9034 | *) ac_try_echo=$ac_try;; |
|
|
9035 | esac |
|
|
9036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9037 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9038 | ac_status=$? |
|
|
9039 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9040 | rm -f conftest.er1 |
|
|
9041 | cat conftest.err >&5 |
|
|
9042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9043 | (exit $ac_status); } && { |
|
|
9044 | test -z "$ac_cxx_werror_flag" || |
|
|
9045 | test ! -s conftest.err |
|
|
9046 | } && test -s conftest.$ac_objext; then |
|
|
9047 | ac_hi=$ac_mid |
|
|
9048 | else |
|
|
9049 | echo "$as_me: failed program was:" >&5 |
|
|
9050 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9051 | |
|
|
9052 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9053 | fi |
|
|
9054 | |
|
|
9055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9056 | done |
|
|
9057 | case $ac_lo in |
|
|
9058 | ?*) ac_cv_sizeof_int=$ac_lo;; |
|
|
9059 | '') if test "$ac_cv_type_int" = yes; then |
|
|
9060 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
9061 | See \`config.log' for more details." >&5 |
|
|
9062 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
9063 | See \`config.log' for more details." >&2;} |
|
|
9064 | { (exit 77); exit 77; }; } |
|
|
9065 | else |
|
|
9066 | ac_cv_sizeof_int=0 |
|
|
9067 | fi ;; |
|
|
9068 | esac |
|
|
9069 | else |
|
|
9070 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9071 | /* confdefs.h. */ |
|
|
9072 | _ACEOF |
|
|
9073 | cat confdefs.h >>conftest.$ac_ext |
|
|
9074 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9075 | /* end confdefs.h. */ |
|
|
9076 | $ac_includes_default |
|
|
9077 | typedef int ac__type_sizeof_; |
|
|
9078 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9079 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9080 | #include <stdio.h> |
|
|
9081 | #include <stdlib.h> |
|
|
9082 | int |
|
|
9083 | main () |
|
|
9084 | { |
|
|
9085 | |
|
|
9086 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9087 | if (! f) |
|
|
9088 | return 1; |
|
|
9089 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9090 | { |
|
|
9091 | long int i = longval (); |
|
|
9092 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9093 | return 1; |
|
|
9094 | fprintf (f, "%ld\n", i); |
|
|
9095 | } |
|
|
9096 | else |
|
|
9097 | { |
|
|
9098 | unsigned long int i = ulongval (); |
|
|
9099 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9100 | return 1; |
|
|
9101 | fprintf (f, "%lu\n", i); |
|
|
9102 | } |
|
|
9103 | return ferror (f) || fclose (f) != 0; |
|
|
9104 | |
|
|
9105 | ; |
|
|
9106 | return 0; |
|
|
9107 | } |
|
|
9108 | _ACEOF |
|
|
9109 | rm -f conftest$ac_exeext |
|
|
9110 | if { (ac_try="$ac_link" |
|
|
9111 | case "(($ac_try" in |
|
|
9112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9113 | *) ac_try_echo=$ac_try;; |
|
|
9114 | esac |
|
|
9115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9116 | (eval "$ac_link") 2>&5 |
|
|
9117 | ac_status=$? |
|
|
9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9119 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9120 | { (case "(($ac_try" in |
|
|
9121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9122 | *) ac_try_echo=$ac_try;; |
|
|
9123 | esac |
|
|
9124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9125 | (eval "$ac_try") 2>&5 |
|
|
9126 | ac_status=$? |
|
|
9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9128 | (exit $ac_status); }; }; then |
|
|
9129 | ac_cv_sizeof_int=`cat conftest.val` |
|
|
9130 | else |
|
|
9131 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9132 | echo "$as_me: failed program was:" >&5 |
|
|
9133 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9134 | |
|
|
9135 | ( exit $ac_status ) |
|
|
9136 | if test "$ac_cv_type_int" = yes; then |
|
|
9137 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
|
|
9138 | See \`config.log' for more details." >&5 |
|
|
9139 | echo "$as_me: error: cannot compute sizeof (int) |
|
|
9140 | See \`config.log' for more details." >&2;} |
|
|
9141 | { (exit 77); exit 77; }; } |
|
|
9142 | else |
|
|
9143 | ac_cv_sizeof_int=0 |
|
|
9144 | fi |
|
|
9145 | fi |
|
|
9146 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9147 | fi |
|
|
9148 | rm -f conftest.val |
|
|
9149 | fi |
|
|
9150 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
|
|
9151 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
|
|
9152 | |
|
|
9153 | |
|
|
9154 | |
|
|
9155 | cat >>confdefs.h <<_ACEOF |
|
|
9156 | #define SIZEOF_INT $ac_cv_sizeof_int |
|
|
9157 | _ACEOF |
|
|
9158 | |
|
|
9159 | |
|
|
9160 | { echo "$as_me:$LINENO: checking for long long" >&5 |
|
|
9161 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
|
|
9162 | if test "${ac_cv_type_long_long+set}" = set; then |
|
|
9163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9164 | else |
|
|
9165 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9166 | /* confdefs.h. */ |
|
|
9167 | _ACEOF |
|
|
9168 | cat confdefs.h >>conftest.$ac_ext |
|
|
9169 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9170 | /* end confdefs.h. */ |
|
|
9171 | $ac_includes_default |
|
|
9172 | typedef long long ac__type_new_; |
|
|
9173 | int |
|
|
9174 | main () |
|
|
9175 | { |
|
|
9176 | if ((ac__type_new_ *) 0) |
|
|
9177 | return 0; |
|
|
9178 | if (sizeof (ac__type_new_)) |
|
|
9179 | return 0; |
|
|
9180 | ; |
|
|
9181 | return 0; |
|
|
9182 | } |
|
|
9183 | _ACEOF |
|
|
9184 | rm -f conftest.$ac_objext |
|
|
9185 | if { (ac_try="$ac_compile" |
|
|
9186 | case "(($ac_try" in |
|
|
9187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9188 | *) ac_try_echo=$ac_try;; |
|
|
9189 | esac |
|
|
9190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9191 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9192 | ac_status=$? |
|
|
9193 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9194 | rm -f conftest.er1 |
|
|
9195 | cat conftest.err >&5 |
|
|
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9197 | (exit $ac_status); } && { |
|
|
9198 | test -z "$ac_cxx_werror_flag" || |
|
|
9199 | test ! -s conftest.err |
|
|
9200 | } && test -s conftest.$ac_objext; then |
|
|
9201 | ac_cv_type_long_long=yes |
|
|
9202 | else |
|
|
9203 | echo "$as_me: failed program was:" >&5 |
|
|
9204 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9205 | |
|
|
9206 | ac_cv_type_long_long=no |
|
|
9207 | fi |
|
|
9208 | |
|
|
9209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9210 | fi |
|
|
9211 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
|
|
9212 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
|
|
9213 | |
|
|
9214 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9215 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9216 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9217 | # This bug is HP SR number 8606223364. |
|
|
9218 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
|
|
9219 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
|
|
9220 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
|
|
9221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9222 | else |
|
|
9223 | if test "$cross_compiling" = yes; then |
|
|
9224 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9225 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9226 | /* confdefs.h. */ |
|
|
9227 | _ACEOF |
|
|
9228 | cat confdefs.h >>conftest.$ac_ext |
|
|
9229 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9230 | /* end confdefs.h. */ |
|
|
9231 | $ac_includes_default |
|
|
9232 | typedef long long ac__type_sizeof_; |
|
|
9233 | int |
|
|
9234 | main () |
|
|
9235 | { |
|
|
9236 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9237 | test_array [0] = 0 |
|
|
9238 | |
|
|
9239 | ; |
|
|
9240 | return 0; |
|
|
9241 | } |
|
|
9242 | _ACEOF |
|
|
9243 | rm -f conftest.$ac_objext |
|
|
9244 | if { (ac_try="$ac_compile" |
|
|
9245 | case "(($ac_try" in |
|
|
9246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9247 | *) ac_try_echo=$ac_try;; |
|
|
9248 | esac |
|
|
9249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9250 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9251 | ac_status=$? |
|
|
9252 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9253 | rm -f conftest.er1 |
|
|
9254 | cat conftest.err >&5 |
|
|
9255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9256 | (exit $ac_status); } && { |
|
|
9257 | test -z "$ac_cxx_werror_flag" || |
|
|
9258 | test ! -s conftest.err |
|
|
9259 | } && test -s conftest.$ac_objext; then |
|
|
9260 | ac_lo=0 ac_mid=0 |
|
|
9261 | while :; do |
|
|
9262 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9263 | /* confdefs.h. */ |
|
|
9264 | _ACEOF |
|
|
9265 | cat confdefs.h >>conftest.$ac_ext |
|
|
9266 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9267 | /* end confdefs.h. */ |
|
|
9268 | $ac_includes_default |
|
|
9269 | typedef long long ac__type_sizeof_; |
|
|
9270 | int |
|
|
9271 | main () |
|
|
9272 | { |
|
|
9273 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9274 | test_array [0] = 0 |
|
|
9275 | |
|
|
9276 | ; |
|
|
9277 | return 0; |
|
|
9278 | } |
|
|
9279 | _ACEOF |
|
|
9280 | rm -f conftest.$ac_objext |
|
|
9281 | if { (ac_try="$ac_compile" |
|
|
9282 | case "(($ac_try" in |
|
|
9283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9284 | *) ac_try_echo=$ac_try;; |
|
|
9285 | esac |
|
|
9286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9287 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9288 | ac_status=$? |
|
|
9289 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9290 | rm -f conftest.er1 |
|
|
9291 | cat conftest.err >&5 |
|
|
9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9293 | (exit $ac_status); } && { |
|
|
9294 | test -z "$ac_cxx_werror_flag" || |
|
|
9295 | test ! -s conftest.err |
|
|
9296 | } && test -s conftest.$ac_objext; then |
|
|
9297 | ac_hi=$ac_mid; break |
|
|
9298 | else |
|
|
9299 | echo "$as_me: failed program was:" >&5 |
|
|
9300 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9301 | |
|
|
9302 | ac_lo=`expr $ac_mid + 1` |
|
|
9303 | if test $ac_lo -le $ac_mid; then |
|
|
9304 | ac_lo= ac_hi= |
|
|
9305 | break |
|
|
9306 | fi |
|
|
9307 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9308 | fi |
|
|
9309 | |
|
|
9310 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9311 | done |
|
|
9312 | else |
|
|
9313 | echo "$as_me: failed program was:" >&5 |
|
|
9314 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9315 | |
|
|
9316 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9317 | /* confdefs.h. */ |
|
|
9318 | _ACEOF |
|
|
9319 | cat confdefs.h >>conftest.$ac_ext |
|
|
9320 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9321 | /* end confdefs.h. */ |
|
|
9322 | $ac_includes_default |
|
|
9323 | typedef long long ac__type_sizeof_; |
|
|
9324 | int |
|
|
9325 | main () |
|
|
9326 | { |
|
|
9327 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9328 | test_array [0] = 0 |
|
|
9329 | |
|
|
9330 | ; |
|
|
9331 | return 0; |
|
|
9332 | } |
|
|
9333 | _ACEOF |
|
|
9334 | rm -f conftest.$ac_objext |
|
|
9335 | if { (ac_try="$ac_compile" |
|
|
9336 | case "(($ac_try" in |
|
|
9337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9338 | *) ac_try_echo=$ac_try;; |
|
|
9339 | esac |
|
|
9340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9341 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9342 | ac_status=$? |
|
|
9343 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9344 | rm -f conftest.er1 |
|
|
9345 | cat conftest.err >&5 |
|
|
9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9347 | (exit $ac_status); } && { |
|
|
9348 | test -z "$ac_cxx_werror_flag" || |
|
|
9349 | test ! -s conftest.err |
|
|
9350 | } && test -s conftest.$ac_objext; then |
|
|
9351 | ac_hi=-1 ac_mid=-1 |
|
|
9352 | while :; do |
|
|
9353 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9354 | /* confdefs.h. */ |
|
|
9355 | _ACEOF |
|
|
9356 | cat confdefs.h >>conftest.$ac_ext |
|
|
9357 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9358 | /* end confdefs.h. */ |
|
|
9359 | $ac_includes_default |
|
|
9360 | typedef long long ac__type_sizeof_; |
|
|
9361 | int |
|
|
9362 | main () |
|
|
9363 | { |
|
|
9364 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9365 | test_array [0] = 0 |
|
|
9366 | |
|
|
9367 | ; |
|
|
9368 | return 0; |
|
|
9369 | } |
|
|
9370 | _ACEOF |
|
|
9371 | rm -f conftest.$ac_objext |
|
|
9372 | if { (ac_try="$ac_compile" |
|
|
9373 | case "(($ac_try" in |
|
|
9374 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9375 | *) ac_try_echo=$ac_try;; |
|
|
9376 | esac |
|
|
9377 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9378 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9379 | ac_status=$? |
|
|
9380 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9381 | rm -f conftest.er1 |
|
|
9382 | cat conftest.err >&5 |
|
|
9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9384 | (exit $ac_status); } && { |
|
|
9385 | test -z "$ac_cxx_werror_flag" || |
|
|
9386 | test ! -s conftest.err |
|
|
9387 | } && test -s conftest.$ac_objext; then |
|
|
9388 | ac_lo=$ac_mid; break |
|
|
9389 | else |
|
|
9390 | echo "$as_me: failed program was:" >&5 |
|
|
9391 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9392 | |
|
|
9393 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9394 | if test $ac_mid -le $ac_hi; then |
|
|
9395 | ac_lo= ac_hi= |
|
|
9396 | break |
|
|
9397 | fi |
|
|
9398 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9399 | fi |
|
|
9400 | |
|
|
9401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9402 | done |
|
|
9403 | else |
|
|
9404 | echo "$as_me: failed program was:" >&5 |
|
|
9405 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9406 | |
|
|
9407 | ac_lo= ac_hi= |
|
|
9408 | fi |
|
|
9409 | |
|
|
9410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9411 | fi |
|
|
9412 | |
|
|
9413 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9414 | # Binary search between lo and hi bounds. |
|
|
9415 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9416 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9417 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9418 | /* confdefs.h. */ |
|
|
9419 | _ACEOF |
|
|
9420 | cat confdefs.h >>conftest.$ac_ext |
|
|
9421 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9422 | /* end confdefs.h. */ |
|
|
9423 | $ac_includes_default |
|
|
9424 | typedef long long ac__type_sizeof_; |
|
|
9425 | int |
|
|
9426 | main () |
|
|
9427 | { |
|
|
9428 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9429 | test_array [0] = 0 |
|
|
9430 | |
|
|
9431 | ; |
|
|
9432 | return 0; |
|
|
9433 | } |
|
|
9434 | _ACEOF |
|
|
9435 | rm -f conftest.$ac_objext |
|
|
9436 | if { (ac_try="$ac_compile" |
|
|
9437 | case "(($ac_try" in |
|
|
9438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9439 | *) ac_try_echo=$ac_try;; |
|
|
9440 | esac |
|
|
9441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9442 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9443 | ac_status=$? |
|
|
9444 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9445 | rm -f conftest.er1 |
|
|
9446 | cat conftest.err >&5 |
|
|
9447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9448 | (exit $ac_status); } && { |
|
|
9449 | test -z "$ac_cxx_werror_flag" || |
|
|
9450 | test ! -s conftest.err |
|
|
9451 | } && test -s conftest.$ac_objext; then |
|
|
9452 | ac_hi=$ac_mid |
|
|
9453 | else |
|
|
9454 | echo "$as_me: failed program was:" >&5 |
|
|
9455 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9456 | |
|
|
9457 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9458 | fi |
|
|
9459 | |
|
|
9460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9461 | done |
|
|
9462 | case $ac_lo in |
|
|
9463 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
|
|
9464 | '') if test "$ac_cv_type_long_long" = yes; then |
|
|
9465 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9466 | See \`config.log' for more details." >&5 |
|
|
9467 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9468 | See \`config.log' for more details." >&2;} |
|
|
9469 | { (exit 77); exit 77; }; } |
|
|
9470 | else |
|
|
9471 | ac_cv_sizeof_long_long=0 |
|
|
9472 | fi ;; |
|
|
9473 | esac |
|
|
9474 | else |
|
|
9475 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9476 | /* confdefs.h. */ |
|
|
9477 | _ACEOF |
|
|
9478 | cat confdefs.h >>conftest.$ac_ext |
|
|
9479 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9480 | /* end confdefs.h. */ |
|
|
9481 | $ac_includes_default |
|
|
9482 | typedef long long ac__type_sizeof_; |
|
|
9483 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9484 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9485 | #include <stdio.h> |
|
|
9486 | #include <stdlib.h> |
|
|
9487 | int |
|
|
9488 | main () |
|
|
9489 | { |
|
|
9490 | |
|
|
9491 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9492 | if (! f) |
|
|
9493 | return 1; |
|
|
9494 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9495 | { |
|
|
9496 | long int i = longval (); |
|
|
9497 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9498 | return 1; |
|
|
9499 | fprintf (f, "%ld\n", i); |
|
|
9500 | } |
|
|
9501 | else |
|
|
9502 | { |
|
|
9503 | unsigned long int i = ulongval (); |
|
|
9504 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9505 | return 1; |
|
|
9506 | fprintf (f, "%lu\n", i); |
|
|
9507 | } |
|
|
9508 | return ferror (f) || fclose (f) != 0; |
|
|
9509 | |
|
|
9510 | ; |
|
|
9511 | return 0; |
|
|
9512 | } |
|
|
9513 | _ACEOF |
|
|
9514 | rm -f conftest$ac_exeext |
|
|
9515 | if { (ac_try="$ac_link" |
|
|
9516 | case "(($ac_try" in |
|
|
9517 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9518 | *) ac_try_echo=$ac_try;; |
|
|
9519 | esac |
|
|
9520 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9521 | (eval "$ac_link") 2>&5 |
|
|
9522 | ac_status=$? |
|
|
9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9525 | { (case "(($ac_try" in |
|
|
9526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9527 | *) ac_try_echo=$ac_try;; |
|
|
9528 | esac |
|
|
9529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9530 | (eval "$ac_try") 2>&5 |
|
|
9531 | ac_status=$? |
|
|
9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9533 | (exit $ac_status); }; }; then |
|
|
9534 | ac_cv_sizeof_long_long=`cat conftest.val` |
|
|
9535 | else |
|
|
9536 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9537 | echo "$as_me: failed program was:" >&5 |
|
|
9538 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9539 | |
|
|
9540 | ( exit $ac_status ) |
|
|
9541 | if test "$ac_cv_type_long_long" = yes; then |
|
|
9542 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
|
|
9543 | See \`config.log' for more details." >&5 |
|
|
9544 | echo "$as_me: error: cannot compute sizeof (long long) |
|
|
9545 | See \`config.log' for more details." >&2;} |
|
|
9546 | { (exit 77); exit 77; }; } |
|
|
9547 | else |
|
|
9548 | ac_cv_sizeof_long_long=0 |
|
|
9549 | fi |
|
|
9550 | fi |
|
|
9551 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9552 | fi |
|
|
9553 | rm -f conftest.val |
|
|
9554 | fi |
|
|
9555 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
|
|
9556 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
|
|
9557 | |
|
|
9558 | |
|
|
9559 | |
|
|
9560 | cat >>confdefs.h <<_ACEOF |
|
|
9561 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
|
|
9562 | _ACEOF |
|
|
9563 | |
|
|
9564 | |
|
|
9565 | { echo "$as_me:$LINENO: checking for int *" >&5 |
|
|
9566 | echo $ECHO_N "checking for int *... $ECHO_C" >&6; } |
|
|
9567 | if test "${ac_cv_type_int_p+set}" = set; then |
|
|
9568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9569 | else |
|
|
9570 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9571 | /* confdefs.h. */ |
|
|
9572 | _ACEOF |
|
|
9573 | cat confdefs.h >>conftest.$ac_ext |
|
|
9574 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9575 | /* end confdefs.h. */ |
|
|
9576 | $ac_includes_default |
|
|
9577 | typedef int * ac__type_new_; |
|
|
9578 | int |
|
|
9579 | main () |
|
|
9580 | { |
|
|
9581 | if ((ac__type_new_ *) 0) |
|
|
9582 | return 0; |
|
|
9583 | if (sizeof (ac__type_new_)) |
|
|
9584 | return 0; |
|
|
9585 | ; |
|
|
9586 | return 0; |
|
|
9587 | } |
|
|
9588 | _ACEOF |
|
|
9589 | rm -f conftest.$ac_objext |
|
|
9590 | if { (ac_try="$ac_compile" |
|
|
9591 | case "(($ac_try" in |
|
|
9592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9593 | *) ac_try_echo=$ac_try;; |
|
|
9594 | esac |
|
|
9595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9596 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9597 | ac_status=$? |
|
|
9598 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9599 | rm -f conftest.er1 |
|
|
9600 | cat conftest.err >&5 |
|
|
9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9602 | (exit $ac_status); } && { |
|
|
9603 | test -z "$ac_cxx_werror_flag" || |
|
|
9604 | test ! -s conftest.err |
|
|
9605 | } && test -s conftest.$ac_objext; then |
|
|
9606 | ac_cv_type_int_p=yes |
|
|
9607 | else |
|
|
9608 | echo "$as_me: failed program was:" >&5 |
|
|
9609 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9610 | |
|
|
9611 | ac_cv_type_int_p=no |
|
|
9612 | fi |
|
|
9613 | |
|
|
9614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9615 | fi |
|
|
9616 | { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5 |
|
|
9617 | echo "${ECHO_T}$ac_cv_type_int_p" >&6; } |
|
|
9618 | |
|
|
9619 | # The cast to long int works around a bug in the HP C Compiler |
|
|
9620 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
9621 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
9622 | # This bug is HP SR number 8606223364. |
|
|
9623 | { echo "$as_me:$LINENO: checking size of int *" >&5 |
|
|
9624 | echo $ECHO_N "checking size of int *... $ECHO_C" >&6; } |
|
|
9625 | if test "${ac_cv_sizeof_int_p+set}" = set; then |
|
|
9626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9627 | else |
|
|
9628 | if test "$cross_compiling" = yes; then |
|
|
9629 | # Depending upon the size, compute the lo and hi bounds. |
|
|
9630 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9631 | /* confdefs.h. */ |
|
|
9632 | _ACEOF |
|
|
9633 | cat confdefs.h >>conftest.$ac_ext |
|
|
9634 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9635 | /* end confdefs.h. */ |
|
|
9636 | $ac_includes_default |
|
|
9637 | typedef int * ac__type_sizeof_; |
|
|
9638 | int |
|
|
9639 | main () |
|
|
9640 | { |
|
|
9641 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
|
|
9642 | test_array [0] = 0 |
|
|
9643 | |
|
|
9644 | ; |
|
|
9645 | return 0; |
|
|
9646 | } |
|
|
9647 | _ACEOF |
|
|
9648 | rm -f conftest.$ac_objext |
|
|
9649 | if { (ac_try="$ac_compile" |
|
|
9650 | case "(($ac_try" in |
|
|
9651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9652 | *) ac_try_echo=$ac_try;; |
|
|
9653 | esac |
|
|
9654 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9655 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9656 | ac_status=$? |
|
|
9657 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9658 | rm -f conftest.er1 |
|
|
9659 | cat conftest.err >&5 |
|
|
9660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9661 | (exit $ac_status); } && { |
|
|
9662 | test -z "$ac_cxx_werror_flag" || |
|
|
9663 | test ! -s conftest.err |
|
|
9664 | } && test -s conftest.$ac_objext; then |
|
|
9665 | ac_lo=0 ac_mid=0 |
|
|
9666 | while :; do |
|
|
9667 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9668 | /* confdefs.h. */ |
|
|
9669 | _ACEOF |
|
|
9670 | cat confdefs.h >>conftest.$ac_ext |
|
|
9671 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9672 | /* end confdefs.h. */ |
|
|
9673 | $ac_includes_default |
|
|
9674 | typedef int * ac__type_sizeof_; |
|
|
9675 | int |
|
|
9676 | main () |
|
|
9677 | { |
|
|
9678 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9679 | test_array [0] = 0 |
|
|
9680 | |
|
|
9681 | ; |
|
|
9682 | return 0; |
|
|
9683 | } |
|
|
9684 | _ACEOF |
|
|
9685 | rm -f conftest.$ac_objext |
|
|
9686 | if { (ac_try="$ac_compile" |
|
|
9687 | case "(($ac_try" in |
|
|
9688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9689 | *) ac_try_echo=$ac_try;; |
|
|
9690 | esac |
|
|
9691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9692 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9693 | ac_status=$? |
|
|
9694 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9695 | rm -f conftest.er1 |
|
|
9696 | cat conftest.err >&5 |
|
|
9697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9698 | (exit $ac_status); } && { |
|
|
9699 | test -z "$ac_cxx_werror_flag" || |
|
|
9700 | test ! -s conftest.err |
|
|
9701 | } && test -s conftest.$ac_objext; then |
|
|
9702 | ac_hi=$ac_mid; break |
|
|
9703 | else |
|
|
9704 | echo "$as_me: failed program was:" >&5 |
|
|
9705 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9706 | |
|
|
9707 | ac_lo=`expr $ac_mid + 1` |
|
|
9708 | if test $ac_lo -le $ac_mid; then |
|
|
9709 | ac_lo= ac_hi= |
|
|
9710 | break |
|
|
9711 | fi |
|
|
9712 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
9713 | fi |
|
|
9714 | |
|
|
9715 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9716 | done |
|
|
9717 | else |
|
|
9718 | echo "$as_me: failed program was:" >&5 |
|
|
9719 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9720 | |
|
|
9721 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9722 | /* confdefs.h. */ |
|
|
9723 | _ACEOF |
|
|
9724 | cat confdefs.h >>conftest.$ac_ext |
|
|
9725 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9726 | /* end confdefs.h. */ |
|
|
9727 | $ac_includes_default |
|
|
9728 | typedef int * ac__type_sizeof_; |
|
|
9729 | int |
|
|
9730 | main () |
|
|
9731 | { |
|
|
9732 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
|
|
9733 | test_array [0] = 0 |
|
|
9734 | |
|
|
9735 | ; |
|
|
9736 | return 0; |
|
|
9737 | } |
|
|
9738 | _ACEOF |
|
|
9739 | rm -f conftest.$ac_objext |
|
|
9740 | if { (ac_try="$ac_compile" |
|
|
9741 | case "(($ac_try" in |
|
|
9742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9743 | *) ac_try_echo=$ac_try;; |
|
|
9744 | esac |
|
|
9745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9746 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9747 | ac_status=$? |
|
|
9748 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9749 | rm -f conftest.er1 |
|
|
9750 | cat conftest.err >&5 |
|
|
9751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9752 | (exit $ac_status); } && { |
|
|
9753 | test -z "$ac_cxx_werror_flag" || |
|
|
9754 | test ! -s conftest.err |
|
|
9755 | } && test -s conftest.$ac_objext; then |
|
|
9756 | ac_hi=-1 ac_mid=-1 |
|
|
9757 | while :; do |
|
|
9758 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9759 | /* confdefs.h. */ |
|
|
9760 | _ACEOF |
|
|
9761 | cat confdefs.h >>conftest.$ac_ext |
|
|
9762 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9763 | /* end confdefs.h. */ |
|
|
9764 | $ac_includes_default |
|
|
9765 | typedef int * ac__type_sizeof_; |
|
|
9766 | int |
|
|
9767 | main () |
|
|
9768 | { |
|
|
9769 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
|
|
9770 | test_array [0] = 0 |
|
|
9771 | |
|
|
9772 | ; |
|
|
9773 | return 0; |
|
|
9774 | } |
|
|
9775 | _ACEOF |
|
|
9776 | rm -f conftest.$ac_objext |
|
|
9777 | if { (ac_try="$ac_compile" |
|
|
9778 | case "(($ac_try" in |
|
|
9779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9780 | *) ac_try_echo=$ac_try;; |
|
|
9781 | esac |
|
|
9782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9783 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9784 | ac_status=$? |
|
|
9785 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9786 | rm -f conftest.er1 |
|
|
9787 | cat conftest.err >&5 |
|
|
9788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9789 | (exit $ac_status); } && { |
|
|
9790 | test -z "$ac_cxx_werror_flag" || |
|
|
9791 | test ! -s conftest.err |
|
|
9792 | } && test -s conftest.$ac_objext; then |
|
|
9793 | ac_lo=$ac_mid; break |
|
|
9794 | else |
|
|
9795 | echo "$as_me: failed program was:" >&5 |
|
|
9796 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9797 | |
|
|
9798 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
9799 | if test $ac_mid -le $ac_hi; then |
|
|
9800 | ac_lo= ac_hi= |
|
|
9801 | break |
|
|
9802 | fi |
|
|
9803 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
9804 | fi |
|
|
9805 | |
|
|
9806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9807 | done |
|
|
9808 | else |
|
|
9809 | echo "$as_me: failed program was:" >&5 |
|
|
9810 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9811 | |
|
|
9812 | ac_lo= ac_hi= |
|
|
9813 | fi |
|
|
9814 | |
|
|
9815 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9816 | fi |
|
|
9817 | |
|
|
9818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9819 | # Binary search between lo and hi bounds. |
|
|
9820 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
9821 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
9822 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9823 | /* confdefs.h. */ |
|
|
9824 | _ACEOF |
|
|
9825 | cat confdefs.h >>conftest.$ac_ext |
|
|
9826 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9827 | /* end confdefs.h. */ |
|
|
9828 | $ac_includes_default |
|
|
9829 | typedef int * ac__type_sizeof_; |
|
|
9830 | int |
|
|
9831 | main () |
|
|
9832 | { |
|
|
9833 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
|
|
9834 | test_array [0] = 0 |
|
|
9835 | |
|
|
9836 | ; |
|
|
9837 | return 0; |
|
|
9838 | } |
|
|
9839 | _ACEOF |
|
|
9840 | rm -f conftest.$ac_objext |
|
|
9841 | if { (ac_try="$ac_compile" |
|
|
9842 | case "(($ac_try" in |
|
|
9843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9844 | *) ac_try_echo=$ac_try;; |
|
|
9845 | esac |
|
|
9846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9847 | (eval "$ac_compile") 2>conftest.er1 |
|
|
9848 | ac_status=$? |
|
|
9849 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
9850 | rm -f conftest.er1 |
|
|
9851 | cat conftest.err >&5 |
|
|
9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9853 | (exit $ac_status); } && { |
|
|
9854 | test -z "$ac_cxx_werror_flag" || |
|
|
9855 | test ! -s conftest.err |
|
|
9856 | } && test -s conftest.$ac_objext; then |
|
|
9857 | ac_hi=$ac_mid |
|
|
9858 | else |
|
|
9859 | echo "$as_me: failed program was:" >&5 |
|
|
9860 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9861 | |
|
|
9862 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
9863 | fi |
|
|
9864 | |
|
|
9865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
9866 | done |
|
|
9867 | case $ac_lo in |
|
|
9868 | ?*) ac_cv_sizeof_int_p=$ac_lo;; |
|
|
9869 | '') if test "$ac_cv_type_int_p" = yes; then |
|
|
9870 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9871 | See \`config.log' for more details." >&5 |
|
|
9872 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9873 | See \`config.log' for more details." >&2;} |
|
|
9874 | { (exit 77); exit 77; }; } |
|
|
9875 | else |
|
|
9876 | ac_cv_sizeof_int_p=0 |
|
|
9877 | fi ;; |
|
|
9878 | esac |
|
|
9879 | else |
|
|
9880 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9881 | /* confdefs.h. */ |
|
|
9882 | _ACEOF |
|
|
9883 | cat confdefs.h >>conftest.$ac_ext |
|
|
9884 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9885 | /* end confdefs.h. */ |
|
|
9886 | $ac_includes_default |
|
|
9887 | typedef int * ac__type_sizeof_; |
|
|
9888 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9889 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
|
|
9890 | #include <stdio.h> |
|
|
9891 | #include <stdlib.h> |
|
|
9892 | int |
|
|
9893 | main () |
|
|
9894 | { |
|
|
9895 | |
|
|
9896 | FILE *f = fopen ("conftest.val", "w"); |
|
|
9897 | if (! f) |
|
|
9898 | return 1; |
|
|
9899 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
|
|
9900 | { |
|
|
9901 | long int i = longval (); |
|
|
9902 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9903 | return 1; |
|
|
9904 | fprintf (f, "%ld\n", i); |
|
|
9905 | } |
|
|
9906 | else |
|
|
9907 | { |
|
|
9908 | unsigned long int i = ulongval (); |
|
|
9909 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
|
|
9910 | return 1; |
|
|
9911 | fprintf (f, "%lu\n", i); |
|
|
9912 | } |
|
|
9913 | return ferror (f) || fclose (f) != 0; |
|
|
9914 | |
|
|
9915 | ; |
|
|
9916 | return 0; |
|
|
9917 | } |
|
|
9918 | _ACEOF |
|
|
9919 | rm -f conftest$ac_exeext |
|
|
9920 | if { (ac_try="$ac_link" |
|
|
9921 | case "(($ac_try" in |
|
|
9922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9923 | *) ac_try_echo=$ac_try;; |
|
|
9924 | esac |
|
|
9925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9926 | (eval "$ac_link") 2>&5 |
|
|
9927 | ac_status=$? |
|
|
9928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
9930 | { (case "(($ac_try" in |
|
|
9931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9932 | *) ac_try_echo=$ac_try;; |
|
|
9933 | esac |
|
|
9934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9935 | (eval "$ac_try") 2>&5 |
|
|
9936 | ac_status=$? |
|
|
9937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
9938 | (exit $ac_status); }; }; then |
|
|
9939 | ac_cv_sizeof_int_p=`cat conftest.val` |
|
|
9940 | else |
|
|
9941 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
9942 | echo "$as_me: failed program was:" >&5 |
|
|
9943 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
9944 | |
|
|
9945 | ( exit $ac_status ) |
|
|
9946 | if test "$ac_cv_type_int_p" = yes; then |
|
|
9947 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *) |
|
|
9948 | See \`config.log' for more details." >&5 |
|
|
9949 | echo "$as_me: error: cannot compute sizeof (int *) |
|
|
9950 | See \`config.log' for more details." >&2;} |
|
|
9951 | { (exit 77); exit 77; }; } |
|
|
9952 | else |
|
|
9953 | ac_cv_sizeof_int_p=0 |
|
|
9954 | fi |
|
|
9955 | fi |
|
|
9956 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
9957 | fi |
|
|
9958 | rm -f conftest.val |
|
|
9959 | fi |
|
|
9960 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5 |
|
|
9961 | echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; } |
|
|
9962 | |
|
|
9963 | |
|
|
9964 | |
|
|
9965 | cat >>confdefs.h <<_ACEOF |
|
|
9966 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p |
|
|
9967 | _ACEOF |
|
|
9968 | |
|
|
9969 | |
|
|
9970 | |
|
|
9971 | |
|
|
9972 | { echo "$as_me:$LINENO: checking for int16_t" >&5 |
|
|
9973 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; } |
|
|
9974 | if test "${rxvt_cv_int16_t+set}" = set; then |
|
|
9975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9976 | else |
|
|
9977 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9978 | /* confdefs.h. */ |
|
|
9979 | _ACEOF |
|
|
9980 | cat confdefs.h >>conftest.$ac_ext |
|
|
9981 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9982 | /* end confdefs.h. */ |
|
|
9983 | #include <stdint.h> |
|
|
9984 | int |
|
|
9985 | main () |
|
|
9986 | { |
|
|
9987 | int16_t dummy; |
|
|
9988 | ; |
|
|
9989 | return 0; |
|
|
9990 | } |
|
|
9991 | _ACEOF |
|
|
9992 | rm -f conftest.$ac_objext |
|
|
9993 | if { (ac_try="$ac_compile" |
|
|
9994 | case "(($ac_try" in |
|
|
9995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
9996 | *) ac_try_echo=$ac_try;; |
|
|
9997 | esac |
|
|
9998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
9999 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10000 | ac_status=$? |
|
|
10001 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10002 | rm -f conftest.er1 |
|
|
10003 | cat conftest.err >&5 |
|
|
10004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10005 | (exit $ac_status); } && { |
|
|
10006 | test -z "$ac_cxx_werror_flag" || |
|
|
10007 | test ! -s conftest.err |
|
|
10008 | } && test -s conftest.$ac_objext; then |
|
|
10009 | rxvt_cv_int16_t=yes |
|
|
10010 | else |
|
|
10011 | echo "$as_me: failed program was:" >&5 |
|
|
10012 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10013 | |
|
|
10014 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
10015 | rxvt_cv_int16_t=" char" |
|
|
10016 | else |
|
|
10017 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
10018 | rxvt_cv_int16_t=" short" |
|
|
10019 | else |
|
|
10020 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
10021 | rxvt_cv_int16_t=" int" |
|
|
10022 | else |
|
|
10023 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
10024 | rxvt_cv_int16_t=" long" |
|
|
10025 | else |
|
|
10026 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
10027 | rxvt_cv_int16_t=" long long" |
|
|
10028 | else |
|
|
10029 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
|
|
10030 | fi |
|
|
10031 | fi |
|
|
10032 | fi |
|
|
10033 | fi |
|
|
10034 | fi |
|
|
10035 | fi |
|
|
10036 | |
|
|
10037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10038 | fi |
|
|
10039 | { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5 |
|
|
10040 | echo "${ECHO_T}$rxvt_cv_int16_t" >&6; } |
|
|
10041 | if test x"$rxvt_cv_int16_t" != xyes; then |
|
|
10042 | rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;" |
|
|
10043 | else |
|
|
10044 | if test x"" = x; then |
|
|
10045 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
10046 | else |
|
|
10047 | rxvt_int16_typedef="/* typedef short int16_t; */" |
|
|
10048 | fi |
|
|
10049 | fi |
|
|
10050 | |
|
|
10051 | { echo "$as_me:$LINENO: checking for uint16_t" >&5 |
|
|
10052 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } |
|
|
10053 | if test "${rxvt_cv_uint16_t+set}" = set; then |
|
|
10054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10055 | else |
|
|
10056 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10057 | /* confdefs.h. */ |
|
|
10058 | _ACEOF |
|
|
10059 | cat confdefs.h >>conftest.$ac_ext |
|
|
10060 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10061 | /* end confdefs.h. */ |
|
|
10062 | #include <stdint.h> |
|
|
10063 | int |
|
|
10064 | main () |
|
|
10065 | { |
|
|
10066 | uint16_t dummy; |
|
|
10067 | ; |
|
|
10068 | return 0; |
|
|
10069 | } |
|
|
10070 | _ACEOF |
|
|
10071 | rm -f conftest.$ac_objext |
|
|
10072 | if { (ac_try="$ac_compile" |
|
|
10073 | case "(($ac_try" in |
|
|
10074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10075 | *) ac_try_echo=$ac_try;; |
|
|
10076 | esac |
|
|
10077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10078 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10079 | ac_status=$? |
|
|
10080 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10081 | rm -f conftest.er1 |
|
|
10082 | cat conftest.err >&5 |
|
|
10083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10084 | (exit $ac_status); } && { |
|
|
10085 | test -z "$ac_cxx_werror_flag" || |
|
|
10086 | test ! -s conftest.err |
|
|
10087 | } && test -s conftest.$ac_objext; then |
|
|
10088 | rxvt_cv_uint16_t=yes |
|
|
10089 | else |
|
|
10090 | echo "$as_me: failed program was:" >&5 |
|
|
10091 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10092 | |
|
|
10093 | if test "$ac_cv_sizeof_char" -ge 2; then |
|
|
10094 | rxvt_cv_uint16_t="unsigned char" |
|
|
10095 | else |
|
|
10096 | if test "$ac_cv_sizeof_short" -ge 2; then |
|
|
10097 | rxvt_cv_uint16_t="unsigned short" |
|
|
10098 | else |
|
|
10099 | if test "$ac_cv_sizeof_int" -ge 2; then |
|
|
10100 | rxvt_cv_uint16_t="unsigned int" |
|
|
10101 | else |
|
|
10102 | if test "$ac_cv_sizeof_long" -ge 2; then |
|
|
10103 | rxvt_cv_uint16_t="unsigned long" |
|
|
10104 | else |
|
|
10105 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
|
|
10106 | rxvt_cv_uint16_t="unsigned long long" |
|
|
10107 | else |
|
|
10108 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
|
|
10109 | fi |
|
|
10110 | fi |
|
|
10111 | fi |
|
|
10112 | fi |
|
|
10113 | fi |
|
|
10114 | fi |
|
|
10115 | |
|
|
10116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10117 | fi |
|
|
10118 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5 |
|
|
10119 | echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; } |
|
|
10120 | if test x"$rxvt_cv_uint16_t" != xyes; then |
|
|
10121 | rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;" |
|
|
10122 | else |
|
|
10123 | if test x"unsigned" = x; then |
|
|
10124 | rxvt_uint16_typedef="/* typedef short uint16_t; */" |
|
|
10125 | else |
|
|
10126 | rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */" |
|
|
10127 | fi |
|
|
10128 | fi |
|
|
10129 | |
|
|
10130 | { echo "$as_me:$LINENO: checking for int32_t" >&5 |
|
|
10131 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; } |
|
|
10132 | if test "${rxvt_cv_int32_t+set}" = set; then |
|
|
10133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10134 | else |
|
|
10135 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10136 | /* confdefs.h. */ |
|
|
10137 | _ACEOF |
|
|
10138 | cat confdefs.h >>conftest.$ac_ext |
|
|
10139 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10140 | /* end confdefs.h. */ |
|
|
10141 | #include <stdint.h> |
|
|
10142 | int |
|
|
10143 | main () |
|
|
10144 | { |
|
|
10145 | int32_t dummy; |
|
|
10146 | ; |
|
|
10147 | return 0; |
|
|
10148 | } |
|
|
10149 | _ACEOF |
|
|
10150 | rm -f conftest.$ac_objext |
|
|
10151 | if { (ac_try="$ac_compile" |
|
|
10152 | case "(($ac_try" in |
|
|
10153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10154 | *) ac_try_echo=$ac_try;; |
|
|
10155 | esac |
|
|
10156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10157 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10158 | ac_status=$? |
|
|
10159 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10160 | rm -f conftest.er1 |
|
|
10161 | cat conftest.err >&5 |
|
|
10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10163 | (exit $ac_status); } && { |
|
|
10164 | test -z "$ac_cxx_werror_flag" || |
|
|
10165 | test ! -s conftest.err |
|
|
10166 | } && test -s conftest.$ac_objext; then |
|
|
10167 | rxvt_cv_int32_t=yes |
|
|
10168 | else |
|
|
10169 | echo "$as_me: failed program was:" >&5 |
|
|
10170 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10171 | |
|
|
10172 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10173 | rxvt_cv_int32_t=" char" |
|
|
10174 | else |
|
|
10175 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10176 | rxvt_cv_int32_t=" short" |
|
|
10177 | else |
|
|
10178 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10179 | rxvt_cv_int32_t=" int" |
|
|
10180 | else |
|
|
10181 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10182 | rxvt_cv_int32_t=" long" |
|
|
10183 | else |
|
|
10184 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10185 | rxvt_cv_int32_t=" long long" |
|
|
10186 | else |
|
|
10187 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
|
|
10188 | fi |
|
|
10189 | fi |
|
|
10190 | fi |
|
|
10191 | fi |
|
|
10192 | fi |
|
|
10193 | fi |
|
|
10194 | |
|
|
10195 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10196 | fi |
|
|
10197 | { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5 |
|
|
10198 | echo "${ECHO_T}$rxvt_cv_int32_t" >&6; } |
|
|
10199 | if test x"$rxvt_cv_int32_t" != xyes; then |
|
|
10200 | rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;" |
|
|
10201 | else |
|
|
10202 | if test x"" = x; then |
|
|
10203 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10204 | else |
|
|
10205 | rxvt_int32_typedef="/* typedef int int32_t; */" |
|
|
10206 | fi |
|
|
10207 | fi |
|
|
10208 | |
|
|
10209 | { echo "$as_me:$LINENO: checking for uint32_t" >&5 |
|
|
10210 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } |
|
|
10211 | if test "${rxvt_cv_uint32_t+set}" = set; then |
|
|
10212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10213 | else |
|
|
10214 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10215 | /* confdefs.h. */ |
|
|
10216 | _ACEOF |
|
|
10217 | cat confdefs.h >>conftest.$ac_ext |
|
|
10218 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10219 | /* end confdefs.h. */ |
|
|
10220 | #include <stdint.h> |
|
|
10221 | int |
|
|
10222 | main () |
|
|
10223 | { |
|
|
10224 | uint32_t dummy; |
|
|
10225 | ; |
|
|
10226 | return 0; |
|
|
10227 | } |
|
|
10228 | _ACEOF |
|
|
10229 | rm -f conftest.$ac_objext |
|
|
10230 | if { (ac_try="$ac_compile" |
|
|
10231 | case "(($ac_try" in |
|
|
10232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10233 | *) ac_try_echo=$ac_try;; |
|
|
10234 | esac |
|
|
10235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10236 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10237 | ac_status=$? |
|
|
10238 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10239 | rm -f conftest.er1 |
|
|
10240 | cat conftest.err >&5 |
|
|
10241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10242 | (exit $ac_status); } && { |
|
|
10243 | test -z "$ac_cxx_werror_flag" || |
|
|
10244 | test ! -s conftest.err |
|
|
10245 | } && test -s conftest.$ac_objext; then |
|
|
10246 | rxvt_cv_uint32_t=yes |
|
|
10247 | else |
|
|
10248 | echo "$as_me: failed program was:" >&5 |
|
|
10249 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10250 | |
|
|
10251 | if test "$ac_cv_sizeof_char" -ge 4; then |
|
|
10252 | rxvt_cv_uint32_t="unsigned char" |
|
|
10253 | else |
|
|
10254 | if test "$ac_cv_sizeof_short" -ge 4; then |
|
|
10255 | rxvt_cv_uint32_t="unsigned short" |
|
|
10256 | else |
|
|
10257 | if test "$ac_cv_sizeof_int" -ge 4; then |
|
|
10258 | rxvt_cv_uint32_t="unsigned int" |
|
|
10259 | else |
|
|
10260 | if test "$ac_cv_sizeof_long" -ge 4; then |
|
|
10261 | rxvt_cv_uint32_t="unsigned long" |
|
|
10262 | else |
|
|
10263 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
|
|
10264 | rxvt_cv_uint32_t="unsigned long long" |
|
|
10265 | else |
|
|
10266 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
|
|
10267 | fi |
|
|
10268 | fi |
|
|
10269 | fi |
|
|
10270 | fi |
|
|
10271 | fi |
|
|
10272 | fi |
|
|
10273 | |
|
|
10274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10275 | fi |
|
|
10276 | { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5 |
|
|
10277 | echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; } |
|
|
10278 | if test x"$rxvt_cv_uint32_t" != xyes; then |
|
|
10279 | rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;" |
|
|
10280 | else |
|
|
10281 | if test x"unsigned" = x; then |
|
|
10282 | rxvt_uint32_typedef="/* typedef int uint32_t; */" |
|
|
10283 | else |
|
|
10284 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
|
|
10285 | fi |
|
|
10286 | fi |
|
|
10287 | |
|
|
10288 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
|
|
10289 | rxvt_intp_define="#define intp_t int64_t" |
|
|
10290 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
|
|
10291 | else |
|
|
10292 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
|
|
10293 | rxvt_intp_define="#define intp_t int32_t" |
|
|
10294 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
|
|
10295 | else |
|
|
10296 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
|
|
10297 | rxvt_intp_define="#define intp_t int16_t" |
|
|
10298 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
|
|
10299 | else |
|
|
10300 | rxvt_intp_define="#error set intp_t" |
|
|
10301 | rxvt_u_intp_define="#error set u_intp_t" |
|
|
10302 | fi |
|
|
10303 | fi |
|
|
10304 | fi |
|
|
10305 | |
|
|
10306 | |
|
|
10307 | |
|
|
10308 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
|
|
10309 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } |
|
|
10310 | if test "${ac_cv_type_signal+set}" = set; then |
|
|
10311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10312 | else |
|
|
10313 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10314 | /* confdefs.h. */ |
|
|
10315 | _ACEOF |
|
|
10316 | cat confdefs.h >>conftest.$ac_ext |
|
|
10317 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10318 | /* end confdefs.h. */ |
|
|
10319 | #include <sys/types.h> |
|
|
10320 | #include <signal.h> |
|
|
10321 | |
|
|
10322 | int |
|
|
10323 | main () |
|
|
10324 | { |
|
|
10325 | return *(signal (0, 0)) (0) == 1; |
|
|
10326 | ; |
|
|
10327 | return 0; |
|
|
10328 | } |
|
|
10329 | _ACEOF |
|
|
10330 | rm -f conftest.$ac_objext |
|
|
10331 | if { (ac_try="$ac_compile" |
|
|
10332 | case "(($ac_try" in |
|
|
10333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10334 | *) ac_try_echo=$ac_try;; |
|
|
10335 | esac |
|
|
10336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10337 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10338 | ac_status=$? |
|
|
10339 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10340 | rm -f conftest.er1 |
|
|
10341 | cat conftest.err >&5 |
|
|
10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10343 | (exit $ac_status); } && { |
|
|
10344 | test -z "$ac_cxx_werror_flag" || |
|
|
10345 | test ! -s conftest.err |
|
|
10346 | } && test -s conftest.$ac_objext; then |
|
|
10347 | ac_cv_type_signal=int |
|
|
10348 | else |
|
|
10349 | echo "$as_me: failed program was:" >&5 |
|
|
10350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10351 | |
|
|
10352 | ac_cv_type_signal=void |
|
|
10353 | fi |
|
|
10354 | |
|
|
10355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10356 | fi |
|
|
10357 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
|
|
10358 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } |
|
|
10359 | |
|
|
10360 | cat >>confdefs.h <<_ACEOF |
|
|
10361 | #define RETSIGTYPE $ac_cv_type_signal |
|
|
10362 | _ACEOF |
|
|
10363 | |
|
|
10364 | |
|
|
10365 | |
|
|
10366 | |
|
|
10367 | |
|
|
10368 | |
|
|
10369 | for ac_func in \ |
8414 | for ac_func in unsetenv |
10370 | unsetenv \ |
|
|
10371 | setutent \ |
|
|
10372 | on_exit \ |
|
|
10373 | |
|
|
10374 | do |
8415 | do |
10375 | 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` |
10376 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
8417 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10377 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
8418 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
10378 | 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 |
… | |
… | |
12048 | |
10089 | |
12049 | fi |
10090 | fi |
12050 | |
10091 | |
12051 | |
10092 | |
12052 | |
10093 | |
12053 | { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
12054 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; } |
|
|
12055 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
12056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12057 | else |
|
|
12058 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
12059 | do |
|
|
12060 | if test -f "$ttys_file" ; then |
|
|
12061 | rxvt_cv_path_ttytab=$ttys_file |
|
|
12062 | break |
|
|
12063 | fi |
|
|
12064 | done |
|
|
12065 | |
10094 | |
12066 | fi |
|
|
12067 | { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
12068 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; } |
|
|
12069 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
12070 | |
|
|
12071 | cat >>confdefs.h <<_ACEOF |
|
|
12072 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
12073 | _ACEOF |
|
|
12074 | |
|
|
12075 | fi |
|
|
12076 | |
|
|
12077 | |
|
|
12078 | ac_save_LIBS=$LIBS |
10095 | save_LIBS=$LIBS |
12079 | ac_save_CFLAGS=$CFLAGS |
10096 | save_CFLAGS=$CFLAGS |
12080 | CFLAGS="$CFLAGS $X_CFLAGS" |
10097 | CFLAGS="$CFLAGS $X_CFLAGS" |
12081 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
10098 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
12082 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
10099 | if test x$support_xim = xyes; then |
12083 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
12084 | fi |
|
|
12085 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
10100 | { echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
12086 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
10101 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } |
12087 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
10102 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
12088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12089 | else |
10104 | else |
12090 | if test "$cross_compiling" = yes; then |
10105 | if test "$cross_compiling" = yes; then |
12091 | { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 |
10106 | : |
12092 | echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;} |
|
|
12093 | else |
10107 | else |
12094 | cat >conftest.$ac_ext <<_ACEOF |
10108 | cat >conftest.$ac_ext <<_ACEOF |
12095 | /* confdefs.h. */ |
10109 | /* confdefs.h. */ |
12096 | _ACEOF |
10110 | _ACEOF |
12097 | cat confdefs.h >>conftest.$ac_ext |
10111 | cat confdefs.h >>conftest.$ac_ext |
12098 | cat >>conftest.$ac_ext <<_ACEOF |
10112 | cat >>conftest.$ac_ext <<_ACEOF |
12099 | /* end confdefs.h. */ |
10113 | /* end confdefs.h. */ |
12100 | #include <X11/Xlib.h> |
10114 | #include <X11/Xlib.h> |
12101 | #include <stdlib.h> |
10115 | #include <stdlib.h> |
12102 | main() { |
10116 | main() { |
12103 | char *p; |
10117 | char *p; |
12104 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10118 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
12105 | exit (XSupportsLocale() ? 0 : 1); |
10119 | exit (XSupportsLocale() ? 0 : 1); |
12106 | else |
10120 | else |
12107 | exit (1);} |
10121 | exit (1);} |
12108 | _ACEOF |
10122 | _ACEOF |
12109 | rm -f conftest$ac_exeext |
10123 | rm -f conftest$ac_exeext |
12110 | if { (ac_try="$ac_link" |
10124 | if { (ac_try="$ac_link" |
12111 | case "(($ac_try" in |
10125 | case "(($ac_try" in |
12112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
… | |
… | |
12124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
12125 | (eval "$ac_try") 2>&5 |
10139 | (eval "$ac_try") 2>&5 |
12126 | ac_status=$? |
10140 | ac_status=$? |
12127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12128 | (exit $ac_status); }; }; then |
10142 | (exit $ac_status); }; }; then |
12129 | rxvt_cv_func_xlocale=yes |
10143 | rxvt_cv_func_xlocale=yes |
12130 | else |
10144 | else |
12131 | echo "$as_me: program exited with status $ac_status" >&5 |
10145 | echo "$as_me: program exited with status $ac_status" >&5 |
12132 | echo "$as_me: failed program was:" >&5 |
10146 | echo "$as_me: failed program was:" >&5 |
12133 | sed 's/^/| /' conftest.$ac_ext >&5 |
10147 | sed 's/^/| /' conftest.$ac_ext >&5 |
12134 | |
10148 | |
… | |
… | |
12140 | |
10154 | |
12141 | |
10155 | |
12142 | fi |
10156 | fi |
12143 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
10157 | { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
12144 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
10158 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } |
12145 | if test x$rxvt_cv_func_xlocale = xyes; then |
10159 | if test x$rxvt_cv_func_xlocale = xyes; then |
12146 | |
10160 | |
12147 | cat >>confdefs.h <<\_ACEOF |
10161 | cat >>confdefs.h <<\_ACEOF |
12148 | #define HAVE_XLOCALE 1 |
10162 | #define USE_XIM 1 |
12149 | _ACEOF |
10163 | _ACEOF |
12150 | |
10164 | |
|
|
10165 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10166 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
10167 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
10168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10169 | else |
|
|
10170 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10171 | |
|
|
10172 | #include <X11/Xlib.h> |
|
|
10173 | |
|
|
10174 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10175 | |
|
|
10176 | void f() { |
|
|
10177 | XIMCallback cb; |
|
|
10178 | cb.callback = im_destroy_cb; |
|
|
10179 | } |
|
|
10180 | |
|
|
10181 | _ACEOF |
|
|
10182 | rm -f conftest.$ac_objext |
|
|
10183 | if { (ac_try="$ac_compile" |
|
|
10184 | case "(($ac_try" in |
|
|
10185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
10186 | *) ac_try_echo=$ac_try;; |
|
|
10187 | esac |
|
|
10188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
10189 | (eval "$ac_compile") 2>conftest.er1 |
|
|
10190 | ac_status=$? |
|
|
10191 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10192 | rm -f conftest.er1 |
|
|
10193 | cat conftest.err >&5 |
|
|
10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10195 | (exit $ac_status); } && { |
|
|
10196 | test -z "$ac_cxx_werror_flag" || |
|
|
10197 | test ! -s conftest.err |
|
|
10198 | } && test -s conftest.$ac_objext; then |
|
|
10199 | rxvt_broken_ximcb=yes |
|
|
10200 | else |
|
|
10201 | echo "$as_me: failed program was:" >&5 |
|
|
10202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10203 | |
|
|
10204 | rxvt_broken_ximcb=no |
|
|
10205 | fi |
|
|
10206 | |
|
|
10207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10208 | fi |
|
|
10209 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10210 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
10211 | |
|
|
10212 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10213 | |
|
|
10214 | cat >>confdefs.h <<\_ACEOF |
|
|
10215 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10216 | _ACEOF |
|
|
10217 | |
|
|
10218 | fi |
|
|
10219 | fi |
12151 | fi |
10220 | fi |
12152 | |
10221 | |
12153 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
10222 | { echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
12154 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
10223 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } |
12155 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
10224 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
… | |
… | |
12207 | cat >>confdefs.h <<\_ACEOF |
10276 | cat >>confdefs.h <<\_ACEOF |
12208 | #define HAVE_XSETLOCALE 1 |
10277 | #define HAVE_XSETLOCALE 1 |
12209 | _ACEOF |
10278 | _ACEOF |
12210 | |
10279 | |
12211 | fi |
10280 | fi |
12212 | LIBS=$ac_save_LIBS |
10281 | LIBS=$save_LIBS |
12213 | CFLAGS=$ac_save_CFLAGS |
10282 | CFLAGS=$save_CFLAGS |
12214 | |
10283 | |
12215 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
10284 | { echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
12216 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
10285 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } |
12217 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
10286 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
12218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12422 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
10491 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
12423 | { (exit 1); exit 1; }; } |
10492 | { (exit 1); exit 1; }; } |
12424 | fi |
10493 | fi |
12425 | |
10494 | |
12426 | |
10495 | |
12427 | { echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12428 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; } |
|
|
12429 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12431 | else |
|
|
12432 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12433 | |
|
|
12434 | #include <X11/Xlib.h> |
|
|
12435 | |
|
|
12436 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12437 | |
|
|
12438 | void f() { |
|
|
12439 | XIMCallback cb; |
|
|
12440 | cb.callback = im_destroy_cb; |
|
|
12441 | } |
|
|
12442 | |
|
|
12443 | _ACEOF |
|
|
12444 | rm -f conftest.$ac_objext |
|
|
12445 | if { (ac_try="$ac_compile" |
|
|
12446 | case "(($ac_try" in |
|
|
12447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
12448 | *) ac_try_echo=$ac_try;; |
|
|
12449 | esac |
|
|
12450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
12451 | (eval "$ac_compile") 2>conftest.er1 |
|
|
12452 | ac_status=$? |
|
|
12453 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12454 | rm -f conftest.er1 |
|
|
12455 | cat conftest.err >&5 |
|
|
12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12457 | (exit $ac_status); } && { |
|
|
12458 | test -z "$ac_cxx_werror_flag" || |
|
|
12459 | test ! -s conftest.err |
|
|
12460 | } && test -s conftest.$ac_objext; then |
|
|
12461 | rxvt_broken_ximcb=yes |
|
|
12462 | else |
|
|
12463 | echo "$as_me: failed program was:" >&5 |
|
|
12464 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12465 | |
|
|
12466 | rxvt_broken_ximcb=no |
|
|
12467 | fi |
|
|
12468 | |
|
|
12469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12470 | fi |
|
|
12471 | { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12472 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6; } |
|
|
12473 | |
|
|
12474 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12475 | |
|
|
12476 | cat >>confdefs.h <<\_ACEOF |
|
|
12477 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12478 | _ACEOF |
|
|
12479 | |
|
|
12480 | fi |
|
|
12481 | |
10496 | |
12482 | |
10497 | |
12483 | |
10498 | |
12484 | |
10499 | |
12485 | |
10500 | |
… | |
… | |
12489 | pty.h \ |
10504 | pty.h \ |
12490 | util.h \ |
10505 | util.h \ |
12491 | libutil.h \ |
10506 | libutil.h \ |
12492 | sys/ioctl.h \ |
10507 | sys/ioctl.h \ |
12493 | sys/stropts.h \ |
10508 | sys/stropts.h \ |
|
|
10509 | stropts.h \ |
12494 | |
10510 | |
12495 | do |
10511 | do |
12496 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10512 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10513 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
12498 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10514 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
13166 | echo "${ECHO_T}no" >&6; } |
11182 | echo "${ECHO_T}no" >&6; } |
13167 | fi |
11183 | fi |
13168 | |
11184 | |
13169 | |
11185 | |
13170 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
11186 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
13171 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
11187 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
13172 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
11188 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
13173 | else |
11189 | else |
13174 | # Extract the first word of "xft-config", so it can be a program name with args. |
11190 | # Extract the first word of "xft-config", so it can be a program name with args. |
13175 | set dummy xft-config; ac_word=$2 |
11191 | set dummy xft-config; ac_word=$2 |
13176 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11192 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
13211 | echo "${ECHO_T}no" >&6; } |
11227 | echo "${ECHO_T}no" >&6; } |
13212 | fi |
11228 | fi |
13213 | |
11229 | |
13214 | |
11230 | |
13215 | if test $XFT_CONFIG != no; then |
11231 | if test $XFT_CONFIG != no; then |
13216 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11232 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
13217 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11233 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
13218 | fi |
11234 | fi |
13219 | fi |
11235 | fi |
13220 | |
11236 | |
|
|
11237 | save_LIBS="$LIBS" |
|
|
11238 | LIBS="$LIBS $X_LIBS" |
13221 | |
11239 | |
13222 | for ac_header in X11/Xft/Xft.h |
11240 | for ac_header in X11/Xft/Xft.h |
13223 | do |
11241 | do |
13224 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11242 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13225 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11243 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
… | |
… | |
13358 | support_xft=no |
11376 | support_xft=no |
13359 | fi |
11377 | fi |
13360 | |
11378 | |
13361 | done |
11379 | done |
13362 | |
11380 | |
13363 | |
|
|
13364 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
11381 | { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 |
13365 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
11382 | echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } |
13366 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
11383 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then |
13367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13368 | else |
11385 | else |
13369 | ac_check_lib_save_LIBS=$LIBS |
11386 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
13421 | LIBS=$ac_check_lib_save_LIBS |
11438 | LIBS=$ac_check_lib_save_LIBS |
13422 | fi |
11439 | fi |
13423 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
11440 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
13424 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
11441 | echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } |
13425 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
11442 | if test $ac_cv_lib_Xft_XftDrawString32 = yes; then |
13426 | cat >>confdefs.h <<_ACEOF |
11443 | : |
13427 | #define HAVE_LIBXFT 1 |
|
|
13428 | _ACEOF |
|
|
13429 | |
|
|
13430 | LIBS="-lXft $LIBS" |
|
|
13431 | |
|
|
13432 | else |
11444 | else |
13433 | support_xft=no |
11445 | support_xft=no |
13434 | fi |
11446 | fi |
13435 | |
11447 | |
|
|
11448 | LIBS="$save_LIBS" |
13436 | |
11449 | |
13437 | if test x$support_xft = xyes; then |
11450 | if test x$support_xft = xyes; then |
13438 | |
11451 | |
13439 | cat >>confdefs.h <<\_ACEOF |
11452 | cat >>confdefs.h <<\_ACEOF |
13440 | #define XFT 1 |
11453 | #define XFT 1 |
… | |
… | |
13468 | cat >>confdefs.h <<\_ACEOF |
11481 | cat >>confdefs.h <<\_ACEOF |
13469 | #define OFF_FOCUS_FADING 1 |
11482 | #define OFF_FOCUS_FADING 1 |
13470 | _ACEOF |
11483 | _ACEOF |
13471 | |
11484 | |
13472 | fi |
11485 | fi |
13473 | if test x$support_tinting = xyes; then |
11486 | if test x$support_inheritpixmap = xyes; then |
13474 | |
11487 | |
13475 | cat >>confdefs.h <<\_ACEOF |
11488 | cat >>confdefs.h <<\_ACEOF |
13476 | #define TINTING 1 |
|
|
13477 | _ACEOF |
|
|
13478 | |
|
|
13479 | fi |
|
|
13480 | if test x$support_inheritpixmap = xyes; then |
|
|
13481 | |
|
|
13482 | cat >>confdefs.h <<\_ACEOF |
|
|
13483 | #define TRANSPARENT 1 |
11489 | #define ENABLE_TRANSPARENCY 1 |
13484 | _ACEOF |
11490 | _ACEOF |
13485 | |
11491 | |
13486 | fi |
11492 | fi |
13487 | if test x$support_keepscrolling = xno; then |
11493 | if test x$support_keepscrolling = xno; then |
13488 | |
11494 | |
… | |
… | |
13517 | cat >>confdefs.h <<\_ACEOF |
11523 | cat >>confdefs.h <<\_ACEOF |
13518 | #define MOUSE_SLIP_WHEELING 1 |
11524 | #define MOUSE_SLIP_WHEELING 1 |
13519 | _ACEOF |
11525 | _ACEOF |
13520 | |
11526 | |
13521 | fi |
11527 | fi |
13522 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
13523 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
13524 | |
|
|
13525 | cat >>confdefs.h <<\_ACEOF |
|
|
13526 | #define USE_XIM 1 |
|
|
13527 | _ACEOF |
|
|
13528 | |
|
|
13529 | fi |
|
|
13530 | fi |
|
|
13531 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
|
|
13532 | |
|
|
13533 | cat >>confdefs.h <<\_ACEOF |
|
|
13534 | #define XPM_BACKGROUND 1 |
|
|
13535 | _ACEOF |
|
|
13536 | |
|
|
13537 | fi |
|
|
13538 | |
|
|
13539 | if test x$support_afterimage = xyes; then |
11528 | if test x$support_afterimage = xyes; then |
13540 | |
11529 | |
13541 | cat >>confdefs.h <<\_ACEOF |
11530 | cat >>confdefs.h <<\_ACEOF |
13542 | #define HAVE_AFTERIMAGE 1 |
11531 | #define HAVE_AFTERIMAGE 1 |
13543 | _ACEOF |
11532 | _ACEOF |
13544 | |
11533 | |
13545 | fi |
|
|
13546 | |
|
|
13547 | if test x$support_afterstep = xyes; then |
|
|
13548 | |
11534 | |
13549 | cat >>confdefs.h <<\_ACEOF |
11535 | cat >>confdefs.h <<\_ACEOF |
13550 | #define AFTERSTEP_INTEGRATION 1 |
11536 | #define BG_IMAGE_FROM_FILE 1 |
13551 | _ACEOF |
11537 | _ACEOF |
13552 | |
11538 | |
13553 | fi |
11539 | fi |
|
|
11540 | |
|
|
11541 | |
|
|
11542 | scrolltypes=plain |
|
|
11543 | |
|
|
11544 | cat >>confdefs.h <<\_ACEOF |
|
|
11545 | #define PLAIN_SCROLLBAR 1 |
|
|
11546 | _ACEOF |
|
|
11547 | |
13554 | |
11548 | |
13555 | if test x$support_scroll_rxvt = xyes; then |
11549 | if test x$support_scroll_rxvt = xyes; then |
13556 | |
11550 | |
13557 | cat >>confdefs.h <<\_ACEOF |
11551 | cat >>confdefs.h <<\_ACEOF |
13558 | #define RXVT_SCROLLBAR 1 |
11552 | #define RXVT_SCROLLBAR 1 |
13559 | _ACEOF |
11553 | _ACEOF |
13560 | |
11554 | |
13561 | scrolltypes="rxvt" |
11555 | scrolltypes="$scrolltypes rxvt" |
13562 | fi |
11556 | fi |
13563 | if test x$support_scroll_next = xyes; then |
11557 | if test x$support_scroll_next = xyes; then |
13564 | |
11558 | |
13565 | cat >>confdefs.h <<\_ACEOF |
11559 | cat >>confdefs.h <<\_ACEOF |
13566 | #define NEXT_SCROLLBAR 1 |
11560 | #define NEXT_SCROLLBAR 1 |
… | |
… | |
13573 | cat >>confdefs.h <<\_ACEOF |
11567 | cat >>confdefs.h <<\_ACEOF |
13574 | #define XTERM_SCROLLBAR 1 |
11568 | #define XTERM_SCROLLBAR 1 |
13575 | _ACEOF |
11569 | _ACEOF |
13576 | |
11570 | |
13577 | scrolltypes="$scrolltypes xterm" |
11571 | scrolltypes="$scrolltypes xterm" |
13578 | fi |
|
|
13579 | if test x$support_scroll_plain = xyes; then |
|
|
13580 | |
|
|
13581 | cat >>confdefs.h <<\_ACEOF |
|
|
13582 | #define PLAIN_SCROLLBAR 1 |
|
|
13583 | _ACEOF |
|
|
13584 | |
|
|
13585 | scrolltypes="$scrolltypes plain" |
|
|
13586 | fi |
11572 | fi |
13587 | if test x$support_pointer_blank = xyes; then |
11573 | if test x$support_pointer_blank = xyes; then |
13588 | |
11574 | |
13589 | cat >>confdefs.h <<\_ACEOF |
11575 | cat >>confdefs.h <<\_ACEOF |
13590 | #define POINTER_BLANK 1 |
11576 | #define POINTER_BLANK 1 |
… | |
… | |
13827 | |
11813 | |
13828 | |
11814 | |
13829 | |
11815 | |
13830 | |
11816 | |
13831 | |
11817 | |
13832 | if test x$support_perl = xyes; then |
|
|
13833 | support_frills=yes |
|
|
13834 | fi |
|
|
13835 | |
11818 | |
13836 | |
11819 | |
13837 | |
11820 | |
13838 | |
11821 | |
13839 | |
|
|
13840 | |
|
|
13841 | |
|
|
13842 | |
|
|
13843 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
13844 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
13845 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
13846 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
13847 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
13848 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
13849 | fi |
|
|
13850 | |
11822 | |
13851 | |
11823 | |
13852 | |
11824 | |
13853 | |
11825 | |
13854 | |
11826 | |
… | |
… | |
13867 | _ACEOF |
11839 | _ACEOF |
13868 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
11840 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
13869 | rm -f conftest.sed |
11841 | rm -f conftest.sed |
13870 | |
11842 | |
13871 | |
11843 | |
13872 | |
|
|
13873 | |
|
|
13874 | |
|
|
13875 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13876 | include_stdint_h="#include <stdint.h>" |
|
|
13877 | else |
|
|
13878 | include_stdint_h="/* #include <stdint.h> */" |
|
|
13879 | fi |
|
|
13880 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13881 | include_stdarg_h="#include <cstdarg>" |
|
|
13882 | else |
|
|
13883 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
13884 | fi |
|
|
13885 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13886 | include_stdlib_h="#include <cstdlib>" |
|
|
13887 | else |
|
|
13888 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
13889 | fi |
|
|
13890 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13891 | include_unistd_h="#include <unistd.h>" |
|
|
13892 | else |
|
|
13893 | include_unistd_h="/* #include <unistd.h> */" |
|
|
13894 | fi |
|
|
13895 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13896 | include_string_h="#include <cstring>" |
|
|
13897 | else |
|
|
13898 | include_string_h="/* #include <cstring> */" |
|
|
13899 | fi |
|
|
13900 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13901 | include_fcntl_h="#include <fcntl.h>" |
|
|
13902 | else |
|
|
13903 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
13904 | fi |
|
|
13905 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13906 | include_util_h="#include <util.h>" |
|
|
13907 | else |
|
|
13908 | include_util_h="/* #include <util.h> */" |
|
|
13909 | fi |
|
|
13910 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13911 | include_assert_h="#include <assert.h>" |
|
|
13912 | else |
|
|
13913 | include_assert_h="/* #include <assert.h> */" |
|
|
13914 | fi |
|
|
13915 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13916 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
13917 | else |
|
|
13918 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
13919 | fi |
|
|
13920 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13921 | include_sys_select_h="#include <sys/select.h>" |
|
|
13922 | else |
|
|
13923 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
13924 | fi |
|
|
13925 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13926 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
13927 | else |
|
|
13928 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
13929 | fi |
|
|
13930 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
13931 | include_sys_time_h="#include <sys/time.h>" |
|
|
13932 | else |
|
|
13933 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
13934 | fi |
|
|
13935 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
13936 | include_time_h="#include <time.h>" |
|
|
13937 | else |
|
|
13938 | include_time_h="/* #include <time.h> */" |
|
|
13939 | fi |
|
|
13940 | |
|
|
13941 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11844 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
13942 | |
11845 | |
13943 | cat >confcache <<\_ACEOF |
11846 | cat >confcache <<\_ACEOF |
13944 | # This file is a shell script that caches the results of configure |
11847 | # This file is a shell script that caches the results of configure |
13945 | # tests run on this system so they can be shared between configure |
11848 | # tests run on this system so they can be shared between configure |
13946 | # scripts and configure runs, see configure's option --config-cache. |
11849 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
14495 | case $ac_config_target in |
12398 | case $ac_config_target in |
14496 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
12399 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
14497 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
12400 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
14498 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
12401 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
14499 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
12402 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
14500 | "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
|
|
14501 | |
12403 | |
14502 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
12404 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
14503 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
12405 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
14504 | { (exit 1); exit 1; }; };; |
12406 | { (exit 1); exit 1; }; };; |
14505 | esac |
12407 | esac |
… | |
… | |
14604 | host_cpu!$host_cpu$ac_delim |
12506 | host_cpu!$host_cpu$ac_delim |
14605 | host_vendor!$host_vendor$ac_delim |
12507 | host_vendor!$host_vendor$ac_delim |
14606 | host_os!$host_os$ac_delim |
12508 | host_os!$host_os$ac_delim |
14607 | VERSION!$VERSION$ac_delim |
12509 | VERSION!$VERSION$ac_delim |
14608 | DATE!$DATE$ac_delim |
12510 | DATE!$DATE$ac_delim |
14609 | LSMDATE!$LSMDATE$ac_delim |
|
|
14610 | LIBVERSION!$LIBVERSION$ac_delim |
|
|
14611 | CC!$CC$ac_delim |
12511 | CC!$CC$ac_delim |
14612 | CFLAGS!$CFLAGS$ac_delim |
12512 | CFLAGS!$CFLAGS$ac_delim |
14613 | LDFLAGS!$LDFLAGS$ac_delim |
12513 | LDFLAGS!$LDFLAGS$ac_delim |
14614 | CPPFLAGS!$CPPFLAGS$ac_delim |
12514 | CPPFLAGS!$CPPFLAGS$ac_delim |
14615 | ac_ct_CC!$ac_ct_CC$ac_delim |
12515 | ac_ct_CC!$ac_ct_CC$ac_delim |
… | |
… | |
14623 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
12523 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
14624 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
12524 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
14625 | GREP!$GREP$ac_delim |
12525 | GREP!$GREP$ac_delim |
14626 | EGREP!$EGREP$ac_delim |
12526 | EGREP!$EGREP$ac_delim |
14627 | LINKER!$LINKER$ac_delim |
12527 | LINKER!$LINKER$ac_delim |
14628 | INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim |
|
|
14629 | RXVTNAME!$RXVTNAME$ac_delim |
12528 | RXVTNAME!$RXVTNAME$ac_delim |
14630 | MV!$MV$ac_delim |
|
|
14631 | CP!$CP$ac_delim |
12529 | CXXCPP!$CXXCPP$ac_delim |
14632 | LN!$LN$ac_delim |
|
|
14633 | SED!$SED$ac_delim |
|
|
14634 | ECHO!$ECHO$ac_delim |
|
|
14635 | CMP!$CMP$ac_delim |
|
|
14636 | TIC!$TIC$ac_delim |
12530 | TIC!$TIC$ac_delim |
14637 | XMKMF!$XMKMF$ac_delim |
12531 | XMKMF!$XMKMF$ac_delim |
14638 | CXXCPP!$CXXCPP$ac_delim |
|
|
14639 | X_CFLAGS!$X_CFLAGS$ac_delim |
12532 | X_CFLAGS!$X_CFLAGS$ac_delim |
14640 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
12533 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
14641 | X_LIBS!$X_LIBS$ac_delim |
12534 | X_LIBS!$X_LIBS$ac_delim |
14642 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
12535 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
14643 | afterimage_config!$afterimage_config$ac_delim |
12536 | afterimage_config!$afterimage_config$ac_delim |
14644 | XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim |
|
|
14645 | XPM_CFLAGS!$XPM_CFLAGS$ac_delim |
|
|
14646 | XPM_LIBS!$XPM_LIBS$ac_delim |
|
|
14647 | rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim |
|
|
14648 | rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim |
|
|
14649 | rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim |
|
|
14650 | rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim |
|
|
14651 | rxvt_intp_define!$rxvt_intp_define$ac_delim |
|
|
14652 | rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim |
|
|
14653 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
12537 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
14654 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
12538 | XFT_CONFIG!$XFT_CONFIG$ac_delim |
14655 | PERL!$PERL$ac_delim |
12539 | PERL!$PERL$ac_delim |
14656 | PERLLIB!$PERLLIB$ac_delim |
12540 | PERLLIB!$PERLLIB$ac_delim |
14657 | PERLFLAGS!$PERLFLAGS$ac_delim |
12541 | PERLFLAGS!$PERLFLAGS$ac_delim |
14658 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
12542 | PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim |
|
|
12543 | IF_PERL!$IF_PERL$ac_delim |
|
|
12544 | PERL_O!$PERL_O$ac_delim |
|
|
12545 | AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim |
|
|
12546 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
|
|
12547 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
12548 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
14659 | _ACEOF |
12549 | _ACEOF |
14660 | |
12550 | |
14661 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
12551 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then |
14662 | break |
12552 | break |
14663 | elif $ac_last_try; then |
12553 | elif $ac_last_try; then |
14664 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
12554 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
14665 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
12555 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
14666 | { (exit 1); exit 1; }; } |
12556 | { (exit 1); exit 1; }; } |
… | |
… | |
14675 | ac_eof=`expr $ac_eof + 1` |
12565 | ac_eof=`expr $ac_eof + 1` |
14676 | fi |
12566 | fi |
14677 | |
12567 | |
14678 | cat >>$CONFIG_STATUS <<_ACEOF |
12568 | cat >>$CONFIG_STATUS <<_ACEOF |
14679 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
12569 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
14680 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
|
14681 | _ACEOF |
|
|
14682 | sed ' |
|
|
14683 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
|
|
14684 | s/^/s,@/; s/!/@,|#_!!_#|/ |
|
|
14685 | :n |
|
|
14686 | t n |
|
|
14687 | s/'"$ac_delim"'$/,g/; t |
|
|
14688 | s/$/\\/; p |
|
|
14689 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
|
|
14690 | ' >>$CONFIG_STATUS <conf$$subs.sed |
|
|
14691 | rm -f conf$$subs.sed |
|
|
14692 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14693 | CEOF$ac_eof |
|
|
14694 | _ACEOF |
|
|
14695 | |
|
|
14696 | |
|
|
14697 | ac_delim='%!_!# ' |
|
|
14698 | for ac_last_try in false false false false false :; do |
|
|
14699 | cat >conf$$subs.sed <<_ACEOF |
|
|
14700 | IF_PERL!$IF_PERL$ac_delim |
|
|
14701 | PERL_O!$PERL_O$ac_delim |
|
|
14702 | DEBUG!$DEBUG$ac_delim |
|
|
14703 | DINCLUDE!$DINCLUDE$ac_delim |
|
|
14704 | DLIB!$DLIB$ac_delim |
|
|
14705 | LIBAFTERIMAGE_CFLAGS!$LIBAFTERIMAGE_CFLAGS$ac_delim |
|
|
14706 | AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim |
|
|
14707 | include_stdint_h!$include_stdint_h$ac_delim |
|
|
14708 | include_stdarg_h!$include_stdarg_h$ac_delim |
|
|
14709 | include_stdlib_h!$include_stdlib_h$ac_delim |
|
|
14710 | include_unistd_h!$include_unistd_h$ac_delim |
|
|
14711 | include_string_h!$include_string_h$ac_delim |
|
|
14712 | include_fcntl_h!$include_fcntl_h$ac_delim |
|
|
14713 | include_util_h!$include_util_h$ac_delim |
|
|
14714 | include_assert_h!$include_assert_h$ac_delim |
|
|
14715 | include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim |
|
|
14716 | include_sys_select_h!$include_sys_select_h$ac_delim |
|
|
14717 | include_sys_strredir_h!$include_sys_strredir_h$ac_delim |
|
|
14718 | include_sys_time_h!$include_sys_time_h$ac_delim |
|
|
14719 | include_time_h!$include_time_h$ac_delim |
|
|
14720 | LIBOBJS!$LIBOBJS$ac_delim |
|
|
14721 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
|
|
14722 | _ACEOF |
|
|
14723 | |
|
|
14724 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then |
|
|
14725 | break |
|
|
14726 | elif $ac_last_try; then |
|
|
14727 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
|
|
14728 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
|
|
14729 | { (exit 1); exit 1; }; } |
|
|
14730 | else |
|
|
14731 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
|
14732 | fi |
|
|
14733 | done |
|
|
14734 | |
|
|
14735 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
|
|
14736 | if test -n "$ac_eof"; then |
|
|
14737 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
|
|
14738 | ac_eof=`expr $ac_eof + 1` |
|
|
14739 | fi |
|
|
14740 | |
|
|
14741 | cat >>$CONFIG_STATUS <<_ACEOF |
|
|
14742 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
|
|
14743 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
12570 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
14744 | _ACEOF |
12571 | _ACEOF |
14745 | sed ' |
12572 | sed ' |
14746 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
12573 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
14747 | s/^/s,@/; s/!/@,|#_!!_#|/ |
12574 | s/^/s,@/; s/!/@,|#_!!_#|/ |
… | |
… | |
15000 | s&@builddir@&$ac_builddir&;t t |
12827 | s&@builddir@&$ac_builddir&;t t |
15001 | s&@abs_builddir@&$ac_abs_builddir&;t t |
12828 | s&@abs_builddir@&$ac_abs_builddir&;t t |
15002 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
12829 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
15003 | s&@INSTALL@&$ac_INSTALL&;t t |
12830 | s&@INSTALL@&$ac_INSTALL&;t t |
15004 | $ac_datarootdir_hack |
12831 | $ac_datarootdir_hack |
15005 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
12832 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out |
15006 | |
12833 | |
15007 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
12834 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
15008 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
12835 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
15009 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
12836 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
15010 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
12837 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
… | |
… | |
15158 | Install path: ${prefix}/bin |
12985 | Install path: ${prefix}/bin |
15159 | Compiler: $CXX |
12986 | Compiler: $CXX |
15160 | Compiler flags: $CXXFLAGS |
12987 | Compiler flags: $CXXFLAGS |
15161 | Linker: $LINKER" |
12988 | Linker: $LINKER" |
15162 | |
12989 | |
15163 | if test x$support_xpm = xyes; then |
|
|
15164 | echo " Xpm library: $XPM_LIBS" |
|
|
15165 | fi |
|
|
15166 | |
|
|
15167 | if test x$support_afterimage = xyes; then |
|
|
15168 | echo " AfterImage support: yes" |
|
|
15169 | fi |
|
|
15170 | |
|
|
15171 | if test x$support_afterstep = xyes; then |
|
|
15172 | echo " AfterStep intergration: yes" |
|
|
15173 | fi |
|
|
15174 | |
|
|
15175 | if test x$term != x; then |
12990 | if test x$term != x; then |
15176 | echo " set TERM to: $term" |
12991 | echo " set TERM to: $term" |
15177 | fi |
12992 | fi |
15178 | if test x$terminfo != x; then |
12993 | if test x$terminfo != x; then |
15179 | echo " set TERMINFO to: $terminfo" |
12994 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
15183 | if test x$RESFALLBACK != x; then |
12998 | if test x$RESFALLBACK != x; then |
15184 | echo " resource class fallback: $RESFALLBACK" |
12999 | echo " resource class fallback: $RESFALLBACK" |
15185 | fi |
13000 | fi |
15186 | echo |
13001 | echo |
15187 | echo " embedded perl: $support_perl" |
13002 | echo " embedded perl: $support_perl" |
|
|
13003 | echo " libafterimage: $support_afterimage" |
15188 | echo |
13004 | echo |
15189 | if test x$support_xpm = xneedsmanualspecification; then |
|
|
15190 | echo ".----------------------------------------------------------------." |
|
|
15191 | echo ". WARNING: --enable-xpm-background was specified however the ." |
|
|
15192 | echo ". XPM includes files and libraries could not be found. ." |
|
|
15193 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
|
|
15194 | echo ". to use them you should rerun configure with the ." |
|
|
15195 | echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ." |
|
|
15196 | echo ". and --with-xpm-library=/path/to/xpm/library lines. ." |
|
|
15197 | echo ".----------------------------------------------------------------." |
|
|
15198 | fi |
|
|
15199 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
13005 | if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then |
15200 | echo ".----------------------------------------------------------------." |
13006 | echo ".----------------------------------------------------------------." |
15201 | echo ". WARNING: --enable-xim was specified however the locale support ." |
13007 | echo ". WARNING: --enable-xim was specified however the locale support ." |
15202 | echo ". functions could not be found. ." |
13008 | echo ". functions could not be found. ." |
15203 | echo ". XIM is now being DISABLED! ." |
13009 | echo ". XIM is now being DISABLED! ." |