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

Comparing rxvt-unicode/configure (file contents):
Revision 1.102 by ayin, Tue May 8 11:24:45 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
697XPM_CPPFLAGS 688afterimage_config
698XPM_CFLAGS
699XPM_LIBS
700rxvt_int16_typedef
701rxvt_uint16_typedef
702rxvt_int32_typedef
703rxvt_uint32_typedef
704rxvt_intp_define
705rxvt_u_intp_define
706PKG_CONFIG 689PKG_CONFIG
707XFT_CONFIG 690XFT_CONFIG
708PERL 691PERL
709PERLLIB 692PERLLIB
710PERLFLAGS 693PERLFLAGS
711PERLPRIVLIBEXP 694PERLPRIVLIBEXP
712IF_PERL 695IF_PERL
713PERL_O 696PERL_O
714DEBUG 697AFTERIMAGE_CFLAGS
715DINCLUDE 698AFTERIMAGE_LIBS
716DLIB
717include_stdint_h
718include_stdarg_h
719include_stdlib_h
720include_unistd_h
721include_string_h
722include_fcntl_h
723include_util_h
724include_assert_h
725include_sys_ioctl_h
726include_sys_select_h
727include_sys_strredir_h
728include_sys_time_h
729include_time_h
730LIBOBJS 699LIBOBJS
731LTLIBOBJS' 700LTLIBOBJS'
732ac_subst_files='' 701ac_subst_files=''
733 ac_precious_vars='build_alias 702 ac_precious_vars='build_alias
734host_alias 703host_alias
740CPPFLAGS 709CPPFLAGS
741CXX 710CXX
742CXXFLAGS 711CXXFLAGS
743CCC 712CCC
744CPP 713CPP
745XMKMF
746CXXCPP' 714CXXCPP
715XMKMF'
747 716
748 717
749# Initialize some variables set by options. 718# Initialize some variables set by options.
750ac_init_help= 719ac_init_help=
751ac_init_version=false 720ac_init_version=false
1325Optional Features: 1294Optional Features:
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1329 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1330 NOTE: automatically enabled with --enable-shared 1299 --enable-warnings turn on g++ warnings
1331 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1300 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1332 --enable-combining enable composition of base and combining characters 1301 --enable-combining enable composition of base and combining characters
1333 --enable-xft enable xft support on systems that have it 1302 --enable-xft enable xft support on systems that have it
1334 --enable-font-styles enable bold and italic support 1303 --enable-font-styles enable bold and italic support
1335 --enable-xpm-background enable XPM background pixmaps 1304 --enable-afterimage enable integration with libAfterImage for background images
1336 --enable-transparency enable transparent backgrounds 1305 --enable-transparency enable transparent backgrounds
1337 --enable-tinting enable tinting of transparent bg
1338 --enable-fading enable colors fading when off focus 1306 --enable-fading enable colors fading when off focus
1339 --enable-rxvt-scroll enable rxvt style scrollbar 1307 --enable-rxvt-scroll enable rxvt style scrollbar
1340 --enable-next-scroll enable NeXT style scrollbar 1308 --enable-next-scroll enable NeXT style scrollbar
1341 --enable-xterm-scroll enable Xterm style scrollbar 1309 --enable-xterm-scroll enable Xterm style scrollbar
1310 --enable-plain-scroll enable plain style scrollbar
1342 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1343 --enable-plain-scroll enable plain style scrollbar
1344 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1345 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1346 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1347 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1348 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1349 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1317 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1350 --disable-swapscreen disable swap screen support 1318 --disable-swapscreen disable swap screen support
1351 --enable-iso14755 enable support for extended ISO 14755 modes 1319 --enable-iso14755 enable support for extended ISO 14755 modes
1352 --enable-frills enable support for rarely used features 1320 --enable-frills enable support for rarely used features
1353 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1321 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1354 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1355 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1356 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1357 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1358 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1359 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1360 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1361 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1362 --enable-lastlog enable lastlog support (requires --enable-utmp) 1330 --enable-lastlog enable lastlog support (requires --enable-utmp)
1363 1331
1364Optional Packages: 1332Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1335 --with-afterimage-config=DIR use libAfterImage config script in DIR
1367 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1336 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1368 --with-res-name=NAME use this as default resource name (default: urxvt) 1337 --with-res-name=NAME use this as default resource name (default: urxvt)
1369 --with-res-class=CLASS use this as the resource class (default: URxvt) 1338 --with-res-class=CLASS use this as the resource class (default: URxvt)
1370 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1339 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1371 --with-term=NAME set the terminal to NAME (default: rxvt) 1340 --with-term=NAME set the terminal to NAME (default: rxvt)
1372 --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
1373 --with-x use the X Window System 1342 --with-x use the X Window System
1374 --with-xpm-includes=DIR use XPM includes in DIR
1375 --with-xpm-library=DIR use XPM library in DIR
1376 --with-xpm use XPM
1377 1343
1378Some influential environment variables: 1344Some influential environment variables:
1379 CC C compiler command 1345 CC C compiler command
1380 CFLAGS C compiler flags 1346 CFLAGS C compiler flags
1381 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
1384 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
1385 you have headers in a nonstandard directory <include dir> 1351 you have headers in a nonstandard directory <include dir>
1386 CXX C++ compiler command 1352 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags 1353 CXXFLAGS C++ compiler flags
1388 CPP C preprocessor 1354 CPP C preprocessor
1355 CXXCPP C++ preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System 1356 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 CXXCPP C++ preprocessor
1391 1357
1392Use 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
1393it to find libraries and programs with nonstandard names/locations. 1359it to find libraries and programs with nonstandard names/locations.
1394 1360
1395_ACEOF 1361_ACEOF
1931 1897
1932 1898
1933 1899
1934VERSION=`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`
1935DATE=`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
1936echo "" 1903echo ""
1937echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1938echo "" 1905echo ""
1939 1906
1940orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1941
1942 1908
1943ac_ext=c 1909ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_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'
3725echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3726fi 3692fi
3727rm -f conftest* 3693rm -f conftest*
3728 3694
3729 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3730{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3731echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3732if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else 3706else
3881LINKER=$LINKER 3853LINKER=$LINKER
3882 3854
3883 3855
3884if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3885 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3886 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"
3887 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */ 3860/* confdefs.h. */
3889_ACEOF 3861_ACEOF
3890cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3929 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3930 fi 3902 fi
3931 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3932fi 3904fi
3933 3905
3934
3935cat >>confdefs.h <<\_ACEOF
3936#define _GNU_SOURCE 1
3937_ACEOF
3938
3939
3940case $host in 3906case $host in
3941 *-*-solaris* ) 3907 *-*-solaris* )
3942 3908
3943cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3944#define _XOPEN_SOURCE_EXTENDED 1
3945_ACEOF
3946
3947
3948cat >>confdefs.h <<\_ACEOF
3949#define _XOPEN_SOURCE 2 3910#define _XOPEN_SOURCE 500
3950_ACEOF
3951
3952
3953cat >>confdefs.h <<\_ACEOF
3954#define __EXTENSIONS__ 1
3955_ACEOF 3911_ACEOF
3956 3912
3957 ;; 3913 ;;
3958esac 3914esac
3959
3960 3915
3961{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3962echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3963if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 4369
4415 4370
4416 4371
4417support_frills=yes 4372support_frills=yes
4418support_inheritpixmap=yes 4373support_inheritpixmap=yes
4419support_tinting=yes
4420support_fading=yes 4374support_fading=yes
4421support_keepscrolling=yes 4375support_keepscrolling=yes
4422support_selectionscrolling=yes 4376support_selectionscrolling=yes
4423support_mousewheel=yes 4377support_mousewheel=yes
4424support_mouseslipwheel=yes 4378support_mouseslipwheel=yes
4427support_scroll_rxvt=yes 4381support_scroll_rxvt=yes
4428support_scroll_next=yes 4382support_scroll_next=yes
4429support_scroll_xterm=yes 4383support_scroll_xterm=yes
4430support_scroll_plain=yes 4384support_scroll_plain=yes
4431support_xim=yes 4385support_xim=yes
4432support_xpm=yes 4386support_afterimage=yes
4387support_afterstep=yes
4433support_xft=yes 4388support_xft=yes
4434support_unicode3=no 4389support_unicode3=no
4435support_combining=yes 4390support_combining=yes
4436support_8bitctrls=no 4391support_8bitctrls=no
4437support_iso14755=yes 4392support_iso14755=yes
4438support_styles=yes 4393support_styles=yes
4439support_perl=yes 4394support_perl=yes
4440codesets=all 4395codesets=all
4441 4396
4442 4397
4443if test "x$enable_shared" = xyes; then
4444
4445cat >>confdefs.h <<\_ACEOF
4446#define LIBRXVT 1
4447_ACEOF
4448
4449 INSTALL_LIBRXVT=yes
4450fi
4451
4452 4398
4453# Check whether --enable-everything was given. 4399# Check whether --enable-everything was given.
4454if test "${enable_everything+set}" = set; then 4400if test "${enable_everything+set}" = set; then
4455 enableval=$enable_everything; 4401 enableval=$enable_everything;
4456 if test x$enableval = xno; then 4402 if test x$enableval = xno; then
4457 support_frills=no 4403 support_frills=no
4458 support_inheritpixmap=no 4404 support_inheritpixmap=no
4459 support_tinting=no
4460 support_fading=no 4405 support_fading=no
4461 support_keepscrolling=no 4406 support_keepscrolling=no
4462 support_selectionscrolling=no 4407 support_selectionscrolling=no
4463 support_lastlog=no 4408 support_lastlog=no
4464 support_mousewheel=no 4409 support_mousewheel=no
4470 support_scroll_xterm=no 4415 support_scroll_xterm=no
4471 support_scroll_plain=no 4416 support_scroll_plain=no
4472 support_utmp=no 4417 support_utmp=no
4473 support_wtmp=no 4418 support_wtmp=no
4474 support_xim=no 4419 support_xim=no
4420 support_afterimage=no
4475 support_xpm=no 4421 support_afterstep=no
4476 support_xft=no 4422 support_xft=no
4477 support_unicode3=no 4423 support_unicode3=no
4478 support_combining=no 4424 support_combining=no
4479 support_8bitctrls=no 4425 support_8bitctrls=no
4480 support_iso14755=no 4426 support_iso14755=no
4483 codesets= 4429 codesets=
4484 fi 4430 fi
4485 if test x$enableval = xyes; then 4431 if test x$enableval = xyes; then
4486 support_frills=yes 4432 support_frills=yes
4487 support_inheritpixmap=yes 4433 support_inheritpixmap=yes
4488 support_tinting=yes
4489 support_fading=yes 4434 support_fading=yes
4490 support_keepscrolling=yes 4435 support_keepscrolling=yes
4491 support_selectionscrolling=yes 4436 support_selectionscrolling=yes
4492 support_lastlog=yes 4437 support_lastlog=yes
4493 support_mousewheel=yes 4438 support_mousewheel=yes
4499 support_scroll_xterm=yes 4444 support_scroll_xterm=yes
4500 support_scroll_plain=yes 4445 support_scroll_plain=yes
4501 support_utmp=yes 4446 support_utmp=yes
4502 support_wtmp=yes 4447 support_wtmp=yes
4503 support_xim=yes 4448 support_xim=yes
4449 support_afterimage=yes
4504 support_xpm=yes 4450 support_afterstep=yes
4505 support_xft=yes 4451 support_xft=yes
4506 support_unicode3=yes 4452 support_unicode3=yes
4507 support_combining=yes 4453 support_combining=yes
4508 #support_8bitctrls=yes 4454 #support_8bitctrls=yes
4509 support_iso14755=yes 4455 support_iso14755=yes
4513 fi 4459 fi
4514 4460
4515fi 4461fi
4516 4462
4517 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
4518# Check whether --enable-unicode3 was given. 4522# Check whether --enable-unicode3 was given.
4519if test "${enable_unicode3+set}" = set; then 4523if test "${enable_unicode3+set}" = set; then
4520 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
4521 support_unicode3=$enableval 4525 support_unicode3=$enableval
4522 fi 4526 fi
4545 support_styles=$enableval 4549 support_styles=$enableval
4546 fi 4550 fi
4547fi 4551fi
4548 4552
4549 4553
4550# Check whether --enable-xpm-background was given. 4554# Check whether --enable-afterimage was given.
4551if test "${enable_xpm_background+set}" = set; then 4555if test "${enable_afterimage+set}" = set; then
4552 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then 4556 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_xpm=$enableval 4557 support_afterimage=$enableval
4554 fi 4558 fi
4555fi 4559fi
4560
4561
4562
4563# Check whether --with-afterimage_config was given.
4564if test "${with_afterimage_config+set}" = set; then
4565 withval=$with_afterimage_config; if test "x$withval" != x; then
4566 afterimage_config=$withval/afterimage-config
4567 fi
4568fi
4569
4556 4570
4557 4571
4558# Check whether --enable-transparency was given. 4572# Check whether --enable-transparency was given.
4559if test "${enable_transparency+set}" = set; then 4573if test "${enable_transparency+set}" = set; then
4560 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
4561 support_inheritpixmap=$enableval 4575 support_inheritpixmap=$enableval
4562 fi 4576 fi
4563fi 4577fi
4564 4578
4565 4579
4566# Check whether --enable-tinting was given.
4567if test "${enable_tinting+set}" = set; then
4568 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4569 support_tinting=$enableval
4570 fi
4571fi
4572
4573
4574# Check whether --enable-fading was given. 4580# Check whether --enable-fading was given.
4575if test "${enable_fading+set}" = set; then 4581if test "${enable_fading+set}" = set; then
4576 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
4577 support_fading=$enableval 4583 support_fading=$enableval
4578 fi 4584 fi
4601 support_scroll_xterm=$enableval 4607 support_scroll_xterm=$enableval
4602 fi 4608 fi
4603fi 4609fi
4604 4610
4605 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
4606# Check whether --enable-perl was given. 4620# Check whether --enable-perl was given.
4607if test "${enable_perl+set}" = set; then 4621if test "${enable_perl+set}" = set; then
4608 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
4609 support_perl=$enableval 4623 support_perl=$enableval
4610 fi
4611fi
4612
4613
4614# Check whether --enable-plain-scroll was given.
4615if test "${enable_plain_scroll+set}" = set; then
4616 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4617 support_scroll_plain=$enableval
4618 fi 4624 fi
4619fi 4625fi
4620 4626
4621 4627
4622 4628
4852 fi 4858 fi
4853fi 4859fi
4854 4860
4855 4861
4856 4862
4857# Extract the first word of "mv", so it can be a program name with args. 4863LIBEV_M4_AVOID_LIBRT=1
4858set dummy mv; ac_word=$2 4864
4859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4865ac_ext=cpp
4860echo $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
4861if test "${ac_cv_path_MV+set}" = set; then 4873 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6 4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else 4875else
4864 case $MV in 4876 # Double quotes because CXXCPP needs to be expanded
4865 [\\/]* | ?:[\\/]*) 4877 for CXXCPP in "$CXX -E" "/lib/cpp"
4866 ac_cv_path_MV="$MV" # Let the user override the test with a path. 4878 do
4867 ;; 4879 ac_preproc_ok=false
4868 *) 4880for ac_cxx_preproc_warn_flag in '' yes
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do 4881do
4872 IFS=$as_save_IFS 4882 # Use a header file that comes with gcc, so configuring glibc
4873 test -z "$as_dir" && as_dir=. 4883 # with a fresh cross-compiler works.
4874 for ac_exec_ext in '' $ac_executable_extensions; do 4884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4885 # <limits.h> exists even on freestanding compilers.
4876 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,
4877 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.
4878 break 2 4888 cat >conftest.$ac_ext <<_ACEOF
4879 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
4880done 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
4881done 5072done
4882IFS=$as_save_IFS 5073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 5074rm -f conftest.err conftest.$ac_ext
4884 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 5075if $ac_preproc_ok; then
4885 ;; 5076 :
4886esac
4887fi
4888MV=$ac_cv_path_MV
4889if test -n "$MV"; then
4890 { echo "$as_me:$LINENO: result: $MV" >&5
4891echo "${ECHO_T}$MV" >&6; }
4892else 5077else
4893 { echo "$as_me:$LINENO: result: no" >&5 5078 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4894echo "${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; }; }
4895fi 5083fi
4896 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
4897 5090
4898# Extract the first word of "cp", so it can be a program name with args. 5091
4899set dummy cp; ac_word=$2
4900{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5092{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5093echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4902if test "${ac_cv_path_CP+set}" = set; then 5094if test "${ac_cv_header_stdc+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6 5095 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else 5096else
4905 case $CP in 5097 cat >conftest.$ac_ext <<_ACEOF
4906 [\\/]* | ?:[\\/]*) 5098/* confdefs.h. */
4907 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
4908 ;; 5112 ;
4909 *) 5113 return 0;
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114}
4911for 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
4912do 5278do
4913 IFS=$as_save_IFS 5279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4914 test -z "$as_dir" && as_dir=. 5280{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4915 for ac_exec_ext in '' $ac_executable_extensions; do 5281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4917 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5283 echo $ECHO_N "(cached) $ECHO_C" >&6
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5284else
4919 break 2 5285 cat >conftest.$ac_ext <<_ACEOF
4920 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
4921done 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
4922done 5479done
4923IFS=$as_save_IFS
4924 5480
4925 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4926 ;;
4927esac
4928fi
4929CP=$ac_cv_path_CP
4930if test -n "$CP"; then
4931 { echo "$as_me:$LINENO: result: $CP" >&5
4932echo "${ECHO_T}$CP" >&6; }
4933else
4934 { echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6; }
4936fi
4937 5481
4938 5482
4939# Extract the first word of "ln", so it can be a program name with args. 5483
4940set 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`
4941{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5491{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4943if test "${ac_cv_path_LN+set}" = set; then 5493if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6 5494 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else 5495else
4946 case $LN in 5496 cat >conftest.$ac_ext <<_ACEOF
4947 [\\/]* | ?:[\\/]*) 5497/* confdefs.h. */
4948 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 ();
4949 ;; 5537 ;
4950 *) 5538 return 0;
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5539}
4952for 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
4953do 5742do
4954 IFS=$as_save_IFS 5743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4955 test -z "$as_dir" && as_dir=. 5744{ echo "$as_me:$LINENO: checking for $ac_func" >&5
4956 for ac_exec_ext in '' $ac_executable_extensions; do 5745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5746if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4958 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 5747 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5748else
4960 break 2 5749 cat >conftest.$ac_ext <<_ACEOF
4961 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
4962done 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
4963done 6089done
4964IFS=$as_save_IFS
4965 6090
4966 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 6091 fi
4967 ;;
4968esac
4969fi
4970LN=$ac_cv_path_LN
4971if test -n "$LN"; then
4972 { echo "$as_me:$LINENO: result: $LN" >&5
4973echo "${ECHO_T}$LN" >&6; }
4974else
4975 { echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6; }
4977fi
4978 6092
6093fi
4979 6094
4980# Extract the first word of "sed", so it can be a program name with args. 6095
4981set dummy sed; ac_word=$2 6096
4982{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6097{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6098echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
4984if test "${ac_cv_path_SED+set}" = set; then 6099if test "${ac_cv_lib_m_ceil+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6 6100 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else 6101else
4987 case $SED in 6102 ac_check_lib_save_LIBS=$LIBS
4988 [\\/]* | ?:[\\/]*) 6103LIBS="-lm $LIBS"
4989 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 ();
4990 ;; 6122 ;
4991 *) 6123 return 0;
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6124}
4993for as_dir in $PATH 6125_ACEOF
4994do 6126rm -f conftest.$ac_objext conftest$ac_exeext
4995 IFS=$as_save_IFS 6127if { (ac_try="$ac_link"
4996 test -z "$as_dir" && as_dir=. 6128case "(($ac_try" in
4997 for ac_exec_ext in '' $ac_executable_extensions; do 6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6130 *) ac_try_echo=$ac_try;;
4999 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005IFS=$as_save_IFS
5006
5007 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5008 ;;
5009esac 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
5010fi 6150fi
5011SED=$ac_cv_path_SED 6151
5012if 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
5013 { echo "$as_me:$LINENO: result: $SED" >&5 6156{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
5014echo "${ECHO_T}$SED" >&6; } 6157echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
5015else 6158if test $ac_cv_lib_m_ceil = yes; then
5016 { echo "$as_me:$LINENO: result: no" >&5 6159 cat >>confdefs.h <<_ACEOF
5017echo "${ECHO_T}no" >&6; } 6160#define HAVE_LIBM 1
5018fi 6161_ACEOF
5019 6162
6163 LIBS="-lm $LIBS"
5020 6164
5021# Extract the first word of "echo", so it can be a program name with args.
5022set dummy echo; ac_word=$2
5023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025if test "${ac_cv_path_ECHO+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 case $ECHO in
5029 [\\/]* | ?:[\\/]*)
5030 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5031 ;;
5032 *)
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
5046IFS=$as_save_IFS
5047
5048 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5049 ;;
5050esac
5051fi 6165fi
5052ECHO=$ac_cv_path_ECHO
5053if test -n "$ECHO"; then
5054 { echo "$as_me:$LINENO: result: $ECHO" >&5
5055echo "${ECHO_T}$ECHO" >&6; }
5056else
5057 { echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6; }
5059fi
5060 6166
5061 6167
5062# Extract the first word of "cmp", so it can be a program name with args.
5063set dummy cmp; ac_word=$2
5064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066if test "${ac_cv_path_CMP+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 case $CMP in
5070 [\\/]* | ?:[\\/]*)
5071 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5072 ;;
5073 *)
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087IFS=$as_save_IFS
5088 6168
5089 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp" 6169
5090 ;; 6170
5091esac
5092fi
5093CMP=$ac_cv_path_CMP
5094if test -n "$CMP"; then
5095 { echo "$as_me:$LINENO: result: $CMP" >&5
5096echo "${ECHO_T}$CMP" >&6; }
5097else
5098 { echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6; }
5100fi
5101 6171
5102 6172
5103# 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.
5104set dummy tic; ac_word=$2 6174set dummy tic; ac_word=$2
5105{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 fi 6195 fi
5126done 6196done
5127done 6197done
5128IFS=$as_save_IFS 6198IFS=$as_save_IFS
5129 6199
6200 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5130 ;; 6201 ;;
5131esac 6202esac
5132fi 6203fi
5133TIC=$ac_cv_path_TIC 6204TIC=$ac_cv_path_TIC
5134if test -n "$TIC"; then 6205if test -n "$TIC"; then
5137else 6208else
5138 { echo "$as_me:$LINENO: result: no" >&5 6209 { echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6; } 6210echo "${ECHO_T}no" >&6; }
5140fi 6211fi
5141 6212
5142
5143
5144
5145
5146ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5152echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5153if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156else
5157 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp"
5159 do
5160 ac_preproc_ok=false
5161for ac_cxx_preproc_warn_flag in '' yes
5162do
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#ifdef __STDC__
5176# include <limits.h>
5177#else
5178# include <assert.h>
5179#endif
5180 Syntax error
5181_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext"
5183case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
5187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null && {
5195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5196 test ! -s conftest.err
5197 }; then
5198 :
5199else
5200 echo "$as_me: failed program was:" >&5
5201sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 # Broken: fails on valid input.
5204continue
5205fi
5206
5207rm -f conftest.err conftest.$ac_ext
5208
5209 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */
5217#include <ac_nonexistent.h>
5218_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext"
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null && {
5232 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5233 test ! -s conftest.err
5234 }; then
5235 # Broken: success on invalid input.
5236continue
5237else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests.
5242ac_preproc_ok=:
5243break
5244fi
5245
5246rm -f conftest.err conftest.$ac_ext
5247
5248done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then
5252 break
5253fi
5254
5255 done
5256 ac_cv_prog_CXXCPP=$CXXCPP
5257
5258fi
5259 CXXCPP=$ac_cv_prog_CXXCPP
5260else
5261 ac_cv_prog_CXXCPP=$CXXCPP
5262fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; }
5265ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes
5267do
5268 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h. */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */
5280#ifdef __STDC__
5281# include <limits.h>
5282#else
5283# include <assert.h>
5284#endif
5285 Syntax error
5286_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext"
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5303 :
5304else
5305 echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308 # Broken: fails on valid input.
5309continue
5310fi
5311
5312rm -f conftest.err conftest.$ac_ext
5313
5314 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
5322#include <ac_nonexistent.h>
5323_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext"
5325case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 # Broken: success on invalid input.
5341continue
5342else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 # Passes both tests.
5347ac_preproc_ok=:
5348break
5349fi
5350
5351rm -f conftest.err conftest.$ac_ext
5352
5353done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then
5357 :
5358else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5360See \`config.log' for more details." >&5
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;}
5363 { (exit 1); exit 1; }; }
5364fi
5365
5366ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371 6213
5372 6214
5373{ echo "$as_me:$LINENO: checking for X" >&5 6215{ echo "$as_me:$LINENO: checking for X" >&5
5374echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6216echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5375 6217
6683 LDFLAGS=$ac_save_LDFLAGS 7525 LDFLAGS=$ac_save_LDFLAGS
6684 7526
6685fi 7527fi
6686 7528
6687 7529
7530AFTERIMAGE_CFLAGS=
7531AFTERIMAGE_LIBS=
7532AFTERIMAGE_VERSION=
6688 7533
6689if test x$support_xpm = xyes; then 7534if test x$support_afterimage = xyes; then
7535 support_afterimage=no
6690 7536
6691 7537 if test "x$afterimage_config" = "x" ; then
6692 7538 # Extract the first word of "afterimage-config", so it can be a program name with args.
6693# Initialize some more variables set by options. 7539set dummy afterimage-config; ac_word=$2
6694# The variables have the same names as the options, with
6695# dashes changed to underlines.
6696
6697# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6698# paths, otherwise set no_xpm=yes.
6699# Uses ac_ vars as temps to allow command line to override cache and checks.
6700{ echo "$as_me:$LINENO: checking for libXpm" >&5 7540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6701echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } 7541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702
6703
6704# Check whether --with-xpm_includes was given.
6705if test "${with_xpm_includes+set}" = set; then
6706 withval=$with_xpm_includes; xpm_includes="$withval"
6707else
6708 xpm_includes=NO
6709fi
6710
6711
6712# Check whether --with-xpm_library was given.
6713if test "${with_xpm_library+set}" = set; then
6714 withval=$with_xpm_library; xpm_libraries="$withval"
6715else
6716 xpm_libraries=NO
6717fi
6718
6719
6720# --without-xpm overrides everything else, but does not touch the cache.
6721
6722# Check whether --with-xpm was given.
6723if test "${with_xpm+set}" = set; then
6724 withval=$with_xpm;
6725fi
6726
6727if test "$with_xpm" = no; then
6728 have_xpm=disabled
6729else
6730 if test "${ac_cv_have_xpm+set}" = set; then 7542if test "${ac_cv_path_afterimage_config+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6 7543 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else 7544else
6733 7545 case $afterimage_config in
6734 vt_xpm_include_X11=no 7546 [\\/]* | ?:[\\/]*)
6735 if test -n "$xpm_includes"; then 7547 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6736 vt_xpm_includes=$xpm_includes 7548 ;;
6737 else 7549 *)
6738 vt_xpm_includes=NO 7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551for as_dir in $PATH
7552do
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7557 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
7558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7559 break 2
6739 fi 7560 fi
6740 if test -n "$xpm_libraries"; then 7561done
6741 vt_xpm_libraries=$xpm_libraries 7562done
7563IFS=$as_save_IFS
7564
7565 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
7566 ;;
7567esac
7568fi
7569afterimage_config=$ac_cv_path_afterimage_config
7570if test -n "$afterimage_config"; then
7571 { echo "$as_me:$LINENO: result: $afterimage_config" >&5
7572echo "${ECHO_T}$afterimage_config" >&6; }
6742 else 7573else
6743 vt_xpm_libraries=NO 7574 { echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6; }
7576fi
7577
7578
6744 fi 7579 fi
6745 7580 if test "x$afterimage_config" != "xno" ; then
6746 if test "$vt_xpm_includes" = NO; then 7581 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6747 # Guess where to find xpm.h 7582echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6748 7583 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6749ac_save_CPPFLAGS="$CPPFLAGS" 7584 if test -n "$xAFTERIMAGE_VERSION" ; then
6750CPPFLAGS="$CPPFLAGS $X_CFLAGS" 7585 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6751 7586 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6752 # First, try using that file with no special directory specified. 7587 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6753cat >conftest.$ac_ext <<_ACEOF 7588 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6754/* confdefs.h. */ 7589 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6755_ACEOF 7590 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6756cat confdefs.h >>conftest.$ac_ext 7591 support_afterimage=yes
6757cat >>conftest.$ac_ext <<_ACEOF 7592 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6758/* end confdefs.h. */ 7593 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6759#include <X11/xpm.h> 7594 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6760_ACEOF
6761if { (ac_try="$ac_cpp conftest.$ac_ext"
6762case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null && {
6774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6775 test ! -s conftest.err
6776 }; then
6777 # We can compile using X headers with no special include directory.
6778vt_xpm_includes=
6779vt_xpm_include_X11=yes
6780else
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 CPPFLAGS="$ac_save_CPPFLAGS"
6785# Look for the header file in a standard set of common directories.
6786 for ac_dir in \
6787 /usr/X11/include \
6788 /usr/X11R6/include \
6789 /usr/X11R5/include \
6790 /usr/X11R4/include \
6791 \
6792 /usr/include/X11 \
6793 /usr/include/X11R6 \
6794 /usr/include/X11R5 \
6795 /usr/include/X11R4 \
6796 \
6797 /usr/local/X11/include \
6798 /usr/local/X11R6/include \
6799 /usr/local/X11R5/include \
6800 /usr/local/X11R4/include \
6801 \
6802 /usr/local/include/X11 \
6803 /usr/local/include/X11R6 \
6804 /usr/local/include/X11R5 \
6805 /usr/local/include/X11R4 \
6806 \
6807 /usr/X386/include \
6808 /usr/x386/include \
6809 /usr/XFree86/include/X11 \
6810 \
6811 /usr/include \
6812 /usr/local/include \
6813 /usr/unsupported/include \
6814 /usr/athena/include \
6815 /usr/local/x11r5/include \
6816 /usr/lpp/Xamples/include \
6817 \
6818 /usr/openwin/include \
6819 /usr/openwin/share/include \
6820 ; \
6821 do
6822 if test -r "$ac_dir/X11/xpm.h"; then
6823 vt_xpm_includes="$ac_dir"
6824 vt_xpm_include_X11=yes
6825 break
6826 else
6827 if test -r "$ac_dir/xpm.h"; then
6828 vt_xpm_includes=$ac_dir
6829 break
6830 fi
6831 fi
6832 done
6833fi
6834
6835rm -f conftest.err conftest.$ac_ext
6836fi
6837
6838if test "$vt_xpm_libraries" = NO; then
6839 # Check for the libraries.
6840
6841 # See if we find them without any special options.
6842 # Don't add to $LIBS permanently.
6843 ac_save_LIBS="$LIBS"
6844 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6845cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851
6852int
6853main ()
6854{
6855XpmReadFileToPixmap()
6856 ;
6857 return 0;
6858}
6859_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext
6861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
6866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_cxx_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest$ac_exeext &&
6877 $as_test_x conftest$ac_exeext; then
6878 LIBS="$ac_save_LIBS"
6879# We can link libXpm with no special library path.
6880vt_xpm_libraries=
6881else
6882 echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 LIBS="$ac_save_LIBS"
6886# First see if replacing the include by lib works.
6887for ac_dir in \
6888 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6889 /usr/X11/lib \
6890 /usr/X11R6/lib \
6891 /usr/X11R5/lib \
6892 /usr/X11R4/lib \
6893 \
6894 /usr/lib/X11 \
6895 /usr/lib/X11R6 \
6896 /usr/lib/X11R5 \
6897 /usr/lib/X11R4 \
6898 \
6899 /usr/local/X11/lib \
6900 /usr/local/X11R6/lib \
6901 /usr/local/X11R5/lib \
6902 /usr/local/X11R4/lib \
6903 \
6904 /usr/local/lib/X11 \
6905 /usr/local/lib/X11R6 \
6906 /usr/local/lib/X11R5 \
6907 /usr/local/lib/X11R4 \
6908 \
6909 /usr/X386/lib \
6910 /usr/x386/lib \
6911 /usr/XFree86/lib/X11 \
6912 \
6913 /usr/lib \
6914 /usr/local/lib \
6915 /usr/unsupported/lib \
6916 /usr/athena/lib \
6917 /usr/local/x11r5/lib \
6918 /usr/lpp/Xamples/lib \
6919 \
6920 /usr/openwin/lib \
6921 /usr/openwin/share/lib \
6922 ; \
6923do
6924 for ac_extension in a so sl; do
6925 if test -r $ac_dir/libXpm.$ac_extension; then
6926 vt_xpm_libraries=$ac_dir
6927 break 2
6928 fi
6929 done
6930done
6931fi
6932
6933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6934 conftest$ac_exeext conftest.$ac_ext
6935fi
6936
6937
6938 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6939 ac_cv_have_xpm="have_xpm=no"
6940 else
6941 ac_cv_have_xpm="have_xpm=yes \
6942 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6943 vt_xpm_include_X11=$vt_xpm_include_X11"
6944 fi
6945fi
6946 eval "$ac_cv_have_xpm"
6947fi
6948
6949if test "$have_xpm" != yes; then
6950 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6951echo "${ECHO_T}$have_xpm" >&6; }
6952 no_xpm=yes
6953else
6954 if test "$xpm_includes" != NO; then
6955 if test "$xpm_includes" = "$vt_xpm_includes"; then
6956 if test -r "$xpm_includes/X11/xpm.h"; then
6957 vt_xpm_include_X11=yes
6958 fi
6959 else
6960 vt_xpm_include_X11=no
6961 if test -z "$xpm_includes"; then
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968#include <X11/xpm.h>
6969_ACEOF
6970if { (ac_try="$ac_cpp conftest.$ac_ext"
6971case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null && {
6983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6984 test ! -s conftest.err
6985 }; then
6986 vt_xpm_include_X11=yes
6987else
6988 echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991
6992fi
6993
6994rm -f conftest.err conftest.$ac_ext
6995 else
6996 if test -r "$xpm_includes/X11/xpm.h"; then
6997 vt_xpm_include_X11=yes
6998 fi 7595 fi
6999 fi 7596 fi
7000 fi 7597 fi
7001 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
7002 fi 7605 fi
7003 if test "x$xpm_libraries" != xNO; then
7004 vt_xpm_libraries=$xpm_libraries
7005 fi
7006 # Update the cache value to reflect the command line values.
7007 ac_cv_have_xpm="have_xpm=yes \
7008 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7009 vt_xpm_include_X11=$vt_xpm_include_X11"
7010 eval "$ac_cv_have_xpm"
7011 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7012echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
7013 if test -n "$vt_xpm_includes"; then
7014 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7015 fi
7016 if test -n "$vt_xpm_includes"; then
7017 XPM_CFLAGS="-I$vt_xpm_includes"
7018 fi
7019 XPM_LIBS="-lXpm"
7020 if test -n "$vt_xpm_libraries"; then
7021 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7022 fi
7023 if test "x$vt_xpm_include_X11" = xyes; then
7024
7025cat >>confdefs.h <<\_ACEOF
7026#define XPM_INC_X11 1
7027_ACEOF
7028
7029 fi
7030fi 7606fi
7031
7032
7033
7034
7035
7036 if test x$no_xpm = xyes; then
7037 support_xpm=needsmanualspecification
7038 fi
7039fi
7040
7041{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7042echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7043if test "${ac_cv_header_sys_wait_h+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052#include <sys/types.h>
7053#include <sys/wait.h>
7054#ifndef WEXITSTATUS
7055# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7056#endif
7057#ifndef WIFEXITED
7058# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7059#endif
7060
7061int
7062main ()
7063{
7064 int s;
7065 wait (&s);
7066 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7067 ;
7068 return 0;
7069}
7070_ACEOF
7071rm -f conftest.$ac_objext
7072if { (ac_try="$ac_compile"
7073case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076esac
7077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_cxx_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_header_sys_wait_h=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_header_sys_wait_h=no
7094fi
7095
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7099echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7100if test $ac_cv_header_sys_wait_h = yes; then
7101
7102cat >>confdefs.h <<\_ACEOF
7103#define HAVE_SYS_WAIT_H 1
7104_ACEOF
7105
7106fi
7107
7108{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7109echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7110if test "${ac_cv_header_stdc+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 cat >conftest.$ac_ext <<_ACEOF
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
7118/* end confdefs.h. */
7119#include <stdlib.h>
7120#include <stdarg.h>
7121#include <string.h>
7122#include <float.h>
7123
7124int
7125main ()
7126{
7127
7128 ;
7129 return 0;
7130}
7131_ACEOF
7132rm -f conftest.$ac_objext
7133if { (ac_try="$ac_compile"
7134case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137esac
7138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_cxx_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 ac_cv_header_stdc=yes
7150else
7151 echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154 ac_cv_header_stdc=no
7155fi
7156
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159if test $ac_cv_header_stdc = yes; then
7160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7161 cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <string.h>
7168
7169_ACEOF
7170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "memchr" >/dev/null 2>&1; then
7172 :
7173else
7174 ac_cv_header_stdc=no
7175fi
7176rm -f conftest*
7177
7178fi
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7182 cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h. */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h. */
7188#include <stdlib.h>
7189
7190_ACEOF
7191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 $EGREP "free" >/dev/null 2>&1; then
7193 :
7194else
7195 ac_cv_header_stdc=no
7196fi
7197rm -f conftest*
7198
7199fi
7200
7201if test $ac_cv_header_stdc = yes; then
7202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7203 if test "$cross_compiling" = yes; then
7204 :
7205else
7206 cat >conftest.$ac_ext <<_ACEOF
7207/* confdefs.h. */
7208_ACEOF
7209cat confdefs.h >>conftest.$ac_ext
7210cat >>conftest.$ac_ext <<_ACEOF
7211/* end confdefs.h. */
7212#include <ctype.h>
7213#include <stdlib.h>
7214#if ((' ' & 0x0FF) == 0x020)
7215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7217#else
7218# define ISLOWER(c) \
7219 (('a' <= (c) && (c) <= 'i') \
7220 || ('j' <= (c) && (c) <= 'r') \
7221 || ('s' <= (c) && (c) <= 'z'))
7222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7223#endif
7224
7225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226int
7227main ()
7228{
7229 int i;
7230 for (i = 0; i < 256; i++)
7231 if (XOR (islower (i), ISLOWER (i))
7232 || toupper (i) != TOUPPER (i))
7233 return 2;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest$ac_exeext
7238if { (ac_try="$ac_link"
7239case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_link") 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7248 { (case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_try") 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 :
7258else
7259 echo "$as_me: program exited with status $ac_status" >&5
7260echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263( exit $ac_status )
7264ac_cv_header_stdc=no
7265fi
7266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7267fi
7268
7269
7270fi
7271fi
7272{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7273echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7274if test $ac_cv_header_stdc = yes; then
7275
7276cat >>confdefs.h <<\_ACEOF
7277#define STDC_HEADERS 1
7278_ACEOF
7279
7280fi
7281
7282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7293 inttypes.h stdint.h unistd.h
7294do
7295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301 cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h. */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h. */
7307$ac_includes_default
7308
7309#include <$ac_header>
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_cxx_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 eval "$as_ac_Header=no"
7334fi
7335
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337fi
7338ac_res=`eval echo '${'$as_ac_Header'}'`
7339 { echo "$as_me:$LINENO: result: $ac_res" >&5
7340echo "${ECHO_T}$ac_res" >&6; }
7341if test `eval echo '${'$as_ac_Header'}'` = yes; then
7342 cat >>confdefs.h <<_ACEOF
7343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344_ACEOF
7345
7346fi
7347
7348done
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360 7607
7361 7608
7362 7609
7363 7610
7364 7611
7365 7612
7366 7613
7367 7614
7368for ac_header in \ 7615for ac_header in \
7369 assert.h \
7370 fcntl.h \
7371 stdarg.h \
7372 stdlib.h \
7373 string.h \
7374 termios.h \
7375 unistd.h \
7376 sys/byteorder.h \ 7616 sys/byteorder.h \
7377 sys/ioctl.h \ 7617 sys/ioctl.h \
7378 sys/select.h \
7379 sys/sockio.h \ 7618 sys/sockio.h \
7380 sys/strredir.h \ 7619 sys/strredir.h \
7381 sys/time.h \
7382 stdint.h \ 7620 stdint.h \
7383 wchar.h \ 7621 wchar.h \
7384 cwchar \ 7622 cwchar \
7385 clocale \
7386 7623
7387do 7624do
7388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7389if { 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
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7521fi 7758fi
7522 7759
7523done 7760done
7524 7761
7525 7762
7526{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7527echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7528if test "${ac_cv_header_time+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537#include <sys/types.h>
7538#include <sys/time.h>
7539#include <time.h>
7540
7541int
7542main ()
7543{
7544if ((struct tm *) 0)
7545return 0;
7546 ;
7547 return 0;
7548}
7549_ACEOF
7550rm -f conftest.$ac_objext
7551if { (ac_try="$ac_compile"
7552case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_cxx_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 ac_cv_header_time=yes
7568else
7569 echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_header_time=no
7573fi
7574
7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576fi
7577{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7578echo "${ECHO_T}$ac_cv_header_time" >&6; }
7579if test $ac_cv_header_time = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define TIME_WITH_SYS_TIME 1
7583_ACEOF
7584
7585fi
7586
7587
7588{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7589echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7590if test "${rxvt_cv_header_sysioctl+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */
7599#include <stdio.h>
7600#include <sys/ioctl.h>
7601#ifdef HAVE_TERMIOS_H
7602#include <termios.h>
7603#endif
7604int
7605main ()
7606{
7607int a = ECHO;
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (ac_try="$ac_compile"
7614case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_cxx_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
7629 rxvt_cv_header_sysioctl=yes
7630else
7631 echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 rxvt_cv_header_sysioctl=no
7635fi
7636
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi
7639{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7640echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7641
7642if test -n "$GCC"; then
7643 LDARG="-Wl,"
7644else
7645 LDARG=""
7646fi
7647R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7648
7649ac_save_CFLAGS=$CFLAGS
7650ac_save_LIBS=$LIBS
7651CFLAGS="$CFLAGS $X_CFLAGS"
7652LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7653{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7654echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7655if test "${rxvt_cv_rpath+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 if test "$cross_compiling" = yes; then
7659 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7660echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7661else
7662 cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h. */
7668#include <X11/Xlib.h>
7669#include <stdlib.h>
7670main()
7671{
7672 exit(0);
7673 (void) XOpenDisplay("foobar");
7674}
7675_ACEOF
7676rm -f conftest$ac_exeext
7677if { (ac_try="$ac_link"
7678case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 rxvt_cv_rpath=yes
7697else
7698 echo "$as_me: program exited with status $ac_status" >&5
7699echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702( exit $ac_status )
7703rxvt_cv_rpath=no
7704fi
7705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7706fi
7707
7708
7709fi
7710{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7711echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7712if test x$rxvt_cv_rpath != xyes; then
7713 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7714 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7715 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7716echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7717if test "${rxvt_cv_R+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 if test "$cross_compiling" = yes; then
7721 rxvt_cv_R=no
7722else
7723 cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729#include <X11/Xlib.h>
7730#include <stdlib.h>
7731main()
7732{
7733 exit(0);
7734 (void) XOpenDisplay("foobar");
7735}
7736_ACEOF
7737rm -f conftest$ac_exeext
7738if { (ac_try="$ac_link"
7739case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 rxvt_cv_R=yes
7758else
7759 echo "$as_me: program exited with status $ac_status" >&5
7760echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763( exit $ac_status )
7764rxvt_cv_R=no
7765fi
7766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7767fi
7768
7769
7770fi
7771{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7772echo "${ECHO_T}$rxvt_cv_R" >&6; }
7773 if test x$rxvt_cv_R != xyes; then
7774 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7775 fi
7776fi
7777
7778{ echo "$as_me:$LINENO: checking for XPointer" >&5 7763{ echo "$as_me:$LINENO: checking for XPointer" >&5
7779echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7764echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7780if test "${rxvt_cv_xpointer+set}" = set; then 7765if test "${rxvt_cv_xpointer+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6 7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7782else 7767else
7829cat >>confdefs.h <<\_ACEOF 7814cat >>confdefs.h <<\_ACEOF
7830#define HAVE_XPOINTER 1 7815#define HAVE_XPOINTER 1
7831_ACEOF 7816_ACEOF
7832 7817
7833fi 7818fi
7834LIBS=$ac_save_LIBS
7835CFLAGS=$ac_save_CFLAGS
7836 7819
7837{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7820{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7838echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7821echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7839if test "${rxvt_xlib_illegal_access+set}" = set; then 7822if test "${rxvt_xlib_illegal_access+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6 7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7895cat >>confdefs.h <<\_ACEOF 7878cat >>confdefs.h <<\_ACEOF
7896#define XLIB_ILLEGAL_ACCESS 1 7879#define XLIB_ILLEGAL_ACCESS 1
7897_ACEOF 7880_ACEOF
7898 7881
7899fi 7882fi
7900
7901{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7902echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7903if test "${ac_cv_c_const+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906 cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
7916/* FIXME: Include the comments suggested by Paul. */
7917#ifndef __cplusplus
7918 /* Ultrix mips cc rejects this. */
7919 typedef int charset[2];
7920 const charset cs;
7921 /* SunOS 4.1.1 cc rejects this. */
7922 char const *const *pcpcc;
7923 char **ppc;
7924 /* NEC SVR4.0.2 mips cc rejects this. */
7925 struct point {int x, y;};
7926 static struct point const zero = {0,0};
7927 /* AIX XL C 1.02.0.0 rejects this.
7928 It does not let you subtract one const X* pointer from another in
7929 an arm of an if-expression whose if-part is not a constant
7930 expression */
7931 const char *g = "string";
7932 pcpcc = &g + (g ? g-g : 0);
7933 /* HPUX 7.0 cc rejects these. */
7934 ++pcpcc;
7935 ppc = (char**) pcpcc;
7936 pcpcc = (char const *const *) ppc;
7937 { /* SCO 3.2v4 cc rejects this. */
7938 char *t;
7939 char const *s = 0 ? (char *) 0 : (char const *) 0;
7940
7941 *t++ = 0;
7942 if (s) return 0;
7943 }
7944 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7945 int x[] = {25, 17};
7946 const int *foo = &x[0];
7947 ++foo;
7948 }
7949 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7950 typedef const int *iptr;
7951 iptr p = 0;
7952 ++p;
7953 }
7954 { /* AIX XL C 1.02.0.0 rejects this saying
7955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7956 struct s { int j; const int *ap[3]; };
7957 struct s *b; b->j = 5;
7958 }
7959 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7960 const int foo = 10;
7961 if (!foo) return 0;
7962 }
7963 return !cs[0] && !zero.x;
7964#endif
7965
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext
7971if { (ac_try="$ac_compile"
7972case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_cxx_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_c_const=yes
7988else
7989 echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_cv_c_const=no
7993fi
7994
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996fi
7997{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7998echo "${ECHO_T}$ac_cv_c_const" >&6; }
7999if test $ac_cv_c_const = no; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define const
8003_ACEOF
8004
8005fi
8006
8007{ echo "$as_me:$LINENO: checking for inline" >&5
8008echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8009if test "${ac_cv_c_inline+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012 ac_cv_c_inline=no
8013for ac_kw in inline __inline__ __inline; do
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#ifndef __cplusplus
8021typedef int foo_t;
8022static $ac_kw foo_t static_foo () {return 0; }
8023$ac_kw foo_t foo () {return 0; }
8024#endif
8025
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (ac_try="$ac_compile"
8029case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_cxx_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest.$ac_objext; then
8044 ac_cv_c_inline=$ac_kw
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049
8050fi
8051
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 test "$ac_cv_c_inline" != no && break
8054done
8055
8056fi
8057{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8058echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8059
8060
8061case $ac_cv_c_inline in
8062 inline | yes) ;;
8063 *)
8064 case $ac_cv_c_inline in
8065 no) ac_val=;;
8066 *) ac_val=$ac_cv_c_inline;;
8067 esac
8068 cat >>confdefs.h <<_ACEOF
8069#ifndef __cplusplus
8070#define inline $ac_val
8071#endif
8072_ACEOF
8073 ;;
8074esac
8075
8076
8077 7883
8078{ echo "$as_me:$LINENO: checking for mode_t" >&5 7884{ echo "$as_me:$LINENO: checking for mode_t" >&5
8079echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7885echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8080if test "${ac_cv_type_mode_t+set}" = set; then 7886if test "${ac_cv_type_mode_t+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6 7887 echo $ECHO_N "(cached) $ECHO_C" >&6
8238_ACEOF 8044_ACEOF
8239 8045
8240fi 8046fi
8241 8047
8242 8048
8243{ echo "$as_me:$LINENO: checking for short" >&5 8049 { echo "$as_me:$LINENO: checking for int16_t" >&5
8244echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8050echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8245if test "${ac_cv_type_short+set}" = set; then 8051if test "${ac_cv_c_int16_t+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6 8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else 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
8248 cat >conftest.$ac_ext <<_ACEOF 8057 cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */ 8058/* confdefs.h. */
8250_ACEOF 8059_ACEOF
8251cat confdefs.h >>conftest.$ac_ext 8060cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF 8061cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */ 8062/* end confdefs.h. */
8254$ac_includes_default 8063$ac_includes_default
8255typedef short ac__type_new_;
8256int 8064int
8257main () 8065main ()
8258{ 8066{
8259if ((ac__type_new_ *) 0) 8067static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8260 return 0; 8068test_array [0] = 0
8261if (sizeof (ac__type_new_)) 8069
8262 return 0;
8263 ; 8070 ;
8264 return 0; 8071 return 0;
8265} 8072}
8266_ACEOF 8073_ACEOF
8267rm -f conftest.$ac_objext 8074rm -f conftest.$ac_objext
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && { 8087 (exit $ac_status); } && {
8281 test -z "$ac_cxx_werror_flag" || 8088 test -z "$ac_cxx_werror_flag" ||
8282 test ! -s conftest.err 8089 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then 8090 } && test -s conftest.$ac_objext; then
8284 ac_cv_type_short=yes
8285else
8286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_type_short=no
8290fi
8291
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8295echo "${ECHO_T}$ac_cv_type_short" >&6; }
8296
8297# The cast to long int works around a bug in the HP C Compiler
8298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8300# This bug is HP SR number 8606223364.
8301{ echo "$as_me:$LINENO: checking size of short" >&5
8302echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8303if test "${ac_cv_sizeof_short+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 if test "$cross_compiling" = yes; then
8307 # Depending upon the size, compute the lo and hi bounds.
8308cat >conftest.$ac_ext <<_ACEOF 8091 cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h. */ 8092/* confdefs.h. */
8310_ACEOF 8093_ACEOF
8311cat confdefs.h >>conftest.$ac_ext 8094cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF 8095cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h. */ 8096/* end confdefs.h. */
8314$ac_includes_default 8097$ac_includes_default
8315 typedef short ac__type_sizeof_;
8316int 8098int
8317main () 8099main ()
8318{ 8100{
8319static 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))];
8320test_array [0] = 0 8103test_array [0] = 0
8321 8104
8322 ; 8105 ;
8323 return 0; 8106 return 0;
8324} 8107}
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && { 8122 (exit $ac_status); } && {
8340 test -z "$ac_cxx_werror_flag" || 8123 test -z "$ac_cxx_werror_flag" ||
8341 test ! -s conftest.err 8124 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then 8125 } && test -s conftest.$ac_objext; then
8343 ac_lo=0 ac_mid=0 8126 :
8344 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
8345 cat >conftest.$ac_ext <<_ACEOF 8171 cat >conftest.$ac_ext <<_ACEOF
8346/* confdefs.h. */ 8172/* confdefs.h. */
8347_ACEOF 8173_ACEOF
8348cat confdefs.h >>conftest.$ac_ext 8174cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF 8175cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */ 8176/* end confdefs.h. */
8351$ac_includes_default 8177$ac_includes_default
8352 typedef short ac__type_sizeof_;
8353int 8178int
8354main () 8179main ()
8355{ 8180{
8356static 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)];
8357test_array [0] = 0 8182test_array [0] = 0
8358 8183
8359 ; 8184 ;
8360 return 0; 8185 return 0;
8361} 8186}
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && { 8201 (exit $ac_status); } && {
8377 test -z "$ac_cxx_werror_flag" || 8202 test -z "$ac_cxx_werror_flag" ||
8378 test ! -s conftest.err 8203 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then 8204 } && test -s conftest.$ac_objext; then
8380 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
8381else 8210else
8382 echo "$as_me: failed program was:" >&5 8211 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5 8212sed 's/^/| /' conftest.$ac_ext >&5
8384 8213
8385 ac_lo=`expr $ac_mid + 1` 8214
8386 if test $ac_lo -le $ac_mid; then
8387 ac_lo= ac_hi=
8388 break
8389 fi
8390 ac_mid=`expr 2 '*' $ac_mid + 1`
8391fi 8215fi
8392 8216
8393rm -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
8394 done 8219 done
8395else 8220fi
8396 echo "$as_me: failed program was:" >&5 8221{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8397sed '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 *)
8398 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
8399 cat >conftest.$ac_ext <<_ACEOF 8243 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */ 8244/* confdefs.h. */
8401_ACEOF 8245_ACEOF
8402cat confdefs.h >>conftest.$ac_ext 8246cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF 8247cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */ 8248/* end confdefs.h. */
8405$ac_includes_default 8249$ac_includes_default
8406 typedef short ac__type_sizeof_;
8407int 8250int
8408main () 8251main ()
8409{ 8252{
8410static 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))];
8411test_array [0] = 0 8254test_array [0] = 0
8412 8255
8413 ; 8256 ;
8414 return 0; 8257 return 0;
8415} 8258}
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && { 8273 (exit $ac_status); } && {
8431 test -z "$ac_cxx_werror_flag" || 8274 test -z "$ac_cxx_werror_flag" ||
8432 test ! -s conftest.err 8275 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then 8276 } && test -s conftest.$ac_objext; then
8434 ac_hi=-1 ac_mid=-1
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF 8277 cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */ 8278/* confdefs.h. */
8438_ACEOF 8279_ACEOF
8439cat confdefs.h >>conftest.$ac_ext 8280cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF 8281cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */ 8282/* end confdefs.h. */
8442$ac_includes_default 8283$ac_includes_default
8443 typedef short ac__type_sizeof_;
8444int 8284int
8445main () 8285main ()
8446{ 8286{
8447static 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))];
8448test_array [0] = 0 8289test_array [0] = 0
8449 8290
8450 ; 8291 ;
8451 return 0; 8292 return 0;
8452} 8293}
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && { 8308 (exit $ac_status); } && {
8468 test -z "$ac_cxx_werror_flag" || 8309 test -z "$ac_cxx_werror_flag" ||
8469 test ! -s conftest.err 8310 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then 8311 } && test -s conftest.$ac_objext; then
8471 ac_lo=$ac_mid; break 8312 :
8472else 8313else
8473 echo "$as_me: failed program was:" >&5 8314 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5 8315sed 's/^/| /' conftest.$ac_ext >&5
8475 8316
8476 ac_hi=`expr '(' $ac_mid ')' - 1` 8317 case $ac_type in
8477 if test $ac_mid -le $ac_hi; then 8318 int32_t) ac_cv_c_int32_t=yes ;;
8478 ac_lo= ac_hi= 8319 *) ac_cv_c_int32_t=$ac_type ;;
8479 break 8320esac
8480 fi 8321
8481 ac_mid=`expr 2 '*' $ac_mid`
8482fi 8322fi
8483 8323
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 done
8486else 8325else
8487 echo "$as_me: failed program was:" >&5 8326 echo "$as_me: failed program was:" >&5
8488sed 's/^/| /' conftest.$ac_ext >&5 8327sed 's/^/| /' conftest.$ac_ext >&5
8489 8328
8490 ac_lo= ac_hi= 8329
8491fi 8330fi
8492 8331
8493rm -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
8494fi 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 *)
8495 8341
8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8342cat >>confdefs.h <<_ACEOF
8497# Binary search between lo and hi bounds. 8343#define int32_t $ac_cv_c_int32_t
8498while test "x$ac_lo" != "x$ac_hi"; do 8344_ACEOF
8499 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
8500 cat >conftest.$ac_ext <<_ACEOF 8357 cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */ 8358/* confdefs.h. */
8502_ACEOF 8359_ACEOF
8503cat confdefs.h >>conftest.$ac_ext 8360cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF 8361cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */ 8362/* end confdefs.h. */
8506$ac_includes_default 8363$ac_includes_default
8507 typedef short ac__type_sizeof_;
8508int 8364int
8509main () 8365main ()
8510{ 8366{
8511static 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)];
8512test_array [0] = 0 8368test_array [0] = 0
8513 8369
8514 ; 8370 ;
8515 return 0; 8371 return 0;
8516} 8372}
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && { 8387 (exit $ac_status); } && {
8532 test -z "$ac_cxx_werror_flag" || 8388 test -z "$ac_cxx_werror_flag" ||
8533 test ! -s conftest.err 8389 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then 8390 } && test -s conftest.$ac_objext; then
8535 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
8536else 8396else
8537 echo "$as_me: failed program was:" >&5 8397 echo "$as_me: failed program was:" >&5
8538sed 's/^/| /' conftest.$ac_ext >&5 8398sed 's/^/| /' conftest.$ac_ext >&5
8539 8399
8540 ac_lo=`expr '(' $ac_mid ')' + 1` 8400
8541fi 8401fi
8542 8402
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544done 8404 test "$ac_cv_c_uint32_t" != no && break
8545case $ac_lo in 8405 done
8546?*) ac_cv_sizeof_short=$ac_lo;;
8547'') if test "$ac_cv_type_short" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8549See \`config.log' for more details." >&5
8550echo "$as_me: error: cannot compute sizeof (short)
8551See \`config.log' for more details." >&2;}
8552 { (exit 77); exit 77; }; }
8553 else
8554 ac_cv_sizeof_short=0
8555 fi ;;
8556esac
8557else
8558 cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564$ac_includes_default
8565 typedef short ac__type_sizeof_;
8566static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8567static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8568#include <stdio.h>
8569#include <stdlib.h>
8570int
8571main ()
8572{
8573
8574 FILE *f = fopen ("conftest.val", "w");
8575 if (! f)
8576 return 1;
8577 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8578 {
8579 long int i = longval ();
8580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8581 return 1;
8582 fprintf (f, "%ld\n", i);
8583 }
8584 else
8585 {
8586 unsigned long int i = ulongval ();
8587 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8588 return 1;
8589 fprintf (f, "%lu\n", i);
8590 }
8591 return ferror (f) || fclose (f) != 0;
8592
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest$ac_exeext
8598if { (ac_try="$ac_link"
8599case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_sizeof_short=`cat conftest.val`
8618else
8619 echo "$as_me: program exited with status $ac_status" >&5
8620echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623( exit $ac_status )
8624if test "$ac_cv_type_short" = yes; then
8625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8626See \`config.log' for more details." >&5
8627echo "$as_me: error: cannot compute sizeof (short)
8628See \`config.log' for more details." >&2;}
8629 { (exit 77); exit 77; }; }
8630 else
8631 ac_cv_sizeof_short=0
8632 fi
8633fi 8406fi
8634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635fi
8636rm -f conftest.val
8637fi
8638{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8407{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8639echo "${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 *)
8640 8412
8413cat >>confdefs.h <<\_ACEOF
8414#define _UINT32_T 1
8415_ACEOF
8641 8416
8642 8417
8643cat >>confdefs.h <<_ACEOF 8418cat >>confdefs.h <<_ACEOF
8644#define SIZEOF_SHORT $ac_cv_sizeof_short 8419#define uint32_t $ac_cv_c_uint32_t
8645_ACEOF 8420_ACEOF
8646 8421;;
8647
8648{ echo "$as_me:$LINENO: checking for int" >&5
8649echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8650if test "${ac_cv_type_int+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659$ac_includes_default
8660typedef int ac__type_new_;
8661int
8662main ()
8663{
8664if ((ac__type_new_ *) 0)
8665 return 0;
8666if (sizeof (ac__type_new_))
8667 return 0;
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
8673if { (ac_try="$ac_compile"
8674case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677esac 8422 esac
8678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_cxx_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 ac_cv_type_int=yes
8690else
8691 echo "$as_me: failed program was:" >&5
8692sed 's/^/| /' conftest.$ac_ext >&5
8693 8423
8694 ac_cv_type_int=no
8695fi
8696 8424
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8700echo "${ECHO_T}$ac_cv_type_int" >&6; }
8701 8425
8702# The cast to long int works around a bug in the HP C Compiler
8703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8705# This bug is HP SR number 8606223364.
8706{ echo "$as_me:$LINENO: checking size of int" >&5
8707echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8708if test "${ac_cv_sizeof_int+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711 if test "$cross_compiling" = yes; then
8712 # Depending upon the size, compute the lo and hi bounds.
8713cat >conftest.$ac_ext <<_ACEOF
8714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
8719$ac_includes_default
8720 typedef int ac__type_sizeof_;
8721int
8722main ()
8723{
8724static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8725test_array [0] = 0
8726
8727 ;
8728 return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext
8732if { (ac_try="$ac_compile"
8733case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_cxx_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8748 ac_lo=0 ac_mid=0
8749 while :; do
8750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
8756$ac_includes_default
8757 typedef int ac__type_sizeof_;
8758int
8759main ()
8760{
8761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8762test_array [0] = 0
8763
8764 ;
8765 return 0;
8766}
8767_ACEOF
8768rm -f conftest.$ac_objext
8769if { (ac_try="$ac_compile"
8770case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773esac
8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_cxx_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_hi=$ac_mid; break
8786else
8787 echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790 ac_lo=`expr $ac_mid + 1`
8791 if test $ac_lo -le $ac_mid; then
8792 ac_lo= ac_hi=
8793 break
8794 fi
8795 ac_mid=`expr 2 '*' $ac_mid + 1`
8796fi
8797
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 done
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h. */
8810$ac_includes_default
8811 typedef int ac__type_sizeof_;
8812int
8813main ()
8814{
8815static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8816test_array [0] = 0
8817
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext
8823if { (ac_try="$ac_compile"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_cxx_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_hi=-1 ac_mid=-1
8840 while :; do
8841 cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848 typedef int ac__type_sizeof_;
8849int
8850main ()
8851{
8852static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8853test_array [0] = 0
8854
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext
8860if { (ac_try="$ac_compile"
8861case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_cxx_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8876 ac_lo=$ac_mid; break
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_hi=`expr '(' $ac_mid ')' - 1`
8882 if test $ac_mid -le $ac_hi; then
8883 ac_lo= ac_hi=
8884 break
8885 fi
8886 ac_mid=`expr 2 '*' $ac_mid`
8887fi
8888
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 done
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_lo= ac_hi=
8896fi
8897
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899fi
8900
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902# Binary search between lo and hi bounds.
8903while test "x$ac_lo" != "x$ac_hi"; do
8904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8905 cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911$ac_includes_default
8912 typedef int ac__type_sizeof_;
8913int
8914main ()
8915{
8916static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8917test_array [0] = 0
8918
8919 ;
8920 return 0;
8921}
8922_ACEOF
8923rm -f conftest.$ac_objext
8924if { (ac_try="$ac_compile"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_cxx_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
8940 ac_hi=$ac_mid
8941else
8942 echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_lo=`expr '(' $ac_mid ')' + 1`
8946fi
8947
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949done
8950case $ac_lo in
8951?*) ac_cv_sizeof_int=$ac_lo;;
8952'') if test "$ac_cv_type_int" = yes; then
8953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8954See \`config.log' for more details." >&5
8955echo "$as_me: error: cannot compute sizeof (int)
8956See \`config.log' for more details." >&2;}
8957 { (exit 77); exit 77; }; }
8958 else
8959 ac_cv_sizeof_int=0
8960 fi ;;
8961esac
8962else
8963 cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969$ac_includes_default
8970 typedef int ac__type_sizeof_;
8971static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8972static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8973#include <stdio.h>
8974#include <stdlib.h>
8975int
8976main ()
8977{
8978
8979 FILE *f = fopen ("conftest.val", "w");
8980 if (! f)
8981 return 1;
8982 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8983 {
8984 long int i = longval ();
8985 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8986 return 1;
8987 fprintf (f, "%ld\n", i);
8988 }
8989 else
8990 {
8991 unsigned long int i = ulongval ();
8992 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8993 return 1;
8994 fprintf (f, "%lu\n", i);
8995 }
8996 return ferror (f) || fclose (f) != 0;
8997
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002rm -f conftest$ac_exeext
9003if { (ac_try="$ac_link"
9004case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_link") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_sizeof_int=`cat conftest.val`
9023else
9024 echo "$as_me: program exited with status $ac_status" >&5
9025echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028( exit $ac_status )
9029if test "$ac_cv_type_int" = yes; then
9030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9031See \`config.log' for more details." >&5
9032echo "$as_me: error: cannot compute sizeof (int)
9033See \`config.log' for more details." >&2;}
9034 { (exit 77); exit 77; }; }
9035 else
9036 ac_cv_sizeof_int=0
9037 fi
9038fi
9039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9040fi
9041rm -f conftest.val
9042fi
9043{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9044echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9045
9046
9047
9048cat >>confdefs.h <<_ACEOF
9049#define SIZEOF_INT $ac_cv_sizeof_int
9050_ACEOF
9051
9052
9053{ echo "$as_me:$LINENO: checking for long long" >&5
9054echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9055if test "${ac_cv_type_long_long+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058 cat >conftest.$ac_ext <<_ACEOF
9059/* confdefs.h. */
9060_ACEOF
9061cat confdefs.h >>conftest.$ac_ext
9062cat >>conftest.$ac_ext <<_ACEOF
9063/* end confdefs.h. */
9064$ac_includes_default
9065typedef long long ac__type_new_;
9066int
9067main ()
9068{
9069if ((ac__type_new_ *) 0)
9070 return 0;
9071if (sizeof (ac__type_new_))
9072 return 0;
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077rm -f conftest.$ac_objext
9078if { (ac_try="$ac_compile"
9079case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_compile") 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_cxx_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest.$ac_objext; then
9094 ac_cv_type_long_long=yes
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_cv_type_long_long=no
9100fi
9101
9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103fi
9104{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9105echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9106
9107# The cast to long int works around a bug in the HP C Compiler
9108# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9109# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9110# This bug is HP SR number 8606223364.
9111{ echo "$as_me:$LINENO: checking size of long long" >&5
9112echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9113if test "${ac_cv_sizeof_long_long+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115else
9116 if test "$cross_compiling" = yes; then
9117 # Depending upon the size, compute the lo and hi bounds.
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124$ac_includes_default
9125 typedef long long ac__type_sizeof_;
9126int
9127main ()
9128{
9129static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9130test_array [0] = 0
9131
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext
9137if { (ac_try="$ac_compile"
9138case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141esac
9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_cxx_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_lo=0 ac_mid=0
9154 while :; do
9155 cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161$ac_includes_default
9162 typedef long long ac__type_sizeof_;
9163int
9164main ()
9165{
9166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9167test_array [0] = 0
9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext
9174if { (ac_try="$ac_compile"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
9179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_cxx_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.$ac_objext; then
9190 ac_hi=$ac_mid; break
9191else
9192 echo "$as_me: failed program was:" >&5
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 ac_lo=`expr $ac_mid + 1`
9196 if test $ac_lo -le $ac_mid; then
9197 ac_lo= ac_hi=
9198 break
9199 fi
9200 ac_mid=`expr 2 '*' $ac_mid + 1`
9201fi
9202
9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 done
9205else
9206 echo "$as_me: failed program was:" >&5
9207sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h. */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h. */
9215$ac_includes_default
9216 typedef long long ac__type_sizeof_;
9217int
9218main ()
9219{
9220static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9221test_array [0] = 0
9222
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext
9228if { (ac_try="$ac_compile"
9229case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232esac
9233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_cxx_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 ac_hi=-1 ac_mid=-1
9245 while :; do
9246 cat >conftest.$ac_ext <<_ACEOF
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252$ac_includes_default
9253 typedef long long ac__type_sizeof_;
9254int
9255main ()
9256{
9257static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9258test_array [0] = 0
9259
9260 ;
9261 return 0;
9262}
9263_ACEOF
9264rm -f conftest.$ac_objext
9265if { (ac_try="$ac_compile"
9266case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_compile") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_cxx_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest.$ac_objext; then
9281 ac_lo=$ac_mid; break
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_hi=`expr '(' $ac_mid ')' - 1`
9287 if test $ac_mid -le $ac_hi; then
9288 ac_lo= ac_hi=
9289 break
9290 fi
9291 ac_mid=`expr 2 '*' $ac_mid`
9292fi
9293
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 done
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_lo= ac_hi=
9301fi
9302
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305
9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307# Binary search between lo and hi bounds.
9308while test "x$ac_lo" != "x$ac_hi"; do
9309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9310 cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316$ac_includes_default
9317 typedef long long ac__type_sizeof_;
9318int
9319main ()
9320{
9321static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9322test_array [0] = 0
9323
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext
9329if { (ac_try="$ac_compile"
9330case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9333esac
9334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_compile") 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && {
9342 test -z "$ac_cxx_werror_flag" ||
9343 test ! -s conftest.err
9344 } && test -s conftest.$ac_objext; then
9345 ac_hi=$ac_mid
9346else
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_lo=`expr '(' $ac_mid ')' + 1`
9351fi
9352
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354done
9355case $ac_lo in
9356?*) ac_cv_sizeof_long_long=$ac_lo;;
9357'') if test "$ac_cv_type_long_long" = yes; then
9358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9359See \`config.log' for more details." >&5
9360echo "$as_me: error: cannot compute sizeof (long long)
9361See \`config.log' for more details." >&2;}
9362 { (exit 77); exit 77; }; }
9363 else
9364 ac_cv_sizeof_long_long=0
9365 fi ;;
9366esac
9367else
9368 cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h. */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h. */
9374$ac_includes_default
9375 typedef long long ac__type_sizeof_;
9376static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9377static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9378#include <stdio.h>
9379#include <stdlib.h>
9380int
9381main ()
9382{
9383
9384 FILE *f = fopen ("conftest.val", "w");
9385 if (! f)
9386 return 1;
9387 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9388 {
9389 long int i = longval ();
9390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9391 return 1;
9392 fprintf (f, "%ld\n", i);
9393 }
9394 else
9395 {
9396 unsigned long int i = ulongval ();
9397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9398 return 1;
9399 fprintf (f, "%lu\n", i);
9400 }
9401 return ferror (f) || fclose (f) != 0;
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
9407rm -f conftest$ac_exeext
9408if { (ac_try="$ac_link"
9409case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412esac
9413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_link") 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_sizeof_long_long=`cat conftest.val`
9428else
9429 echo "$as_me: program exited with status $ac_status" >&5
9430echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433( exit $ac_status )
9434if test "$ac_cv_type_long_long" = yes; then
9435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9436See \`config.log' for more details." >&5
9437echo "$as_me: error: cannot compute sizeof (long long)
9438See \`config.log' for more details." >&2;}
9439 { (exit 77); exit 77; }; }
9440 else
9441 ac_cv_sizeof_long_long=0
9442 fi
9443fi
9444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9445fi
9446rm -f conftest.val
9447fi
9448{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9449echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9450
9451
9452
9453cat >>confdefs.h <<_ACEOF
9454#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9455_ACEOF
9456
9457
9458{ echo "$as_me:$LINENO: checking for int *" >&5
9459echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9460if test "${ac_cv_type_int_p+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462else
9463 cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469$ac_includes_default
9470typedef int * ac__type_new_;
9471int
9472main ()
9473{
9474if ((ac__type_new_ *) 0)
9475 return 0;
9476if (sizeof (ac__type_new_))
9477 return 0;
9478 ;
9479 return 0;
9480}
9481_ACEOF
9482rm -f conftest.$ac_objext
9483if { (ac_try="$ac_compile"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_compile") 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && {
9496 test -z "$ac_cxx_werror_flag" ||
9497 test ! -s conftest.err
9498 } && test -s conftest.$ac_objext; then
9499 ac_cv_type_int_p=yes
9500else
9501 echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_cv_type_int_p=no
9505fi
9506
9507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508fi
9509{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9510echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9511
9512# The cast to long int works around a bug in the HP C Compiler
9513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9515# This bug is HP SR number 8606223364.
9516{ echo "$as_me:$LINENO: checking size of int *" >&5
9517echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9518if test "${ac_cv_sizeof_int_p+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 if test "$cross_compiling" = yes; then
9522 # Depending upon the size, compute the lo and hi bounds.
9523cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529$ac_includes_default
9530 typedef int * ac__type_sizeof_;
9531int
9532main ()
9533{
9534static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9535test_array [0] = 0
9536
9537 ;
9538 return 0;
9539}
9540_ACEOF
9541rm -f conftest.$ac_objext
9542if { (ac_try="$ac_compile"
9543case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_compile") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_cxx_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
9558 ac_lo=0 ac_mid=0
9559 while :; do
9560 cat >conftest.$ac_ext <<_ACEOF
9561/* confdefs.h. */
9562_ACEOF
9563cat confdefs.h >>conftest.$ac_ext
9564cat >>conftest.$ac_ext <<_ACEOF
9565/* end confdefs.h. */
9566$ac_includes_default
9567 typedef int * ac__type_sizeof_;
9568int
9569main ()
9570{
9571static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9572test_array [0] = 0
9573
9574 ;
9575 return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext
9579if { (ac_try="$ac_compile"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_cxx_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9595 ac_hi=$ac_mid; break
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_lo=`expr $ac_mid + 1`
9601 if test $ac_lo -le $ac_mid; then
9602 ac_lo= ac_hi=
9603 break
9604 fi
9605 ac_mid=`expr 2 '*' $ac_mid + 1`
9606fi
9607
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 done
9610else
9611 echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620$ac_includes_default
9621 typedef int * ac__type_sizeof_;
9622int
9623main ()
9624{
9625static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9626test_array [0] = 0
9627
9628 ;
9629 return 0;
9630}
9631_ACEOF
9632rm -f conftest.$ac_objext
9633if { (ac_try="$ac_compile"
9634case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_cxx_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9649 ac_hi=-1 ac_mid=-1
9650 while :; do
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657$ac_includes_default
9658 typedef int * ac__type_sizeof_;
9659int
9660main ()
9661{
9662static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9663test_array [0] = 0
9664
9665 ;
9666 return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (ac_try="$ac_compile"
9671case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_compile") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_cxx_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest.$ac_objext; then
9686 ac_lo=$ac_mid; break
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_hi=`expr '(' $ac_mid ')' - 1`
9692 if test $ac_mid -le $ac_hi; then
9693 ac_lo= ac_hi=
9694 break
9695 fi
9696 ac_mid=`expr 2 '*' $ac_mid`
9697fi
9698
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 done
9701else
9702 echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_lo= ac_hi=
9706fi
9707
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712# Binary search between lo and hi bounds.
9713while test "x$ac_lo" != "x$ac_hi"; do
9714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9715 cat >conftest.$ac_ext <<_ACEOF
9716/* confdefs.h. */
9717_ACEOF
9718cat confdefs.h >>conftest.$ac_ext
9719cat >>conftest.$ac_ext <<_ACEOF
9720/* end confdefs.h. */
9721$ac_includes_default
9722 typedef int * ac__type_sizeof_;
9723int
9724main ()
9725{
9726static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9727test_array [0] = 0
9728
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext
9734if { (ac_try="$ac_compile"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_compile") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_cxx_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest.$ac_objext; then
9750 ac_hi=$ac_mid
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_lo=`expr '(' $ac_mid ')' + 1`
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759done
9760case $ac_lo in
9761?*) ac_cv_sizeof_int_p=$ac_lo;;
9762'') if test "$ac_cv_type_int_p" = yes; then
9763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9764See \`config.log' for more details." >&5
9765echo "$as_me: error: cannot compute sizeof (int *)
9766See \`config.log' for more details." >&2;}
9767 { (exit 77); exit 77; }; }
9768 else
9769 ac_cv_sizeof_int_p=0
9770 fi ;;
9771esac
9772else
9773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779$ac_includes_default
9780 typedef int * ac__type_sizeof_;
9781static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9782static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9783#include <stdio.h>
9784#include <stdlib.h>
9785int
9786main ()
9787{
9788
9789 FILE *f = fopen ("conftest.val", "w");
9790 if (! f)
9791 return 1;
9792 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9793 {
9794 long int i = longval ();
9795 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9796 return 1;
9797 fprintf (f, "%ld\n", i);
9798 }
9799 else
9800 {
9801 unsigned long int i = ulongval ();
9802 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9803 return 1;
9804 fprintf (f, "%lu\n", i);
9805 }
9806 return ferror (f) || fclose (f) != 0;
9807
9808 ;
9809 return 0;
9810}
9811_ACEOF
9812rm -f conftest$ac_exeext
9813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_sizeof_int_p=`cat conftest.val`
9833else
9834 echo "$as_me: program exited with status $ac_status" >&5
9835echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838( exit $ac_status )
9839if test "$ac_cv_type_int_p" = yes; then
9840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9841See \`config.log' for more details." >&5
9842echo "$as_me: error: cannot compute sizeof (int *)
9843See \`config.log' for more details." >&2;}
9844 { (exit 77); exit 77; }; }
9845 else
9846 ac_cv_sizeof_int_p=0
9847 fi
9848fi
9849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9850fi
9851rm -f conftest.val
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9854echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9855
9856
9857
9858cat >>confdefs.h <<_ACEOF
9859#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9860_ACEOF
9861
9862
9863
9864
9865{ echo "$as_me:$LINENO: checking for int16_t" >&5
9866echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9867if test "${rxvt_cv_int16_t+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870 cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876#include <stdint.h>
9877int
9878main ()
9879{
9880int16_t dummy;
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext
9886if { (ac_try="$ac_compile"
9887case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_compile") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && {
9899 test -z "$ac_cxx_werror_flag" ||
9900 test ! -s conftest.err
9901 } && test -s conftest.$ac_objext; then
9902 rxvt_cv_int16_t=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 if test "$ac_cv_sizeof_char" -ge 2; then
9908 rxvt_cv_int16_t=" char"
9909else
9910 if test "$ac_cv_sizeof_short" -ge 2; then
9911 rxvt_cv_int16_t=" short"
9912 else
9913 if test "$ac_cv_sizeof_int" -ge 2; then
9914 rxvt_cv_int16_t=" int"
9915 else
9916 if test "$ac_cv_sizeof_long" -ge 2; then
9917 rxvt_cv_int16_t=" long"
9918 else
9919 if test "$ac_cv_sizeof_long_long" -ge 2; then
9920 rxvt_cv_int16_t=" long long"
9921 else
9922 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9923 fi
9924 fi
9925 fi
9926 fi
9927fi
9928fi
9929
9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931fi
9932{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9933echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9934if test x"$rxvt_cv_int16_t" != xyes; then
9935 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9936else
9937 if test x"" = x; then
9938 rxvt_int16_typedef="/* typedef short int16_t; */"
9939 else
9940 rxvt_int16_typedef="/* typedef short int16_t; */"
9941 fi
9942fi
9943
9944{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9945echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9946if test "${rxvt_cv_uint16_t+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <stdint.h>
9956int
9957main ()
9958{
9959uint16_t dummy;
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (ac_try="$ac_compile"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_cxx_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 rxvt_cv_uint16_t=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 if test "$ac_cv_sizeof_char" -ge 2; then
9987 rxvt_cv_uint16_t="unsigned char"
9988else
9989 if test "$ac_cv_sizeof_short" -ge 2; then
9990 rxvt_cv_uint16_t="unsigned short"
9991 else
9992 if test "$ac_cv_sizeof_int" -ge 2; then
9993 rxvt_cv_uint16_t="unsigned int"
9994 else
9995 if test "$ac_cv_sizeof_long" -ge 2; then
9996 rxvt_cv_uint16_t="unsigned long"
9997 else
9998 if test "$ac_cv_sizeof_long_long" -ge 2; then
9999 rxvt_cv_uint16_t="unsigned long long"
10000 else
10001 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
10002 fi
10003 fi
10004 fi
10005 fi
10006fi
10007fi
10008
10009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010fi
10011{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
10012echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
10013if test x"$rxvt_cv_uint16_t" != xyes; then
10014 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
10015else
10016 if test x"unsigned" = x; then
10017 rxvt_uint16_typedef="/* typedef short uint16_t; */"
10018 else
10019 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
10020 fi
10021fi
10022
10023{ echo "$as_me:$LINENO: checking for int32_t" >&5
10024echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10025if test "${rxvt_cv_int32_t+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034#include <stdint.h>
10035int
10036main ()
10037{
10038int32_t dummy;
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext
10044if { (ac_try="$ac_compile"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_compile") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_cxx_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest.$ac_objext; then
10060 rxvt_cv_int32_t=yes
10061else
10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 if test "$ac_cv_sizeof_char" -ge 4; then
10066 rxvt_cv_int32_t=" char"
10067else
10068 if test "$ac_cv_sizeof_short" -ge 4; then
10069 rxvt_cv_int32_t=" short"
10070 else
10071 if test "$ac_cv_sizeof_int" -ge 4; then
10072 rxvt_cv_int32_t=" int"
10073 else
10074 if test "$ac_cv_sizeof_long" -ge 4; then
10075 rxvt_cv_int32_t=" long"
10076 else
10077 if test "$ac_cv_sizeof_long_long" -ge 4; then
10078 rxvt_cv_int32_t=" long long"
10079 else
10080 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10081 fi
10082 fi
10083 fi
10084 fi
10085fi
10086fi
10087
10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089fi
10090{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10091echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10092if test x"$rxvt_cv_int32_t" != xyes; then
10093 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10094else
10095 if test x"" = x; then
10096 rxvt_int32_typedef="/* typedef int int32_t; */"
10097 else
10098 rxvt_int32_typedef="/* typedef int int32_t; */"
10099 fi
10100fi
10101
10102{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10103echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10104if test "${rxvt_cv_uint32_t+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107 cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h. */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h. */
10113#include <stdint.h>
10114int
10115main ()
10116{
10117uint32_t dummy;
10118 ;
10119 return 0;
10120}
10121_ACEOF
10122rm -f conftest.$ac_objext
10123if { (ac_try="$ac_compile"
10124case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_compile") 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_cxx_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest.$ac_objext; then
10139 rxvt_cv_uint32_t=yes
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 if test "$ac_cv_sizeof_char" -ge 4; then
10145 rxvt_cv_uint32_t="unsigned char"
10146else
10147 if test "$ac_cv_sizeof_short" -ge 4; then
10148 rxvt_cv_uint32_t="unsigned short"
10149 else
10150 if test "$ac_cv_sizeof_int" -ge 4; then
10151 rxvt_cv_uint32_t="unsigned int"
10152 else
10153 if test "$ac_cv_sizeof_long" -ge 4; then
10154 rxvt_cv_uint32_t="unsigned long"
10155 else
10156 if test "$ac_cv_sizeof_long_long" -ge 4; then
10157 rxvt_cv_uint32_t="unsigned long long"
10158 else
10159 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10160 fi
10161 fi
10162 fi
10163 fi
10164fi
10165fi
10166
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi
10169{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10170echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10171if test x"$rxvt_cv_uint32_t" != xyes; then
10172 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10173else
10174 if test x"unsigned" = x; then
10175 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10176 else
10177 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10178 fi
10179fi
10180
10181if test "$ac_cv_sizeof_int_p" -eq 8; then
10182 rxvt_intp_define="#define intp_t int64_t"
10183 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10184else
10185 if test "$ac_cv_sizeof_int_p" -eq 4; then
10186 rxvt_intp_define="#define intp_t int32_t"
10187 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10188 else
10189 if test "$ac_cv_sizeof_int_p" -eq 2; then
10190 rxvt_intp_define="#define intp_t int16_t"
10191 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10192 else
10193 rxvt_intp_define="#error set intp_t"
10194 rxvt_u_intp_define="#error set u_intp_t"
10195 fi
10196 fi
10197fi
10198
10199
10200
10201{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10202echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10203if test "${ac_cv_type_signal+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206 cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212#include <sys/types.h>
10213#include <signal.h>
10214
10215int
10216main ()
10217{
10218return *(signal (0, 0)) (0) == 1;
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext
10224if { (ac_try="$ac_compile"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_compile") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_cxx_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest.$ac_objext; then
10240 ac_cv_type_signal=int
10241else
10242 echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_type_signal=void
10246fi
10247
10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249fi
10250{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10251echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10252
10253cat >>confdefs.h <<_ACEOF
10254#define RETSIGTYPE $ac_cv_type_signal
10255_ACEOF
10256
10257
10258
10259
10260
10261
10262for ac_func in \ 8426for ac_func in unsetenv
10263 unsetenv \
10264 setutent \
10265 on_exit \
10266
10267do 8427do
10268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8428as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10269{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8429{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8430echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10271if { 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
10410 8570
10411 8571
10412 8572
10413 8573
10414for ac_func in \ 8574for ac_func in \
10415 ttyslot \
10416 updwtmp \ 8575 updwtmp \
10417 updwtmpx \ 8576 updwtmpx \
8577 updlastlogx \
10418 8578
10419do 8579do
10420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11843 10003
11844cat >>confdefs.h <<_ACEOF 10004cat >>confdefs.h <<_ACEOF
11845#define LASTLOG_FILE "$path_lastlog" 10005#define LASTLOG_FILE "$path_lastlog"
11846_ACEOF 10006_ACEOF
11847 10007
11848 if test -d "$path_lastlog"; then
11849
11850cat >>confdefs.h <<\_ACEOF
11851#define LASTLOG_IS_DIR 1
11852_ACEOF
11853
11854 fi
11855fi 10008fi
11856 10009
11857{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10010{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11858echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10011echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11859if test "${path_lastlogx+set}" = set; then 10012if test "${path_lastlogx+set}" = set; then
11941 10094
11942fi 10095fi
11943 10096
11944 10097
11945 10098
11946{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11947echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11948if test "${rxvt_cv_path_ttytab+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950else
11951 for ttys_file in /etc/ttys /etc/ttytab;
11952do
11953 if test -f "$ttys_file" ; then
11954 rxvt_cv_path_ttytab=$ttys_file
11955 break
11956 fi
11957done
11958 10099
11959fi
11960{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11961echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11962if test x$rxvt_cv_path_ttytab != x; then
11963
11964cat >>confdefs.h <<_ACEOF
11965#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11966_ACEOF
11967
11968fi
11969
11970
11971ac_save_LIBS=$LIBS 10100save_LIBS=$LIBS
11972ac_save_CFLAGS=$CFLAGS 10101save_CFLAGS=$CFLAGS
11973CFLAGS="$CFLAGS $X_CFLAGS" 10102CFLAGS="$CFLAGS $X_CFLAGS"
11974LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10103LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11975if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 10104if test x$support_xim = xyes; then
11976 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11977fi
11978{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 10105 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11979echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10106echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11980if test "${rxvt_cv_func_xlocale+set}" = set; then 10107if test "${rxvt_cv_func_xlocale+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6 10108 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else 10109else
11983 if test "$cross_compiling" = yes; then 10110 if test "$cross_compiling" = yes; then
11984 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 10111 :
11985echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11986else 10112else
11987 cat >conftest.$ac_ext <<_ACEOF 10113 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */ 10114/* confdefs.h. */
11989_ACEOF 10115_ACEOF
11990cat confdefs.h >>conftest.$ac_ext 10116cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF 10117cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */ 10118/* end confdefs.h. */
11993#include <X11/Xlib.h> 10119#include <X11/Xlib.h>
11994#include <stdlib.h> 10120 #include <stdlib.h>
11995main() { 10121 main() {
11996char *p; 10122 char *p;
11997if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 10123 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11998exit (XSupportsLocale() ? 0 : 1); 10124 exit (XSupportsLocale() ? 0 : 1);
11999else 10125 else
12000exit (1);} 10126 exit (1);}
12001_ACEOF 10127_ACEOF
12002rm -f conftest$ac_exeext 10128rm -f conftest$ac_exeext
12003if { (ac_try="$ac_link" 10129if { (ac_try="$ac_link"
12004case "(($ac_try" in 10130case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5 10144 (eval "$ac_try") 2>&5
12019 ac_status=$? 10145 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then 10147 (exit $ac_status); }; }; then
12022 rxvt_cv_func_xlocale=yes 10148 rxvt_cv_func_xlocale=yes
12023else 10149else
12024 echo "$as_me: program exited with status $ac_status" >&5 10150 echo "$as_me: program exited with status $ac_status" >&5
12025echo "$as_me: failed program was:" >&5 10151echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5 10152sed 's/^/| /' conftest.$ac_ext >&5
12027 10153
12033 10159
12034 10160
12035fi 10161fi
12036{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 10162{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
12037echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 10163echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
12038if test x$rxvt_cv_func_xlocale = xyes; then 10164 if test x$rxvt_cv_func_xlocale = xyes; then
12039 10165
12040cat >>confdefs.h <<\_ACEOF 10166cat >>confdefs.h <<\_ACEOF
12041#define HAVE_XLOCALE 1 10167#define USE_XIM 1
12042_ACEOF 10168_ACEOF
12043 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
12044fi 10225fi
12045 10226
12046{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 10227{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
12047echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 10228echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
12048if test "${rxvt_cv_func_xsetlocale+set}" = set; then 10229if test "${rxvt_cv_func_xsetlocale+set}" = set; then
12100cat >>confdefs.h <<\_ACEOF 10281cat >>confdefs.h <<\_ACEOF
12101#define HAVE_XSETLOCALE 1 10282#define HAVE_XSETLOCALE 1
12102_ACEOF 10283_ACEOF
12103 10284
12104fi 10285fi
12105LIBS=$ac_save_LIBS 10286LIBS=$save_LIBS
12106CFLAGS=$ac_save_CFLAGS 10287CFLAGS=$save_CFLAGS
12107 10288
12108{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10289{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
12109echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10290echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
12110if test "${rxvt_cv_func_setlocale+set}" = set; then 10291if test "${rxvt_cv_func_setlocale+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6 10292 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 { { 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
12315echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 10496echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12316 { (exit 1); exit 1; }; } 10497 { (exit 1); exit 1; }; }
12317fi 10498fi
12318 10499
12319
12320{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12321echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12322if test "${rxvt_broken_ximcb+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326
12327#include <X11/Xlib.h>
12328
12329void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12330
12331void f() {
12332 XIMCallback cb;
12333 cb.callback = im_destroy_cb;
12334}
12335
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (ac_try="$ac_compile"
12339case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_compile") 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && {
12351 test -z "$ac_cxx_werror_flag" ||
12352 test ! -s conftest.err
12353 } && test -s conftest.$ac_objext; then
12354 rxvt_broken_ximcb=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 rxvt_broken_ximcb=no
12360fi
12361
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12365echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12366
12367if test x$rxvt_broken_ximcb = xyes; then
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define XIMCB_PROTO_BROKEN 1
12371_ACEOF
12372
12373fi
12374 10500
12375 10501
12376 10502
12377 10503
12378 10504
13059echo "${ECHO_T}no" >&6; } 11185echo "${ECHO_T}no" >&6; }
13060fi 11186fi
13061 11187
13062 11188
13063 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11189 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13064 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11190 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13065 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11191 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13066 else 11192 else
13067 # 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.
13068set dummy xft-config; ac_word=$2 11194set dummy xft-config; ac_word=$2
13069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13104echo "${ECHO_T}no" >&6; } 11230echo "${ECHO_T}no" >&6; }
13105fi 11231fi
13106 11232
13107 11233
13108 if test $XFT_CONFIG != no; then 11234 if test $XFT_CONFIG != no; then
13109 LIBS="$LIBS `$XFT_CONFIG --libs`" 11235 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13110 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11236 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13111 fi 11237 fi
13112 fi 11238 fi
13113 11239
11240 save_LIBS="$LIBS"
11241 LIBS="$LIBS $X_LIBS"
13114 11242
13115for ac_header in X11/Xft/Xft.h 11243for ac_header in X11/Xft/Xft.h
13116do 11244do
13117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13118if { 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
13251 support_xft=no 11379 support_xft=no
13252fi 11380fi
13253 11381
13254done 11382done
13255 11383
13256
13257{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11384 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13258echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11385echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13259if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11386if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6 11387 echo $ECHO_N "(cached) $ECHO_C" >&6
13261else 11388else
13262 ac_check_lib_save_LIBS=$LIBS 11389 ac_check_lib_save_LIBS=$LIBS
13314LIBS=$ac_check_lib_save_LIBS 11441LIBS=$ac_check_lib_save_LIBS
13315fi 11442fi
13316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11443{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13317echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11444echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13318if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11445if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13319 cat >>confdefs.h <<_ACEOF 11446 :
13320#define HAVE_LIBXFT 1
13321_ACEOF
13322
13323 LIBS="-lXft $LIBS"
13324
13325else 11447else
13326 support_xft=no 11448 support_xft=no
13327fi 11449fi
13328 11450
11451 LIBS="$save_LIBS"
13329 11452
13330 if test x$support_xft = xyes; then 11453 if test x$support_xft = xyes; then
13331 11454
13332cat >>confdefs.h <<\_ACEOF 11455cat >>confdefs.h <<\_ACEOF
13333#define XFT 1 11456#define XFT 1
13361cat >>confdefs.h <<\_ACEOF 11484cat >>confdefs.h <<\_ACEOF
13362#define OFF_FOCUS_FADING 1 11485#define OFF_FOCUS_FADING 1
13363_ACEOF 11486_ACEOF
13364 11487
13365fi 11488fi
13366if test x$support_tinting = xyes; then 11489if test x$support_inheritpixmap = xyes; then
13367 11490
13368cat >>confdefs.h <<\_ACEOF 11491cat >>confdefs.h <<\_ACEOF
13369#define TINTING 1
13370_ACEOF
13371
13372fi
13373if test x$support_inheritpixmap = xyes; then
13374
13375cat >>confdefs.h <<\_ACEOF
13376#define TRANSPARENT 1 11492#define ENABLE_TRANSPARENCY 1
13377_ACEOF 11493_ACEOF
13378 11494
13379fi 11495fi
13380if test x$support_keepscrolling = xno; then 11496if test x$support_keepscrolling = xno; then
13381 11497
13410cat >>confdefs.h <<\_ACEOF 11526cat >>confdefs.h <<\_ACEOF
13411#define MOUSE_SLIP_WHEELING 1 11527#define MOUSE_SLIP_WHEELING 1
13412_ACEOF 11528_ACEOF
13413 11529
13414fi 11530fi
13415if test x$support_xim = xyes -o x$multichar_set = xyes; then 11531if test x$support_afterimage = xyes; then
13416 if test x$rxvt_cv_func_xlocale = xyes; then
13417 11532
13418cat >>confdefs.h <<\_ACEOF 11533cat >>confdefs.h <<\_ACEOF
13419#define USE_XIM 1 11534#define HAVE_AFTERIMAGE 1
13420_ACEOF 11535_ACEOF
13421 11536
13422 fi
13423fi
13424if test x$support_xpm = xyes; then
13425 11537
13426cat >>confdefs.h <<\_ACEOF 11538cat >>confdefs.h <<\_ACEOF
13427#define XPM_BACKGROUND 1 11539#define BG_IMAGE_FROM_FILE 1
13428_ACEOF 11540_ACEOF
13429 11541
13430fi 11542fi
11543
11544
13431if test x$support_scroll_rxvt = xyes; then 11545if test x$support_scroll_rxvt = xyes; then
13432 11546
13433cat >>confdefs.h <<\_ACEOF 11547cat >>confdefs.h <<\_ACEOF
13434#define RXVT_SCROLLBAR 1 11548#define RXVT_SCROLLBAR 1
13435_ACEOF 11549_ACEOF
13703 11817
13704 11818
13705 11819
13706 11820
13707 11821
13708if test x$support_perl = xyes; then
13709 support_frills=yes
13710fi
13711 11822
13712 11823
13713 11824
13714 11825
13715 11826
13716 11827
13717 11828
13718
13719if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13720 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13721 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13722 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13723 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13724 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13725fi
13726 11829
13727 11830
13728 11831
13729 11832
13730 11833
13740_ACEOF 11843_ACEOF
13741program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11844program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13742rm -f conftest.sed 11845rm -f conftest.sed
13743 11846
13744 11847
13745
13746
13747
13748if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13749 include_stdint_h="#include <stdint.h>"
13750else
13751 include_stdint_h="/* #include <stdint.h> */"
13752fi
13753if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13754 include_stdarg_h="#include <cstdarg>"
13755else
13756 include_stdarg_h="/* #include <cstdarg> */"
13757fi
13758if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13759 include_stdlib_h="#include <cstdlib>"
13760else
13761 include_stdlib_h="/* #include <cstdlib> */"
13762fi
13763if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13764 include_unistd_h="#include <unistd.h>"
13765else
13766 include_unistd_h="/* #include <unistd.h> */"
13767fi
13768if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13769 include_string_h="#include <cstring>"
13770else
13771 include_string_h="/* #include <cstring> */"
13772fi
13773if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13774 include_fcntl_h="#include <fcntl.h>"
13775else
13776 include_fcntl_h="/* #include <fcntl.h> */"
13777fi
13778if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13779 include_util_h="#include <util.h>"
13780else
13781 include_util_h="/* #include <util.h> */"
13782fi
13783if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13784 include_assert_h="#include <assert.h>"
13785else
13786 include_assert_h="/* #include <assert.h> */"
13787fi
13788if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13789 include_sys_ioctl_h="#include <sys/ioctl.h>"
13790else
13791 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13792fi
13793if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13794 include_sys_select_h="#include <sys/select.h>"
13795else
13796 include_sys_select_h="/* #include <sys/select.h> */"
13797fi
13798if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13799 include_sys_strredir_h="#include <sys/strredir.h>"
13800else
13801 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13802fi
13803if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13804 include_sys_time_h="#include <sys/time.h>"
13805else
13806 include_sys_time_h="/* #include <sys/time.h> */"
13807fi
13808if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13809 include_time_h="#include <time.h>"
13810else
13811 include_time_h="/* #include <time.h> */"
13812fi
13813
13814ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11848ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13815 11849
13816cat >confcache <<\_ACEOF 11850cat >confcache <<\_ACEOF
13817# 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
13818# 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
13819# scripts and configure runs, see configure's option --config-cache. 11853# scripts and configure runs, see configure's option --config-cache.
14368 case $ac_config_target in 12402 case $ac_config_target in
14369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12403 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14370 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12404 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14371 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12405 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14372 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12406 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14373 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14374 12407
14375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12408 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14376echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12409echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14377 { (exit 1); exit 1; }; };; 12410 { (exit 1); exit 1; }; };;
14378 esac 12411 esac
14477host_cpu!$host_cpu$ac_delim 12510host_cpu!$host_cpu$ac_delim
14478host_vendor!$host_vendor$ac_delim 12511host_vendor!$host_vendor$ac_delim
14479host_os!$host_os$ac_delim 12512host_os!$host_os$ac_delim
14480VERSION!$VERSION$ac_delim 12513VERSION!$VERSION$ac_delim
14481DATE!$DATE$ac_delim 12514DATE!$DATE$ac_delim
14482LSMDATE!$LSMDATE$ac_delim
14483LIBVERSION!$LIBVERSION$ac_delim
14484CC!$CC$ac_delim 12515CC!$CC$ac_delim
14485CFLAGS!$CFLAGS$ac_delim 12516CFLAGS!$CFLAGS$ac_delim
14486LDFLAGS!$LDFLAGS$ac_delim 12517LDFLAGS!$LDFLAGS$ac_delim
14487CPPFLAGS!$CPPFLAGS$ac_delim 12518CPPFLAGS!$CPPFLAGS$ac_delim
14488ac_ct_CC!$ac_ct_CC$ac_delim 12519ac_ct_CC!$ac_ct_CC$ac_delim
14496INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12527INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14497INSTALL_DATA!$INSTALL_DATA$ac_delim 12528INSTALL_DATA!$INSTALL_DATA$ac_delim
14498GREP!$GREP$ac_delim 12529GREP!$GREP$ac_delim
14499EGREP!$EGREP$ac_delim 12530EGREP!$EGREP$ac_delim
14500LINKER!$LINKER$ac_delim 12531LINKER!$LINKER$ac_delim
14501INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14502RXVTNAME!$RXVTNAME$ac_delim 12532RXVTNAME!$RXVTNAME$ac_delim
14503MV!$MV$ac_delim
14504CP!$CP$ac_delim 12533CXXCPP!$CXXCPP$ac_delim
14505LN!$LN$ac_delim
14506SED!$SED$ac_delim
14507ECHO!$ECHO$ac_delim
14508CMP!$CMP$ac_delim
14509TIC!$TIC$ac_delim 12534TIC!$TIC$ac_delim
14510XMKMF!$XMKMF$ac_delim 12535XMKMF!$XMKMF$ac_delim
14511CXXCPP!$CXXCPP$ac_delim
14512X_CFLAGS!$X_CFLAGS$ac_delim 12536X_CFLAGS!$X_CFLAGS$ac_delim
14513X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12537X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14514X_LIBS!$X_LIBS$ac_delim 12538X_LIBS!$X_LIBS$ac_delim
14515X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12539X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14516XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim 12540afterimage_config!$afterimage_config$ac_delim
14517XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14518XPM_LIBS!$XPM_LIBS$ac_delim
14519rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14520rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14521rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14522rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14523rxvt_intp_define!$rxvt_intp_define$ac_delim
14524rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14525PKG_CONFIG!$PKG_CONFIG$ac_delim 12541PKG_CONFIG!$PKG_CONFIG$ac_delim
14526XFT_CONFIG!$XFT_CONFIG$ac_delim 12542XFT_CONFIG!$XFT_CONFIG$ac_delim
14527PERL!$PERL$ac_delim 12543PERL!$PERL$ac_delim
14528PERLLIB!$PERLLIB$ac_delim 12544PERLLIB!$PERLLIB$ac_delim
14529PERLFLAGS!$PERLFLAGS$ac_delim 12545PERLFLAGS!$PERLFLAGS$ac_delim
14530PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12546PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14531IF_PERL!$IF_PERL$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
14532_ACEOF 12553_ACEOF
14533 12554
14534 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
14535 break 12556 break
14536 elif $ac_last_try; then 12557 elif $ac_last_try; then
14537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12558 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14538echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12559echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14539 { (exit 1); exit 1; }; } 12560 { (exit 1); exit 1; }; }
14548 ac_eof=`expr $ac_eof + 1` 12569 ac_eof=`expr $ac_eof + 1`
14549fi 12570fi
14550 12571
14551cat >>$CONFIG_STATUS <<_ACEOF 12572cat >>$CONFIG_STATUS <<_ACEOF
14552cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12573cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14554_ACEOF
14555sed '
14556s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14557s/^/s,@/; s/!/@,|#_!!_#|/
14558:n
14559t n
14560s/'"$ac_delim"'$/,g/; t
14561s/$/\\/; p
14562N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14563' >>$CONFIG_STATUS <conf$$subs.sed
14564rm -f conf$$subs.sed
14565cat >>$CONFIG_STATUS <<_ACEOF
14566CEOF$ac_eof
14567_ACEOF
14568
14569
14570ac_delim='%!_!# '
14571for ac_last_try in false false false false false :; do
14572 cat >conf$$subs.sed <<_ACEOF
14573PERL_O!$PERL_O$ac_delim
14574DEBUG!$DEBUG$ac_delim
14575DINCLUDE!$DINCLUDE$ac_delim
14576DLIB!$DLIB$ac_delim
14577include_stdint_h!$include_stdint_h$ac_delim
14578include_stdarg_h!$include_stdarg_h$ac_delim
14579include_stdlib_h!$include_stdlib_h$ac_delim
14580include_unistd_h!$include_unistd_h$ac_delim
14581include_string_h!$include_string_h$ac_delim
14582include_fcntl_h!$include_fcntl_h$ac_delim
14583include_util_h!$include_util_h$ac_delim
14584include_assert_h!$include_assert_h$ac_delim
14585include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14586include_sys_select_h!$include_sys_select_h$ac_delim
14587include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14588include_sys_time_h!$include_sys_time_h$ac_delim
14589include_time_h!$include_time_h$ac_delim
14590LIBOBJS!$LIBOBJS$ac_delim
14591LTLIBOBJS!$LTLIBOBJS$ac_delim
14592_ACEOF
14593
14594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
14595 break
14596 elif $ac_last_try; then
14597 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14598echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14599 { (exit 1); exit 1; }; }
14600 else
14601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14602 fi
14603done
14604
14605ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14606if test -n "$ac_eof"; then
14607 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14608 ac_eof=`expr $ac_eof + 1`
14609fi
14610
14611cat >>$CONFIG_STATUS <<_ACEOF
14612cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14614_ACEOF 12575_ACEOF
14615sed ' 12576sed '
14616s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12577s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14617s/^/s,@/; s/!/@,|#_!!_#|/ 12578s/^/s,@/; s/!/@,|#_!!_#|/
14870s&@builddir@&$ac_builddir&;t t 12831s&@builddir@&$ac_builddir&;t t
14871s&@abs_builddir@&$ac_abs_builddir&;t t 12832s&@abs_builddir@&$ac_abs_builddir&;t t
14872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12833s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14873s&@INSTALL@&$ac_INSTALL&;t t 12834s&@INSTALL@&$ac_INSTALL&;t t
14874$ac_datarootdir_hack 12835$ac_datarootdir_hack
14875" $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
14876 12837
14877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12838test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14878 { 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"; } &&
14879 { 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"; } &&
14880 { 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'
15028 Install path: ${prefix}/bin 12989 Install path: ${prefix}/bin
15029 Compiler: $CXX 12990 Compiler: $CXX
15030 Compiler flags: $CXXFLAGS 12991 Compiler flags: $CXXFLAGS
15031 Linker: $LINKER" 12992 Linker: $LINKER"
15032 12993
15033if test x$support_xpm = xyes; then
15034 echo " Xpm library: $XPM_LIBS"
15035fi
15036
15037if test x$term != x; then 12994if test x$term != x; then
15038 echo " set TERM to: $term" 12995 echo " set TERM to: $term"
15039fi 12996fi
15040if test x$terminfo != x; then 12997if test x$terminfo != x; then
15041 echo " set TERMINFO to: $terminfo" 12998 echo " set TERMINFO to: $terminfo"
15045if test x$RESFALLBACK != x; then 13002if test x$RESFALLBACK != x; then
15046 echo " resource class fallback: $RESFALLBACK" 13003 echo " resource class fallback: $RESFALLBACK"
15047fi 13004fi
15048echo 13005echo
15049echo " embedded perl: $support_perl" 13006echo " embedded perl: $support_perl"
13007echo " libafterimage: $support_afterimage"
15050echo 13008echo
15051if test x$support_xpm = xneedsmanualspecification; then
15052 echo ".----------------------------------------------------------------."
15053 echo ". WARNING: --enable-xpm-background was specified however the ."
15054 echo ". XPM includes files and libraries could not be found. ."
15055 echo ". XPM backgrounds are now being DISABLED! If you want ."
15056 echo ". to use them you should rerun configure with the ."
15057 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
15058 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
15059 echo ".----------------------------------------------------------------."
15060fi
15061if 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
15062 echo ".----------------------------------------------------------------." 13010 echo ".----------------------------------------------------------------."
15063 echo ". WARNING: --enable-xim was specified however the locale support ." 13011 echo ". WARNING: --enable-xim was specified however the locale support ."
15064 echo ". functions could not be found. ." 13012 echo ". functions could not be found. ."
15065 echo ". XIM is now being DISABLED! ." 13013 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines