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

Comparing rxvt-unicode/configure (file contents):
Revision 1.113 by ayin, Tue Sep 18 12:17:58 2007 UTC vs.
Revision 1.125 by root, Sun Jan 6 21:34:57 2008 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-warnings turn on g++ warnings
1322 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1300 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1323 --enable-combining enable composition of base and combining characters 1301 --enable-combining enable composition of base and combining characters
1324 --enable-xft enable xft support on systems that have it 1302 --enable-xft enable xft support on systems that have it
1325 --enable-font-styles enable bold and italic support 1303 --enable-font-styles enable bold and italic support
1326 --enable-afterimage enable integration with libAfterImage for background images 1304 --enable-afterimage enable integration with libAfterImage for background images
1327 --enable-transparency enable transparent backgrounds 1305 --enable-transparency enable transparent backgrounds
1328 --enable-fading enable colors fading when off focus 1306 --enable-fading enable colors fading when off focus
1329 --enable-rxvt-scroll enable rxvt style scrollbar 1307 --enable-rxvt-scroll enable rxvt style scrollbar
1330 --enable-next-scroll enable NeXT style scrollbar 1308 --enable-next-scroll enable NeXT style scrollbar
1331 --enable-xterm-scroll enable Xterm style scrollbar 1309 --enable-xterm-scroll enable Xterm style scrollbar
1310 --enable-plain-scroll enable plain style scrollbar
1332 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1333 --enable-plain-scroll enable plain style scrollbar
1334 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1335 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1336 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1337 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1338 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1339 --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)
1340 --disable-swapscreen disable swap screen support 1318 --disable-swapscreen disable swap screen support
1341 --enable-iso14755 enable support for extended ISO 14755 modes 1319 --enable-iso14755 enable support for extended ISO 14755 modes
1342 --enable-frills enable support for rarely used features 1320 --enable-frills enable support for rarely used features
1343 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1321 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1344 --enable-selectionscrolling enable scrolling during selections 1322 --enable-selectionscrolling enable scrolling during selections
1345 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1323 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1346 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1324 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1347 --enable-smart-resize enable smart growth/shrink behaviour 1325 --enable-smart-resize enable smart growth/shrink behaviour
1348 --enable-text-blink enable blinking text 1326 --enable-text-blink enable blinking text
1349 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1327 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1350 --enable-utmp enable utmp (utmpx) support 1328 --enable-utmp enable utmp (utmpx) support
1351 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1329 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1353 1331
1354Optional Packages: 1332Optional Packages:
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1333 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1334 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1357 --with-afterimage-config=DIR use libAfterImage config script in DIR 1335 --with-afterimage-config=DIR use libAfterImage config script in DIR
1358 --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)
1359 --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)
1360 --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)
1361 --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)
1362 --with-term=NAME set the terminal to NAME (default: rxvt) 1340 --with-term=NAME set the terminal to NAME (default: rxvt)
1363 --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
1372 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
1373 you have headers in a nonstandard directory <include dir> 1351 you have headers in a nonstandard directory <include dir>
1374 CXX C++ compiler command 1352 CXX C++ compiler command
1375 CXXFLAGS C++ compiler flags 1353 CXXFLAGS C++ compiler flags
1376 CPP C preprocessor 1354 CPP C preprocessor
1355 CXXCPP C++ preprocessor
1377 XMKMF Path to xmkmf, Makefile generator for X Window System 1356 XMKMF Path to xmkmf, Makefile generator for X Window System
1378 CXXCPP C++ preprocessor
1379 1357
1380Use 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
1381it to find libraries and programs with nonstandard names/locations. 1359it to find libraries and programs with nonstandard names/locations.
1382 1360
1383_ACEOF 1361_ACEOF
1919 1897
1920 1898
1921 1899
1922VERSION=`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`
1923DATE=`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
1924echo "" 1903echo ""
1925echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1926echo "" 1905echo ""
1927 1906
1928orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1929
1930 1908
1931ac_ext=c 1909ac_ext=c
1932ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934ac_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'
3713echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3714fi 3692fi
3715rm -f conftest* 3693rm -f conftest*
3716 3694
3717 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3718{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3719echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3720if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3722else 3706else
3869LINKER=$LINKER 3853LINKER=$LINKER
3870 3854
3871 3855
3872if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3873 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3874 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"
3875 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3876/* confdefs.h. */ 3860/* confdefs.h. */
3877_ACEOF 3861_ACEOF
3878cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3917 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3918 fi 3902 fi
3919 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3920fi 3904fi
3921 3905
3922
3923cat >>confdefs.h <<\_ACEOF
3924#define _GNU_SOURCE 1
3925_ACEOF
3926
3927
3928case $host in 3906case $host in
3929 *-*-solaris* ) 3907 *-*-solaris* )
3930 3908
3931cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3932#define _XOPEN_SOURCE 500 3910#define _XOPEN_SOURCE 500
3933_ACEOF 3911_ACEOF
3934 3912
3935 ;; 3913 ;;
3936esac 3914esac
3937
3938 3915
3939{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3940echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3941if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4387if test $ac_cv_lib_socket_socket = yes; then 4364if test $ac_cv_lib_socket_socket = yes; then
4388 LIBS="$LIBS -lsocket" 4365 LIBS="$LIBS -lsocket"
4389fi 4366fi
4390 4367
4391fi 4368fi
4392
4393 4369
4394 4370
4395support_frills=yes 4371support_frills=yes
4396support_inheritpixmap=yes 4372support_inheritpixmap=yes
4397support_fading=yes 4373support_fading=yes
4414support_8bitctrls=no 4390support_8bitctrls=no
4415support_iso14755=yes 4391support_iso14755=yes
4416support_styles=yes 4392support_styles=yes
4417support_perl=yes 4393support_perl=yes
4418codesets=all 4394codesets=all
4419
4420
4421if test "x$enable_shared" = xyes; then
4422
4423cat >>confdefs.h <<\_ACEOF
4424#define LIBRXVT 1
4425_ACEOF
4426
4427 INSTALL_LIBRXVT=yes
4428fi
4429 4395
4430 4396
4431# Check whether --enable-everything was given. 4397# Check whether --enable-everything was given.
4432if test "${enable_everything+set}" = set; then 4398if test "${enable_everything+set}" = set; then
4433 enableval=$enable_everything; 4399 enableval=$enable_everything;
4491 fi 4457 fi
4492 4458
4493fi 4459fi
4494 4460
4495 4461
4462WARNINGS=no
4463# Check whether --enable-warnings was given.
4464if test "${enable_warnings+set}" = set; then
4465 enableval=$enable_warnings; if test x$enableval = xyes; then
4466 WARNINGS=yes
4467 fi
4468fi
4469
4470if test x$GXX = xyes; then
4471 if test $WARNINGS = yes; then
4472 save_CXXFLAGS="$CXXFLAGS"
4473 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4474 cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480
4481int
4482main ()
4483{
4484
4485 ;
4486 return 0;
4487}
4488_ACEOF
4489rm -f conftest.$ac_objext
4490if { (ac_try="$ac_compile"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_compile") 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } && {
4503 test -z "$ac_cxx_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest.$ac_objext; then
4506 :
4507else
4508 echo "$as_me: failed program was:" >&5
4509sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 CXXFLAGS="$save_CXXFLAGS"
4512fi
4513
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 else
4516 CXXFLAGS="$CXXFLAGS -w"
4517 fi
4518fi
4519
4496# Check whether --enable-unicode3 was given. 4520# Check whether --enable-unicode3 was given.
4497if test "${enable_unicode3+set}" = set; then 4521if test "${enable_unicode3+set}" = set; then
4498 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4522 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4499 support_unicode3=$enableval 4523 support_unicode3=$enableval
4500 fi 4524 fi
4581 support_scroll_xterm=$enableval 4605 support_scroll_xterm=$enableval
4582 fi 4606 fi
4583fi 4607fi
4584 4608
4585 4609
4610# Check whether --enable-plain-scroll was given.
4611if test "${enable_plain_scroll+set}" = set; then
4612 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4613 support_scroll_plain=$enableval
4614 fi
4615fi
4616
4617
4586# Check whether --enable-perl was given. 4618# Check whether --enable-perl was given.
4587if test "${enable_perl+set}" = set; then 4619if test "${enable_perl+set}" = set; then
4588 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4620 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4589 support_perl=$enableval 4621 support_perl=$enableval
4590 fi
4591fi
4592
4593
4594# Check whether --enable-plain-scroll was given.
4595if test "${enable_plain_scroll+set}" = set; then
4596 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4597 support_scroll_plain=$enableval
4598 fi 4622 fi
4599fi 4623fi
4600 4624
4601 4625
4602 4626
4829#define RXVT_TERMINFO "$withval" 4853#define RXVT_TERMINFO "$withval"
4830_ACEOF 4854_ACEOF
4831 terminfo="$withval" 4855 terminfo="$withval"
4832 fi 4856 fi
4833fi 4857fi
4858
4859
4860
4861LIBEV_M4_AVOID_LIBRT=1
4862
4863ac_ext=cpp
4864ac_cpp='$CXXCPP $CPPFLAGS'
4865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4868{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4869echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4870if test -z "$CXXCPP"; then
4871 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874 # Double quotes because CXXCPP needs to be expanded
4875 for CXXCPP in "$CXX -E" "/lib/cpp"
4876 do
4877 ac_preproc_ok=false
4878for ac_cxx_preproc_warn_flag in '' yes
4879do
4880 # Use a header file that comes with gcc, so configuring glibc
4881 # with a fresh cross-compiler works.
4882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4883 # <limits.h> exists even on freestanding compilers.
4884 # On the NeXT, cc -E runs the code through the compiler's parser,
4885 # not just through cpp. "Syntax error" is here to catch this case.
4886 cat >conftest.$ac_ext <<_ACEOF
4887/* confdefs.h. */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h. */
4892#ifdef __STDC__
4893# include <limits.h>
4894#else
4895# include <assert.h>
4896#endif
4897 Syntax error
4898_ACEOF
4899if { (ac_try="$ac_cpp conftest.$ac_ext"
4900case "(($ac_try" in
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4903esac
4904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4906 ac_status=$?
4907 grep -v '^ *+' conftest.er1 >conftest.err
4908 rm -f conftest.er1
4909 cat conftest.err >&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev/null && {
4912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4913 test ! -s conftest.err
4914 }; then
4915 :
4916else
4917 echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
4919
4920 # Broken: fails on valid input.
4921continue
4922fi
4923
4924rm -f conftest.err conftest.$ac_ext
4925
4926 # OK, works on sane cases. Now check whether nonexistent headers
4927 # can be detected and how.
4928 cat >conftest.$ac_ext <<_ACEOF
4929/* confdefs.h. */
4930_ACEOF
4931cat confdefs.h >>conftest.$ac_ext
4932cat >>conftest.$ac_ext <<_ACEOF
4933/* end confdefs.h. */
4934#include <ac_nonexistent.h>
4935_ACEOF
4936if { (ac_try="$ac_cpp conftest.$ac_ext"
4937case "(($ac_try" in
4938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4939 *) ac_try_echo=$ac_try;;
4940esac
4941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } >/dev/null && {
4949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4950 test ! -s conftest.err
4951 }; then
4952 # Broken: success on invalid input.
4953continue
4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 # Passes both tests.
4959ac_preproc_ok=:
4960break
4961fi
4962
4963rm -f conftest.err conftest.$ac_ext
4964
4965done
4966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967rm -f conftest.err conftest.$ac_ext
4968if $ac_preproc_ok; then
4969 break
4970fi
4971
4972 done
4973 ac_cv_prog_CXXCPP=$CXXCPP
4974
4975fi
4976 CXXCPP=$ac_cv_prog_CXXCPP
4977else
4978 ac_cv_prog_CXXCPP=$CXXCPP
4979fi
4980{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4981echo "${ECHO_T}$CXXCPP" >&6; }
4982ac_preproc_ok=false
4983for ac_cxx_preproc_warn_flag in '' yes
4984do
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat >conftest.$ac_ext <<_ACEOF
4992/* confdefs.h. */
4993_ACEOF
4994cat confdefs.h >>conftest.$ac_ext
4995cat >>conftest.$ac_ext <<_ACEOF
4996/* end confdefs.h. */
4997#ifdef __STDC__
4998# include <limits.h>
4999#else
5000# include <assert.h>
5001#endif
5002 Syntax error
5003_ACEOF
5004if { (ac_try="$ac_cpp conftest.$ac_ext"
5005case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } >/dev/null && {
5017 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5018 test ! -s conftest.err
5019 }; then
5020 :
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 # Broken: fails on valid input.
5026continue
5027fi
5028
5029rm -f conftest.err conftest.$ac_ext
5030
5031 # OK, works on sane cases. Now check whether nonexistent headers
5032 # can be detected and how.
5033 cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h. */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
5039#include <ac_nonexistent.h>
5040_ACEOF
5041if { (ac_try="$ac_cpp conftest.$ac_ext"
5042case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045esac
5046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5048 ac_status=$?
5049 grep -v '^ *+' conftest.er1 >conftest.err
5050 rm -f conftest.er1
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } >/dev/null && {
5054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5055 test ! -s conftest.err
5056 }; then
5057 # Broken: success on invalid input.
5058continue
5059else
5060 echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 # Passes both tests.
5064ac_preproc_ok=:
5065break
5066fi
5067
5068rm -f conftest.err conftest.$ac_ext
5069
5070done
5071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5072rm -f conftest.err conftest.$ac_ext
5073if $ac_preproc_ok; then
5074 :
5075else
5076 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5077See \`config.log' for more details." >&5
5078echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5079See \`config.log' for more details." >&2;}
5080 { (exit 1); exit 1; }; }
5081fi
5082
5083ac_ext=cpp
5084ac_cpp='$CXXCPP $CPPFLAGS'
5085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5088
5089
5090{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5091echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5092if test "${ac_cv_header_stdc+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095 cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h. */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h. */
5101#include <stdlib.h>
5102#include <stdarg.h>
5103#include <string.h>
5104#include <float.h>
5105
5106int
5107main ()
5108{
5109
5110 ;
5111 return 0;
5112}
5113_ACEOF
5114rm -f conftest.$ac_objext
5115if { (ac_try="$ac_compile"
5116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_compile") 2>conftest.er1
5122 ac_status=$?
5123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && {
5128 test -z "$ac_cxx_werror_flag" ||
5129 test ! -s conftest.err
5130 } && test -s conftest.$ac_objext; then
5131 ac_cv_header_stdc=yes
5132else
5133 echo "$as_me: failed program was:" >&5
5134sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ac_cv_header_stdc=no
5137fi
5138
5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5140
5141if test $ac_cv_header_stdc = yes; then
5142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5143 cat >conftest.$ac_ext <<_ACEOF
5144/* confdefs.h. */
5145_ACEOF
5146cat confdefs.h >>conftest.$ac_ext
5147cat >>conftest.$ac_ext <<_ACEOF
5148/* end confdefs.h. */
5149#include <string.h>
5150
5151_ACEOF
5152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153 $EGREP "memchr" >/dev/null 2>&1; then
5154 :
5155else
5156 ac_cv_header_stdc=no
5157fi
5158rm -f conftest*
5159
5160fi
5161
5162if test $ac_cv_header_stdc = yes; then
5163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5164 cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h. */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h. */
5170#include <stdlib.h>
5171
5172_ACEOF
5173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5174 $EGREP "free" >/dev/null 2>&1; then
5175 :
5176else
5177 ac_cv_header_stdc=no
5178fi
5179rm -f conftest*
5180
5181fi
5182
5183if test $ac_cv_header_stdc = yes; then
5184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5185 if test "$cross_compiling" = yes; then
5186 :
5187else
5188 cat >conftest.$ac_ext <<_ACEOF
5189/* confdefs.h. */
5190_ACEOF
5191cat confdefs.h >>conftest.$ac_ext
5192cat >>conftest.$ac_ext <<_ACEOF
5193/* end confdefs.h. */
5194#include <ctype.h>
5195#include <stdlib.h>
5196#if ((' ' & 0x0FF) == 0x020)
5197# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5198# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5199#else
5200# define ISLOWER(c) \
5201 (('a' <= (c) && (c) <= 'i') \
5202 || ('j' <= (c) && (c) <= 'r') \
5203 || ('s' <= (c) && (c) <= 'z'))
5204# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5205#endif
5206
5207#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5208int
5209main ()
5210{
5211 int i;
5212 for (i = 0; i < 256; i++)
5213 if (XOR (islower (i), ISLOWER (i))
5214 || toupper (i) != TOUPPER (i))
5215 return 2;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest$ac_exeext
5220if { (ac_try="$ac_link"
5221case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_link") 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5230 { (case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233esac
5234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_try") 2>&5
5236 ac_status=$?
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 :
5240else
5241 echo "$as_me: program exited with status $ac_status" >&5
5242echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245( exit $ac_status )
5246ac_cv_header_stdc=no
5247fi
5248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5249fi
5250
5251
5252fi
5253fi
5254{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5255echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5256if test $ac_cv_header_stdc = yes; then
5257
5258cat >>confdefs.h <<\_ACEOF
5259#define STDC_HEADERS 1
5260_ACEOF
5261
5262fi
5263
5264# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5275 inttypes.h stdint.h unistd.h
5276do
5277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283 cat >conftest.$ac_ext <<_ACEOF
5284/* confdefs.h. */
5285_ACEOF
5286cat confdefs.h >>conftest.$ac_ext
5287cat >>conftest.$ac_ext <<_ACEOF
5288/* end confdefs.h. */
5289$ac_includes_default
5290
5291#include <$ac_header>
5292_ACEOF
5293rm -f conftest.$ac_objext
5294if { (ac_try="$ac_compile"
5295case "(($ac_try" in
5296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5297 *) ac_try_echo=$ac_try;;
5298esac
5299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5300 (eval "$ac_compile") 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } && {
5307 test -z "$ac_cxx_werror_flag" ||
5308 test ! -s conftest.err
5309 } && test -s conftest.$ac_objext; then
5310 eval "$as_ac_Header=yes"
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 eval "$as_ac_Header=no"
5316fi
5317
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319fi
5320ac_res=`eval echo '${'$as_ac_Header'}'`
5321 { echo "$as_me:$LINENO: result: $ac_res" >&5
5322echo "${ECHO_T}$ac_res" >&6; }
5323if test `eval echo '${'$as_ac_Header'}'` = yes; then
5324 cat >>confdefs.h <<_ACEOF
5325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5326_ACEOF
5327
5328fi
5329
5330done
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5341do
5342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5347 echo $ECHO_N "(cached) $ECHO_C" >&6
5348fi
5349ac_res=`eval echo '${'$as_ac_Header'}'`
5350 { echo "$as_me:$LINENO: result: $ac_res" >&5
5351echo "${ECHO_T}$ac_res" >&6; }
5352else
5353 # Is the header compilable?
5354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5356cat >conftest.$ac_ext <<_ACEOF
5357/* confdefs.h. */
5358_ACEOF
5359cat confdefs.h >>conftest.$ac_ext
5360cat >>conftest.$ac_ext <<_ACEOF
5361/* end confdefs.h. */
5362$ac_includes_default
5363#include <$ac_header>
5364_ACEOF
5365rm -f conftest.$ac_objext
5366if { (ac_try="$ac_compile"
5367case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5373 ac_status=$?
5374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_cxx_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_header_compiler=yes
5383else
5384 echo "$as_me: failed program was:" >&5
5385sed 's/^/| /' conftest.$ac_ext >&5
5386
5387 ac_header_compiler=no
5388fi
5389
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5392echo "${ECHO_T}$ac_header_compiler" >&6; }
5393
5394# Is the header present?
5395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5397cat >conftest.$ac_ext <<_ACEOF
5398/* confdefs.h. */
5399_ACEOF
5400cat confdefs.h >>conftest.$ac_ext
5401cat >>conftest.$ac_ext <<_ACEOF
5402/* end confdefs.h. */
5403#include <$ac_header>
5404_ACEOF
5405if { (ac_try="$ac_cpp conftest.$ac_ext"
5406case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409esac
5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5412 ac_status=$?
5413 grep -v '^ *+' conftest.er1 >conftest.err
5414 rm -f conftest.er1
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } >/dev/null && {
5418 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5419 test ! -s conftest.err
5420 }; then
5421 ac_header_preproc=yes
5422else
5423 echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 ac_header_preproc=no
5427fi
5428
5429rm -f conftest.err conftest.$ac_ext
5430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5431echo "${ECHO_T}$ac_header_preproc" >&6; }
5432
5433# So? What about this header?
5434case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5435 yes:no: )
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5440 ac_header_preproc=yes
5441 ;;
5442 no:yes:* )
5443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5455
5456 ;;
5457esac
5458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463 eval "$as_ac_Header=\$ac_header_preproc"
5464fi
5465ac_res=`eval echo '${'$as_ac_Header'}'`
5466 { echo "$as_me:$LINENO: result: $ac_res" >&5
5467echo "${ECHO_T}$ac_res" >&6; }
5468
5469fi
5470if test `eval echo '${'$as_ac_Header'}'` = yes; then
5471 cat >>confdefs.h <<_ACEOF
5472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473_ACEOF
5474
5475fi
5476
5477done
5478
5479
5480
5481
5482
5483
5484
5485
5486for ac_func in inotify_init epoll_ctl kqueue port_create poll select
5487do
5488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5489{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494 cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h. */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h. */
5500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5502#define $ac_func innocuous_$ac_func
5503
5504/* System header to define __stub macros and hopefully few prototypes,
5505 which can conflict with char $ac_func (); below.
5506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 <limits.h> exists even on freestanding compilers. */
5508
5509#ifdef __STDC__
5510# include <limits.h>
5511#else
5512# include <assert.h>
5513#endif
5514
5515#undef $ac_func
5516
5517/* Override any GCC internal prototype to avoid an error.
5518 Use char because int might match the return type of a GCC
5519 builtin and then its argument prototype would still apply. */
5520#ifdef __cplusplus
5521extern "C"
5522#endif
5523char $ac_func ();
5524/* The GNU C library defines this for functions which it implements
5525 to always fail with ENOSYS. Some functions are actually named
5526 something starting with __ and the normal name is an alias. */
5527#if defined __stub_$ac_func || defined __stub___$ac_func
5528choke me
5529#endif
5530
5531int
5532main ()
5533{
5534return $ac_func ();
5535 ;
5536 return 0;
5537}
5538_ACEOF
5539rm -f conftest.$ac_objext conftest$ac_exeext
5540if { (ac_try="$ac_link"
5541case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544esac
5545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_link") 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_cxx_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest$ac_exeext &&
5556 $as_test_x conftest$ac_exeext; then
5557 eval "$as_ac_var=yes"
5558else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 eval "$as_ac_var=no"
5563fi
5564
5565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5566 conftest$ac_exeext conftest.$ac_ext
5567fi
5568ac_res=`eval echo '${'$as_ac_var'}'`
5569 { echo "$as_me:$LINENO: result: $ac_res" >&5
5570echo "${ECHO_T}$ac_res" >&6; }
5571if test `eval echo '${'$as_ac_var'}'` = yes; then
5572 cat >>confdefs.h <<_ACEOF
5573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5574_ACEOF
5575
5576fi
5577done
5578
5579
5580{ echo "$as_me:$LINENO: checking for clock_gettime" >&5
5581echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6; }
5582if test "${ac_cv_func_clock_gettime+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h. */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h. */
5591/* Define clock_gettime to an innocuous variant, in case <limits.h> declares clock_gettime.
5592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5593#define clock_gettime innocuous_clock_gettime
5594
5595/* System header to define __stub macros and hopefully few prototypes,
5596 which can conflict with char clock_gettime (); below.
5597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598 <limits.h> exists even on freestanding compilers. */
5599
5600#ifdef __STDC__
5601# include <limits.h>
5602#else
5603# include <assert.h>
5604#endif
5605
5606#undef clock_gettime
5607
5608/* Override any GCC internal prototype to avoid an error.
5609 Use char because int might match the return type of a GCC
5610 builtin and then its argument prototype would still apply. */
5611#ifdef __cplusplus
5612extern "C"
5613#endif
5614char clock_gettime ();
5615/* The GNU C library defines this for functions which it implements
5616 to always fail with ENOSYS. Some functions are actually named
5617 something starting with __ and the normal name is an alias. */
5618#if defined __stub_clock_gettime || defined __stub___clock_gettime
5619choke me
5620#endif
5621
5622int
5623main ()
5624{
5625return clock_gettime ();
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630rm -f conftest.$ac_objext conftest$ac_exeext
5631if { (ac_try="$ac_link"
5632case "(($ac_try" in
5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5634 *) ac_try_echo=$ac_try;;
5635esac
5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5637 (eval "$ac_link") 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } && {
5644 test -z "$ac_cxx_werror_flag" ||
5645 test ! -s conftest.err
5646 } && test -s conftest$ac_exeext &&
5647 $as_test_x conftest$ac_exeext; then
5648 ac_cv_func_clock_gettime=yes
5649else
5650 echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ac_cv_func_clock_gettime=no
5654fi
5655
5656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5657 conftest$ac_exeext conftest.$ac_ext
5658fi
5659{ echo "$as_me:$LINENO: result: $ac_cv_func_clock_gettime" >&5
5660echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5661if test $ac_cv_func_clock_gettime = yes; then
5662 :
5663else
5664
5665 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5666
5667{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5668echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5669if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672 ac_check_lib_save_LIBS=$LIBS
5673LIBS="-lrt $LIBS"
5674cat >conftest.$ac_ext <<_ACEOF
5675/* confdefs.h. */
5676_ACEOF
5677cat confdefs.h >>conftest.$ac_ext
5678cat >>conftest.$ac_ext <<_ACEOF
5679/* end confdefs.h. */
5680
5681/* Override any GCC internal prototype to avoid an error.
5682 Use char because int might match the return type of a GCC
5683 builtin and then its argument prototype would still apply. */
5684#ifdef __cplusplus
5685extern "C"
5686#endif
5687char clock_gettime ();
5688int
5689main ()
5690{
5691return clock_gettime ();
5692 ;
5693 return 0;
5694}
5695_ACEOF
5696rm -f conftest.$ac_objext conftest$ac_exeext
5697if { (ac_try="$ac_link"
5698case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_link") 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_cxx_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest$ac_exeext &&
5713 $as_test_x conftest$ac_exeext; then
5714 ac_cv_lib_rt_clock_gettime=yes
5715else
5716 echo "$as_me: failed program was:" >&5
5717sed 's/^/| /' conftest.$ac_ext >&5
5718
5719 ac_cv_lib_rt_clock_gettime=no
5720fi
5721
5722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5723 conftest$ac_exeext conftest.$ac_ext
5724LIBS=$ac_check_lib_save_LIBS
5725fi
5726{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
5727echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
5728if test $ac_cv_lib_rt_clock_gettime = yes; then
5729 cat >>confdefs.h <<_ACEOF
5730#define HAVE_LIBRT 1
5731_ACEOF
5732
5733 LIBS="-lrt $LIBS"
5734
5735fi
5736
5737 unset ac_cv_func_clock_gettime
5738
5739for ac_func in clock_gettime
5740do
5741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747 cat >conftest.$ac_ext <<_ACEOF
5748/* confdefs.h. */
5749_ACEOF
5750cat confdefs.h >>conftest.$ac_ext
5751cat >>conftest.$ac_ext <<_ACEOF
5752/* end confdefs.h. */
5753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5755#define $ac_func innocuous_$ac_func
5756
5757/* System header to define __stub macros and hopefully few prototypes,
5758 which can conflict with char $ac_func (); below.
5759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 <limits.h> exists even on freestanding compilers. */
5761
5762#ifdef __STDC__
5763# include <limits.h>
5764#else
5765# include <assert.h>
5766#endif
5767
5768#undef $ac_func
5769
5770/* Override any GCC internal prototype to avoid an error.
5771 Use char because int might match the return type of a GCC
5772 builtin and then its argument prototype would still apply. */
5773#ifdef __cplusplus
5774extern "C"
5775#endif
5776char $ac_func ();
5777/* The GNU C library defines this for functions which it implements
5778 to always fail with ENOSYS. Some functions are actually named
5779 something starting with __ and the normal name is an alias. */
5780#if defined __stub_$ac_func || defined __stub___$ac_func
5781choke me
5782#endif
5783
5784int
5785main ()
5786{
5787return $ac_func ();
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext conftest$ac_exeext
5793if { (ac_try="$ac_link"
5794case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797esac
5798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_link") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_cxx_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest$ac_exeext &&
5809 $as_test_x conftest$ac_exeext; then
5810 eval "$as_ac_var=yes"
5811else
5812 echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 eval "$as_ac_var=no"
5816fi
5817
5818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5819 conftest$ac_exeext conftest.$ac_ext
5820fi
5821ac_res=`eval echo '${'$as_ac_var'}'`
5822 { echo "$as_me:$LINENO: result: $ac_res" >&5
5823echo "${ECHO_T}$ac_res" >&6; }
5824if test `eval echo '${'$as_ac_var'}'` = yes; then
5825 cat >>confdefs.h <<_ACEOF
5826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5827_ACEOF
5828
5829fi
5830done
5831
5832 fi
5833
5834fi
5835
5836
5837{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5838echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5839if test "${ac_cv_func_nanosleep+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842 cat >conftest.$ac_ext <<_ACEOF
5843/* confdefs.h. */
5844_ACEOF
5845cat confdefs.h >>conftest.$ac_ext
5846cat >>conftest.$ac_ext <<_ACEOF
5847/* end confdefs.h. */
5848/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5850#define nanosleep innocuous_nanosleep
5851
5852/* System header to define __stub macros and hopefully few prototypes,
5853 which can conflict with char nanosleep (); below.
5854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855 <limits.h> exists even on freestanding compilers. */
5856
5857#ifdef __STDC__
5858# include <limits.h>
5859#else
5860# include <assert.h>
5861#endif
5862
5863#undef nanosleep
5864
5865/* Override any GCC internal prototype to avoid an error.
5866 Use char because int might match the return type of a GCC
5867 builtin and then its argument prototype would still apply. */
5868#ifdef __cplusplus
5869extern "C"
5870#endif
5871char nanosleep ();
5872/* The GNU C library defines this for functions which it implements
5873 to always fail with ENOSYS. Some functions are actually named
5874 something starting with __ and the normal name is an alias. */
5875#if defined __stub_nanosleep || defined __stub___nanosleep
5876choke me
5877#endif
5878
5879int
5880main ()
5881{
5882return nanosleep ();
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887rm -f conftest.$ac_objext conftest$ac_exeext
5888if { (ac_try="$ac_link"
5889case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_link") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } && {
5901 test -z "$ac_cxx_werror_flag" ||
5902 test ! -s conftest.err
5903 } && test -s conftest$ac_exeext &&
5904 $as_test_x conftest$ac_exeext; then
5905 ac_cv_func_nanosleep=yes
5906else
5907 echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910 ac_cv_func_nanosleep=no
5911fi
5912
5913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5914 conftest$ac_exeext conftest.$ac_ext
5915fi
5916{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5917echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5918if test $ac_cv_func_nanosleep = yes; then
5919 :
5920else
5921
5922 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5923
5924{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5925echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5926if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929 ac_check_lib_save_LIBS=$LIBS
5930LIBS="-lrt $LIBS"
5931cat >conftest.$ac_ext <<_ACEOF
5932/* confdefs.h. */
5933_ACEOF
5934cat confdefs.h >>conftest.$ac_ext
5935cat >>conftest.$ac_ext <<_ACEOF
5936/* end confdefs.h. */
5937
5938/* Override any GCC internal prototype to avoid an error.
5939 Use char because int might match the return type of a GCC
5940 builtin and then its argument prototype would still apply. */
5941#ifdef __cplusplus
5942extern "C"
5943#endif
5944char nanosleep ();
5945int
5946main ()
5947{
5948return nanosleep ();
5949 ;
5950 return 0;
5951}
5952_ACEOF
5953rm -f conftest.$ac_objext conftest$ac_exeext
5954if { (ac_try="$ac_link"
5955case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
5959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_link") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_cxx_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest$ac_exeext &&
5970 $as_test_x conftest$ac_exeext; then
5971 ac_cv_lib_rt_nanosleep=yes
5972else
5973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 ac_cv_lib_rt_nanosleep=no
5977fi
5978
5979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5980 conftest$ac_exeext conftest.$ac_ext
5981LIBS=$ac_check_lib_save_LIBS
5982fi
5983{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
5984echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
5985if test $ac_cv_lib_rt_nanosleep = yes; then
5986 cat >>confdefs.h <<_ACEOF
5987#define HAVE_LIBRT 1
5988_ACEOF
5989
5990 LIBS="-lrt $LIBS"
5991
5992fi
5993
5994 unset ac_cv_func_nanosleep
5995
5996for ac_func in nanosleep
5997do
5998as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5999{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6000echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6001if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004 cat >conftest.$ac_ext <<_ACEOF
6005/* confdefs.h. */
6006_ACEOF
6007cat confdefs.h >>conftest.$ac_ext
6008cat >>conftest.$ac_ext <<_ACEOF
6009/* end confdefs.h. */
6010/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6012#define $ac_func innocuous_$ac_func
6013
6014/* System header to define __stub macros and hopefully few prototypes,
6015 which can conflict with char $ac_func (); below.
6016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017 <limits.h> exists even on freestanding compilers. */
6018
6019#ifdef __STDC__
6020# include <limits.h>
6021#else
6022# include <assert.h>
6023#endif
6024
6025#undef $ac_func
6026
6027/* Override any GCC internal prototype to avoid an error.
6028 Use char because int might match the return type of a GCC
6029 builtin and then its argument prototype would still apply. */
6030#ifdef __cplusplus
6031extern "C"
6032#endif
6033char $ac_func ();
6034/* The GNU C library defines this for functions which it implements
6035 to always fail with ENOSYS. Some functions are actually named
6036 something starting with __ and the normal name is an alias. */
6037#if defined __stub_$ac_func || defined __stub___$ac_func
6038choke me
6039#endif
6040
6041int
6042main ()
6043{
6044return $ac_func ();
6045 ;
6046 return 0;
6047}
6048_ACEOF
6049rm -f conftest.$ac_objext conftest$ac_exeext
6050if { (ac_try="$ac_link"
6051case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_link") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_cxx_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest$ac_exeext &&
6066 $as_test_x conftest$ac_exeext; then
6067 eval "$as_ac_var=yes"
6068else
6069 echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 eval "$as_ac_var=no"
6073fi
6074
6075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6076 conftest$ac_exeext conftest.$ac_ext
6077fi
6078ac_res=`eval echo '${'$as_ac_var'}'`
6079 { echo "$as_me:$LINENO: result: $ac_res" >&5
6080echo "${ECHO_T}$ac_res" >&6; }
6081if test `eval echo '${'$as_ac_var'}'` = yes; then
6082 cat >>confdefs.h <<_ACEOF
6083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6084_ACEOF
6085
6086fi
6087done
6088
6089 fi
6090
6091fi
6092
6093
6094
6095{ echo "$as_me:$LINENO: checking for ceil in -lm" >&5
6096echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6; }
6097if test "${ac_cv_lib_m_ceil+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100 ac_check_lib_save_LIBS=$LIBS
6101LIBS="-lm $LIBS"
6102cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108
6109/* Override any GCC internal prototype to avoid an error.
6110 Use char because int might match the return type of a GCC
6111 builtin and then its argument prototype would still apply. */
6112#ifdef __cplusplus
6113extern "C"
6114#endif
6115char ceil ();
6116int
6117main ()
6118{
6119return ceil ();
6120 ;
6121 return 0;
6122}
6123_ACEOF
6124rm -f conftest.$ac_objext conftest$ac_exeext
6125if { (ac_try="$ac_link"
6126case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129esac
6130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_link") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_cxx_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest$ac_exeext &&
6141 $as_test_x conftest$ac_exeext; then
6142 ac_cv_lib_m_ceil=yes
6143else
6144 echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 ac_cv_lib_m_ceil=no
6148fi
6149
6150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6151 conftest$ac_exeext conftest.$ac_ext
6152LIBS=$ac_check_lib_save_LIBS
6153fi
6154{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5
6155echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6; }
6156if test $ac_cv_lib_m_ceil = yes; then
6157 cat >>confdefs.h <<_ACEOF
6158#define HAVE_LIBM 1
6159_ACEOF
6160
6161 LIBS="-lm $LIBS"
6162
6163fi
6164
6165
6166
6167
4834 6168
4835 6169
4836 6170
4837# Extract the first word of "tic", so it can be a program name with args. 6171# Extract the first word of "tic", so it can be a program name with args.
4838set dummy tic; ac_word=$2 6172set dummy tic; ac_word=$2
4872else 6206else
4873 { echo "$as_me:$LINENO: result: no" >&5 6207 { echo "$as_me:$LINENO: result: no" >&5
4874echo "${ECHO_T}no" >&6; } 6208echo "${ECHO_T}no" >&6; }
4875fi 6209fi
4876 6210
4877
4878
4879
4880
4881ac_ext=cpp
4882ac_cpp='$CXXCPP $CPPFLAGS'
4883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4886{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4887echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4888if test -z "$CXXCPP"; then
4889 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892 # Double quotes because CXXCPP needs to be expanded
4893 for CXXCPP in "$CXX -E" "/lib/cpp"
4894 do
4895 ac_preproc_ok=false
4896for ac_cxx_preproc_warn_flag in '' yes
4897do
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
4910#ifdef __STDC__
4911# include <limits.h>
4912#else
4913# include <assert.h>
4914#endif
4915 Syntax error
4916_ACEOF
4917if { (ac_try="$ac_cpp conftest.$ac_ext"
4918case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921esac
4922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null && {
4930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4931 test ! -s conftest.err
4932 }; then
4933 :
4934else
4935 echo "$as_me: failed program was:" >&5
4936sed 's/^/| /' conftest.$ac_ext >&5
4937
4938 # Broken: fails on valid input.
4939continue
4940fi
4941
4942rm -f conftest.err conftest.$ac_ext
4943
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
4952#include <ac_nonexistent.h>
4953_ACEOF
4954if { (ac_try="$ac_cpp conftest.$ac_ext"
4955case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958esac
4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4968 test ! -s conftest.err
4969 }; then
4970 # Broken: success on invalid input.
4971continue
4972else
4973 echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 # Passes both tests.
4977ac_preproc_ok=:
4978break
4979fi
4980
4981rm -f conftest.err conftest.$ac_ext
4982
4983done
4984# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985rm -f conftest.err conftest.$ac_ext
4986if $ac_preproc_ok; then
4987 break
4988fi
4989
4990 done
4991 ac_cv_prog_CXXCPP=$CXXCPP
4992
4993fi
4994 CXXCPP=$ac_cv_prog_CXXCPP
4995else
4996 ac_cv_prog_CXXCPP=$CXXCPP
4997fi
4998{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4999echo "${ECHO_T}$CXXCPP" >&6; }
5000ac_preproc_ok=false
5001for ac_cxx_preproc_warn_flag in '' yes
5002do
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
5015#ifdef __STDC__
5016# include <limits.h>
5017#else
5018# include <assert.h>
5019#endif
5020 Syntax error
5021_ACEOF
5022if { (ac_try="$ac_cpp conftest.$ac_ext"
5023case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5026esac
5027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5029 ac_status=$?
5030 grep -v '^ *+' conftest.er1 >conftest.err
5031 rm -f conftest.er1
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5036 test ! -s conftest.err
5037 }; then
5038 :
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043 # Broken: fails on valid input.
5044continue
5045fi
5046
5047rm -f conftest.err conftest.$ac_ext
5048
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
5057#include <ac_nonexistent.h>
5058_ACEOF
5059if { (ac_try="$ac_cpp conftest.$ac_ext"
5060case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063esac
5064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073 test ! -s conftest.err
5074 }; then
5075 # Broken: success on invalid input.
5076continue
5077else
5078 echo "$as_me: failed program was:" >&5
5079sed 's/^/| /' conftest.$ac_ext >&5
5080
5081 # Passes both tests.
5082ac_preproc_ok=:
5083break
5084fi
5085
5086rm -f conftest.err conftest.$ac_ext
5087
5088done
5089# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090rm -f conftest.err conftest.$ac_ext
5091if $ac_preproc_ok; then
5092 :
5093else
5094 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5095See \`config.log' for more details." >&5
5096echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5097See \`config.log' for more details." >&2;}
5098 { (exit 1); exit 1; }; }
5099fi
5100
5101ac_ext=cpp
5102ac_cpp='$CXXCPP $CPPFLAGS'
5103ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 6211
5107 6212
5108{ echo "$as_me:$LINENO: checking for X" >&5 6213{ echo "$as_me:$LINENO: checking for X" >&5
5109echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6214echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5110 6215
6496echo "${ECHO_T}no" >&6; } 7601echo "${ECHO_T}no" >&6; }
6497 fi 7602 fi
6498 fi 7603 fi
6499fi 7604fi
6500 7605
6501{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6502echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6503if test "${ac_cv_header_sys_wait_h+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 cat >conftest.$ac_ext <<_ACEOF
6507/* confdefs.h. */
6508_ACEOF
6509cat confdefs.h >>conftest.$ac_ext
6510cat >>conftest.$ac_ext <<_ACEOF
6511/* end confdefs.h. */
6512#include <sys/types.h>
6513#include <sys/wait.h>
6514#ifndef WEXITSTATUS
6515# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6516#endif
6517#ifndef WIFEXITED
6518# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6519#endif
6520
6521int
6522main ()
6523{
6524 int s;
6525 wait (&s);
6526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6527 ;
6528 return 0;
6529}
6530_ACEOF
6531rm -f conftest.$ac_objext
6532if { (ac_try="$ac_compile"
6533case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6539 ac_status=$?
6540 grep -v '^ *+' conftest.er1 >conftest.err
6541 rm -f conftest.er1
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_cxx_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 ac_cv_header_sys_wait_h=yes
6549else
6550 echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553 ac_cv_header_sys_wait_h=no
6554fi
6555
6556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6557fi
6558{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6559echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6560if test $ac_cv_header_sys_wait_h = yes; then
6561
6562cat >>confdefs.h <<\_ACEOF
6563#define HAVE_SYS_WAIT_H 1
6564_ACEOF
6565
6566fi
6567
6568{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 cat >conftest.$ac_ext <<_ACEOF
6574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
6579#include <stdlib.h>
6580#include <stdarg.h>
6581#include <string.h>
6582#include <float.h>
6583
6584int
6585main ()
6586{
6587
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext
6593if { (ac_try="$ac_compile"
6594case "(($ac_try" in
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6597esac
6598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_cxx_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6610else
6611 echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ac_cv_header_stdc=no
6615fi
6616
6617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618
6619if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6622/* confdefs.h. */
6623_ACEOF
6624cat confdefs.h >>conftest.$ac_ext
6625cat >>conftest.$ac_ext <<_ACEOF
6626/* end confdefs.h. */
6627#include <string.h>
6628
6629_ACEOF
6630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6632 :
6633else
6634 ac_cv_header_stdc=no
6635fi
6636rm -f conftest*
6637
6638fi
6639
6640if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h. */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h. */
6648#include <stdlib.h>
6649
6650_ACEOF
6651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6653 :
6654else
6655 ac_cv_header_stdc=no
6656fi
6657rm -f conftest*
6658
6659fi
6660
6661if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6664 :
6665else
6666 cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h. */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h. */
6672#include <ctype.h>
6673#include <stdlib.h>
6674#if ((' ' & 0x0FF) == 0x020)
6675# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6677#else
6678# define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6683#endif
6684
6685#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6686int
6687main ()
6688{
6689 int i;
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6693 return 2;
6694 return 0;
6695}
6696_ACEOF
6697rm -f conftest$ac_exeext
6698if { (ac_try="$ac_link"
6699case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702esac
6703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6705 ac_status=$?
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6711esac
6712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6717 :
6718else
6719 echo "$as_me: program exited with status $ac_status" >&5
6720echo "$as_me: failed program was:" >&5
6721sed 's/^/| /' conftest.$ac_ext >&5
6722
6723( exit $ac_status )
6724ac_cv_header_stdc=no
6725fi
6726rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6727fi
6728
6729
6730fi
6731fi
6732{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734if test $ac_cv_header_stdc = yes; then
6735
6736cat >>confdefs.h <<\_ACEOF
6737#define STDC_HEADERS 1
6738_ACEOF
6739
6740fi
6741
6742# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6753 inttypes.h stdint.h unistd.h
6754do
6755as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6760else
6761 cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h. */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h. */
6767$ac_includes_default
6768
6769#include <$ac_header>
6770_ACEOF
6771rm -f conftest.$ac_objext
6772if { (ac_try="$ac_compile"
6773case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776esac
6777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_cxx_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 eval "$as_ac_Header=yes"
6789else
6790 echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 eval "$as_ac_Header=no"
6794fi
6795
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797fi
6798ac_res=`eval echo '${'$as_ac_Header'}'`
6799 { echo "$as_me:$LINENO: result: $ac_res" >&5
6800echo "${ECHO_T}$ac_res" >&6; }
6801if test `eval echo '${'$as_ac_Header'}'` = yes; then
6802 cat >>confdefs.h <<_ACEOF
6803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6804_ACEOF
6805
6806fi
6807
6808done
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821 7606
6822 7607
6823 7608
6824 7609
6825 7610
6826 7611
6827 7612
6828for ac_header in \ 7613for ac_header in \
6829 assert.h \
6830 fcntl.h \
6831 stdarg.h \
6832 stdlib.h \
6833 string.h \
6834 termios.h \
6835 unistd.h \
6836 sys/byteorder.h \ 7614 sys/byteorder.h \
6837 sys/ioctl.h \ 7615 sys/ioctl.h \
6838 sys/select.h \
6839 sys/sockio.h \ 7616 sys/sockio.h \
6840 sys/strredir.h \ 7617 sys/strredir.h \
6841 sys/time.h \
6842 stdint.h \ 7618 stdint.h \
6843 wchar.h \ 7619 wchar.h \
6844 cwchar \ 7620 cwchar \
6845 clocale \
6846 7621
6847do 7622do
6848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7623as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6850 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6981fi 7756fi
6982 7757
6983done 7758done
6984 7759
6985 7760
6986{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6987echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6988if test "${ac_cv_header_time+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991 cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
6997#include <sys/types.h>
6998#include <sys/time.h>
6999#include <time.h>
7000
7001int
7002main ()
7003{
7004if ((struct tm *) 0)
7005return 0;
7006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest.$ac_objext
7011if { (ac_try="$ac_compile"
7012case "(($ac_try" in
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7015esac
7016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7018 ac_status=$?
7019 grep -v '^ *+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_cxx_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7027 ac_cv_header_time=yes
7028else
7029 echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ac_cv_header_time=no
7033fi
7034
7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036fi
7037{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7038echo "${ECHO_T}$ac_cv_header_time" >&6; }
7039if test $ac_cv_header_time = yes; then
7040
7041cat >>confdefs.h <<\_ACEOF
7042#define TIME_WITH_SYS_TIME 1
7043_ACEOF
7044
7045fi
7046
7047
7048{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7049echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7050if test "${rxvt_cv_header_sysioctl+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 cat >conftest.$ac_ext <<_ACEOF
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059#include <stdio.h>
7060#include <sys/ioctl.h>
7061#ifdef HAVE_TERMIOS_H
7062#include <termios.h>
7063#endif
7064int
7065main ()
7066{
7067int a = ECHO;
7068 ;
7069 return 0;
7070}
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (ac_try="$ac_compile"
7074case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077esac
7078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_cxx_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7089 rxvt_cv_header_sysioctl=yes
7090else
7091 echo "$as_me: failed program was:" >&5
7092sed 's/^/| /' conftest.$ac_ext >&5
7093
7094 rxvt_cv_header_sysioctl=no
7095fi
7096
7097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7098fi
7099{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7100echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7101
7102{ echo "$as_me:$LINENO: checking for XPointer" >&5 7761{ echo "$as_me:$LINENO: checking for XPointer" >&5
7103echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7762echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7104if test "${rxvt_cv_xpointer+set}" = set; then 7763if test "${rxvt_cv_xpointer+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6 7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7106else 7765else
7217cat >>confdefs.h <<\_ACEOF 7876cat >>confdefs.h <<\_ACEOF
7218#define XLIB_ILLEGAL_ACCESS 1 7877#define XLIB_ILLEGAL_ACCESS 1
7219_ACEOF 7878_ACEOF
7220 7879
7221fi 7880fi
7222
7223{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7224echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7225if test "${ac_cv_c_const+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228 cat >conftest.$ac_ext <<_ACEOF
7229/* confdefs.h. */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
7233/* end confdefs.h. */
7234
7235int
7236main ()
7237{
7238/* FIXME: Include the comments suggested by Paul. */
7239#ifndef __cplusplus
7240 /* Ultrix mips cc rejects this. */
7241 typedef int charset[2];
7242 const charset cs;
7243 /* SunOS 4.1.1 cc rejects this. */
7244 char const *const *pcpcc;
7245 char **ppc;
7246 /* NEC SVR4.0.2 mips cc rejects this. */
7247 struct point {int x, y;};
7248 static struct point const zero = {0,0};
7249 /* AIX XL C 1.02.0.0 rejects this.
7250 It does not let you subtract one const X* pointer from another in
7251 an arm of an if-expression whose if-part is not a constant
7252 expression */
7253 const char *g = "string";
7254 pcpcc = &g + (g ? g-g : 0);
7255 /* HPUX 7.0 cc rejects these. */
7256 ++pcpcc;
7257 ppc = (char**) pcpcc;
7258 pcpcc = (char const *const *) ppc;
7259 { /* SCO 3.2v4 cc rejects this. */
7260 char *t;
7261 char const *s = 0 ? (char *) 0 : (char const *) 0;
7262
7263 *t++ = 0;
7264 if (s) return 0;
7265 }
7266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7267 int x[] = {25, 17};
7268 const int *foo = &x[0];
7269 ++foo;
7270 }
7271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7272 typedef const int *iptr;
7273 iptr p = 0;
7274 ++p;
7275 }
7276 { /* AIX XL C 1.02.0.0 rejects this saying
7277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7278 struct s { int j; const int *ap[3]; };
7279 struct s *b; b->j = 5;
7280 }
7281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7282 const int foo = 10;
7283 if (!foo) return 0;
7284 }
7285 return !cs[0] && !zero.x;
7286#endif
7287
7288 ;
7289 return 0;
7290}
7291_ACEOF
7292rm -f conftest.$ac_objext
7293if { (ac_try="$ac_compile"
7294case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297esac
7298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_cxx_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7309 ac_cv_c_const=yes
7310else
7311 echo "$as_me: failed program was:" >&5
7312sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 ac_cv_c_const=no
7315fi
7316
7317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7318fi
7319{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7320echo "${ECHO_T}$ac_cv_c_const" >&6; }
7321if test $ac_cv_c_const = no; then
7322
7323cat >>confdefs.h <<\_ACEOF
7324#define const
7325_ACEOF
7326
7327fi
7328
7329{ echo "$as_me:$LINENO: checking for inline" >&5
7330echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7331if test "${ac_cv_c_inline+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334 ac_cv_c_inline=no
7335for ac_kw in inline __inline__ __inline; do
7336 cat >conftest.$ac_ext <<_ACEOF
7337/* confdefs.h. */
7338_ACEOF
7339cat confdefs.h >>conftest.$ac_ext
7340cat >>conftest.$ac_ext <<_ACEOF
7341/* end confdefs.h. */
7342#ifndef __cplusplus
7343typedef int foo_t;
7344static $ac_kw foo_t static_foo () {return 0; }
7345$ac_kw foo_t foo () {return 0; }
7346#endif
7347
7348_ACEOF
7349rm -f conftest.$ac_objext
7350if { (ac_try="$ac_compile"
7351case "(($ac_try" in
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7354esac
7355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_cxx_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_c_inline=$ac_kw
7367else
7368 echo "$as_me: failed program was:" >&5
7369sed 's/^/| /' conftest.$ac_ext >&5
7370
7371
7372fi
7373
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 test "$ac_cv_c_inline" != no && break
7376done
7377
7378fi
7379{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7380echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7381
7382
7383case $ac_cv_c_inline in
7384 inline | yes) ;;
7385 *)
7386 case $ac_cv_c_inline in
7387 no) ac_val=;;
7388 *) ac_val=$ac_cv_c_inline;;
7389 esac
7390 cat >>confdefs.h <<_ACEOF
7391#ifndef __cplusplus
7392#define inline $ac_val
7393#endif
7394_ACEOF
7395 ;;
7396esac
7397
7398
7399 7881
7400{ echo "$as_me:$LINENO: checking for mode_t" >&5 7882{ echo "$as_me:$LINENO: checking for mode_t" >&5
7401echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7883echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7402if test "${ac_cv_type_mode_t+set}" = set; then 7884if test "${ac_cv_type_mode_t+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6 7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7560_ACEOF 8042_ACEOF
7561 8043
7562fi 8044fi
7563 8045
7564 8046
7565{ echo "$as_me:$LINENO: checking for short" >&5 8047 { echo "$as_me:$LINENO: checking for int16_t" >&5
7566echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8048echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
7567if test "${ac_cv_type_short+set}" = set; then 8049if test "${ac_cv_c_int16_t+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6 8050 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else 8051else
8052 ac_cv_c_int16_t=no
8053 for ac_type in 'int16_t' 'int' 'long int' \
8054 'long long int' 'short int' 'signed char'; do
7570 cat >conftest.$ac_ext <<_ACEOF 8055 cat >conftest.$ac_ext <<_ACEOF
7571/* confdefs.h. */ 8056/* confdefs.h. */
7572_ACEOF 8057_ACEOF
7573cat confdefs.h >>conftest.$ac_ext 8058cat confdefs.h >>conftest.$ac_ext
7574cat >>conftest.$ac_ext <<_ACEOF 8059cat >>conftest.$ac_ext <<_ACEOF
7575/* end confdefs.h. */ 8060/* end confdefs.h. */
7576$ac_includes_default 8061$ac_includes_default
7577typedef short ac__type_new_;
7578int 8062int
7579main () 8063main ()
7580{ 8064{
7581if ((ac__type_new_ *) 0) 8065static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
7582 return 0; 8066test_array [0] = 0
7583if (sizeof (ac__type_new_)) 8067
7584 return 0;
7585 ; 8068 ;
7586 return 0; 8069 return 0;
7587} 8070}
7588_ACEOF 8071_ACEOF
7589rm -f conftest.$ac_objext 8072rm -f conftest.$ac_objext
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && { 8085 (exit $ac_status); } && {
7603 test -z "$ac_cxx_werror_flag" || 8086 test -z "$ac_cxx_werror_flag" ||
7604 test ! -s conftest.err 8087 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then 8088 } && test -s conftest.$ac_objext; then
7606 ac_cv_type_short=yes
7607else
7608 echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_type_short=no
7612fi
7613
7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615fi
7616{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7617echo "${ECHO_T}$ac_cv_type_short" >&6; }
7618
7619# The cast to long int works around a bug in the HP C Compiler
7620# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7621# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7622# This bug is HP SR number 8606223364.
7623{ echo "$as_me:$LINENO: checking size of short" >&5
7624echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7625if test "${ac_cv_sizeof_short+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 if test "$cross_compiling" = yes; then
7629 # Depending upon the size, compute the lo and hi bounds.
7630cat >conftest.$ac_ext <<_ACEOF 8089 cat >conftest.$ac_ext <<_ACEOF
7631/* confdefs.h. */ 8090/* confdefs.h. */
7632_ACEOF 8091_ACEOF
7633cat confdefs.h >>conftest.$ac_ext 8092cat confdefs.h >>conftest.$ac_ext
7634cat >>conftest.$ac_ext <<_ACEOF 8093cat >>conftest.$ac_ext <<_ACEOF
7635/* end confdefs.h. */ 8094/* end confdefs.h. */
7636$ac_includes_default 8095$ac_includes_default
7637 typedef short ac__type_sizeof_;
7638int 8096int
7639main () 8097main ()
7640{ 8098{
7641static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8099static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8100 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
7642test_array [0] = 0 8101test_array [0] = 0
7643 8102
7644 ; 8103 ;
7645 return 0; 8104 return 0;
7646} 8105}
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && { 8120 (exit $ac_status); } && {
7662 test -z "$ac_cxx_werror_flag" || 8121 test -z "$ac_cxx_werror_flag" ||
7663 test ! -s conftest.err 8122 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then 8123 } && test -s conftest.$ac_objext; then
7665 ac_lo=0 ac_mid=0 8124 :
7666 while :; do 8125else
8126 echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 case $ac_type in
8130 int16_t) ac_cv_c_int16_t=yes ;;
8131 *) ac_cv_c_int16_t=$ac_type ;;
8132esac
8133
8134fi
8135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141
8142fi
8143
8144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 test "$ac_cv_c_int16_t" != no && break
8146 done
8147fi
8148{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8149echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8150 case $ac_cv_c_int16_t in #(
8151 no|yes) ;; #(
8152 *)
8153
8154cat >>confdefs.h <<_ACEOF
8155#define int16_t $ac_cv_c_int16_t
8156_ACEOF
8157;;
8158 esac
8159
8160
8161 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8162echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8163if test "${ac_cv_c_uint16_t+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165else
8166 ac_cv_c_uint16_t=no
8167 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8168 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7667 cat >conftest.$ac_ext <<_ACEOF 8169 cat >conftest.$ac_ext <<_ACEOF
7668/* confdefs.h. */ 8170/* confdefs.h. */
7669_ACEOF 8171_ACEOF
7670cat confdefs.h >>conftest.$ac_ext 8172cat confdefs.h >>conftest.$ac_ext
7671cat >>conftest.$ac_ext <<_ACEOF 8173cat >>conftest.$ac_ext <<_ACEOF
7672/* end confdefs.h. */ 8174/* end confdefs.h. */
7673$ac_includes_default 8175$ac_includes_default
7674 typedef short ac__type_sizeof_;
7675int 8176int
7676main () 8177main ()
7677{ 8178{
7678static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8179static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7679test_array [0] = 0 8180test_array [0] = 0
7680 8181
7681 ; 8182 ;
7682 return 0; 8183 return 0;
7683} 8184}
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && { 8199 (exit $ac_status); } && {
7699 test -z "$ac_cxx_werror_flag" || 8200 test -z "$ac_cxx_werror_flag" ||
7700 test ! -s conftest.err 8201 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then 8202 } && test -s conftest.$ac_objext; then
7702 ac_hi=$ac_mid; break 8203 case $ac_type in
8204 uint16_t) ac_cv_c_uint16_t=yes ;;
8205 *) ac_cv_c_uint16_t=$ac_type ;;
8206esac
8207
7703else 8208else
7704 echo "$as_me: failed program was:" >&5 8209 echo "$as_me: failed program was:" >&5
7705sed 's/^/| /' conftest.$ac_ext >&5 8210sed 's/^/| /' conftest.$ac_ext >&5
7706 8211
7707 ac_lo=`expr $ac_mid + 1` 8212
7708 if test $ac_lo -le $ac_mid; then
7709 ac_lo= ac_hi=
7710 break
7711 fi
7712 ac_mid=`expr 2 '*' $ac_mid + 1`
7713fi 8213fi
7714 8214
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 test "$ac_cv_c_uint16_t" != no && break
7716 done 8217 done
7717else 8218fi
7718 echo "$as_me: failed program was:" >&5 8219{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7719sed 's/^/| /' conftest.$ac_ext >&5 8220echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8221 case $ac_cv_c_uint16_t in #(
8222 no|yes) ;; #(
8223 *)
7720 8224
8225
8226cat >>confdefs.h <<_ACEOF
8227#define uint16_t $ac_cv_c_uint16_t
8228_ACEOF
8229;;
8230 esac
8231
8232
8233 { echo "$as_me:$LINENO: checking for int32_t" >&5
8234echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8235if test "${ac_cv_c_int32_t+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238 ac_cv_c_int32_t=no
8239 for ac_type in 'int32_t' 'int' 'long int' \
8240 'long long int' 'short int' 'signed char'; do
7721 cat >conftest.$ac_ext <<_ACEOF 8241 cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h. */ 8242/* confdefs.h. */
7723_ACEOF 8243_ACEOF
7724cat confdefs.h >>conftest.$ac_ext 8244cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF 8245cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h. */ 8246/* end confdefs.h. */
7727$ac_includes_default 8247$ac_includes_default
7728 typedef short ac__type_sizeof_;
7729int 8248int
7730main () 8249main ()
7731{ 8250{
7732static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8251static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7733test_array [0] = 0 8252test_array [0] = 0
7734 8253
7735 ; 8254 ;
7736 return 0; 8255 return 0;
7737} 8256}
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && { 8271 (exit $ac_status); } && {
7753 test -z "$ac_cxx_werror_flag" || 8272 test -z "$ac_cxx_werror_flag" ||
7754 test ! -s conftest.err 8273 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then 8274 } && test -s conftest.$ac_objext; then
7756 ac_hi=-1 ac_mid=-1
7757 while :; do
7758 cat >conftest.$ac_ext <<_ACEOF 8275 cat >conftest.$ac_ext <<_ACEOF
7759/* confdefs.h. */ 8276/* confdefs.h. */
7760_ACEOF 8277_ACEOF
7761cat confdefs.h >>conftest.$ac_ext 8278cat confdefs.h >>conftest.$ac_ext
7762cat >>conftest.$ac_ext <<_ACEOF 8279cat >>conftest.$ac_ext <<_ACEOF
7763/* end confdefs.h. */ 8280/* end confdefs.h. */
7764$ac_includes_default 8281$ac_includes_default
7765 typedef short ac__type_sizeof_;
7766int 8282int
7767main () 8283main ()
7768{ 8284{
7769static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8285static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8286 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7770test_array [0] = 0 8287test_array [0] = 0
7771 8288
7772 ; 8289 ;
7773 return 0; 8290 return 0;
7774} 8291}
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } && { 8306 (exit $ac_status); } && {
7790 test -z "$ac_cxx_werror_flag" || 8307 test -z "$ac_cxx_werror_flag" ||
7791 test ! -s conftest.err 8308 test ! -s conftest.err
7792 } && test -s conftest.$ac_objext; then 8309 } && test -s conftest.$ac_objext; then
7793 ac_lo=$ac_mid; break 8310 :
7794else 8311else
7795 echo "$as_me: failed program was:" >&5 8312 echo "$as_me: failed program was:" >&5
7796sed 's/^/| /' conftest.$ac_ext >&5 8313sed 's/^/| /' conftest.$ac_ext >&5
7797 8314
7798 ac_hi=`expr '(' $ac_mid ')' - 1` 8315 case $ac_type in
7799 if test $ac_mid -le $ac_hi; then 8316 int32_t) ac_cv_c_int32_t=yes ;;
7800 ac_lo= ac_hi= 8317 *) ac_cv_c_int32_t=$ac_type ;;
7801 break 8318esac
7802 fi 8319
7803 ac_mid=`expr 2 '*' $ac_mid`
7804fi 8320fi
7805 8321
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807 done
7808else 8323else
7809 echo "$as_me: failed program was:" >&5 8324 echo "$as_me: failed program was:" >&5
7810sed 's/^/| /' conftest.$ac_ext >&5 8325sed 's/^/| /' conftest.$ac_ext >&5
7811 8326
7812 ac_lo= ac_hi= 8327
7813fi 8328fi
7814 8329
7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 test "$ac_cv_c_int32_t" != no && break
8332 done
7816fi 8333fi
8334{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8335echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8336 case $ac_cv_c_int32_t in #(
8337 no|yes) ;; #(
8338 *)
7817 8339
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8340cat >>confdefs.h <<_ACEOF
7819# Binary search between lo and hi bounds. 8341#define int32_t $ac_cv_c_int32_t
7820while test "x$ac_lo" != "x$ac_hi"; do 8342_ACEOF
7821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8343;;
8344 esac
8345
8346
8347 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8348echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8349if test "${ac_cv_c_uint32_t+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352 ac_cv_c_uint32_t=no
8353 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8354 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7822 cat >conftest.$ac_ext <<_ACEOF 8355 cat >conftest.$ac_ext <<_ACEOF
7823/* confdefs.h. */ 8356/* confdefs.h. */
7824_ACEOF 8357_ACEOF
7825cat confdefs.h >>conftest.$ac_ext 8358cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF 8359cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h. */ 8360/* end confdefs.h. */
7828$ac_includes_default 8361$ac_includes_default
7829 typedef short ac__type_sizeof_;
7830int 8362int
7831main () 8363main ()
7832{ 8364{
7833static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8365static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7834test_array [0] = 0 8366test_array [0] = 0
7835 8367
7836 ; 8368 ;
7837 return 0; 8369 return 0;
7838} 8370}
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { 8385 (exit $ac_status); } && {
7854 test -z "$ac_cxx_werror_flag" || 8386 test -z "$ac_cxx_werror_flag" ||
7855 test ! -s conftest.err 8387 test ! -s conftest.err
7856 } && test -s conftest.$ac_objext; then 8388 } && test -s conftest.$ac_objext; then
7857 ac_hi=$ac_mid 8389 case $ac_type in
8390 uint32_t) ac_cv_c_uint32_t=yes ;;
8391 *) ac_cv_c_uint32_t=$ac_type ;;
8392esac
8393
7858else 8394else
7859 echo "$as_me: failed program was:" >&5 8395 echo "$as_me: failed program was:" >&5
7860sed 's/^/| /' conftest.$ac_ext >&5 8396sed 's/^/| /' conftest.$ac_ext >&5
7861 8397
7862 ac_lo=`expr '(' $ac_mid ')' + 1` 8398
7863fi 8399fi
7864 8400
7865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866done 8402 test "$ac_cv_c_uint32_t" != no && break
7867case $ac_lo in 8403 done
7868?*) ac_cv_sizeof_short=$ac_lo;;
7869'') if test "$ac_cv_type_short" = yes; then
7870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7871See \`config.log' for more details." >&5
7872echo "$as_me: error: cannot compute sizeof (short)
7873See \`config.log' for more details." >&2;}
7874 { (exit 77); exit 77; }; }
7875 else
7876 ac_cv_sizeof_short=0
7877 fi ;;
7878esac
7879else
7880 cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
7886$ac_includes_default
7887 typedef short ac__type_sizeof_;
7888static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7889static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7890#include <stdio.h>
7891#include <stdlib.h>
7892int
7893main ()
7894{
7895
7896 FILE *f = fopen ("conftest.val", "w");
7897 if (! f)
7898 return 1;
7899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7900 {
7901 long int i = longval ();
7902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7903 return 1;
7904 fprintf (f, "%ld\n", i);
7905 }
7906 else
7907 {
7908 unsigned long int i = ulongval ();
7909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7910 return 1;
7911 fprintf (f, "%lu\n", i);
7912 }
7913 return ferror (f) || fclose (f) != 0;
7914
7915 ;
7916 return 0;
7917}
7918_ACEOF
7919rm -f conftest$ac_exeext
7920if { (ac_try="$ac_link"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_try") 2>&5
7936 ac_status=$?
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_sizeof_short=`cat conftest.val`
7940else
7941 echo "$as_me: program exited with status $ac_status" >&5
7942echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945( exit $ac_status )
7946if test "$ac_cv_type_short" = yes; then
7947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7948See \`config.log' for more details." >&5
7949echo "$as_me: error: cannot compute sizeof (short)
7950See \`config.log' for more details." >&2;}
7951 { (exit 77); exit 77; }; }
7952 else
7953 ac_cv_sizeof_short=0
7954 fi
7955fi 8404fi
7956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7957fi
7958rm -f conftest.val
7959fi
7960{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8405{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7961echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8406echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8407 case $ac_cv_c_uint32_t in #(
8408 no|yes) ;; #(
8409 *)
7962 8410
8411cat >>confdefs.h <<\_ACEOF
8412#define _UINT32_T 1
8413_ACEOF
7963 8414
7964 8415
7965cat >>confdefs.h <<_ACEOF 8416cat >>confdefs.h <<_ACEOF
7966#define SIZEOF_SHORT $ac_cv_sizeof_short 8417#define uint32_t $ac_cv_c_uint32_t
7967_ACEOF 8418_ACEOF
7968 8419;;
7969
7970{ echo "$as_me:$LINENO: checking for int" >&5
7971echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7972if test "${ac_cv_type_int+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 cat >conftest.$ac_ext <<_ACEOF
7976/* confdefs.h. */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h. */
7981$ac_includes_default
7982typedef int ac__type_new_;
7983int
7984main ()
7985{
7986if ((ac__type_new_ *) 0)
7987 return 0;
7988if (sizeof (ac__type_new_))
7989 return 0;
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext
7995if { (ac_try="$ac_compile"
7996case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999esac 8420 esac
8000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_cxx_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8011 ac_cv_type_int=yes
8012else
8013 echo "$as_me: failed program was:" >&5
8014sed 's/^/| /' conftest.$ac_ext >&5
8015 8421
8016 ac_cv_type_int=no
8017fi
8018 8422
8019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020fi
8021{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8022echo "${ECHO_T}$ac_cv_type_int" >&6; }
8023 8423
8024# The cast to long int works around a bug in the HP C Compiler
8025# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8026# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8027# This bug is HP SR number 8606223364.
8028{ echo "$as_me:$LINENO: checking size of int" >&5
8029echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8030if test "${ac_cv_sizeof_int+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033 if test "$cross_compiling" = yes; then
8034 # Depending upon the size, compute the lo and hi bounds.
8035cat >conftest.$ac_ext <<_ACEOF
8036/* confdefs.h. */
8037_ACEOF
8038cat confdefs.h >>conftest.$ac_ext
8039cat >>conftest.$ac_ext <<_ACEOF
8040/* end confdefs.h. */
8041$ac_includes_default
8042 typedef int ac__type_sizeof_;
8043int
8044main ()
8045{
8046static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8047test_array [0] = 0
8048
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext
8054if { (ac_try="$ac_compile"
8055case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058esac
8059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_cxx_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_lo=0 ac_mid=0
8071 while :; do
8072 cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078$ac_includes_default
8079 typedef int ac__type_sizeof_;
8080int
8081main ()
8082{
8083static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8084test_array [0] = 0
8085
8086 ;
8087 return 0;
8088}
8089_ACEOF
8090rm -f conftest.$ac_objext
8091if { (ac_try="$ac_compile"
8092case "(($ac_try" in
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8095esac
8096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8098 ac_status=$?
8099 grep -v '^ *+' conftest.er1 >conftest.err
8100 rm -f conftest.er1
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_cxx_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_hi=$ac_mid; break
8108else
8109 echo "$as_me: failed program was:" >&5
8110sed 's/^/| /' conftest.$ac_ext >&5
8111
8112 ac_lo=`expr $ac_mid + 1`
8113 if test $ac_lo -le $ac_mid; then
8114 ac_lo= ac_hi=
8115 break
8116 fi
8117 ac_mid=`expr 2 '*' $ac_mid + 1`
8118fi
8119
8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 done
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 cat >conftest.$ac_ext <<_ACEOF
8127/* confdefs.h. */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
8131/* end confdefs.h. */
8132$ac_includes_default
8133 typedef int ac__type_sizeof_;
8134int
8135main ()
8136{
8137static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8138test_array [0] = 0
8139
8140 ;
8141 return 0;
8142}
8143_ACEOF
8144rm -f conftest.$ac_objext
8145if { (ac_try="$ac_compile"
8146case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149esac
8150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_cxx_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_hi=-1 ac_mid=-1
8162 while :; do
8163 cat >conftest.$ac_ext <<_ACEOF
8164/* confdefs.h. */
8165_ACEOF
8166cat confdefs.h >>conftest.$ac_ext
8167cat >>conftest.$ac_ext <<_ACEOF
8168/* end confdefs.h. */
8169$ac_includes_default
8170 typedef int ac__type_sizeof_;
8171int
8172main ()
8173{
8174static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8175test_array [0] = 0
8176
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181rm -f conftest.$ac_objext
8182if { (ac_try="$ac_compile"
8183case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_cxx_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 ac_lo=$ac_mid; break
8199else
8200 echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
8203 ac_hi=`expr '(' $ac_mid ')' - 1`
8204 if test $ac_mid -le $ac_hi; then
8205 ac_lo= ac_hi=
8206 break
8207 fi
8208 ac_mid=`expr 2 '*' $ac_mid`
8209fi
8210
8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 done
8213else
8214 echo "$as_me: failed program was:" >&5
8215sed 's/^/| /' conftest.$ac_ext >&5
8216
8217 ac_lo= ac_hi=
8218fi
8219
8220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221fi
8222
8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224# Binary search between lo and hi bounds.
8225while test "x$ac_lo" != "x$ac_hi"; do
8226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8227 cat >conftest.$ac_ext <<_ACEOF
8228/* confdefs.h. */
8229_ACEOF
8230cat confdefs.h >>conftest.$ac_ext
8231cat >>conftest.$ac_ext <<_ACEOF
8232/* end confdefs.h. */
8233$ac_includes_default
8234 typedef int ac__type_sizeof_;
8235int
8236main ()
8237{
8238static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8239test_array [0] = 0
8240
8241 ;
8242 return 0;
8243}
8244_ACEOF
8245rm -f conftest.$ac_objext
8246if { (ac_try="$ac_compile"
8247case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250esac
8251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_cxx_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 ac_hi=$ac_mid
8263else
8264 echo "$as_me: failed program was:" >&5
8265sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ac_lo=`expr '(' $ac_mid ')' + 1`
8268fi
8269
8270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8271done
8272case $ac_lo in
8273?*) ac_cv_sizeof_int=$ac_lo;;
8274'') if test "$ac_cv_type_int" = yes; then
8275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8276See \`config.log' for more details." >&5
8277echo "$as_me: error: cannot compute sizeof (int)
8278See \`config.log' for more details." >&2;}
8279 { (exit 77); exit 77; }; }
8280 else
8281 ac_cv_sizeof_int=0
8282 fi ;;
8283esac
8284else
8285 cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291$ac_includes_default
8292 typedef int ac__type_sizeof_;
8293static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8294static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8295#include <stdio.h>
8296#include <stdlib.h>
8297int
8298main ()
8299{
8300
8301 FILE *f = fopen ("conftest.val", "w");
8302 if (! f)
8303 return 1;
8304 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8305 {
8306 long int i = longval ();
8307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8308 return 1;
8309 fprintf (f, "%ld\n", i);
8310 }
8311 else
8312 {
8313 unsigned long int i = ulongval ();
8314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8315 return 1;
8316 fprintf (f, "%lu\n", i);
8317 }
8318 return ferror (f) || fclose (f) != 0;
8319
8320 ;
8321 return 0;
8322}
8323_ACEOF
8324rm -f conftest$ac_exeext
8325if { (ac_try="$ac_link"
8326case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329esac
8330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_link") 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_sizeof_int=`cat conftest.val`
8345else
8346 echo "$as_me: program exited with status $ac_status" >&5
8347echo "$as_me: failed program was:" >&5
8348sed 's/^/| /' conftest.$ac_ext >&5
8349
8350( exit $ac_status )
8351if test "$ac_cv_type_int" = yes; then
8352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8353See \`config.log' for more details." >&5
8354echo "$as_me: error: cannot compute sizeof (int)
8355See \`config.log' for more details." >&2;}
8356 { (exit 77); exit 77; }; }
8357 else
8358 ac_cv_sizeof_int=0
8359 fi
8360fi
8361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8362fi
8363rm -f conftest.val
8364fi
8365{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8366echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8367
8368
8369
8370cat >>confdefs.h <<_ACEOF
8371#define SIZEOF_INT $ac_cv_sizeof_int
8372_ACEOF
8373
8374
8375{ echo "$as_me:$LINENO: checking for long long" >&5
8376echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8377if test "${ac_cv_type_long_long+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380 cat >conftest.$ac_ext <<_ACEOF
8381/* confdefs.h. */
8382_ACEOF
8383cat confdefs.h >>conftest.$ac_ext
8384cat >>conftest.$ac_ext <<_ACEOF
8385/* end confdefs.h. */
8386$ac_includes_default
8387typedef long long ac__type_new_;
8388int
8389main ()
8390{
8391if ((ac__type_new_ *) 0)
8392 return 0;
8393if (sizeof (ac__type_new_))
8394 return 0;
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext
8400if { (ac_try="$ac_compile"
8401case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_cxx_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_cv_type_long_long=yes
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421 ac_cv_type_long_long=no
8422fi
8423
8424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425fi
8426{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8427echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8428
8429# The cast to long int works around a bug in the HP C Compiler
8430# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432# This bug is HP SR number 8606223364.
8433{ echo "$as_me:$LINENO: checking size of long long" >&5
8434echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8435if test "${ac_cv_sizeof_long_long+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438 if test "$cross_compiling" = yes; then
8439 # Depending upon the size, compute the lo and hi bounds.
8440cat >conftest.$ac_ext <<_ACEOF
8441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
8446$ac_includes_default
8447 typedef long long ac__type_sizeof_;
8448int
8449main ()
8450{
8451static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8452test_array [0] = 0
8453
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext
8459if { (ac_try="$ac_compile"
8460case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463esac
8464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_cxx_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_lo=0 ac_mid=0
8476 while :; do
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483$ac_includes_default
8484 typedef long long ac__type_sizeof_;
8485int
8486main ()
8487{
8488static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8489test_array [0] = 0
8490
8491 ;
8492 return 0;
8493}
8494_ACEOF
8495rm -f conftest.$ac_objext
8496if { (ac_try="$ac_compile"
8497case "(($ac_try" in
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8500esac
8501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8503 ac_status=$?
8504 grep -v '^ *+' conftest.er1 >conftest.err
8505 rm -f conftest.er1
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_cxx_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_hi=$ac_mid; break
8513else
8514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_lo=`expr $ac_mid + 1`
8518 if test $ac_lo -le $ac_mid; then
8519 ac_lo= ac_hi=
8520 break
8521 fi
8522 ac_mid=`expr 2 '*' $ac_mid + 1`
8523fi
8524
8525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 done
8527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
8537$ac_includes_default
8538 typedef long long ac__type_sizeof_;
8539int
8540main ()
8541{
8542static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8543test_array [0] = 0
8544
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext
8550if { (ac_try="$ac_compile"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8557 ac_status=$?
8558 grep -v '^ *+' conftest.er1 >conftest.err
8559 rm -f conftest.er1
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_cxx_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8566 ac_hi=-1 ac_mid=-1
8567 while :; do
8568 cat >conftest.$ac_ext <<_ACEOF
8569/* confdefs.h. */
8570_ACEOF
8571cat confdefs.h >>conftest.$ac_ext
8572cat >>conftest.$ac_ext <<_ACEOF
8573/* end confdefs.h. */
8574$ac_includes_default
8575 typedef long long ac__type_sizeof_;
8576int
8577main ()
8578{
8579static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8580test_array [0] = 0
8581
8582 ;
8583 return 0;
8584}
8585_ACEOF
8586rm -f conftest.$ac_objext
8587if { (ac_try="$ac_compile"
8588case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591esac
8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_cxx_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_lo=$ac_mid; break
8604else
8605 echo "$as_me: failed program was:" >&5
8606sed 's/^/| /' conftest.$ac_ext >&5
8607
8608 ac_hi=`expr '(' $ac_mid ')' - 1`
8609 if test $ac_mid -le $ac_hi; then
8610 ac_lo= ac_hi=
8611 break
8612 fi
8613 ac_mid=`expr 2 '*' $ac_mid`
8614fi
8615
8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 done
8618else
8619 echo "$as_me: failed program was:" >&5
8620sed 's/^/| /' conftest.$ac_ext >&5
8621
8622 ac_lo= ac_hi=
8623fi
8624
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626fi
8627
8628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629# Binary search between lo and hi bounds.
8630while test "x$ac_lo" != "x$ac_hi"; do
8631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8632 cat >conftest.$ac_ext <<_ACEOF
8633/* confdefs.h. */
8634_ACEOF
8635cat confdefs.h >>conftest.$ac_ext
8636cat >>conftest.$ac_ext <<_ACEOF
8637/* end confdefs.h. */
8638$ac_includes_default
8639 typedef long long ac__type_sizeof_;
8640int
8641main ()
8642{
8643static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8644test_array [0] = 0
8645
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650rm -f conftest.$ac_objext
8651if { (ac_try="$ac_compile"
8652case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655esac
8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_cxx_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_hi=$ac_mid
8668else
8669 echo "$as_me: failed program was:" >&5
8670sed 's/^/| /' conftest.$ac_ext >&5
8671
8672 ac_lo=`expr '(' $ac_mid ')' + 1`
8673fi
8674
8675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676done
8677case $ac_lo in
8678?*) ac_cv_sizeof_long_long=$ac_lo;;
8679'') if test "$ac_cv_type_long_long" = yes; then
8680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8681See \`config.log' for more details." >&5
8682echo "$as_me: error: cannot compute sizeof (long long)
8683See \`config.log' for more details." >&2;}
8684 { (exit 77); exit 77; }; }
8685 else
8686 ac_cv_sizeof_long_long=0
8687 fi ;;
8688esac
8689else
8690 cat >conftest.$ac_ext <<_ACEOF
8691/* confdefs.h. */
8692_ACEOF
8693cat confdefs.h >>conftest.$ac_ext
8694cat >>conftest.$ac_ext <<_ACEOF
8695/* end confdefs.h. */
8696$ac_includes_default
8697 typedef long long ac__type_sizeof_;
8698static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8699static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8700#include <stdio.h>
8701#include <stdlib.h>
8702int
8703main ()
8704{
8705
8706 FILE *f = fopen ("conftest.val", "w");
8707 if (! f)
8708 return 1;
8709 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8710 {
8711 long int i = longval ();
8712 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8713 return 1;
8714 fprintf (f, "%ld\n", i);
8715 }
8716 else
8717 {
8718 unsigned long int i = ulongval ();
8719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8720 return 1;
8721 fprintf (f, "%lu\n", i);
8722 }
8723 return ferror (f) || fclose (f) != 0;
8724
8725 ;
8726 return 0;
8727}
8728_ACEOF
8729rm -f conftest$ac_exeext
8730if { (ac_try="$ac_link"
8731case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_link") 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_sizeof_long_long=`cat conftest.val`
8750else
8751 echo "$as_me: program exited with status $ac_status" >&5
8752echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
8755( exit $ac_status )
8756if test "$ac_cv_type_long_long" = yes; then
8757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8758See \`config.log' for more details." >&5
8759echo "$as_me: error: cannot compute sizeof (long long)
8760See \`config.log' for more details." >&2;}
8761 { (exit 77); exit 77; }; }
8762 else
8763 ac_cv_sizeof_long_long=0
8764 fi
8765fi
8766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8767fi
8768rm -f conftest.val
8769fi
8770{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8771echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8772
8773
8774
8775cat >>confdefs.h <<_ACEOF
8776#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8777_ACEOF
8778
8779
8780{ echo "$as_me:$LINENO: checking for int *" >&5
8781echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
8782if test "${ac_cv_type_int_p+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785 cat >conftest.$ac_ext <<_ACEOF
8786/* confdefs.h. */
8787_ACEOF
8788cat confdefs.h >>conftest.$ac_ext
8789cat >>conftest.$ac_ext <<_ACEOF
8790/* end confdefs.h. */
8791$ac_includes_default
8792typedef int * ac__type_new_;
8793int
8794main ()
8795{
8796if ((ac__type_new_ *) 0)
8797 return 0;
8798if (sizeof (ac__type_new_))
8799 return 0;
8800 ;
8801 return 0;
8802}
8803_ACEOF
8804rm -f conftest.$ac_objext
8805if { (ac_try="$ac_compile"
8806case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809esac
8810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_compile") 2>conftest.er1
8812 ac_status=$?
8813 grep -v '^ *+' conftest.er1 >conftest.err
8814 rm -f conftest.er1
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && {
8818 test -z "$ac_cxx_werror_flag" ||
8819 test ! -s conftest.err
8820 } && test -s conftest.$ac_objext; then
8821 ac_cv_type_int_p=yes
8822else
8823 echo "$as_me: failed program was:" >&5
8824sed 's/^/| /' conftest.$ac_ext >&5
8825
8826 ac_cv_type_int_p=no
8827fi
8828
8829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830fi
8831{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8832echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
8833
8834# The cast to long int works around a bug in the HP C Compiler
8835# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8836# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8837# This bug is HP SR number 8606223364.
8838{ echo "$as_me:$LINENO: checking size of int *" >&5
8839echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
8840if test "${ac_cv_sizeof_int_p+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8842else
8843 if test "$cross_compiling" = yes; then
8844 # Depending upon the size, compute the lo and hi bounds.
8845cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h. */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h. */
8851$ac_includes_default
8852 typedef int * ac__type_sizeof_;
8853int
8854main ()
8855{
8856static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8857test_array [0] = 0
8858
8859 ;
8860 return 0;
8861}
8862_ACEOF
8863rm -f conftest.$ac_objext
8864if { (ac_try="$ac_compile"
8865case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868esac
8869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_cxx_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_lo=0 ac_mid=0
8881 while :; do
8882 cat >conftest.$ac_ext <<_ACEOF
8883/* confdefs.h. */
8884_ACEOF
8885cat confdefs.h >>conftest.$ac_ext
8886cat >>conftest.$ac_ext <<_ACEOF
8887/* end confdefs.h. */
8888$ac_includes_default
8889 typedef int * ac__type_sizeof_;
8890int
8891main ()
8892{
8893static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8894test_array [0] = 0
8895
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900rm -f conftest.$ac_objext
8901if { (ac_try="$ac_compile"
8902case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_cxx_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8917 ac_hi=$ac_mid; break
8918else
8919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 ac_lo=`expr $ac_mid + 1`
8923 if test $ac_lo -le $ac_mid; then
8924 ac_lo= ac_hi=
8925 break
8926 fi
8927 ac_mid=`expr 2 '*' $ac_mid + 1`
8928fi
8929
8930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 done
8932else
8933 echo "$as_me: failed program was:" >&5
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936 cat >conftest.$ac_ext <<_ACEOF
8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
8942$ac_includes_default
8943 typedef int * ac__type_sizeof_;
8944int
8945main ()
8946{
8947static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8948test_array [0] = 0
8949
8950 ;
8951 return 0;
8952}
8953_ACEOF
8954rm -f conftest.$ac_objext
8955if { (ac_try="$ac_compile"
8956case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959esac
8960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_cxx_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8971 ac_hi=-1 ac_mid=-1
8972 while :; do
8973 cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
8979$ac_includes_default
8980 typedef int * ac__type_sizeof_;
8981int
8982main ()
8983{
8984static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8985test_array [0] = 0
8986
8987 ;
8988 return 0;
8989}
8990_ACEOF
8991rm -f conftest.$ac_objext
8992if { (ac_try="$ac_compile"
8993case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
8997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_compile") 2>conftest.er1
8999 ac_status=$?
9000 grep -v '^ *+' conftest.er1 >conftest.err
9001 rm -f conftest.er1
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_cxx_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest.$ac_objext; then
9008 ac_lo=$ac_mid; break
9009else
9010 echo "$as_me: failed program was:" >&5
9011sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 ac_hi=`expr '(' $ac_mid ')' - 1`
9014 if test $ac_mid -le $ac_hi; then
9015 ac_lo= ac_hi=
9016 break
9017 fi
9018 ac_mid=`expr 2 '*' $ac_mid`
9019fi
9020
9021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9022 done
9023else
9024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 ac_lo= ac_hi=
9028fi
9029
9030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031fi
9032
9033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034# Binary search between lo and hi bounds.
9035while test "x$ac_lo" != "x$ac_hi"; do
9036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9037 cat >conftest.$ac_ext <<_ACEOF
9038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043$ac_includes_default
9044 typedef int * ac__type_sizeof_;
9045int
9046main ()
9047{
9048static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9049test_array [0] = 0
9050
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext
9056if { (ac_try="$ac_compile"
9057case "(($ac_try" in
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9060esac
9061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_compile") 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_cxx_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest.$ac_objext; then
9072 ac_hi=$ac_mid
9073else
9074 echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
9077 ac_lo=`expr '(' $ac_mid ')' + 1`
9078fi
9079
9080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081done
9082case $ac_lo in
9083?*) ac_cv_sizeof_int_p=$ac_lo;;
9084'') if test "$ac_cv_type_int_p" = yes; then
9085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9086See \`config.log' for more details." >&5
9087echo "$as_me: error: cannot compute sizeof (int *)
9088See \`config.log' for more details." >&2;}
9089 { (exit 77); exit 77; }; }
9090 else
9091 ac_cv_sizeof_int_p=0
9092 fi ;;
9093esac
9094else
9095 cat >conftest.$ac_ext <<_ACEOF
9096/* confdefs.h. */
9097_ACEOF
9098cat confdefs.h >>conftest.$ac_ext
9099cat >>conftest.$ac_ext <<_ACEOF
9100/* end confdefs.h. */
9101$ac_includes_default
9102 typedef int * ac__type_sizeof_;
9103static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9104static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9105#include <stdio.h>
9106#include <stdlib.h>
9107int
9108main ()
9109{
9110
9111 FILE *f = fopen ("conftest.val", "w");
9112 if (! f)
9113 return 1;
9114 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9115 {
9116 long int i = longval ();
9117 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9118 return 1;
9119 fprintf (f, "%ld\n", i);
9120 }
9121 else
9122 {
9123 unsigned long int i = ulongval ();
9124 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9125 return 1;
9126 fprintf (f, "%lu\n", i);
9127 }
9128 return ferror (f) || fclose (f) != 0;
9129
9130 ;
9131 return 0;
9132}
9133_ACEOF
9134rm -f conftest$ac_exeext
9135if { (ac_try="$ac_link"
9136case "(($ac_try" in
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9139esac
9140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9145 { (case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9148esac
9149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_try") 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_sizeof_int_p=`cat conftest.val`
9155else
9156 echo "$as_me: program exited with status $ac_status" >&5
9157echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
9160( exit $ac_status )
9161if test "$ac_cv_type_int_p" = yes; then
9162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9163See \`config.log' for more details." >&5
9164echo "$as_me: error: cannot compute sizeof (int *)
9165See \`config.log' for more details." >&2;}
9166 { (exit 77); exit 77; }; }
9167 else
9168 ac_cv_sizeof_int_p=0
9169 fi
9170fi
9171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9172fi
9173rm -f conftest.val
9174fi
9175{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9176echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9177
9178
9179
9180cat >>confdefs.h <<_ACEOF
9181#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9182_ACEOF
9183
9184
9185
9186
9187{ echo "$as_me:$LINENO: checking for int16_t" >&5
9188echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9189if test "${rxvt_cv_int16_t+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192 cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h. */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
9197/* end confdefs.h. */
9198#include <stdint.h>
9199int
9200main ()
9201{
9202int16_t dummy;
9203 ;
9204 return 0;
9205}
9206_ACEOF
9207rm -f conftest.$ac_objext
9208if { (ac_try="$ac_compile"
9209case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212esac
9213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9215 ac_status=$?
9216 grep -v '^ *+' conftest.er1 >conftest.err
9217 rm -f conftest.er1
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } && {
9221 test -z "$ac_cxx_werror_flag" ||
9222 test ! -s conftest.err
9223 } && test -s conftest.$ac_objext; then
9224 rxvt_cv_int16_t=yes
9225else
9226 echo "$as_me: failed program was:" >&5
9227sed 's/^/| /' conftest.$ac_ext >&5
9228
9229 if test "$ac_cv_sizeof_char" -ge 2; then
9230 rxvt_cv_int16_t=" char"
9231else
9232 if test "$ac_cv_sizeof_short" -ge 2; then
9233 rxvt_cv_int16_t=" short"
9234 else
9235 if test "$ac_cv_sizeof_int" -ge 2; then
9236 rxvt_cv_int16_t=" int"
9237 else
9238 if test "$ac_cv_sizeof_long" -ge 2; then
9239 rxvt_cv_int16_t=" long"
9240 else
9241 if test "$ac_cv_sizeof_long_long" -ge 2; then
9242 rxvt_cv_int16_t=" long long"
9243 else
9244 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9245 fi
9246 fi
9247 fi
9248 fi
9249fi
9250fi
9251
9252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9253fi
9254{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9255echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9256if test x"$rxvt_cv_int16_t" != xyes; then
9257 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9258else
9259 if test x"" = x; then
9260 rxvt_int16_typedef="/* typedef short int16_t; */"
9261 else
9262 rxvt_int16_typedef="/* typedef short int16_t; */"
9263 fi
9264fi
9265
9266{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9267echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9268if test "${rxvt_cv_uint16_t+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
9271 cat >conftest.$ac_ext <<_ACEOF
9272/* confdefs.h. */
9273_ACEOF
9274cat confdefs.h >>conftest.$ac_ext
9275cat >>conftest.$ac_ext <<_ACEOF
9276/* end confdefs.h. */
9277#include <stdint.h>
9278int
9279main ()
9280{
9281uint16_t dummy;
9282 ;
9283 return 0;
9284}
9285_ACEOF
9286rm -f conftest.$ac_objext
9287if { (ac_try="$ac_compile"
9288case "(($ac_try" in
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9291esac
9292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_compile") 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_cxx_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest.$ac_objext; then
9303 rxvt_cv_uint16_t=yes
9304else
9305 echo "$as_me: failed program was:" >&5
9306sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 if test "$ac_cv_sizeof_char" -ge 2; then
9309 rxvt_cv_uint16_t="unsigned char"
9310else
9311 if test "$ac_cv_sizeof_short" -ge 2; then
9312 rxvt_cv_uint16_t="unsigned short"
9313 else
9314 if test "$ac_cv_sizeof_int" -ge 2; then
9315 rxvt_cv_uint16_t="unsigned int"
9316 else
9317 if test "$ac_cv_sizeof_long" -ge 2; then
9318 rxvt_cv_uint16_t="unsigned long"
9319 else
9320 if test "$ac_cv_sizeof_long_long" -ge 2; then
9321 rxvt_cv_uint16_t="unsigned long long"
9322 else
9323 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9324 fi
9325 fi
9326 fi
9327 fi
9328fi
9329fi
9330
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332fi
9333{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9334echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9335if test x"$rxvt_cv_uint16_t" != xyes; then
9336 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9337else
9338 if test x"unsigned" = x; then
9339 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9340 else
9341 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9342 fi
9343fi
9344
9345{ echo "$as_me:$LINENO: checking for int32_t" >&5
9346echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9347if test "${rxvt_cv_int32_t+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349else
9350 cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356#include <stdint.h>
9357int
9358main ()
9359{
9360int32_t dummy;
9361 ;
9362 return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext
9366if { (ac_try="$ac_compile"
9367case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370esac
9371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9373 ac_status=$?
9374 grep -v '^ *+' conftest.er1 >conftest.err
9375 rm -f conftest.er1
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_cxx_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.$ac_objext; then
9382 rxvt_cv_int32_t=yes
9383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 if test "$ac_cv_sizeof_char" -ge 4; then
9388 rxvt_cv_int32_t=" char"
9389else
9390 if test "$ac_cv_sizeof_short" -ge 4; then
9391 rxvt_cv_int32_t=" short"
9392 else
9393 if test "$ac_cv_sizeof_int" -ge 4; then
9394 rxvt_cv_int32_t=" int"
9395 else
9396 if test "$ac_cv_sizeof_long" -ge 4; then
9397 rxvt_cv_int32_t=" long"
9398 else
9399 if test "$ac_cv_sizeof_long_long" -ge 4; then
9400 rxvt_cv_int32_t=" long long"
9401 else
9402 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9403 fi
9404 fi
9405 fi
9406 fi
9407fi
9408fi
9409
9410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411fi
9412{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9413echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9414if test x"$rxvt_cv_int32_t" != xyes; then
9415 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9416else
9417 if test x"" = x; then
9418 rxvt_int32_typedef="/* typedef int int32_t; */"
9419 else
9420 rxvt_int32_typedef="/* typedef int int32_t; */"
9421 fi
9422fi
9423
9424{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9425echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9426if test "${rxvt_cv_uint32_t+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428else
9429 cat >conftest.$ac_ext <<_ACEOF
9430/* confdefs.h. */
9431_ACEOF
9432cat confdefs.h >>conftest.$ac_ext
9433cat >>conftest.$ac_ext <<_ACEOF
9434/* end confdefs.h. */
9435#include <stdint.h>
9436int
9437main ()
9438{
9439uint32_t dummy;
9440 ;
9441 return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext
9445if { (ac_try="$ac_compile"
9446case "(($ac_try" in
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9449esac
9450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_compile") 2>conftest.er1
9452 ac_status=$?
9453 grep -v '^ *+' conftest.er1 >conftest.err
9454 rm -f conftest.er1
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_cxx_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest.$ac_objext; then
9461 rxvt_cv_uint32_t=yes
9462else
9463 echo "$as_me: failed program was:" >&5
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
9466 if test "$ac_cv_sizeof_char" -ge 4; then
9467 rxvt_cv_uint32_t="unsigned char"
9468else
9469 if test "$ac_cv_sizeof_short" -ge 4; then
9470 rxvt_cv_uint32_t="unsigned short"
9471 else
9472 if test "$ac_cv_sizeof_int" -ge 4; then
9473 rxvt_cv_uint32_t="unsigned int"
9474 else
9475 if test "$ac_cv_sizeof_long" -ge 4; then
9476 rxvt_cv_uint32_t="unsigned long"
9477 else
9478 if test "$ac_cv_sizeof_long_long" -ge 4; then
9479 rxvt_cv_uint32_t="unsigned long long"
9480 else
9481 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9482 fi
9483 fi
9484 fi
9485 fi
9486fi
9487fi
9488
9489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490fi
9491{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9492echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9493if test x"$rxvt_cv_uint32_t" != xyes; then
9494 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9495else
9496 if test x"unsigned" = x; then
9497 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9498 else
9499 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9500 fi
9501fi
9502
9503if test "$ac_cv_sizeof_int_p" -eq 8; then
9504 rxvt_intp_define="#define intp_t int64_t"
9505 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9506else
9507 if test "$ac_cv_sizeof_int_p" -eq 4; then
9508 rxvt_intp_define="#define intp_t int32_t"
9509 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9510 else
9511 if test "$ac_cv_sizeof_int_p" -eq 2; then
9512 rxvt_intp_define="#define intp_t int16_t"
9513 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9514 else
9515 rxvt_intp_define="#error set intp_t"
9516 rxvt_u_intp_define="#error set u_intp_t"
9517 fi
9518 fi
9519fi
9520
9521
9522
9523{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9524echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9525if test "${ac_cv_type_signal+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 cat >conftest.$ac_ext <<_ACEOF
9529/* confdefs.h. */
9530_ACEOF
9531cat confdefs.h >>conftest.$ac_ext
9532cat >>conftest.$ac_ext <<_ACEOF
9533/* end confdefs.h. */
9534#include <sys/types.h>
9535#include <signal.h>
9536
9537int
9538main ()
9539{
9540return *(signal (0, 0)) (0) == 1;
9541 ;
9542 return 0;
9543}
9544_ACEOF
9545rm -f conftest.$ac_objext
9546if { (ac_try="$ac_compile"
9547case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550esac
9551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_compile") 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_cxx_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest.$ac_objext; then
9562 ac_cv_type_signal=int
9563else
9564 echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 ac_cv_type_signal=void
9568fi
9569
9570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9571fi
9572{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9573echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9574
9575cat >>confdefs.h <<_ACEOF
9576#define RETSIGTYPE $ac_cv_type_signal
9577_ACEOF
9578
9579
9580
9581
9582
9583
9584for ac_func in \ 8424for ac_func in unsetenv
9585 unsetenv \
9586 setutent \
9587 on_exit \
9588
9589do 8425do
9590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9591{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8427{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9593if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8429if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9732 8568
9733 8569
9734 8570
9735 8571
9736for ac_func in \ 8572for ac_func in \
9737 ttyslot \
9738 updwtmp \ 8573 updwtmp \
9739 updwtmpx \ 8574 updwtmpx \
8575 updlastlogx \
9740 8576
9741do 8577do
9742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9743{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11165 10001
11166cat >>confdefs.h <<_ACEOF 10002cat >>confdefs.h <<_ACEOF
11167#define LASTLOG_FILE "$path_lastlog" 10003#define LASTLOG_FILE "$path_lastlog"
11168_ACEOF 10004_ACEOF
11169 10005
11170 if test -d "$path_lastlog"; then
11171
11172cat >>confdefs.h <<\_ACEOF
11173#define LASTLOG_IS_DIR 1
11174_ACEOF
11175
11176 fi
11177fi 10006fi
11178 10007
11179{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5 10008{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11180echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; } 10009echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11181if test "${path_lastlogx+set}" = set; then 10010if test "${path_lastlogx+set}" = set; then
11263 10092
11264fi 10093fi
11265 10094
11266 10095
11267 10096
11268{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11269echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11270if test "${rxvt_cv_path_ttytab+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 for ttys_file in /etc/ttys /etc/ttytab;
11274do
11275 if test -f "$ttys_file" ; then
11276 rxvt_cv_path_ttytab=$ttys_file
11277 break
11278 fi
11279done
11280 10097
11281fi
11282{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11283echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11284if test x$rxvt_cv_path_ttytab != x; then
11285
11286cat >>confdefs.h <<_ACEOF
11287#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11288_ACEOF
11289
11290fi
11291
11292
11293ac_save_LIBS=$LIBS 10098save_LIBS=$LIBS
11294ac_save_CFLAGS=$CFLAGS 10099save_CFLAGS=$CFLAGS
11295CFLAGS="$CFLAGS $X_CFLAGS" 10100CFLAGS="$CFLAGS $X_CFLAGS"
11296LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 10101LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11297if test x$support_xim = xyes; then 10102if test x$support_xim = xyes; then
11298 { echo "$as_me:$LINENO: checking for working Xlocale" >&5 10103 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11299echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 10104echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11474cat >>confdefs.h <<\_ACEOF 10279cat >>confdefs.h <<\_ACEOF
11475#define HAVE_XSETLOCALE 1 10280#define HAVE_XSETLOCALE 1
11476_ACEOF 10281_ACEOF
11477 10282
11478fi 10283fi
11479LIBS=$ac_save_LIBS 10284LIBS=$save_LIBS
11480CFLAGS=$ac_save_CFLAGS 10285CFLAGS=$save_CFLAGS
11481 10286
11482{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 10287{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11483echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 10288echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11484if test "${rxvt_cv_func_setlocale+set}" = set; then 10289if test "${rxvt_cv_func_setlocale+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6 10290 echo $ECHO_N "(cached) $ECHO_C" >&6
12378echo "${ECHO_T}no" >&6; } 11183echo "${ECHO_T}no" >&6; }
12379fi 11184fi
12380 11185
12381 11186
12382 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 11187 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12383 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 11188 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12384 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 11189 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12385 else 11190 else
12386 # Extract the first word of "xft-config", so it can be a program name with args. 11191 # Extract the first word of "xft-config", so it can be a program name with args.
12387set dummy xft-config; ac_word=$2 11192set dummy xft-config; ac_word=$2
12388{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12423echo "${ECHO_T}no" >&6; } 11228echo "${ECHO_T}no" >&6; }
12424fi 11229fi
12425 11230
12426 11231
12427 if test $XFT_CONFIG != no; then 11232 if test $XFT_CONFIG != no; then
12428 LIBS="$LIBS `$XFT_CONFIG --libs`" 11233 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12429 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11234 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12430 fi 11235 fi
12431 fi 11236 fi
12432 11237
11238 save_LIBS="$LIBS"
11239 LIBS="$LIBS $X_LIBS"
12433 11240
12434for ac_header in X11/Xft/Xft.h 11241for ac_header in X11/Xft/Xft.h
12435do 11242do
12436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11243as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12570 support_xft=no 11377 support_xft=no
12571fi 11378fi
12572 11379
12573done 11380done
12574 11381
12575
12576{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11382 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12577echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11383echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12578if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11384if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6 11385 echo $ECHO_N "(cached) $ECHO_C" >&6
12580else 11386else
12581 ac_check_lib_save_LIBS=$LIBS 11387 ac_check_lib_save_LIBS=$LIBS
12633LIBS=$ac_check_lib_save_LIBS 11439LIBS=$ac_check_lib_save_LIBS
12634fi 11440fi
12635{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11441{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12636echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11442echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
12637if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11443if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12638 cat >>confdefs.h <<_ACEOF 11444 :
12639#define HAVE_LIBXFT 1
12640_ACEOF
12641
12642 LIBS="-lXft $LIBS"
12643
12644else 11445else
12645 support_xft=no 11446 support_xft=no
12646fi 11447fi
12647 11448
11449 LIBS="$save_LIBS"
12648 11450
12649 if test x$support_xft = xyes; then 11451 if test x$support_xft = xyes; then
12650 11452
12651cat >>confdefs.h <<\_ACEOF 11453cat >>confdefs.h <<\_ACEOF
12652#define XFT 1 11454#define XFT 1
13039_ACEOF 11841_ACEOF
13040program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11842program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13041rm -f conftest.sed 11843rm -f conftest.sed
13042 11844
13043 11845
13044
13045
13046
13047if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13048 include_stdint_h="#include <stdint.h>"
13049else
13050 include_stdint_h="/* #include <stdint.h> */"
13051fi
13052if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13053 include_stdarg_h="#include <cstdarg>"
13054else
13055 include_stdarg_h="/* #include <cstdarg> */"
13056fi
13057if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13058 include_stdlib_h="#include <cstdlib>"
13059else
13060 include_stdlib_h="/* #include <cstdlib> */"
13061fi
13062if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13063 include_unistd_h="#include <unistd.h>"
13064else
13065 include_unistd_h="/* #include <unistd.h> */"
13066fi
13067if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13068 include_string_h="#include <cstring>"
13069else
13070 include_string_h="/* #include <cstring> */"
13071fi
13072if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13073 include_fcntl_h="#include <fcntl.h>"
13074else
13075 include_fcntl_h="/* #include <fcntl.h> */"
13076fi
13077if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13078 include_util_h="#include <util.h>"
13079else
13080 include_util_h="/* #include <util.h> */"
13081fi
13082if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13083 include_assert_h="#include <assert.h>"
13084else
13085 include_assert_h="/* #include <assert.h> */"
13086fi
13087if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13088 include_sys_ioctl_h="#include <sys/ioctl.h>"
13089else
13090 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13091fi
13092if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13093 include_sys_select_h="#include <sys/select.h>"
13094else
13095 include_sys_select_h="/* #include <sys/select.h> */"
13096fi
13097if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13098 include_sys_strredir_h="#include <sys/strredir.h>"
13099else
13100 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13101fi
13102if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13103 include_sys_time_h="#include <sys/time.h>"
13104else
13105 include_sys_time_h="/* #include <sys/time.h> */"
13106fi
13107if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13108 include_time_h="#include <time.h>"
13109else
13110 include_time_h="/* #include <time.h> */"
13111fi
13112
13113ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11846ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13114 11847
13115cat >confcache <<\_ACEOF 11848cat >confcache <<\_ACEOF
13116# This file is a shell script that caches the results of configure 11849# This file is a shell script that caches the results of configure
13117# tests run on this system so they can be shared between configure 11850# tests run on this system so they can be shared between configure
13118# scripts and configure runs, see configure's option --config-cache. 11851# scripts and configure runs, see configure's option --config-cache.
13667 case $ac_config_target in 12400 case $ac_config_target in
13668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12401 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12402 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13670 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12403 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13671 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12404 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13672 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13673 12405
13674 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13675echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12407echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13676 { (exit 1); exit 1; }; };; 12408 { (exit 1); exit 1; }; };;
13677 esac 12409 esac
13776host_cpu!$host_cpu$ac_delim 12508host_cpu!$host_cpu$ac_delim
13777host_vendor!$host_vendor$ac_delim 12509host_vendor!$host_vendor$ac_delim
13778host_os!$host_os$ac_delim 12510host_os!$host_os$ac_delim
13779VERSION!$VERSION$ac_delim 12511VERSION!$VERSION$ac_delim
13780DATE!$DATE$ac_delim 12512DATE!$DATE$ac_delim
13781LSMDATE!$LSMDATE$ac_delim
13782LIBVERSION!$LIBVERSION$ac_delim
13783CC!$CC$ac_delim 12513CC!$CC$ac_delim
13784CFLAGS!$CFLAGS$ac_delim 12514CFLAGS!$CFLAGS$ac_delim
13785LDFLAGS!$LDFLAGS$ac_delim 12515LDFLAGS!$LDFLAGS$ac_delim
13786CPPFLAGS!$CPPFLAGS$ac_delim 12516CPPFLAGS!$CPPFLAGS$ac_delim
13787ac_ct_CC!$ac_ct_CC$ac_delim 12517ac_ct_CC!$ac_ct_CC$ac_delim
13795INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12525INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13796INSTALL_DATA!$INSTALL_DATA$ac_delim 12526INSTALL_DATA!$INSTALL_DATA$ac_delim
13797GREP!$GREP$ac_delim 12527GREP!$GREP$ac_delim
13798EGREP!$EGREP$ac_delim 12528EGREP!$EGREP$ac_delim
13799LINKER!$LINKER$ac_delim 12529LINKER!$LINKER$ac_delim
13800INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
13801RXVTNAME!$RXVTNAME$ac_delim 12530RXVTNAME!$RXVTNAME$ac_delim
12531CXXCPP!$CXXCPP$ac_delim
13802TIC!$TIC$ac_delim 12532TIC!$TIC$ac_delim
13803XMKMF!$XMKMF$ac_delim 12533XMKMF!$XMKMF$ac_delim
13804CXXCPP!$CXXCPP$ac_delim
13805X_CFLAGS!$X_CFLAGS$ac_delim 12534X_CFLAGS!$X_CFLAGS$ac_delim
13806X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12535X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13807X_LIBS!$X_LIBS$ac_delim 12536X_LIBS!$X_LIBS$ac_delim
13808X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12537X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13809afterimage_config!$afterimage_config$ac_delim 12538afterimage_config!$afterimage_config$ac_delim
13810rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
13811rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
13812rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
13813rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
13814rxvt_intp_define!$rxvt_intp_define$ac_delim
13815rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
13816PKG_CONFIG!$PKG_CONFIG$ac_delim 12539PKG_CONFIG!$PKG_CONFIG$ac_delim
13817XFT_CONFIG!$XFT_CONFIG$ac_delim 12540XFT_CONFIG!$XFT_CONFIG$ac_delim
13818PERL!$PERL$ac_delim 12541PERL!$PERL$ac_delim
13819PERLLIB!$PERLLIB$ac_delim 12542PERLLIB!$PERLLIB$ac_delim
13820PERLFLAGS!$PERLFLAGS$ac_delim 12543PERLFLAGS!$PERLFLAGS$ac_delim
13821PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12544PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
13822IF_PERL!$IF_PERL$ac_delim 12545IF_PERL!$IF_PERL$ac_delim
13823PERL_O!$PERL_O$ac_delim 12546PERL_O!$PERL_O$ac_delim
13824AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12547AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
13825AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12548AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
13826include_stdint_h!$include_stdint_h$ac_delim 12549LIBOBJS!$LIBOBJS$ac_delim
13827include_stdarg_h!$include_stdarg_h$ac_delim 12550LTLIBOBJS!$LTLIBOBJS$ac_delim
13828include_stdlib_h!$include_stdlib_h$ac_delim
13829include_unistd_h!$include_unistd_h$ac_delim
13830include_string_h!$include_string_h$ac_delim
13831_ACEOF 12551_ACEOF
13832 12552
13833 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12553 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
13834 break 12554 break
13835 elif $ac_last_try; then 12555 elif $ac_last_try; then
13836 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12556 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13837echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12557echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13838 { (exit 1); exit 1; }; } 12558 { (exit 1); exit 1; }; }
13847 ac_eof=`expr $ac_eof + 1` 12567 ac_eof=`expr $ac_eof + 1`
13848fi 12568fi
13849 12569
13850cat >>$CONFIG_STATUS <<_ACEOF 12570cat >>$CONFIG_STATUS <<_ACEOF
13851cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12571cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13852/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13853_ACEOF
13854sed '
13855s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13856s/^/s,@/; s/!/@,|#_!!_#|/
13857:n
13858t n
13859s/'"$ac_delim"'$/,g/; t
13860s/$/\\/; p
13861N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13862' >>$CONFIG_STATUS <conf$$subs.sed
13863rm -f conf$$subs.sed
13864cat >>$CONFIG_STATUS <<_ACEOF
13865CEOF$ac_eof
13866_ACEOF
13867
13868
13869ac_delim='%!_!# '
13870for ac_last_try in false false false false false :; do
13871 cat >conf$$subs.sed <<_ACEOF
13872include_fcntl_h!$include_fcntl_h$ac_delim
13873include_util_h!$include_util_h$ac_delim
13874include_assert_h!$include_assert_h$ac_delim
13875include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
13876include_sys_select_h!$include_sys_select_h$ac_delim
13877include_sys_strredir_h!$include_sys_strredir_h$ac_delim
13878include_sys_time_h!$include_sys_time_h$ac_delim
13879include_time_h!$include_time_h$ac_delim
13880LIBOBJS!$LIBOBJS$ac_delim
13881LTLIBOBJS!$LTLIBOBJS$ac_delim
13882_ACEOF
13883
13884 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13885 break
13886 elif $ac_last_try; then
13887 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13888echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13889 { (exit 1); exit 1; }; }
13890 else
13891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13892 fi
13893done
13894
13895ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13896if test -n "$ac_eof"; then
13897 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13898 ac_eof=`expr $ac_eof + 1`
13899fi
13900
13901cat >>$CONFIG_STATUS <<_ACEOF
13902cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13903/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12572/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13904_ACEOF 12573_ACEOF
13905sed ' 12574sed '
13906s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12575s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13907s/^/s,@/; s/!/@,|#_!!_#|/ 12576s/^/s,@/; s/!/@,|#_!!_#|/
14160s&@builddir@&$ac_builddir&;t t 12829s&@builddir@&$ac_builddir&;t t
14161s&@abs_builddir@&$ac_abs_builddir&;t t 12830s&@abs_builddir@&$ac_abs_builddir&;t t
14162s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12831s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14163s&@INSTALL@&$ac_INSTALL&;t t 12832s&@INSTALL@&$ac_INSTALL&;t t
14164$ac_datarootdir_hack 12833$ac_datarootdir_hack
14165" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12834" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14166 12835
14167test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12836test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12837 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14170 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12839 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines