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

Comparing rxvt-unicode/configure (file contents):
Revision 1.109 by root, Wed Aug 1 18:38:15 2007 UTC vs.
Revision 1.130 by root, Sat Dec 26 10:24:04 2009 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
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
681CXXCPP
684TIC 682TIC
685XMKMF 683XMKMF
686CXXCPP
687X_CFLAGS 684X_CFLAGS
688X_PRE_LIBS 685X_PRE_LIBS
689X_LIBS 686X_LIBS
690X_EXTRA_LIBS 687X_EXTRA_LIBS
691afterimage_config 688afterimage_config
692XPM_CPPFLAGS
693XPM_CFLAGS
694XPM_LIBS
695rxvt_int16_typedef
696rxvt_uint16_typedef
697rxvt_int32_typedef
698rxvt_uint32_typedef
699rxvt_intp_define
700rxvt_u_intp_define
701PKG_CONFIG 689PKG_CONFIG
702XFT_CONFIG 690XFT_CONFIG
703PERL 691PERL
704PERLLIB 692PERLLIB
705PERLFLAGS 693PERLFLAGS
706PERLPRIVLIBEXP 694PERLPRIVLIBEXP
707IF_PERL 695IF_PERL
708PERL_O 696PERL_O
709AFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
710AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
711include_stdint_h
712include_stdarg_h
713include_stdlib_h
714include_unistd_h
715include_string_h
716include_fcntl_h
717include_util_h
718include_assert_h
719include_sys_ioctl_h
720include_sys_select_h
721include_sys_strredir_h
722include_sys_time_h
723include_time_h
724LIBOBJS 699LIBOBJS
725LTLIBOBJS' 700LTLIBOBJS'
726ac_subst_files='' 701ac_subst_files=''
727 ac_precious_vars='build_alias 702 ac_precious_vars='build_alias
728host_alias 703host_alias
734CPPFLAGS 709CPPFLAGS
735CXX 710CXX
736CXXFLAGS 711CXXFLAGS
737CCC 712CCC
738CPP 713CPP
739XMKMF
740CXXCPP' 714CXXCPP
715XMKMF'
741 716
742 717
743# Initialize some variables set by options. 718# Initialize some variables set by options.
744ac_init_help= 719ac_init_help=
745ac_init_version=false 720ac_init_version=false
1318 1293
1319Optional Features: 1294Optional Features:
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1323 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1324 NOTE: automatically enabled with --enable-shared 1299 --enable-assert enable assertions
1300 --enable-warnings turn on g++ warnings
1325 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1301 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1326 --enable-combining enable composition of base and combining characters 1302 --enable-combining enable composition of base and combining characters
1327 --enable-xft enable xft support on systems that have it 1303 --enable-xft enable xft support on systems that have it
1328 --enable-font-styles enable bold and italic support 1304 --enable-font-styles enable bold and italic support
1329 --enable-xpm-background enable background pixmaps
1330 --enable-afterimage enable integration with libAfterImage for background images 1305 --enable-afterimage enable integration with libAfterImage for background images
1331 --enable-transparency enable transparent backgrounds 1306 --enable-transparency enable transparent backgrounds
1332 --enable-tinting enable tinting of transparent bg
1333 --enable-fading enable colors fading when off focus 1307 --enable-fading enable colors fading when off focus
1334 --enable-rxvt-scroll enable rxvt style scrollbar 1308 --enable-rxvt-scroll enable rxvt style scrollbar
1335 --enable-next-scroll enable NeXT style scrollbar 1309 --enable-next-scroll enable NeXT style scrollbar
1336 --enable-xterm-scroll enable Xterm style scrollbar 1310 --enable-xterm-scroll enable Xterm style scrollbar
1337 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1338 --enable-plain-scroll enable plain style scrollbar
1339 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1340 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1341 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1342 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1343 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1344 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1317 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1345 --disable-swapscreen disable swap screen support 1318 --disable-swapscreen disable swap screen support
1346 --enable-iso14755 enable support for extended ISO 14755 modes 1319 --enable-iso14755 enable support for extended ISO 14755 modes
1347 --enable-frills enable support for rarely used features 1320 --enable-frills enable support for rarely used features
1348 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1321 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1349 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1350 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1351 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1352 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1353 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1354 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1355 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1356 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1358 1331
1359Optional Packages: 1332Optional Packages:
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-afterimage-config=DIR use libAfterImage config script in DIR 1335 --with-afterimage-config=DIR use libAfterImage config script in DIR
1363 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1336 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1364 --with-res-name=NAME use this as default resource name (default: urxvt) 1337 --with-res-name=NAME use this as default resource name (default: urxvt)
1365 --with-res-class=CLASS use this as the resource class (default: URxvt) 1338 --with-res-class=CLASS use this as the resource class (default: URxvt)
1366 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1339 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1367 --with-term=NAME set the terminal to NAME (default: rxvt) 1340 --with-term=NAME set the terminal to NAME (default: rxvt)
1368 --with-terminfo=PATH set the path to the terminfo tree to PATH 1341 --with-terminfo=PATH set the path to the terminfo tree to PATH
1369 --with-x use the X Window System 1342 --with-x use the X Window System
1370 --with-xpm-includes=DIR use XPM includes in DIR
1371 --with-xpm-library=DIR use XPM library in DIR
1372 --with-xpm use XPM
1373 1343
1374Some influential environment variables: 1344Some influential environment variables:
1375 CC C compiler command 1345 CC C compiler command
1376 CFLAGS C compiler flags 1346 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1347 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1350 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir> 1351 you have headers in a nonstandard directory <include dir>
1382 CXX C++ compiler command 1352 CXX C++ compiler command
1383 CXXFLAGS C++ compiler flags 1353 CXXFLAGS C++ compiler flags
1384 CPP C preprocessor 1354 CPP C preprocessor
1355 CXXCPP C++ preprocessor
1385 XMKMF Path to xmkmf, Makefile generator for X Window System 1356 XMKMF Path to xmkmf, Makefile generator for X Window System
1386 CXXCPP C++ preprocessor
1387 1357
1388Use these variables to override the choices made by `configure' or to help 1358Use these variables to override the choices made by `configure' or to help
1389it to find libraries and programs with nonstandard names/locations. 1359it to find libraries and programs with nonstandard names/locations.
1390 1360
1391_ACEOF 1361_ACEOF
1927 1897
1928 1898
1929 1899
1930VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1900VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1931DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1901DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1902
1932echo "" 1903echo ""
1933echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1934echo "" 1905echo ""
1935 1906
1936orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1937
1938 1908
1939ac_ext=c 1909ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3722fi 3692fi
3723rm -f conftest* 3693rm -f conftest*
3724 3694
3725 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3726{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3727echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3728if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3730else 3706else
3877LINKER=$LINKER 3853LINKER=$LINKER
3878 3854
3879 3855
3880if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3881 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3882 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3858 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3883 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */ 3860/* confdefs.h. */
3885_ACEOF 3861_ACEOF
3886cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3925 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3926 fi 3902 fi
3927 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3928fi 3904fi
3929 3905
3930
3931cat >>confdefs.h <<\_ACEOF
3932#define _GNU_SOURCE 1
3933_ACEOF
3934
3935
3936case $host in 3906case $host in
3937 *-*-solaris* ) 3907 *-*-solaris* )
3938 3908
3939cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3940#define _XOPEN_SOURCE 500 3910#define _XOPEN_SOURCE 500
3941_ACEOF 3911_ACEOF
3942 3912
3943 ;; 3913 ;;
3944esac 3914esac
3945
3946 3915
3947{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3948echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3949if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4397fi 4366fi
4398 4367
4399fi 4368fi
4400 4369
4401 4370
4402
4403support_frills=yes 4371support_frills=yes
4404support_inheritpixmap=yes 4372support_inheritpixmap=yes
4405support_tinting=yes
4406support_fading=yes 4373support_fading=yes
4407support_keepscrolling=yes 4374support_keepscrolling=yes
4408support_selectionscrolling=yes 4375support_selectionscrolling=yes
4409support_mousewheel=yes 4376support_mousewheel=yes
4410support_mouseslipwheel=yes 4377support_mouseslipwheel=yes
4411support_text_blink=yes 4378support_text_blink=yes
4412support_pointer_blank=yes 4379support_pointer_blank=yes
4413support_scroll_rxvt=yes 4380support_scroll_rxvt=yes
4414support_scroll_next=yes 4381support_scroll_next=yes
4415support_scroll_xterm=yes 4382support_scroll_xterm=yes
4416support_scroll_plain=yes
4417support_xim=yes 4383support_xim=yes
4418support_xpm=yes
4419support_afterimage=yes 4384support_afterimage=yes
4420support_afterstep=yes 4385support_afterstep=yes
4421support_xft=yes 4386support_xft=yes
4422support_unicode3=no 4387support_unicode3=no
4423support_combining=yes 4388support_combining=yes
4426support_styles=yes 4391support_styles=yes
4427support_perl=yes 4392support_perl=yes
4428codesets=all 4393codesets=all
4429 4394
4430 4395
4431if test "x$enable_shared" = xyes; then
4432
4433cat >>confdefs.h <<\_ACEOF
4434#define LIBRXVT 1
4435_ACEOF
4436
4437 INSTALL_LIBRXVT=yes
4438fi
4439
4440
4441# Check whether --enable-everything was given. 4396# Check whether --enable-everything was given.
4442if test "${enable_everything+set}" = set; then 4397if test "${enable_everything+set}" = set; then
4443 enableval=$enable_everything; 4398 enableval=$enable_everything;
4444 if test x$enableval = xno; then 4399 if test x$enableval = xno; then
4445 support_frills=no 4400 support_frills=no
4446 support_inheritpixmap=no 4401 support_inheritpixmap=no
4447 support_tinting=no
4448 support_fading=no 4402 support_fading=no
4449 support_keepscrolling=no 4403 support_keepscrolling=no
4450 support_selectionscrolling=no 4404 support_selectionscrolling=no
4451 support_lastlog=no 4405 support_lastlog=no
4452 support_mousewheel=no 4406 support_mousewheel=no
4454 support_text_blink=no 4408 support_text_blink=no
4455 support_pointer_blank=no 4409 support_pointer_blank=no
4456 support_scroll_rxvt=no 4410 support_scroll_rxvt=no
4457 support_scroll_next=no 4411 support_scroll_next=no
4458 support_scroll_xterm=no 4412 support_scroll_xterm=no
4459 support_scroll_plain=no
4460 support_utmp=no 4413 support_utmp=no
4461 support_wtmp=no 4414 support_wtmp=no
4462 support_xim=no 4415 support_xim=no
4463 support_xpm=no
4464 support_afterimage=no 4416 support_afterimage=no
4465 support_afterstep=no 4417 support_afterstep=no
4466 support_xft=no 4418 support_xft=no
4467 support_unicode3=no 4419 support_unicode3=no
4468 support_combining=no 4420 support_combining=no
4473 codesets= 4425 codesets=
4474 fi 4426 fi
4475 if test x$enableval = xyes; then 4427 if test x$enableval = xyes; then
4476 support_frills=yes 4428 support_frills=yes
4477 support_inheritpixmap=yes 4429 support_inheritpixmap=yes
4478 support_tinting=yes
4479 support_fading=yes 4430 support_fading=yes
4480 support_keepscrolling=yes 4431 support_keepscrolling=yes
4481 support_selectionscrolling=yes 4432 support_selectionscrolling=yes
4482 support_lastlog=yes 4433 support_lastlog=yes
4483 support_mousewheel=yes 4434 support_mousewheel=yes
4485 support_text_blink=yes 4436 support_text_blink=yes
4486 support_pointer_blank=yes 4437 support_pointer_blank=yes
4487 support_scroll_rxvt=yes 4438 support_scroll_rxvt=yes
4488 support_scroll_next=yes 4439 support_scroll_next=yes
4489 support_scroll_xterm=yes 4440 support_scroll_xterm=yes
4490 support_scroll_plain=yes
4491 support_utmp=yes 4441 support_utmp=yes
4492 support_wtmp=yes 4442 support_wtmp=yes
4493 support_xim=yes 4443 support_xim=yes
4494 support_xpm=yes
4495 support_afterimage=yes 4444 support_afterimage=yes
4496 support_afterstep=yes 4445 support_afterstep=yes
4497 support_xft=yes 4446 support_xft=yes
4498 support_unicode3=yes 4447 support_unicode3=yes
4499 support_combining=yes 4448 support_combining=yes
4505 fi 4454 fi
4506 4455
4507fi 4456fi
4508 4457
4509 4458
4459ASSERTIONS=no
4460# Check whether --enable-assert was given.
4461if test "${enable_assert+set}" = set; then
4462 enableval=$enable_assert; if test x$enableval = xyes; then
4463 ASSERTIONS=yes
4464 fi
4465fi
4466
4467if test x$ASSERTIONS = xno; then
4468
4469cat >>confdefs.h <<\_ACEOF
4470#define NDEBUG 1
4471_ACEOF
4472
4473fi
4474
4475WARNINGS=no
4476# Check whether --enable-warnings was given.
4477if test "${enable_warnings+set}" = set; then
4478 enableval=$enable_warnings; if test x$enableval = xyes; then
4479 WARNINGS=yes
4480 fi
4481fi
4482
4483if test x$GXX = xyes; then
4484 if test $WARNINGS = yes; then
4485 save_CXXFLAGS="$CXXFLAGS"
4486 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4487 cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h. */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h. */
4493
4494int
4495main ()
4496{
4497
4498 ;
4499 return 0;
4500}
4501_ACEOF
4502rm -f conftest.$ac_objext
4503if { (ac_try="$ac_compile"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } && {
4516 test -z "$ac_cxx_werror_flag" ||
4517 test ! -s conftest.err
4518 } && test -s conftest.$ac_objext; then
4519 :
4520else
4521 echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 CXXFLAGS="$save_CXXFLAGS"
4525fi
4526
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 else
4529 CXXFLAGS="$CXXFLAGS -w"
4530 fi
4531fi
4532
4510# Check whether --enable-unicode3 was given. 4533# Check whether --enable-unicode3 was given.
4511if test "${enable_unicode3+set}" = set; then 4534if test "${enable_unicode3+set}" = set; then
4512 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4535 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4513 support_unicode3=$enableval 4536 support_unicode3=$enableval
4514 fi 4537 fi
4537 support_styles=$enableval 4560 support_styles=$enableval
4538 fi 4561 fi
4539fi 4562fi
4540 4563
4541 4564
4542# Check whether --enable-xpm-background was given.
4543if test "${enable_xpm_background+set}" = set; then
4544 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_xpm=$enableval
4546 fi
4547fi
4548
4549
4550# Check whether --enable-afterimage was given. 4565# Check whether --enable-afterimage was given.
4551if test "${enable_afterimage+set}" = set; then 4566if test "${enable_afterimage+set}" = set; then
4552 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4567 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_afterimage=$enableval 4568 support_afterimage=$enableval
4554 fi 4569 fi
4571 support_inheritpixmap=$enableval 4586 support_inheritpixmap=$enableval
4572 fi 4587 fi
4573fi 4588fi
4574 4589
4575 4590
4576# Check whether --enable-tinting was given.
4577if test "${enable_tinting+set}" = set; then
4578 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4579 support_tinting=$enableval
4580 fi
4581fi
4582
4583
4584# Check whether --enable-fading was given. 4591# Check whether --enable-fading was given.
4585if test "${enable_fading+set}" = set; then 4592if test "${enable_fading+set}" = set; then
4586 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4593 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4587 support_fading=$enableval 4594 support_fading=$enableval
4588 fi 4595 fi
4615 4622
4616# Check whether --enable-perl was given. 4623# Check whether --enable-perl was given.
4617if test "${enable_perl+set}" = set; then 4624if test "${enable_perl+set}" = set; then
4618 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
4619 support_perl=$enableval 4626 support_perl=$enableval
4620 fi
4621fi
4622
4623
4624# Check whether --enable-plain-scroll was given.
4625if test "${enable_plain_scroll+set}" = set; then
4626 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4627 support_scroll_plain=$enableval
4628 fi 4627 fi
4629fi 4628fi
4630 4629
4631 4630
4632 4631
4859#define RXVT_TERMINFO "$withval" 4858#define RXVT_TERMINFO "$withval"
4860_ACEOF 4859_ACEOF
4861 terminfo="$withval" 4860 terminfo="$withval"
4862 fi 4861 fi
4863fi 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
5345
5346
5347for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5348do
5349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355fi
5356ac_res=`eval echo '${'$as_ac_Header'}'`
5357 { echo "$as_me:$LINENO: result: $ac_res" >&5
5358echo "${ECHO_T}$ac_res" >&6; }
5359else
5360 # Is the header compilable?
5361{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5363cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369$ac_includes_default
5370#include <$ac_header>
5371_ACEOF
5372rm -f conftest.$ac_objext
5373if { (ac_try="$ac_compile"
5374case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_compile") 2>conftest.er1
5380 ac_status=$?
5381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); } && {
5386 test -z "$ac_cxx_werror_flag" ||
5387 test ! -s conftest.err
5388 } && test -s conftest.$ac_objext; then
5389 ac_header_compiler=yes
5390else
5391 echo "$as_me: failed program was:" >&5
5392sed 's/^/| /' conftest.$ac_ext >&5
5393
5394 ac_header_compiler=no
5395fi
5396
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5399echo "${ECHO_T}$ac_header_compiler" >&6; }
5400
5401# Is the header present?
5402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5404cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h. */
5406_ACEOF
5407cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h. */
5410#include <$ac_header>
5411_ACEOF
5412if { (ac_try="$ac_cpp conftest.$ac_ext"
5413case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419 ac_status=$?
5420 grep -v '^ *+' conftest.er1 >conftest.err
5421 rm -f conftest.er1
5422 cat conftest.err >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); } >/dev/null && {
5425 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5426 test ! -s conftest.err
5427 }; then
5428 ac_header_preproc=yes
5429else
5430 echo "$as_me: failed program was:" >&5
5431sed 's/^/| /' conftest.$ac_ext >&5
5432
5433 ac_header_preproc=no
5434fi
5435
5436rm -f conftest.err conftest.$ac_ext
5437{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5438echo "${ECHO_T}$ac_header_preproc" >&6; }
5439
5440# So? What about this header?
5441case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5442 yes:no: )
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5444echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5446echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5447 ac_header_preproc=yes
5448 ;;
5449 no:yes:* )
5450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5451echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5453echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5455echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5457echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5459echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5461echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5462
5463 ;;
5464esac
5465{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5467if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470 eval "$as_ac_Header=\$ac_header_preproc"
5471fi
5472ac_res=`eval echo '${'$as_ac_Header'}'`
5473 { echo "$as_me:$LINENO: result: $ac_res" >&5
5474echo "${ECHO_T}$ac_res" >&6; }
5475
5476fi
5477if test `eval echo '${'$as_ac_Header'}'` = yes; then
5478 cat >>confdefs.h <<_ACEOF
5479#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5480_ACEOF
5481
5482fi
5483
5484done
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5496do
5497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5511#define $ac_func innocuous_$ac_func
5512
5513/* System header to define __stub macros and hopefully few prototypes,
5514 which can conflict with char $ac_func (); below.
5515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5516 <limits.h> exists even on freestanding compilers. */
5517
5518#ifdef __STDC__
5519# include <limits.h>
5520#else
5521# include <assert.h>
5522#endif
5523
5524#undef $ac_func
5525
5526/* Override any GCC internal prototype to avoid an error.
5527 Use char because int might match the return type of a GCC
5528 builtin and then its argument prototype would still apply. */
5529#ifdef __cplusplus
5530extern "C"
5531#endif
5532char $ac_func ();
5533/* The GNU C library defines this for functions which it implements
5534 to always fail with ENOSYS. Some functions are actually named
5535 something starting with __ and the normal name is an alias. */
5536#if defined __stub_$ac_func || defined __stub___$ac_func
5537choke me
5538#endif
5539
5540int
5541main ()
5542{
5543return $ac_func ();
5544 ;
5545 return 0;
5546}
5547_ACEOF
5548rm -f conftest.$ac_objext conftest$ac_exeext
5549if { (ac_try="$ac_link"
5550case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553esac
5554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_link") 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && {
5562 test -z "$ac_cxx_werror_flag" ||
5563 test ! -s conftest.err
5564 } && test -s conftest$ac_exeext &&
5565 $as_test_x conftest$ac_exeext; then
5566 eval "$as_ac_var=yes"
5567else
5568 echo "$as_me: failed program was:" >&5
5569sed 's/^/| /' conftest.$ac_ext >&5
5570
5571 eval "$as_ac_var=no"
5572fi
5573
5574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5575 conftest$ac_exeext conftest.$ac_ext
5576fi
5577ac_res=`eval echo '${'$as_ac_var'}'`
5578 { echo "$as_me:$LINENO: result: $ac_res" >&5
5579echo "${ECHO_T}$ac_res" >&6; }
5580if test `eval echo '${'$as_ac_var'}'` = yes; then
5581 cat >>confdefs.h <<_ACEOF
5582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5583_ACEOF
5584
5585fi
5586done
5587
5588
5589{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5590echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5591if test "${ac_cv_func_clock_gettime+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5602#define clock_gettime innocuous_clock_gettime
5603
5604/* System header to define __stub macros and hopefully few prototypes,
5605 which can conflict with char clock_gettime (); below.
5606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5607 <limits.h> exists even on freestanding compilers. */
5608
5609#ifdef __STDC__
5610# include <limits.h>
5611#else
5612# include <assert.h>
5613#endif
5614
5615#undef clock_gettime
5616
5617/* Override any GCC internal prototype to avoid an error.
5618 Use char because int might match the return type of a GCC
5619 builtin and then its argument prototype would still apply. */
5620#ifdef __cplusplus
5621extern "C"
5622#endif
5623char clock_gettime ();
5624/* The GNU C library defines this for functions which it implements
5625 to always fail with ENOSYS. Some functions are actually named
5626 something starting with __ and the normal name is an alias. */
5627#if defined __stub_clock_gettime || defined __stub___clock_gettime
5628choke me
5629#endif
5630
5631int
5632main ()
5633{
5634return clock_gettime ();
5635 ;
5636 return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext conftest$ac_exeext
5640if { (ac_try="$ac_link"
5641case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644esac
5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_link") 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && {
5653 test -z "$ac_cxx_werror_flag" ||
5654 test ! -s conftest.err
5655 } && test -s conftest$ac_exeext &&
5656 $as_test_x conftest$ac_exeext; then
5657 ac_cv_func_clock_gettime=yes
5658else
5659 echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662 ac_cv_func_clock_gettime=no
5663fi
5664
5665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5666 conftest$ac_exeext conftest.$ac_ext
5667fi
5668{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5669echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5670if test $ac_cv_func_clock_gettime = yes; then
5671 :
5672else
5673
5674 if test $(uname) = Linux; then
5675 { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5
5676echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; }
5677 cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683#include <syscall.h>
5684 #include <time.h>
5685int
5686main ()
5687{
5688struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext
5694if { (ac_try="$ac_link"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_link") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext &&
5710 $as_test_x conftest$ac_exeext; then
5711 ac_have_clock_syscall=1
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define HAVE_CLOCK_SYSCALL 1
5715_ACEOF
5716
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6; }
5719else
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 { echo "$as_me:$LINENO: result: no" >&5
5724echo "${ECHO_T}no" >&6; }
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5731
5732{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5733echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5734if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 ac_check_lib_save_LIBS=$LIBS
5738LIBS="-lrt $LIBS"
5739cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745
5746/* Override any GCC internal prototype to avoid an error.
5747 Use char because int might match the return type of a GCC
5748 builtin and then its argument prototype would still apply. */
5749#ifdef __cplusplus
5750extern "C"
5751#endif
5752char clock_gettime ();
5753int
5754main ()
5755{
5756return clock_gettime ();
5757 ;
5758 return 0;
5759}
5760_ACEOF
5761rm -f conftest.$ac_objext conftest$ac_exeext
5762if { (ac_try="$ac_link"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_cxx_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext &&
5778 $as_test_x conftest$ac_exeext; then
5779 ac_cv_lib_rt_clock_gettime=yes
5780else
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_lib_rt_clock_gettime=no
5785fi
5786
5787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5788 conftest$ac_exeext conftest.$ac_ext
5789LIBS=$ac_check_lib_save_LIBS
5790fi
5791{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5792echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5793if test $ac_cv_lib_rt_clock_gettime = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795#define HAVE_LIBRT 1
5796_ACEOF
5797
5798 LIBS="-lrt $LIBS"
5799
5800fi
5801
5802 unset ac_cv_func_clock_gettime
5803
5804for ac_func in clock_gettime
5805do
5806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5820#define $ac_func innocuous_$ac_func
5821
5822/* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below.
5824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 <limits.h> exists even on freestanding compilers. */
5826
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832
5833#undef $ac_func
5834
5835/* Override any GCC internal prototype to avoid an error.
5836 Use char because int might match the return type of a GCC
5837 builtin and then its argument prototype would still apply. */
5838#ifdef __cplusplus
5839extern "C"
5840#endif
5841char $ac_func ();
5842/* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845#if defined __stub_$ac_func || defined __stub___$ac_func
5846choke me
5847#endif
5848
5849int
5850main ()
5851{
5852return $ac_func ();
5853 ;
5854 return 0;
5855}
5856_ACEOF
5857rm -f conftest.$ac_objext conftest$ac_exeext
5858if { (ac_try="$ac_link"
5859case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862esac
5863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_link") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest$ac_exeext &&
5874 $as_test_x conftest$ac_exeext; then
5875 eval "$as_ac_var=yes"
5876else
5877 echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 eval "$as_ac_var=no"
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5884 conftest$ac_exeext conftest.$ac_ext
5885fi
5886ac_res=`eval echo '${'$as_ac_var'}'`
5887 { echo "$as_me:$LINENO: result: $ac_res" >&5
5888echo "${ECHO_T}$ac_res" >&6; }
5889if test `eval echo '${'$as_ac_var'}'` = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5892_ACEOF
5893
5894fi
5895done
5896
5897 fi
5898
5899fi
5900
5901
5902{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5903echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5904if test "${ac_cv_func_nanosleep+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5915#define nanosleep innocuous_nanosleep
5916
5917/* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char nanosleep (); below.
5919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 <limits.h> exists even on freestanding compilers. */
5921
5922#ifdef __STDC__
5923# include <limits.h>
5924#else
5925# include <assert.h>
5926#endif
5927
5928#undef nanosleep
5929
5930/* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5933#ifdef __cplusplus
5934extern "C"
5935#endif
5936char nanosleep ();
5937/* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940#if defined __stub_nanosleep || defined __stub___nanosleep
5941choke me
5942#endif
5943
5944int
5945main ()
5946{
5947return nanosleep ();
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext conftest$ac_exeext
5953if { (ac_try="$ac_link"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_cxx_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
5970 ac_cv_func_nanosleep=yes
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_cv_func_nanosleep=no
5976fi
5977
5978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979 conftest$ac_exeext conftest.$ac_ext
5980fi
5981{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5982echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5983if test $ac_cv_func_nanosleep = yes; then
5984 :
5985else
5986
5987 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5988
5989{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5990echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5991if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 ac_check_lib_save_LIBS=$LIBS
5995LIBS="-lrt $LIBS"
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002
6003/* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6006#ifdef __cplusplus
6007extern "C"
6008#endif
6009char nanosleep ();
6010int
6011main ()
6012{
6013return nanosleep ();
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (ac_try="$ac_link"
6020case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_link") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_cxx_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest$ac_exeext &&
6035 $as_test_x conftest$ac_exeext; then
6036 ac_cv_lib_rt_nanosleep=yes
6037else
6038 echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_lib_rt_nanosleep=no
6042fi
6043
6044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6045 conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS
6047fi
6048{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6049echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
6050if test $ac_cv_lib_rt_nanosleep = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_LIBRT 1
6053_ACEOF
6054
6055 LIBS="-lrt $LIBS"
6056
6057fi
6058
6059 unset ac_cv_func_nanosleep
6060
6061for ac_func in nanosleep
6062do
6063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
6075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6077#define $ac_func innocuous_$ac_func
6078
6079/* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func (); below.
6081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082 <limits.h> exists even on freestanding compilers. */
6083
6084#ifdef __STDC__
6085# include <limits.h>
6086#else
6087# include <assert.h>
6088#endif
6089
6090#undef $ac_func
6091
6092/* Override any GCC internal prototype to avoid an error.
6093 Use char because int might match the return type of a GCC
6094 builtin and then its argument prototype would still apply. */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098char $ac_func ();
6099/* The GNU C library defines this for functions which it implements
6100 to always fail with ENOSYS. Some functions are actually named
6101 something starting with __ and the normal name is an alias. */
6102#if defined __stub_$ac_func || defined __stub___$ac_func
6103choke me
6104#endif
6105
6106int
6107main ()
6108{
6109return $ac_func ();
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (ac_try="$ac_link"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_link") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_cxx_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest$ac_exeext &&
6131 $as_test_x conftest$ac_exeext; then
6132 eval "$as_ac_var=yes"
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 eval "$as_ac_var=no"
6138fi
6139
6140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142fi
6143ac_res=`eval echo '${'$as_ac_var'}'`
6144 { echo "$as_me:$LINENO: result: $ac_res" >&5
6145echo "${ECHO_T}$ac_res" >&6; }
6146if test `eval echo '${'$as_ac_var'}'` = yes; then
6147 cat >>confdefs.h <<_ACEOF
6148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6149_ACEOF
6150
6151fi
6152done
6153
6154 fi
6155
6156fi
6157
6158
6159
6160{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
6161echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
6162if test "${ac_cv_lib_m_ceil+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 ac_check_lib_save_LIBS=$LIBS
6166LIBS="-lm $LIBS"
6167cat >conftest.$ac_ext <<_ACEOF
6168/* confdefs.h. */
6169_ACEOF
6170cat confdefs.h >>conftest.$ac_ext
6171cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h. */
6173
6174/* Override any GCC internal prototype to avoid an error.
6175 Use char because int might match the return type of a GCC
6176 builtin and then its argument prototype would still apply. */
6177#ifdef __cplusplus
6178extern "C"
6179#endif
6180char ceil ();
6181int
6182main ()
6183{
6184return ceil ();
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189rm -f conftest.$ac_objext conftest$ac_exeext
6190if { (ac_try="$ac_link"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_link") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_cxx_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest$ac_exeext &&
6206 $as_test_x conftest$ac_exeext; then
6207 ac_cv_lib_m_ceil=yes
6208else
6209 echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 ac_cv_lib_m_ceil=no
6213fi
6214
6215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6216 conftest$ac_exeext conftest.$ac_ext
6217LIBS=$ac_check_lib_save_LIBS
6218fi
6219{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
6220echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
6221if test $ac_cv_lib_m_ceil = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223#define HAVE_LIBM 1
6224_ACEOF
6225
6226 LIBS="-lm $LIBS"
6227
6228fi
6229
6230
4864 6231
4865 6232
4866 6233
4867# Extract the first word of "tic", so it can be a program name with args. 6234# Extract the first word of "tic", so it can be a program name with args.
4868set dummy tic; ac_word=$2 6235set dummy tic; ac_word=$2
4889 fi 6256 fi
4890done 6257done
4891done 6258done
4892IFS=$as_save_IFS 6259IFS=$as_save_IFS
4893 6260
6261 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4894 ;; 6262 ;;
4895esac 6263esac
4896fi 6264fi
4897TIC=$ac_cv_path_TIC 6265TIC=$ac_cv_path_TIC
4898if test -n "$TIC"; then 6266if test -n "$TIC"; then
4901else 6269else
4902 { echo "$as_me:$LINENO: result: no" >&5 6270 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; } 6271echo "${ECHO_T}no" >&6; }
4904fi 6272fi
4905 6273
4906
4907
4908
4909
4910ac_ext=cpp
4911ac_cpp='$CXXCPP $CPPFLAGS'
4912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4916echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4917if test -z "$CXXCPP"; then
4918 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921 # Double quotes because CXXCPP needs to be expanded
4922 for CXXCPP in "$CXX -E" "/lib/cpp"
4923 do
4924 ac_preproc_ok=false
4925for ac_cxx_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
4940# include <limits.h>
4941#else
4942# include <assert.h>
4943#endif
4944 Syntax error
4945_ACEOF
4946if { (ac_try="$ac_cpp conftest.$ac_ext"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 :
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968continue
4969fi
4970
4971rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null && {
4996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4997 test ! -s conftest.err
4998 }; then
4999 # Broken: success on invalid input.
5000continue
5001else
5002 echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 # Passes both tests.
5006ac_preproc_ok=:
5007break
5008fi
5009
5010rm -f conftest.err conftest.$ac_ext
5011
5012done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext
5015if $ac_preproc_ok; then
5016 break
5017fi
5018
5019 done
5020 ac_cv_prog_CXXCPP=$CXXCPP
5021
5022fi
5023 CXXCPP=$ac_cv_prog_CXXCPP
5024else
5025 ac_cv_prog_CXXCPP=$CXXCPP
5026fi
5027{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5028echo "${ECHO_T}$CXXCPP" >&6; }
5029ac_preproc_ok=false
5030for ac_cxx_preproc_warn_flag in '' yes
5031do
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
5045# include <limits.h>
5046#else
5047# include <assert.h>
5048#endif
5049 Syntax error
5050_ACEOF
5051if { (ac_try="$ac_cpp conftest.$ac_ext"
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null && {
5064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5065 test ! -s conftest.err
5066 }; then
5067 :
5068else
5069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 # Broken: fails on valid input.
5073continue
5074fi
5075
5076rm -f conftest.err conftest.$ac_ext
5077
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5081/* confdefs.h. */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h. */
5086#include <ac_nonexistent.h>
5087_ACEOF
5088if { (ac_try="$ac_cpp conftest.$ac_ext"
5089case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092esac
5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5102 test ! -s conftest.err
5103 }; then
5104 # Broken: success on invalid input.
5105continue
5106else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 # Passes both tests.
5111ac_preproc_ok=:
5112break
5113fi
5114
5115rm -f conftest.err conftest.$ac_ext
5116
5117done
5118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119rm -f conftest.err conftest.$ac_ext
5120if $ac_preproc_ok; then
5121 :
5122else
5123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5124See \`config.log' for more details." >&5
5125echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5126See \`config.log' for more details." >&2;}
5127 { (exit 1); exit 1; }; }
5128fi
5129
5130ac_ext=cpp
5131ac_cpp='$CXXCPP $CPPFLAGS'
5132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 6274
5136 6275
5137{ echo "$as_me:$LINENO: checking for X" >&5 6276{ echo "$as_me:$LINENO: checking for X" >&5
5138echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6277echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5139 6278
6445fi 7584fi
6446 7585
6447 LDFLAGS=$ac_save_LDFLAGS 7586 LDFLAGS=$ac_save_LDFLAGS
6448 7587
6449fi 7588fi
6450
6451 7589
6452 7590
6453AFTERIMAGE_CFLAGS= 7591AFTERIMAGE_CFLAGS=
6454AFTERIMAGE_LIBS= 7592AFTERIMAGE_LIBS=
6455AFTERIMAGE_VERSION= 7593AFTERIMAGE_VERSION=
6526echo "${ECHO_T}no" >&6; } 7664echo "${ECHO_T}no" >&6; }
6527 fi 7665 fi
6528 fi 7666 fi
6529fi 7667fi
6530 7668
6531if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6532
6533
6534
6535# Initialize some more variables set by options.
6536# The variables have the same names as the options, with
6537# dashes changed to underlines.
6538
6539# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6540# paths, otherwise set no_xpm=yes.
6541# Uses ac_ vars as temps to allow command line to override cache and checks.
6542{ echo "$as_me:$LINENO: checking for libXpm" >&5
6543echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6544
6545
6546# Check whether --with-xpm_includes was given.
6547if test "${with_xpm_includes+set}" = set; then
6548 withval=$with_xpm_includes; xpm_includes="$withval"
6549else
6550 xpm_includes=NO
6551fi
6552
6553
6554# Check whether --with-xpm_library was given.
6555if test "${with_xpm_library+set}" = set; then
6556 withval=$with_xpm_library; xpm_libraries="$withval"
6557else
6558 xpm_libraries=NO
6559fi
6560
6561
6562# --without-xpm overrides everything else, but does not touch the cache.
6563
6564# Check whether --with-xpm was given.
6565if test "${with_xpm+set}" = set; then
6566 withval=$with_xpm;
6567fi
6568
6569if test "$with_xpm" = no; then
6570 have_xpm=disabled
6571else
6572 if test "${ac_cv_have_xpm+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575
6576 vt_xpm_include_X11=no
6577 if test -n "$xpm_includes"; then
6578 vt_xpm_includes=$xpm_includes
6579 else
6580 vt_xpm_includes=NO
6581 fi
6582 if test -n "$xpm_libraries"; then
6583 vt_xpm_libraries=$xpm_libraries
6584 else
6585 vt_xpm_libraries=NO
6586 fi
6587
6588 if test "$vt_xpm_includes" = NO; then
6589 # Guess where to find xpm.h
6590
6591ac_save_CPPFLAGS="$CPPFLAGS"
6592CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6593
6594 # First, try using that file with no special directory specified.
6595cat >conftest.$ac_ext <<_ACEOF
6596/* confdefs.h. */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h. */
6601#include <X11/xpm.h>
6602_ACEOF
6603if { (ac_try="$ac_cpp conftest.$ac_ext"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } >/dev/null && {
6616 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6617 test ! -s conftest.err
6618 }; then
6619 # We can compile using X headers with no special include directory.
6620vt_xpm_includes=
6621vt_xpm_include_X11=yes
6622else
6623 echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 CPPFLAGS="$ac_save_CPPFLAGS"
6627# Look for the header file in a standard set of common directories.
6628 for ac_dir in \
6629 /usr/X11/include \
6630 /usr/X11R6/include \
6631 /usr/X11R5/include \
6632 /usr/X11R4/include \
6633 \
6634 /usr/include/X11 \
6635 /usr/include/X11R6 \
6636 /usr/include/X11R5 \
6637 /usr/include/X11R4 \
6638 \
6639 /usr/local/X11/include \
6640 /usr/local/X11R6/include \
6641 /usr/local/X11R5/include \
6642 /usr/local/X11R4/include \
6643 \
6644 /usr/local/include/X11 \
6645 /usr/local/include/X11R6 \
6646 /usr/local/include/X11R5 \
6647 /usr/local/include/X11R4 \
6648 \
6649 /usr/X386/include \
6650 /usr/x386/include \
6651 /usr/XFree86/include/X11 \
6652 \
6653 /usr/include \
6654 /usr/local/include \
6655 /usr/unsupported/include \
6656 /usr/athena/include \
6657 /usr/local/x11r5/include \
6658 /usr/lpp/Xamples/include \
6659 \
6660 /usr/openwin/include \
6661 /usr/openwin/share/include \
6662 ; \
6663 do
6664 if test -r "$ac_dir/X11/xpm.h"; then
6665 vt_xpm_includes="$ac_dir"
6666 vt_xpm_include_X11=yes
6667 break
6668 else
6669 if test -r "$ac_dir/xpm.h"; then
6670 vt_xpm_includes=$ac_dir
6671 break
6672 fi
6673 fi
6674 done
6675fi
6676
6677rm -f conftest.err conftest.$ac_ext
6678fi
6679
6680if test "$vt_xpm_libraries" = NO; then
6681 # Check for the libraries.
6682
6683 # See if we find them without any special options.
6684 # Don't add to $LIBS permanently.
6685 ac_save_LIBS="$LIBS"
6686 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6687cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h. */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h. */
6693
6694int
6695main ()
6696{
6697XpmReadFileToPixmap()
6698 ;
6699 return 0;
6700}
6701_ACEOF
6702rm -f conftest.$ac_objext conftest$ac_exeext
6703if { (ac_try="$ac_link"
6704case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707esac
6708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_link") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_cxx_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
6720 LIBS="$ac_save_LIBS"
6721# We can link libXpm with no special library path.
6722vt_xpm_libraries=
6723else
6724 echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727 LIBS="$ac_save_LIBS"
6728# First see if replacing the include by lib works.
6729for ac_dir in \
6730 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6731 /usr/X11/lib \
6732 /usr/X11R6/lib \
6733 /usr/X11R5/lib \
6734 /usr/X11R4/lib \
6735 \
6736 /usr/lib/X11 \
6737 /usr/lib/X11R6 \
6738 /usr/lib/X11R5 \
6739 /usr/lib/X11R4 \
6740 \
6741 /usr/local/X11/lib \
6742 /usr/local/X11R6/lib \
6743 /usr/local/X11R5/lib \
6744 /usr/local/X11R4/lib \
6745 \
6746 /usr/local/lib/X11 \
6747 /usr/local/lib/X11R6 \
6748 /usr/local/lib/X11R5 \
6749 /usr/local/lib/X11R4 \
6750 \
6751 /usr/X386/lib \
6752 /usr/x386/lib \
6753 /usr/XFree86/lib/X11 \
6754 \
6755 /usr/lib \
6756 /usr/local/lib \
6757 /usr/unsupported/lib \
6758 /usr/athena/lib \
6759 /usr/local/x11r5/lib \
6760 /usr/lpp/Xamples/lib \
6761 \
6762 /usr/openwin/lib \
6763 /usr/openwin/share/lib \
6764 ; \
6765do
6766 for ac_extension in a so sl; do
6767 if test -r $ac_dir/libXpm.$ac_extension; then
6768 vt_xpm_libraries=$ac_dir
6769 break 2
6770 fi
6771 done
6772done
6773fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6776 conftest$ac_exeext conftest.$ac_ext
6777fi
6778
6779
6780 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6781 ac_cv_have_xpm="have_xpm=no"
6782 else
6783 ac_cv_have_xpm="have_xpm=yes \
6784 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6785 vt_xpm_include_X11=$vt_xpm_include_X11"
6786 fi
6787fi
6788 eval "$ac_cv_have_xpm"
6789fi
6790
6791if test "$have_xpm" != yes; then
6792 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6793echo "${ECHO_T}$have_xpm" >&6; }
6794 no_xpm=yes
6795else
6796 if test "$xpm_includes" != NO; then
6797 if test "$xpm_includes" = "$vt_xpm_includes"; then
6798 if test -r "$xpm_includes/X11/xpm.h"; then
6799 vt_xpm_include_X11=yes
6800 fi
6801 else
6802 vt_xpm_include_X11=no
6803 if test -z "$xpm_includes"; then
6804 cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h. */
6810#include <X11/xpm.h>
6811_ACEOF
6812if { (ac_try="$ac_cpp conftest.$ac_ext"
6813case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816esac
6817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } >/dev/null && {
6825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6826 test ! -s conftest.err
6827 }; then
6828 vt_xpm_include_X11=yes
6829else
6830 echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833
6834fi
6835
6836rm -f conftest.err conftest.$ac_ext
6837 else
6838 if test -r "$xpm_includes/X11/xpm.h"; then
6839 vt_xpm_include_X11=yes
6840 fi
6841 fi
6842 fi
6843 vt_xpm_includes=$xpm_includes
6844 fi
6845 if test "x$xpm_libraries" != xNO; then
6846 vt_xpm_libraries=$xpm_libraries
6847 fi
6848 # Update the cache value to reflect the command line values.
6849 ac_cv_have_xpm="have_xpm=yes \
6850 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6851 vt_xpm_include_X11=$vt_xpm_include_X11"
6852 eval "$ac_cv_have_xpm"
6853 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6854echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6855 if test -n "$vt_xpm_includes"; then
6856 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6857 fi
6858 if test -n "$vt_xpm_includes"; then
6859 XPM_CFLAGS="-I$vt_xpm_includes"
6860 fi
6861 XPM_LIBS="-lXpm"
6862 if test -n "$vt_xpm_libraries"; then
6863 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6864 fi
6865 if test "x$vt_xpm_include_X11" = xyes; then
6866
6867cat >>confdefs.h <<\_ACEOF
6868#define XPM_INC_X11 1
6869_ACEOF
6870
6871 fi
6872fi
6873
6874
6875
6876
6877
6878 if test x$no_xpm = xyes; then
6879 support_xpm=needsmanualspecification
6880 fi
6881fi
6882
6883{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6884echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6885if test "${ac_cv_header_sys_wait_h+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h. */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */
6894#include <sys/types.h>
6895#include <sys/wait.h>
6896#ifndef WEXITSTATUS
6897# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6898#endif
6899#ifndef WIFEXITED
6900# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6901#endif
6902
6903int
6904main ()
6905{
6906 int s;
6907 wait (&s);
6908 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6909 ;
6910 return 0;
6911}
6912_ACEOF
6913rm -f conftest.$ac_objext
6914if { (ac_try="$ac_compile"
6915case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918esac
6919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_cxx_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 ac_cv_header_sys_wait_h=yes
6931else
6932 echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_cv_header_sys_wait_h=no
6936fi
6937
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6941echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6942if test $ac_cv_header_sys_wait_h = yes; then
6943
6944cat >>confdefs.h <<\_ACEOF
6945#define HAVE_SYS_WAIT_H 1
6946_ACEOF
6947
6948fi
6949
6950{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6952if test "${ac_cv_header_stdc+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961#include <stdlib.h>
6962#include <stdarg.h>
6963#include <string.h>
6964#include <float.h>
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (ac_try="$ac_compile"
6976case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
6980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_cxx_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_header_stdc=yes
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_header_stdc=no
6997fi
6998
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000
7001if test $ac_cv_header_stdc = yes; then
7002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7003 cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009#include <string.h>
7010
7011_ACEOF
7012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 $EGREP "memchr" >/dev/null 2>&1; then
7014 :
7015else
7016 ac_cv_header_stdc=no
7017fi
7018rm -f conftest*
7019
7020fi
7021
7022if test $ac_cv_header_stdc = yes; then
7023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024 cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030#include <stdlib.h>
7031
7032_ACEOF
7033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 $EGREP "free" >/dev/null 2>&1; then
7035 :
7036else
7037 ac_cv_header_stdc=no
7038fi
7039rm -f conftest*
7040
7041fi
7042
7043if test $ac_cv_header_stdc = yes; then
7044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045 if test "$cross_compiling" = yes; then
7046 :
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054#include <ctype.h>
7055#include <stdlib.h>
7056#if ((' ' & 0x0FF) == 0x020)
7057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7059#else
7060# define ISLOWER(c) \
7061 (('a' <= (c) && (c) <= 'i') \
7062 || ('j' <= (c) && (c) <= 'r') \
7063 || ('s' <= (c) && (c) <= 'z'))
7064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7065#endif
7066
7067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7068int
7069main ()
7070{
7071 int i;
7072 for (i = 0; i < 256; i++)
7073 if (XOR (islower (i), ISLOWER (i))
7074 || toupper (i) != TOUPPER (i))
7075 return 2;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest$ac_exeext
7080if { (ac_try="$ac_link"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_link") 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090 { (case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093esac
7094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7095 (eval "$ac_try") 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 :
7100else
7101 echo "$as_me: program exited with status $ac_status" >&5
7102echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105( exit $ac_status )
7106ac_cv_header_stdc=no
7107fi
7108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7109fi
7110
7111
7112fi
7113fi
7114{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7115echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7116if test $ac_cv_header_stdc = yes; then
7117
7118cat >>confdefs.h <<\_ACEOF
7119#define STDC_HEADERS 1
7120_ACEOF
7121
7122fi
7123
7124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7135 inttypes.h stdint.h unistd.h
7136do
7137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7138{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149$ac_includes_default
7150
7151#include <$ac_header>
7152_ACEOF
7153rm -f conftest.$ac_objext
7154if { (ac_try="$ac_compile"
7155case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158esac
7159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_cxx_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 eval "$as_ac_Header=yes"
7171else
7172 echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 eval "$as_ac_Header=no"
7176fi
7177
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179fi
7180ac_res=`eval echo '${'$as_ac_Header'}'`
7181 { echo "$as_me:$LINENO: result: $ac_res" >&5
7182echo "${ECHO_T}$ac_res" >&6; }
7183if test `eval echo '${'$as_ac_Header'}'` = yes; then
7184 cat >>confdefs.h <<_ACEOF
7185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7186_ACEOF
7187
7188fi
7189
7190done
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203 7669
7204 7670
7205 7671
7206 7672
7207 7673
7208 7674
7209 7675
7210for ac_header in \ 7676for ac_header in \
7211 assert.h \
7212 fcntl.h \
7213 stdarg.h \
7214 stdlib.h \
7215 string.h \
7216 termios.h \
7217 unistd.h \
7218 sys/byteorder.h \ 7677 sys/byteorder.h \
7219 sys/ioctl.h \ 7678 sys/ioctl.h \
7220 sys/select.h \
7221 sys/sockio.h \ 7679 sys/sockio.h \
7222 sys/strredir.h \ 7680 sys/strredir.h \
7223 sys/time.h \
7224 stdint.h \ 7681 stdint.h \
7225 wchar.h \ 7682 wchar.h \
7226 cwchar \ 7683 cwchar \
7227 clocale \
7228 7684
7229do 7685do
7230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7232 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363fi 7819fi
7364 7820
7365done 7821done
7366 7822
7367 7823
7368{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7369echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7370if test "${ac_cv_header_time+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372else
7373 cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h. */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h. */
7379#include <sys/types.h>
7380#include <sys/time.h>
7381#include <time.h>
7382
7383int
7384main ()
7385{
7386if ((struct tm *) 0)
7387return 0;
7388 ;
7389 return 0;
7390}
7391_ACEOF
7392rm -f conftest.$ac_objext
7393if { (ac_try="$ac_compile"
7394case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_cxx_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_cv_header_time=yes
7410else
7411 echo "$as_me: failed program was:" >&5
7412sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 ac_cv_header_time=no
7415fi
7416
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418fi
7419{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7420echo "${ECHO_T}$ac_cv_header_time" >&6; }
7421if test $ac_cv_header_time = yes; then
7422
7423cat >>confdefs.h <<\_ACEOF
7424#define TIME_WITH_SYS_TIME 1
7425_ACEOF
7426
7427fi
7428
7429
7430{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7431echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7432if test "${rxvt_cv_header_sysioctl+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 cat >conftest.$ac_ext <<_ACEOF
7436/* confdefs.h. */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h. */
7441#include <stdio.h>
7442#include <sys/ioctl.h>
7443#ifdef HAVE_TERMIOS_H
7444#include <termios.h>
7445#endif
7446int
7447main ()
7448{
7449int a = ECHO;
7450 ;
7451 return 0;
7452}
7453_ACEOF
7454rm -f conftest.$ac_objext
7455if { (ac_try="$ac_compile"
7456case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459esac
7460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_cxx_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 rxvt_cv_header_sysioctl=yes
7472else
7473 echo "$as_me: failed program was:" >&5
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
7476 rxvt_cv_header_sysioctl=no
7477fi
7478
7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480fi
7481{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7482echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7483
7484{ echo "$as_me:$LINENO: checking for XPointer" >&5 7824{ echo "$as_me:$LINENO: checking for XPointer" >&5
7485echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7825echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7486if test "${rxvt_cv_xpointer+set}" = set; then 7826if test "${rxvt_cv_xpointer+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6 7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else 7828else
7599cat >>confdefs.h <<\_ACEOF 7939cat >>confdefs.h <<\_ACEOF
7600#define XLIB_ILLEGAL_ACCESS 1 7940#define XLIB_ILLEGAL_ACCESS 1
7601_ACEOF 7941_ACEOF
7602 7942
7603fi 7943fi
7604
7605{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7606echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7607if test "${ac_cv_c_const+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616
7617int
7618main ()
7619{
7620/* FIXME: Include the comments suggested by Paul. */
7621#ifndef __cplusplus
7622 /* Ultrix mips cc rejects this. */
7623 typedef int charset[2];
7624 const charset cs;
7625 /* SunOS 4.1.1 cc rejects this. */
7626 char const *const *pcpcc;
7627 char **ppc;
7628 /* NEC SVR4.0.2 mips cc rejects this. */
7629 struct point {int x, y;};
7630 static struct point const zero = {0,0};
7631 /* AIX XL C 1.02.0.0 rejects this.
7632 It does not let you subtract one const X* pointer from another in
7633 an arm of an if-expression whose if-part is not a constant
7634 expression */
7635 const char *g = "string";
7636 pcpcc = &g + (g ? g-g : 0);
7637 /* HPUX 7.0 cc rejects these. */
7638 ++pcpcc;
7639 ppc = (char**) pcpcc;
7640 pcpcc = (char const *const *) ppc;
7641 { /* SCO 3.2v4 cc rejects this. */
7642 char *t;
7643 char const *s = 0 ? (char *) 0 : (char const *) 0;
7644
7645 *t++ = 0;
7646 if (s) return 0;
7647 }
7648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7649 int x[] = {25, 17};
7650 const int *foo = &x[0];
7651 ++foo;
7652 }
7653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7654 typedef const int *iptr;
7655 iptr p = 0;
7656 ++p;
7657 }
7658 { /* AIX XL C 1.02.0.0 rejects this saying
7659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7660 struct s { int j; const int *ap[3]; };
7661 struct s *b; b->j = 5;
7662 }
7663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7664 const int foo = 10;
7665 if (!foo) return 0;
7666 }
7667 return !cs[0] && !zero.x;
7668#endif
7669
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
7675if { (ac_try="$ac_compile"
7676case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679esac
7680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_cxx_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
7691 ac_cv_c_const=yes
7692else
7693 echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cv_c_const=no
7697fi
7698
7699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700fi
7701{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7702echo "${ECHO_T}$ac_cv_c_const" >&6; }
7703if test $ac_cv_c_const = no; then
7704
7705cat >>confdefs.h <<\_ACEOF
7706#define const
7707_ACEOF
7708
7709fi
7710
7711{ echo "$as_me:$LINENO: checking for inline" >&5
7712echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7713if test "${ac_cv_c_inline+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 ac_cv_c_inline=no
7717for ac_kw in inline __inline__ __inline; do
7718 cat >conftest.$ac_ext <<_ACEOF
7719/* confdefs.h. */
7720_ACEOF
7721cat confdefs.h >>conftest.$ac_ext
7722cat >>conftest.$ac_ext <<_ACEOF
7723/* end confdefs.h. */
7724#ifndef __cplusplus
7725typedef int foo_t;
7726static $ac_kw foo_t static_foo () {return 0; }
7727$ac_kw foo_t foo () {return 0; }
7728#endif
7729
7730_ACEOF
7731rm -f conftest.$ac_objext
7732if { (ac_try="$ac_compile"
7733case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736esac
7737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_cxx_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_cv_c_inline=$ac_kw
7749else
7750 echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 test "$ac_cv_c_inline" != no && break
7758done
7759
7760fi
7761{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7762echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7763
7764
7765case $ac_cv_c_inline in
7766 inline | yes) ;;
7767 *)
7768 case $ac_cv_c_inline in
7769 no) ac_val=;;
7770 *) ac_val=$ac_cv_c_inline;;
7771 esac
7772 cat >>confdefs.h <<_ACEOF
7773#ifndef __cplusplus
7774#define inline $ac_val
7775#endif
7776_ACEOF
7777 ;;
7778esac
7779
7780
7781 7944
7782{ echo "$as_me:$LINENO: checking for mode_t" >&5 7945{ echo "$as_me:$LINENO: checking for mode_t" >&5
7783echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7946echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7784if test "${ac_cv_type_mode_t+set}" = set; then 7947if test "${ac_cv_type_mode_t+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6 7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7942_ACEOF 8105_ACEOF
7943 8106
7944fi 8107fi
7945 8108
7946 8109
7947{ echo "$as_me:$LINENO: checking for short" >&5 8110 { echo "$as_me:$LINENO: checking for int16_t" >&5
7948echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8111echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7949if test "${ac_cv_type_short+set}" = set; then 8112if test "${ac_cv_c_int16_t+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6 8113 echo $ECHO_N "(cached) $ECHO_C" >&6
7951else 8114else
8115 ac_cv_c_int16_t=no
8116 for ac_type in 'int16_t' 'int' 'long int' \
8117 'long long int' 'short int' 'signed char'; do
7952 cat >conftest.$ac_ext <<_ACEOF 8118 cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */ 8119/* confdefs.h. */
7954_ACEOF 8120_ACEOF
7955cat confdefs.h >>conftest.$ac_ext 8121cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF 8122cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */ 8123/* end confdefs.h. */
7958$ac_includes_default 8124$ac_includes_default
7959typedef short ac__type_new_;
7960int 8125int
7961main () 8126main ()
7962{ 8127{
7963if ((ac__type_new_ *) 0) 8128static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7964 return 0; 8129test_array [0] = 0
7965if (sizeof (ac__type_new_)) 8130
7966 return 0;
7967 ; 8131 ;
7968 return 0; 8132 return 0;
7969} 8133}
7970_ACEOF 8134_ACEOF
7971rm -f conftest.$ac_objext 8135rm -f conftest.$ac_objext
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && { 8148 (exit $ac_status); } && {
7985 test -z "$ac_cxx_werror_flag" || 8149 test -z "$ac_cxx_werror_flag" ||
7986 test ! -s conftest.err 8150 test ! -s conftest.err
7987 } && test -s conftest.$ac_objext; then 8151 } && test -s conftest.$ac_objext; then
7988 ac_cv_type_short=yes
7989else
7990 echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 ac_cv_type_short=no
7994fi
7995
7996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997fi
7998{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7999echo "${ECHO_T}$ac_cv_type_short" >&6; }
8000
8001# The cast to long int works around a bug in the HP C Compiler
8002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8004# This bug is HP SR number 8606223364.
8005{ echo "$as_me:$LINENO: checking size of short" >&5
8006echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8007if test "${ac_cv_sizeof_short+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010 if test "$cross_compiling" = yes; then
8011 # Depending upon the size, compute the lo and hi bounds.
8012cat >conftest.$ac_ext <<_ACEOF 8152 cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */ 8153/* confdefs.h. */
8014_ACEOF 8154_ACEOF
8015cat confdefs.h >>conftest.$ac_ext 8155cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF 8156cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */ 8157/* end confdefs.h. */
8018$ac_includes_default 8158$ac_includes_default
8019 typedef short ac__type_sizeof_;
8020int 8159int
8021main () 8160main ()
8022{ 8161{
8023static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8162static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8163 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8024test_array [0] = 0 8164test_array [0] = 0
8025 8165
8026 ; 8166 ;
8027 return 0; 8167 return 0;
8028} 8168}
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && { 8183 (exit $ac_status); } && {
8044 test -z "$ac_cxx_werror_flag" || 8184 test -z "$ac_cxx_werror_flag" ||
8045 test ! -s conftest.err 8185 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then 8186 } && test -s conftest.$ac_objext; then
8047 ac_lo=0 ac_mid=0 8187 :
8048 while :; do 8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 case $ac_type in
8193 int16_t) ac_cv_c_int16_t=yes ;;
8194 *) ac_cv_c_int16_t=$ac_type ;;
8195esac
8196
8197fi
8198
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204
8205fi
8206
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 test "$ac_cv_c_int16_t" != no && break
8209 done
8210fi
8211{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8212echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8213 case $ac_cv_c_int16_t in #(
8214 no|yes) ;; #(
8215 *)
8216
8217cat >>confdefs.h <<_ACEOF
8218#define int16_t $ac_cv_c_int16_t
8219_ACEOF
8220;;
8221 esac
8222
8223
8224 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8225echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8226if test "${ac_cv_c_uint16_t+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_cv_c_uint16_t=no
8230 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8231 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8049 cat >conftest.$ac_ext <<_ACEOF 8232 cat >conftest.$ac_ext <<_ACEOF
8050/* confdefs.h. */ 8233/* confdefs.h. */
8051_ACEOF 8234_ACEOF
8052cat confdefs.h >>conftest.$ac_ext 8235cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF 8236cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h. */ 8237/* end confdefs.h. */
8055$ac_includes_default 8238$ac_includes_default
8056 typedef short ac__type_sizeof_;
8057int 8239int
8058main () 8240main ()
8059{ 8241{
8060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8242static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8061test_array [0] = 0 8243test_array [0] = 0
8062 8244
8063 ; 8245 ;
8064 return 0; 8246 return 0;
8065} 8247}
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && { 8262 (exit $ac_status); } && {
8081 test -z "$ac_cxx_werror_flag" || 8263 test -z "$ac_cxx_werror_flag" ||
8082 test ! -s conftest.err 8264 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then 8265 } && test -s conftest.$ac_objext; then
8084 ac_hi=$ac_mid; break 8266 case $ac_type in
8267 uint16_t) ac_cv_c_uint16_t=yes ;;
8268 *) ac_cv_c_uint16_t=$ac_type ;;
8269esac
8270
8085else 8271else
8086 echo "$as_me: failed program was:" >&5 8272 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5 8273sed 's/^/| /' conftest.$ac_ext >&5
8088 8274
8089 ac_lo=`expr $ac_mid + 1` 8275
8090 if test $ac_lo -le $ac_mid; then
8091 ac_lo= ac_hi=
8092 break
8093 fi
8094 ac_mid=`expr 2 '*' $ac_mid + 1`
8095fi 8276fi
8096 8277
8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 test "$ac_cv_c_uint16_t" != no && break
8098 done 8280 done
8099else 8281fi
8100 echo "$as_me: failed program was:" >&5 8282{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5 8283echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8284 case $ac_cv_c_uint16_t in #(
8285 no|yes) ;; #(
8286 *)
8102 8287
8288
8289cat >>confdefs.h <<_ACEOF
8290#define uint16_t $ac_cv_c_uint16_t
8291_ACEOF
8292;;
8293 esac
8294
8295
8296 { echo "$as_me:$LINENO: checking for int32_t" >&5
8297echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8298if test "${ac_cv_c_int32_t+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 ac_cv_c_int32_t=no
8302 for ac_type in 'int32_t' 'int' 'long int' \
8303 'long long int' 'short int' 'signed char'; do
8103 cat >conftest.$ac_ext <<_ACEOF 8304 cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h. */ 8305/* confdefs.h. */
8105_ACEOF 8306_ACEOF
8106cat confdefs.h >>conftest.$ac_ext 8307cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF 8308cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h. */ 8309/* end confdefs.h. */
8109$ac_includes_default 8310$ac_includes_default
8110 typedef short ac__type_sizeof_;
8111int 8311int
8112main () 8312main ()
8113{ 8313{
8114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8314static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8115test_array [0] = 0 8315test_array [0] = 0
8116 8316
8117 ; 8317 ;
8118 return 0; 8318 return 0;
8119} 8319}
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && { 8334 (exit $ac_status); } && {
8135 test -z "$ac_cxx_werror_flag" || 8335 test -z "$ac_cxx_werror_flag" ||
8136 test ! -s conftest.err 8336 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then 8337 } && test -s conftest.$ac_objext; then
8138 ac_hi=-1 ac_mid=-1
8139 while :; do
8140 cat >conftest.$ac_ext <<_ACEOF 8338 cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h. */ 8339/* confdefs.h. */
8142_ACEOF 8340_ACEOF
8143cat confdefs.h >>conftest.$ac_ext 8341cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF 8342cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */ 8343/* end confdefs.h. */
8146$ac_includes_default 8344$ac_includes_default
8147 typedef short ac__type_sizeof_;
8148int 8345int
8149main () 8346main ()
8150{ 8347{
8151static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8348static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8349 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8152test_array [0] = 0 8350test_array [0] = 0
8153 8351
8154 ; 8352 ;
8155 return 0; 8353 return 0;
8156} 8354}
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && { 8369 (exit $ac_status); } && {
8172 test -z "$ac_cxx_werror_flag" || 8370 test -z "$ac_cxx_werror_flag" ||
8173 test ! -s conftest.err 8371 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then 8372 } && test -s conftest.$ac_objext; then
8175 ac_lo=$ac_mid; break 8373 :
8176else 8374else
8177 echo "$as_me: failed program was:" >&5 8375 echo "$as_me: failed program was:" >&5
8178sed 's/^/| /' conftest.$ac_ext >&5 8376sed 's/^/| /' conftest.$ac_ext >&5
8179 8377
8180 ac_hi=`expr '(' $ac_mid ')' - 1` 8378 case $ac_type in
8181 if test $ac_mid -le $ac_hi; then 8379 int32_t) ac_cv_c_int32_t=yes ;;
8182 ac_lo= ac_hi= 8380 *) ac_cv_c_int32_t=$ac_type ;;
8183 break 8381esac
8184 fi 8382
8185 ac_mid=`expr 2 '*' $ac_mid`
8186fi 8383fi
8187 8384
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 done
8190else 8386else
8191 echo "$as_me: failed program was:" >&5 8387 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5 8388sed 's/^/| /' conftest.$ac_ext >&5
8193 8389
8194 ac_lo= ac_hi= 8390
8195fi 8391fi
8196 8392
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 test "$ac_cv_c_int32_t" != no && break
8395 done
8198fi 8396fi
8397{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8398echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8399 case $ac_cv_c_int32_t in #(
8400 no|yes) ;; #(
8401 *)
8199 8402
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403cat >>confdefs.h <<_ACEOF
8201# Binary search between lo and hi bounds. 8404#define int32_t $ac_cv_c_int32_t
8202while test "x$ac_lo" != "x$ac_hi"; do 8405_ACEOF
8203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8406;;
8407 esac
8408
8409
8410 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8411echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8412if test "${ac_cv_c_uint32_t+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_cv_c_uint32_t=no
8416 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8204 cat >conftest.$ac_ext <<_ACEOF 8418 cat >conftest.$ac_ext <<_ACEOF
8205/* confdefs.h. */ 8419/* confdefs.h. */
8206_ACEOF 8420_ACEOF
8207cat confdefs.h >>conftest.$ac_ext 8421cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF 8422cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h. */ 8423/* end confdefs.h. */
8210$ac_includes_default 8424$ac_includes_default
8211 typedef short ac__type_sizeof_;
8212int 8425int
8213main () 8426main ()
8214{ 8427{
8215static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8428static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8216test_array [0] = 0 8429test_array [0] = 0
8217 8430
8218 ; 8431 ;
8219 return 0; 8432 return 0;
8220} 8433}
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && { 8448 (exit $ac_status); } && {
8236 test -z "$ac_cxx_werror_flag" || 8449 test -z "$ac_cxx_werror_flag" ||
8237 test ! -s conftest.err 8450 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then 8451 } && test -s conftest.$ac_objext; then
8239 ac_hi=$ac_mid 8452 case $ac_type in
8453 uint32_t) ac_cv_c_uint32_t=yes ;;
8454 *) ac_cv_c_uint32_t=$ac_type ;;
8455esac
8456
8240else 8457else
8241 echo "$as_me: failed program was:" >&5 8458 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5 8459sed 's/^/| /' conftest.$ac_ext >&5
8243 8460
8244 ac_lo=`expr '(' $ac_mid ')' + 1` 8461
8245fi 8462fi
8246 8463
8247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248done 8465 test "$ac_cv_c_uint32_t" != no && break
8249case $ac_lo in 8466 done
8250?*) ac_cv_sizeof_short=$ac_lo;;
8251'') if test "$ac_cv_type_short" = yes; then
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8253See \`config.log' for more details." >&5
8254echo "$as_me: error: cannot compute sizeof (short)
8255See \`config.log' for more details." >&2;}
8256 { (exit 77); exit 77; }; }
8257 else
8258 ac_cv_sizeof_short=0
8259 fi ;;
8260esac
8261else
8262 cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
8268$ac_includes_default
8269 typedef short ac__type_sizeof_;
8270static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8271static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8272#include <stdio.h>
8273#include <stdlib.h>
8274int
8275main ()
8276{
8277
8278 FILE *f = fopen ("conftest.val", "w");
8279 if (! f)
8280 return 1;
8281 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8282 {
8283 long int i = longval ();
8284 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8285 return 1;
8286 fprintf (f, "%ld\n", i);
8287 }
8288 else
8289 {
8290 unsigned long int i = ulongval ();
8291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8292 return 1;
8293 fprintf (f, "%lu\n", i);
8294 }
8295 return ferror (f) || fclose (f) != 0;
8296
8297 ;
8298 return 0;
8299}
8300_ACEOF
8301rm -f conftest$ac_exeext
8302if { (ac_try="$ac_link"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_sizeof_short=`cat conftest.val`
8322else
8323 echo "$as_me: program exited with status $ac_status" >&5
8324echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327( exit $ac_status )
8328if test "$ac_cv_type_short" = yes; then
8329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8330See \`config.log' for more details." >&5
8331echo "$as_me: error: cannot compute sizeof (short)
8332See \`config.log' for more details." >&2;}
8333 { (exit 77); exit 77; }; }
8334 else
8335 ac_cv_sizeof_short=0
8336 fi
8337fi 8467fi
8338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8339fi
8340rm -f conftest.val
8341fi
8342{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8468{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8343echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8469echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8470 case $ac_cv_c_uint32_t in #(
8471 no|yes) ;; #(
8472 *)
8344 8473
8474cat >>confdefs.h <<\_ACEOF
8475#define _UINT32_T 1
8476_ACEOF
8345 8477
8346 8478
8347cat >>confdefs.h <<_ACEOF 8479cat >>confdefs.h <<_ACEOF
8348#define SIZEOF_SHORT $ac_cv_sizeof_short 8480#define uint32_t $ac_cv_c_uint32_t
8349_ACEOF 8481_ACEOF
8350 8482;;
8351
8352{ echo "$as_me:$LINENO: checking for int" >&5
8353echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8354if test "${ac_cv_type_int+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
8363$ac_includes_default
8364typedef int ac__type_new_;
8365int
8366main ()
8367{
8368if ((ac__type_new_ *) 0)
8369 return 0;
8370if (sizeof (ac__type_new_))
8371 return 0;
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext
8377if { (ac_try="$ac_compile"
8378case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381esac 8483 esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_cxx_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_type_int=yes
8394else
8395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397 8484
8398 ac_cv_type_int=no
8399fi
8400 8485
8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402fi
8403{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8404echo "${ECHO_T}$ac_cv_type_int" >&6; }
8405 8486
8406# The cast to long int works around a bug in the HP C Compiler
8407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8409# This bug is HP SR number 8606223364.
8410{ echo "$as_me:$LINENO: checking size of int" >&5
8411echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8412if test "${ac_cv_sizeof_int+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 if test "$cross_compiling" = yes; then
8416 # Depending upon the size, compute the lo and hi bounds.
8417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423$ac_includes_default
8424 typedef int ac__type_sizeof_;
8425int
8426main ()
8427{
8428static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8429test_array [0] = 0
8430
8431 ;
8432 return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext
8436if { (ac_try="$ac_compile"
8437case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440esac
8441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_cxx_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 ac_lo=0 ac_mid=0
8453 while :; do
8454 cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h. */
8460$ac_includes_default
8461 typedef int ac__type_sizeof_;
8462int
8463main ()
8464{
8465static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8466test_array [0] = 0
8467
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext
8473if { (ac_try="$ac_compile"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_cxx_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_hi=$ac_mid; break
8490else
8491 echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_lo=`expr $ac_mid + 1`
8495 if test $ac_lo -le $ac_mid; then
8496 ac_lo= ac_hi=
8497 break
8498 fi
8499 ac_mid=`expr 2 '*' $ac_mid + 1`
8500fi
8501
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 done
8504else
8505 echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h. */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h. */
8514$ac_includes_default
8515 typedef int ac__type_sizeof_;
8516int
8517main ()
8518{
8519static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8520test_array [0] = 0
8521
8522 ;
8523 return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext
8527if { (ac_try="$ac_compile"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_cxx_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_hi=-1 ac_mid=-1
8544 while :; do
8545 cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551$ac_includes_default
8552 typedef int ac__type_sizeof_;
8553int
8554main ()
8555{
8556static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8557test_array [0] = 0
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext
8564if { (ac_try="$ac_compile"
8565case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568esac
8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_cxx_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_lo=$ac_mid; break
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_hi=`expr '(' $ac_mid ')' - 1`
8586 if test $ac_mid -le $ac_hi; then
8587 ac_lo= ac_hi=
8588 break
8589 fi
8590 ac_mid=`expr 2 '*' $ac_mid`
8591fi
8592
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 done
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_lo= ac_hi=
8600fi
8601
8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603fi
8604
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606# Binary search between lo and hi bounds.
8607while test "x$ac_lo" != "x$ac_hi"; do
8608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8609 cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615$ac_includes_default
8616 typedef int ac__type_sizeof_;
8617int
8618main ()
8619{
8620static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8621test_array [0] = 0
8622
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext
8628if { (ac_try="$ac_compile"
8629case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_cxx_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 ac_hi=$ac_mid
8645else
8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 ac_lo=`expr '(' $ac_mid ')' + 1`
8650fi
8651
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653done
8654case $ac_lo in
8655?*) ac_cv_sizeof_int=$ac_lo;;
8656'') if test "$ac_cv_type_int" = yes; then
8657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8658See \`config.log' for more details." >&5
8659echo "$as_me: error: cannot compute sizeof (int)
8660See \`config.log' for more details." >&2;}
8661 { (exit 77); exit 77; }; }
8662 else
8663 ac_cv_sizeof_int=0
8664 fi ;;
8665esac
8666else
8667 cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673$ac_includes_default
8674 typedef int ac__type_sizeof_;
8675static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8676static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8677#include <stdio.h>
8678#include <stdlib.h>
8679int
8680main ()
8681{
8682
8683 FILE *f = fopen ("conftest.val", "w");
8684 if (! f)
8685 return 1;
8686 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8687 {
8688 long int i = longval ();
8689 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8690 return 1;
8691 fprintf (f, "%ld\n", i);
8692 }
8693 else
8694 {
8695 unsigned long int i = ulongval ();
8696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8697 return 1;
8698 fprintf (f, "%lu\n", i);
8699 }
8700 return ferror (f) || fclose (f) != 0;
8701
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest$ac_exeext
8707if { (ac_try="$ac_link"
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_link") 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_sizeof_int=`cat conftest.val`
8727else
8728 echo "$as_me: program exited with status $ac_status" >&5
8729echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732( exit $ac_status )
8733if test "$ac_cv_type_int" = yes; then
8734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8735See \`config.log' for more details." >&5
8736echo "$as_me: error: cannot compute sizeof (int)
8737See \`config.log' for more details." >&2;}
8738 { (exit 77); exit 77; }; }
8739 else
8740 ac_cv_sizeof_int=0
8741 fi
8742fi
8743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8744fi
8745rm -f conftest.val
8746fi
8747{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8748echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8749
8750
8751
8752cat >>confdefs.h <<_ACEOF
8753#define SIZEOF_INT $ac_cv_sizeof_int
8754_ACEOF
8755
8756
8757{ echo "$as_me:$LINENO: checking for long long" >&5
8758echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8759if test "${ac_cv_type_long_long+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762 cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768$ac_includes_default
8769typedef long long ac__type_new_;
8770int
8771main ()
8772{
8773if ((ac__type_new_ *) 0)
8774 return 0;
8775if (sizeof (ac__type_new_))
8776 return 0;
8777 ;
8778 return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext
8782if { (ac_try="$ac_compile"
8783case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_compile") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_cxx_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
8798 ac_cv_type_long_long=yes
8799else
8800 echo "$as_me: failed program was:" >&5
8801sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_type_long_long=no
8804fi
8805
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807fi
8808{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8809echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8810
8811# The cast to long int works around a bug in the HP C Compiler
8812# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8813# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8814# This bug is HP SR number 8606223364.
8815{ echo "$as_me:$LINENO: checking size of long long" >&5
8816echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8817if test "${ac_cv_sizeof_long_long+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819else
8820 if test "$cross_compiling" = yes; then
8821 # Depending upon the size, compute the lo and hi bounds.
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h. */
8828$ac_includes_default
8829 typedef long long ac__type_sizeof_;
8830int
8831main ()
8832{
8833static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8834test_array [0] = 0
8835
8836 ;
8837 return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext
8841if { (ac_try="$ac_compile"
8842case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845esac
8846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_cxx_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.$ac_objext; then
8857 ac_lo=0 ac_mid=0
8858 while :; do
8859 cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865$ac_includes_default
8866 typedef long long ac__type_sizeof_;
8867int
8868main ()
8869{
8870static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8871test_array [0] = 0
8872
8873 ;
8874 return 0;
8875}
8876_ACEOF
8877rm -f conftest.$ac_objext
8878if { (ac_try="$ac_compile"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_cxx_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.$ac_objext; then
8894 ac_hi=$ac_mid; break
8895else
8896 echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
8898
8899 ac_lo=`expr $ac_mid + 1`
8900 if test $ac_lo -le $ac_mid; then
8901 ac_lo= ac_hi=
8902 break
8903 fi
8904 ac_mid=`expr 2 '*' $ac_mid + 1`
8905fi
8906
8907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 done
8909else
8910 echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 cat >conftest.$ac_ext <<_ACEOF
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919$ac_includes_default
8920 typedef long long ac__type_sizeof_;
8921int
8922main ()
8923{
8924static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8925test_array [0] = 0
8926
8927 ;
8928 return 0;
8929}
8930_ACEOF
8931rm -f conftest.$ac_objext
8932if { (ac_try="$ac_compile"
8933case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936esac
8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_cxx_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.$ac_objext; then
8948 ac_hi=-1 ac_mid=-1
8949 while :; do
8950 cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
8957 typedef long long ac__type_sizeof_;
8958int
8959main ()
8960{
8961static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8962test_array [0] = 0
8963
8964 ;
8965 return 0;
8966}
8967_ACEOF
8968rm -f conftest.$ac_objext
8969if { (ac_try="$ac_compile"
8970case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_compile") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_cxx_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest.$ac_objext; then
8985 ac_lo=$ac_mid; break
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ac_hi=`expr '(' $ac_mid ')' - 1`
8991 if test $ac_mid -le $ac_hi; then
8992 ac_lo= ac_hi=
8993 break
8994 fi
8995 ac_mid=`expr 2 '*' $ac_mid`
8996fi
8997
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 done
9000else
9001 echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 ac_lo= ac_hi=
9005fi
9006
9007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008fi
9009
9010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011# Binary search between lo and hi bounds.
9012while test "x$ac_lo" != "x$ac_hi"; do
9013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9014 cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
9020$ac_includes_default
9021 typedef long long ac__type_sizeof_;
9022int
9023main ()
9024{
9025static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9026test_array [0] = 0
9027
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext
9033if { (ac_try="$ac_compile"
9034case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_compile") 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } && {
9046 test -z "$ac_cxx_werror_flag" ||
9047 test ! -s conftest.err
9048 } && test -s conftest.$ac_objext; then
9049 ac_hi=$ac_mid
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_lo=`expr '(' $ac_mid ')' + 1`
9055fi
9056
9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058done
9059case $ac_lo in
9060?*) ac_cv_sizeof_long_long=$ac_lo;;
9061'') if test "$ac_cv_type_long_long" = yes; then
9062 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9063See \`config.log' for more details." >&5
9064echo "$as_me: error: cannot compute sizeof (long long)
9065See \`config.log' for more details." >&2;}
9066 { (exit 77); exit 77; }; }
9067 else
9068 ac_cv_sizeof_long_long=0
9069 fi ;;
9070esac
9071else
9072 cat >conftest.$ac_ext <<_ACEOF
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
9078$ac_includes_default
9079 typedef long long ac__type_sizeof_;
9080static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9081static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9082#include <stdio.h>
9083#include <stdlib.h>
9084int
9085main ()
9086{
9087
9088 FILE *f = fopen ("conftest.val", "w");
9089 if (! f)
9090 return 1;
9091 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9092 {
9093 long int i = longval ();
9094 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9095 return 1;
9096 fprintf (f, "%ld\n", i);
9097 }
9098 else
9099 {
9100 unsigned long int i = ulongval ();
9101 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9102 return 1;
9103 fprintf (f, "%lu\n", i);
9104 }
9105 return ferror (f) || fclose (f) != 0;
9106
9107 ;
9108 return 0;
9109}
9110_ACEOF
9111rm -f conftest$ac_exeext
9112if { (ac_try="$ac_link"
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_link") 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_sizeof_long_long=`cat conftest.val`
9132else
9133 echo "$as_me: program exited with status $ac_status" >&5
9134echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137( exit $ac_status )
9138if test "$ac_cv_type_long_long" = yes; then
9139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9140See \`config.log' for more details." >&5
9141echo "$as_me: error: cannot compute sizeof (long long)
9142See \`config.log' for more details." >&2;}
9143 { (exit 77); exit 77; }; }
9144 else
9145 ac_cv_sizeof_long_long=0
9146 fi
9147fi
9148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9149fi
9150rm -f conftest.val
9151fi
9152{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9153echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9154
9155
9156
9157cat >>confdefs.h <<_ACEOF
9158#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9159_ACEOF
9160
9161
9162{ echo "$as_me:$LINENO: checking for int *" >&5
9163echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9164if test "${ac_cv_type_int_p+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166else
9167 cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h. */
9173$ac_includes_default
9174typedef int * ac__type_new_;
9175int
9176main ()
9177{
9178if ((ac__type_new_ *) 0)
9179 return 0;
9180if (sizeof (ac__type_new_))
9181 return 0;
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186rm -f conftest.$ac_objext
9187if { (ac_try="$ac_compile"
9188case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191esac
9192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_compile") 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } && {
9200 test -z "$ac_cxx_werror_flag" ||
9201 test ! -s conftest.err
9202 } && test -s conftest.$ac_objext; then
9203 ac_cv_type_int_p=yes
9204else
9205 echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 ac_cv_type_int_p=no
9209fi
9210
9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212fi
9213{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9214echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9215
9216# The cast to long int works around a bug in the HP C Compiler
9217# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9218# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9219# This bug is HP SR number 8606223364.
9220{ echo "$as_me:$LINENO: checking size of int *" >&5
9221echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9222if test "${ac_cv_sizeof_int_p+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225 if test "$cross_compiling" = yes; then
9226 # Depending upon the size, compute the lo and hi bounds.
9227cat >conftest.$ac_ext <<_ACEOF
9228/* confdefs.h. */
9229_ACEOF
9230cat confdefs.h >>conftest.$ac_ext
9231cat >>conftest.$ac_ext <<_ACEOF
9232/* end confdefs.h. */
9233$ac_includes_default
9234 typedef int * ac__type_sizeof_;
9235int
9236main ()
9237{
9238static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9239test_array [0] = 0
9240
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245rm -f conftest.$ac_objext
9246if { (ac_try="$ac_compile"
9247case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250esac
9251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_cxx_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 ac_lo=0 ac_mid=0
9263 while :; do
9264 cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h. */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h. */
9270$ac_includes_default
9271 typedef int * ac__type_sizeof_;
9272int
9273main ()
9274{
9275static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9276test_array [0] = 0
9277
9278 ;
9279 return 0;
9280}
9281_ACEOF
9282rm -f conftest.$ac_objext
9283if { (ac_try="$ac_compile"
9284case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287esac
9288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_cxx_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.$ac_objext; then
9299 ac_hi=$ac_mid; break
9300else
9301 echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ac_lo=`expr $ac_mid + 1`
9305 if test $ac_lo -le $ac_mid; then
9306 ac_lo= ac_hi=
9307 break
9308 fi
9309 ac_mid=`expr 2 '*' $ac_mid + 1`
9310fi
9311
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 done
9314else
9315 echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 cat >conftest.$ac_ext <<_ACEOF
9319/* confdefs.h. */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h. */
9324$ac_includes_default
9325 typedef int * ac__type_sizeof_;
9326int
9327main ()
9328{
9329static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9330test_array [0] = 0
9331
9332 ;
9333 return 0;
9334}
9335_ACEOF
9336rm -f conftest.$ac_objext
9337if { (ac_try="$ac_compile"
9338case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341esac
9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_compile") 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_cxx_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest.$ac_objext; then
9353 ac_hi=-1 ac_mid=-1
9354 while :; do
9355 cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h. */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
9361$ac_includes_default
9362 typedef int * ac__type_sizeof_;
9363int
9364main ()
9365{
9366static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9367test_array [0] = 0
9368
9369 ;
9370 return 0;
9371}
9372_ACEOF
9373rm -f conftest.$ac_objext
9374if { (ac_try="$ac_compile"
9375case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_cxx_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_lo=$ac_mid; break
9391else
9392 echo "$as_me: failed program was:" >&5
9393sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 ac_hi=`expr '(' $ac_mid ')' - 1`
9396 if test $ac_mid -le $ac_hi; then
9397 ac_lo= ac_hi=
9398 break
9399 fi
9400 ac_mid=`expr 2 '*' $ac_mid`
9401fi
9402
9403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 done
9405else
9406 echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409 ac_lo= ac_hi=
9410fi
9411
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413fi
9414
9415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9416# Binary search between lo and hi bounds.
9417while test "x$ac_lo" != "x$ac_hi"; do
9418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9419 cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425$ac_includes_default
9426 typedef int * ac__type_sizeof_;
9427int
9428main ()
9429{
9430static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9431test_array [0] = 0
9432
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext
9438if { (ac_try="$ac_compile"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_compile") 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_cxx_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
9454 ac_hi=$ac_mid
9455else
9456 echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_lo=`expr '(' $ac_mid ')' + 1`
9460fi
9461
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463done
9464case $ac_lo in
9465?*) ac_cv_sizeof_int_p=$ac_lo;;
9466'') if test "$ac_cv_type_int_p" = yes; then
9467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9468See \`config.log' for more details." >&5
9469echo "$as_me: error: cannot compute sizeof (int *)
9470See \`config.log' for more details." >&2;}
9471 { (exit 77); exit 77; }; }
9472 else
9473 ac_cv_sizeof_int_p=0
9474 fi ;;
9475esac
9476else
9477 cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483$ac_includes_default
9484 typedef int * ac__type_sizeof_;
9485static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9486static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9487#include <stdio.h>
9488#include <stdlib.h>
9489int
9490main ()
9491{
9492
9493 FILE *f = fopen ("conftest.val", "w");
9494 if (! f)
9495 return 1;
9496 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9497 {
9498 long int i = longval ();
9499 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9500 return 1;
9501 fprintf (f, "%ld\n", i);
9502 }
9503 else
9504 {
9505 unsigned long int i = ulongval ();
9506 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9507 return 1;
9508 fprintf (f, "%lu\n", i);
9509 }
9510 return ferror (f) || fclose (f) != 0;
9511
9512 ;
9513 return 0;
9514}
9515_ACEOF
9516rm -f conftest$ac_exeext
9517if { (ac_try="$ac_link"
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_link") 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9527 { (case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_sizeof_int_p=`cat conftest.val`
9537else
9538 echo "$as_me: program exited with status $ac_status" >&5
9539echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
9542( exit $ac_status )
9543if test "$ac_cv_type_int_p" = yes; then
9544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9545See \`config.log' for more details." >&5
9546echo "$as_me: error: cannot compute sizeof (int *)
9547See \`config.log' for more details." >&2;}
9548 { (exit 77); exit 77; }; }
9549 else
9550 ac_cv_sizeof_int_p=0
9551 fi
9552fi
9553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9554fi
9555rm -f conftest.val
9556fi
9557{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9558echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9559
9560
9561
9562cat >>confdefs.h <<_ACEOF
9563#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9564_ACEOF
9565
9566
9567
9568
9569{ echo "$as_me:$LINENO: checking for int16_t" >&5
9570echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9571if test "${rxvt_cv_int16_t+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574 cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580#include <stdint.h>
9581int
9582main ()
9583{
9584int16_t dummy;
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589rm -f conftest.$ac_objext
9590if { (ac_try="$ac_compile"
9591case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_compile") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_cxx_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest.$ac_objext; then
9606 rxvt_cv_int16_t=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 if test "$ac_cv_sizeof_char" -ge 2; then
9612 rxvt_cv_int16_t=" char"
9613else
9614 if test "$ac_cv_sizeof_short" -ge 2; then
9615 rxvt_cv_int16_t=" short"
9616 else
9617 if test "$ac_cv_sizeof_int" -ge 2; then
9618 rxvt_cv_int16_t=" int"
9619 else
9620 if test "$ac_cv_sizeof_long" -ge 2; then
9621 rxvt_cv_int16_t=" long"
9622 else
9623 if test "$ac_cv_sizeof_long_long" -ge 2; then
9624 rxvt_cv_int16_t=" long long"
9625 else
9626 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9627 fi
9628 fi
9629 fi
9630 fi
9631fi
9632fi
9633
9634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635fi
9636{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9637echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9638if test x"$rxvt_cv_int16_t" != xyes; then
9639 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9640else
9641 if test x"" = x; then
9642 rxvt_int16_typedef="/* typedef short int16_t; */"
9643 else
9644 rxvt_int16_typedef="/* typedef short int16_t; */"
9645 fi
9646fi
9647
9648{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9649echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9650if test "${rxvt_cv_uint16_t+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h. */
9659#include <stdint.h>
9660int
9661main ()
9662{
9663uint16_t dummy;
9664 ;
9665 return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext
9669if { (ac_try="$ac_compile"
9670case "(($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_compile") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_cxx_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9685 rxvt_cv_uint16_t=yes
9686else
9687 echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 if test "$ac_cv_sizeof_char" -ge 2; then
9691 rxvt_cv_uint16_t="unsigned char"
9692else
9693 if test "$ac_cv_sizeof_short" -ge 2; then
9694 rxvt_cv_uint16_t="unsigned short"
9695 else
9696 if test "$ac_cv_sizeof_int" -ge 2; then
9697 rxvt_cv_uint16_t="unsigned int"
9698 else
9699 if test "$ac_cv_sizeof_long" -ge 2; then
9700 rxvt_cv_uint16_t="unsigned long"
9701 else
9702 if test "$ac_cv_sizeof_long_long" -ge 2; then
9703 rxvt_cv_uint16_t="unsigned long long"
9704 else
9705 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9706 fi
9707 fi
9708 fi
9709 fi
9710fi
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714fi
9715{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9716echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9717if test x"$rxvt_cv_uint16_t" != xyes; then
9718 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9719else
9720 if test x"unsigned" = x; then
9721 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9722 else
9723 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9724 fi
9725fi
9726
9727{ echo "$as_me:$LINENO: checking for int32_t" >&5
9728echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9729if test "${rxvt_cv_int32_t+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732 cat >conftest.$ac_ext <<_ACEOF
9733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
9738#include <stdint.h>
9739int
9740main ()
9741{
9742int32_t dummy;
9743 ;
9744 return 0;
9745}
9746_ACEOF
9747rm -f conftest.$ac_objext
9748if { (ac_try="$ac_compile"
9749case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_cxx_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 rxvt_cv_int32_t=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 if test "$ac_cv_sizeof_char" -ge 4; then
9770 rxvt_cv_int32_t=" char"
9771else
9772 if test "$ac_cv_sizeof_short" -ge 4; then
9773 rxvt_cv_int32_t=" short"
9774 else
9775 if test "$ac_cv_sizeof_int" -ge 4; then
9776 rxvt_cv_int32_t=" int"
9777 else
9778 if test "$ac_cv_sizeof_long" -ge 4; then
9779 rxvt_cv_int32_t=" long"
9780 else
9781 if test "$ac_cv_sizeof_long_long" -ge 4; then
9782 rxvt_cv_int32_t=" long long"
9783 else
9784 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9785 fi
9786 fi
9787 fi
9788 fi
9789fi
9790fi
9791
9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793fi
9794{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9795echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9796if test x"$rxvt_cv_int32_t" != xyes; then
9797 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9798else
9799 if test x"" = x; then
9800 rxvt_int32_typedef="/* typedef int int32_t; */"
9801 else
9802 rxvt_int32_typedef="/* typedef int int32_t; */"
9803 fi
9804fi
9805
9806{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9807echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9808if test "${rxvt_cv_uint32_t+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811 cat >conftest.$ac_ext <<_ACEOF
9812/* confdefs.h. */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
9816/* end confdefs.h. */
9817#include <stdint.h>
9818int
9819main ()
9820{
9821uint32_t dummy;
9822 ;
9823 return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext
9827if { (ac_try="$ac_compile"
9828case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_cxx_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9843 rxvt_cv_uint32_t=yes
9844else
9845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 if test "$ac_cv_sizeof_char" -ge 4; then
9849 rxvt_cv_uint32_t="unsigned char"
9850else
9851 if test "$ac_cv_sizeof_short" -ge 4; then
9852 rxvt_cv_uint32_t="unsigned short"
9853 else
9854 if test "$ac_cv_sizeof_int" -ge 4; then
9855 rxvt_cv_uint32_t="unsigned int"
9856 else
9857 if test "$ac_cv_sizeof_long" -ge 4; then
9858 rxvt_cv_uint32_t="unsigned long"
9859 else
9860 if test "$ac_cv_sizeof_long_long" -ge 4; then
9861 rxvt_cv_uint32_t="unsigned long long"
9862 else
9863 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9864 fi
9865 fi
9866 fi
9867 fi
9868fi
9869fi
9870
9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872fi
9873{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9874echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9875if test x"$rxvt_cv_uint32_t" != xyes; then
9876 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9877else
9878 if test x"unsigned" = x; then
9879 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9880 else
9881 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9882 fi
9883fi
9884
9885if test "$ac_cv_sizeof_int_p" -eq 8; then
9886 rxvt_intp_define="#define intp_t int64_t"
9887 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9888else
9889 if test "$ac_cv_sizeof_int_p" -eq 4; then
9890 rxvt_intp_define="#define intp_t int32_t"
9891 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9892 else
9893 if test "$ac_cv_sizeof_int_p" -eq 2; then
9894 rxvt_intp_define="#define intp_t int16_t"
9895 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9896 else
9897 rxvt_intp_define="#error set intp_t"
9898 rxvt_u_intp_define="#error set u_intp_t"
9899 fi
9900 fi
9901fi
9902
9903
9904
9905{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9906echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9907if test "${ac_cv_type_signal+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909else
9910 cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
9916#include <sys/types.h>
9917#include <signal.h>
9918
9919int
9920main ()
9921{
9922return *(signal (0, 0)) (0) == 1;
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext
9928if { (ac_try="$ac_compile"
9929case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_compile") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_cxx_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest.$ac_objext; then
9944 ac_cv_type_signal=int
9945else
9946 echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_cv_type_signal=void
9950fi
9951
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953fi
9954{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9955echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9956
9957cat >>confdefs.h <<_ACEOF
9958#define RETSIGTYPE $ac_cv_type_signal
9959_ACEOF
9960
9961
9962
9963
9964
9965
9966for ac_func in \ 8487for ac_func in unsetenv
9967 unsetenv \
9968 setutent \
9969 on_exit \
9970
9971do 8488do
9972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10114 8631
10115 8632
10116 8633
10117 8634
10118for ac_func in \ 8635for ac_func in \
10119 ttyslot \
10120 updwtmp \ 8636 updwtmp \
10121 updwtmpx \ 8637 updwtmpx \
8638 updlastlogx \
10122 8639
10123do 8640do
10124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10125{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10212fi 8729fi
10213done 8730done
10214 8731
10215 8732
10216 8733
10217
10218
10219for ac_header in \ 8734for ac_header in lastlog.h
10220 utmp.h \
10221 utmpx.h \
10222 lastlog.h \
10223
10224do 8735do
10225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10359 8870
10360done 8871done
10361 8872
10362 8873
10363 8874
10364if test "${ac_cv_header_utmp_h+set}" = set; then 8875
8876for ac_header in utmp.h
8877do
8878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10365 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10366echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10367if test "${ac_cv_header_utmp_h+set}" = set; then 8882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6 8883 echo $ECHO_N "(cached) $ECHO_C" >&6
10369fi 8884fi
8885ac_res=`eval echo '${'$as_ac_Header'}'`
10370{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8886 { echo "$as_me:$LINENO: result: $ac_res" >&5
10371echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8887echo "${ECHO_T}$ac_res" >&6; }
10372else 8888else
10373 # Is the header compilable? 8889 # Is the header compilable?
10374{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10375echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10376cat >conftest.$ac_ext <<_ACEOF 8892cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h. */ 8893/* confdefs.h. */
10378_ACEOF 8894_ACEOF
10379cat confdefs.h >>conftest.$ac_ext 8895cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF 8896cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h. */ 8897/* end confdefs.h. */
10382$ac_includes_default 8898$ac_includes_default
10383#include <utmp.h> 8899#include <$ac_header>
10384_ACEOF 8900_ACEOF
10385rm -f conftest.$ac_objext 8901rm -f conftest.$ac_objext
10386if { (ac_try="$ac_compile" 8902if { (ac_try="$ac_compile"
10387case "(($ac_try" in 8903case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10412echo "${ECHO_T}$ac_header_compiler" >&6; } 8928echo "${ECHO_T}$ac_header_compiler" >&6; }
10413 8929
10414# Is the header present? 8930# Is the header present?
10415{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8931{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10416echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10417cat >conftest.$ac_ext <<_ACEOF 8933cat >conftest.$ac_ext <<_ACEOF
10418/* confdefs.h. */ 8934/* confdefs.h. */
10419_ACEOF 8935_ACEOF
10420cat confdefs.h >>conftest.$ac_ext 8936cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF 8937cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h. */ 8938/* end confdefs.h. */
10423#include <utmp.h> 8939#include <$ac_header>
10424_ACEOF 8940_ACEOF
10425if { (ac_try="$ac_cpp conftest.$ac_ext" 8941if { (ac_try="$ac_cpp conftest.$ac_ext"
10426case "(($ac_try" in 8942case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;; 8944 *) ac_try_echo=$ac_try;;
10451echo "${ECHO_T}$ac_header_preproc" >&6; } 8967echo "${ECHO_T}$ac_header_preproc" >&6; }
10452 8968
10453# So? What about this header? 8969# So? What about this header?
10454case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8970case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10455 yes:no: ) 8971 yes:no: )
10456 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10457echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 8974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10459echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10460 ac_header_preproc=yes 8976 ac_header_preproc=yes
10461 ;; 8977 ;;
10462 no:yes:* ) 8978 no:yes:* )
10463 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10464echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 8981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10466echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10468echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 8985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10470echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10472echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 8989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10474echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10475 8991
10476 ;; 8992 ;;
10477esac 8993esac
10478{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10479echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10480if test "${ac_cv_header_utmp_h+set}" = set; then 8996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6 8997 echo $ECHO_N "(cached) $ECHO_C" >&6
10482else 8998else
10483 ac_cv_header_utmp_h=$ac_header_preproc 8999 eval "$as_ac_Header=\$ac_header_preproc"
10484fi 9000fi
9001ac_res=`eval echo '${'$as_ac_Header'}'`
10485{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 9002 { echo "$as_me:$LINENO: result: $ac_res" >&5
10486echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 9003echo "${ECHO_T}$ac_res" >&6; }
10487 9004
10488fi 9005fi
10489if test $ac_cv_header_utmp_h = yes; then 9006if test `eval echo '${'$as_ac_Header'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009_ACEOF
10490 { echo "$as_me:$LINENO: checking for struct utmp" >&5 9010 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10491echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 9011echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10492if test "${struct_utmp+set}" = set; then 9012if test "${struct_utmp+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6 9013 echo $ECHO_N "(cached) $ECHO_C" >&6
10494else 9014else
10495 cat >conftest.$ac_ext <<_ACEOF 9015 cat >conftest.$ac_ext <<_ACEOF
10662 9182
10663fi 9183fi
10664 9184
10665fi 9185fi
10666 9186
9187done
10667 9188
10668 9189
10669if test "${ac_cv_header_utmpx_h+set}" = set; then 9190
9191for ac_header in utmpx.h
9192do
9193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 9195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10671echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10672if test "${ac_cv_header_utmpx_h+set}" = set; then 9197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6 9198 echo $ECHO_N "(cached) $ECHO_C" >&6
10674fi 9199fi
9200ac_res=`eval echo '${'$as_ac_Header'}'`
10675{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10676echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9202echo "${ECHO_T}$ac_res" >&6; }
10677else 9203else
10678 # Is the header compilable? 9204 # Is the header compilable?
10679{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 9205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10680echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10681cat >conftest.$ac_ext <<_ACEOF 9207cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */ 9208/* confdefs.h. */
10683_ACEOF 9209_ACEOF
10684cat confdefs.h >>conftest.$ac_ext 9210cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF 9211cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */ 9212/* end confdefs.h. */
10687$ac_includes_default 9213$ac_includes_default
10688#include <utmpx.h> 9214#include <$ac_header>
10689_ACEOF 9215_ACEOF
10690rm -f conftest.$ac_objext 9216rm -f conftest.$ac_objext
10691if { (ac_try="$ac_compile" 9217if { (ac_try="$ac_compile"
10692case "(($ac_try" in 9218case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10716{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10717echo "${ECHO_T}$ac_header_compiler" >&6; } 9243echo "${ECHO_T}$ac_header_compiler" >&6; }
10718 9244
10719# Is the header present? 9245# Is the header present?
10720{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 9246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10721echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 9247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10722cat >conftest.$ac_ext <<_ACEOF 9248cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h. */ 9249/* confdefs.h. */
10724_ACEOF 9250_ACEOF
10725cat confdefs.h >>conftest.$ac_ext 9251cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF 9252cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h. */ 9253/* end confdefs.h. */
10728#include <utmpx.h> 9254#include <$ac_header>
10729_ACEOF 9255_ACEOF
10730if { (ac_try="$ac_cpp conftest.$ac_ext" 9256if { (ac_try="$ac_cpp conftest.$ac_ext"
10731case "(($ac_try" in 9257case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;; 9259 *) ac_try_echo=$ac_try;;
10756echo "${ECHO_T}$ac_header_preproc" >&6; } 9282echo "${ECHO_T}$ac_header_preproc" >&6; }
10757 9283
10758# So? What about this header? 9284# So? What about this header?
10759case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9285case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10760 yes:no: ) 9286 yes:no: )
10761 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10762echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10764echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10765 ac_header_preproc=yes 9291 ac_header_preproc=yes
10766 ;; 9292 ;;
10767 no:yes:* ) 9293 no:yes:* )
10768 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10769echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10771echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10773echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 9300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10775echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 9302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10777echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 9304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10779echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10780 9306
10781 ;; 9307 ;;
10782esac 9308esac
10783{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9309{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10784echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10785if test "${ac_cv_header_utmpx_h+set}" = set; then 9311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6 9312 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else 9313else
10788 ac_cv_header_utmpx_h=$ac_header_preproc 9314 eval "$as_ac_Header=\$ac_header_preproc"
10789fi 9315fi
9316ac_res=`eval echo '${'$as_ac_Header'}'`
10790{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9317 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9318echo "${ECHO_T}$ac_res" >&6; }
10792 9319
10793fi 9320fi
10794if test $ac_cv_header_utmpx_h = yes; then 9321if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324_ACEOF
10795 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9325 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10796echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9326echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10797if test "${struct_utmpx+set}" = set; then 9327if test "${struct_utmpx+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6 9328 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else 9329else
10800 cat >conftest.$ac_ext <<_ACEOF 9330 cat >conftest.$ac_ext <<_ACEOF
10967 9497
10968fi 9498fi
10969 9499
10970fi 9500fi
10971 9501
9502done
10972 9503
10973{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9504{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
10974echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9505echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
10975if test "${struct_lastlog+set}" = set; then 9506if test "${struct_lastlog+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6 9507 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 10078
11548cat >>confdefs.h <<_ACEOF 10079cat >>confdefs.h <<_ACEOF
11549#define LASTLOG_FILE "$path_lastlog" 10080#define LASTLOG_FILE "$path_lastlog"
11550_ACEOF 10081_ACEOF
11551 10082
11552 if test -d "$path_lastlog"; then
11553
11554cat >>confdefs.h <<\_ACEOF
11555#define LASTLOG_IS_DIR 1
11556_ACEOF
11557
11558 fi
11559fi 10083fi
11560 10084
11561{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10085{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11562echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10086echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11563if test "${path_lastlogx+set}" = set; then 10087if test "${path_lastlogx+set}" = set; then
11645 10169
11646fi 10170fi
11647 10171
11648 10172
11649 10173
11650{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11651echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11652if test "${rxvt_cv_path_ttytab+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 for ttys_file in /etc/ttys /etc/ttytab;
11656do
11657 if test -f "$ttys_file" ; then
11658 rxvt_cv_path_ttytab=$ttys_file
11659 break
11660 fi
11661done
11662 10174
11663fi
11664{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11665echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11666if test x$rxvt_cv_path_ttytab != x; then
11667
11668cat >>confdefs.h <<_ACEOF
11669#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11670_ACEOF
11671
11672fi
11673
11674
11675ac_save_LIBS=$LIBS 10175save_LIBS=$LIBS
11676ac_save_CFLAGS=$CFLAGS 10176save_CFLAGS=$CFLAGS
11677CFLAGS="$CFLAGS $X_CFLAGS" 10177CFLAGS="$CFLAGS $X_CFLAGS"
11678LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10178LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
10179if test x$support_xim = xyes; then
11679{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 10180 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11680echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10181echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11681if test "${rxvt_cv_func_xlocale+set}" = set; then 10182if test "${rxvt_cv_func_xlocale+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6 10183 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else 10184else
11684 if test "$cross_compiling" = yes; then 10185 if test "$cross_compiling" = yes; then
11685 : 10186 :
11686else 10187else
11687 cat >conftest.$ac_ext <<_ACEOF 10188 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */ 10189/* confdefs.h. */
11689_ACEOF 10190_ACEOF
11690cat confdefs.h >>conftest.$ac_ext 10191cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF 10192cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */ 10193/* end confdefs.h. */
11693#include <X11/Xlib.h> 10194#include <X11/Xlib.h>
11694#include <stdlib.h> 10195 #include <stdlib.h>
11695main() { 10196 main() {
11696char *p; 10197 char *p;
11697if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 10198 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11698exit (XSupportsLocale() ? 0 : 1); 10199 exit (XSupportsLocale() ? 0 : 1);
11699else 10200 else
11700exit (1);} 10201 exit (1);}
11701_ACEOF 10202_ACEOF
11702rm -f conftest$ac_exeext 10203rm -f conftest$ac_exeext
11703if { (ac_try="$ac_link" 10204if { (ac_try="$ac_link"
11704case "(($ac_try" in 10205case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5 10219 (eval "$ac_try") 2>&5
11719 ac_status=$? 10220 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then 10222 (exit $ac_status); }; }; then
11722 rxvt_cv_func_xlocale=yes 10223 rxvt_cv_func_xlocale=yes
11723else 10224else
11724 echo "$as_me: program exited with status $ac_status" >&5 10225 echo "$as_me: program exited with status $ac_status" >&5
11725echo "$as_me: failed program was:" >&5 10226echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5 10227sed 's/^/| /' conftest.$ac_ext >&5
11727 10228
11733 10234
11734 10235
11735fi 10236fi
11736{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 10237{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11737echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 10238echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11738if test x$support_xim = xyes; then
11739 if test x$rxvt_cv_func_xlocale = xyes; then 10239 if test x$rxvt_cv_func_xlocale = xyes; then
11740 10240
11741cat >>confdefs.h <<\_ACEOF 10241cat >>confdefs.h <<\_ACEOF
11742#define USE_XIM 1 10242#define USE_XIM 1
11743_ACEOF 10243_ACEOF
11744 10244
10245 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
10246echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
10247if test "${rxvt_broken_ximcb+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 cat >conftest.$ac_ext <<_ACEOF
10251
10252 #include <X11/Xlib.h>
10253
10254 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
10255
10256 void f() {
10257 XIMCallback cb;
10258 cb.callback = im_destroy_cb;
10259 }
10260
10261_ACEOF
10262rm -f conftest.$ac_objext
10263if { (ac_try="$ac_compile"
10264case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267esac
10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_compile") 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_cxx_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest.$ac_objext; then
10279 rxvt_broken_ximcb=yes
10280else
10281 echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 rxvt_broken_ximcb=no
10285fi
10286
10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10288fi
10289{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
10290echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
10291
10292 if test x$rxvt_broken_ximcb = xyes; then
10293
10294cat >>confdefs.h <<\_ACEOF
10295#define XIMCB_PROTO_BROKEN 1
10296_ACEOF
10297
10298 fi
11745 fi 10299 fi
11746fi 10300fi
11747 10301
11748{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 10302{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11749echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 10303echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11802cat >>confdefs.h <<\_ACEOF 10356cat >>confdefs.h <<\_ACEOF
11803#define HAVE_XSETLOCALE 1 10357#define HAVE_XSETLOCALE 1
11804_ACEOF 10358_ACEOF
11805 10359
11806fi 10360fi
11807LIBS=$ac_save_LIBS 10361LIBS=$save_LIBS
11808CFLAGS=$ac_save_CFLAGS 10362CFLAGS=$save_CFLAGS
11809 10363
11810{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10364{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11811echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10365echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11812if test "${rxvt_cv_func_setlocale+set}" = set; then 10366if test "${rxvt_cv_func_setlocale+set}" = set; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6 10367 echo $ECHO_N "(cached) $ECHO_C" >&6
12017echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 10571echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12018 { (exit 1); exit 1; }; } 10572 { (exit 1); exit 1; }; }
12019fi 10573fi
12020 10574
12021 10575
12022{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12023echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12024if test "${rxvt_broken_ximcb+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 cat >conftest.$ac_ext <<_ACEOF
12028
12029#include <X11/Xlib.h>
12030
12031void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12032
12033void f() {
12034 XIMCallback cb;
12035 cb.callback = im_destroy_cb;
12036}
12037
12038_ACEOF
12039rm -f conftest.$ac_objext
12040if { (ac_try="$ac_compile"
12041case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044esac
12045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_compile") 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && {
12053 test -z "$ac_cxx_werror_flag" ||
12054 test ! -s conftest.err
12055 } && test -s conftest.$ac_objext; then
12056 rxvt_broken_ximcb=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 rxvt_broken_ximcb=no
12062fi
12063
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065fi
12066{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12067echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12068
12069if test x$rxvt_broken_ximcb = xyes; then
12070
12071cat >>confdefs.h <<\_ACEOF
12072#define XIMCB_PROTO_BROKEN 1
12073_ACEOF
12074
12075fi
12076 10576
12077 10577
12078 10578
12079 10579
12080 10580
12084 pty.h \ 10584 pty.h \
12085 util.h \ 10585 util.h \
12086 libutil.h \ 10586 libutil.h \
12087 sys/ioctl.h \ 10587 sys/ioctl.h \
12088 sys/stropts.h \ 10588 sys/stropts.h \
10589 stropts.h \
12089 10590
12090do 10591do
12091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12093 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12761echo "${ECHO_T}no" >&6; } 11262echo "${ECHO_T}no" >&6; }
12762fi 11263fi
12763 11264
12764 11265
12765 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11266 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12766 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11267 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12767 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11268 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12768 else 11269 else
12769 # Extract the first word of "xft-config", so it can be a program name with args. 11270 # Extract the first word of "xft-config", so it can be a program name with args.
12770set dummy xft-config; ac_word=$2 11271set dummy xft-config; ac_word=$2
12771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12806echo "${ECHO_T}no" >&6; } 11307echo "${ECHO_T}no" >&6; }
12807fi 11308fi
12808 11309
12809 11310
12810 if test $XFT_CONFIG != no; then 11311 if test $XFT_CONFIG != no; then
12811 LIBS="$LIBS `$XFT_CONFIG --libs`" 11312 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12812 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11313 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12813 fi 11314 fi
12814 fi 11315 fi
12815 11316
11317 save_LIBS="$LIBS"
11318 LIBS="$LIBS $X_LIBS"
12816 11319
12817for ac_header in X11/Xft/Xft.h 11320for ac_header in X11/Xft/Xft.h
12818do 11321do
12819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12953 support_xft=no 11456 support_xft=no
12954fi 11457fi
12955 11458
12956done 11459done
12957 11460
12958
12959{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11461 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12960echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11462echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12961if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11463if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6 11464 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else 11465else
12964 ac_check_lib_save_LIBS=$LIBS 11466 ac_check_lib_save_LIBS=$LIBS
13016LIBS=$ac_check_lib_save_LIBS 11518LIBS=$ac_check_lib_save_LIBS
13017fi 11519fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11520{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13019echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11521echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13020if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11522if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13021 cat >>confdefs.h <<_ACEOF 11523 :
13022#define HAVE_LIBXFT 1
13023_ACEOF
13024
13025 LIBS="-lXft $LIBS"
13026
13027else 11524else
13028 support_xft=no 11525 support_xft=no
13029fi 11526fi
13030 11527
11528 LIBS="$save_LIBS"
13031 11529
13032 if test x$support_xft = xyes; then 11530 if test x$support_xft = xyes; then
13033 11531
13034cat >>confdefs.h <<\_ACEOF 11532cat >>confdefs.h <<\_ACEOF
13035#define XFT 1 11533#define XFT 1
13063cat >>confdefs.h <<\_ACEOF 11561cat >>confdefs.h <<\_ACEOF
13064#define OFF_FOCUS_FADING 1 11562#define OFF_FOCUS_FADING 1
13065_ACEOF 11563_ACEOF
13066 11564
13067fi 11565fi
13068if test x$support_tinting = xyes; then
13069
13070cat >>confdefs.h <<\_ACEOF
13071#define TINTING 1
13072_ACEOF
13073
13074fi
13075if test x$support_inheritpixmap = xyes; then 11566if test x$support_inheritpixmap = xyes; then
13076 11567
13077cat >>confdefs.h <<\_ACEOF 11568cat >>confdefs.h <<\_ACEOF
13078#define ENABLE_TRANSPARENCY 1 11569#define ENABLE_TRANSPARENCY 1
13079_ACEOF 11570_ACEOF
13091cat >>confdefs.h <<\_ACEOF 11582cat >>confdefs.h <<\_ACEOF
13092#define SELECTION_SCROLLING 1 11583#define SELECTION_SCROLLING 1
13093_ACEOF 11584_ACEOF
13094 11585
13095fi 11586fi
11587if test x$support_frills = xyes; then
11588
11589cat >>confdefs.h <<\_ACEOF
11590#define ENABLE_FRILLS 1
11591_ACEOF
11592
11593fi
13096if test x$support_mousewheel = xyes; then 11594if test x$support_mousewheel = xyes; then
13097 11595
13098cat >>confdefs.h <<\_ACEOF 11596cat >>confdefs.h <<\_ACEOF
13099#define MOUSE_WHEEL 1 11597#define MOUSE_WHEEL 1
13100_ACEOF 11598_ACEOF
13105cat >>confdefs.h <<\_ACEOF 11603cat >>confdefs.h <<\_ACEOF
13106#define MOUSE_SLIP_WHEELING 1 11604#define MOUSE_SLIP_WHEELING 1
13107_ACEOF 11605_ACEOF
13108 11606
13109fi 11607fi
13110if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13111
13112cat >>confdefs.h <<\_ACEOF
13113#define XPM_BACKGROUND 1
13114_ACEOF
13115
13116fi
13117
13118if test x$support_afterimage = xyes; then 11608if test x$support_afterimage = xyes; then
13119 11609
13120cat >>confdefs.h <<\_ACEOF 11610cat >>confdefs.h <<\_ACEOF
13121#define HAVE_AFTERIMAGE 1 11611#define HAVE_AFTERIMAGE 1
13122_ACEOF 11612_ACEOF
13123 11613
11614
11615cat >>confdefs.h <<\_ACEOF
11616#define BG_IMAGE_FROM_FILE 1
11617_ACEOF
11618
13124fi 11619fi
11620
11621
11622scrolltypes=plain
11623
11624cat >>confdefs.h <<\_ACEOF
11625#define PLAIN_SCROLLBAR 1
11626_ACEOF
13125 11627
13126 11628
13127if test x$support_scroll_rxvt = xyes; then 11629if test x$support_scroll_rxvt = xyes; then
13128 11630
13129cat >>confdefs.h <<\_ACEOF 11631cat >>confdefs.h <<\_ACEOF
13130#define RXVT_SCROLLBAR 1 11632#define RXVT_SCROLLBAR 1
13131_ACEOF 11633_ACEOF
13132 11634
13133 scrolltypes="rxvt" 11635 scrolltypes="$scrolltypes rxvt"
13134fi 11636fi
13135if test x$support_scroll_next = xyes; then 11637if test x$support_scroll_next = xyes; then
13136 11638
13137cat >>confdefs.h <<\_ACEOF 11639cat >>confdefs.h <<\_ACEOF
13138#define NEXT_SCROLLBAR 1 11640#define NEXT_SCROLLBAR 1
13145cat >>confdefs.h <<\_ACEOF 11647cat >>confdefs.h <<\_ACEOF
13146#define XTERM_SCROLLBAR 1 11648#define XTERM_SCROLLBAR 1
13147_ACEOF 11649_ACEOF
13148 11650
13149 scrolltypes="$scrolltypes xterm" 11651 scrolltypes="$scrolltypes xterm"
13150fi
13151if test x$support_scroll_plain = xyes; then
13152
13153cat >>confdefs.h <<\_ACEOF
13154#define PLAIN_SCROLLBAR 1
13155_ACEOF
13156
13157 scrolltypes="$scrolltypes plain"
13158fi 11652fi
13159if test x$support_pointer_blank = xyes; then 11653if test x$support_pointer_blank = xyes; then
13160 11654
13161cat >>confdefs.h <<\_ACEOF 11655cat >>confdefs.h <<\_ACEOF
13162#define POINTER_BLANK 1 11656#define POINTER_BLANK 1
13399 11893
13400 11894
13401 11895
13402 11896
13403 11897
13404if test x$support_perl = xyes; then
13405 support_frills=yes
13406fi
13407
13408if test x$support_frills = xyes; then
13409
13410cat >>confdefs.h <<\_ACEOF
13411#define ENABLE_FRILLS 1
13412_ACEOF
13413
13414fi
13415
13416 11898
13417 11899
13418 11900
13419 11901
13420 11902
13437_ACEOF 11919_ACEOF
13438program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11920program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13439rm -f conftest.sed 11921rm -f conftest.sed
13440 11922
13441 11923
13442
13443
13444
13445if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13446 include_stdint_h="#include <stdint.h>"
13447else
13448 include_stdint_h="/* #include <stdint.h> */"
13449fi
13450if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13451 include_stdarg_h="#include <cstdarg>"
13452else
13453 include_stdarg_h="/* #include <cstdarg> */"
13454fi
13455if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13456 include_stdlib_h="#include <cstdlib>"
13457else
13458 include_stdlib_h="/* #include <cstdlib> */"
13459fi
13460if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13461 include_unistd_h="#include <unistd.h>"
13462else
13463 include_unistd_h="/* #include <unistd.h> */"
13464fi
13465if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13466 include_string_h="#include <cstring>"
13467else
13468 include_string_h="/* #include <cstring> */"
13469fi
13470if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13471 include_fcntl_h="#include <fcntl.h>"
13472else
13473 include_fcntl_h="/* #include <fcntl.h> */"
13474fi
13475if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13476 include_util_h="#include <util.h>"
13477else
13478 include_util_h="/* #include <util.h> */"
13479fi
13480if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13481 include_assert_h="#include <assert.h>"
13482else
13483 include_assert_h="/* #include <assert.h> */"
13484fi
13485if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13486 include_sys_ioctl_h="#include <sys/ioctl.h>"
13487else
13488 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13489fi
13490if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13491 include_sys_select_h="#include <sys/select.h>"
13492else
13493 include_sys_select_h="/* #include <sys/select.h> */"
13494fi
13495if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13496 include_sys_strredir_h="#include <sys/strredir.h>"
13497else
13498 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13499fi
13500if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13501 include_sys_time_h="#include <sys/time.h>"
13502else
13503 include_sys_time_h="/* #include <sys/time.h> */"
13504fi
13505if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13506 include_time_h="#include <time.h>"
13507else
13508 include_time_h="/* #include <time.h> */"
13509fi
13510
13511ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11924ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13512 11925
13513cat >confcache <<\_ACEOF 11926cat >confcache <<\_ACEOF
13514# This file is a shell script that caches the results of configure 11927# This file is a shell script that caches the results of configure
13515# tests run on this system so they can be shared between configure 11928# tests run on this system so they can be shared between configure
13516# scripts and configure runs, see configure's option --config-cache. 11929# scripts and configure runs, see configure's option --config-cache.
14065 case $ac_config_target in 12478 case $ac_config_target in
14066 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12479 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14067 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14068 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12481 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14069 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12482 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14070 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14071 12483
14072 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12484 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14073echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12485echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14074 { (exit 1); exit 1; }; };; 12486 { (exit 1); exit 1; }; };;
14075 esac 12487 esac
14174host_cpu!$host_cpu$ac_delim 12586host_cpu!$host_cpu$ac_delim
14175host_vendor!$host_vendor$ac_delim 12587host_vendor!$host_vendor$ac_delim
14176host_os!$host_os$ac_delim 12588host_os!$host_os$ac_delim
14177VERSION!$VERSION$ac_delim 12589VERSION!$VERSION$ac_delim
14178DATE!$DATE$ac_delim 12590DATE!$DATE$ac_delim
14179LSMDATE!$LSMDATE$ac_delim
14180LIBVERSION!$LIBVERSION$ac_delim
14181CC!$CC$ac_delim 12591CC!$CC$ac_delim
14182CFLAGS!$CFLAGS$ac_delim 12592CFLAGS!$CFLAGS$ac_delim
14183LDFLAGS!$LDFLAGS$ac_delim 12593LDFLAGS!$LDFLAGS$ac_delim
14184CPPFLAGS!$CPPFLAGS$ac_delim 12594CPPFLAGS!$CPPFLAGS$ac_delim
14185ac_ct_CC!$ac_ct_CC$ac_delim 12595ac_ct_CC!$ac_ct_CC$ac_delim
14193INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12603INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14194INSTALL_DATA!$INSTALL_DATA$ac_delim 12604INSTALL_DATA!$INSTALL_DATA$ac_delim
14195GREP!$GREP$ac_delim 12605GREP!$GREP$ac_delim
14196EGREP!$EGREP$ac_delim 12606EGREP!$EGREP$ac_delim
14197LINKER!$LINKER$ac_delim 12607LINKER!$LINKER$ac_delim
14198INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14199RXVTNAME!$RXVTNAME$ac_delim 12608RXVTNAME!$RXVTNAME$ac_delim
12609CXXCPP!$CXXCPP$ac_delim
14200TIC!$TIC$ac_delim 12610TIC!$TIC$ac_delim
14201XMKMF!$XMKMF$ac_delim 12611XMKMF!$XMKMF$ac_delim
14202CXXCPP!$CXXCPP$ac_delim
14203X_CFLAGS!$X_CFLAGS$ac_delim 12612X_CFLAGS!$X_CFLAGS$ac_delim
14204X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12613X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14205X_LIBS!$X_LIBS$ac_delim 12614X_LIBS!$X_LIBS$ac_delim
14206X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12615X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14207afterimage_config!$afterimage_config$ac_delim 12616afterimage_config!$afterimage_config$ac_delim
14208XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14209XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14210XPM_LIBS!$XPM_LIBS$ac_delim
14211rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14212rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14213rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14214rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14215rxvt_intp_define!$rxvt_intp_define$ac_delim
14216rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14217PKG_CONFIG!$PKG_CONFIG$ac_delim 12617PKG_CONFIG!$PKG_CONFIG$ac_delim
14218XFT_CONFIG!$XFT_CONFIG$ac_delim 12618XFT_CONFIG!$XFT_CONFIG$ac_delim
14219PERL!$PERL$ac_delim 12619PERL!$PERL$ac_delim
14220PERLLIB!$PERLLIB$ac_delim 12620PERLLIB!$PERLLIB$ac_delim
14221PERLFLAGS!$PERLFLAGS$ac_delim 12621PERLFLAGS!$PERLFLAGS$ac_delim
14222PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12622PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14223IF_PERL!$IF_PERL$ac_delim 12623IF_PERL!$IF_PERL$ac_delim
14224PERL_O!$PERL_O$ac_delim 12624PERL_O!$PERL_O$ac_delim
14225AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12625AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14226AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12626AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14227include_stdint_h!$include_stdint_h$ac_delim 12627LIBOBJS!$LIBOBJS$ac_delim
14228include_stdarg_h!$include_stdarg_h$ac_delim 12628LTLIBOBJS!$LTLIBOBJS$ac_delim
14229_ACEOF 12629_ACEOF
14230 12630
14231 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
14232 break 12632 break
14233 elif $ac_last_try; then 12633 elif $ac_last_try; then
14234 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14235echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14236 { (exit 1); exit 1; }; } 12636 { (exit 1); exit 1; }; }
14245 ac_eof=`expr $ac_eof + 1` 12645 ac_eof=`expr $ac_eof + 1`
14246fi 12646fi
14247 12647
14248cat >>$CONFIG_STATUS <<_ACEOF 12648cat >>$CONFIG_STATUS <<_ACEOF
14249cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12649cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14251_ACEOF
14252sed '
14253s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14254s/^/s,@/; s/!/@,|#_!!_#|/
14255:n
14256t n
14257s/'"$ac_delim"'$/,g/; t
14258s/$/\\/; p
14259N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14260' >>$CONFIG_STATUS <conf$$subs.sed
14261rm -f conf$$subs.sed
14262cat >>$CONFIG_STATUS <<_ACEOF
14263CEOF$ac_eof
14264_ACEOF
14265
14266
14267ac_delim='%!_!# '
14268for ac_last_try in false false false false false :; do
14269 cat >conf$$subs.sed <<_ACEOF
14270include_stdlib_h!$include_stdlib_h$ac_delim
14271include_unistd_h!$include_unistd_h$ac_delim
14272include_string_h!$include_string_h$ac_delim
14273include_fcntl_h!$include_fcntl_h$ac_delim
14274include_util_h!$include_util_h$ac_delim
14275include_assert_h!$include_assert_h$ac_delim
14276include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14277include_sys_select_h!$include_sys_select_h$ac_delim
14278include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14279include_sys_time_h!$include_sys_time_h$ac_delim
14280include_time_h!$include_time_h$ac_delim
14281LIBOBJS!$LIBOBJS$ac_delim
14282LTLIBOBJS!$LTLIBOBJS$ac_delim
14283_ACEOF
14284
14285 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
14286 break
14287 elif $ac_last_try; then
14288 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14289echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14290 { (exit 1); exit 1; }; }
14291 else
14292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14293 fi
14294done
14295
14296ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14297if test -n "$ac_eof"; then
14298 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14299 ac_eof=`expr $ac_eof + 1`
14300fi
14301
14302cat >>$CONFIG_STATUS <<_ACEOF
14303cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14305_ACEOF 12651_ACEOF
14306sed ' 12652sed '
14307s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14308s/^/s,@/; s/!/@,|#_!!_#|/ 12654s/^/s,@/; s/!/@,|#_!!_#|/
14561s&@builddir@&$ac_builddir&;t t 12907s&@builddir@&$ac_builddir&;t t
14562s&@abs_builddir@&$ac_abs_builddir&;t t 12908s&@abs_builddir@&$ac_abs_builddir&;t t
14563s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14564s&@INSTALL@&$ac_INSTALL&;t t 12910s&@INSTALL@&$ac_INSTALL&;t t
14565$ac_datarootdir_hack 12911$ac_datarootdir_hack
14566" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12912" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14567 12913
14568test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12914test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14569 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14570 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14571 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12917 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14719 Install path: ${prefix}/bin 13065 Install path: ${prefix}/bin
14720 Compiler: $CXX 13066 Compiler: $CXX
14721 Compiler flags: $CXXFLAGS 13067 Compiler flags: $CXXFLAGS
14722 Linker: $LINKER" 13068 Linker: $LINKER"
14723 13069
14724if test x$support_xpm = xyes; then
14725 echo " Xpm library: $XPM_LIBS"
14726fi
14727
14728if test x$support_afterimage = xyes; then
14729 echo " AfterImage support: yes"
14730fi
14731
14732
14733if test x$term != x; then 13070if test x$term != x; then
14734 echo " set TERM to: $term" 13071 echo " set TERM to: $term"
14735fi 13072fi
14736if test x$terminfo != x; then 13073if test x$terminfo != x; then
14737 echo " set TERMINFO to: $terminfo" 13074 echo " set TERMINFO to: $terminfo"
14743fi 13080fi
14744echo 13081echo
14745echo " embedded perl: $support_perl" 13082echo " embedded perl: $support_perl"
14746echo " libafterimage: $support_afterimage" 13083echo " libafterimage: $support_afterimage"
14747echo 13084echo
14748if test x$support_xpm = xneedsmanualspecification; then
14749 echo ".----------------------------------------------------------------."
14750 echo ". WARNING: --enable-xpm-background was specified however the ."
14751 echo ". XPM includes files and libraries could not be found. ."
14752 echo ". XPM backgrounds are now being DISABLED! If you want ."
14753 echo ". to use them you should rerun configure with the ."
14754 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14755 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14756 echo ".----------------------------------------------------------------."
14757fi
14758if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 13085if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14759 echo ".----------------------------------------------------------------." 13086 echo ".----------------------------------------------------------------."
14760 echo ". WARNING: --enable-xim was specified however the locale support ." 13087 echo ". WARNING: --enable-xim was specified however the locale support ."
14761 echo ". functions could not be found. ." 13088 echo ". functions could not be found. ."
14762 echo ". XIM is now being DISABLED! ." 13089 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines