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

Comparing rxvt-unicode/configure (file contents):
Revision 1.103 by root, Sat Jun 9 13:04:27 2007 UTC vs.
Revision 1.124 by ayin, Fri Dec 28 14:00:47 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines