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

Comparing rxvt-unicode/configure (file contents):
Revision 1.110 by ayin, Thu Aug 2 00:29:23 2007 UTC vs.
Revision 1.131 by root, Tue Mar 16 00:54:46 2010 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
681CXXCPP
684TIC 682TIC
685XMKMF 683XMKMF
686CXXCPP
687X_CFLAGS 684X_CFLAGS
688X_PRE_LIBS 685X_PRE_LIBS
689X_LIBS 686X_LIBS
690X_EXTRA_LIBS 687X_EXTRA_LIBS
691afterimage_config 688afterimage_config
692rxvt_int16_typedef
693rxvt_uint16_typedef
694rxvt_int32_typedef
695rxvt_uint32_typedef
696rxvt_intp_define
697rxvt_u_intp_define
698PKG_CONFIG 689PKG_CONFIG
699XFT_CONFIG 690XFT_CONFIG
700PERL 691PERL
701PERLLIB 692PERLLIB
702PERLFLAGS 693PERLFLAGS
703PERLPRIVLIBEXP 694PERLPRIVLIBEXP
704IF_PERL 695IF_PERL
705PERL_O 696PERL_O
706AFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
707AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
708include_stdint_h
709include_stdarg_h
710include_stdlib_h
711include_unistd_h
712include_string_h
713include_fcntl_h
714include_util_h
715include_assert_h
716include_sys_ioctl_h
717include_sys_select_h
718include_sys_strredir_h
719include_sys_time_h
720include_time_h
721LIBOBJS 699LIBOBJS
722LTLIBOBJS' 700LTLIBOBJS'
723ac_subst_files='' 701ac_subst_files=''
724 ac_precious_vars='build_alias 702 ac_precious_vars='build_alias
725host_alias 703host_alias
731CPPFLAGS 709CPPFLAGS
732CXX 710CXX
733CXXFLAGS 711CXXFLAGS
734CCC 712CCC
735CPP 713CPP
736XMKMF
737CXXCPP' 714CXXCPP
715XMKMF'
738 716
739 717
740# Initialize some variables set by options. 718# Initialize some variables set by options.
741ac_init_help= 719ac_init_help=
742ac_init_version=false 720ac_init_version=false
1315 1293
1316Optional Features: 1294Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared 1299 --enable-assert enable assertions
1300 --enable-warnings turn on g++ warnings
1322 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1301 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1323 --enable-combining enable composition of base and combining characters 1302 --enable-combining enable composition of base and combining characters
1324 --enable-xft enable xft support on systems that have it 1303 --enable-xft enable xft support on systems that have it
1325 --enable-font-styles enable bold and italic support 1304 --enable-font-styles enable bold and italic support
1326 --enable-afterimage enable integration with libAfterImage for background images 1305 --enable-afterimage enable integration with libAfterImage for background images
1327 --enable-transparency enable transparent backgrounds 1306 --enable-transparency enable transparent backgrounds
1328 --enable-tinting enable tinting of transparent bg
1329 --enable-fading enable colors fading when off focus 1307 --enable-fading enable colors fading when off focus
1330 --enable-rxvt-scroll enable rxvt style scrollbar 1308 --enable-rxvt-scroll enable rxvt style scrollbar
1331 --enable-next-scroll enable NeXT style scrollbar 1309 --enable-next-scroll enable NeXT style scrollbar
1332 --enable-xterm-scroll enable Xterm style scrollbar 1310 --enable-xterm-scroll enable Xterm style scrollbar
1333 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1334 --enable-plain-scroll enable plain style scrollbar
1335 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1336 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1337 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1338 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1339 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1340 --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)
1341 --disable-swapscreen disable swap screen support 1318 --disable-swapscreen disable swap screen support
1342 --enable-iso14755 enable support for extended ISO 14755 modes 1319 --enable-iso14755 enable support for extended ISO 14755 modes
1343 --enable-frills enable support for rarely used features 1320 --enable-frills enable support for rarely used features
1344 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1321 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1345 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1346 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1347 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1348 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1349 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1350 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blanking when typing or inactive
1351 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1352 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1353 --enable-lastlog enable lastlog support (requires --enable-utmp) 1330 --enable-lastlog enable lastlog support (requires --enable-utmp)
1354 1331
1355Optional Packages: 1332Optional Packages:
1356 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1357 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1358 --with-afterimage-config=DIR use libAfterImage config script in DIR 1335 --with-afterimage-config=DIR use libAfterImage config script in DIR
1359 --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)
1360 --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)
1361 --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)
1362 --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)
1363 --with-term=NAME set the terminal to NAME (default: rxvt) 1340 --with-term=NAME set the terminal to NAME (default: rxvt)
1364 --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 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
1374 you have headers in a nonstandard directory <include dir> 1351 you have headers in a nonstandard directory <include dir>
1375 CXX C++ compiler command 1352 CXX C++ compiler command
1376 CXXFLAGS C++ compiler flags 1353 CXXFLAGS C++ compiler flags
1377 CPP C preprocessor 1354 CPP C preprocessor
1355 CXXCPP C++ preprocessor
1378 XMKMF Path to xmkmf, Makefile generator for X Window System 1356 XMKMF Path to xmkmf, Makefile generator for X Window System
1379 CXXCPP C++ preprocessor
1380 1357
1381Use 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
1382it to find libraries and programs with nonstandard names/locations. 1359it to find libraries and programs with nonstandard names/locations.
1383 1360
1384_ACEOF 1361_ACEOF
1920 1897
1921 1898
1922 1899
1923VERSION=`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`
1924DATE=`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
1925echo "" 1903echo ""
1926echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1927echo "" 1905echo ""
1928 1906
1929orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1930
1931 1908
1932ac_ext=c 1909ac_ext=c
1933ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935ac_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'
3714echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3715fi 3692fi
3716rm -f conftest* 3693rm -f conftest*
3717 3694
3718 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3719{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3720echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3721if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else 3706else
3870LINKER=$LINKER 3853LINKER=$LINKER
3871 3854
3872 3855
3873if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3874 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3875 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"
3876 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h. */ 3860/* confdefs.h. */
3878_ACEOF 3861_ACEOF
3879cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3918 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3919 fi 3902 fi
3920 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3921fi 3904fi
3922 3905
3923
3924cat >>confdefs.h <<\_ACEOF
3925#define _GNU_SOURCE 1
3926_ACEOF
3927
3928
3929case $host in 3906case $host in
3930 *-*-solaris* ) 3907 *-*-solaris* )
3931 3908
3932cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3933#define _XOPEN_SOURCE 500 3910#define _XOPEN_SOURCE 500
3934_ACEOF 3911_ACEOF
3935 3912
3936 ;; 3913 ;;
3937esac 3914esac
3938
3939 3915
3940{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3941echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3942if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4390fi 4366fi
4391 4367
4392fi 4368fi
4393 4369
4394 4370
4395
4396support_frills=yes 4371support_frills=yes
4397support_inheritpixmap=yes 4372support_inheritpixmap=yes
4398support_tinting=yes
4399support_fading=yes 4373support_fading=yes
4400support_keepscrolling=yes 4374support_keepscrolling=yes
4401support_selectionscrolling=yes 4375support_selectionscrolling=yes
4402support_mousewheel=yes 4376support_mousewheel=yes
4403support_mouseslipwheel=yes 4377support_mouseslipwheel=yes
4404support_text_blink=yes 4378support_text_blink=yes
4405support_pointer_blank=yes 4379support_pointer_blank=yes
4406support_scroll_rxvt=yes 4380support_scroll_rxvt=yes
4407support_scroll_next=yes 4381support_scroll_next=yes
4408support_scroll_xterm=yes 4382support_scroll_xterm=yes
4409support_scroll_plain=yes
4410support_xim=yes 4383support_xim=yes
4411support_afterimage=yes 4384support_afterimage=yes
4412support_afterstep=yes 4385support_afterstep=yes
4413support_xft=yes 4386support_xft=yes
4414support_unicode3=no 4387support_unicode3=no
4418support_styles=yes 4391support_styles=yes
4419support_perl=yes 4392support_perl=yes
4420codesets=all 4393codesets=all
4421 4394
4422 4395
4423if test "x$enable_shared" = xyes; then
4424
4425cat >>confdefs.h <<\_ACEOF
4426#define LIBRXVT 1
4427_ACEOF
4428
4429 INSTALL_LIBRXVT=yes
4430fi
4431
4432
4433# Check whether --enable-everything was given. 4396# Check whether --enable-everything was given.
4434if test "${enable_everything+set}" = set; then 4397if test "${enable_everything+set}" = set; then
4435 enableval=$enable_everything; 4398 enableval=$enable_everything;
4436 if test x$enableval = xno; then 4399 if test x$enableval = xno; then
4437 support_frills=no 4400 support_frills=no
4438 support_inheritpixmap=no 4401 support_inheritpixmap=no
4439 support_tinting=no
4440 support_fading=no 4402 support_fading=no
4441 support_keepscrolling=no 4403 support_keepscrolling=no
4442 support_selectionscrolling=no 4404 support_selectionscrolling=no
4443 support_lastlog=no 4405 support_lastlog=no
4444 support_mousewheel=no 4406 support_mousewheel=no
4446 support_text_blink=no 4408 support_text_blink=no
4447 support_pointer_blank=no 4409 support_pointer_blank=no
4448 support_scroll_rxvt=no 4410 support_scroll_rxvt=no
4449 support_scroll_next=no 4411 support_scroll_next=no
4450 support_scroll_xterm=no 4412 support_scroll_xterm=no
4451 support_scroll_plain=no
4452 support_utmp=no 4413 support_utmp=no
4453 support_wtmp=no 4414 support_wtmp=no
4454 support_xim=no 4415 support_xim=no
4455 support_afterimage=no 4416 support_afterimage=no
4456 support_afterstep=no 4417 support_afterstep=no
4464 codesets= 4425 codesets=
4465 fi 4426 fi
4466 if test x$enableval = xyes; then 4427 if test x$enableval = xyes; then
4467 support_frills=yes 4428 support_frills=yes
4468 support_inheritpixmap=yes 4429 support_inheritpixmap=yes
4469 support_tinting=yes
4470 support_fading=yes 4430 support_fading=yes
4471 support_keepscrolling=yes 4431 support_keepscrolling=yes
4472 support_selectionscrolling=yes 4432 support_selectionscrolling=yes
4473 support_lastlog=yes 4433 support_lastlog=yes
4474 support_mousewheel=yes 4434 support_mousewheel=yes
4476 support_text_blink=yes 4436 support_text_blink=yes
4477 support_pointer_blank=yes 4437 support_pointer_blank=yes
4478 support_scroll_rxvt=yes 4438 support_scroll_rxvt=yes
4479 support_scroll_next=yes 4439 support_scroll_next=yes
4480 support_scroll_xterm=yes 4440 support_scroll_xterm=yes
4481 support_scroll_plain=yes
4482 support_utmp=yes 4441 support_utmp=yes
4483 support_wtmp=yes 4442 support_wtmp=yes
4484 support_xim=yes 4443 support_xim=yes
4485 support_afterimage=yes 4444 support_afterimage=yes
4486 support_afterstep=yes 4445 support_afterstep=yes
4495 fi 4454 fi
4496 4455
4497fi 4456fi
4498 4457
4499 4458
4459ASSERTIONS=no
4460# Check whether --enable-assert was given.
4461if test "${enable_assert+set}" = set; then
4462 enableval=$enable_assert; if test x$enableval = xyes; then
4463 ASSERTIONS=yes
4464 fi
4465fi
4466
4467if test x$ASSERTIONS = xno; then
4468
4469cat >>confdefs.h <<\_ACEOF
4470#define NDEBUG 1
4471_ACEOF
4472
4473fi
4474
4475WARNINGS=no
4476# Check whether --enable-warnings was given.
4477if test "${enable_warnings+set}" = set; then
4478 enableval=$enable_warnings; if test x$enableval = xyes; then
4479 WARNINGS=yes
4480 fi
4481fi
4482
4483if test x$GXX = xyes; then
4484 if test $WARNINGS = yes; then
4485 save_CXXFLAGS="$CXXFLAGS"
4486 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4487 cat >conftest.$ac_ext <<_ACEOF
4488/* confdefs.h. */
4489_ACEOF
4490cat confdefs.h >>conftest.$ac_ext
4491cat >>conftest.$ac_ext <<_ACEOF
4492/* end confdefs.h. */
4493
4494int
4495main ()
4496{
4497
4498 ;
4499 return 0;
4500}
4501_ACEOF
4502rm -f conftest.$ac_objext
4503if { (ac_try="$ac_compile"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4509 (eval "$ac_compile") 2>conftest.er1
4510 ac_status=$?
4511 grep -v '^ *+' conftest.er1 >conftest.err
4512 rm -f conftest.er1
4513 cat conftest.err >&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); } && {
4516 test -z "$ac_cxx_werror_flag" ||
4517 test ! -s conftest.err
4518 } && test -s conftest.$ac_objext; then
4519 :
4520else
4521 echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 CXXFLAGS="$save_CXXFLAGS"
4525fi
4526
4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 else
4529 CXXFLAGS="$CXXFLAGS -w"
4530 fi
4531fi
4532
4500# Check whether --enable-unicode3 was given. 4533# Check whether --enable-unicode3 was given.
4501if test "${enable_unicode3+set}" = set; then 4534if test "${enable_unicode3+set}" = set; then
4502 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4535 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4503 support_unicode3=$enableval 4536 support_unicode3=$enableval
4504 fi 4537 fi
4553 support_inheritpixmap=$enableval 4586 support_inheritpixmap=$enableval
4554 fi 4587 fi
4555fi 4588fi
4556 4589
4557 4590
4558# Check whether --enable-tinting was given.
4559if test "${enable_tinting+set}" = set; then
4560 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4561 support_tinting=$enableval
4562 fi
4563fi
4564
4565
4566# Check whether --enable-fading was given. 4591# Check whether --enable-fading was given.
4567if test "${enable_fading+set}" = set; then 4592if test "${enable_fading+set}" = set; then
4568 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4593 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4569 support_fading=$enableval 4594 support_fading=$enableval
4570 fi 4595 fi
4597 4622
4598# Check whether --enable-perl was given. 4623# Check whether --enable-perl was given.
4599if test "${enable_perl+set}" = set; then 4624if test "${enable_perl+set}" = set; then
4600 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4625 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4601 support_perl=$enableval 4626 support_perl=$enableval
4602 fi
4603fi
4604
4605
4606# Check whether --enable-plain-scroll was given.
4607if test "${enable_plain_scroll+set}" = set; then
4608 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4609 support_scroll_plain=$enableval
4610 fi 4627 fi
4611fi 4628fi
4612 4629
4613 4630
4614 4631
4841#define RXVT_TERMINFO "$withval" 4858#define RXVT_TERMINFO "$withval"
4842_ACEOF 4859_ACEOF
4843 terminfo="$withval" 4860 terminfo="$withval"
4844 fi 4861 fi
4845fi 4862fi
4863
4864
4865
4866LIBEV_M4_AVOID_LIBRT=1
4867
4868ac_ext=cpp
4869ac_cpp='$CXXCPP $CPPFLAGS'
4870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4873{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4874echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4875if test -z "$CXXCPP"; then
4876 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879 # Double quotes because CXXCPP needs to be expanded
4880 for CXXCPP in "$CXX -E" "/lib/cpp"
4881 do
4882 ac_preproc_ok=false
4883for ac_cxx_preproc_warn_flag in '' yes
4884do
4885 # Use a header file that comes with gcc, so configuring glibc
4886 # with a fresh cross-compiler works.
4887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4888 # <limits.h> exists even on freestanding compilers.
4889 # On the NeXT, cc -E runs the code through the compiler's parser,
4890 # not just through cpp. "Syntax error" is here to catch this case.
4891 cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
4897#ifdef __STDC__
4898# include <limits.h>
4899#else
4900# include <assert.h>
4901#endif
4902 Syntax error
4903_ACEOF
4904if { (ac_try="$ac_cpp conftest.$ac_ext"
4905case "(($ac_try" in
4906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4907 *) ac_try_echo=$ac_try;;
4908esac
4909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } >/dev/null && {
4917 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4918 test ! -s conftest.err
4919 }; then
4920 :
4921else
4922 echo "$as_me: failed program was:" >&5
4923sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 # Broken: fails on valid input.
4926continue
4927fi
4928
4929rm -f conftest.err conftest.$ac_ext
4930
4931 # OK, works on sane cases. Now check whether nonexistent headers
4932 # can be detected and how.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#include <ac_nonexistent.h>
4940_ACEOF
4941if { (ac_try="$ac_cpp conftest.$ac_ext"
4942case "(($ac_try" in
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4945esac
4946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4948 ac_status=$?
4949 grep -v '^ *+' conftest.er1 >conftest.err
4950 rm -f conftest.er1
4951 cat conftest.err >&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } >/dev/null && {
4954 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4955 test ! -s conftest.err
4956 }; then
4957 # Broken: success on invalid input.
4958continue
4959else
4960 echo "$as_me: failed program was:" >&5
4961sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 # Passes both tests.
4964ac_preproc_ok=:
4965break
4966fi
4967
4968rm -f conftest.err conftest.$ac_ext
4969
4970done
4971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972rm -f conftest.err conftest.$ac_ext
4973if $ac_preproc_ok; then
4974 break
4975fi
4976
4977 done
4978 ac_cv_prog_CXXCPP=$CXXCPP
4979
4980fi
4981 CXXCPP=$ac_cv_prog_CXXCPP
4982else
4983 ac_cv_prog_CXXCPP=$CXXCPP
4984fi
4985{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4986echo "${ECHO_T}$CXXCPP" >&6; }
4987ac_preproc_ok=false
4988for ac_cxx_preproc_warn_flag in '' yes
4989do
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002#ifdef __STDC__
5003# include <limits.h>
5004#else
5005# include <assert.h>
5006#endif
5007 Syntax error
5008_ACEOF
5009if { (ac_try="$ac_cpp conftest.$ac_ext"
5010case "(($ac_try" in
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5013esac
5014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5023 test ! -s conftest.err
5024 }; then
5025 :
5026else
5027 echo "$as_me: failed program was:" >&5
5028sed 's/^/| /' conftest.$ac_ext >&5
5029
5030 # Broken: fails on valid input.
5031continue
5032fi
5033
5034rm -f conftest.err conftest.$ac_ext
5035
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <ac_nonexistent.h>
5045_ACEOF
5046if { (ac_try="$ac_cpp conftest.$ac_ext"
5047case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050esac
5051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev/null && {
5059 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5060 test ! -s conftest.err
5061 }; then
5062 # Broken: success on invalid input.
5063continue
5064else
5065 echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 # Passes both tests.
5069ac_preproc_ok=:
5070break
5071fi
5072
5073rm -f conftest.err conftest.$ac_ext
5074
5075done
5076# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077rm -f conftest.err conftest.$ac_ext
5078if $ac_preproc_ok; then
5079 :
5080else
5081 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5082See \`config.log' for more details." >&5
5083echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5084See \`config.log' for more details." >&2;}
5085 { (exit 1); exit 1; }; }
5086fi
5087
5088ac_ext=cpp
5089ac_cpp='$CXXCPP $CPPFLAGS'
5090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5093
5094
5095{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5096echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5097if test "${ac_cv_header_stdc+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h. */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>conftest.$ac_ext <<_ACEOF
5105/* end confdefs.h. */
5106#include <stdlib.h>
5107#include <stdarg.h>
5108#include <string.h>
5109#include <float.h>
5110
5111int
5112main ()
5113{
5114
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_cxx_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_header_stdc=yes
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_cv_header_stdc=no
5142fi
5143
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145
5146if test $ac_cv_header_stdc = yes; then
5147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5148 cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h. */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h. */
5154#include <string.h>
5155
5156_ACEOF
5157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5158 $EGREP "memchr" >/dev/null 2>&1; then
5159 :
5160else
5161 ac_cv_header_stdc=no
5162fi
5163rm -f conftest*
5164
5165fi
5166
5167if test $ac_cv_header_stdc = yes; then
5168 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */
5175#include <stdlib.h>
5176
5177_ACEOF
5178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179 $EGREP "free" >/dev/null 2>&1; then
5180 :
5181else
5182 ac_cv_header_stdc=no
5183fi
5184rm -f conftest*
5185
5186fi
5187
5188if test $ac_cv_header_stdc = yes; then
5189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5190 if test "$cross_compiling" = yes; then
5191 :
5192else
5193 cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h. */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h. */
5199#include <ctype.h>
5200#include <stdlib.h>
5201#if ((' ' & 0x0FF) == 0x020)
5202# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5203# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5204#else
5205# define ISLOWER(c) \
5206 (('a' <= (c) && (c) <= 'i') \
5207 || ('j' <= (c) && (c) <= 'r') \
5208 || ('s' <= (c) && (c) <= 'z'))
5209# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5210#endif
5211
5212#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5213int
5214main ()
5215{
5216 int i;
5217 for (i = 0; i < 256; i++)
5218 if (XOR (islower (i), ISLOWER (i))
5219 || toupper (i) != TOUPPER (i))
5220 return 2;
5221 return 0;
5222}
5223_ACEOF
5224rm -f conftest$ac_exeext
5225if { (ac_try="$ac_link"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_link") 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5235 { (case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5238esac
5239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 (eval "$ac_try") 2>&5
5241 ac_status=$?
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 :
5245else
5246 echo "$as_me: program exited with status $ac_status" >&5
5247echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
5250( exit $ac_status )
5251ac_cv_header_stdc=no
5252fi
5253rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5254fi
5255
5256
5257fi
5258fi
5259{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5260echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5261if test $ac_cv_header_stdc = yes; then
5262
5263cat >>confdefs.h <<\_ACEOF
5264#define STDC_HEADERS 1
5265_ACEOF
5266
5267fi
5268
5269# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5280 inttypes.h stdint.h unistd.h
5281do
5282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288 cat >conftest.$ac_ext <<_ACEOF
5289/* confdefs.h. */
5290_ACEOF
5291cat confdefs.h >>conftest.$ac_ext
5292cat >>conftest.$ac_ext <<_ACEOF
5293/* end confdefs.h. */
5294$ac_includes_default
5295
5296#include <$ac_header>
5297_ACEOF
5298rm -f conftest.$ac_objext
5299if { (ac_try="$ac_compile"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_cxx_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 eval "$as_ac_Header=yes"
5316else
5317 echo "$as_me: failed program was:" >&5
5318sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 eval "$as_ac_Header=no"
5321fi
5322
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324fi
5325ac_res=`eval echo '${'$as_ac_Header'}'`
5326 { echo "$as_me:$LINENO: result: $ac_res" >&5
5327echo "${ECHO_T}$ac_res" >&6; }
5328if test `eval echo '${'$as_ac_Header'}'` = yes; then
5329 cat >>confdefs.h <<_ACEOF
5330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5331_ACEOF
5332
5333fi
5334
5335done
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5347do
5348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354fi
5355ac_res=`eval echo '${'$as_ac_Header'}'`
5356 { echo "$as_me:$LINENO: result: $ac_res" >&5
5357echo "${ECHO_T}$ac_res" >&6; }
5358else
5359 # Is the header compilable?
5360{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5362cat >conftest.$ac_ext <<_ACEOF
5363/* confdefs.h. */
5364_ACEOF
5365cat confdefs.h >>conftest.$ac_ext
5366cat >>conftest.$ac_ext <<_ACEOF
5367/* end confdefs.h. */
5368$ac_includes_default
5369#include <$ac_header>
5370_ACEOF
5371rm -f conftest.$ac_objext
5372if { (ac_try="$ac_compile"
5373case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376esac
5377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compile") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } && {
5385 test -z "$ac_cxx_werror_flag" ||
5386 test ! -s conftest.err
5387 } && test -s conftest.$ac_objext; then
5388 ac_header_compiler=yes
5389else
5390 echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393 ac_header_compiler=no
5394fi
5395
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5398echo "${ECHO_T}$ac_header_compiler" >&6; }
5399
5400# Is the header present?
5401{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5402echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5403cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */
5409#include <$ac_header>
5410_ACEOF
5411if { (ac_try="$ac_cpp conftest.$ac_ext"
5412case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null && {
5424 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5425 test ! -s conftest.err
5426 }; then
5427 ac_header_preproc=yes
5428else
5429 echo "$as_me: failed program was:" >&5
5430sed 's/^/| /' conftest.$ac_ext >&5
5431
5432 ac_header_preproc=no
5433fi
5434
5435rm -f conftest.err conftest.$ac_ext
5436{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5437echo "${ECHO_T}$ac_header_preproc" >&6; }
5438
5439# So? What about this header?
5440case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5441 yes:no: )
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5446 ac_header_preproc=yes
5447 ;;
5448 no:yes:* )
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5461
5462 ;;
5463esac
5464{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469 eval "$as_ac_Header=\$ac_header_preproc"
5470fi
5471ac_res=`eval echo '${'$as_ac_Header'}'`
5472 { echo "$as_me:$LINENO: result: $ac_res" >&5
5473echo "${ECHO_T}$ac_res" >&6; }
5474
5475fi
5476if test `eval echo '${'$as_ac_Header'}'` = yes; then
5477 cat >>confdefs.h <<_ACEOF
5478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5479_ACEOF
5480
5481fi
5482
5483done
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5495do
5496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5497{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5499if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5510#define $ac_func innocuous_$ac_func
5511
5512/* System header to define __stub macros and hopefully few prototypes,
5513 which can conflict with char $ac_func (); below.
5514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5515 <limits.h> exists even on freestanding compilers. */
5516
5517#ifdef __STDC__
5518# include <limits.h>
5519#else
5520# include <assert.h>
5521#endif
5522
5523#undef $ac_func
5524
5525/* Override any GCC internal prototype to avoid an error.
5526 Use char because int might match the return type of a GCC
5527 builtin and then its argument prototype would still apply. */
5528#ifdef __cplusplus
5529extern "C"
5530#endif
5531char $ac_func ();
5532/* The GNU C library defines this for functions which it implements
5533 to always fail with ENOSYS. Some functions are actually named
5534 something starting with __ and the normal name is an alias. */
5535#if defined __stub_$ac_func || defined __stub___$ac_func
5536choke me
5537#endif
5538
5539int
5540main ()
5541{
5542return $ac_func ();
5543 ;
5544 return 0;
5545}
5546_ACEOF
5547rm -f conftest.$ac_objext conftest$ac_exeext
5548if { (ac_try="$ac_link"
5549case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_link") 2>conftest.er1
5555 ac_status=$?
5556 grep -v '^ *+' conftest.er1 >conftest.err
5557 rm -f conftest.er1
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_cxx_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest$ac_exeext &&
5564 $as_test_x conftest$ac_exeext; then
5565 eval "$as_ac_var=yes"
5566else
5567 echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
5570 eval "$as_ac_var=no"
5571fi
5572
5573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5574 conftest$ac_exeext conftest.$ac_ext
5575fi
5576ac_res=`eval echo '${'$as_ac_var'}'`
5577 { echo "$as_me:$LINENO: result: $ac_res" >&5
5578echo "${ECHO_T}$ac_res" >&6; }
5579if test `eval echo '${'$as_ac_var'}'` = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5582_ACEOF
5583
5584fi
5585done
5586
5587
5588{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5589echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5590if test "${ac_cv_func_clock_gettime+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593 cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h. */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h. */
5599/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5600 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5601#define clock_gettime innocuous_clock_gettime
5602
5603/* System header to define __stub macros and hopefully few prototypes,
5604 which can conflict with char clock_gettime (); below.
5605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5606 <limits.h> exists even on freestanding compilers. */
5607
5608#ifdef __STDC__
5609# include <limits.h>
5610#else
5611# include <assert.h>
5612#endif
5613
5614#undef clock_gettime
5615
5616/* Override any GCC internal prototype to avoid an error.
5617 Use char because int might match the return type of a GCC
5618 builtin and then its argument prototype would still apply. */
5619#ifdef __cplusplus
5620extern "C"
5621#endif
5622char clock_gettime ();
5623/* The GNU C library defines this for functions which it implements
5624 to always fail with ENOSYS. Some functions are actually named
5625 something starting with __ and the normal name is an alias. */
5626#if defined __stub_clock_gettime || defined __stub___clock_gettime
5627choke me
5628#endif
5629
5630int
5631main ()
5632{
5633return clock_gettime ();
5634 ;
5635 return 0;
5636}
5637_ACEOF
5638rm -f conftest.$ac_objext conftest$ac_exeext
5639if { (ac_try="$ac_link"
5640case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_link") 2>conftest.er1
5646 ac_status=$?
5647 grep -v '^ *+' conftest.er1 >conftest.err
5648 rm -f conftest.er1
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_cxx_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest$ac_exeext &&
5655 $as_test_x conftest$ac_exeext; then
5656 ac_cv_func_clock_gettime=yes
5657else
5658 echo "$as_me: failed program was:" >&5
5659sed 's/^/| /' conftest.$ac_ext >&5
5660
5661 ac_cv_func_clock_gettime=no
5662fi
5663
5664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5665 conftest$ac_exeext conftest.$ac_ext
5666fi
5667{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5668echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5669if test $ac_cv_func_clock_gettime = yes; then
5670 :
5671else
5672
5673 if test $(uname) = Linux; then
5674 { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5
5675echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; }
5676 cat >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#include <unistd.h>
5683 #include <sys/syscall.h>
5684 #include <time.h>
5685int
5686main ()
5687{
5688struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext
5694if { (ac_try="$ac_link"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_link") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext &&
5710 $as_test_x conftest$ac_exeext; then
5711 ac_have_clock_syscall=1
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define HAVE_CLOCK_SYSCALL 1
5715_ACEOF
5716
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6; }
5719else
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 { echo "$as_me:$LINENO: result: no" >&5
5724echo "${ECHO_T}no" >&6; }
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5731
5732{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5733echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5734if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5736else
5737 ac_check_lib_save_LIBS=$LIBS
5738LIBS="-lrt $LIBS"
5739cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745
5746/* Override any GCC internal prototype to avoid an error.
5747 Use char because int might match the return type of a GCC
5748 builtin and then its argument prototype would still apply. */
5749#ifdef __cplusplus
5750extern "C"
5751#endif
5752char clock_gettime ();
5753int
5754main ()
5755{
5756return clock_gettime ();
5757 ;
5758 return 0;
5759}
5760_ACEOF
5761rm -f conftest.$ac_objext conftest$ac_exeext
5762if { (ac_try="$ac_link"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_link") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } && {
5775 test -z "$ac_cxx_werror_flag" ||
5776 test ! -s conftest.err
5777 } && test -s conftest$ac_exeext &&
5778 $as_test_x conftest$ac_exeext; then
5779 ac_cv_lib_rt_clock_gettime=yes
5780else
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_lib_rt_clock_gettime=no
5785fi
5786
5787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5788 conftest$ac_exeext conftest.$ac_ext
5789LIBS=$ac_check_lib_save_LIBS
5790fi
5791{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5792echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5793if test $ac_cv_lib_rt_clock_gettime = yes; then
5794 cat >>confdefs.h <<_ACEOF
5795#define HAVE_LIBRT 1
5796_ACEOF
5797
5798 LIBS="-lrt $LIBS"
5799
5800fi
5801
5802 unset ac_cv_func_clock_gettime
5803
5804for ac_func in clock_gettime
5805do
5806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5811else
5812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5820#define $ac_func innocuous_$ac_func
5821
5822/* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below.
5824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5825 <limits.h> exists even on freestanding compilers. */
5826
5827#ifdef __STDC__
5828# include <limits.h>
5829#else
5830# include <assert.h>
5831#endif
5832
5833#undef $ac_func
5834
5835/* Override any GCC internal prototype to avoid an error.
5836 Use char because int might match the return type of a GCC
5837 builtin and then its argument prototype would still apply. */
5838#ifdef __cplusplus
5839extern "C"
5840#endif
5841char $ac_func ();
5842/* The GNU C library defines this for functions which it implements
5843 to always fail with ENOSYS. Some functions are actually named
5844 something starting with __ and the normal name is an alias. */
5845#if defined __stub_$ac_func || defined __stub___$ac_func
5846choke me
5847#endif
5848
5849int
5850main ()
5851{
5852return $ac_func ();
5853 ;
5854 return 0;
5855}
5856_ACEOF
5857rm -f conftest.$ac_objext conftest$ac_exeext
5858if { (ac_try="$ac_link"
5859case "(($ac_try" in
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5862esac
5863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_link") 2>conftest.er1
5865 ac_status=$?
5866 grep -v '^ *+' conftest.er1 >conftest.err
5867 rm -f conftest.er1
5868 cat conftest.err >&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_cxx_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest$ac_exeext &&
5874 $as_test_x conftest$ac_exeext; then
5875 eval "$as_ac_var=yes"
5876else
5877 echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 eval "$as_ac_var=no"
5881fi
5882
5883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5884 conftest$ac_exeext conftest.$ac_ext
5885fi
5886ac_res=`eval echo '${'$as_ac_var'}'`
5887 { echo "$as_me:$LINENO: result: $ac_res" >&5
5888echo "${ECHO_T}$ac_res" >&6; }
5889if test `eval echo '${'$as_ac_var'}'` = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5892_ACEOF
5893
5894fi
5895done
5896
5897 fi
5898
5899fi
5900
5901
5902{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5903echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5904if test "${ac_cv_func_nanosleep+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5915#define nanosleep innocuous_nanosleep
5916
5917/* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char nanosleep (); below.
5919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 <limits.h> exists even on freestanding compilers. */
5921
5922#ifdef __STDC__
5923# include <limits.h>
5924#else
5925# include <assert.h>
5926#endif
5927
5928#undef nanosleep
5929
5930/* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5933#ifdef __cplusplus
5934extern "C"
5935#endif
5936char nanosleep ();
5937/* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940#if defined __stub_nanosleep || defined __stub___nanosleep
5941choke me
5942#endif
5943
5944int
5945main ()
5946{
5947return nanosleep ();
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext conftest$ac_exeext
5953if { (ac_try="$ac_link"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_cxx_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
5970 ac_cv_func_nanosleep=yes
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_cv_func_nanosleep=no
5976fi
5977
5978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979 conftest$ac_exeext conftest.$ac_ext
5980fi
5981{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5982echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5983if test $ac_cv_func_nanosleep = yes; then
5984 :
5985else
5986
5987 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5988
5989{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5990echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5991if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 ac_check_lib_save_LIBS=$LIBS
5995LIBS="-lrt $LIBS"
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002
6003/* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6006#ifdef __cplusplus
6007extern "C"
6008#endif
6009char nanosleep ();
6010int
6011main ()
6012{
6013return nanosleep ();
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (ac_try="$ac_link"
6020case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_link") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_cxx_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest$ac_exeext &&
6035 $as_test_x conftest$ac_exeext; then
6036 ac_cv_lib_rt_nanosleep=yes
6037else
6038 echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_lib_rt_nanosleep=no
6042fi
6043
6044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6045 conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS
6047fi
6048{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6049echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
6050if test $ac_cv_lib_rt_nanosleep = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_LIBRT 1
6053_ACEOF
6054
6055 LIBS="-lrt $LIBS"
6056
6057fi
6058
6059 unset ac_cv_func_nanosleep
6060
6061for ac_func in nanosleep
6062do
6063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
6075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6077#define $ac_func innocuous_$ac_func
6078
6079/* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func (); below.
6081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082 <limits.h> exists even on freestanding compilers. */
6083
6084#ifdef __STDC__
6085# include <limits.h>
6086#else
6087# include <assert.h>
6088#endif
6089
6090#undef $ac_func
6091
6092/* Override any GCC internal prototype to avoid an error.
6093 Use char because int might match the return type of a GCC
6094 builtin and then its argument prototype would still apply. */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098char $ac_func ();
6099/* The GNU C library defines this for functions which it implements
6100 to always fail with ENOSYS. Some functions are actually named
6101 something starting with __ and the normal name is an alias. */
6102#if defined __stub_$ac_func || defined __stub___$ac_func
6103choke me
6104#endif
6105
6106int
6107main ()
6108{
6109return $ac_func ();
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (ac_try="$ac_link"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_link") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_cxx_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest$ac_exeext &&
6131 $as_test_x conftest$ac_exeext; then
6132 eval "$as_ac_var=yes"
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 eval "$as_ac_var=no"
6138fi
6139
6140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142fi
6143ac_res=`eval echo '${'$as_ac_var'}'`
6144 { echo "$as_me:$LINENO: result: $ac_res" >&5
6145echo "${ECHO_T}$ac_res" >&6; }
6146if test `eval echo '${'$as_ac_var'}'` = yes; then
6147 cat >>confdefs.h <<_ACEOF
6148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6149_ACEOF
6150
6151fi
6152done
6153
6154 fi
6155
6156fi
6157
6158
6159
6160{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
6161echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
6162if test "${ac_cv_lib_m_ceil+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164else
6165 ac_check_lib_save_LIBS=$LIBS
6166LIBS="-lm $LIBS"
6167cat >conftest.$ac_ext <<_ACEOF
6168/* confdefs.h. */
6169_ACEOF
6170cat confdefs.h >>conftest.$ac_ext
6171cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h. */
6173
6174/* Override any GCC internal prototype to avoid an error.
6175 Use char because int might match the return type of a GCC
6176 builtin and then its argument prototype would still apply. */
6177#ifdef __cplusplus
6178extern "C"
6179#endif
6180char ceil ();
6181int
6182main ()
6183{
6184return ceil ();
6185 ;
6186 return 0;
6187}
6188_ACEOF
6189rm -f conftest.$ac_objext conftest$ac_exeext
6190if { (ac_try="$ac_link"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_link") 2>conftest.er1
6197 ac_status=$?
6198 grep -v '^ *+' conftest.er1 >conftest.err
6199 rm -f conftest.er1
6200 cat conftest.err >&5
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && {
6203 test -z "$ac_cxx_werror_flag" ||
6204 test ! -s conftest.err
6205 } && test -s conftest$ac_exeext &&
6206 $as_test_x conftest$ac_exeext; then
6207 ac_cv_lib_m_ceil=yes
6208else
6209 echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 ac_cv_lib_m_ceil=no
6213fi
6214
6215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6216 conftest$ac_exeext conftest.$ac_ext
6217LIBS=$ac_check_lib_save_LIBS
6218fi
6219{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
6220echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
6221if test $ac_cv_lib_m_ceil = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223#define HAVE_LIBM 1
6224_ACEOF
6225
6226 LIBS="-lm $LIBS"
6227
6228fi
6229
6230
4846 6231
4847 6232
4848 6233
4849# Extract the first word of "tic", so it can be a program name with args. 6234# Extract the first word of "tic", so it can be a program name with args.
4850set dummy tic; ac_word=$2 6235set dummy tic; ac_word=$2
4871 fi 6256 fi
4872done 6257done
4873done 6258done
4874IFS=$as_save_IFS 6259IFS=$as_save_IFS
4875 6260
6261 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4876 ;; 6262 ;;
4877esac 6263esac
4878fi 6264fi
4879TIC=$ac_cv_path_TIC 6265TIC=$ac_cv_path_TIC
4880if test -n "$TIC"; then 6266if test -n "$TIC"; then
4883else 6269else
4884 { echo "$as_me:$LINENO: result: no" >&5 6270 { echo "$as_me:$LINENO: result: no" >&5
4885echo "${ECHO_T}no" >&6; } 6271echo "${ECHO_T}no" >&6; }
4886fi 6272fi
4887 6273
4888
4889
4890
4891
4892ac_ext=cpp
4893ac_cpp='$CXXCPP $CPPFLAGS'
4894ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4897{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4898echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4899if test -z "$CXXCPP"; then
4900 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 # Double quotes because CXXCPP needs to be expanded
4904 for CXXCPP in "$CXX -E" "/lib/cpp"
4905 do
4906 ac_preproc_ok=false
4907for ac_cxx_preproc_warn_flag in '' yes
4908do
4909 # Use a header file that comes with gcc, so configuring glibc
4910 # with a fresh cross-compiler works.
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4912 # <limits.h> exists even on freestanding compilers.
4913 # On the NeXT, cc -E runs the code through the compiler's parser,
4914 # not just through cpp. "Syntax error" is here to catch this case.
4915 cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h. */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h. */
4921#ifdef __STDC__
4922# include <limits.h>
4923#else
4924# include <assert.h>
4925#endif
4926 Syntax error
4927_ACEOF
4928if { (ac_try="$ac_cpp conftest.$ac_ext"
4929case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4935 ac_status=$?
4936 grep -v '^ *+' conftest.er1 >conftest.err
4937 rm -f conftest.er1
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } >/dev/null && {
4941 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4942 test ! -s conftest.err
4943 }; then
4944 :
4945else
4946 echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949 # Broken: fails on valid input.
4950continue
4951fi
4952
4953rm -f conftest.err conftest.$ac_ext
4954
4955 # OK, works on sane cases. Now check whether nonexistent headers
4956 # can be detected and how.
4957 cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h. */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h. */
4963#include <ac_nonexistent.h>
4964_ACEOF
4965if { (ac_try="$ac_cpp conftest.$ac_ext"
4966case "(($ac_try" in
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4969esac
4970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev/null && {
4978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4979 test ! -s conftest.err
4980 }; then
4981 # Broken: success on invalid input.
4982continue
4983else
4984 echo "$as_me: failed program was:" >&5
4985sed 's/^/| /' conftest.$ac_ext >&5
4986
4987 # Passes both tests.
4988ac_preproc_ok=:
4989break
4990fi
4991
4992rm -f conftest.err conftest.$ac_ext
4993
4994done
4995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4996rm -f conftest.err conftest.$ac_ext
4997if $ac_preproc_ok; then
4998 break
4999fi
5000
5001 done
5002 ac_cv_prog_CXXCPP=$CXXCPP
5003
5004fi
5005 CXXCPP=$ac_cv_prog_CXXCPP
5006else
5007 ac_cv_prog_CXXCPP=$CXXCPP
5008fi
5009{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5010echo "${ECHO_T}$CXXCPP" >&6; }
5011ac_preproc_ok=false
5012for ac_cxx_preproc_warn_flag in '' yes
5013do
5014 # Use a header file that comes with gcc, so configuring glibc
5015 # with a fresh cross-compiler works.
5016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5017 # <limits.h> exists even on freestanding compilers.
5018 # On the NeXT, cc -E runs the code through the compiler's parser,
5019 # not just through cpp. "Syntax error" is here to catch this case.
5020 cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h. */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h. */
5026#ifdef __STDC__
5027# include <limits.h>
5028#else
5029# include <assert.h>
5030#endif
5031 Syntax error
5032_ACEOF
5033if { (ac_try="$ac_cpp conftest.$ac_ext"
5034case "(($ac_try" in
5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036 *) ac_try_echo=$ac_try;;
5037esac
5038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5040 ac_status=$?
5041 grep -v '^ *+' conftest.er1 >conftest.err
5042 rm -f conftest.er1
5043 cat conftest.err >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } >/dev/null && {
5046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5047 test ! -s conftest.err
5048 }; then
5049 :
5050else
5051 echo "$as_me: failed program was:" >&5
5052sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 # Broken: fails on valid input.
5055continue
5056fi
5057
5058rm -f conftest.err conftest.$ac_ext
5059
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#include <ac_nonexistent.h>
5069_ACEOF
5070if { (ac_try="$ac_cpp conftest.$ac_ext"
5071case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074esac
5075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } >/dev/null && {
5083 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5084 test ! -s conftest.err
5085 }; then
5086 # Broken: success on invalid input.
5087continue
5088else
5089 echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 # Passes both tests.
5093ac_preproc_ok=:
5094break
5095fi
5096
5097rm -f conftest.err conftest.$ac_ext
5098
5099done
5100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5101rm -f conftest.err conftest.$ac_ext
5102if $ac_preproc_ok; then
5103 :
5104else
5105 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5106See \`config.log' for more details." >&5
5107echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5108See \`config.log' for more details." >&2;}
5109 { (exit 1); exit 1; }; }
5110fi
5111
5112ac_ext=cpp
5113ac_cpp='$CXXCPP $CPPFLAGS'
5114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5117 6274
5118 6275
5119{ echo "$as_me:$LINENO: checking for X" >&5 6276{ echo "$as_me:$LINENO: checking for X" >&5
5120echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6277echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5121 6278
6507echo "${ECHO_T}no" >&6; } 7664echo "${ECHO_T}no" >&6; }
6508 fi 7665 fi
6509 fi 7666 fi
6510fi 7667fi
6511 7668
6512{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6513echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6514if test "${ac_cv_header_sys_wait_h+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517 cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h. */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h. */
6523#include <sys/types.h>
6524#include <sys/wait.h>
6525#ifndef WEXITSTATUS
6526# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6527#endif
6528#ifndef WIFEXITED
6529# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6530#endif
6531
6532int
6533main ()
6534{
6535 int s;
6536 wait (&s);
6537 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6538 ;
6539 return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext
6543if { (ac_try="$ac_compile"
6544case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6547esac
6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_cxx_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_cv_header_sys_wait_h=yes
6560else
6561 echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 ac_cv_header_sys_wait_h=no
6565fi
6566
6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568fi
6569{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6570echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6571if test $ac_cv_header_sys_wait_h = yes; then
6572
6573cat >>confdefs.h <<\_ACEOF
6574#define HAVE_SYS_WAIT_H 1
6575_ACEOF
6576
6577fi
6578
6579{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6580echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6581if test "${ac_cv_header_stdc+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584 cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h. */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h. */
6590#include <stdlib.h>
6591#include <stdarg.h>
6592#include <string.h>
6593#include <float.h>
6594
6595int
6596main ()
6597{
6598
6599 ;
6600 return 0;
6601}
6602_ACEOF
6603rm -f conftest.$ac_objext
6604if { (ac_try="$ac_compile"
6605case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608esac
6609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_compile") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_cxx_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest.$ac_objext; then
6620 ac_cv_header_stdc=yes
6621else
6622 echo "$as_me: failed program was:" >&5
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 ac_cv_header_stdc=no
6626fi
6627
6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629
6630if test $ac_cv_header_stdc = yes; then
6631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6632 cat >conftest.$ac_ext <<_ACEOF
6633/* confdefs.h. */
6634_ACEOF
6635cat confdefs.h >>conftest.$ac_ext
6636cat >>conftest.$ac_ext <<_ACEOF
6637/* end confdefs.h. */
6638#include <string.h>
6639
6640_ACEOF
6641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "memchr" >/dev/null 2>&1; then
6643 :
6644else
6645 ac_cv_header_stdc=no
6646fi
6647rm -f conftest*
6648
6649fi
6650
6651if test $ac_cv_header_stdc = yes; then
6652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659#include <stdlib.h>
6660
6661_ACEOF
6662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663 $EGREP "free" >/dev/null 2>&1; then
6664 :
6665else
6666 ac_cv_header_stdc=no
6667fi
6668rm -f conftest*
6669
6670fi
6671
6672if test $ac_cv_header_stdc = yes; then
6673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6674 if test "$cross_compiling" = yes; then
6675 :
6676else
6677 cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h. */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h. */
6683#include <ctype.h>
6684#include <stdlib.h>
6685#if ((' ' & 0x0FF) == 0x020)
6686# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6687# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6688#else
6689# define ISLOWER(c) \
6690 (('a' <= (c) && (c) <= 'i') \
6691 || ('j' <= (c) && (c) <= 'r') \
6692 || ('s' <= (c) && (c) <= 'z'))
6693# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6694#endif
6695
6696#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6697int
6698main ()
6699{
6700 int i;
6701 for (i = 0; i < 256; i++)
6702 if (XOR (islower (i), ISLOWER (i))
6703 || toupper (i) != TOUPPER (i))
6704 return 2;
6705 return 0;
6706}
6707_ACEOF
6708rm -f conftest$ac_exeext
6709if { (ac_try="$ac_link"
6710case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713esac
6714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_link") 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6719 { (case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722esac
6723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 :
6729else
6730 echo "$as_me: program exited with status $ac_status" >&5
6731echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
6733
6734( exit $ac_status )
6735ac_cv_header_stdc=no
6736fi
6737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6738fi
6739
6740
6741fi
6742fi
6743{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6744echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6745if test $ac_cv_header_stdc = yes; then
6746
6747cat >>confdefs.h <<\_ACEOF
6748#define STDC_HEADERS 1
6749_ACEOF
6750
6751fi
6752
6753# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6764 inttypes.h stdint.h unistd.h
6765do
6766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6767{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771else
6772 cat >conftest.$ac_ext <<_ACEOF
6773/* confdefs.h. */
6774_ACEOF
6775cat confdefs.h >>conftest.$ac_ext
6776cat >>conftest.$ac_ext <<_ACEOF
6777/* end confdefs.h. */
6778$ac_includes_default
6779
6780#include <$ac_header>
6781_ACEOF
6782rm -f conftest.$ac_objext
6783if { (ac_try="$ac_compile"
6784case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787esac
6788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && {
6796 test -z "$ac_cxx_werror_flag" ||
6797 test ! -s conftest.err
6798 } && test -s conftest.$ac_objext; then
6799 eval "$as_ac_Header=yes"
6800else
6801 echo "$as_me: failed program was:" >&5
6802sed 's/^/| /' conftest.$ac_ext >&5
6803
6804 eval "$as_ac_Header=no"
6805fi
6806
6807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808fi
6809ac_res=`eval echo '${'$as_ac_Header'}'`
6810 { echo "$as_me:$LINENO: result: $ac_res" >&5
6811echo "${ECHO_T}$ac_res" >&6; }
6812if test `eval echo '${'$as_ac_Header'}'` = yes; then
6813 cat >>confdefs.h <<_ACEOF
6814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6815_ACEOF
6816
6817fi
6818
6819done
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832 7669
6833 7670
6834 7671
6835 7672
6836 7673
6837 7674
6838 7675
6839for ac_header in \ 7676for ac_header in \
6840 assert.h \
6841 fcntl.h \
6842 stdarg.h \
6843 stdlib.h \
6844 string.h \
6845 termios.h \
6846 unistd.h \
6847 sys/byteorder.h \ 7677 sys/byteorder.h \
6848 sys/ioctl.h \ 7678 sys/ioctl.h \
6849 sys/select.h \
6850 sys/sockio.h \ 7679 sys/sockio.h \
6851 sys/strredir.h \ 7680 sys/strredir.h \
6852 sys/time.h \
6853 stdint.h \ 7681 stdint.h \
6854 wchar.h \ 7682 wchar.h \
6855 cwchar \ 7683 cwchar \
6856 clocale \
6857 7684
6858do 7685do
6859as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6861 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6992fi 7819fi
6993 7820
6994done 7821done
6995 7822
6996 7823
6997{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6998echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6999if test "${ac_cv_header_time+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 cat >conftest.$ac_ext <<_ACEOF
7003/* confdefs.h. */
7004_ACEOF
7005cat confdefs.h >>conftest.$ac_ext
7006cat >>conftest.$ac_ext <<_ACEOF
7007/* end confdefs.h. */
7008#include <sys/types.h>
7009#include <sys/time.h>
7010#include <time.h>
7011
7012int
7013main ()
7014{
7015if ((struct tm *) 0)
7016return 0;
7017 ;
7018 return 0;
7019}
7020_ACEOF
7021rm -f conftest.$ac_objext
7022if { (ac_try="$ac_compile"
7023case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026esac
7027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_compile") 2>conftest.er1
7029 ac_status=$?
7030 grep -v '^ *+' conftest.er1 >conftest.err
7031 rm -f conftest.er1
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } && {
7035 test -z "$ac_cxx_werror_flag" ||
7036 test ! -s conftest.err
7037 } && test -s conftest.$ac_objext; then
7038 ac_cv_header_time=yes
7039else
7040 echo "$as_me: failed program was:" >&5
7041sed 's/^/| /' conftest.$ac_ext >&5
7042
7043 ac_cv_header_time=no
7044fi
7045
7046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7047fi
7048{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7049echo "${ECHO_T}$ac_cv_header_time" >&6; }
7050if test $ac_cv_header_time = yes; then
7051
7052cat >>confdefs.h <<\_ACEOF
7053#define TIME_WITH_SYS_TIME 1
7054_ACEOF
7055
7056fi
7057
7058
7059{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7060echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7061if test "${rxvt_cv_header_sysioctl+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064 cat >conftest.$ac_ext <<_ACEOF
7065/* confdefs.h. */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */
7070#include <stdio.h>
7071#include <sys/ioctl.h>
7072#ifdef HAVE_TERMIOS_H
7073#include <termios.h>
7074#endif
7075int
7076main ()
7077{
7078int a = ECHO;
7079 ;
7080 return 0;
7081}
7082_ACEOF
7083rm -f conftest.$ac_objext
7084if { (ac_try="$ac_compile"
7085case "(($ac_try" in
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7088esac
7089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_compile") 2>conftest.er1
7091 ac_status=$?
7092 grep -v '^ *+' conftest.er1 >conftest.err
7093 rm -f conftest.er1
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && {
7097 test -z "$ac_cxx_werror_flag" ||
7098 test ! -s conftest.err
7099 } && test -s conftest.$ac_objext; then
7100 rxvt_cv_header_sysioctl=yes
7101else
7102 echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105 rxvt_cv_header_sysioctl=no
7106fi
7107
7108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7109fi
7110{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7111echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7112
7113{ echo "$as_me:$LINENO: checking for XPointer" >&5 7824{ echo "$as_me:$LINENO: checking for XPointer" >&5
7114echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7825echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7115if test "${rxvt_cv_xpointer+set}" = set; then 7826if test "${rxvt_cv_xpointer+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6 7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else 7828else
7167 7878
7168fi 7879fi
7169 7880
7170{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5 7881{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7171echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; } 7882echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7172if test "${rxvt_xlib_illegal_access+set}" = set; then 7883if test "${rxvt_cv_xlib_illegal_access+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6 7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7174else 7885else
7175 cat >conftest.$ac_ext <<_ACEOF 7886 cat >conftest.$ac_ext <<_ACEOF
7176/* confdefs.h. */ 7887/* confdefs.h. */
7177_ACEOF 7888_ACEOF
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && { 7920 (exit $ac_status); } && {
7210 test -z "$ac_cxx_werror_flag" || 7921 test -z "$ac_cxx_werror_flag" ||
7211 test ! -s conftest.err 7922 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then 7923 } && test -s conftest.$ac_objext; then
7213 rxvt_xlib_illegal_access=yes 7924 rxvt_cv_xlib_illegal_access=yes
7214else 7925else
7215 echo "$as_me: failed program was:" >&5 7926 echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5 7927sed 's/^/| /' conftest.$ac_ext >&5
7217 7928
7218 rxvt_xlib_illegal_access=no 7929 rxvt_cv_xlib_illegal_access=no
7219 7930
7220fi 7931fi
7221 7932
7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223fi 7934fi
7224{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5 7935{ echo "$as_me:$LINENO: result: $rxvt_cv_xlib_illegal_access" >&5
7225echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; } 7936echo "${ECHO_T}$rxvt_cv_xlib_illegal_access" >&6; }
7226if test x$rxvt_xlib_illegal_access = xyes; then 7937if test x$rxvt_cv_xlib_illegal_access = xyes; then
7227 7938
7228cat >>confdefs.h <<\_ACEOF 7939cat >>confdefs.h <<\_ACEOF
7229#define XLIB_ILLEGAL_ACCESS 1 7940#define XLIB_ILLEGAL_ACCESS 1
7230_ACEOF 7941_ACEOF
7231 7942
7232fi 7943fi
7233
7234{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7235echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7236if test "${ac_cv_c_const+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 cat >conftest.$ac_ext <<_ACEOF
7240/* confdefs.h. */
7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h. */
7245
7246int
7247main ()
7248{
7249/* FIXME: Include the comments suggested by Paul. */
7250#ifndef __cplusplus
7251 /* Ultrix mips cc rejects this. */
7252 typedef int charset[2];
7253 const charset cs;
7254 /* SunOS 4.1.1 cc rejects this. */
7255 char const *const *pcpcc;
7256 char **ppc;
7257 /* NEC SVR4.0.2 mips cc rejects this. */
7258 struct point {int x, y;};
7259 static struct point const zero = {0,0};
7260 /* AIX XL C 1.02.0.0 rejects this.
7261 It does not let you subtract one const X* pointer from another in
7262 an arm of an if-expression whose if-part is not a constant
7263 expression */
7264 const char *g = "string";
7265 pcpcc = &g + (g ? g-g : 0);
7266 /* HPUX 7.0 cc rejects these. */
7267 ++pcpcc;
7268 ppc = (char**) pcpcc;
7269 pcpcc = (char const *const *) ppc;
7270 { /* SCO 3.2v4 cc rejects this. */
7271 char *t;
7272 char const *s = 0 ? (char *) 0 : (char const *) 0;
7273
7274 *t++ = 0;
7275 if (s) return 0;
7276 }
7277 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7278 int x[] = {25, 17};
7279 const int *foo = &x[0];
7280 ++foo;
7281 }
7282 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7283 typedef const int *iptr;
7284 iptr p = 0;
7285 ++p;
7286 }
7287 { /* AIX XL C 1.02.0.0 rejects this saying
7288 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7289 struct s { int j; const int *ap[3]; };
7290 struct s *b; b->j = 5;
7291 }
7292 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7293 const int foo = 10;
7294 if (!foo) return 0;
7295 }
7296 return !cs[0] && !zero.x;
7297#endif
7298
7299 ;
7300 return 0;
7301}
7302_ACEOF
7303rm -f conftest.$ac_objext
7304if { (ac_try="$ac_compile"
7305case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308esac
7309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_cxx_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
7320 ac_cv_c_const=yes
7321else
7322 echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325 ac_cv_c_const=no
7326fi
7327
7328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329fi
7330{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7331echo "${ECHO_T}$ac_cv_c_const" >&6; }
7332if test $ac_cv_c_const = no; then
7333
7334cat >>confdefs.h <<\_ACEOF
7335#define const
7336_ACEOF
7337
7338fi
7339
7340{ echo "$as_me:$LINENO: checking for inline" >&5
7341echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7342if test "${ac_cv_c_inline+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7344else
7345 ac_cv_c_inline=no
7346for ac_kw in inline __inline__ __inline; do
7347 cat >conftest.$ac_ext <<_ACEOF
7348/* confdefs.h. */
7349_ACEOF
7350cat confdefs.h >>conftest.$ac_ext
7351cat >>conftest.$ac_ext <<_ACEOF
7352/* end confdefs.h. */
7353#ifndef __cplusplus
7354typedef int foo_t;
7355static $ac_kw foo_t static_foo () {return 0; }
7356$ac_kw foo_t foo () {return 0; }
7357#endif
7358
7359_ACEOF
7360rm -f conftest.$ac_objext
7361if { (ac_try="$ac_compile"
7362case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365esac
7366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_compile") 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } && {
7374 test -z "$ac_cxx_werror_flag" ||
7375 test ! -s conftest.err
7376 } && test -s conftest.$ac_objext; then
7377 ac_cv_c_inline=$ac_kw
7378else
7379 echo "$as_me: failed program was:" >&5
7380sed 's/^/| /' conftest.$ac_ext >&5
7381
7382
7383fi
7384
7385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 test "$ac_cv_c_inline" != no && break
7387done
7388
7389fi
7390{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7391echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7392
7393
7394case $ac_cv_c_inline in
7395 inline | yes) ;;
7396 *)
7397 case $ac_cv_c_inline in
7398 no) ac_val=;;
7399 *) ac_val=$ac_cv_c_inline;;
7400 esac
7401 cat >>confdefs.h <<_ACEOF
7402#ifndef __cplusplus
7403#define inline $ac_val
7404#endif
7405_ACEOF
7406 ;;
7407esac
7408
7409
7410 7944
7411{ echo "$as_me:$LINENO: checking for mode_t" >&5 7945{ echo "$as_me:$LINENO: checking for mode_t" >&5
7412echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7946echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7413if test "${ac_cv_type_mode_t+set}" = set; then 7947if test "${ac_cv_type_mode_t+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6 7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7571_ACEOF 8105_ACEOF
7572 8106
7573fi 8107fi
7574 8108
7575 8109
7576{ echo "$as_me:$LINENO: checking for short" >&5 8110 { echo "$as_me:$LINENO: checking for int16_t" >&5
7577echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8111echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7578if test "${ac_cv_type_short+set}" = set; then 8112if test "${ac_cv_c_int16_t+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6 8113 echo $ECHO_N "(cached) $ECHO_C" >&6
7580else 8114else
8115 ac_cv_c_int16_t=no
8116 for ac_type in 'int16_t' 'int' 'long int' \
8117 'long long int' 'short int' 'signed char'; do
7581 cat >conftest.$ac_ext <<_ACEOF 8118 cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h. */ 8119/* confdefs.h. */
7583_ACEOF 8120_ACEOF
7584cat confdefs.h >>conftest.$ac_ext 8121cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF 8122cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h. */ 8123/* end confdefs.h. */
7587$ac_includes_default 8124$ac_includes_default
7588typedef short ac__type_new_;
7589int 8125int
7590main () 8126main ()
7591{ 8127{
7592if ((ac__type_new_ *) 0) 8128static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7593 return 0; 8129test_array [0] = 0
7594if (sizeof (ac__type_new_)) 8130
7595 return 0;
7596 ; 8131 ;
7597 return 0; 8132 return 0;
7598} 8133}
7599_ACEOF 8134_ACEOF
7600rm -f conftest.$ac_objext 8135rm -f conftest.$ac_objext
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && { 8148 (exit $ac_status); } && {
7614 test -z "$ac_cxx_werror_flag" || 8149 test -z "$ac_cxx_werror_flag" ||
7615 test ! -s conftest.err 8150 test ! -s conftest.err
7616 } && test -s conftest.$ac_objext; then 8151 } && test -s conftest.$ac_objext; then
7617 ac_cv_type_short=yes
7618else
7619 echo "$as_me: failed program was:" >&5
7620sed 's/^/| /' conftest.$ac_ext >&5
7621
7622 ac_cv_type_short=no
7623fi
7624
7625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626fi
7627{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7628echo "${ECHO_T}$ac_cv_type_short" >&6; }
7629
7630# The cast to long int works around a bug in the HP C Compiler
7631# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7632# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7633# This bug is HP SR number 8606223364.
7634{ echo "$as_me:$LINENO: checking size of short" >&5
7635echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7636if test "${ac_cv_sizeof_short+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7638else
7639 if test "$cross_compiling" = yes; then
7640 # Depending upon the size, compute the lo and hi bounds.
7641cat >conftest.$ac_ext <<_ACEOF 8152 cat >conftest.$ac_ext <<_ACEOF
7642/* confdefs.h. */ 8153/* confdefs.h. */
7643_ACEOF 8154_ACEOF
7644cat confdefs.h >>conftest.$ac_ext 8155cat confdefs.h >>conftest.$ac_ext
7645cat >>conftest.$ac_ext <<_ACEOF 8156cat >>conftest.$ac_ext <<_ACEOF
7646/* end confdefs.h. */ 8157/* end confdefs.h. */
7647$ac_includes_default 8158$ac_includes_default
7648 typedef short ac__type_sizeof_;
7649int 8159int
7650main () 8160main ()
7651{ 8161{
7652static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8162static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8163 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
7653test_array [0] = 0 8164test_array [0] = 0
7654 8165
7655 ; 8166 ;
7656 return 0; 8167 return 0;
7657} 8168}
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && { 8183 (exit $ac_status); } && {
7673 test -z "$ac_cxx_werror_flag" || 8184 test -z "$ac_cxx_werror_flag" ||
7674 test ! -s conftest.err 8185 test ! -s conftest.err
7675 } && test -s conftest.$ac_objext; then 8186 } && test -s conftest.$ac_objext; then
7676 ac_lo=0 ac_mid=0 8187 :
7677 while :; do 8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 case $ac_type in
8193 int16_t) ac_cv_c_int16_t=yes ;;
8194 *) ac_cv_c_int16_t=$ac_type ;;
8195esac
8196
8197fi
8198
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204
8205fi
8206
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 test "$ac_cv_c_int16_t" != no && break
8209 done
8210fi
8211{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8212echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8213 case $ac_cv_c_int16_t in #(
8214 no|yes) ;; #(
8215 *)
8216
8217cat >>confdefs.h <<_ACEOF
8218#define int16_t $ac_cv_c_int16_t
8219_ACEOF
8220;;
8221 esac
8222
8223
8224 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8225echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8226if test "${ac_cv_c_uint16_t+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_cv_c_uint16_t=no
8230 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8231 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7678 cat >conftest.$ac_ext <<_ACEOF 8232 cat >conftest.$ac_ext <<_ACEOF
7679/* confdefs.h. */ 8233/* confdefs.h. */
7680_ACEOF 8234_ACEOF
7681cat confdefs.h >>conftest.$ac_ext 8235cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF 8236cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h. */ 8237/* end confdefs.h. */
7684$ac_includes_default 8238$ac_includes_default
7685 typedef short ac__type_sizeof_;
7686int 8239int
7687main () 8240main ()
7688{ 8241{
7689static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8242static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7690test_array [0] = 0 8243test_array [0] = 0
7691 8244
7692 ; 8245 ;
7693 return 0; 8246 return 0;
7694} 8247}
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && { 8262 (exit $ac_status); } && {
7710 test -z "$ac_cxx_werror_flag" || 8263 test -z "$ac_cxx_werror_flag" ||
7711 test ! -s conftest.err 8264 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then 8265 } && test -s conftest.$ac_objext; then
7713 ac_hi=$ac_mid; break 8266 case $ac_type in
8267 uint16_t) ac_cv_c_uint16_t=yes ;;
8268 *) ac_cv_c_uint16_t=$ac_type ;;
8269esac
8270
7714else 8271else
7715 echo "$as_me: failed program was:" >&5 8272 echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5 8273sed 's/^/| /' conftest.$ac_ext >&5
7717 8274
7718 ac_lo=`expr $ac_mid + 1` 8275
7719 if test $ac_lo -le $ac_mid; then
7720 ac_lo= ac_hi=
7721 break
7722 fi
7723 ac_mid=`expr 2 '*' $ac_mid + 1`
7724fi 8276fi
7725 8277
7726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 test "$ac_cv_c_uint16_t" != no && break
7727 done 8280 done
7728else 8281fi
7729 echo "$as_me: failed program was:" >&5 8282{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5 8283echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8284 case $ac_cv_c_uint16_t in #(
8285 no|yes) ;; #(
8286 *)
7731 8287
8288
8289cat >>confdefs.h <<_ACEOF
8290#define uint16_t $ac_cv_c_uint16_t
8291_ACEOF
8292;;
8293 esac
8294
8295
8296 { echo "$as_me:$LINENO: checking for int32_t" >&5
8297echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8298if test "${ac_cv_c_int32_t+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 ac_cv_c_int32_t=no
8302 for ac_type in 'int32_t' 'int' 'long int' \
8303 'long long int' 'short int' 'signed char'; do
7732 cat >conftest.$ac_ext <<_ACEOF 8304 cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h. */ 8305/* confdefs.h. */
7734_ACEOF 8306_ACEOF
7735cat confdefs.h >>conftest.$ac_ext 8307cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF 8308cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */ 8309/* end confdefs.h. */
7738$ac_includes_default 8310$ac_includes_default
7739 typedef short ac__type_sizeof_;
7740int 8311int
7741main () 8312main ()
7742{ 8313{
7743static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8314static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7744test_array [0] = 0 8315test_array [0] = 0
7745 8316
7746 ; 8317 ;
7747 return 0; 8318 return 0;
7748} 8319}
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && { 8334 (exit $ac_status); } && {
7764 test -z "$ac_cxx_werror_flag" || 8335 test -z "$ac_cxx_werror_flag" ||
7765 test ! -s conftest.err 8336 test ! -s conftest.err
7766 } && test -s conftest.$ac_objext; then 8337 } && test -s conftest.$ac_objext; then
7767 ac_hi=-1 ac_mid=-1
7768 while :; do
7769 cat >conftest.$ac_ext <<_ACEOF 8338 cat >conftest.$ac_ext <<_ACEOF
7770/* confdefs.h. */ 8339/* confdefs.h. */
7771_ACEOF 8340_ACEOF
7772cat confdefs.h >>conftest.$ac_ext 8341cat confdefs.h >>conftest.$ac_ext
7773cat >>conftest.$ac_ext <<_ACEOF 8342cat >>conftest.$ac_ext <<_ACEOF
7774/* end confdefs.h. */ 8343/* end confdefs.h. */
7775$ac_includes_default 8344$ac_includes_default
7776 typedef short ac__type_sizeof_;
7777int 8345int
7778main () 8346main ()
7779{ 8347{
7780static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8348static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8349 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7781test_array [0] = 0 8350test_array [0] = 0
7782 8351
7783 ; 8352 ;
7784 return 0; 8353 return 0;
7785} 8354}
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } && { 8369 (exit $ac_status); } && {
7801 test -z "$ac_cxx_werror_flag" || 8370 test -z "$ac_cxx_werror_flag" ||
7802 test ! -s conftest.err 8371 test ! -s conftest.err
7803 } && test -s conftest.$ac_objext; then 8372 } && test -s conftest.$ac_objext; then
7804 ac_lo=$ac_mid; break 8373 :
7805else 8374else
7806 echo "$as_me: failed program was:" >&5 8375 echo "$as_me: failed program was:" >&5
7807sed 's/^/| /' conftest.$ac_ext >&5 8376sed 's/^/| /' conftest.$ac_ext >&5
7808 8377
7809 ac_hi=`expr '(' $ac_mid ')' - 1` 8378 case $ac_type in
7810 if test $ac_mid -le $ac_hi; then 8379 int32_t) ac_cv_c_int32_t=yes ;;
7811 ac_lo= ac_hi= 8380 *) ac_cv_c_int32_t=$ac_type ;;
7812 break 8381esac
7813 fi 8382
7814 ac_mid=`expr 2 '*' $ac_mid`
7815fi 8383fi
7816 8384
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 done
7819else 8386else
7820 echo "$as_me: failed program was:" >&5 8387 echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5 8388sed 's/^/| /' conftest.$ac_ext >&5
7822 8389
7823 ac_lo= ac_hi= 8390
7824fi 8391fi
7825 8392
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 test "$ac_cv_c_int32_t" != no && break
8395 done
7827fi 8396fi
8397{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8398echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8399 case $ac_cv_c_int32_t in #(
8400 no|yes) ;; #(
8401 *)
7828 8402
7829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403cat >>confdefs.h <<_ACEOF
7830# Binary search between lo and hi bounds. 8404#define int32_t $ac_cv_c_int32_t
7831while test "x$ac_lo" != "x$ac_hi"; do 8405_ACEOF
7832 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8406;;
8407 esac
8408
8409
8410 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8411echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8412if test "${ac_cv_c_uint32_t+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_cv_c_uint32_t=no
8416 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7833 cat >conftest.$ac_ext <<_ACEOF 8418 cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h. */ 8419/* confdefs.h. */
7835_ACEOF 8420_ACEOF
7836cat confdefs.h >>conftest.$ac_ext 8421cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF 8422cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */ 8423/* end confdefs.h. */
7839$ac_includes_default 8424$ac_includes_default
7840 typedef short ac__type_sizeof_;
7841int 8425int
7842main () 8426main ()
7843{ 8427{
7844static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8428static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7845test_array [0] = 0 8429test_array [0] = 0
7846 8430
7847 ; 8431 ;
7848 return 0; 8432 return 0;
7849} 8433}
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && { 8448 (exit $ac_status); } && {
7865 test -z "$ac_cxx_werror_flag" || 8449 test -z "$ac_cxx_werror_flag" ||
7866 test ! -s conftest.err 8450 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then 8451 } && test -s conftest.$ac_objext; then
7868 ac_hi=$ac_mid 8452 case $ac_type in
8453 uint32_t) ac_cv_c_uint32_t=yes ;;
8454 *) ac_cv_c_uint32_t=$ac_type ;;
8455esac
8456
7869else 8457else
7870 echo "$as_me: failed program was:" >&5 8458 echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5 8459sed 's/^/| /' conftest.$ac_ext >&5
7872 8460
7873 ac_lo=`expr '(' $ac_mid ')' + 1` 8461
7874fi 8462fi
7875 8463
7876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877done 8465 test "$ac_cv_c_uint32_t" != no && break
7878case $ac_lo in 8466 done
7879?*) ac_cv_sizeof_short=$ac_lo;;
7880'') if test "$ac_cv_type_short" = yes; then
7881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7882See \`config.log' for more details." >&5
7883echo "$as_me: error: cannot compute sizeof (short)
7884See \`config.log' for more details." >&2;}
7885 { (exit 77); exit 77; }; }
7886 else
7887 ac_cv_sizeof_short=0
7888 fi ;;
7889esac
7890else
7891 cat >conftest.$ac_ext <<_ACEOF
7892/* confdefs.h. */
7893_ACEOF
7894cat confdefs.h >>conftest.$ac_ext
7895cat >>conftest.$ac_ext <<_ACEOF
7896/* end confdefs.h. */
7897$ac_includes_default
7898 typedef short ac__type_sizeof_;
7899static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7900static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7901#include <stdio.h>
7902#include <stdlib.h>
7903int
7904main ()
7905{
7906
7907 FILE *f = fopen ("conftest.val", "w");
7908 if (! f)
7909 return 1;
7910 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7911 {
7912 long int i = longval ();
7913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7914 return 1;
7915 fprintf (f, "%ld\n", i);
7916 }
7917 else
7918 {
7919 unsigned long int i = ulongval ();
7920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7921 return 1;
7922 fprintf (f, "%lu\n", i);
7923 }
7924 return ferror (f) || fclose (f) != 0;
7925
7926 ;
7927 return 0;
7928}
7929_ACEOF
7930rm -f conftest$ac_exeext
7931if { (ac_try="$ac_link"
7932case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935esac
7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_link") 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7941 { (case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944esac
7945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_try") 2>&5
7947 ac_status=$?
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); }; }; then
7950 ac_cv_sizeof_short=`cat conftest.val`
7951else
7952 echo "$as_me: program exited with status $ac_status" >&5
7953echo "$as_me: failed program was:" >&5
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7956( exit $ac_status )
7957if test "$ac_cv_type_short" = yes; then
7958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7959See \`config.log' for more details." >&5
7960echo "$as_me: error: cannot compute sizeof (short)
7961See \`config.log' for more details." >&2;}
7962 { (exit 77); exit 77; }; }
7963 else
7964 ac_cv_sizeof_short=0
7965 fi
7966fi 8467fi
7967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7968fi
7969rm -f conftest.val
7970fi
7971{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8468{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7972echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8469echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8470 case $ac_cv_c_uint32_t in #(
8471 no|yes) ;; #(
8472 *)
7973 8473
8474cat >>confdefs.h <<\_ACEOF
8475#define _UINT32_T 1
8476_ACEOF
7974 8477
7975 8478
7976cat >>confdefs.h <<_ACEOF 8479cat >>confdefs.h <<_ACEOF
7977#define SIZEOF_SHORT $ac_cv_sizeof_short 8480#define uint32_t $ac_cv_c_uint32_t
7978_ACEOF 8481_ACEOF
7979 8482;;
7980
7981{ echo "$as_me:$LINENO: checking for int" >&5
7982echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7983if test "${ac_cv_type_int+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986 cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
7992$ac_includes_default
7993typedef int ac__type_new_;
7994int
7995main ()
7996{
7997if ((ac__type_new_ *) 0)
7998 return 0;
7999if (sizeof (ac__type_new_))
8000 return 0;
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext
8006if { (ac_try="$ac_compile"
8007case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010esac 8483 esac
8011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_compile") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_cxx_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest.$ac_objext; then
8022 ac_cv_type_int=yes
8023else
8024 echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026 8484
8027 ac_cv_type_int=no
8028fi
8029 8485
8030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031fi
8032{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8033echo "${ECHO_T}$ac_cv_type_int" >&6; }
8034 8486
8035# The cast to long int works around a bug in the HP C Compiler
8036# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8037# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8038# This bug is HP SR number 8606223364.
8039{ echo "$as_me:$LINENO: checking size of int" >&5
8040echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8041if test "${ac_cv_sizeof_int+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043else
8044 if test "$cross_compiling" = yes; then
8045 # Depending upon the size, compute the lo and hi bounds.
8046cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h. */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h. */
8052$ac_includes_default
8053 typedef int ac__type_sizeof_;
8054int
8055main ()
8056{
8057static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8058test_array [0] = 0
8059
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext
8065if { (ac_try="$ac_compile"
8066case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069esac
8070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_cxx_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.$ac_objext; then
8081 ac_lo=0 ac_mid=0
8082 while :; do
8083 cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h. */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h. */
8089$ac_includes_default
8090 typedef int ac__type_sizeof_;
8091int
8092main ()
8093{
8094static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8095test_array [0] = 0
8096
8097 ;
8098 return 0;
8099}
8100_ACEOF
8101rm -f conftest.$ac_objext
8102if { (ac_try="$ac_compile"
8103case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106esac
8107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_compile") 2>conftest.er1
8109 ac_status=$?
8110 grep -v '^ *+' conftest.er1 >conftest.err
8111 rm -f conftest.er1
8112 cat conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && {
8115 test -z "$ac_cxx_werror_flag" ||
8116 test ! -s conftest.err
8117 } && test -s conftest.$ac_objext; then
8118 ac_hi=$ac_mid; break
8119else
8120 echo "$as_me: failed program was:" >&5
8121sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 ac_lo=`expr $ac_mid + 1`
8124 if test $ac_lo -le $ac_mid; then
8125 ac_lo= ac_hi=
8126 break
8127 fi
8128 ac_mid=`expr 2 '*' $ac_mid + 1`
8129fi
8130
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 done
8133else
8134 echo "$as_me: failed program was:" >&5
8135sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143$ac_includes_default
8144 typedef int ac__type_sizeof_;
8145int
8146main ()
8147{
8148static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8149test_array [0] = 0
8150
8151 ;
8152 return 0;
8153}
8154_ACEOF
8155rm -f conftest.$ac_objext
8156if { (ac_try="$ac_compile"
8157case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160esac
8161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_compile") 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } && {
8169 test -z "$ac_cxx_werror_flag" ||
8170 test ! -s conftest.err
8171 } && test -s conftest.$ac_objext; then
8172 ac_hi=-1 ac_mid=-1
8173 while :; do
8174 cat >conftest.$ac_ext <<_ACEOF
8175/* confdefs.h. */
8176_ACEOF
8177cat confdefs.h >>conftest.$ac_ext
8178cat >>conftest.$ac_ext <<_ACEOF
8179/* end confdefs.h. */
8180$ac_includes_default
8181 typedef int ac__type_sizeof_;
8182int
8183main ()
8184{
8185static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8186test_array [0] = 0
8187
8188 ;
8189 return 0;
8190}
8191_ACEOF
8192rm -f conftest.$ac_objext
8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_cxx_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
8209 ac_lo=$ac_mid; break
8210else
8211 echo "$as_me: failed program was:" >&5
8212sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 ac_hi=`expr '(' $ac_mid ')' - 1`
8215 if test $ac_mid -le $ac_hi; then
8216 ac_lo= ac_hi=
8217 break
8218 fi
8219 ac_mid=`expr 2 '*' $ac_mid`
8220fi
8221
8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 done
8224else
8225 echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_lo= ac_hi=
8229fi
8230
8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232fi
8233
8234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235# Binary search between lo and hi bounds.
8236while test "x$ac_lo" != "x$ac_hi"; do
8237 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8238 cat >conftest.$ac_ext <<_ACEOF
8239/* confdefs.h. */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
8243/* end confdefs.h. */
8244$ac_includes_default
8245 typedef int ac__type_sizeof_;
8246int
8247main ()
8248{
8249static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8250test_array [0] = 0
8251
8252 ;
8253 return 0;
8254}
8255_ACEOF
8256rm -f conftest.$ac_objext
8257if { (ac_try="$ac_compile"
8258case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8261esac
8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_compile") 2>conftest.er1
8264 ac_status=$?
8265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } && {
8270 test -z "$ac_cxx_werror_flag" ||
8271 test ! -s conftest.err
8272 } && test -s conftest.$ac_objext; then
8273 ac_hi=$ac_mid
8274else
8275 echo "$as_me: failed program was:" >&5
8276sed 's/^/| /' conftest.$ac_ext >&5
8277
8278 ac_lo=`expr '(' $ac_mid ')' + 1`
8279fi
8280
8281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282done
8283case $ac_lo in
8284?*) ac_cv_sizeof_int=$ac_lo;;
8285'') if test "$ac_cv_type_int" = yes; then
8286 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8287See \`config.log' for more details." >&5
8288echo "$as_me: error: cannot compute sizeof (int)
8289See \`config.log' for more details." >&2;}
8290 { (exit 77); exit 77; }; }
8291 else
8292 ac_cv_sizeof_int=0
8293 fi ;;
8294esac
8295else
8296 cat >conftest.$ac_ext <<_ACEOF
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302$ac_includes_default
8303 typedef int ac__type_sizeof_;
8304static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8305static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8306#include <stdio.h>
8307#include <stdlib.h>
8308int
8309main ()
8310{
8311
8312 FILE *f = fopen ("conftest.val", "w");
8313 if (! f)
8314 return 1;
8315 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8316 {
8317 long int i = longval ();
8318 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8319 return 1;
8320 fprintf (f, "%ld\n", i);
8321 }
8322 else
8323 {
8324 unsigned long int i = ulongval ();
8325 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8326 return 1;
8327 fprintf (f, "%lu\n", i);
8328 }
8329 return ferror (f) || fclose (f) != 0;
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest$ac_exeext
8336if { (ac_try="$ac_link"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_link") 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8346 { (case "(($ac_try" in
8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8349esac
8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_try") 2>&5
8352 ac_status=$?
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); }; }; then
8355 ac_cv_sizeof_int=`cat conftest.val`
8356else
8357 echo "$as_me: program exited with status $ac_status" >&5
8358echo "$as_me: failed program was:" >&5
8359sed 's/^/| /' conftest.$ac_ext >&5
8360
8361( exit $ac_status )
8362if test "$ac_cv_type_int" = yes; then
8363 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8364See \`config.log' for more details." >&5
8365echo "$as_me: error: cannot compute sizeof (int)
8366See \`config.log' for more details." >&2;}
8367 { (exit 77); exit 77; }; }
8368 else
8369 ac_cv_sizeof_int=0
8370 fi
8371fi
8372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8373fi
8374rm -f conftest.val
8375fi
8376{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8377echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8378
8379
8380
8381cat >>confdefs.h <<_ACEOF
8382#define SIZEOF_INT $ac_cv_sizeof_int
8383_ACEOF
8384
8385
8386{ echo "$as_me:$LINENO: checking for long long" >&5
8387echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8388if test "${ac_cv_type_long_long+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391 cat >conftest.$ac_ext <<_ACEOF
8392/* confdefs.h. */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */
8397$ac_includes_default
8398typedef long long ac__type_new_;
8399int
8400main ()
8401{
8402if ((ac__type_new_ *) 0)
8403 return 0;
8404if (sizeof (ac__type_new_))
8405 return 0;
8406 ;
8407 return 0;
8408}
8409_ACEOF
8410rm -f conftest.$ac_objext
8411if { (ac_try="$ac_compile"
8412case "(($ac_try" in
8413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8414 *) ac_try_echo=$ac_try;;
8415esac
8416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8417 (eval "$ac_compile") 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && {
8424 test -z "$ac_cxx_werror_flag" ||
8425 test ! -s conftest.err
8426 } && test -s conftest.$ac_objext; then
8427 ac_cv_type_long_long=yes
8428else
8429 echo "$as_me: failed program was:" >&5
8430sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_cv_type_long_long=no
8433fi
8434
8435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8436fi
8437{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8438echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8439
8440# The cast to long int works around a bug in the HP C Compiler
8441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8443# This bug is HP SR number 8606223364.
8444{ echo "$as_me:$LINENO: checking size of long long" >&5
8445echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8446if test "${ac_cv_sizeof_long_long+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449 if test "$cross_compiling" = yes; then
8450 # Depending upon the size, compute the lo and hi bounds.
8451cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
8457$ac_includes_default
8458 typedef long long ac__type_sizeof_;
8459int
8460main ()
8461{
8462static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8463test_array [0] = 0
8464
8465 ;
8466 return 0;
8467}
8468_ACEOF
8469rm -f conftest.$ac_objext
8470if { (ac_try="$ac_compile"
8471case "(($ac_try" in
8472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8474esac
8475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compile") 2>conftest.er1
8477 ac_status=$?
8478 grep -v '^ *+' conftest.er1 >conftest.err
8479 rm -f conftest.er1
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_cxx_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest.$ac_objext; then
8486 ac_lo=0 ac_mid=0
8487 while :; do
8488 cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494$ac_includes_default
8495 typedef long long ac__type_sizeof_;
8496int
8497main ()
8498{
8499static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8500test_array [0] = 0
8501
8502 ;
8503 return 0;
8504}
8505_ACEOF
8506rm -f conftest.$ac_objext
8507if { (ac_try="$ac_compile"
8508case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511esac
8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_cxx_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8523 ac_hi=$ac_mid; break
8524else
8525 echo "$as_me: failed program was:" >&5
8526sed 's/^/| /' conftest.$ac_ext >&5
8527
8528 ac_lo=`expr $ac_mid + 1`
8529 if test $ac_lo -le $ac_mid; then
8530 ac_lo= ac_hi=
8531 break
8532 fi
8533 ac_mid=`expr 2 '*' $ac_mid + 1`
8534fi
8535
8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 done
8538else
8539 echo "$as_me: failed program was:" >&5
8540sed 's/^/| /' conftest.$ac_ext >&5
8541
8542 cat >conftest.$ac_ext <<_ACEOF
8543/* confdefs.h. */
8544_ACEOF
8545cat confdefs.h >>conftest.$ac_ext
8546cat >>conftest.$ac_ext <<_ACEOF
8547/* end confdefs.h. */
8548$ac_includes_default
8549 typedef long long ac__type_sizeof_;
8550int
8551main ()
8552{
8553static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8554test_array [0] = 0
8555
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560rm -f conftest.$ac_objext
8561if { (ac_try="$ac_compile"
8562case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565esac
8566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_compile") 2>conftest.er1
8568 ac_status=$?
8569 grep -v '^ *+' conftest.er1 >conftest.err
8570 rm -f conftest.er1
8571 cat conftest.err >&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } && {
8574 test -z "$ac_cxx_werror_flag" ||
8575 test ! -s conftest.err
8576 } && test -s conftest.$ac_objext; then
8577 ac_hi=-1 ac_mid=-1
8578 while :; do
8579 cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h. */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h. */
8585$ac_includes_default
8586 typedef long long ac__type_sizeof_;
8587int
8588main ()
8589{
8590static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8591test_array [0] = 0
8592
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest.$ac_objext
8598if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_cxx_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest.$ac_objext; then
8614 ac_lo=$ac_mid; break
8615else
8616 echo "$as_me: failed program was:" >&5
8617sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 ac_hi=`expr '(' $ac_mid ')' - 1`
8620 if test $ac_mid -le $ac_hi; then
8621 ac_lo= ac_hi=
8622 break
8623 fi
8624 ac_mid=`expr 2 '*' $ac_mid`
8625fi
8626
8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 done
8629else
8630 echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 ac_lo= ac_hi=
8634fi
8635
8636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637fi
8638
8639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640# Binary search between lo and hi bounds.
8641while test "x$ac_lo" != "x$ac_hi"; do
8642 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8643 cat >conftest.$ac_ext <<_ACEOF
8644/* confdefs.h. */
8645_ACEOF
8646cat confdefs.h >>conftest.$ac_ext
8647cat >>conftest.$ac_ext <<_ACEOF
8648/* end confdefs.h. */
8649$ac_includes_default
8650 typedef long long ac__type_sizeof_;
8651int
8652main ()
8653{
8654static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8655test_array [0] = 0
8656
8657 ;
8658 return 0;
8659}
8660_ACEOF
8661rm -f conftest.$ac_objext
8662if { (ac_try="$ac_compile"
8663case "(($ac_try" in
8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8665 *) ac_try_echo=$ac_try;;
8666esac
8667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_cxx_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_hi=$ac_mid
8679else
8680 echo "$as_me: failed program was:" >&5
8681sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_lo=`expr '(' $ac_mid ')' + 1`
8684fi
8685
8686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8687done
8688case $ac_lo in
8689?*) ac_cv_sizeof_long_long=$ac_lo;;
8690'') if test "$ac_cv_type_long_long" = yes; then
8691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8692See \`config.log' for more details." >&5
8693echo "$as_me: error: cannot compute sizeof (long long)
8694See \`config.log' for more details." >&2;}
8695 { (exit 77); exit 77; }; }
8696 else
8697 ac_cv_sizeof_long_long=0
8698 fi ;;
8699esac
8700else
8701 cat >conftest.$ac_ext <<_ACEOF
8702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
8707$ac_includes_default
8708 typedef long long ac__type_sizeof_;
8709static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8710static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8711#include <stdio.h>
8712#include <stdlib.h>
8713int
8714main ()
8715{
8716
8717 FILE *f = fopen ("conftest.val", "w");
8718 if (! f)
8719 return 1;
8720 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8721 {
8722 long int i = longval ();
8723 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8724 return 1;
8725 fprintf (f, "%ld\n", i);
8726 }
8727 else
8728 {
8729 unsigned long int i = ulongval ();
8730 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8731 return 1;
8732 fprintf (f, "%lu\n", i);
8733 }
8734 return ferror (f) || fclose (f) != 0;
8735
8736 ;
8737 return 0;
8738}
8739_ACEOF
8740rm -f conftest$ac_exeext
8741if { (ac_try="$ac_link"
8742case "(($ac_try" in
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8745esac
8746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_link") 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8751 { (case "(($ac_try" in
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8754esac
8755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756 (eval "$ac_try") 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_sizeof_long_long=`cat conftest.val`
8761else
8762 echo "$as_me: program exited with status $ac_status" >&5
8763echo "$as_me: failed program was:" >&5
8764sed 's/^/| /' conftest.$ac_ext >&5
8765
8766( exit $ac_status )
8767if test "$ac_cv_type_long_long" = yes; then
8768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8769See \`config.log' for more details." >&5
8770echo "$as_me: error: cannot compute sizeof (long long)
8771See \`config.log' for more details." >&2;}
8772 { (exit 77); exit 77; }; }
8773 else
8774 ac_cv_sizeof_long_long=0
8775 fi
8776fi
8777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8778fi
8779rm -f conftest.val
8780fi
8781{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8782echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8783
8784
8785
8786cat >>confdefs.h <<_ACEOF
8787#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8788_ACEOF
8789
8790
8791{ echo "$as_me:$LINENO: checking for int *" >&5
8792echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
8793if test "${ac_cv_type_int_p+set}" = set; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
8796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802$ac_includes_default
8803typedef int * ac__type_new_;
8804int
8805main ()
8806{
8807if ((ac__type_new_ *) 0)
8808 return 0;
8809if (sizeof (ac__type_new_))
8810 return 0;
8811 ;
8812 return 0;
8813}
8814_ACEOF
8815rm -f conftest.$ac_objext
8816if { (ac_try="$ac_compile"
8817case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820esac
8821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_compile") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && {
8829 test -z "$ac_cxx_werror_flag" ||
8830 test ! -s conftest.err
8831 } && test -s conftest.$ac_objext; then
8832 ac_cv_type_int_p=yes
8833else
8834 echo "$as_me: failed program was:" >&5
8835sed 's/^/| /' conftest.$ac_ext >&5
8836
8837 ac_cv_type_int_p=no
8838fi
8839
8840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8841fi
8842{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8843echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
8844
8845# The cast to long int works around a bug in the HP C Compiler
8846# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8847# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8848# This bug is HP SR number 8606223364.
8849{ echo "$as_me:$LINENO: checking size of int *" >&5
8850echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
8851if test "${ac_cv_sizeof_int_p+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854 if test "$cross_compiling" = yes; then
8855 # Depending upon the size, compute the lo and hi bounds.
8856cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862$ac_includes_default
8863 typedef int * ac__type_sizeof_;
8864int
8865main ()
8866{
8867static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8868test_array [0] = 0
8869
8870 ;
8871 return 0;
8872}
8873_ACEOF
8874rm -f conftest.$ac_objext
8875if { (ac_try="$ac_compile"
8876case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879esac
8880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_compile") 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } && {
8888 test -z "$ac_cxx_werror_flag" ||
8889 test ! -s conftest.err
8890 } && test -s conftest.$ac_objext; then
8891 ac_lo=0 ac_mid=0
8892 while :; do
8893 cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h. */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h. */
8899$ac_includes_default
8900 typedef int * ac__type_sizeof_;
8901int
8902main ()
8903{
8904static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8905test_array [0] = 0
8906
8907 ;
8908 return 0;
8909}
8910_ACEOF
8911rm -f conftest.$ac_objext
8912if { (ac_try="$ac_compile"
8913case "(($ac_try" in
8914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915 *) ac_try_echo=$ac_try;;
8916esac
8917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918 (eval "$ac_compile") 2>conftest.er1
8919 ac_status=$?
8920 grep -v '^ *+' conftest.er1 >conftest.err
8921 rm -f conftest.er1
8922 cat conftest.err >&5
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); } && {
8925 test -z "$ac_cxx_werror_flag" ||
8926 test ! -s conftest.err
8927 } && test -s conftest.$ac_objext; then
8928 ac_hi=$ac_mid; break
8929else
8930 echo "$as_me: failed program was:" >&5
8931sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ac_lo=`expr $ac_mid + 1`
8934 if test $ac_lo -le $ac_mid; then
8935 ac_lo= ac_hi=
8936 break
8937 fi
8938 ac_mid=`expr 2 '*' $ac_mid + 1`
8939fi
8940
8941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8942 done
8943else
8944 echo "$as_me: failed program was:" >&5
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
8947 cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h. */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h. */
8953$ac_includes_default
8954 typedef int * ac__type_sizeof_;
8955int
8956main ()
8957{
8958static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8959test_array [0] = 0
8960
8961 ;
8962 return 0;
8963}
8964_ACEOF
8965rm -f conftest.$ac_objext
8966if { (ac_try="$ac_compile"
8967case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970esac
8971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_compile") 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && {
8979 test -z "$ac_cxx_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest.$ac_objext; then
8982 ac_hi=-1 ac_mid=-1
8983 while :; do
8984 cat >conftest.$ac_ext <<_ACEOF
8985/* confdefs.h. */
8986_ACEOF
8987cat confdefs.h >>conftest.$ac_ext
8988cat >>conftest.$ac_ext <<_ACEOF
8989/* end confdefs.h. */
8990$ac_includes_default
8991 typedef int * ac__type_sizeof_;
8992int
8993main ()
8994{
8995static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8996test_array [0] = 0
8997
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002rm -f conftest.$ac_objext
9003if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
9010 ac_status=$?
9011 grep -v '^ *+' conftest.er1 >conftest.err
9012 rm -f conftest.er1
9013 cat conftest.err >&5
9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015 (exit $ac_status); } && {
9016 test -z "$ac_cxx_werror_flag" ||
9017 test ! -s conftest.err
9018 } && test -s conftest.$ac_objext; then
9019 ac_lo=$ac_mid; break
9020else
9021 echo "$as_me: failed program was:" >&5
9022sed 's/^/| /' conftest.$ac_ext >&5
9023
9024 ac_hi=`expr '(' $ac_mid ')' - 1`
9025 if test $ac_mid -le $ac_hi; then
9026 ac_lo= ac_hi=
9027 break
9028 fi
9029 ac_mid=`expr 2 '*' $ac_mid`
9030fi
9031
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 done
9034else
9035 echo "$as_me: failed program was:" >&5
9036sed 's/^/| /' conftest.$ac_ext >&5
9037
9038 ac_lo= ac_hi=
9039fi
9040
9041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042fi
9043
9044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045# Binary search between lo and hi bounds.
9046while test "x$ac_lo" != "x$ac_hi"; do
9047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9048 cat >conftest.$ac_ext <<_ACEOF
9049/* confdefs.h. */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h. */
9054$ac_includes_default
9055 typedef int * ac__type_sizeof_;
9056int
9057main ()
9058{
9059static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9060test_array [0] = 0
9061
9062 ;
9063 return 0;
9064}
9065_ACEOF
9066rm -f conftest.$ac_objext
9067if { (ac_try="$ac_compile"
9068case "(($ac_try" in
9069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070 *) ac_try_echo=$ac_try;;
9071esac
9072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073 (eval "$ac_compile") 2>conftest.er1
9074 ac_status=$?
9075 grep -v '^ *+' conftest.er1 >conftest.err
9076 rm -f conftest.er1
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } && {
9080 test -z "$ac_cxx_werror_flag" ||
9081 test ! -s conftest.err
9082 } && test -s conftest.$ac_objext; then
9083 ac_hi=$ac_mid
9084else
9085 echo "$as_me: failed program was:" >&5
9086sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 ac_lo=`expr '(' $ac_mid ')' + 1`
9089fi
9090
9091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092done
9093case $ac_lo in
9094?*) ac_cv_sizeof_int_p=$ac_lo;;
9095'') if test "$ac_cv_type_int_p" = yes; then
9096 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9097See \`config.log' for more details." >&5
9098echo "$as_me: error: cannot compute sizeof (int *)
9099See \`config.log' for more details." >&2;}
9100 { (exit 77); exit 77; }; }
9101 else
9102 ac_cv_sizeof_int_p=0
9103 fi ;;
9104esac
9105else
9106 cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112$ac_includes_default
9113 typedef int * ac__type_sizeof_;
9114static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9115static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9116#include <stdio.h>
9117#include <stdlib.h>
9118int
9119main ()
9120{
9121
9122 FILE *f = fopen ("conftest.val", "w");
9123 if (! f)
9124 return 1;
9125 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9126 {
9127 long int i = longval ();
9128 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9129 return 1;
9130 fprintf (f, "%ld\n", i);
9131 }
9132 else
9133 {
9134 unsigned long int i = ulongval ();
9135 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9136 return 1;
9137 fprintf (f, "%lu\n", i);
9138 }
9139 return ferror (f) || fclose (f) != 0;
9140
9141 ;
9142 return 0;
9143}
9144_ACEOF
9145rm -f conftest$ac_exeext
9146if { (ac_try="$ac_link"
9147case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9156 { (case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159esac
9160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9161 (eval "$ac_try") 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_sizeof_int_p=`cat conftest.val`
9166else
9167 echo "$as_me: program exited with status $ac_status" >&5
9168echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171( exit $ac_status )
9172if test "$ac_cv_type_int_p" = yes; then
9173 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9174See \`config.log' for more details." >&5
9175echo "$as_me: error: cannot compute sizeof (int *)
9176See \`config.log' for more details." >&2;}
9177 { (exit 77); exit 77; }; }
9178 else
9179 ac_cv_sizeof_int_p=0
9180 fi
9181fi
9182rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9183fi
9184rm -f conftest.val
9185fi
9186{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9187echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9188
9189
9190
9191cat >>confdefs.h <<_ACEOF
9192#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9193_ACEOF
9194
9195
9196
9197
9198{ echo "$as_me:$LINENO: checking for int16_t" >&5
9199echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9200if test "${rxvt_cv_int16_t+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 cat >conftest.$ac_ext <<_ACEOF
9204/* confdefs.h. */
9205_ACEOF
9206cat confdefs.h >>conftest.$ac_ext
9207cat >>conftest.$ac_ext <<_ACEOF
9208/* end confdefs.h. */
9209#include <stdint.h>
9210int
9211main ()
9212{
9213int16_t dummy;
9214 ;
9215 return 0;
9216}
9217_ACEOF
9218rm -f conftest.$ac_objext
9219if { (ac_try="$ac_compile"
9220case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223esac
9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_compile") 2>conftest.er1
9226 ac_status=$?
9227 grep -v '^ *+' conftest.er1 >conftest.err
9228 rm -f conftest.er1
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_cxx_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest.$ac_objext; then
9235 rxvt_cv_int16_t=yes
9236else
9237 echo "$as_me: failed program was:" >&5
9238sed 's/^/| /' conftest.$ac_ext >&5
9239
9240 if test "$ac_cv_sizeof_char" -ge 2; then
9241 rxvt_cv_int16_t=" char"
9242else
9243 if test "$ac_cv_sizeof_short" -ge 2; then
9244 rxvt_cv_int16_t=" short"
9245 else
9246 if test "$ac_cv_sizeof_int" -ge 2; then
9247 rxvt_cv_int16_t=" int"
9248 else
9249 if test "$ac_cv_sizeof_long" -ge 2; then
9250 rxvt_cv_int16_t=" long"
9251 else
9252 if test "$ac_cv_sizeof_long_long" -ge 2; then
9253 rxvt_cv_int16_t=" long long"
9254 else
9255 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9256 fi
9257 fi
9258 fi
9259 fi
9260fi
9261fi
9262
9263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264fi
9265{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9266echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9267if test x"$rxvt_cv_int16_t" != xyes; then
9268 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9269else
9270 if test x"" = x; then
9271 rxvt_int16_typedef="/* typedef short int16_t; */"
9272 else
9273 rxvt_int16_typedef="/* typedef short int16_t; */"
9274 fi
9275fi
9276
9277{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9278echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9279if test "${rxvt_cv_uint16_t+set}" = set; then
9280 echo $ECHO_N "(cached) $ECHO_C" >&6
9281else
9282 cat >conftest.$ac_ext <<_ACEOF
9283/* confdefs.h. */
9284_ACEOF
9285cat confdefs.h >>conftest.$ac_ext
9286cat >>conftest.$ac_ext <<_ACEOF
9287/* end confdefs.h. */
9288#include <stdint.h>
9289int
9290main ()
9291{
9292uint16_t dummy;
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext
9298if { (ac_try="$ac_compile"
9299case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_compile") 2>conftest.er1
9305 ac_status=$?
9306 grep -v '^ *+' conftest.er1 >conftest.err
9307 rm -f conftest.er1
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_cxx_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest.$ac_objext; then
9314 rxvt_cv_uint16_t=yes
9315else
9316 echo "$as_me: failed program was:" >&5
9317sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 if test "$ac_cv_sizeof_char" -ge 2; then
9320 rxvt_cv_uint16_t="unsigned char"
9321else
9322 if test "$ac_cv_sizeof_short" -ge 2; then
9323 rxvt_cv_uint16_t="unsigned short"
9324 else
9325 if test "$ac_cv_sizeof_int" -ge 2; then
9326 rxvt_cv_uint16_t="unsigned int"
9327 else
9328 if test "$ac_cv_sizeof_long" -ge 2; then
9329 rxvt_cv_uint16_t="unsigned long"
9330 else
9331 if test "$ac_cv_sizeof_long_long" -ge 2; then
9332 rxvt_cv_uint16_t="unsigned long long"
9333 else
9334 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9335 fi
9336 fi
9337 fi
9338 fi
9339fi
9340fi
9341
9342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343fi
9344{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9345echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9346if test x"$rxvt_cv_uint16_t" != xyes; then
9347 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9348else
9349 if test x"unsigned" = x; then
9350 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9351 else
9352 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9353 fi
9354fi
9355
9356{ echo "$as_me:$LINENO: checking for int32_t" >&5
9357echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9358if test "${rxvt_cv_int32_t+set}" = set; then
9359 echo $ECHO_N "(cached) $ECHO_C" >&6
9360else
9361 cat >conftest.$ac_ext <<_ACEOF
9362/* confdefs.h. */
9363_ACEOF
9364cat confdefs.h >>conftest.$ac_ext
9365cat >>conftest.$ac_ext <<_ACEOF
9366/* end confdefs.h. */
9367#include <stdint.h>
9368int
9369main ()
9370{
9371int32_t dummy;
9372 ;
9373 return 0;
9374}
9375_ACEOF
9376rm -f conftest.$ac_objext
9377if { (ac_try="$ac_compile"
9378case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9381esac
9382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_compile") 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } && {
9390 test -z "$ac_cxx_werror_flag" ||
9391 test ! -s conftest.err
9392 } && test -s conftest.$ac_objext; then
9393 rxvt_cv_int32_t=yes
9394else
9395 echo "$as_me: failed program was:" >&5
9396sed 's/^/| /' conftest.$ac_ext >&5
9397
9398 if test "$ac_cv_sizeof_char" -ge 4; then
9399 rxvt_cv_int32_t=" char"
9400else
9401 if test "$ac_cv_sizeof_short" -ge 4; then
9402 rxvt_cv_int32_t=" short"
9403 else
9404 if test "$ac_cv_sizeof_int" -ge 4; then
9405 rxvt_cv_int32_t=" int"
9406 else
9407 if test "$ac_cv_sizeof_long" -ge 4; then
9408 rxvt_cv_int32_t=" long"
9409 else
9410 if test "$ac_cv_sizeof_long_long" -ge 4; then
9411 rxvt_cv_int32_t=" long long"
9412 else
9413 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9414 fi
9415 fi
9416 fi
9417 fi
9418fi
9419fi
9420
9421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9422fi
9423{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9424echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9425if test x"$rxvt_cv_int32_t" != xyes; then
9426 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9427else
9428 if test x"" = x; then
9429 rxvt_int32_typedef="/* typedef int int32_t; */"
9430 else
9431 rxvt_int32_typedef="/* typedef int int32_t; */"
9432 fi
9433fi
9434
9435{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9436echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9437if test "${rxvt_cv_uint32_t+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440 cat >conftest.$ac_ext <<_ACEOF
9441/* confdefs.h. */
9442_ACEOF
9443cat confdefs.h >>conftest.$ac_ext
9444cat >>conftest.$ac_ext <<_ACEOF
9445/* end confdefs.h. */
9446#include <stdint.h>
9447int
9448main ()
9449{
9450uint32_t dummy;
9451 ;
9452 return 0;
9453}
9454_ACEOF
9455rm -f conftest.$ac_objext
9456if { (ac_try="$ac_compile"
9457case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9460esac
9461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_compile") 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } && {
9469 test -z "$ac_cxx_werror_flag" ||
9470 test ! -s conftest.err
9471 } && test -s conftest.$ac_objext; then
9472 rxvt_cv_uint32_t=yes
9473else
9474 echo "$as_me: failed program was:" >&5
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
9477 if test "$ac_cv_sizeof_char" -ge 4; then
9478 rxvt_cv_uint32_t="unsigned char"
9479else
9480 if test "$ac_cv_sizeof_short" -ge 4; then
9481 rxvt_cv_uint32_t="unsigned short"
9482 else
9483 if test "$ac_cv_sizeof_int" -ge 4; then
9484 rxvt_cv_uint32_t="unsigned int"
9485 else
9486 if test "$ac_cv_sizeof_long" -ge 4; then
9487 rxvt_cv_uint32_t="unsigned long"
9488 else
9489 if test "$ac_cv_sizeof_long_long" -ge 4; then
9490 rxvt_cv_uint32_t="unsigned long long"
9491 else
9492 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9493 fi
9494 fi
9495 fi
9496 fi
9497fi
9498fi
9499
9500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501fi
9502{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9503echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9504if test x"$rxvt_cv_uint32_t" != xyes; then
9505 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9506else
9507 if test x"unsigned" = x; then
9508 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9509 else
9510 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9511 fi
9512fi
9513
9514if test "$ac_cv_sizeof_int_p" -eq 8; then
9515 rxvt_intp_define="#define intp_t int64_t"
9516 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9517else
9518 if test "$ac_cv_sizeof_int_p" -eq 4; then
9519 rxvt_intp_define="#define intp_t int32_t"
9520 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9521 else
9522 if test "$ac_cv_sizeof_int_p" -eq 2; then
9523 rxvt_intp_define="#define intp_t int16_t"
9524 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9525 else
9526 rxvt_intp_define="#error set intp_t"
9527 rxvt_u_intp_define="#error set u_intp_t"
9528 fi
9529 fi
9530fi
9531
9532
9533
9534{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9535echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9536if test "${ac_cv_type_signal+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9538else
9539 cat >conftest.$ac_ext <<_ACEOF
9540/* confdefs.h. */
9541_ACEOF
9542cat confdefs.h >>conftest.$ac_ext
9543cat >>conftest.$ac_ext <<_ACEOF
9544/* end confdefs.h. */
9545#include <sys/types.h>
9546#include <signal.h>
9547
9548int
9549main ()
9550{
9551return *(signal (0, 0)) (0) == 1;
9552 ;
9553 return 0;
9554}
9555_ACEOF
9556rm -f conftest.$ac_objext
9557if { (ac_try="$ac_compile"
9558case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561esac
9562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_compile") 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && {
9570 test -z "$ac_cxx_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest.$ac_objext; then
9573 ac_cv_type_signal=int
9574else
9575 echo "$as_me: failed program was:" >&5
9576sed 's/^/| /' conftest.$ac_ext >&5
9577
9578 ac_cv_type_signal=void
9579fi
9580
9581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9582fi
9583{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9584echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9585
9586cat >>confdefs.h <<_ACEOF
9587#define RETSIGTYPE $ac_cv_type_signal
9588_ACEOF
9589
9590
9591
9592
9593
9594
9595for ac_func in \ 8487for ac_func in unsetenv
9596 unsetenv \
9597 setutent \
9598 on_exit \
9599
9600do 8488do
9601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8490{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9604if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8492if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9743 8631
9744 8632
9745 8633
9746 8634
9747for ac_func in \ 8635for ac_func in \
9748 ttyslot \
9749 updwtmp \ 8636 updwtmp \
9750 updwtmpx \ 8637 updwtmpx \
8638 updlastlogx \
9751 8639
9752do 8640do
9753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8641as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9754{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8642{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8643echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9841fi 8729fi
9842done 8730done
9843 8731
9844 8732
9845 8733
9846
9847
9848for ac_header in \ 8734for ac_header in lastlog.h
9849 utmp.h \
9850 utmpx.h \
9851 lastlog.h \
9852
9853do 8735do
9854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9856 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9988 8870
9989done 8871done
9990 8872
9991 8873
9992 8874
9993if test "${ac_cv_header_utmp_h+set}" = set; then 8875
8876for ac_header in utmp.h
8877do
8878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9994 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9995echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9996if test "${ac_cv_header_utmp_h+set}" = set; then 8882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6 8883 echo $ECHO_N "(cached) $ECHO_C" >&6
9998fi 8884fi
8885ac_res=`eval echo '${'$as_ac_Header'}'`
9999{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8886 { echo "$as_me:$LINENO: result: $ac_res" >&5
10000echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8887echo "${ECHO_T}$ac_res" >&6; }
10001else 8888else
10002 # Is the header compilable? 8889 # Is the header compilable?
10003{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10004echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10005cat >conftest.$ac_ext <<_ACEOF 8892cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */ 8893/* confdefs.h. */
10007_ACEOF 8894_ACEOF
10008cat confdefs.h >>conftest.$ac_ext 8895cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF 8896cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */ 8897/* end confdefs.h. */
10011$ac_includes_default 8898$ac_includes_default
10012#include <utmp.h> 8899#include <$ac_header>
10013_ACEOF 8900_ACEOF
10014rm -f conftest.$ac_objext 8901rm -f conftest.$ac_objext
10015if { (ac_try="$ac_compile" 8902if { (ac_try="$ac_compile"
10016case "(($ac_try" in 8903case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10041echo "${ECHO_T}$ac_header_compiler" >&6; } 8928echo "${ECHO_T}$ac_header_compiler" >&6; }
10042 8929
10043# Is the header present? 8930# Is the header present?
10044{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8931{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10045echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10046cat >conftest.$ac_ext <<_ACEOF 8933cat >conftest.$ac_ext <<_ACEOF
10047/* confdefs.h. */ 8934/* confdefs.h. */
10048_ACEOF 8935_ACEOF
10049cat confdefs.h >>conftest.$ac_ext 8936cat confdefs.h >>conftest.$ac_ext
10050cat >>conftest.$ac_ext <<_ACEOF 8937cat >>conftest.$ac_ext <<_ACEOF
10051/* end confdefs.h. */ 8938/* end confdefs.h. */
10052#include <utmp.h> 8939#include <$ac_header>
10053_ACEOF 8940_ACEOF
10054if { (ac_try="$ac_cpp conftest.$ac_ext" 8941if { (ac_try="$ac_cpp conftest.$ac_ext"
10055case "(($ac_try" in 8942case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;; 8944 *) ac_try_echo=$ac_try;;
10080echo "${ECHO_T}$ac_header_preproc" >&6; } 8967echo "${ECHO_T}$ac_header_preproc" >&6; }
10081 8968
10082# So? What about this header? 8969# So? What about this header?
10083case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8970case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10084 yes:no: ) 8971 yes:no: )
10085 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10086echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 8974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10088echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10089 ac_header_preproc=yes 8976 ac_header_preproc=yes
10090 ;; 8977 ;;
10091 no:yes:* ) 8978 no:yes:* )
10092 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10093echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10094 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 8981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10095echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10096 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10097echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 8985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10099echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10100 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10101echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10102 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 8989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10103echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10104 8991
10105 ;; 8992 ;;
10106esac 8993esac
10107{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10108echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10109if test "${ac_cv_header_utmp_h+set}" = set; then 8996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10110 echo $ECHO_N "(cached) $ECHO_C" >&6 8997 echo $ECHO_N "(cached) $ECHO_C" >&6
10111else 8998else
10112 ac_cv_header_utmp_h=$ac_header_preproc 8999 eval "$as_ac_Header=\$ac_header_preproc"
10113fi 9000fi
9001ac_res=`eval echo '${'$as_ac_Header'}'`
10114{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 9002 { echo "$as_me:$LINENO: result: $ac_res" >&5
10115echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 9003echo "${ECHO_T}$ac_res" >&6; }
10116 9004
10117fi 9005fi
10118if test $ac_cv_header_utmp_h = yes; then 9006if test `eval echo '${'$as_ac_Header'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009_ACEOF
10119 { echo "$as_me:$LINENO: checking for struct utmp" >&5 9010 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10120echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 9011echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10121if test "${struct_utmp+set}" = set; then 9012if test "${struct_utmp+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6 9013 echo $ECHO_N "(cached) $ECHO_C" >&6
10123else 9014else
10124 cat >conftest.$ac_ext <<_ACEOF 9015 cat >conftest.$ac_ext <<_ACEOF
10291 9182
10292fi 9183fi
10293 9184
10294fi 9185fi
10295 9186
9187done
10296 9188
10297 9189
10298if test "${ac_cv_header_utmpx_h+set}" = set; then 9190
9191for ac_header in utmpx.h
9192do
9193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10299 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 9195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10300echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10301if test "${ac_cv_header_utmpx_h+set}" = set; then 9197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6 9198 echo $ECHO_N "(cached) $ECHO_C" >&6
10303fi 9199fi
9200ac_res=`eval echo '${'$as_ac_Header'}'`
10304{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10305echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9202echo "${ECHO_T}$ac_res" >&6; }
10306else 9203else
10307 # Is the header compilable? 9204 # Is the header compilable?
10308{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 9205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10309echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10310cat >conftest.$ac_ext <<_ACEOF 9207cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h. */ 9208/* confdefs.h. */
10312_ACEOF 9209_ACEOF
10313cat confdefs.h >>conftest.$ac_ext 9210cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF 9211cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */ 9212/* end confdefs.h. */
10316$ac_includes_default 9213$ac_includes_default
10317#include <utmpx.h> 9214#include <$ac_header>
10318_ACEOF 9215_ACEOF
10319rm -f conftest.$ac_objext 9216rm -f conftest.$ac_objext
10320if { (ac_try="$ac_compile" 9217if { (ac_try="$ac_compile"
10321case "(($ac_try" in 9218case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10346echo "${ECHO_T}$ac_header_compiler" >&6; } 9243echo "${ECHO_T}$ac_header_compiler" >&6; }
10347 9244
10348# Is the header present? 9245# Is the header present?
10349{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 9246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10350echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 9247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10351cat >conftest.$ac_ext <<_ACEOF 9248cat >conftest.$ac_ext <<_ACEOF
10352/* confdefs.h. */ 9249/* confdefs.h. */
10353_ACEOF 9250_ACEOF
10354cat confdefs.h >>conftest.$ac_ext 9251cat confdefs.h >>conftest.$ac_ext
10355cat >>conftest.$ac_ext <<_ACEOF 9252cat >>conftest.$ac_ext <<_ACEOF
10356/* end confdefs.h. */ 9253/* end confdefs.h. */
10357#include <utmpx.h> 9254#include <$ac_header>
10358_ACEOF 9255_ACEOF
10359if { (ac_try="$ac_cpp conftest.$ac_ext" 9256if { (ac_try="$ac_cpp conftest.$ac_ext"
10360case "(($ac_try" in 9257case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;; 9259 *) ac_try_echo=$ac_try;;
10385echo "${ECHO_T}$ac_header_preproc" >&6; } 9282echo "${ECHO_T}$ac_header_preproc" >&6; }
10386 9283
10387# So? What about this header? 9284# So? What about this header?
10388case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9285case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10389 yes:no: ) 9286 yes:no: )
10390 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10391echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10393echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10394 ac_header_preproc=yes 9291 ac_header_preproc=yes
10395 ;; 9292 ;;
10396 no:yes:* ) 9293 no:yes:* )
10397 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10402echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 9300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10404echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 9302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 9304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10408echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10409 9306
10410 ;; 9307 ;;
10411esac 9308esac
10412{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9309{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10413echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10414if test "${ac_cv_header_utmpx_h+set}" = set; then 9311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6 9312 echo $ECHO_N "(cached) $ECHO_C" >&6
10416else 9313else
10417 ac_cv_header_utmpx_h=$ac_header_preproc 9314 eval "$as_ac_Header=\$ac_header_preproc"
10418fi 9315fi
9316ac_res=`eval echo '${'$as_ac_Header'}'`
10419{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9317 { echo "$as_me:$LINENO: result: $ac_res" >&5
10420echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9318echo "${ECHO_T}$ac_res" >&6; }
10421 9319
10422fi 9320fi
10423if test $ac_cv_header_utmpx_h = yes; then 9321if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324_ACEOF
10424 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9325 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10425echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9326echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10426if test "${struct_utmpx+set}" = set; then 9327if test "${struct_utmpx+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6 9328 echo $ECHO_N "(cached) $ECHO_C" >&6
10428else 9329else
10429 cat >conftest.$ac_ext <<_ACEOF 9330 cat >conftest.$ac_ext <<_ACEOF
10596 9497
10597fi 9498fi
10598 9499
10599fi 9500fi
10600 9501
9502done
10601 9503
10602{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9504{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
10603echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9505echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
10604if test "${struct_lastlog+set}" = set; then 9506if test "${struct_lastlog+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6 9507 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 10078
11177cat >>confdefs.h <<_ACEOF 10079cat >>confdefs.h <<_ACEOF
11178#define LASTLOG_FILE "$path_lastlog" 10080#define LASTLOG_FILE "$path_lastlog"
11179_ACEOF 10081_ACEOF
11180 10082
11181 if test -d "$path_lastlog"; then
11182
11183cat >>confdefs.h <<\_ACEOF
11184#define LASTLOG_IS_DIR 1
11185_ACEOF
11186
11187 fi
11188fi 10083fi
11189 10084
11190{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10085{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11191echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10086echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11192if test "${path_lastlogx+set}" = set; then 10087if test "${path_lastlogx+set}" = set; then
11274 10169
11275fi 10170fi
11276 10171
11277 10172
11278 10173
11279{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11280echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11281if test "${rxvt_cv_path_ttytab+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 for ttys_file in /etc/ttys /etc/ttytab;
11285do
11286 if test -f "$ttys_file" ; then
11287 rxvt_cv_path_ttytab=$ttys_file
11288 break
11289 fi
11290done
11291 10174
11292fi
11293{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11294echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11295if test x$rxvt_cv_path_ttytab != x; then
11296
11297cat >>confdefs.h <<_ACEOF
11298#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11299_ACEOF
11300
11301fi
11302
11303
11304ac_save_LIBS=$LIBS 10175save_LIBS=$LIBS
11305ac_save_CFLAGS=$CFLAGS 10176save_CFLAGS=$CFLAGS
11306CFLAGS="$CFLAGS $X_CFLAGS" 10177CFLAGS="$CFLAGS $X_CFLAGS"
11307LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10178LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
10179if test x$support_xim = xyes; then
11308{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 10180 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11309echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10181echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11310if test "${rxvt_cv_func_xlocale+set}" = set; then 10182if test "${rxvt_cv_func_xlocale+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6 10183 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else 10184else
11313 if test "$cross_compiling" = yes; then 10185 if test "$cross_compiling" = yes; then
11314 : 10186 :
11315else 10187else
11316 cat >conftest.$ac_ext <<_ACEOF 10188 cat >conftest.$ac_ext <<_ACEOF
11317/* confdefs.h. */ 10189/* confdefs.h. */
11318_ACEOF 10190_ACEOF
11319cat confdefs.h >>conftest.$ac_ext 10191cat confdefs.h >>conftest.$ac_ext
11320cat >>conftest.$ac_ext <<_ACEOF 10192cat >>conftest.$ac_ext <<_ACEOF
11321/* end confdefs.h. */ 10193/* end confdefs.h. */
11322#include <X11/Xlib.h> 10194#include <X11/Xlib.h>
11323#include <stdlib.h> 10195 #include <stdlib.h>
11324main() { 10196 main() {
11325char *p; 10197 char *p;
11326if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 10198 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11327exit (XSupportsLocale() ? 0 : 1); 10199 exit (XSupportsLocale() ? 0 : 1);
11328else 10200 else
11329exit (1);} 10201 exit (1);}
11330_ACEOF 10202_ACEOF
11331rm -f conftest$ac_exeext 10203rm -f conftest$ac_exeext
11332if { (ac_try="$ac_link" 10204if { (ac_try="$ac_link"
11333case "(($ac_try" in 10205case "(($ac_try" in
11334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5 10219 (eval "$ac_try") 2>&5
11348 ac_status=$? 10220 ac_status=$?
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then 10222 (exit $ac_status); }; }; then
11351 rxvt_cv_func_xlocale=yes 10223 rxvt_cv_func_xlocale=yes
11352else 10224else
11353 echo "$as_me: program exited with status $ac_status" >&5 10225 echo "$as_me: program exited with status $ac_status" >&5
11354echo "$as_me: failed program was:" >&5 10226echo "$as_me: failed program was:" >&5
11355sed 's/^/| /' conftest.$ac_ext >&5 10227sed 's/^/| /' conftest.$ac_ext >&5
11356 10228
11362 10234
11363 10235
11364fi 10236fi
11365{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 10237{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11366echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 10238echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11367if test x$support_xim = xyes; then
11368 if test x$rxvt_cv_func_xlocale = xyes; then 10239 if test x$rxvt_cv_func_xlocale = xyes; then
11369 10240
11370cat >>confdefs.h <<\_ACEOF 10241cat >>confdefs.h <<\_ACEOF
11371#define USE_XIM 1 10242#define USE_XIM 1
11372_ACEOF 10243_ACEOF
11373 10244
10245 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
10246echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
10247if test "${rxvt_cv_broken_ximcb+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 cat >conftest.$ac_ext <<_ACEOF
10251
10252 #include <X11/Xlib.h>
10253
10254 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
10255
10256 void f() {
10257 XIMCallback cb;
10258 cb.callback = im_destroy_cb;
10259 }
10260
10261_ACEOF
10262rm -f conftest.$ac_objext
10263if { (ac_try="$ac_compile"
10264case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267esac
10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_compile") 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_cxx_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest.$ac_objext; then
10279 rxvt_cv_broken_ximcb=yes
10280else
10281 echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
10284 rxvt_cv_broken_ximcb=no
10285fi
10286
10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10288fi
10289{ echo "$as_me:$LINENO: result: $rxvt_cv_broken_ximcb" >&5
10290echo "${ECHO_T}$rxvt_cv_broken_ximcb" >&6; }
10291
10292 if test x$rxvt_cv_broken_ximcb = xyes; then
10293
10294cat >>confdefs.h <<\_ACEOF
10295#define XIMCB_PROTO_BROKEN 1
10296_ACEOF
10297
10298 fi
11374 fi 10299 fi
11375fi 10300fi
11376 10301
11377{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 10302{ echo "$as_me:$LINENO: checking for working X setlocale" >&5
11378echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 10303echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11431cat >>confdefs.h <<\_ACEOF 10356cat >>confdefs.h <<\_ACEOF
11432#define HAVE_XSETLOCALE 1 10357#define HAVE_XSETLOCALE 1
11433_ACEOF 10358_ACEOF
11434 10359
11435fi 10360fi
11436LIBS=$ac_save_LIBS 10361LIBS=$save_LIBS
11437CFLAGS=$ac_save_CFLAGS 10362CFLAGS=$save_CFLAGS
11438 10363
11439{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10364{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11440echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10365echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11441if test "${rxvt_cv_func_setlocale+set}" = set; then 10366if test "${rxvt_cv_func_setlocale+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6 10367 echo $ECHO_N "(cached) $ECHO_C" >&6
11646echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 10571echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11647 { (exit 1); exit 1; }; } 10572 { (exit 1); exit 1; }; }
11648fi 10573fi
11649 10574
11650 10575
11651{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11652echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11653if test "${rxvt_broken_ximcb+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 cat >conftest.$ac_ext <<_ACEOF
11657
11658#include <X11/Xlib.h>
11659
11660void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11661
11662void f() {
11663 XIMCallback cb;
11664 cb.callback = im_destroy_cb;
11665}
11666
11667_ACEOF
11668rm -f conftest.$ac_objext
11669if { (ac_try="$ac_compile"
11670case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_compile") 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } && {
11682 test -z "$ac_cxx_werror_flag" ||
11683 test ! -s conftest.err
11684 } && test -s conftest.$ac_objext; then
11685 rxvt_broken_ximcb=yes
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 rxvt_broken_ximcb=no
11691fi
11692
11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694fi
11695{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11696echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
11697
11698if test x$rxvt_broken_ximcb = xyes; then
11699
11700cat >>confdefs.h <<\_ACEOF
11701#define XIMCB_PROTO_BROKEN 1
11702_ACEOF
11703
11704fi
11705 10576
11706 10577
11707 10578
11708 10579
11709 10580
11713 pty.h \ 10584 pty.h \
11714 util.h \ 10585 util.h \
11715 libutil.h \ 10586 libutil.h \
11716 sys/ioctl.h \ 10587 sys/ioctl.h \
11717 sys/stropts.h \ 10588 sys/stropts.h \
10589 stropts.h \
11718 10590
11719do 10591do
11720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12390echo "${ECHO_T}no" >&6; } 11262echo "${ECHO_T}no" >&6; }
12391fi 11263fi
12392 11264
12393 11265
12394 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11266 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12395 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11267 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12396 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11268 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12397 else 11269 else
12398 # Extract the first word of "xft-config", so it can be a program name with args. 11270 # Extract the first word of "xft-config", so it can be a program name with args.
12399set dummy xft-config; ac_word=$2 11271set dummy xft-config; ac_word=$2
12400{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12435echo "${ECHO_T}no" >&6; } 11307echo "${ECHO_T}no" >&6; }
12436fi 11308fi
12437 11309
12438 11310
12439 if test $XFT_CONFIG != no; then 11311 if test $XFT_CONFIG != no; then
12440 LIBS="$LIBS `$XFT_CONFIG --libs`" 11312 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12441 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11313 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12442 fi 11314 fi
12443 fi 11315 fi
12444 11316
11317 save_LIBS="$LIBS"
11318 LIBS="$LIBS $X_LIBS"
12445 11319
12446for ac_header in X11/Xft/Xft.h 11320for ac_header in X11/Xft/Xft.h
12447do 11321do
12448as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12582 support_xft=no 11456 support_xft=no
12583fi 11457fi
12584 11458
12585done 11459done
12586 11460
12587
12588{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11461 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12589echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11462echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12590if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11463if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6 11464 echo $ECHO_N "(cached) $ECHO_C" >&6
12592else 11465else
12593 ac_check_lib_save_LIBS=$LIBS 11466 ac_check_lib_save_LIBS=$LIBS
12645LIBS=$ac_check_lib_save_LIBS 11518LIBS=$ac_check_lib_save_LIBS
12646fi 11519fi
12647{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11520{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12648echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11521echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
12649if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11522if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12650 cat >>confdefs.h <<_ACEOF 11523 :
12651#define HAVE_LIBXFT 1
12652_ACEOF
12653
12654 LIBS="-lXft $LIBS"
12655
12656else 11524else
12657 support_xft=no 11525 support_xft=no
12658fi 11526fi
12659 11527
11528 LIBS="$save_LIBS"
12660 11529
12661 if test x$support_xft = xyes; then 11530 if test x$support_xft = xyes; then
12662 11531
12663cat >>confdefs.h <<\_ACEOF 11532cat >>confdefs.h <<\_ACEOF
12664#define XFT 1 11533#define XFT 1
12692cat >>confdefs.h <<\_ACEOF 11561cat >>confdefs.h <<\_ACEOF
12693#define OFF_FOCUS_FADING 1 11562#define OFF_FOCUS_FADING 1
12694_ACEOF 11563_ACEOF
12695 11564
12696fi 11565fi
12697if test x$support_tinting = xyes; then
12698
12699cat >>confdefs.h <<\_ACEOF
12700#define TINTING 1
12701_ACEOF
12702
12703fi
12704if test x$support_inheritpixmap = xyes; then 11566if test x$support_inheritpixmap = xyes; then
12705 11567
12706cat >>confdefs.h <<\_ACEOF 11568cat >>confdefs.h <<\_ACEOF
12707#define ENABLE_TRANSPARENCY 1 11569#define ENABLE_TRANSPARENCY 1
12708_ACEOF 11570_ACEOF
12720cat >>confdefs.h <<\_ACEOF 11582cat >>confdefs.h <<\_ACEOF
12721#define SELECTION_SCROLLING 1 11583#define SELECTION_SCROLLING 1
12722_ACEOF 11584_ACEOF
12723 11585
12724fi 11586fi
11587if test x$support_frills = xyes; then
11588
11589cat >>confdefs.h <<\_ACEOF
11590#define ENABLE_FRILLS 1
11591_ACEOF
11592
11593fi
12725if test x$support_mousewheel = xyes; then 11594if test x$support_mousewheel = xyes; then
12726 11595
12727cat >>confdefs.h <<\_ACEOF 11596cat >>confdefs.h <<\_ACEOF
12728#define MOUSE_WHEEL 1 11597#define MOUSE_WHEEL 1
12729_ACEOF 11598_ACEOF
12742#define HAVE_AFTERIMAGE 1 11611#define HAVE_AFTERIMAGE 1
12743_ACEOF 11612_ACEOF
12744 11613
12745 11614
12746cat >>confdefs.h <<\_ACEOF 11615cat >>confdefs.h <<\_ACEOF
12747#define XPM_BACKGROUND 1 11616#define BG_IMAGE_FROM_FILE 1
12748_ACEOF 11617_ACEOF
12749 11618
12750fi 11619fi
11620
11621
11622scrolltypes=plain
11623
11624cat >>confdefs.h <<\_ACEOF
11625#define PLAIN_SCROLLBAR 1
11626_ACEOF
12751 11627
12752 11628
12753if test x$support_scroll_rxvt = xyes; then 11629if test x$support_scroll_rxvt = xyes; then
12754 11630
12755cat >>confdefs.h <<\_ACEOF 11631cat >>confdefs.h <<\_ACEOF
12756#define RXVT_SCROLLBAR 1 11632#define RXVT_SCROLLBAR 1
12757_ACEOF 11633_ACEOF
12758 11634
12759 scrolltypes="rxvt" 11635 scrolltypes="$scrolltypes rxvt"
12760fi 11636fi
12761if test x$support_scroll_next = xyes; then 11637if test x$support_scroll_next = xyes; then
12762 11638
12763cat >>confdefs.h <<\_ACEOF 11639cat >>confdefs.h <<\_ACEOF
12764#define NEXT_SCROLLBAR 1 11640#define NEXT_SCROLLBAR 1
12771cat >>confdefs.h <<\_ACEOF 11647cat >>confdefs.h <<\_ACEOF
12772#define XTERM_SCROLLBAR 1 11648#define XTERM_SCROLLBAR 1
12773_ACEOF 11649_ACEOF
12774 11650
12775 scrolltypes="$scrolltypes xterm" 11651 scrolltypes="$scrolltypes xterm"
12776fi
12777if test x$support_scroll_plain = xyes; then
12778
12779cat >>confdefs.h <<\_ACEOF
12780#define PLAIN_SCROLLBAR 1
12781_ACEOF
12782
12783 scrolltypes="$scrolltypes plain"
12784fi 11652fi
12785if test x$support_pointer_blank = xyes; then 11653if test x$support_pointer_blank = xyes; then
12786 11654
12787cat >>confdefs.h <<\_ACEOF 11655cat >>confdefs.h <<\_ACEOF
12788#define POINTER_BLANK 1 11656#define POINTER_BLANK 1
13025 11893
13026 11894
13027 11895
13028 11896
13029 11897
13030if test x$support_perl = xyes; then
13031 support_frills=yes
13032fi
13033
13034if test x$support_frills = xyes; then
13035
13036cat >>confdefs.h <<\_ACEOF
13037#define ENABLE_FRILLS 1
13038_ACEOF
13039
13040fi
13041
13042 11898
13043 11899
13044 11900
13045 11901
13046 11902
13063_ACEOF 11919_ACEOF
13064program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11920program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13065rm -f conftest.sed 11921rm -f conftest.sed
13066 11922
13067 11923
13068
13069
13070
13071if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13072 include_stdint_h="#include <stdint.h>"
13073else
13074 include_stdint_h="/* #include <stdint.h> */"
13075fi
13076if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13077 include_stdarg_h="#include <cstdarg>"
13078else
13079 include_stdarg_h="/* #include <cstdarg> */"
13080fi
13081if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13082 include_stdlib_h="#include <cstdlib>"
13083else
13084 include_stdlib_h="/* #include <cstdlib> */"
13085fi
13086if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13087 include_unistd_h="#include <unistd.h>"
13088else
13089 include_unistd_h="/* #include <unistd.h> */"
13090fi
13091if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13092 include_string_h="#include <cstring>"
13093else
13094 include_string_h="/* #include <cstring> */"
13095fi
13096if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13097 include_fcntl_h="#include <fcntl.h>"
13098else
13099 include_fcntl_h="/* #include <fcntl.h> */"
13100fi
13101if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13102 include_util_h="#include <util.h>"
13103else
13104 include_util_h="/* #include <util.h> */"
13105fi
13106if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13107 include_assert_h="#include <assert.h>"
13108else
13109 include_assert_h="/* #include <assert.h> */"
13110fi
13111if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13112 include_sys_ioctl_h="#include <sys/ioctl.h>"
13113else
13114 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13115fi
13116if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13117 include_sys_select_h="#include <sys/select.h>"
13118else
13119 include_sys_select_h="/* #include <sys/select.h> */"
13120fi
13121if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13122 include_sys_strredir_h="#include <sys/strredir.h>"
13123else
13124 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13125fi
13126if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13127 include_sys_time_h="#include <sys/time.h>"
13128else
13129 include_sys_time_h="/* #include <sys/time.h> */"
13130fi
13131if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13132 include_time_h="#include <time.h>"
13133else
13134 include_time_h="/* #include <time.h> */"
13135fi
13136
13137ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11924ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13138 11925
13139cat >confcache <<\_ACEOF 11926cat >confcache <<\_ACEOF
13140# This file is a shell script that caches the results of configure 11927# This file is a shell script that caches the results of configure
13141# tests run on this system so they can be shared between configure 11928# tests run on this system so they can be shared between configure
13142# scripts and configure runs, see configure's option --config-cache. 11929# scripts and configure runs, see configure's option --config-cache.
13691 case $ac_config_target in 12478 case $ac_config_target in
13692 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12479 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13693 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13694 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12481 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13695 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12482 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13696 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13697 12483
13698 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12484 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13699echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12485echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13700 { (exit 1); exit 1; }; };; 12486 { (exit 1); exit 1; }; };;
13701 esac 12487 esac
13800host_cpu!$host_cpu$ac_delim 12586host_cpu!$host_cpu$ac_delim
13801host_vendor!$host_vendor$ac_delim 12587host_vendor!$host_vendor$ac_delim
13802host_os!$host_os$ac_delim 12588host_os!$host_os$ac_delim
13803VERSION!$VERSION$ac_delim 12589VERSION!$VERSION$ac_delim
13804DATE!$DATE$ac_delim 12590DATE!$DATE$ac_delim
13805LSMDATE!$LSMDATE$ac_delim
13806LIBVERSION!$LIBVERSION$ac_delim
13807CC!$CC$ac_delim 12591CC!$CC$ac_delim
13808CFLAGS!$CFLAGS$ac_delim 12592CFLAGS!$CFLAGS$ac_delim
13809LDFLAGS!$LDFLAGS$ac_delim 12593LDFLAGS!$LDFLAGS$ac_delim
13810CPPFLAGS!$CPPFLAGS$ac_delim 12594CPPFLAGS!$CPPFLAGS$ac_delim
13811ac_ct_CC!$ac_ct_CC$ac_delim 12595ac_ct_CC!$ac_ct_CC$ac_delim
13819INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12603INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13820INSTALL_DATA!$INSTALL_DATA$ac_delim 12604INSTALL_DATA!$INSTALL_DATA$ac_delim
13821GREP!$GREP$ac_delim 12605GREP!$GREP$ac_delim
13822EGREP!$EGREP$ac_delim 12606EGREP!$EGREP$ac_delim
13823LINKER!$LINKER$ac_delim 12607LINKER!$LINKER$ac_delim
13824INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
13825RXVTNAME!$RXVTNAME$ac_delim 12608RXVTNAME!$RXVTNAME$ac_delim
12609CXXCPP!$CXXCPP$ac_delim
13826TIC!$TIC$ac_delim 12610TIC!$TIC$ac_delim
13827XMKMF!$XMKMF$ac_delim 12611XMKMF!$XMKMF$ac_delim
13828CXXCPP!$CXXCPP$ac_delim
13829X_CFLAGS!$X_CFLAGS$ac_delim 12612X_CFLAGS!$X_CFLAGS$ac_delim
13830X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12613X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13831X_LIBS!$X_LIBS$ac_delim 12614X_LIBS!$X_LIBS$ac_delim
13832X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12615X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13833afterimage_config!$afterimage_config$ac_delim 12616afterimage_config!$afterimage_config$ac_delim
13834rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
13835rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
13836rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
13837rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
13838rxvt_intp_define!$rxvt_intp_define$ac_delim
13839rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
13840PKG_CONFIG!$PKG_CONFIG$ac_delim 12617PKG_CONFIG!$PKG_CONFIG$ac_delim
13841XFT_CONFIG!$XFT_CONFIG$ac_delim 12618XFT_CONFIG!$XFT_CONFIG$ac_delim
13842PERL!$PERL$ac_delim 12619PERL!$PERL$ac_delim
13843PERLLIB!$PERLLIB$ac_delim 12620PERLLIB!$PERLLIB$ac_delim
13844PERLFLAGS!$PERLFLAGS$ac_delim 12621PERLFLAGS!$PERLFLAGS$ac_delim
13845PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12622PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
13846IF_PERL!$IF_PERL$ac_delim 12623IF_PERL!$IF_PERL$ac_delim
13847PERL_O!$PERL_O$ac_delim 12624PERL_O!$PERL_O$ac_delim
13848AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12625AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
13849AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12626AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
13850include_stdint_h!$include_stdint_h$ac_delim 12627LIBOBJS!$LIBOBJS$ac_delim
13851include_stdarg_h!$include_stdarg_h$ac_delim 12628LTLIBOBJS!$LTLIBOBJS$ac_delim
13852include_stdlib_h!$include_stdlib_h$ac_delim
13853include_unistd_h!$include_unistd_h$ac_delim
13854include_string_h!$include_string_h$ac_delim
13855_ACEOF 12629_ACEOF
13856 12630
13857 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
13858 break 12632 break
13859 elif $ac_last_try; then 12633 elif $ac_last_try; then
13860 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13861echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13862 { (exit 1); exit 1; }; } 12636 { (exit 1); exit 1; }; }
13871 ac_eof=`expr $ac_eof + 1` 12645 ac_eof=`expr $ac_eof + 1`
13872fi 12646fi
13873 12647
13874cat >>$CONFIG_STATUS <<_ACEOF 12648cat >>$CONFIG_STATUS <<_ACEOF
13875cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12649cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13876/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13877_ACEOF
13878sed '
13879s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13880s/^/s,@/; s/!/@,|#_!!_#|/
13881:n
13882t n
13883s/'"$ac_delim"'$/,g/; t
13884s/$/\\/; p
13885N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13886' >>$CONFIG_STATUS <conf$$subs.sed
13887rm -f conf$$subs.sed
13888cat >>$CONFIG_STATUS <<_ACEOF
13889CEOF$ac_eof
13890_ACEOF
13891
13892
13893ac_delim='%!_!# '
13894for ac_last_try in false false false false false :; do
13895 cat >conf$$subs.sed <<_ACEOF
13896include_fcntl_h!$include_fcntl_h$ac_delim
13897include_util_h!$include_util_h$ac_delim
13898include_assert_h!$include_assert_h$ac_delim
13899include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
13900include_sys_select_h!$include_sys_select_h$ac_delim
13901include_sys_strredir_h!$include_sys_strredir_h$ac_delim
13902include_sys_time_h!$include_sys_time_h$ac_delim
13903include_time_h!$include_time_h$ac_delim
13904LIBOBJS!$LIBOBJS$ac_delim
13905LTLIBOBJS!$LTLIBOBJS$ac_delim
13906_ACEOF
13907
13908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13909 break
13910 elif $ac_last_try; then
13911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13912echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13913 { (exit 1); exit 1; }; }
13914 else
13915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13916 fi
13917done
13918
13919ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13920if test -n "$ac_eof"; then
13921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13922 ac_eof=`expr $ac_eof + 1`
13923fi
13924
13925cat >>$CONFIG_STATUS <<_ACEOF
13926cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13927/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13928_ACEOF 12651_ACEOF
13929sed ' 12652sed '
13930s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13931s/^/s,@/; s/!/@,|#_!!_#|/ 12654s/^/s,@/; s/!/@,|#_!!_#|/
14184s&@builddir@&$ac_builddir&;t t 12907s&@builddir@&$ac_builddir&;t t
14185s&@abs_builddir@&$ac_abs_builddir&;t t 12908s&@abs_builddir@&$ac_abs_builddir&;t t
14186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14187s&@INSTALL@&$ac_INSTALL&;t t 12910s&@INSTALL@&$ac_INSTALL&;t t
14188$ac_datarootdir_hack 12911$ac_datarootdir_hack
14189" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12912" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14190 12913
14191test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12914test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14192 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14193 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14194 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12917 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines