ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.105 by root, Tue Jun 26 00:40:18 2007 UTC vs.
Revision 1.122 by ayin, Tue Dec 11 18:32:08 2007 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682CXXLIB
683INSTALL_LIBRXVT
684RXVTNAME 680RXVTNAME
681CXXCPP
685TIC 682TIC
686XMKMF 683XMKMF
687CXXCPP
688X_CFLAGS 684X_CFLAGS
689X_PRE_LIBS 685X_PRE_LIBS
690X_LIBS 686X_LIBS
691X_EXTRA_LIBS 687X_EXTRA_LIBS
692afterimage_config 688afterimage_config
693XPM_CPPFLAGS
694XPM_CFLAGS
695XPM_LIBS
696rxvt_int16_typedef
697rxvt_uint16_typedef
698rxvt_int32_typedef
699rxvt_uint32_typedef
700rxvt_intp_define
701rxvt_u_intp_define
702PKG_CONFIG 689PKG_CONFIG
703XFT_CONFIG 690XFT_CONFIG
704PERL 691PERL
705PERLLIB 692PERLLIB
706PERLFLAGS 693PERLFLAGS
707PERLPRIVLIBEXP 694PERLPRIVLIBEXP
708IF_PERL 695IF_PERL
709PERL_O 696PERL_O
710LIBAFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
711AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
712include_stdint_h 699include_stdint_h
713include_stdarg_h
714include_stdlib_h
715include_unistd_h
716include_string_h
717include_fcntl_h
718include_util_h
719include_assert_h
720include_sys_ioctl_h 700include_sys_ioctl_h
721include_sys_select_h
722include_sys_strredir_h 701include_sys_strredir_h
723include_sys_time_h
724include_time_h
725LIBOBJS 702LIBOBJS
726LTLIBOBJS' 703LTLIBOBJS'
727ac_subst_files='' 704ac_subst_files=''
728 ac_precious_vars='build_alias 705 ac_precious_vars='build_alias
729host_alias 706host_alias
735CPPFLAGS 712CPPFLAGS
736CXX 713CXX
737CXXFLAGS 714CXXFLAGS
738CCC 715CCC
739CPP 716CPP
740XMKMF
741CXXCPP' 717CXXCPP
718XMKMF'
742 719
743 720
744# Initialize some variables set by options. 721# Initialize some variables set by options.
745ac_init_help= 722ac_init_help=
746ac_init_version=false 723ac_init_version=false
1320Optional Features: 1297Optional Features:
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-everything enable standard non-multichoice features 1300 --enable-everything enable standard non-multichoice features
1324 NOTE: this option is order dependent 1301 NOTE: this option is order dependent
1325 NOTE: automatically enabled with --enable-shared 1302 --enable-warnings turn on g++ warnings
1326 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1303 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1327 --enable-combining enable composition of base and combining characters 1304 --enable-combining enable composition of base and combining characters
1328 --enable-xft enable xft support on systems that have it 1305 --enable-xft enable xft support on systems that have it
1329 --enable-font-styles enable bold and italic support 1306 --enable-font-styles enable bold and italic support
1330 --enable-xpm-background enable background pixmaps
1331 --enable-afterimage enable integration with libAfterImage for background images 1307 --enable-afterimage enable integration with libAfterImage for background images
1332 --enable-afterstep enable integration with AfterStep window manager
1333 --enable-transparency enable transparent backgrounds 1308 --enable-transparency enable transparent backgrounds
1334 --enable-tinting enable tinting of transparent bg
1335 --enable-fading enable colors fading when off focus 1309 --enable-fading enable colors fading when off focus
1336 --enable-rxvt-scroll enable rxvt style scrollbar 1310 --enable-rxvt-scroll enable rxvt style scrollbar
1337 --enable-next-scroll enable NeXT style scrollbar 1311 --enable-next-scroll enable NeXT style scrollbar
1338 --enable-xterm-scroll enable Xterm style scrollbar 1312 --enable-xterm-scroll enable Xterm style scrollbar
1313 --enable-plain-scroll enable plain style scrollbar
1339 --enable-perl enable embedded perl interpreter 1314 --enable-perl enable embedded perl interpreter
1340 --enable-plain-scroll enable plain style scrollbar
1341 --enable-xim XIM (X Input Method) protocol support 1315 --enable-xim XIM (X Input Method) protocol support
1342 --disable-backspace-key disable handling of the backspace key 1316 --disable-backspace-key disable handling of the backspace key
1343 --disable-delete-key disable handling of the delete key 1317 --disable-delete-key disable handling of the delete key
1344 --disable-resources disable all resource checking 1318 --disable-resources disable all resource checking
1345 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1319 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1346 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1320 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1347 --disable-swapscreen disable swap screen support 1321 --disable-swapscreen disable swap screen support
1348 --enable-iso14755 enable support for extended ISO 14755 modes 1322 --enable-iso14755 enable support for extended ISO 14755 modes
1349 --enable-frills enable support for rarely used features 1323 --enable-frills enable support for rarely used features
1350 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1324 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1351 --enable-selectionscrolling enable scrolling during selections 1325 --enable-selectionscrolling enable scrolling during selections
1352 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1326 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1353 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1327 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1354 --enable-smart-resize enable smart growth/shrink behaviour 1328 --enable-smart-resize enable smart growth/shrink behaviour
1355 --enable-text-blink enable blinking text 1329 --enable-text-blink enable blinking text
1356 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1330 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1357 --enable-utmp enable utmp (utmpx) support 1331 --enable-utmp enable utmp (utmpx) support
1358 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1332 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1360 1334
1361Optional Packages: 1335Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1364 --with-afterimage-config=DIR use libAfterImage config script in DIR 1338 --with-afterimage-config=DIR use libAfterImage config script in DIR
1365 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1339 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1366 --with-res-name=NAME use this as default resource name (default: urxvt) 1340 --with-res-name=NAME use this as default resource name (default: urxvt)
1367 --with-res-class=CLASS use this as the resource class (default: URxvt) 1341 --with-res-class=CLASS use this as the resource class (default: URxvt)
1368 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1342 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1369 --with-term=NAME set the terminal to NAME (default: rxvt) 1343 --with-term=NAME set the terminal to NAME (default: rxvt)
1370 --with-terminfo=PATH set the path to the terminfo tree to PATH 1344 --with-terminfo=PATH set the path to the terminfo tree to PATH
1371 --with-x use the X Window System 1345 --with-x use the X Window System
1372 --with-xpm-includes=DIR use XPM includes in DIR
1373 --with-xpm-library=DIR use XPM library in DIR
1374 --with-xpm use XPM
1375 1346
1376Some influential environment variables: 1347Some influential environment variables:
1377 CC C compiler command 1348 CC C compiler command
1378 CFLAGS C compiler flags 1349 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir> 1354 you have headers in a nonstandard directory <include dir>
1384 CXX C++ compiler command 1355 CXX C++ compiler command
1385 CXXFLAGS C++ compiler flags 1356 CXXFLAGS C++ compiler flags
1386 CPP C preprocessor 1357 CPP C preprocessor
1358 CXXCPP C++ preprocessor
1387 XMKMF Path to xmkmf, Makefile generator for X Window System 1359 XMKMF Path to xmkmf, Makefile generator for X Window System
1388 CXXCPP C++ preprocessor
1389 1360
1390Use these variables to override the choices made by `configure' or to help 1361Use these variables to override the choices made by `configure' or to help
1391it to find libraries and programs with nonstandard names/locations. 1362it to find libraries and programs with nonstandard names/locations.
1392 1363
1393_ACEOF 1364_ACEOF
1929 1900
1930 1901
1931 1902
1932VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1903VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1933DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1904DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1905
1934echo "" 1906echo ""
1935echo "configuring for rxvt $VERSION" 1907echo "configuring for rxvt $VERSION"
1936echo "" 1908echo ""
1937 1909
1938orig_CXXFLAGS="$CXXFLAGS" 1910orig_CXXFLAGS="$CXXFLAGS"
1939
1940 1911
1941ac_ext=c 1912ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS' 1913ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723echo "${ECHO_T}no" >&6; } 3694echo "${ECHO_T}no" >&6; }
3724fi 3695fi
3725rm -f conftest* 3696rm -f conftest*
3726 3697
3727 3698
3699
3700cat >>confdefs.h <<\_ACEOF
3701#define _GNU_SOURCE 1
3702_ACEOF
3703
3704
3728{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3705{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3729echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3706echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3730if test "${ac_cv_search_strerror+set}" = set; then 3707if test "${ac_cv_search_strerror+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6 3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3732else 3709else
3855 (exit $ac_status); } && { 3832 (exit $ac_status); } && {
3856 test -z "$ac_cxx_werror_flag" || 3833 test -z "$ac_cxx_werror_flag" ||
3857 test ! -s conftest.err 3834 test ! -s conftest.err
3858 } && test -s conftest$ac_exeext && 3835 } && test -s conftest$ac_exeext &&
3859 $as_test_x conftest$ac_exeext; then 3836 $as_test_x conftest$ac_exeext; then
3860
3861 { echo "$as_me:$LINENO: result: ok" >&5 3837 { echo "$as_me:$LINENO: result: ok" >&5
3862echo "${ECHO_T}ok" >&6; } 3838echo "${ECHO_T}ok" >&6; }
3863 CXXLIB="-lsupc++"
3864
3865else 3839else
3866 echo "$as_me: failed program was:" >&5 3840 echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5 3841sed 's/^/| /' conftest.$ac_ext >&5
3868 3842
3869 3843
3880 CXX="$save_CXX" 3854 CXX="$save_CXX"
3881fi 3855fi
3882LINKER=$LINKER 3856LINKER=$LINKER
3883 3857
3884 3858
3885
3886if test -z "$orig_CXXFLAGS"; then 3859if test -z "$orig_CXXFLAGS"; then
3887 if test x$GCC = xyes && test "x$GXX" = xyes; then 3860 if test x$GCC = xyes && test "x$GXX" = xyes; then
3888 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3861 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3889 cat >conftest.$ac_ext <<_ACEOF 3862 cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h. */ 3863/* confdefs.h. */
3891_ACEOF 3864_ACEOF
3892cat confdefs.h >>conftest.$ac_ext 3865cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF 3866cat >>conftest.$ac_ext <<_ACEOF
3931 CXXFLAGS="-O" 3904 CXXFLAGS="-O"
3932 fi 3905 fi
3933 CFLAGS="$CXXFLAGS" 3906 CFLAGS="$CXXFLAGS"
3934fi 3907fi
3935 3908
3936
3937cat >>confdefs.h <<\_ACEOF
3938#define _GNU_SOURCE 1
3939_ACEOF
3940
3941
3942case $host in 3909case $host in
3943 *-*-solaris* ) 3910 *-*-solaris* )
3944 3911
3945cat >>confdefs.h <<\_ACEOF 3912cat >>confdefs.h <<\_ACEOF
3946#define _XOPEN_SOURCE 500 3913#define _XOPEN_SOURCE 500
3947_ACEOF 3914_ACEOF
3948 3915
3949 ;; 3916 ;;
3950esac 3917esac
3951
3952 3918
3953{ echo "$as_me:$LINENO: checking for setlocale" >&5 3919{ echo "$as_me:$LINENO: checking for setlocale" >&5
3954echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3920echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3955if test "${ac_cv_func_setlocale+set}" = set; then 3921if test "${ac_cv_func_setlocale+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3922 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 4372
4407 4373
4408 4374
4409support_frills=yes 4375support_frills=yes
4410support_inheritpixmap=yes 4376support_inheritpixmap=yes
4411support_tinting=yes
4412support_fading=yes 4377support_fading=yes
4413support_keepscrolling=yes 4378support_keepscrolling=yes
4414support_selectionscrolling=yes 4379support_selectionscrolling=yes
4415support_mousewheel=yes 4380support_mousewheel=yes
4416support_mouseslipwheel=yes 4381support_mouseslipwheel=yes
4419support_scroll_rxvt=yes 4384support_scroll_rxvt=yes
4420support_scroll_next=yes 4385support_scroll_next=yes
4421support_scroll_xterm=yes 4386support_scroll_xterm=yes
4422support_scroll_plain=yes 4387support_scroll_plain=yes
4423support_xim=yes 4388support_xim=yes
4424support_xpm=yes
4425support_afterimage=yes 4389support_afterimage=yes
4426support_afterstep=yes 4390support_afterstep=yes
4427support_xft=yes 4391support_xft=yes
4428support_unicode3=no 4392support_unicode3=no
4429support_combining=yes 4393support_combining=yes
4432support_styles=yes 4396support_styles=yes
4433support_perl=yes 4397support_perl=yes
4434codesets=all 4398codesets=all
4435 4399
4436 4400
4437if test "x$enable_shared" = xyes; then
4438
4439cat >>confdefs.h <<\_ACEOF
4440#define LIBRXVT 1
4441_ACEOF
4442
4443 INSTALL_LIBRXVT=yes
4444fi
4445
4446 4401
4447# Check whether --enable-everything was given. 4402# Check whether --enable-everything was given.
4448if test "${enable_everything+set}" = set; then 4403if test "${enable_everything+set}" = set; then
4449 enableval=$enable_everything; 4404 enableval=$enable_everything;
4450 if test x$enableval = xno; then 4405 if test x$enableval = xno; then
4451 support_frills=no 4406 support_frills=no
4452 support_inheritpixmap=no 4407 support_inheritpixmap=no
4453 support_tinting=no
4454 support_fading=no 4408 support_fading=no
4455 support_keepscrolling=no 4409 support_keepscrolling=no
4456 support_selectionscrolling=no 4410 support_selectionscrolling=no
4457 support_lastlog=no 4411 support_lastlog=no
4458 support_mousewheel=no 4412 support_mousewheel=no
4464 support_scroll_xterm=no 4418 support_scroll_xterm=no
4465 support_scroll_plain=no 4419 support_scroll_plain=no
4466 support_utmp=no 4420 support_utmp=no
4467 support_wtmp=no 4421 support_wtmp=no
4468 support_xim=no 4422 support_xim=no
4469 support_xpm=no
4470 support_afterimage=no 4423 support_afterimage=no
4471 support_afterstep=no 4424 support_afterstep=no
4472 support_xft=no 4425 support_xft=no
4473 support_unicode3=no 4426 support_unicode3=no
4474 support_combining=no 4427 support_combining=no
4479 codesets= 4432 codesets=
4480 fi 4433 fi
4481 if test x$enableval = xyes; then 4434 if test x$enableval = xyes; then
4482 support_frills=yes 4435 support_frills=yes
4483 support_inheritpixmap=yes 4436 support_inheritpixmap=yes
4484 support_tinting=yes
4485 support_fading=yes 4437 support_fading=yes
4486 support_keepscrolling=yes 4438 support_keepscrolling=yes
4487 support_selectionscrolling=yes 4439 support_selectionscrolling=yes
4488 support_lastlog=yes 4440 support_lastlog=yes
4489 support_mousewheel=yes 4441 support_mousewheel=yes
4495 support_scroll_xterm=yes 4447 support_scroll_xterm=yes
4496 support_scroll_plain=yes 4448 support_scroll_plain=yes
4497 support_utmp=yes 4449 support_utmp=yes
4498 support_wtmp=yes 4450 support_wtmp=yes
4499 support_xim=yes 4451 support_xim=yes
4500 support_xpm=yes
4501 support_afterimage=yes 4452 support_afterimage=yes
4502 support_afterstep=yes 4453 support_afterstep=yes
4503 support_xft=yes 4454 support_xft=yes
4504 support_unicode3=yes 4455 support_unicode3=yes
4505 support_combining=yes 4456 support_combining=yes
4511 fi 4462 fi
4512 4463
4513fi 4464fi
4514 4465
4515 4466
4467WARNINGS=no
4468# Check whether --enable-warnings was given.
4469if test "${enable_warnings+set}" = set; then
4470 enableval=$enable_warnings; if test x$enableval = xyes; then
4471 WARNINGS=yes
4472 fi
4473fi
4474
4475if test x$GXX = xyes; then
4476 if test $WARNINGS = yes; then
4477 save_CXXFLAGS="$CXXFLAGS"
4478 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485
4486int
4487main ()
4488{
4489
4490 ;
4491 return 0;
4492}
4493_ACEOF
4494rm -f conftest.$ac_objext
4495if { (ac_try="$ac_compile"
4496case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499esac
4500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_compile") 2>conftest.er1
4502 ac_status=$?
4503 grep -v '^ *+' conftest.er1 >conftest.err
4504 rm -f conftest.er1
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } && {
4508 test -z "$ac_cxx_werror_flag" ||
4509 test ! -s conftest.err
4510 } && test -s conftest.$ac_objext; then
4511 :
4512else
4513 echo "$as_me: failed program was:" >&5
4514sed 's/^/| /' conftest.$ac_ext >&5
4515
4516 CXXFLAGS="$save_CXXFLAGS"
4517fi
4518
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 else
4521 CXXFLAGS="$CXXFLAGS -w"
4522 fi
4523fi
4524
4516# Check whether --enable-unicode3 was given. 4525# Check whether --enable-unicode3 was given.
4517if test "${enable_unicode3+set}" = set; then 4526if test "${enable_unicode3+set}" = set; then
4518 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4527 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4519 support_unicode3=$enableval 4528 support_unicode3=$enableval
4520 fi 4529 fi
4543 support_styles=$enableval 4552 support_styles=$enableval
4544 fi 4553 fi
4545fi 4554fi
4546 4555
4547 4556
4548# Check whether --enable-xpm-background was given.
4549if test "${enable_xpm_background+set}" = set; then
4550 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4551 support_xpm=$enableval
4552 fi
4553fi
4554
4555
4556# Check whether --enable-afterimage was given. 4557# Check whether --enable-afterimage was given.
4557if test "${enable_afterimage+set}" = set; then 4558if test "${enable_afterimage+set}" = set; then
4558 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4559 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4559 support_afterimage=$enableval 4560 support_afterimage=$enableval
4560 fi 4561 fi
4568 afterimage_config=$withval/afterimage-config 4569 afterimage_config=$withval/afterimage-config
4569 fi 4570 fi
4570fi 4571fi
4571 4572
4572 4573
4573# Check whether --enable-afterstep was given.
4574if test "${enable_afterstep+set}" = set; then
4575 enableval=$enable_afterstep; if test x$enableval = xyes -o x$enableval = xno; then
4576 support_afterstep=$enableval
4577 fi
4578fi
4579
4580 4574
4581# Check whether --enable-transparency was given. 4575# Check whether --enable-transparency was given.
4582if test "${enable_transparency+set}" = set; then 4576if test "${enable_transparency+set}" = set; then
4583 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4577 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4584 support_inheritpixmap=$enableval 4578 support_inheritpixmap=$enableval
4585 fi 4579 fi
4586fi 4580fi
4587 4581
4588 4582
4589# Check whether --enable-tinting was given.
4590if test "${enable_tinting+set}" = set; then
4591 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4592 support_tinting=$enableval
4593 fi
4594fi
4595
4596
4597# Check whether --enable-fading was given. 4583# Check whether --enable-fading was given.
4598if test "${enable_fading+set}" = set; then 4584if test "${enable_fading+set}" = set; then
4599 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4585 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4600 support_fading=$enableval 4586 support_fading=$enableval
4601 fi 4587 fi
4624 support_scroll_xterm=$enableval 4610 support_scroll_xterm=$enableval
4625 fi 4611 fi
4626fi 4612fi
4627 4613
4628 4614
4615# Check whether --enable-plain-scroll was given.
4616if test "${enable_plain_scroll+set}" = set; then
4617 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4618 support_scroll_plain=$enableval
4619 fi
4620fi
4621
4622
4629# Check whether --enable-perl was given. 4623# Check whether --enable-perl was given.
4630if test "${enable_perl+set}" = set; then 4624if test "${enable_perl+set}" = set; then
4631 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4625 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4632 support_perl=$enableval 4626 support_perl=$enableval
4633 fi
4634fi
4635
4636
4637# Check whether --enable-plain-scroll was given.
4638if test "${enable_plain_scroll+set}" = set; then
4639 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4640 support_scroll_plain=$enableval
4641 fi 4627 fi
4642fi 4628fi
4643 4629
4644 4630
4645 4631
4872#define RXVT_TERMINFO "$withval" 4858#define RXVT_TERMINFO "$withval"
4873_ACEOF 4859_ACEOF
4874 terminfo="$withval" 4860 terminfo="$withval"
4875 fi 4861 fi
4876fi 4862fi
4863
4864
4865
4866LIBEV_M4_AVOID_LIBRT=1
4867
4868ac_ext=cpp
4869ac_cpp='$CXXCPP $CPPFLAGS'
4870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4873{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4874echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4875if test -z "$CXXCPP"; then
4876 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879 # Double quotes because CXXCPP needs to be expanded
4880 for CXXCPP in "$CXX -E" "/lib/cpp"
4881 do
4882 ac_preproc_ok=false
4883for ac_cxx_preproc_warn_flag in '' yes
4884do
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
4897#ifdef __STDC__
4898# include <limits.h>
4899#else
4900# include <assert.h>
4901#endif
4902 Syntax error
4903_ACEOF
4904if { (ac_try="$ac_cpp conftest.$ac_ext"
4905case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908esac
4909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null && {
4917 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4918 test ! -s conftest.err
4919 }; then
4920 :
4921else
4922 echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 # Broken: fails on valid input.
4926continue
4927fi
4928
4929rm -f conftest.err conftest.$ac_ext
4930
4931 # OK, works on sane cases. Now check whether nonexistent headers
4932 # can be detected and how.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#include <ac_nonexistent.h>
4940_ACEOF
4941if { (ac_try="$ac_cpp conftest.$ac_ext"
4942case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945esac
4946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4955 test ! -s conftest.err
4956 }; then
4957 # Broken: success on invalid input.
4958continue
4959else
4960 echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 # Passes both tests.
4964ac_preproc_ok=:
4965break
4966fi
4967
4968rm -f conftest.err conftest.$ac_ext
4969
4970done
4971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972rm -f conftest.err conftest.$ac_ext
4973if $ac_preproc_ok; then
4974 break
4975fi
4976
4977 done
4978 ac_cv_prog_CXXCPP=$CXXCPP
4979
4980fi
4981 CXXCPP=$ac_cv_prog_CXXCPP
4982else
4983 ac_cv_prog_CXXCPP=$CXXCPP
4984fi
4985{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4986echo "${ECHO_T}$CXXCPP" >&6; }
4987ac_preproc_ok=false
4988for ac_cxx_preproc_warn_flag in '' yes
4989do
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002#ifdef __STDC__
5003# include <limits.h>
5004#else
5005# include <assert.h>
5006#endif
5007 Syntax error
5008_ACEOF
5009if { (ac_try="$ac_cpp conftest.$ac_ext"
5010case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013esac
5014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5023 test ! -s conftest.err
5024 }; then
5025 :
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Broken: fails on valid input.
5031continue
5032fi
5033
5034rm -f conftest.err conftest.$ac_ext
5035
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <ac_nonexistent.h>
5045_ACEOF
5046if { (ac_try="$ac_cpp conftest.$ac_ext"
5047case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050esac
5051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null && {
5059 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5060 test ! -s conftest.err
5061 }; then
5062 # Broken: success on invalid input.
5063continue
5064else
5065 echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 # Passes both tests.
5069ac_preproc_ok=:
5070break
5071fi
5072
5073rm -f conftest.err conftest.$ac_ext
5074
5075done
5076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077rm -f conftest.err conftest.$ac_ext
5078if $ac_preproc_ok; then
5079 :
5080else
5081 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5082See \`config.log' for more details." >&5
5083echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5084See \`config.log' for more details." >&2;}
5085 { (exit 1); exit 1; }; }
5086fi
5087
5088ac_ext=cpp
5089ac_cpp='$CXXCPP $CPPFLAGS'
5090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093
5094
5095{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5096echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5097if test "${ac_cv_header_stdc+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h. */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>conftest.$ac_ext <<_ACEOF
5105/* end confdefs.h. */
5106#include <stdlib.h>
5107#include <stdarg.h>
5108#include <string.h>
5109#include <float.h>
5110
5111int
5112main ()
5113{
5114
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_cxx_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_header_stdc=yes
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_cv_header_stdc=no
5142fi
5143
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145
5146if test $ac_cv_header_stdc = yes; then
5147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148 cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h. */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h. */
5154#include <string.h>
5155
5156_ACEOF
5157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "memchr" >/dev/null 2>&1; then
5159 :
5160else
5161 ac_cv_header_stdc=no
5162fi
5163rm -f conftest*
5164
5165fi
5166
5167if test $ac_cv_header_stdc = yes; then
5168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#include <stdlib.h>
5176
5177_ACEOF
5178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "free" >/dev/null 2>&1; then
5180 :
5181else
5182 ac_cv_header_stdc=no
5183fi
5184rm -f conftest*
5185
5186fi
5187
5188if test $ac_cv_header_stdc = yes; then
5189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5190 if test "$cross_compiling" = yes; then
5191 :
5192else
5193 cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h. */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h. */
5199#include <ctype.h>
5200#include <stdlib.h>
5201#if ((' ' & 0x0FF) == 0x020)
5202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204#else
5205# define ISLOWER(c) \
5206 (('a' <= (c) && (c) <= 'i') \
5207 || ('j' <= (c) && (c) <= 'r') \
5208 || ('s' <= (c) && (c) <= 'z'))
5209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5210#endif
5211
5212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213int
5214main ()
5215{
5216 int i;
5217 for (i = 0; i < 256; i++)
5218 if (XOR (islower (i), ISLOWER (i))
5219 || toupper (i) != TOUPPER (i))
5220 return 2;
5221 return 0;
5222}
5223_ACEOF
5224rm -f conftest$ac_exeext
5225if { (ac_try="$ac_link"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_link") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5235 { (case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5238esac
5239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 (eval "$ac_try") 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 :
5245else
5246 echo "$as_me: program exited with status $ac_status" >&5
5247echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
5250( exit $ac_status )
5251ac_cv_header_stdc=no
5252fi
5253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5254fi
5255
5256
5257fi
5258fi
5259{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5260echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5261if test $ac_cv_header_stdc = yes; then
5262
5263cat >>confdefs.h <<\_ACEOF
5264#define STDC_HEADERS 1
5265_ACEOF
5266
5267fi
5268
5269# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5280 inttypes.h stdint.h unistd.h
5281do
5282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288 cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
5294$ac_includes_default
5295
5296#include <$ac_header>
5297_ACEOF
5298rm -f conftest.$ac_objext
5299if { (ac_try="$ac_compile"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_cxx_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 eval "$as_ac_Header=yes"
5316else
5317 echo "$as_me: failed program was:" >&5
5318sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 eval "$as_ac_Header=no"
5321fi
5322
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324fi
5325ac_res=`eval echo '${'$as_ac_Header'}'`
5326 { echo "$as_me:$LINENO: result: $ac_res" >&5
5327echo "${ECHO_T}$ac_res" >&6; }
5328if test `eval echo '${'$as_ac_Header'}'` = yes; then
5329 cat >>confdefs.h <<_ACEOF
5330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5331_ACEOF
5332
5333fi
5334
5335done
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5346do
5347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5352 echo $ECHO_N "(cached) $ECHO_C" >&6
5353fi
5354ac_res=`eval echo '${'$as_ac_Header'}'`
5355 { echo "$as_me:$LINENO: result: $ac_res" >&5
5356echo "${ECHO_T}$ac_res" >&6; }
5357else
5358 # Is the header compilable?
5359{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5361cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
5367$ac_includes_default
5368#include <$ac_header>
5369_ACEOF
5370rm -f conftest.$ac_objext
5371if { (ac_try="$ac_compile"
5372case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375esac
5376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compile") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && {
5384 test -z "$ac_cxx_werror_flag" ||
5385 test ! -s conftest.err
5386 } && test -s conftest.$ac_objext; then
5387 ac_header_compiler=yes
5388else
5389 echo "$as_me: failed program was:" >&5
5390sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 ac_header_compiler=no
5393fi
5394
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5397echo "${ECHO_T}$ac_header_compiler" >&6; }
5398
5399# Is the header present?
5400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5402cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408#include <$ac_header>
5409_ACEOF
5410if { (ac_try="$ac_cpp conftest.$ac_ext"
5411case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null && {
5423 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5424 test ! -s conftest.err
5425 }; then
5426 ac_header_preproc=yes
5427else
5428 echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
5431 ac_header_preproc=no
5432fi
5433
5434rm -f conftest.err conftest.$ac_ext
5435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5436echo "${ECHO_T}$ac_header_preproc" >&6; }
5437
5438# So? What about this header?
5439case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5440 yes:no: )
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5445 ac_header_preproc=yes
5446 ;;
5447 no:yes:* )
5448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5460
5461 ;;
5462esac
5463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5467else
5468 eval "$as_ac_Header=\$ac_header_preproc"
5469fi
5470ac_res=`eval echo '${'$as_ac_Header'}'`
5471 { echo "$as_me:$LINENO: result: $ac_res" >&5
5472echo "${ECHO_T}$ac_res" >&6; }
5473
5474fi
5475if test `eval echo '${'$as_ac_Header'}'` = yes; then
5476 cat >>confdefs.h <<_ACEOF
5477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478_ACEOF
5479
5480fi
5481
5482done
5483
5484
5485
5486
5487
5488
5489
5490
5491for ac_func in inotify_init epoll_ctl kqueue port_create poll select
5492do
5493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498else
5499 cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5507#define $ac_func innocuous_$ac_func
5508
5509/* System header to define __stub macros and hopefully few prototypes,
5510 which can conflict with char $ac_func (); below.
5511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 <limits.h> exists even on freestanding compilers. */
5513
5514#ifdef __STDC__
5515# include <limits.h>
5516#else
5517# include <assert.h>
5518#endif
5519
5520#undef $ac_func
5521
5522/* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
5525#ifdef __cplusplus
5526extern "C"
5527#endif
5528char $ac_func ();
5529/* The GNU C library defines this for functions which it implements
5530 to always fail with ENOSYS. Some functions are actually named
5531 something starting with __ and the normal name is an alias. */
5532#if defined __stub_$ac_func || defined __stub___$ac_func
5533choke me
5534#endif
5535
5536int
5537main ()
5538{
5539return $ac_func ();
5540 ;
5541 return 0;
5542}
5543_ACEOF
5544rm -f conftest.$ac_objext conftest$ac_exeext
5545if { (ac_try="$ac_link"
5546case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549esac
5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_link") 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } && {
5558 test -z "$ac_cxx_werror_flag" ||
5559 test ! -s conftest.err
5560 } && test -s conftest$ac_exeext &&
5561 $as_test_x conftest$ac_exeext; then
5562 eval "$as_ac_var=yes"
5563else
5564 echo "$as_me: failed program was:" >&5
5565sed 's/^/| /' conftest.$ac_ext >&5
5566
5567 eval "$as_ac_var=no"
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5571 conftest$ac_exeext conftest.$ac_ext
5572fi
5573ac_res=`eval echo '${'$as_ac_var'}'`
5574 { echo "$as_me:$LINENO: result: $ac_res" >&5
5575echo "${ECHO_T}$ac_res" >&6; }
5576if test `eval echo '${'$as_ac_var'}'` = yes; then
5577 cat >>confdefs.h <<_ACEOF
5578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5579_ACEOF
5580
5581fi
5582done
5583
5584
5585{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5586echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5587if test "${ac_cv_func_clock_gettime+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590 cat >conftest.$ac_ext <<_ACEOF
5591/* confdefs.h. */
5592_ACEOF
5593cat confdefs.h >>conftest.$ac_ext
5594cat >>conftest.$ac_ext <<_ACEOF
5595/* end confdefs.h. */
5596/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5598#define clock_gettime innocuous_clock_gettime
5599
5600/* System header to define __stub macros and hopefully few prototypes,
5601 which can conflict with char clock_gettime (); below.
5602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5603 <limits.h> exists even on freestanding compilers. */
5604
5605#ifdef __STDC__
5606# include <limits.h>
5607#else
5608# include <assert.h>
5609#endif
5610
5611#undef clock_gettime
5612
5613/* Override any GCC internal prototype to avoid an error.
5614 Use char because int might match the return type of a GCC
5615 builtin and then its argument prototype would still apply. */
5616#ifdef __cplusplus
5617extern "C"
5618#endif
5619char clock_gettime ();
5620/* The GNU C library defines this for functions which it implements
5621 to always fail with ENOSYS. Some functions are actually named
5622 something starting with __ and the normal name is an alias. */
5623#if defined __stub_clock_gettime || defined __stub___clock_gettime
5624choke me
5625#endif
5626
5627int
5628main ()
5629{
5630return clock_gettime ();
5631 ;
5632 return 0;
5633}
5634_ACEOF
5635rm -f conftest.$ac_objext conftest$ac_exeext
5636if { (ac_try="$ac_link"
5637case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640esac
5641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642 (eval "$ac_link") 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && {
5649 test -z "$ac_cxx_werror_flag" ||
5650 test ! -s conftest.err
5651 } && test -s conftest$ac_exeext &&
5652 $as_test_x conftest$ac_exeext; then
5653 ac_cv_func_clock_gettime=yes
5654else
5655 echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658 ac_cv_func_clock_gettime=no
5659fi
5660
5661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5662 conftest$ac_exeext conftest.$ac_ext
5663fi
5664{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5665echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5666if test $ac_cv_func_clock_gettime = yes; then
5667 :
5668else
5669
5670 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5671
5672{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5673echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5674if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677 ac_check_lib_save_LIBS=$LIBS
5678LIBS="-lrt $LIBS"
5679cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h. */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h. */
5685
5686/* Override any GCC internal prototype to avoid an error.
5687 Use char because int might match the return type of a GCC
5688 builtin and then its argument prototype would still apply. */
5689#ifdef __cplusplus
5690extern "C"
5691#endif
5692char clock_gettime ();
5693int
5694main ()
5695{
5696return clock_gettime ();
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext conftest$ac_exeext
5702if { (ac_try="$ac_link"
5703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_link") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && {
5715 test -z "$ac_cxx_werror_flag" ||
5716 test ! -s conftest.err
5717 } && test -s conftest$ac_exeext &&
5718 $as_test_x conftest$ac_exeext; then
5719 ac_cv_lib_rt_clock_gettime=yes
5720else
5721 echo "$as_me: failed program was:" >&5
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
5724 ac_cv_lib_rt_clock_gettime=no
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729LIBS=$ac_check_lib_save_LIBS
5730fi
5731{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5732echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5733if test $ac_cv_lib_rt_clock_gettime = yes; then
5734 cat >>confdefs.h <<_ACEOF
5735#define HAVE_LIBRT 1
5736_ACEOF
5737
5738 LIBS="-lrt $LIBS"
5739
5740fi
5741
5742 unset ac_cv_func_clock_gettime
5743
5744for ac_func in clock_gettime
5745do
5746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5748echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5749if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5751else
5752 cat >conftest.$ac_ext <<_ACEOF
5753/* confdefs.h. */
5754_ACEOF
5755cat confdefs.h >>conftest.$ac_ext
5756cat >>conftest.$ac_ext <<_ACEOF
5757/* end confdefs.h. */
5758/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5760#define $ac_func innocuous_$ac_func
5761
5762/* System header to define __stub macros and hopefully few prototypes,
5763 which can conflict with char $ac_func (); below.
5764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5765 <limits.h> exists even on freestanding compilers. */
5766
5767#ifdef __STDC__
5768# include <limits.h>
5769#else
5770# include <assert.h>
5771#endif
5772
5773#undef $ac_func
5774
5775/* Override any GCC internal prototype to avoid an error.
5776 Use char because int might match the return type of a GCC
5777 builtin and then its argument prototype would still apply. */
5778#ifdef __cplusplus
5779extern "C"
5780#endif
5781char $ac_func ();
5782/* The GNU C library defines this for functions which it implements
5783 to always fail with ENOSYS. Some functions are actually named
5784 something starting with __ and the normal name is an alias. */
5785#if defined __stub_$ac_func || defined __stub___$ac_func
5786choke me
5787#endif
5788
5789int
5790main ()
5791{
5792return $ac_func ();
5793 ;
5794 return 0;
5795}
5796_ACEOF
5797rm -f conftest.$ac_objext conftest$ac_exeext
5798if { (ac_try="$ac_link"
5799case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_link") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_cxx_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest$ac_exeext &&
5814 $as_test_x conftest$ac_exeext; then
5815 eval "$as_ac_var=yes"
5816else
5817 echo "$as_me: failed program was:" >&5
5818sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 eval "$as_ac_var=no"
5821fi
5822
5823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5824 conftest$ac_exeext conftest.$ac_ext
5825fi
5826ac_res=`eval echo '${'$as_ac_var'}'`
5827 { echo "$as_me:$LINENO: result: $ac_res" >&5
5828echo "${ECHO_T}$ac_res" >&6; }
5829if test `eval echo '${'$as_ac_var'}'` = yes; then
5830 cat >>confdefs.h <<_ACEOF
5831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5832_ACEOF
5833
5834fi
5835done
5836
5837 fi
5838
5839fi
5840
5841
5842
5843{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
5844echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
5845if test "${ac_cv_lib_m_ceil+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848 ac_check_lib_save_LIBS=$LIBS
5849LIBS="-lm $LIBS"
5850cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h. */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h. */
5856
5857/* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5860#ifdef __cplusplus
5861extern "C"
5862#endif
5863char ceil ();
5864int
5865main ()
5866{
5867return ceil ();
5868 ;
5869 return 0;
5870}
5871_ACEOF
5872rm -f conftest.$ac_objext conftest$ac_exeext
5873if { (ac_try="$ac_link"
5874case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_link") 2>conftest.er1
5880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_cxx_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest$ac_exeext &&
5889 $as_test_x conftest$ac_exeext; then
5890 ac_cv_lib_m_ceil=yes
5891else
5892 echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_cv_lib_m_ceil=no
5896fi
5897
5898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5899 conftest$ac_exeext conftest.$ac_ext
5900LIBS=$ac_check_lib_save_LIBS
5901fi
5902{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5903echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5904if test $ac_cv_lib_m_ceil = yes; then
5905 cat >>confdefs.h <<_ACEOF
5906#define HAVE_LIBM 1
5907_ACEOF
5908
5909 LIBS="-lm $LIBS"
5910
5911fi
5912
5913
5914
5915
4877 5916
4878 5917
4879 5918
4880# Extract the first word of "tic", so it can be a program name with args. 5919# Extract the first word of "tic", so it can be a program name with args.
4881set dummy tic; ac_word=$2 5920set dummy tic; ac_word=$2
4902 fi 5941 fi
4903done 5942done
4904done 5943done
4905IFS=$as_save_IFS 5944IFS=$as_save_IFS
4906 5945
5946 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4907 ;; 5947 ;;
4908esac 5948esac
4909fi 5949fi
4910TIC=$ac_cv_path_TIC 5950TIC=$ac_cv_path_TIC
4911if test -n "$TIC"; then 5951if test -n "$TIC"; then
4914else 5954else
4915 { echo "$as_me:$LINENO: result: no" >&5 5955 { echo "$as_me:$LINENO: result: no" >&5
4916echo "${ECHO_T}no" >&6; } 5956echo "${ECHO_T}no" >&6; }
4917fi 5957fi
4918 5958
4919
4920
4921
4922
4923ac_ext=cpp
4924ac_cpp='$CXXCPP $CPPFLAGS'
4925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4928{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4929echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4930if test -z "$CXXCPP"; then
4931 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934 # Double quotes because CXXCPP needs to be expanded
4935 for CXXCPP in "$CXX -E" "/lib/cpp"
4936 do
4937 ac_preproc_ok=false
4938for ac_cxx_preproc_warn_flag in '' yes
4939do
4940 # Use a header file that comes with gcc, so configuring glibc
4941 # with a fresh cross-compiler works.
4942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943 # <limits.h> exists even on freestanding compilers.
4944 # On the NeXT, cc -E runs the code through the compiler's parser,
4945 # not just through cpp. "Syntax error" is here to catch this case.
4946 cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
4952#ifdef __STDC__
4953# include <limits.h>
4954#else
4955# include <assert.h>
4956#endif
4957 Syntax error
4958_ACEOF
4959if { (ac_try="$ac_cpp conftest.$ac_ext"
4960case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963esac
4964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4966 ac_status=$?
4967 grep -v '^ *+' conftest.er1 >conftest.err
4968 rm -f conftest.er1
4969 cat conftest.err >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } >/dev/null && {
4972 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4973 test ! -s conftest.err
4974 }; then
4975 :
4976else
4977 echo "$as_me: failed program was:" >&5
4978sed 's/^/| /' conftest.$ac_ext >&5
4979
4980 # Broken: fails on valid input.
4981continue
4982fi
4983
4984rm -f conftest.err conftest.$ac_ext
4985
4986 # OK, works on sane cases. Now check whether nonexistent headers
4987 # can be detected and how.
4988 cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994#include <ac_nonexistent.h>
4995_ACEOF
4996if { (ac_try="$ac_cpp conftest.$ac_ext"
4997case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000esac
5001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5003 ac_status=$?
5004 grep -v '^ *+' conftest.er1 >conftest.err
5005 rm -f conftest.er1
5006 cat conftest.err >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); } >/dev/null && {
5009 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5010 test ! -s conftest.err
5011 }; then
5012 # Broken: success on invalid input.
5013continue
5014else
5015 echo "$as_me: failed program was:" >&5
5016sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 # Passes both tests.
5019ac_preproc_ok=:
5020break
5021fi
5022
5023rm -f conftest.err conftest.$ac_ext
5024
5025done
5026# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027rm -f conftest.err conftest.$ac_ext
5028if $ac_preproc_ok; then
5029 break
5030fi
5031
5032 done
5033 ac_cv_prog_CXXCPP=$CXXCPP
5034
5035fi
5036 CXXCPP=$ac_cv_prog_CXXCPP
5037else
5038 ac_cv_prog_CXXCPP=$CXXCPP
5039fi
5040{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5041echo "${ECHO_T}$CXXCPP" >&6; }
5042ac_preproc_ok=false
5043for ac_cxx_preproc_warn_flag in '' yes
5044do
5045 # Use a header file that comes with gcc, so configuring glibc
5046 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#ifdef __STDC__
5058# include <limits.h>
5059#else
5060# include <assert.h>
5061#endif
5062 Syntax error
5063_ACEOF
5064if { (ac_try="$ac_cpp conftest.$ac_ext"
5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
5069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); } >/dev/null && {
5077 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5078 test ! -s conftest.err
5079 }; then
5080 :
5081else
5082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 # Broken: fails on valid input.
5086continue
5087fi
5088
5089rm -f conftest.err conftest.$ac_ext
5090
5091 # OK, works on sane cases. Now check whether nonexistent headers
5092 # can be detected and how.
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099#include <ac_nonexistent.h>
5100_ACEOF
5101if { (ac_try="$ac_cpp conftest.$ac_ext"
5102case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5105esac
5106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5108 ac_status=$?
5109 grep -v '^ *+' conftest.er1 >conftest.err
5110 rm -f conftest.er1
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null && {
5114 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5115 test ! -s conftest.err
5116 }; then
5117 # Broken: success on invalid input.
5118continue
5119else
5120 echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 # Passes both tests.
5124ac_preproc_ok=:
5125break
5126fi
5127
5128rm -f conftest.err conftest.$ac_ext
5129
5130done
5131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132rm -f conftest.err conftest.$ac_ext
5133if $ac_preproc_ok; then
5134 :
5135else
5136 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5137See \`config.log' for more details." >&5
5138echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5139See \`config.log' for more details." >&2;}
5140 { (exit 1); exit 1; }; }
5141fi
5142
5143ac_ext=cpp
5144ac_cpp='$CXXCPP $CPPFLAGS'
5145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5148 5959
5149 5960
5150{ echo "$as_me:$LINENO: checking for X" >&5 5961{ echo "$as_me:$LINENO: checking for X" >&5
5151echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5962echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5152 5963
6460 LDFLAGS=$ac_save_LDFLAGS 7271 LDFLAGS=$ac_save_LDFLAGS
6461 7272
6462fi 7273fi
6463 7274
6464 7275
6465
6466LIBAFTERIMAGE_CFLAGS= 7276AFTERIMAGE_CFLAGS=
6467AFTERIMAGE_LIBS= 7277AFTERIMAGE_LIBS=
6468have_afterimage= 7278AFTERIMAGE_VERSION=
6469 7279
6470if test x$support_afterimage = xyes; then 7280if test x$support_afterimage = xyes; then
6471 support_afterimage=no 7281 support_afterimage=no
6472 7282
6473 if test "x$afterimage_config" = "x" ; then 7283 if test "x$afterimage_config" = "x" ; then
6511echo "${ECHO_T}no" >&6; } 7321echo "${ECHO_T}no" >&6; }
6512fi 7322fi
6513 7323
6514 7324
6515 fi 7325 fi
6516 7326 if test "x$afterimage_config" != "xno" ; then
6517 { echo "$as_me:$LINENO: checking for libAfterImage" >&5 7327 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6518echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6; } 7328echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6519 if $afterimage_config --version >/dev/null 2>&1 ; then 7329 xAFTERIMAGE_VERSION=`$afterimage_config --version`
7330 if test -n "$xAFTERIMAGE_VERSION" ; then
6520 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 7331 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6521 AFTERIMAGE_LIBS=`$afterimage_config --libs` 7332 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6522 if test "x$AFTERIMAGE_LIBS" != "x"; then 7333 if test "x$xAFTERIMAGE_LIBS" != "x"; then
7334 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
7335 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
7336 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6523 support_afterimage=yes 7337 support_afterimage=yes
6524 fi 7338 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6525 fi 7339 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6526 7340 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6527 if test "x$support_afterimage" = "xyes"; then
6528 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6529echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6530 else
6531 { echo "$as_me:$LINENO: result: no" >&5
6532echo "${ECHO_T}no" >&6; }
6533 fi
6534fi
6535
6536if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6537
6538
6539
6540# Initialize some more variables set by options.
6541# The variables have the same names as the options, with
6542# dashes changed to underlines.
6543
6544# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6545# paths, otherwise set no_xpm=yes.
6546# Uses ac_ vars as temps to allow command line to override cache and checks.
6547{ echo "$as_me:$LINENO: checking for libXpm" >&5
6548echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6549
6550
6551# Check whether --with-xpm_includes was given.
6552if test "${with_xpm_includes+set}" = set; then
6553 withval=$with_xpm_includes; xpm_includes="$withval"
6554else
6555 xpm_includes=NO
6556fi
6557
6558
6559# Check whether --with-xpm_library was given.
6560if test "${with_xpm_library+set}" = set; then
6561 withval=$with_xpm_library; xpm_libraries="$withval"
6562else
6563 xpm_libraries=NO
6564fi
6565
6566
6567# --without-xpm overrides everything else, but does not touch the cache.
6568
6569# Check whether --with-xpm was given.
6570if test "${with_xpm+set}" = set; then
6571 withval=$with_xpm;
6572fi
6573
6574if test "$with_xpm" = no; then
6575 have_xpm=disabled
6576else
6577 if test "${ac_cv_have_xpm+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580
6581 vt_xpm_include_X11=no
6582 if test -n "$xpm_includes"; then
6583 vt_xpm_includes=$xpm_includes
6584 else
6585 vt_xpm_includes=NO
6586 fi
6587 if test -n "$xpm_libraries"; then
6588 vt_xpm_libraries=$xpm_libraries
6589 else
6590 vt_xpm_libraries=NO
6591 fi
6592
6593 if test "$vt_xpm_includes" = NO; then
6594 # Guess where to find xpm.h
6595
6596ac_save_CPPFLAGS="$CPPFLAGS"
6597CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6598
6599 # First, try using that file with no special directory specified.
6600cat >conftest.$ac_ext <<_ACEOF
6601/* confdefs.h. */
6602_ACEOF
6603cat confdefs.h >>conftest.$ac_ext
6604cat >>conftest.$ac_ext <<_ACEOF
6605/* end confdefs.h. */
6606#include <X11/xpm.h>
6607_ACEOF
6608if { (ac_try="$ac_cpp conftest.$ac_ext"
6609case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612esac
6613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null && {
6621 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6622 test ! -s conftest.err
6623 }; then
6624 # We can compile using X headers with no special include directory.
6625vt_xpm_includes=
6626vt_xpm_include_X11=yes
6627else
6628 echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 CPPFLAGS="$ac_save_CPPFLAGS"
6632# Look for the header file in a standard set of common directories.
6633 for ac_dir in \
6634 /usr/X11/include \
6635 /usr/X11R6/include \
6636 /usr/X11R5/include \
6637 /usr/X11R4/include \
6638 \
6639 /usr/include/X11 \
6640 /usr/include/X11R6 \
6641 /usr/include/X11R5 \
6642 /usr/include/X11R4 \
6643 \
6644 /usr/local/X11/include \
6645 /usr/local/X11R6/include \
6646 /usr/local/X11R5/include \
6647 /usr/local/X11R4/include \
6648 \
6649 /usr/local/include/X11 \
6650 /usr/local/include/X11R6 \
6651 /usr/local/include/X11R5 \
6652 /usr/local/include/X11R4 \
6653 \
6654 /usr/X386/include \
6655 /usr/x386/include \
6656 /usr/XFree86/include/X11 \
6657 \
6658 /usr/include \
6659 /usr/local/include \
6660 /usr/unsupported/include \
6661 /usr/athena/include \
6662 /usr/local/x11r5/include \
6663 /usr/lpp/Xamples/include \
6664 \
6665 /usr/openwin/include \
6666 /usr/openwin/share/include \
6667 ; \
6668 do
6669 if test -r "$ac_dir/X11/xpm.h"; then
6670 vt_xpm_includes="$ac_dir"
6671 vt_xpm_include_X11=yes
6672 break
6673 else
6674 if test -r "$ac_dir/xpm.h"; then
6675 vt_xpm_includes=$ac_dir
6676 break
6677 fi
6678 fi
6679 done
6680fi
6681
6682rm -f conftest.err conftest.$ac_ext
6683fi
6684
6685if test "$vt_xpm_libraries" = NO; then
6686 # Check for the libraries.
6687
6688 # See if we find them without any special options.
6689 # Don't add to $LIBS permanently.
6690 ac_save_LIBS="$LIBS"
6691 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6692cat >conftest.$ac_ext <<_ACEOF
6693/* confdefs.h. */
6694_ACEOF
6695cat confdefs.h >>conftest.$ac_ext
6696cat >>conftest.$ac_ext <<_ACEOF
6697/* end confdefs.h. */
6698
6699int
6700main ()
6701{
6702XpmReadFileToPixmap()
6703 ;
6704 return 0;
6705}
6706_ACEOF
6707rm -f conftest.$ac_objext conftest$ac_exeext
6708if { (ac_try="$ac_link"
6709case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712esac
6713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_link") 2>conftest.er1
6715 ac_status=$?
6716 grep -v '^ *+' conftest.er1 >conftest.err
6717 rm -f conftest.er1
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_cxx_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest$ac_exeext &&
6724 $as_test_x conftest$ac_exeext; then
6725 LIBS="$ac_save_LIBS"
6726# We can link libXpm with no special library path.
6727vt_xpm_libraries=
6728else
6729 echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 LIBS="$ac_save_LIBS"
6733# First see if replacing the include by lib works.
6734for ac_dir in \
6735 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6736 /usr/X11/lib \
6737 /usr/X11R6/lib \
6738 /usr/X11R5/lib \
6739 /usr/X11R4/lib \
6740 \
6741 /usr/lib/X11 \
6742 /usr/lib/X11R6 \
6743 /usr/lib/X11R5 \
6744 /usr/lib/X11R4 \
6745 \
6746 /usr/local/X11/lib \
6747 /usr/local/X11R6/lib \
6748 /usr/local/X11R5/lib \
6749 /usr/local/X11R4/lib \
6750 \
6751 /usr/local/lib/X11 \
6752 /usr/local/lib/X11R6 \
6753 /usr/local/lib/X11R5 \
6754 /usr/local/lib/X11R4 \
6755 \
6756 /usr/X386/lib \
6757 /usr/x386/lib \
6758 /usr/XFree86/lib/X11 \
6759 \
6760 /usr/lib \
6761 /usr/local/lib \
6762 /usr/unsupported/lib \
6763 /usr/athena/lib \
6764 /usr/local/x11r5/lib \
6765 /usr/lpp/Xamples/lib \
6766 \
6767 /usr/openwin/lib \
6768 /usr/openwin/share/lib \
6769 ; \
6770do
6771 for ac_extension in a so sl; do
6772 if test -r $ac_dir/libXpm.$ac_extension; then
6773 vt_xpm_libraries=$ac_dir
6774 break 2
6775 fi
6776 done
6777done
6778fi
6779
6780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6781 conftest$ac_exeext conftest.$ac_ext
6782fi
6783
6784
6785 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6786 ac_cv_have_xpm="have_xpm=no"
6787 else
6788 ac_cv_have_xpm="have_xpm=yes \
6789 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6790 vt_xpm_include_X11=$vt_xpm_include_X11"
6791 fi
6792fi
6793 eval "$ac_cv_have_xpm"
6794fi
6795
6796if test "$have_xpm" != yes; then
6797 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6798echo "${ECHO_T}$have_xpm" >&6; }
6799 no_xpm=yes
6800else
6801 if test "$xpm_includes" != NO; then
6802 if test "$xpm_includes" = "$vt_xpm_includes"; then
6803 if test -r "$xpm_includes/X11/xpm.h"; then
6804 vt_xpm_include_X11=yes
6805 fi
6806 else
6807 vt_xpm_include_X11=no
6808 if test -z "$xpm_includes"; then
6809 cat >conftest.$ac_ext <<_ACEOF
6810/* confdefs.h. */
6811_ACEOF
6812cat confdefs.h >>conftest.$ac_ext
6813cat >>conftest.$ac_ext <<_ACEOF
6814/* end confdefs.h. */
6815#include <X11/xpm.h>
6816_ACEOF
6817if { (ac_try="$ac_cpp conftest.$ac_ext"
6818case "(($ac_try" in
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6821esac
6822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev/null && {
6830 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6831 test ! -s conftest.err
6832 }; then
6833 vt_xpm_include_X11=yes
6834else
6835 echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838
6839fi
6840
6841rm -f conftest.err conftest.$ac_ext
6842 else
6843 if test -r "$xpm_includes/X11/xpm.h"; then
6844 vt_xpm_include_X11=yes
6845 fi 7341 fi
6846 fi 7342 fi
6847 fi 7343 fi
6848 vt_xpm_includes=$xpm_includes 7344 if test "x$support_afterimage" = "xyes"; then
7345 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
7346echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
7347 else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
7350 fi
6849 fi 7351 fi
6850 if test "x$xpm_libraries" != xNO; then
6851 vt_xpm_libraries=$xpm_libraries
6852 fi
6853 # Update the cache value to reflect the command line values.
6854 ac_cv_have_xpm="have_xpm=yes \
6855 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6856 vt_xpm_include_X11=$vt_xpm_include_X11"
6857 eval "$ac_cv_have_xpm"
6858 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6859echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6860 if test -n "$vt_xpm_includes"; then
6861 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6862 fi
6863 if test -n "$vt_xpm_includes"; then
6864 XPM_CFLAGS="-I$vt_xpm_includes"
6865 fi
6866 XPM_LIBS="-lXpm"
6867 if test -n "$vt_xpm_libraries"; then
6868 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6869 fi
6870 if test "x$vt_xpm_include_X11" = xyes; then
6871
6872cat >>confdefs.h <<\_ACEOF
6873#define XPM_INC_X11 1
6874_ACEOF
6875
6876 fi
6877fi 7352fi
6878
6879
6880
6881
6882
6883 if test x$no_xpm = xyes; then
6884 support_xpm=needsmanualspecification
6885 fi
6886fi
6887
6888{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6889echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6890if test "${ac_cv_header_sys_wait_h+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892else
6893 cat >conftest.$ac_ext <<_ACEOF
6894/* confdefs.h. */
6895_ACEOF
6896cat confdefs.h >>conftest.$ac_ext
6897cat >>conftest.$ac_ext <<_ACEOF
6898/* end confdefs.h. */
6899#include <sys/types.h>
6900#include <sys/wait.h>
6901#ifndef WEXITSTATUS
6902# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6903#endif
6904#ifndef WIFEXITED
6905# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6906#endif
6907
6908int
6909main ()
6910{
6911 int s;
6912 wait (&s);
6913 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6914 ;
6915 return 0;
6916}
6917_ACEOF
6918rm -f conftest.$ac_objext
6919if { (ac_try="$ac_compile"
6920case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923esac
6924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_compile") 2>conftest.er1
6926 ac_status=$?
6927 grep -v '^ *+' conftest.er1 >conftest.err
6928 rm -f conftest.er1
6929 cat conftest.err >&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); } && {
6932 test -z "$ac_cxx_werror_flag" ||
6933 test ! -s conftest.err
6934 } && test -s conftest.$ac_objext; then
6935 ac_cv_header_sys_wait_h=yes
6936else
6937 echo "$as_me: failed program was:" >&5
6938sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 ac_cv_header_sys_wait_h=no
6941fi
6942
6943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944fi
6945{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6946echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6947if test $ac_cv_header_sys_wait_h = yes; then
6948
6949cat >>confdefs.h <<\_ACEOF
6950#define HAVE_SYS_WAIT_H 1
6951_ACEOF
6952
6953fi
6954
6955{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6956echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6957if test "${ac_cv_header_stdc+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960 cat >conftest.$ac_ext <<_ACEOF
6961/* confdefs.h. */
6962_ACEOF
6963cat confdefs.h >>conftest.$ac_ext
6964cat >>conftest.$ac_ext <<_ACEOF
6965/* end confdefs.h. */
6966#include <stdlib.h>
6967#include <stdarg.h>
6968#include <string.h>
6969#include <float.h>
6970
6971int
6972main ()
6973{
6974
6975 ;
6976 return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext
6980if { (ac_try="$ac_compile"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
6985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_cxx_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_stdc=yes
6997else
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_cv_header_stdc=no
7002fi
7003
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005
7006if test $ac_cv_header_stdc = yes; then
7007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7008 cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
7014#include <string.h>
7015
7016_ACEOF
7017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018 $EGREP "memchr" >/dev/null 2>&1; then
7019 :
7020else
7021 ac_cv_header_stdc=no
7022fi
7023rm -f conftest*
7024
7025fi
7026
7027if test $ac_cv_header_stdc = yes; then
7028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035#include <stdlib.h>
7036
7037_ACEOF
7038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "free" >/dev/null 2>&1; then
7040 :
7041else
7042 ac_cv_header_stdc=no
7043fi
7044rm -f conftest*
7045
7046fi
7047
7048if test $ac_cv_header_stdc = yes; then
7049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7050 if test "$cross_compiling" = yes; then
7051 :
7052else
7053 cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059#include <ctype.h>
7060#include <stdlib.h>
7061#if ((' ' & 0x0FF) == 0x020)
7062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064#else
7065# define ISLOWER(c) \
7066 (('a' <= (c) && (c) <= 'i') \
7067 || ('j' <= (c) && (c) <= 'r') \
7068 || ('s' <= (c) && (c) <= 'z'))
7069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070#endif
7071
7072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7073int
7074main ()
7075{
7076 int i;
7077 for (i = 0; i < 256; i++)
7078 if (XOR (islower (i), ISLOWER (i))
7079 || toupper (i) != TOUPPER (i))
7080 return 2;
7081 return 0;
7082}
7083_ACEOF
7084rm -f conftest$ac_exeext
7085if { (ac_try="$ac_link"
7086case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089esac
7090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_link") 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7095 { (case "(($ac_try" in
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7098esac
7099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_try") 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7104 :
7105else
7106 echo "$as_me: program exited with status $ac_status" >&5
7107echo "$as_me: failed program was:" >&5
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7110( exit $ac_status )
7111ac_cv_header_stdc=no
7112fi
7113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7114fi
7115
7116
7117fi
7118fi
7119{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7120echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7121if test $ac_cv_header_stdc = yes; then
7122
7123cat >>confdefs.h <<\_ACEOF
7124#define STDC_HEADERS 1
7125_ACEOF
7126
7127fi
7128
7129# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7140 inttypes.h stdint.h unistd.h
7141do
7142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7145if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147else
7148 cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h. */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h. */
7154$ac_includes_default
7155
7156#include <$ac_header>
7157_ACEOF
7158rm -f conftest.$ac_objext
7159if { (ac_try="$ac_compile"
7160case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163esac
7164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_cxx_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 eval "$as_ac_Header=yes"
7176else
7177 echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 eval "$as_ac_Header=no"
7181fi
7182
7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184fi
7185ac_res=`eval echo '${'$as_ac_Header'}'`
7186 { echo "$as_me:$LINENO: result: $ac_res" >&5
7187echo "${ECHO_T}$ac_res" >&6; }
7188if test `eval echo '${'$as_ac_Header'}'` = yes; then
7189 cat >>confdefs.h <<_ACEOF
7190#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7191_ACEOF
7192
7193fi
7194
7195done
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 7353
7207 7354
7208 7355
7209 7356
7210 7357
7211 7358
7212 7359
7213 7360
7214 7361
7215for ac_header in \ 7362for ac_header in \
7216 assert.h \
7217 fcntl.h \
7218 stdarg.h \
7219 stdlib.h \
7220 string.h \
7221 termios.h \
7222 unistd.h \
7223 sys/byteorder.h \ 7363 sys/byteorder.h \
7224 sys/ioctl.h \ 7364 sys/ioctl.h \
7225 sys/select.h \
7226 sys/sockio.h \ 7365 sys/sockio.h \
7227 sys/strredir.h \ 7366 sys/strredir.h \
7228 sys/time.h \
7229 stdint.h \ 7367 stdint.h \
7230 wchar.h \ 7368 wchar.h \
7231 cwchar \ 7369 cwchar \
7232 clocale \ 7370 clocale \
7233 7371
7368fi 7506fi
7369 7507
7370done 7508done
7371 7509
7372 7510
7373{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7374echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7375if test "${ac_cv_header_time+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377else
7378 cat >conftest.$ac_ext <<_ACEOF
7379/* confdefs.h. */
7380_ACEOF
7381cat confdefs.h >>conftest.$ac_ext
7382cat >>conftest.$ac_ext <<_ACEOF
7383/* end confdefs.h. */
7384#include <sys/types.h>
7385#include <sys/time.h>
7386#include <time.h>
7387
7388int
7389main ()
7390{
7391if ((struct tm *) 0)
7392return 0;
7393 ;
7394 return 0;
7395}
7396_ACEOF
7397rm -f conftest.$ac_objext
7398if { (ac_try="$ac_compile"
7399case "(($ac_try" in
7400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401 *) ac_try_echo=$ac_try;;
7402esac
7403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404 (eval "$ac_compile") 2>conftest.er1
7405 ac_status=$?
7406 grep -v '^ *+' conftest.er1 >conftest.err
7407 rm -f conftest.er1
7408 cat conftest.err >&5
7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410 (exit $ac_status); } && {
7411 test -z "$ac_cxx_werror_flag" ||
7412 test ! -s conftest.err
7413 } && test -s conftest.$ac_objext; then
7414 ac_cv_header_time=yes
7415else
7416 echo "$as_me: failed program was:" >&5
7417sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_header_time=no
7420fi
7421
7422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423fi
7424{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7425echo "${ECHO_T}$ac_cv_header_time" >&6; }
7426if test $ac_cv_header_time = yes; then
7427
7428cat >>confdefs.h <<\_ACEOF
7429#define TIME_WITH_SYS_TIME 1
7430_ACEOF
7431
7432fi
7433
7434
7435{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5 7511{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7436echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; } 7512echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7437if test "${rxvt_cv_header_sysioctl+set}" = set; then 7513if test "${rxvt_cv_header_sysioctl+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6 7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else 7515else
7443cat confdefs.h >>conftest.$ac_ext 7519cat confdefs.h >>conftest.$ac_ext
7444cat >>conftest.$ac_ext <<_ACEOF 7520cat >>conftest.$ac_ext <<_ACEOF
7445/* end confdefs.h. */ 7521/* end confdefs.h. */
7446#include <stdio.h> 7522#include <stdio.h>
7447#include <sys/ioctl.h> 7523#include <sys/ioctl.h>
7448#ifdef HAVE_TERMIOS_H
7449#include <termios.h> 7524#include <termios.h>
7450#endif 7525
7451int 7526int
7452main () 7527main ()
7453{ 7528{
7454int a = ECHO; 7529int a = ECHO;
7455 ; 7530 ;
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485fi 7560fi
7486{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 7561{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7487echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; } 7562echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7488 7563
7489if test -n "$GCC"; then
7490 LDARG="-Wl,"
7491else
7492 LDARG=""
7493fi
7494R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7495
7496ac_save_CFLAGS=$CFLAGS
7497ac_save_LIBS=$LIBS
7498CFLAGS="$CFLAGS $X_CFLAGS"
7499LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7500{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7501echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7502if test "${rxvt_cv_rpath+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505 if test "$cross_compiling" = yes; then
7506 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7507echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7508else
7509 cat >conftest.$ac_ext <<_ACEOF
7510/* confdefs.h. */
7511_ACEOF
7512cat confdefs.h >>conftest.$ac_ext
7513cat >>conftest.$ac_ext <<_ACEOF
7514/* end confdefs.h. */
7515#include <X11/Xlib.h>
7516#include <stdlib.h>
7517main()
7518{
7519 exit(0);
7520 (void) XOpenDisplay("foobar");
7521}
7522_ACEOF
7523rm -f conftest$ac_exeext
7524if { (ac_try="$ac_link"
7525case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528esac
7529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_link") 2>&5
7531 ac_status=$?
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7534 { (case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7537esac
7538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_try") 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 rxvt_cv_rpath=yes
7544else
7545 echo "$as_me: program exited with status $ac_status" >&5
7546echo "$as_me: failed program was:" >&5
7547sed 's/^/| /' conftest.$ac_ext >&5
7548
7549( exit $ac_status )
7550rxvt_cv_rpath=no
7551fi
7552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7553fi
7554
7555
7556fi
7557{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7558echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7559if test x$rxvt_cv_rpath != xyes; then
7560 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7561 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7562 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7563echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7564if test "${rxvt_cv_R+set}" = set; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7566else
7567 if test "$cross_compiling" = yes; then
7568 rxvt_cv_R=no
7569else
7570 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */
7572_ACEOF
7573cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */
7576#include <X11/Xlib.h>
7577#include <stdlib.h>
7578main()
7579{
7580 exit(0);
7581 (void) XOpenDisplay("foobar");
7582}
7583_ACEOF
7584rm -f conftest$ac_exeext
7585if { (ac_try="$ac_link"
7586case "(($ac_try" in
7587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588 *) ac_try_echo=$ac_try;;
7589esac
7590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591 (eval "$ac_link") 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7595 { (case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598esac
7599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_try") 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 rxvt_cv_R=yes
7605else
7606 echo "$as_me: program exited with status $ac_status" >&5
7607echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610( exit $ac_status )
7611rxvt_cv_R=no
7612fi
7613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7614fi
7615
7616
7617fi
7618{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7619echo "${ECHO_T}$rxvt_cv_R" >&6; }
7620 if test x$rxvt_cv_R != xyes; then
7621 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7622 fi
7623fi
7624
7625{ echo "$as_me:$LINENO: checking for XPointer" >&5 7564{ echo "$as_me:$LINENO: checking for XPointer" >&5
7626echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7565echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7627if test "${rxvt_cv_xpointer+set}" = set; then 7566if test "${rxvt_cv_xpointer+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6 7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else 7568else
7676cat >>confdefs.h <<\_ACEOF 7615cat >>confdefs.h <<\_ACEOF
7677#define HAVE_XPOINTER 1 7616#define HAVE_XPOINTER 1
7678_ACEOF 7617_ACEOF
7679 7618
7680fi 7619fi
7681LIBS=$ac_save_LIBS
7682CFLAGS=$ac_save_CFLAGS
7683 7620
7684{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7621{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7685echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7622echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7686if test "${rxvt_xlib_illegal_access+set}" = set; then 7623if test "${rxvt_xlib_illegal_access+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6 7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7742cat >>confdefs.h <<\_ACEOF 7679cat >>confdefs.h <<\_ACEOF
7743#define XLIB_ILLEGAL_ACCESS 1 7680#define XLIB_ILLEGAL_ACCESS 1
7744_ACEOF 7681_ACEOF
7745 7682
7746fi 7683fi
7747
7748{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7749echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7750if test "${ac_cv_c_const+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753 cat >conftest.$ac_ext <<_ACEOF
7754/* confdefs.h. */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h. */
7759
7760int
7761main ()
7762{
7763/* FIXME: Include the comments suggested by Paul. */
7764#ifndef __cplusplus
7765 /* Ultrix mips cc rejects this. */
7766 typedef int charset[2];
7767 const charset cs;
7768 /* SunOS 4.1.1 cc rejects this. */
7769 char const *const *pcpcc;
7770 char **ppc;
7771 /* NEC SVR4.0.2 mips cc rejects this. */
7772 struct point {int x, y;};
7773 static struct point const zero = {0,0};
7774 /* AIX XL C 1.02.0.0 rejects this.
7775 It does not let you subtract one const X* pointer from another in
7776 an arm of an if-expression whose if-part is not a constant
7777 expression */
7778 const char *g = "string";
7779 pcpcc = &g + (g ? g-g : 0);
7780 /* HPUX 7.0 cc rejects these. */
7781 ++pcpcc;
7782 ppc = (char**) pcpcc;
7783 pcpcc = (char const *const *) ppc;
7784 { /* SCO 3.2v4 cc rejects this. */
7785 char *t;
7786 char const *s = 0 ? (char *) 0 : (char const *) 0;
7787
7788 *t++ = 0;
7789 if (s) return 0;
7790 }
7791 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7792 int x[] = {25, 17};
7793 const int *foo = &x[0];
7794 ++foo;
7795 }
7796 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7797 typedef const int *iptr;
7798 iptr p = 0;
7799 ++p;
7800 }
7801 { /* AIX XL C 1.02.0.0 rejects this saying
7802 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7803 struct s { int j; const int *ap[3]; };
7804 struct s *b; b->j = 5;
7805 }
7806 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7807 const int foo = 10;
7808 if (!foo) return 0;
7809 }
7810 return !cs[0] && !zero.x;
7811#endif
7812
7813 ;
7814 return 0;
7815}
7816_ACEOF
7817rm -f conftest.$ac_objext
7818if { (ac_try="$ac_compile"
7819case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822esac
7823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_compile") 2>conftest.er1
7825 ac_status=$?
7826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } && {
7831 test -z "$ac_cxx_werror_flag" ||
7832 test ! -s conftest.err
7833 } && test -s conftest.$ac_objext; then
7834 ac_cv_c_const=yes
7835else
7836 echo "$as_me: failed program was:" >&5
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 ac_cv_c_const=no
7840fi
7841
7842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7843fi
7844{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7845echo "${ECHO_T}$ac_cv_c_const" >&6; }
7846if test $ac_cv_c_const = no; then
7847
7848cat >>confdefs.h <<\_ACEOF
7849#define const
7850_ACEOF
7851
7852fi
7853
7854{ echo "$as_me:$LINENO: checking for inline" >&5
7855echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7856if test "${ac_cv_c_inline+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859 ac_cv_c_inline=no
7860for ac_kw in inline __inline__ __inline; do
7861 cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867#ifndef __cplusplus
7868typedef int foo_t;
7869static $ac_kw foo_t static_foo () {return 0; }
7870$ac_kw foo_t foo () {return 0; }
7871#endif
7872
7873_ACEOF
7874rm -f conftest.$ac_objext
7875if { (ac_try="$ac_compile"
7876case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_cxx_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_cv_c_inline=$ac_kw
7892else
7893 echo "$as_me: failed program was:" >&5
7894sed 's/^/| /' conftest.$ac_ext >&5
7895
7896
7897fi
7898
7899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7900 test "$ac_cv_c_inline" != no && break
7901done
7902
7903fi
7904{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7905echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7906
7907
7908case $ac_cv_c_inline in
7909 inline | yes) ;;
7910 *)
7911 case $ac_cv_c_inline in
7912 no) ac_val=;;
7913 *) ac_val=$ac_cv_c_inline;;
7914 esac
7915 cat >>confdefs.h <<_ACEOF
7916#ifndef __cplusplus
7917#define inline $ac_val
7918#endif
7919_ACEOF
7920 ;;
7921esac
7922
7923
7924 7684
7925{ echo "$as_me:$LINENO: checking for mode_t" >&5 7685{ echo "$as_me:$LINENO: checking for mode_t" >&5
7926echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7686echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7927if test "${ac_cv_type_mode_t+set}" = set; then 7687if test "${ac_cv_type_mode_t+set}" = set; then
7928 echo $ECHO_N "(cached) $ECHO_C" >&6 7688 echo $ECHO_N "(cached) $ECHO_C" >&6
8085_ACEOF 7845_ACEOF
8086 7846
8087fi 7847fi
8088 7848
8089 7849
8090{ echo "$as_me:$LINENO: checking for short" >&5 7850 { echo "$as_me:$LINENO: checking for int16_t" >&5
8091echo $ECHO_N "checking for short... $ECHO_C" >&6; } 7851echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8092if test "${ac_cv_type_short+set}" = set; then 7852if test "${ac_cv_c_int16_t+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6 7853 echo $ECHO_N "(cached) $ECHO_C" >&6
8094else 7854else
7855 ac_cv_c_int16_t=no
7856 for ac_type in 'int16_t' 'int' 'long int' \
7857 'long long int' 'short int' 'signed char'; do
8095 cat >conftest.$ac_ext <<_ACEOF 7858 cat >conftest.$ac_ext <<_ACEOF
8096/* confdefs.h. */ 7859/* confdefs.h. */
8097_ACEOF 7860_ACEOF
8098cat confdefs.h >>conftest.$ac_ext 7861cat confdefs.h >>conftest.$ac_ext
8099cat >>conftest.$ac_ext <<_ACEOF 7862cat >>conftest.$ac_ext <<_ACEOF
8100/* end confdefs.h. */ 7863/* end confdefs.h. */
8101$ac_includes_default 7864$ac_includes_default
8102typedef short ac__type_new_;
8103int 7865int
8104main () 7866main ()
8105{ 7867{
8106if ((ac__type_new_ *) 0) 7868static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8107 return 0; 7869test_array [0] = 0
8108if (sizeof (ac__type_new_)) 7870
8109 return 0;
8110 ; 7871 ;
8111 return 0; 7872 return 0;
8112} 7873}
8113_ACEOF 7874_ACEOF
8114rm -f conftest.$ac_objext 7875rm -f conftest.$ac_objext
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && { 7888 (exit $ac_status); } && {
8128 test -z "$ac_cxx_werror_flag" || 7889 test -z "$ac_cxx_werror_flag" ||
8129 test ! -s conftest.err 7890 test ! -s conftest.err
8130 } && test -s conftest.$ac_objext; then 7891 } && test -s conftest.$ac_objext; then
8131 ac_cv_type_short=yes
8132else
8133 echo "$as_me: failed program was:" >&5
8134sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 ac_cv_type_short=no
8137fi
8138
8139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140fi
8141{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8142echo "${ECHO_T}$ac_cv_type_short" >&6; }
8143
8144# The cast to long int works around a bug in the HP C Compiler
8145# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8146# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8147# This bug is HP SR number 8606223364.
8148{ echo "$as_me:$LINENO: checking size of short" >&5
8149echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8150if test "${ac_cv_sizeof_short+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152else
8153 if test "$cross_compiling" = yes; then
8154 # Depending upon the size, compute the lo and hi bounds.
8155cat >conftest.$ac_ext <<_ACEOF 7892 cat >conftest.$ac_ext <<_ACEOF
8156/* confdefs.h. */ 7893/* confdefs.h. */
8157_ACEOF 7894_ACEOF
8158cat confdefs.h >>conftest.$ac_ext 7895cat confdefs.h >>conftest.$ac_ext
8159cat >>conftest.$ac_ext <<_ACEOF 7896cat >>conftest.$ac_ext <<_ACEOF
8160/* end confdefs.h. */ 7897/* end confdefs.h. */
8161$ac_includes_default 7898$ac_includes_default
8162 typedef short ac__type_sizeof_;
8163int 7899int
8164main () 7900main ()
8165{ 7901{
8166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7902static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
7903 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8167test_array [0] = 0 7904test_array [0] = 0
8168 7905
8169 ; 7906 ;
8170 return 0; 7907 return 0;
8171} 7908}
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && { 7923 (exit $ac_status); } && {
8187 test -z "$ac_cxx_werror_flag" || 7924 test -z "$ac_cxx_werror_flag" ||
8188 test ! -s conftest.err 7925 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then 7926 } && test -s conftest.$ac_objext; then
8190 ac_lo=0 ac_mid=0 7927 :
8191 while :; do 7928else
7929 echo "$as_me: failed program was:" >&5
7930sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 case $ac_type in
7933 int16_t) ac_cv_c_int16_t=yes ;;
7934 *) ac_cv_c_int16_t=$ac_type ;;
7935esac
7936
7937fi
7938
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944
7945fi
7946
7947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 test "$ac_cv_c_int16_t" != no && break
7949 done
7950fi
7951{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7952echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
7953 case $ac_cv_c_int16_t in #(
7954 no|yes) ;; #(
7955 *)
7956
7957cat >>confdefs.h <<_ACEOF
7958#define int16_t $ac_cv_c_int16_t
7959_ACEOF
7960;;
7961 esac
7962
7963
7964 { echo "$as_me:$LINENO: checking for uint16_t" >&5
7965echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7966if test "${ac_cv_c_uint16_t+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969 ac_cv_c_uint16_t=no
7970 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7971 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8192 cat >conftest.$ac_ext <<_ACEOF 7972 cat >conftest.$ac_ext <<_ACEOF
8193/* confdefs.h. */ 7973/* confdefs.h. */
8194_ACEOF 7974_ACEOF
8195cat confdefs.h >>conftest.$ac_ext 7975cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF 7976cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h. */ 7977/* end confdefs.h. */
8198$ac_includes_default 7978$ac_includes_default
8199 typedef short ac__type_sizeof_;
8200int 7979int
8201main () 7980main ()
8202{ 7981{
8203static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7982static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8204test_array [0] = 0 7983test_array [0] = 0
8205 7984
8206 ; 7985 ;
8207 return 0; 7986 return 0;
8208} 7987}
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } && { 8002 (exit $ac_status); } && {
8224 test -z "$ac_cxx_werror_flag" || 8003 test -z "$ac_cxx_werror_flag" ||
8225 test ! -s conftest.err 8004 test ! -s conftest.err
8226 } && test -s conftest.$ac_objext; then 8005 } && test -s conftest.$ac_objext; then
8227 ac_hi=$ac_mid; break 8006 case $ac_type in
8007 uint16_t) ac_cv_c_uint16_t=yes ;;
8008 *) ac_cv_c_uint16_t=$ac_type ;;
8009esac
8010
8228else 8011else
8229 echo "$as_me: failed program was:" >&5 8012 echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5 8013sed 's/^/| /' conftest.$ac_ext >&5
8231 8014
8232 ac_lo=`expr $ac_mid + 1` 8015
8233 if test $ac_lo -le $ac_mid; then
8234 ac_lo= ac_hi=
8235 break
8236 fi
8237 ac_mid=`expr 2 '*' $ac_mid + 1`
8238fi 8016fi
8239 8017
8240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 test "$ac_cv_c_uint16_t" != no && break
8241 done 8020 done
8242else 8021fi
8243 echo "$as_me: failed program was:" >&5 8022{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5 8023echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8024 case $ac_cv_c_uint16_t in #(
8025 no|yes) ;; #(
8026 *)
8245 8027
8028
8029cat >>confdefs.h <<_ACEOF
8030#define uint16_t $ac_cv_c_uint16_t
8031_ACEOF
8032;;
8033 esac
8034
8035
8036 { echo "$as_me:$LINENO: checking for int32_t" >&5
8037echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8038if test "${ac_cv_c_int32_t+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 ac_cv_c_int32_t=no
8042 for ac_type in 'int32_t' 'int' 'long int' \
8043 'long long int' 'short int' 'signed char'; do
8246 cat >conftest.$ac_ext <<_ACEOF 8044 cat >conftest.$ac_ext <<_ACEOF
8247/* confdefs.h. */ 8045/* confdefs.h. */
8248_ACEOF 8046_ACEOF
8249cat confdefs.h >>conftest.$ac_ext 8047cat confdefs.h >>conftest.$ac_ext
8250cat >>conftest.$ac_ext <<_ACEOF 8048cat >>conftest.$ac_ext <<_ACEOF
8251/* end confdefs.h. */ 8049/* end confdefs.h. */
8252$ac_includes_default 8050$ac_includes_default
8253 typedef short ac__type_sizeof_;
8254int 8051int
8255main () 8052main ()
8256{ 8053{
8257static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8054static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8258test_array [0] = 0 8055test_array [0] = 0
8259 8056
8260 ; 8057 ;
8261 return 0; 8058 return 0;
8262} 8059}
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && { 8074 (exit $ac_status); } && {
8278 test -z "$ac_cxx_werror_flag" || 8075 test -z "$ac_cxx_werror_flag" ||
8279 test ! -s conftest.err 8076 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then 8077 } && test -s conftest.$ac_objext; then
8281 ac_hi=-1 ac_mid=-1
8282 while :; do
8283 cat >conftest.$ac_ext <<_ACEOF 8078 cat >conftest.$ac_ext <<_ACEOF
8284/* confdefs.h. */ 8079/* confdefs.h. */
8285_ACEOF 8080_ACEOF
8286cat confdefs.h >>conftest.$ac_ext 8081cat confdefs.h >>conftest.$ac_ext
8287cat >>conftest.$ac_ext <<_ACEOF 8082cat >>conftest.$ac_ext <<_ACEOF
8288/* end confdefs.h. */ 8083/* end confdefs.h. */
8289$ac_includes_default 8084$ac_includes_default
8290 typedef short ac__type_sizeof_;
8291int 8085int
8292main () 8086main ()
8293{ 8087{
8294static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8088static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8089 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8295test_array [0] = 0 8090test_array [0] = 0
8296 8091
8297 ; 8092 ;
8298 return 0; 8093 return 0;
8299} 8094}
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && { 8109 (exit $ac_status); } && {
8315 test -z "$ac_cxx_werror_flag" || 8110 test -z "$ac_cxx_werror_flag" ||
8316 test ! -s conftest.err 8111 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then 8112 } && test -s conftest.$ac_objext; then
8318 ac_lo=$ac_mid; break 8113 :
8319else 8114else
8320 echo "$as_me: failed program was:" >&5 8115 echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5 8116sed 's/^/| /' conftest.$ac_ext >&5
8322 8117
8323 ac_hi=`expr '(' $ac_mid ')' - 1` 8118 case $ac_type in
8324 if test $ac_mid -le $ac_hi; then 8119 int32_t) ac_cv_c_int32_t=yes ;;
8325 ac_lo= ac_hi= 8120 *) ac_cv_c_int32_t=$ac_type ;;
8326 break 8121esac
8327 fi 8122
8328 ac_mid=`expr 2 '*' $ac_mid`
8329fi 8123fi
8330 8124
8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 done
8333else 8126else
8334 echo "$as_me: failed program was:" >&5 8127 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5 8128sed 's/^/| /' conftest.$ac_ext >&5
8336 8129
8337 ac_lo= ac_hi= 8130
8338fi 8131fi
8339 8132
8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 test "$ac_cv_c_int32_t" != no && break
8135 done
8341fi 8136fi
8137{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8138echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8139 case $ac_cv_c_int32_t in #(
8140 no|yes) ;; #(
8141 *)
8342 8142
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143cat >>confdefs.h <<_ACEOF
8344# Binary search between lo and hi bounds. 8144#define int32_t $ac_cv_c_int32_t
8345while test "x$ac_lo" != "x$ac_hi"; do 8145_ACEOF
8346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8146;;
8147 esac
8148
8149
8150 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8151echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8152if test "${ac_cv_c_uint32_t+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155 ac_cv_c_uint32_t=no
8156 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8157 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8347 cat >conftest.$ac_ext <<_ACEOF 8158 cat >conftest.$ac_ext <<_ACEOF
8348/* confdefs.h. */ 8159/* confdefs.h. */
8349_ACEOF 8160_ACEOF
8350cat confdefs.h >>conftest.$ac_ext 8161cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF 8162cat >>conftest.$ac_ext <<_ACEOF
8352/* end confdefs.h. */ 8163/* end confdefs.h. */
8353$ac_includes_default 8164$ac_includes_default
8354 typedef short ac__type_sizeof_;
8355int 8165int
8356main () 8166main ()
8357{ 8167{
8358static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8168static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8359test_array [0] = 0 8169test_array [0] = 0
8360 8170
8361 ; 8171 ;
8362 return 0; 8172 return 0;
8363} 8173}
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } && { 8188 (exit $ac_status); } && {
8379 test -z "$ac_cxx_werror_flag" || 8189 test -z "$ac_cxx_werror_flag" ||
8380 test ! -s conftest.err 8190 test ! -s conftest.err
8381 } && test -s conftest.$ac_objext; then 8191 } && test -s conftest.$ac_objext; then
8382 ac_hi=$ac_mid 8192 case $ac_type in
8193 uint32_t) ac_cv_c_uint32_t=yes ;;
8194 *) ac_cv_c_uint32_t=$ac_type ;;
8195esac
8196
8383else 8197else
8384 echo "$as_me: failed program was:" >&5 8198 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5 8199sed 's/^/| /' conftest.$ac_ext >&5
8386 8200
8387 ac_lo=`expr '(' $ac_mid ')' + 1` 8201
8388fi 8202fi
8389 8203
8390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391done 8205 test "$ac_cv_c_uint32_t" != no && break
8392case $ac_lo in 8206 done
8393?*) ac_cv_sizeof_short=$ac_lo;;
8394'') if test "$ac_cv_type_short" = yes; then
8395 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8396See \`config.log' for more details." >&5
8397echo "$as_me: error: cannot compute sizeof (short)
8398See \`config.log' for more details." >&2;}
8399 { (exit 77); exit 77; }; }
8400 else
8401 ac_cv_sizeof_short=0
8402 fi ;;
8403esac
8404else
8405 cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
8411$ac_includes_default
8412 typedef short ac__type_sizeof_;
8413static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8414static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8415#include <stdio.h>
8416#include <stdlib.h>
8417int
8418main ()
8419{
8420
8421 FILE *f = fopen ("conftest.val", "w");
8422 if (! f)
8423 return 1;
8424 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8425 {
8426 long int i = longval ();
8427 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8428 return 1;
8429 fprintf (f, "%ld\n", i);
8430 }
8431 else
8432 {
8433 unsigned long int i = ulongval ();
8434 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8435 return 1;
8436 fprintf (f, "%lu\n", i);
8437 }
8438 return ferror (f) || fclose (f) != 0;
8439
8440 ;
8441 return 0;
8442}
8443_ACEOF
8444rm -f conftest$ac_exeext
8445if { (ac_try="$ac_link"
8446case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_link") 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8455 { (case "(($ac_try" in
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8458esac
8459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_try") 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_sizeof_short=`cat conftest.val`
8465else
8466 echo "$as_me: program exited with status $ac_status" >&5
8467echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470( exit $ac_status )
8471if test "$ac_cv_type_short" = yes; then
8472 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8473See \`config.log' for more details." >&5
8474echo "$as_me: error: cannot compute sizeof (short)
8475See \`config.log' for more details." >&2;}
8476 { (exit 77); exit 77; }; }
8477 else
8478 ac_cv_sizeof_short=0
8479 fi
8480fi 8207fi
8481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8482fi
8483rm -f conftest.val
8484fi
8485{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8208{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8486echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8209echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8210 case $ac_cv_c_uint32_t in #(
8211 no|yes) ;; #(
8212 *)
8487 8213
8214cat >>confdefs.h <<\_ACEOF
8215#define _UINT32_T 1
8216_ACEOF
8488 8217
8489 8218
8490cat >>confdefs.h <<_ACEOF 8219cat >>confdefs.h <<_ACEOF
8491#define SIZEOF_SHORT $ac_cv_sizeof_short 8220#define uint32_t $ac_cv_c_uint32_t
8492_ACEOF 8221_ACEOF
8493 8222;;
8494
8495{ echo "$as_me:$LINENO: checking for int" >&5
8496echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8497if test "${ac_cv_type_int+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
8500 cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506$ac_includes_default
8507typedef int ac__type_new_;
8508int
8509main ()
8510{
8511if ((ac__type_new_ *) 0)
8512 return 0;
8513if (sizeof (ac__type_new_))
8514 return 0;
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519rm -f conftest.$ac_objext
8520if { (ac_try="$ac_compile"
8521case "(($ac_try" in
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8524esac 8223 esac
8525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526 (eval "$ac_compile") 2>conftest.er1
8527 ac_status=$?
8528 grep -v '^ *+' conftest.er1 >conftest.err
8529 rm -f conftest.er1
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } && {
8533 test -z "$ac_cxx_werror_flag" ||
8534 test ! -s conftest.err
8535 } && test -s conftest.$ac_objext; then
8536 ac_cv_type_int=yes
8537else
8538 echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540 8224
8541 ac_cv_type_int=no
8542fi
8543 8225
8544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545fi
8546{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8547echo "${ECHO_T}$ac_cv_type_int" >&6; }
8548 8226
8549# The cast to long int works around a bug in the HP C Compiler
8550# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8551# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8552# This bug is HP SR number 8606223364.
8553{ echo "$as_me:$LINENO: checking size of int" >&5
8554echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8555if test "${ac_cv_sizeof_int+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558 if test "$cross_compiling" = yes; then
8559 # Depending upon the size, compute the lo and hi bounds.
8560cat >conftest.$ac_ext <<_ACEOF
8561/* confdefs.h. */
8562_ACEOF
8563cat confdefs.h >>conftest.$ac_ext
8564cat >>conftest.$ac_ext <<_ACEOF
8565/* end confdefs.h. */
8566$ac_includes_default
8567 typedef int ac__type_sizeof_;
8568int
8569main ()
8570{
8571static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8572test_array [0] = 0
8573
8574 ;
8575 return 0;
8576}
8577_ACEOF
8578rm -f conftest.$ac_objext
8579if { (ac_try="$ac_compile"
8580case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583esac
8584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_cxx_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8595 ac_lo=0 ac_mid=0
8596 while :; do
8597 cat >conftest.$ac_ext <<_ACEOF
8598/* confdefs.h. */
8599_ACEOF
8600cat confdefs.h >>conftest.$ac_ext
8601cat >>conftest.$ac_ext <<_ACEOF
8602/* end confdefs.h. */
8603$ac_includes_default
8604 typedef int ac__type_sizeof_;
8605int
8606main ()
8607{
8608static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8609test_array [0] = 0
8610
8611 ;
8612 return 0;
8613}
8614_ACEOF
8615rm -f conftest.$ac_objext
8616if { (ac_try="$ac_compile"
8617case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620esac
8621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_compile") 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } && {
8629 test -z "$ac_cxx_werror_flag" ||
8630 test ! -s conftest.err
8631 } && test -s conftest.$ac_objext; then
8632 ac_hi=$ac_mid; break
8633else
8634 echo "$as_me: failed program was:" >&5
8635sed 's/^/| /' conftest.$ac_ext >&5
8636
8637 ac_lo=`expr $ac_mid + 1`
8638 if test $ac_lo -le $ac_mid; then
8639 ac_lo= ac_hi=
8640 break
8641 fi
8642 ac_mid=`expr 2 '*' $ac_mid + 1`
8643fi
8644
8645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 done
8647else
8648 echo "$as_me: failed program was:" >&5
8649sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
8657$ac_includes_default
8658 typedef int ac__type_sizeof_;
8659int
8660main ()
8661{
8662static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8663test_array [0] = 0
8664
8665 ;
8666 return 0;
8667}
8668_ACEOF
8669rm -f conftest.$ac_objext
8670if { (ac_try="$ac_compile"
8671case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674esac
8675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_cxx_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_hi=-1 ac_mid=-1
8687 while :; do
8688 cat >conftest.$ac_ext <<_ACEOF
8689/* confdefs.h. */
8690_ACEOF
8691cat confdefs.h >>conftest.$ac_ext
8692cat >>conftest.$ac_ext <<_ACEOF
8693/* end confdefs.h. */
8694$ac_includes_default
8695 typedef int ac__type_sizeof_;
8696int
8697main ()
8698{
8699static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8700test_array [0] = 0
8701
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest.$ac_objext
8707if { (ac_try="$ac_compile"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_cxx_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.$ac_objext; then
8723 ac_lo=$ac_mid; break
8724else
8725 echo "$as_me: failed program was:" >&5
8726sed 's/^/| /' conftest.$ac_ext >&5
8727
8728 ac_hi=`expr '(' $ac_mid ')' - 1`
8729 if test $ac_mid -le $ac_hi; then
8730 ac_lo= ac_hi=
8731 break
8732 fi
8733 ac_mid=`expr 2 '*' $ac_mid`
8734fi
8735
8736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737 done
8738else
8739 echo "$as_me: failed program was:" >&5
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 ac_lo= ac_hi=
8743fi
8744
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746fi
8747
8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8749# Binary search between lo and hi bounds.
8750while test "x$ac_lo" != "x$ac_hi"; do
8751 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8752 cat >conftest.$ac_ext <<_ACEOF
8753/* confdefs.h. */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h. */
8758$ac_includes_default
8759 typedef int ac__type_sizeof_;
8760int
8761main ()
8762{
8763static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8764test_array [0] = 0
8765
8766 ;
8767 return 0;
8768}
8769_ACEOF
8770rm -f conftest.$ac_objext
8771if { (ac_try="$ac_compile"
8772case "(($ac_try" in
8773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774 *) ac_try_echo=$ac_try;;
8775esac
8776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777 (eval "$ac_compile") 2>conftest.er1
8778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } && {
8784 test -z "$ac_cxx_werror_flag" ||
8785 test ! -s conftest.err
8786 } && test -s conftest.$ac_objext; then
8787 ac_hi=$ac_mid
8788else
8789 echo "$as_me: failed program was:" >&5
8790sed 's/^/| /' conftest.$ac_ext >&5
8791
8792 ac_lo=`expr '(' $ac_mid ')' + 1`
8793fi
8794
8795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796done
8797case $ac_lo in
8798?*) ac_cv_sizeof_int=$ac_lo;;
8799'') if test "$ac_cv_type_int" = yes; then
8800 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8801See \`config.log' for more details." >&5
8802echo "$as_me: error: cannot compute sizeof (int)
8803See \`config.log' for more details." >&2;}
8804 { (exit 77); exit 77; }; }
8805 else
8806 ac_cv_sizeof_int=0
8807 fi ;;
8808esac
8809else
8810 cat >conftest.$ac_ext <<_ACEOF
8811/* confdefs.h. */
8812_ACEOF
8813cat confdefs.h >>conftest.$ac_ext
8814cat >>conftest.$ac_ext <<_ACEOF
8815/* end confdefs.h. */
8816$ac_includes_default
8817 typedef int ac__type_sizeof_;
8818static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8819static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8820#include <stdio.h>
8821#include <stdlib.h>
8822int
8823main ()
8824{
8825
8826 FILE *f = fopen ("conftest.val", "w");
8827 if (! f)
8828 return 1;
8829 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8830 {
8831 long int i = longval ();
8832 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8833 return 1;
8834 fprintf (f, "%ld\n", i);
8835 }
8836 else
8837 {
8838 unsigned long int i = ulongval ();
8839 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8840 return 1;
8841 fprintf (f, "%lu\n", i);
8842 }
8843 return ferror (f) || fclose (f) != 0;
8844
8845 ;
8846 return 0;
8847}
8848_ACEOF
8849rm -f conftest$ac_exeext
8850if { (ac_try="$ac_link"
8851case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8854esac
8855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8856 (eval "$ac_link") 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 ac_cv_sizeof_int=`cat conftest.val`
8870else
8871 echo "$as_me: program exited with status $ac_status" >&5
8872echo "$as_me: failed program was:" >&5
8873sed 's/^/| /' conftest.$ac_ext >&5
8874
8875( exit $ac_status )
8876if test "$ac_cv_type_int" = yes; then
8877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8878See \`config.log' for more details." >&5
8879echo "$as_me: error: cannot compute sizeof (int)
8880See \`config.log' for more details." >&2;}
8881 { (exit 77); exit 77; }; }
8882 else
8883 ac_cv_sizeof_int=0
8884 fi
8885fi
8886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8887fi
8888rm -f conftest.val
8889fi
8890{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8891echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8892
8893
8894
8895cat >>confdefs.h <<_ACEOF
8896#define SIZEOF_INT $ac_cv_sizeof_int
8897_ACEOF
8898
8899
8900{ echo "$as_me:$LINENO: checking for long long" >&5
8901echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8902if test "${ac_cv_type_long_long+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905 cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911$ac_includes_default
8912typedef long long ac__type_new_;
8913int
8914main ()
8915{
8916if ((ac__type_new_ *) 0)
8917 return 0;
8918if (sizeof (ac__type_new_))
8919 return 0;
8920 ;
8921 return 0;
8922}
8923_ACEOF
8924rm -f conftest.$ac_objext
8925if { (ac_try="$ac_compile"
8926case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929esac
8930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931 (eval "$ac_compile") 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } && {
8938 test -z "$ac_cxx_werror_flag" ||
8939 test ! -s conftest.err
8940 } && test -s conftest.$ac_objext; then
8941 ac_cv_type_long_long=yes
8942else
8943 echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946 ac_cv_type_long_long=no
8947fi
8948
8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950fi
8951{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8952echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8953
8954# The cast to long int works around a bug in the HP C Compiler
8955# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8956# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8957# This bug is HP SR number 8606223364.
8958{ echo "$as_me:$LINENO: checking size of long long" >&5
8959echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8960if test "${ac_cv_sizeof_long_long+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962else
8963 if test "$cross_compiling" = yes; then
8964 # Depending upon the size, compute the lo and hi bounds.
8965cat >conftest.$ac_ext <<_ACEOF
8966/* confdefs.h. */
8967_ACEOF
8968cat confdefs.h >>conftest.$ac_ext
8969cat >>conftest.$ac_ext <<_ACEOF
8970/* end confdefs.h. */
8971$ac_includes_default
8972 typedef long long ac__type_sizeof_;
8973int
8974main ()
8975{
8976static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8977test_array [0] = 0
8978
8979 ;
8980 return 0;
8981}
8982_ACEOF
8983rm -f conftest.$ac_objext
8984if { (ac_try="$ac_compile"
8985case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988esac
8989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_cxx_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.$ac_objext; then
9000 ac_lo=0 ac_mid=0
9001 while :; do
9002 cat >conftest.$ac_ext <<_ACEOF
9003/* confdefs.h. */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h. */
9008$ac_includes_default
9009 typedef long long ac__type_sizeof_;
9010int
9011main ()
9012{
9013static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9014test_array [0] = 0
9015
9016 ;
9017 return 0;
9018}
9019_ACEOF
9020rm -f conftest.$ac_objext
9021if { (ac_try="$ac_compile"
9022case "(($ac_try" in
9023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9024 *) ac_try_echo=$ac_try;;
9025esac
9026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9027 (eval "$ac_compile") 2>conftest.er1
9028 ac_status=$?
9029 grep -v '^ *+' conftest.er1 >conftest.err
9030 rm -f conftest.er1
9031 cat conftest.err >&5
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); } && {
9034 test -z "$ac_cxx_werror_flag" ||
9035 test ! -s conftest.err
9036 } && test -s conftest.$ac_objext; then
9037 ac_hi=$ac_mid; break
9038else
9039 echo "$as_me: failed program was:" >&5
9040sed 's/^/| /' conftest.$ac_ext >&5
9041
9042 ac_lo=`expr $ac_mid + 1`
9043 if test $ac_lo -le $ac_mid; then
9044 ac_lo= ac_hi=
9045 break
9046 fi
9047 ac_mid=`expr 2 '*' $ac_mid + 1`
9048fi
9049
9050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051 done
9052else
9053 echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 cat >conftest.$ac_ext <<_ACEOF
9057/* confdefs.h. */
9058_ACEOF
9059cat confdefs.h >>conftest.$ac_ext
9060cat >>conftest.$ac_ext <<_ACEOF
9061/* end confdefs.h. */
9062$ac_includes_default
9063 typedef long long ac__type_sizeof_;
9064int
9065main ()
9066{
9067static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9068test_array [0] = 0
9069
9070 ;
9071 return 0;
9072}
9073_ACEOF
9074rm -f conftest.$ac_objext
9075if { (ac_try="$ac_compile"
9076case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079esac
9080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
9082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } && {
9088 test -z "$ac_cxx_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
9091 ac_hi=-1 ac_mid=-1
9092 while :; do
9093 cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099$ac_includes_default
9100 typedef long long ac__type_sizeof_;
9101int
9102main ()
9103{
9104static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9105test_array [0] = 0
9106
9107 ;
9108 return 0;
9109}
9110_ACEOF
9111rm -f conftest.$ac_objext
9112if { (ac_try="$ac_compile"
9113case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_cxx_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
9128 ac_lo=$ac_mid; break
9129else
9130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133 ac_hi=`expr '(' $ac_mid ')' - 1`
9134 if test $ac_mid -le $ac_hi; then
9135 ac_lo= ac_hi=
9136 break
9137 fi
9138 ac_mid=`expr 2 '*' $ac_mid`
9139fi
9140
9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142 done
9143else
9144 echo "$as_me: failed program was:" >&5
9145sed 's/^/| /' conftest.$ac_ext >&5
9146
9147 ac_lo= ac_hi=
9148fi
9149
9150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9151fi
9152
9153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154# Binary search between lo and hi bounds.
9155while test "x$ac_lo" != "x$ac_hi"; do
9156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9157 cat >conftest.$ac_ext <<_ACEOF
9158/* confdefs.h. */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h. */
9163$ac_includes_default
9164 typedef long long ac__type_sizeof_;
9165int
9166main ()
9167{
9168static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9169test_array [0] = 0
9170
9171 ;
9172 return 0;
9173}
9174_ACEOF
9175rm -f conftest.$ac_objext
9176if { (ac_try="$ac_compile"
9177case "(($ac_try" in
9178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179 *) ac_try_echo=$ac_try;;
9180esac
9181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182 (eval "$ac_compile") 2>conftest.er1
9183 ac_status=$?
9184 grep -v '^ *+' conftest.er1 >conftest.err
9185 rm -f conftest.er1
9186 cat conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); } && {
9189 test -z "$ac_cxx_werror_flag" ||
9190 test ! -s conftest.err
9191 } && test -s conftest.$ac_objext; then
9192 ac_hi=$ac_mid
9193else
9194 echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_lo=`expr '(' $ac_mid ')' + 1`
9198fi
9199
9200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9201done
9202case $ac_lo in
9203?*) ac_cv_sizeof_long_long=$ac_lo;;
9204'') if test "$ac_cv_type_long_long" = yes; then
9205 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9206See \`config.log' for more details." >&5
9207echo "$as_me: error: cannot compute sizeof (long long)
9208See \`config.log' for more details." >&2;}
9209 { (exit 77); exit 77; }; }
9210 else
9211 ac_cv_sizeof_long_long=0
9212 fi ;;
9213esac
9214else
9215 cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221$ac_includes_default
9222 typedef long long ac__type_sizeof_;
9223static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9224static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9225#include <stdio.h>
9226#include <stdlib.h>
9227int
9228main ()
9229{
9230
9231 FILE *f = fopen ("conftest.val", "w");
9232 if (! f)
9233 return 1;
9234 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9235 {
9236 long int i = longval ();
9237 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9238 return 1;
9239 fprintf (f, "%ld\n", i);
9240 }
9241 else
9242 {
9243 unsigned long int i = ulongval ();
9244 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9245 return 1;
9246 fprintf (f, "%lu\n", i);
9247 }
9248 return ferror (f) || fclose (f) != 0;
9249
9250 ;
9251 return 0;
9252}
9253_ACEOF
9254rm -f conftest$ac_exeext
9255if { (ac_try="$ac_link"
9256case "(($ac_try" in
9257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258 *) ac_try_echo=$ac_try;;
9259esac
9260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9261 (eval "$ac_link") 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9265 { (case "(($ac_try" in
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9268esac
9269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_try") 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_sizeof_long_long=`cat conftest.val`
9275else
9276 echo "$as_me: program exited with status $ac_status" >&5
9277echo "$as_me: failed program was:" >&5
9278sed 's/^/| /' conftest.$ac_ext >&5
9279
9280( exit $ac_status )
9281if test "$ac_cv_type_long_long" = yes; then
9282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9283See \`config.log' for more details." >&5
9284echo "$as_me: error: cannot compute sizeof (long long)
9285See \`config.log' for more details." >&2;}
9286 { (exit 77); exit 77; }; }
9287 else
9288 ac_cv_sizeof_long_long=0
9289 fi
9290fi
9291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9292fi
9293rm -f conftest.val
9294fi
9295{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9296echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9297
9298
9299
9300cat >>confdefs.h <<_ACEOF
9301#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9302_ACEOF
9303
9304
9305{ echo "$as_me:$LINENO: checking for int *" >&5
9306echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9307if test "${ac_cv_type_int_p+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9309else
9310 cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316$ac_includes_default
9317typedef int * ac__type_new_;
9318int
9319main ()
9320{
9321if ((ac__type_new_ *) 0)
9322 return 0;
9323if (sizeof (ac__type_new_))
9324 return 0;
9325 ;
9326 return 0;
9327}
9328_ACEOF
9329rm -f conftest.$ac_objext
9330if { (ac_try="$ac_compile"
9331case "(($ac_try" in
9332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9333 *) ac_try_echo=$ac_try;;
9334esac
9335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9336 (eval "$ac_compile") 2>conftest.er1
9337 ac_status=$?
9338 grep -v '^ *+' conftest.er1 >conftest.err
9339 rm -f conftest.er1
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } && {
9343 test -z "$ac_cxx_werror_flag" ||
9344 test ! -s conftest.err
9345 } && test -s conftest.$ac_objext; then
9346 ac_cv_type_int_p=yes
9347else
9348 echo "$as_me: failed program was:" >&5
9349sed 's/^/| /' conftest.$ac_ext >&5
9350
9351 ac_cv_type_int_p=no
9352fi
9353
9354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355fi
9356{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9357echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9358
9359# The cast to long int works around a bug in the HP C Compiler
9360# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9361# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9362# This bug is HP SR number 8606223364.
9363{ echo "$as_me:$LINENO: checking size of int *" >&5
9364echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9365if test "${ac_cv_sizeof_int_p+set}" = set; then
9366 echo $ECHO_N "(cached) $ECHO_C" >&6
9367else
9368 if test "$cross_compiling" = yes; then
9369 # Depending upon the size, compute the lo and hi bounds.
9370cat >conftest.$ac_ext <<_ACEOF
9371/* confdefs.h. */
9372_ACEOF
9373cat confdefs.h >>conftest.$ac_ext
9374cat >>conftest.$ac_ext <<_ACEOF
9375/* end confdefs.h. */
9376$ac_includes_default
9377 typedef int * ac__type_sizeof_;
9378int
9379main ()
9380{
9381static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9382test_array [0] = 0
9383
9384 ;
9385 return 0;
9386}
9387_ACEOF
9388rm -f conftest.$ac_objext
9389if { (ac_try="$ac_compile"
9390case "(($ac_try" in
9391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392 *) ac_try_echo=$ac_try;;
9393esac
9394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395 (eval "$ac_compile") 2>conftest.er1
9396 ac_status=$?
9397 grep -v '^ *+' conftest.er1 >conftest.err
9398 rm -f conftest.er1
9399 cat conftest.err >&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } && {
9402 test -z "$ac_cxx_werror_flag" ||
9403 test ! -s conftest.err
9404 } && test -s conftest.$ac_objext; then
9405 ac_lo=0 ac_mid=0
9406 while :; do
9407 cat >conftest.$ac_ext <<_ACEOF
9408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h. */
9413$ac_includes_default
9414 typedef int * ac__type_sizeof_;
9415int
9416main ()
9417{
9418static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9419test_array [0] = 0
9420
9421 ;
9422 return 0;
9423}
9424_ACEOF
9425rm -f conftest.$ac_objext
9426if { (ac_try="$ac_compile"
9427case "(($ac_try" in
9428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9429 *) ac_try_echo=$ac_try;;
9430esac
9431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9432 (eval "$ac_compile") 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && {
9439 test -z "$ac_cxx_werror_flag" ||
9440 test ! -s conftest.err
9441 } && test -s conftest.$ac_objext; then
9442 ac_hi=$ac_mid; break
9443else
9444 echo "$as_me: failed program was:" >&5
9445sed 's/^/| /' conftest.$ac_ext >&5
9446
9447 ac_lo=`expr $ac_mid + 1`
9448 if test $ac_lo -le $ac_mid; then
9449 ac_lo= ac_hi=
9450 break
9451 fi
9452 ac_mid=`expr 2 '*' $ac_mid + 1`
9453fi
9454
9455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9456 done
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461 cat >conftest.$ac_ext <<_ACEOF
9462/* confdefs.h. */
9463_ACEOF
9464cat confdefs.h >>conftest.$ac_ext
9465cat >>conftest.$ac_ext <<_ACEOF
9466/* end confdefs.h. */
9467$ac_includes_default
9468 typedef int * ac__type_sizeof_;
9469int
9470main ()
9471{
9472static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9473test_array [0] = 0
9474
9475 ;
9476 return 0;
9477}
9478_ACEOF
9479rm -f conftest.$ac_objext
9480if { (ac_try="$ac_compile"
9481case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_compile") 2>conftest.er1
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_cxx_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest.$ac_objext; then
9496 ac_hi=-1 ac_mid=-1
9497 while :; do
9498 cat >conftest.$ac_ext <<_ACEOF
9499/* confdefs.h. */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h. */
9504$ac_includes_default
9505 typedef int * ac__type_sizeof_;
9506int
9507main ()
9508{
9509static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9510test_array [0] = 0
9511
9512 ;
9513 return 0;
9514}
9515_ACEOF
9516rm -f conftest.$ac_objext
9517if { (ac_try="$ac_compile"
9518case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521esac
9522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_compile") 2>conftest.er1
9524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } && {
9530 test -z "$ac_cxx_werror_flag" ||
9531 test ! -s conftest.err
9532 } && test -s conftest.$ac_objext; then
9533 ac_lo=$ac_mid; break
9534else
9535 echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 ac_hi=`expr '(' $ac_mid ')' - 1`
9539 if test $ac_mid -le $ac_hi; then
9540 ac_lo= ac_hi=
9541 break
9542 fi
9543 ac_mid=`expr 2 '*' $ac_mid`
9544fi
9545
9546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9547 done
9548else
9549 echo "$as_me: failed program was:" >&5
9550sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_lo= ac_hi=
9553fi
9554
9555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9556fi
9557
9558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559# Binary search between lo and hi bounds.
9560while test "x$ac_lo" != "x$ac_hi"; do
9561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9562 cat >conftest.$ac_ext <<_ACEOF
9563/* confdefs.h. */
9564_ACEOF
9565cat confdefs.h >>conftest.$ac_ext
9566cat >>conftest.$ac_ext <<_ACEOF
9567/* end confdefs.h. */
9568$ac_includes_default
9569 typedef int * ac__type_sizeof_;
9570int
9571main ()
9572{
9573static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9574test_array [0] = 0
9575
9576 ;
9577 return 0;
9578}
9579_ACEOF
9580rm -f conftest.$ac_objext
9581if { (ac_try="$ac_compile"
9582case "(($ac_try" in
9583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9584 *) ac_try_echo=$ac_try;;
9585esac
9586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9587 (eval "$ac_compile") 2>conftest.er1
9588 ac_status=$?
9589 grep -v '^ *+' conftest.er1 >conftest.err
9590 rm -f conftest.er1
9591 cat conftest.err >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); } && {
9594 test -z "$ac_cxx_werror_flag" ||
9595 test ! -s conftest.err
9596 } && test -s conftest.$ac_objext; then
9597 ac_hi=$ac_mid
9598else
9599 echo "$as_me: failed program was:" >&5
9600sed 's/^/| /' conftest.$ac_ext >&5
9601
9602 ac_lo=`expr '(' $ac_mid ')' + 1`
9603fi
9604
9605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606done
9607case $ac_lo in
9608?*) ac_cv_sizeof_int_p=$ac_lo;;
9609'') if test "$ac_cv_type_int_p" = yes; then
9610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9611See \`config.log' for more details." >&5
9612echo "$as_me: error: cannot compute sizeof (int *)
9613See \`config.log' for more details." >&2;}
9614 { (exit 77); exit 77; }; }
9615 else
9616 ac_cv_sizeof_int_p=0
9617 fi ;;
9618esac
9619else
9620 cat >conftest.$ac_ext <<_ACEOF
9621/* confdefs.h. */
9622_ACEOF
9623cat confdefs.h >>conftest.$ac_ext
9624cat >>conftest.$ac_ext <<_ACEOF
9625/* end confdefs.h. */
9626$ac_includes_default
9627 typedef int * ac__type_sizeof_;
9628static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9629static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9630#include <stdio.h>
9631#include <stdlib.h>
9632int
9633main ()
9634{
9635
9636 FILE *f = fopen ("conftest.val", "w");
9637 if (! f)
9638 return 1;
9639 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9640 {
9641 long int i = longval ();
9642 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9643 return 1;
9644 fprintf (f, "%ld\n", i);
9645 }
9646 else
9647 {
9648 unsigned long int i = ulongval ();
9649 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9650 return 1;
9651 fprintf (f, "%lu\n", i);
9652 }
9653 return ferror (f) || fclose (f) != 0;
9654
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659rm -f conftest$ac_exeext
9660if { (ac_try="$ac_link"
9661case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664esac
9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_link") 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_sizeof_int_p=`cat conftest.val`
9680else
9681 echo "$as_me: program exited with status $ac_status" >&5
9682echo "$as_me: failed program was:" >&5
9683sed 's/^/| /' conftest.$ac_ext >&5
9684
9685( exit $ac_status )
9686if test "$ac_cv_type_int_p" = yes; then
9687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9688See \`config.log' for more details." >&5
9689echo "$as_me: error: cannot compute sizeof (int *)
9690See \`config.log' for more details." >&2;}
9691 { (exit 77); exit 77; }; }
9692 else
9693 ac_cv_sizeof_int_p=0
9694 fi
9695fi
9696rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9697fi
9698rm -f conftest.val
9699fi
9700{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9701echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9702
9703
9704
9705cat >>confdefs.h <<_ACEOF
9706#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9707_ACEOF
9708
9709
9710
9711
9712{ echo "$as_me:$LINENO: checking for int16_t" >&5
9713echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9714if test "${rxvt_cv_int16_t+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 cat >conftest.$ac_ext <<_ACEOF
9718/* confdefs.h. */
9719_ACEOF
9720cat confdefs.h >>conftest.$ac_ext
9721cat >>conftest.$ac_ext <<_ACEOF
9722/* end confdefs.h. */
9723#include <stdint.h>
9724int
9725main ()
9726{
9727int16_t dummy;
9728 ;
9729 return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext
9733if { (ac_try="$ac_compile"
9734case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9737esac
9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_compile") 2>conftest.er1
9740 ac_status=$?
9741 grep -v '^ *+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } && {
9746 test -z "$ac_cxx_werror_flag" ||
9747 test ! -s conftest.err
9748 } && test -s conftest.$ac_objext; then
9749 rxvt_cv_int16_t=yes
9750else
9751 echo "$as_me: failed program was:" >&5
9752sed 's/^/| /' conftest.$ac_ext >&5
9753
9754 if test "$ac_cv_sizeof_char" -ge 2; then
9755 rxvt_cv_int16_t=" char"
9756else
9757 if test "$ac_cv_sizeof_short" -ge 2; then
9758 rxvt_cv_int16_t=" short"
9759 else
9760 if test "$ac_cv_sizeof_int" -ge 2; then
9761 rxvt_cv_int16_t=" int"
9762 else
9763 if test "$ac_cv_sizeof_long" -ge 2; then
9764 rxvt_cv_int16_t=" long"
9765 else
9766 if test "$ac_cv_sizeof_long_long" -ge 2; then
9767 rxvt_cv_int16_t=" long long"
9768 else
9769 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9770 fi
9771 fi
9772 fi
9773 fi
9774fi
9775fi
9776
9777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9778fi
9779{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9780echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9781if test x"$rxvt_cv_int16_t" != xyes; then
9782 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9783else
9784 if test x"" = x; then
9785 rxvt_int16_typedef="/* typedef short int16_t; */"
9786 else
9787 rxvt_int16_typedef="/* typedef short int16_t; */"
9788 fi
9789fi
9790
9791{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9792echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9793if test "${rxvt_cv_uint16_t+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795else
9796 cat >conftest.$ac_ext <<_ACEOF
9797/* confdefs.h. */
9798_ACEOF
9799cat confdefs.h >>conftest.$ac_ext
9800cat >>conftest.$ac_ext <<_ACEOF
9801/* end confdefs.h. */
9802#include <stdint.h>
9803int
9804main ()
9805{
9806uint16_t dummy;
9807 ;
9808 return 0;
9809}
9810_ACEOF
9811rm -f conftest.$ac_objext
9812if { (ac_try="$ac_compile"
9813case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816esac
9817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_compile") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_cxx_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest.$ac_objext; then
9828 rxvt_cv_uint16_t=yes
9829else
9830 echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
9832
9833 if test "$ac_cv_sizeof_char" -ge 2; then
9834 rxvt_cv_uint16_t="unsigned char"
9835else
9836 if test "$ac_cv_sizeof_short" -ge 2; then
9837 rxvt_cv_uint16_t="unsigned short"
9838 else
9839 if test "$ac_cv_sizeof_int" -ge 2; then
9840 rxvt_cv_uint16_t="unsigned int"
9841 else
9842 if test "$ac_cv_sizeof_long" -ge 2; then
9843 rxvt_cv_uint16_t="unsigned long"
9844 else
9845 if test "$ac_cv_sizeof_long_long" -ge 2; then
9846 rxvt_cv_uint16_t="unsigned long long"
9847 else
9848 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9849 fi
9850 fi
9851 fi
9852 fi
9853fi
9854fi
9855
9856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857fi
9858{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9859echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9860if test x"$rxvt_cv_uint16_t" != xyes; then
9861 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9862else
9863 if test x"unsigned" = x; then
9864 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9865 else
9866 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9867 fi
9868fi
9869
9870{ echo "$as_me:$LINENO: checking for int32_t" >&5
9871echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9872if test "${rxvt_cv_int32_t+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
9881#include <stdint.h>
9882int
9883main ()
9884{
9885int32_t dummy;
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext
9891if { (ac_try="$ac_compile"
9892case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_compile") 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } && {
9904 test -z "$ac_cxx_werror_flag" ||
9905 test ! -s conftest.err
9906 } && test -s conftest.$ac_objext; then
9907 rxvt_cv_int32_t=yes
9908else
9909 echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 if test "$ac_cv_sizeof_char" -ge 4; then
9913 rxvt_cv_int32_t=" char"
9914else
9915 if test "$ac_cv_sizeof_short" -ge 4; then
9916 rxvt_cv_int32_t=" short"
9917 else
9918 if test "$ac_cv_sizeof_int" -ge 4; then
9919 rxvt_cv_int32_t=" int"
9920 else
9921 if test "$ac_cv_sizeof_long" -ge 4; then
9922 rxvt_cv_int32_t=" long"
9923 else
9924 if test "$ac_cv_sizeof_long_long" -ge 4; then
9925 rxvt_cv_int32_t=" long long"
9926 else
9927 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9928 fi
9929 fi
9930 fi
9931 fi
9932fi
9933fi
9934
9935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936fi
9937{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9938echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9939if test x"$rxvt_cv_int32_t" != xyes; then
9940 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9941else
9942 if test x"" = x; then
9943 rxvt_int32_typedef="/* typedef int int32_t; */"
9944 else
9945 rxvt_int32_typedef="/* typedef int int32_t; */"
9946 fi
9947fi
9948
9949{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9950echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9951if test "${rxvt_cv_uint32_t+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 cat >conftest.$ac_ext <<_ACEOF
9955/* confdefs.h. */
9956_ACEOF
9957cat confdefs.h >>conftest.$ac_ext
9958cat >>conftest.$ac_ext <<_ACEOF
9959/* end confdefs.h. */
9960#include <stdint.h>
9961int
9962main ()
9963{
9964uint32_t dummy;
9965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext
9970if { (ac_try="$ac_compile"
9971case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_cxx_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.$ac_objext; then
9986 rxvt_cv_uint32_t=yes
9987else
9988 echo "$as_me: failed program was:" >&5
9989sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 if test "$ac_cv_sizeof_char" -ge 4; then
9992 rxvt_cv_uint32_t="unsigned char"
9993else
9994 if test "$ac_cv_sizeof_short" -ge 4; then
9995 rxvt_cv_uint32_t="unsigned short"
9996 else
9997 if test "$ac_cv_sizeof_int" -ge 4; then
9998 rxvt_cv_uint32_t="unsigned int"
9999 else
10000 if test "$ac_cv_sizeof_long" -ge 4; then
10001 rxvt_cv_uint32_t="unsigned long"
10002 else
10003 if test "$ac_cv_sizeof_long_long" -ge 4; then
10004 rxvt_cv_uint32_t="unsigned long long"
10005 else
10006 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10007 fi
10008 fi
10009 fi
10010 fi
10011fi
10012fi
10013
10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015fi
10016{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10017echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10018if test x"$rxvt_cv_uint32_t" != xyes; then
10019 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10020else
10021 if test x"unsigned" = x; then
10022 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10023 else
10024 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10025 fi
10026fi
10027
10028if test "$ac_cv_sizeof_int_p" -eq 8; then
10029 rxvt_intp_define="#define intp_t int64_t"
10030 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10031else
10032 if test "$ac_cv_sizeof_int_p" -eq 4; then
10033 rxvt_intp_define="#define intp_t int32_t"
10034 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10035 else
10036 if test "$ac_cv_sizeof_int_p" -eq 2; then
10037 rxvt_intp_define="#define intp_t int16_t"
10038 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10039 else
10040 rxvt_intp_define="#error set intp_t"
10041 rxvt_u_intp_define="#error set u_intp_t"
10042 fi
10043 fi
10044fi
10045
10046
10047
10048{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10049echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10050if test "${ac_cv_type_signal+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052else
10053 cat >conftest.$ac_ext <<_ACEOF
10054/* confdefs.h. */
10055_ACEOF
10056cat confdefs.h >>conftest.$ac_ext
10057cat >>conftest.$ac_ext <<_ACEOF
10058/* end confdefs.h. */
10059#include <sys/types.h>
10060#include <signal.h>
10061
10062int
10063main ()
10064{
10065return *(signal (0, 0)) (0) == 1;
10066 ;
10067 return 0;
10068}
10069_ACEOF
10070rm -f conftest.$ac_objext
10071if { (ac_try="$ac_compile"
10072case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10075esac
10076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_compile") 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } && {
10084 test -z "$ac_cxx_werror_flag" ||
10085 test ! -s conftest.err
10086 } && test -s conftest.$ac_objext; then
10087 ac_cv_type_signal=int
10088else
10089 echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_type_signal=void
10093fi
10094
10095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096fi
10097{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10098echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10099
10100cat >>confdefs.h <<_ACEOF
10101#define RETSIGTYPE $ac_cv_type_signal
10102_ACEOF
10103
10104
10105
10106
10107
10108
10109for ac_func in \ 8227for ac_func in unsetenv
10110 unsetenv \
10111 setutent \
10112 on_exit \
10113
10114do 8228do
10115as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8230{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10117echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8232if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10257 8371
10258 8372
10259 8373
10260 8374
10261for ac_func in \ 8375for ac_func in \
10262 ttyslot \
10263 updwtmp \ 8376 updwtmp \
10264 updwtmpx \ 8377 updwtmpx \
8378 updlastlogx \
10265 8379
10266do 8380do
10267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10268{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8382{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10355fi 8469fi
10356done 8470done
10357 8471
10358 8472
10359 8473
10360
10361
10362for ac_header in \ 8474for ac_header in lastlog.h
10363 utmp.h \
10364 utmpx.h \
10365 lastlog.h \
10366
10367do 8475do
10368as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10370 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10502 8610
10503done 8611done
10504 8612
10505 8613
10506 8614
10507if test "${ac_cv_header_utmp_h+set}" = set; then 8615
8616for ac_header in utmp.h
8617do
8618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10508 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10509echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10510if test "${ac_cv_header_utmp_h+set}" = set; then 8622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6 8623 echo $ECHO_N "(cached) $ECHO_C" >&6
10512fi 8624fi
8625ac_res=`eval echo '${'$as_ac_Header'}'`
10513{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
10514echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8627echo "${ECHO_T}$ac_res" >&6; }
10515else 8628else
10516 # Is the header compilable? 8629 # Is the header compilable?
10517{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10518echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10519cat >conftest.$ac_ext <<_ACEOF 8632cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */ 8633/* confdefs.h. */
10521_ACEOF 8634_ACEOF
10522cat confdefs.h >>conftest.$ac_ext 8635cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF 8636cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */ 8637/* end confdefs.h. */
10525$ac_includes_default 8638$ac_includes_default
10526#include <utmp.h> 8639#include <$ac_header>
10527_ACEOF 8640_ACEOF
10528rm -f conftest.$ac_objext 8641rm -f conftest.$ac_objext
10529if { (ac_try="$ac_compile" 8642if { (ac_try="$ac_compile"
10530case "(($ac_try" in 8643case "(($ac_try" in
10531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10555echo "${ECHO_T}$ac_header_compiler" >&6; } 8668echo "${ECHO_T}$ac_header_compiler" >&6; }
10556 8669
10557# Is the header present? 8670# Is the header present?
10558{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10559echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10560cat >conftest.$ac_ext <<_ACEOF 8673cat >conftest.$ac_ext <<_ACEOF
10561/* confdefs.h. */ 8674/* confdefs.h. */
10562_ACEOF 8675_ACEOF
10563cat confdefs.h >>conftest.$ac_ext 8676cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF 8677cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */ 8678/* end confdefs.h. */
10566#include <utmp.h> 8679#include <$ac_header>
10567_ACEOF 8680_ACEOF
10568if { (ac_try="$ac_cpp conftest.$ac_ext" 8681if { (ac_try="$ac_cpp conftest.$ac_ext"
10569case "(($ac_try" in 8682case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;; 8684 *) ac_try_echo=$ac_try;;
10594echo "${ECHO_T}$ac_header_preproc" >&6; } 8707echo "${ECHO_T}$ac_header_preproc" >&6; }
10595 8708
10596# So? What about this header? 8709# So? What about this header?
10597case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8710case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10598 yes:no: ) 8711 yes:no: )
10599 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10600echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10601 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 8714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10602echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10603 ac_header_preproc=yes 8716 ac_header_preproc=yes
10604 ;; 8717 ;;
10605 no:yes:* ) 8718 no:yes:* )
10606 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10607echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 8721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10609echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10611echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 8725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10613echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 8727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10615echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 8729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10617echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10618 8731
10619 ;; 8732 ;;
10620esac 8733esac
10621{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10622echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10623if test "${ac_cv_header_utmp_h+set}" = set; then 8736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6 8737 echo $ECHO_N "(cached) $ECHO_C" >&6
10625else 8738else
10626 ac_cv_header_utmp_h=$ac_header_preproc 8739 eval "$as_ac_Header=\$ac_header_preproc"
10627fi 8740fi
8741ac_res=`eval echo '${'$as_ac_Header'}'`
10628{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10629echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8743echo "${ECHO_T}$ac_res" >&6; }
10630 8744
10631fi 8745fi
10632if test $ac_cv_header_utmp_h = yes; then 8746if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8749_ACEOF
10633 { echo "$as_me:$LINENO: checking for struct utmp" >&5 8750 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10634echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 8751echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10635if test "${struct_utmp+set}" = set; then 8752if test "${struct_utmp+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6 8753 echo $ECHO_N "(cached) $ECHO_C" >&6
10637else 8754else
10638 cat >conftest.$ac_ext <<_ACEOF 8755 cat >conftest.$ac_ext <<_ACEOF
10805 8922
10806fi 8923fi
10807 8924
10808fi 8925fi
10809 8926
8927done
10810 8928
10811 8929
10812if test "${ac_cv_header_utmpx_h+set}" = set; then 8930
8931for ac_header in utmpx.h
8932do
8933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10813 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 8935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10814echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 8936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10815if test "${ac_cv_header_utmpx_h+set}" = set; then 8937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6 8938 echo $ECHO_N "(cached) $ECHO_C" >&6
10817fi 8939fi
8940ac_res=`eval echo '${'$as_ac_Header'}'`
10818{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 8941 { echo "$as_me:$LINENO: result: $ac_res" >&5
10819echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 8942echo "${ECHO_T}$ac_res" >&6; }
10820else 8943else
10821 # Is the header compilable? 8944 # Is the header compilable?
10822{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 8945{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10823echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 8946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10824cat >conftest.$ac_ext <<_ACEOF 8947cat >conftest.$ac_ext <<_ACEOF
10825/* confdefs.h. */ 8948/* confdefs.h. */
10826_ACEOF 8949_ACEOF
10827cat confdefs.h >>conftest.$ac_ext 8950cat confdefs.h >>conftest.$ac_ext
10828cat >>conftest.$ac_ext <<_ACEOF 8951cat >>conftest.$ac_ext <<_ACEOF
10829/* end confdefs.h. */ 8952/* end confdefs.h. */
10830$ac_includes_default 8953$ac_includes_default
10831#include <utmpx.h> 8954#include <$ac_header>
10832_ACEOF 8955_ACEOF
10833rm -f conftest.$ac_objext 8956rm -f conftest.$ac_objext
10834if { (ac_try="$ac_compile" 8957if { (ac_try="$ac_compile"
10835case "(($ac_try" in 8958case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8982{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10860echo "${ECHO_T}$ac_header_compiler" >&6; } 8983echo "${ECHO_T}$ac_header_compiler" >&6; }
10861 8984
10862# Is the header present? 8985# Is the header present?
10863{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 8986{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10864echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 8987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10865cat >conftest.$ac_ext <<_ACEOF 8988cat >conftest.$ac_ext <<_ACEOF
10866/* confdefs.h. */ 8989/* confdefs.h. */
10867_ACEOF 8990_ACEOF
10868cat confdefs.h >>conftest.$ac_ext 8991cat confdefs.h >>conftest.$ac_ext
10869cat >>conftest.$ac_ext <<_ACEOF 8992cat >>conftest.$ac_ext <<_ACEOF
10870/* end confdefs.h. */ 8993/* end confdefs.h. */
10871#include <utmpx.h> 8994#include <$ac_header>
10872_ACEOF 8995_ACEOF
10873if { (ac_try="$ac_cpp conftest.$ac_ext" 8996if { (ac_try="$ac_cpp conftest.$ac_ext"
10874case "(($ac_try" in 8997case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;; 8999 *) ac_try_echo=$ac_try;;
10899echo "${ECHO_T}$ac_header_preproc" >&6; } 9022echo "${ECHO_T}$ac_header_preproc" >&6; }
10900 9023
10901# So? What about this header? 9024# So? What about this header?
10902case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9025case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10903 yes:no: ) 9026 yes:no: )
10904 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10905echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10907echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10908 ac_header_preproc=yes 9031 ac_header_preproc=yes
10909 ;; 9032 ;;
10910 no:yes:* ) 9033 no:yes:* )
10911 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10912echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 9036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10914echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10916echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 9040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10918echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10919 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 9042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10920echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10921 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 9044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10922echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10923 9046
10924 ;; 9047 ;;
10925esac 9048esac
10926{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10927echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10928if test "${ac_cv_header_utmpx_h+set}" = set; then 9051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10929 echo $ECHO_N "(cached) $ECHO_C" >&6 9052 echo $ECHO_N "(cached) $ECHO_C" >&6
10930else 9053else
10931 ac_cv_header_utmpx_h=$ac_header_preproc 9054 eval "$as_ac_Header=\$ac_header_preproc"
10932fi 9055fi
9056ac_res=`eval echo '${'$as_ac_Header'}'`
10933{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9057 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9058echo "${ECHO_T}$ac_res" >&6; }
10935 9059
10936fi 9060fi
10937if test $ac_cv_header_utmpx_h = yes; then 9061if test `eval echo '${'$as_ac_Header'}'` = yes; then
9062 cat >>confdefs.h <<_ACEOF
9063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9064_ACEOF
10938 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9065 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10939echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9066echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10940if test "${struct_utmpx+set}" = set; then 9067if test "${struct_utmpx+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6 9068 echo $ECHO_N "(cached) $ECHO_C" >&6
10942else 9069else
10943 cat >conftest.$ac_ext <<_ACEOF 9070 cat >conftest.$ac_ext <<_ACEOF
11110 9237
11111fi 9238fi
11112 9239
11113fi 9240fi
11114 9241
9242done
11115 9243
11116{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9244{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11117echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9245echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11118if test "${struct_lastlog+set}" = set; then 9246if test "${struct_lastlog+set}" = set; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6 9247 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 9818
11691cat >>confdefs.h <<_ACEOF 9819cat >>confdefs.h <<_ACEOF
11692#define LASTLOG_FILE "$path_lastlog" 9820#define LASTLOG_FILE "$path_lastlog"
11693_ACEOF 9821_ACEOF
11694 9822
11695 if test -d "$path_lastlog"; then
11696
11697cat >>confdefs.h <<\_ACEOF
11698#define LASTLOG_IS_DIR 1
11699_ACEOF
11700
11701 fi
11702fi 9823fi
11703 9824
11704{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 9825{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11705echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 9826echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11706if test "${path_lastlogx+set}" = set; then 9827if test "${path_lastlogx+set}" = set; then
11788 9909
11789fi 9910fi
11790 9911
11791 9912
11792 9913
11793{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11794echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11795if test "${rxvt_cv_path_ttytab+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 for ttys_file in /etc/ttys /etc/ttytab;
11799do
11800 if test -f "$ttys_file" ; then
11801 rxvt_cv_path_ttytab=$ttys_file
11802 break
11803 fi
11804done
11805 9914
11806fi
11807{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11808echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11809if test x$rxvt_cv_path_ttytab != x; then
11810
11811cat >>confdefs.h <<_ACEOF
11812#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11813_ACEOF
11814
11815fi
11816
11817
11818ac_save_LIBS=$LIBS 9915save_LIBS=$LIBS
11819ac_save_CFLAGS=$CFLAGS 9916save_CFLAGS=$CFLAGS
11820CFLAGS="$CFLAGS $X_CFLAGS" 9917CFLAGS="$CFLAGS $X_CFLAGS"
11821LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 9918LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11822if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 9919if test x$support_xim = xyes; then
11823 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11824fi
11825{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 9920 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11826echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 9921echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11827if test "${rxvt_cv_func_xlocale+set}" = set; then 9922if test "${rxvt_cv_func_xlocale+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6 9923 echo $ECHO_N "(cached) $ECHO_C" >&6
11829else 9924else
11830 if test "$cross_compiling" = yes; then 9925 if test "$cross_compiling" = yes; then
11831 : 9926 :
11832else 9927else
11833 cat >conftest.$ac_ext <<_ACEOF 9928 cat >conftest.$ac_ext <<_ACEOF
11834/* confdefs.h. */ 9929/* confdefs.h. */
11835_ACEOF 9930_ACEOF
11836cat confdefs.h >>conftest.$ac_ext 9931cat confdefs.h >>conftest.$ac_ext
11837cat >>conftest.$ac_ext <<_ACEOF 9932cat >>conftest.$ac_ext <<_ACEOF
11838/* end confdefs.h. */ 9933/* end confdefs.h. */
11839#include <X11/Xlib.h> 9934#include <X11/Xlib.h>
11840#include <stdlib.h> 9935 #include <stdlib.h>
11841main() { 9936 main() {
11842char *p; 9937 char *p;
11843if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 9938 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11844exit (XSupportsLocale() ? 0 : 1); 9939 exit (XSupportsLocale() ? 0 : 1);
11845else 9940 else
11846exit (1);} 9941 exit (1);}
11847_ACEOF 9942_ACEOF
11848rm -f conftest$ac_exeext 9943rm -f conftest$ac_exeext
11849if { (ac_try="$ac_link" 9944if { (ac_try="$ac_link"
11850case "(($ac_try" in 9945case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_try") 2>&5 9959 (eval "$ac_try") 2>&5
11865 ac_status=$? 9960 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then 9962 (exit $ac_status); }; }; then
11868 rxvt_cv_func_xlocale=yes 9963 rxvt_cv_func_xlocale=yes
11869else 9964else
11870 echo "$as_me: program exited with status $ac_status" >&5 9965 echo "$as_me: program exited with status $ac_status" >&5
11871echo "$as_me: failed program was:" >&5 9966echo "$as_me: failed program was:" >&5
11872sed 's/^/| /' conftest.$ac_ext >&5 9967sed 's/^/| /' conftest.$ac_ext >&5
11873 9968
11879 9974
11880 9975
11881fi 9976fi
11882{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 9977{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11883echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 9978echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11884if test x$support_xim = xyes; then
11885 if test x$rxvt_cv_func_xlocale = xyes; then 9979 if test x$rxvt_cv_func_xlocale = xyes; then
11886 9980
11887cat >>confdefs.h <<\_ACEOF 9981cat >>confdefs.h <<\_ACEOF
11888#define USE_XIM 1 9982#define USE_XIM 1
11889_ACEOF 9983_ACEOF
11890 9984
9985 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
9986echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
9987if test "${rxvt_broken_ximcb+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9989else
9990 cat >conftest.$ac_ext <<_ACEOF
9991
9992 #include <X11/Xlib.h>
9993
9994 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
9995
9996 void f() {
9997 XIMCallback cb;
9998 cb.callback = im_destroy_cb;
9999 }
10000
10001_ACEOF
10002rm -f conftest.$ac_objext
10003if { (ac_try="$ac_compile"
10004case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007esac
10008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_compile") 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_cxx_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest.$ac_objext; then
10019 rxvt_broken_ximcb=yes
10020else
10021 echo "$as_me: failed program was:" >&5
10022sed 's/^/| /' conftest.$ac_ext >&5
10023
10024 rxvt_broken_ximcb=no
10025fi
10026
10027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028fi
10029{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
10030echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
10031
10032 if test x$rxvt_broken_ximcb = xyes; then
10033
10034cat >>confdefs.h <<\_ACEOF
10035#define XIMCB_PROTO_BROKEN 1
10036_ACEOF
10037
10038 fi
11891 fi 10039 fi
11892fi 10040fi
11893 10041
11894{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 10042{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11895echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 10043echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11948cat >>confdefs.h <<\_ACEOF 10096cat >>confdefs.h <<\_ACEOF
11949#define HAVE_XSETLOCALE 1 10097#define HAVE_XSETLOCALE 1
11950_ACEOF 10098_ACEOF
11951 10099
11952fi 10100fi
11953LIBS=$ac_save_LIBS 10101LIBS=$save_LIBS
11954CFLAGS=$ac_save_CFLAGS 10102CFLAGS=$save_CFLAGS
11955 10103
11956{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10104{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11957echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10105echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11958if test "${rxvt_cv_func_setlocale+set}" = set; then 10106if test "${rxvt_cv_func_setlocale+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6 10107 echo $ECHO_N "(cached) $ECHO_C" >&6
12162 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 10310 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12163echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 10311echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12164 { (exit 1); exit 1; }; } 10312 { (exit 1); exit 1; }; }
12165fi 10313fi
12166 10314
12167
12168{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12169echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12170if test "${rxvt_broken_ximcb+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12172else
12173 cat >conftest.$ac_ext <<_ACEOF
12174
12175#include <X11/Xlib.h>
12176
12177void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12178
12179void f() {
12180 XIMCallback cb;
12181 cb.callback = im_destroy_cb;
12182}
12183
12184_ACEOF
12185rm -f conftest.$ac_objext
12186if { (ac_try="$ac_compile"
12187case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_cxx_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest.$ac_objext; then
12202 rxvt_broken_ximcb=yes
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
12207 rxvt_broken_ximcb=no
12208fi
12209
12210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211fi
12212{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12213echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12214
12215if test x$rxvt_broken_ximcb = xyes; then
12216
12217cat >>confdefs.h <<\_ACEOF
12218#define XIMCB_PROTO_BROKEN 1
12219_ACEOF
12220
12221fi
12222 10315
12223 10316
12224 10317
12225 10318
12226 10319
12907echo "${ECHO_T}no" >&6; } 11000echo "${ECHO_T}no" >&6; }
12908fi 11001fi
12909 11002
12910 11003
12911 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11004 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12912 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11005 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12913 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11006 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12914 else 11007 else
12915 # Extract the first word of "xft-config", so it can be a program name with args. 11008 # Extract the first word of "xft-config", so it can be a program name with args.
12916set dummy xft-config; ac_word=$2 11009set dummy xft-config; ac_word=$2
12917{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12952echo "${ECHO_T}no" >&6; } 11045echo "${ECHO_T}no" >&6; }
12953fi 11046fi
12954 11047
12955 11048
12956 if test $XFT_CONFIG != no; then 11049 if test $XFT_CONFIG != no; then
12957 LIBS="$LIBS `$XFT_CONFIG --libs`" 11050 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12958 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11051 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12959 fi 11052 fi
12960 fi 11053 fi
12961 11054
11055 save_LIBS="$LIBS"
11056 LIBS="$LIBS $X_LIBS"
12962 11057
12963for ac_header in X11/Xft/Xft.h 11058for ac_header in X11/Xft/Xft.h
12964do 11059do
12965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13099 support_xft=no 11194 support_xft=no
13100fi 11195fi
13101 11196
13102done 11197done
13103 11198
13104
13105{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11199 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13106echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11200echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13107if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11201if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6 11202 echo $ECHO_N "(cached) $ECHO_C" >&6
13109else 11203else
13110 ac_check_lib_save_LIBS=$LIBS 11204 ac_check_lib_save_LIBS=$LIBS
13162LIBS=$ac_check_lib_save_LIBS 11256LIBS=$ac_check_lib_save_LIBS
13163fi 11257fi
13164{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11258{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13165echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11259echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13166if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11260if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13167 cat >>confdefs.h <<_ACEOF 11261 :
13168#define HAVE_LIBXFT 1
13169_ACEOF
13170
13171 LIBS="-lXft $LIBS"
13172
13173else 11262else
13174 support_xft=no 11263 support_xft=no
13175fi 11264fi
13176 11265
11266 LIBS="$save_LIBS"
13177 11267
13178 if test x$support_xft = xyes; then 11268 if test x$support_xft = xyes; then
13179 11269
13180cat >>confdefs.h <<\_ACEOF 11270cat >>confdefs.h <<\_ACEOF
13181#define XFT 1 11271#define XFT 1
13209cat >>confdefs.h <<\_ACEOF 11299cat >>confdefs.h <<\_ACEOF
13210#define OFF_FOCUS_FADING 1 11300#define OFF_FOCUS_FADING 1
13211_ACEOF 11301_ACEOF
13212 11302
13213fi 11303fi
13214if test x$support_tinting = xyes; then
13215
13216cat >>confdefs.h <<\_ACEOF
13217#define TINTING 1
13218_ACEOF
13219
13220fi
13221if test x$support_inheritpixmap = xyes; then 11304if test x$support_inheritpixmap = xyes; then
13222 11305
13223cat >>confdefs.h <<\_ACEOF 11306cat >>confdefs.h <<\_ACEOF
13224#define ENABLE_TRANSPARENCY 1 11307#define ENABLE_TRANSPARENCY 1
13225_ACEOF 11308_ACEOF
13258cat >>confdefs.h <<\_ACEOF 11341cat >>confdefs.h <<\_ACEOF
13259#define MOUSE_SLIP_WHEELING 1 11342#define MOUSE_SLIP_WHEELING 1
13260_ACEOF 11343_ACEOF
13261 11344
13262fi 11345fi
13263if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13264
13265cat >>confdefs.h <<\_ACEOF
13266#define XPM_BACKGROUND 1
13267_ACEOF
13268
13269fi
13270
13271if test x$support_afterimage = xyes; then 11346if test x$support_afterimage = xyes; then
13272 11347
13273cat >>confdefs.h <<\_ACEOF 11348cat >>confdefs.h <<\_ACEOF
13274#define HAVE_AFTERIMAGE 1 11349#define HAVE_AFTERIMAGE 1
13275_ACEOF 11350_ACEOF
13276 11351
13277fi
13278
13279if test x$support_afterstep = xyes; then
13280 11352
13281cat >>confdefs.h <<\_ACEOF 11353cat >>confdefs.h <<\_ACEOF
13282#define AFTERSTEP_INTEGRATION 1 11354#define BG_IMAGE_FROM_FILE 1
13283_ACEOF 11355_ACEOF
13284 11356
13285fi 11357fi
11358
13286 11359
13287if test x$support_scroll_rxvt = xyes; then 11360if test x$support_scroll_rxvt = xyes; then
13288 11361
13289cat >>confdefs.h <<\_ACEOF 11362cat >>confdefs.h <<\_ACEOF
13290#define RXVT_SCROLLBAR 1 11363#define RXVT_SCROLLBAR 1
13559 11632
13560 11633
13561 11634
13562 11635
13563 11636
13564if test x$support_perl = xyes; then
13565 support_frills=yes
13566fi
13567 11637
13568 11638
13569 11639
13570 11640
13571 11641
13572
13573if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13574 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13575 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13576 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13577 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13578fi
13579 11642
13580 11643
13581 11644
13582 11645
13583 11646
13603if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 11666if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13604 include_stdint_h="#include <stdint.h>" 11667 include_stdint_h="#include <stdint.h>"
13605else 11668else
13606 include_stdint_h="/* #include <stdint.h> */" 11669 include_stdint_h="/* #include <stdint.h> */"
13607fi 11670fi
13608if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13609 include_stdarg_h="#include <cstdarg>"
13610else
13611 include_stdarg_h="/* #include <cstdarg> */"
13612fi
13613if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13614 include_stdlib_h="#include <cstdlib>"
13615else
13616 include_stdlib_h="/* #include <cstdlib> */"
13617fi
13618if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13619 include_unistd_h="#include <unistd.h>"
13620else
13621 include_unistd_h="/* #include <unistd.h> */"
13622fi
13623if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13624 include_string_h="#include <cstring>"
13625else
13626 include_string_h="/* #include <cstring> */"
13627fi
13628if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13629 include_fcntl_h="#include <fcntl.h>"
13630else
13631 include_fcntl_h="/* #include <fcntl.h> */"
13632fi
13633if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13634 include_util_h="#include <util.h>"
13635else
13636 include_util_h="/* #include <util.h> */"
13637fi
13638if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13639 include_assert_h="#include <assert.h>"
13640else
13641 include_assert_h="/* #include <assert.h> */"
13642fi
13643if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then 11671if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13644 include_sys_ioctl_h="#include <sys/ioctl.h>" 11672 include_sys_ioctl_h="#include <sys/ioctl.h>"
13645else 11673else
13646 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 11674 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13647fi 11675fi
13648if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13649 include_sys_select_h="#include <sys/select.h>"
13650else
13651 include_sys_select_h="/* #include <sys/select.h> */"
13652fi
13653if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then 11676if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13654 include_sys_strredir_h="#include <sys/strredir.h>" 11677 include_sys_strredir_h="#include <sys/strredir.h>"
13655else 11678else
13656 include_sys_strredir_h="/* #include <sys/strredir.h> */" 11679 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13657fi
13658if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13659 include_sys_time_h="#include <sys/time.h>"
13660else
13661 include_sys_time_h="/* #include <sys/time.h> */"
13662fi
13663if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13664 include_time_h="#include <time.h>"
13665else
13666 include_time_h="/* #include <time.h> */"
13667fi 11680fi
13668 11681
13669ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11682ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13670 11683
13671cat >confcache <<\_ACEOF 11684cat >confcache <<\_ACEOF
14332host_cpu!$host_cpu$ac_delim 12345host_cpu!$host_cpu$ac_delim
14333host_vendor!$host_vendor$ac_delim 12346host_vendor!$host_vendor$ac_delim
14334host_os!$host_os$ac_delim 12347host_os!$host_os$ac_delim
14335VERSION!$VERSION$ac_delim 12348VERSION!$VERSION$ac_delim
14336DATE!$DATE$ac_delim 12349DATE!$DATE$ac_delim
14337LSMDATE!$LSMDATE$ac_delim
14338LIBVERSION!$LIBVERSION$ac_delim
14339CC!$CC$ac_delim 12350CC!$CC$ac_delim
14340CFLAGS!$CFLAGS$ac_delim 12351CFLAGS!$CFLAGS$ac_delim
14341LDFLAGS!$LDFLAGS$ac_delim 12352LDFLAGS!$LDFLAGS$ac_delim
14342CPPFLAGS!$CPPFLAGS$ac_delim 12353CPPFLAGS!$CPPFLAGS$ac_delim
14343ac_ct_CC!$ac_ct_CC$ac_delim 12354ac_ct_CC!$ac_ct_CC$ac_delim
14351INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12362INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14352INSTALL_DATA!$INSTALL_DATA$ac_delim 12363INSTALL_DATA!$INSTALL_DATA$ac_delim
14353GREP!$GREP$ac_delim 12364GREP!$GREP$ac_delim
14354EGREP!$EGREP$ac_delim 12365EGREP!$EGREP$ac_delim
14355LINKER!$LINKER$ac_delim 12366LINKER!$LINKER$ac_delim
14356CXXLIB!$CXXLIB$ac_delim
14357INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14358RXVTNAME!$RXVTNAME$ac_delim 12367RXVTNAME!$RXVTNAME$ac_delim
12368CXXCPP!$CXXCPP$ac_delim
14359TIC!$TIC$ac_delim 12369TIC!$TIC$ac_delim
14360XMKMF!$XMKMF$ac_delim 12370XMKMF!$XMKMF$ac_delim
14361CXXCPP!$CXXCPP$ac_delim
14362X_CFLAGS!$X_CFLAGS$ac_delim 12371X_CFLAGS!$X_CFLAGS$ac_delim
14363X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12372X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14364X_LIBS!$X_LIBS$ac_delim 12373X_LIBS!$X_LIBS$ac_delim
14365X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12374X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14366afterimage_config!$afterimage_config$ac_delim 12375afterimage_config!$afterimage_config$ac_delim
14367XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14368XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14369XPM_LIBS!$XPM_LIBS$ac_delim
14370rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14371rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14372rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14373rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14374rxvt_intp_define!$rxvt_intp_define$ac_delim
14375rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14376PKG_CONFIG!$PKG_CONFIG$ac_delim 12376PKG_CONFIG!$PKG_CONFIG$ac_delim
14377XFT_CONFIG!$XFT_CONFIG$ac_delim 12377XFT_CONFIG!$XFT_CONFIG$ac_delim
14378PERL!$PERL$ac_delim 12378PERL!$PERL$ac_delim
14379PERLLIB!$PERLLIB$ac_delim 12379PERLLIB!$PERLLIB$ac_delim
14380PERLFLAGS!$PERLFLAGS$ac_delim 12380PERLFLAGS!$PERLFLAGS$ac_delim
14381PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12381PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14382IF_PERL!$IF_PERL$ac_delim 12382IF_PERL!$IF_PERL$ac_delim
14383PERL_O!$PERL_O$ac_delim 12383PERL_O!$PERL_O$ac_delim
14384LIBAFTERIMAGE_CFLAGS!$LIBAFTERIMAGE_CFLAGS$ac_delim 12384AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14385AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12385AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14386include_stdint_h!$include_stdint_h$ac_delim 12386include_stdint_h!$include_stdint_h$ac_delim
12387include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
12388include_sys_strredir_h!$include_sys_strredir_h$ac_delim
12389LIBOBJS!$LIBOBJS$ac_delim
12390LTLIBOBJS!$LTLIBOBJS$ac_delim
14387_ACEOF 12391_ACEOF
14388 12392
14389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12393 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
14390 break 12394 break
14391 elif $ac_last_try; then 12395 elif $ac_last_try; then
14392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14393echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12397echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14394 { (exit 1); exit 1; }; } 12398 { (exit 1); exit 1; }; }
14403 ac_eof=`expr $ac_eof + 1` 12407 ac_eof=`expr $ac_eof + 1`
14404fi 12408fi
14405 12409
14406cat >>$CONFIG_STATUS <<_ACEOF 12410cat >>$CONFIG_STATUS <<_ACEOF
14407cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12411cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14409_ACEOF
14410sed '
14411s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14412s/^/s,@/; s/!/@,|#_!!_#|/
14413:n
14414t n
14415s/'"$ac_delim"'$/,g/; t
14416s/$/\\/; p
14417N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14418' >>$CONFIG_STATUS <conf$$subs.sed
14419rm -f conf$$subs.sed
14420cat >>$CONFIG_STATUS <<_ACEOF
14421CEOF$ac_eof
14422_ACEOF
14423
14424
14425ac_delim='%!_!# '
14426for ac_last_try in false false false false false :; do
14427 cat >conf$$subs.sed <<_ACEOF
14428include_stdarg_h!$include_stdarg_h$ac_delim
14429include_stdlib_h!$include_stdlib_h$ac_delim
14430include_unistd_h!$include_unistd_h$ac_delim
14431include_string_h!$include_string_h$ac_delim
14432include_fcntl_h!$include_fcntl_h$ac_delim
14433include_util_h!$include_util_h$ac_delim
14434include_assert_h!$include_assert_h$ac_delim
14435include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14436include_sys_select_h!$include_sys_select_h$ac_delim
14437include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14438include_sys_time_h!$include_sys_time_h$ac_delim
14439include_time_h!$include_time_h$ac_delim
14440LIBOBJS!$LIBOBJS$ac_delim
14441LTLIBOBJS!$LTLIBOBJS$ac_delim
14442_ACEOF
14443
14444 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
14445 break
14446 elif $ac_last_try; then
14447 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14448echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14449 { (exit 1); exit 1; }; }
14450 else
14451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14452 fi
14453done
14454
14455ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14456if test -n "$ac_eof"; then
14457 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14458 ac_eof=`expr $ac_eof + 1`
14459fi
14460
14461cat >>$CONFIG_STATUS <<_ACEOF
14462cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14463/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14464_ACEOF 12413_ACEOF
14465sed ' 12414sed '
14466s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12415s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14467s/^/s,@/; s/!/@,|#_!!_#|/ 12416s/^/s,@/; s/!/@,|#_!!_#|/
14720s&@builddir@&$ac_builddir&;t t 12669s&@builddir@&$ac_builddir&;t t
14721s&@abs_builddir@&$ac_abs_builddir&;t t 12670s&@abs_builddir@&$ac_abs_builddir&;t t
14722s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12671s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14723s&@INSTALL@&$ac_INSTALL&;t t 12672s&@INSTALL@&$ac_INSTALL&;t t
14724$ac_datarootdir_hack 12673$ac_datarootdir_hack
14725" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12674" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14726 12675
14727test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12676test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14728 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12677 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14729 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12678 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14730 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12679 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14878 Install path: ${prefix}/bin 12827 Install path: ${prefix}/bin
14879 Compiler: $CXX 12828 Compiler: $CXX
14880 Compiler flags: $CXXFLAGS 12829 Compiler flags: $CXXFLAGS
14881 Linker: $LINKER" 12830 Linker: $LINKER"
14882 12831
14883if test x$support_xpm = xyes; then
14884 echo " Xpm library: $XPM_LIBS"
14885fi
14886
14887if test x$support_afterimage = xyes; then
14888 echo " AfterImage support: yes"
14889fi
14890
14891if test x$support_afterstep = xyes; then
14892 echo " AfterStep integration: yes"
14893fi
14894
14895if test x$term != x; then 12832if test x$term != x; then
14896 echo " set TERM to: $term" 12833 echo " set TERM to: $term"
14897fi 12834fi
14898if test x$terminfo != x; then 12835if test x$terminfo != x; then
14899 echo " set TERMINFO to: $terminfo" 12836 echo " set TERMINFO to: $terminfo"
14903if test x$RESFALLBACK != x; then 12840if test x$RESFALLBACK != x; then
14904 echo " resource class fallback: $RESFALLBACK" 12841 echo " resource class fallback: $RESFALLBACK"
14905fi 12842fi
14906echo 12843echo
14907echo " embedded perl: $support_perl" 12844echo " embedded perl: $support_perl"
12845echo " libafterimage: $support_afterimage"
14908echo 12846echo
14909if test x$support_xpm = xneedsmanualspecification; then
14910 echo ".----------------------------------------------------------------."
14911 echo ". WARNING: --enable-xpm-background was specified however the ."
14912 echo ". XPM includes files and libraries could not be found. ."
14913 echo ". XPM backgrounds are now being DISABLED! If you want ."
14914 echo ". to use them you should rerun configure with the ."
14915 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14916 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14917 echo ".----------------------------------------------------------------."
14918fi
14919if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 12847if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14920 echo ".----------------------------------------------------------------." 12848 echo ".----------------------------------------------------------------."
14921 echo ". WARNING: --enable-xim was specified however the locale support ." 12849 echo ". WARNING: --enable-xim was specified however the locale support ."
14922 echo ". functions could not be found. ." 12850 echo ". functions could not be found. ."
14923 echo ". XIM is now being DISABLED! ." 12851 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines