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

Comparing rxvt-unicode/configure (file contents):
Revision 1.117 by root, Sun Nov 18 01:02:09 2007 UTC vs.
Revision 1.130 by root, Sat Dec 26 10:24:04 2009 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
684CXXCPP 681CXXCPP
685TIC 682TIC
686XMKMF 683XMKMF
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
1315 1293
1316Optional Features: 1294Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features 1297 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent 1298 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared 1299 --enable-assert enable assertions
1322 --enable-warnings turn on g++ warnings 1300 --enable-warnings turn on g++ warnings
1323 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1301 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1324 --enable-combining enable composition of base and combining characters 1302 --enable-combining enable composition of base and combining characters
1325 --enable-xft enable xft support on systems that have it 1303 --enable-xft enable xft support on systems that have it
1326 --enable-font-styles enable bold and italic support 1304 --enable-font-styles enable bold and italic support
1327 --enable-afterimage enable integration with libAfterImage for background images 1305 --enable-afterimage enable integration with libAfterImage for background images
1328 --enable-transparency enable transparent backgrounds 1306 --enable-transparency enable transparent backgrounds
1329 --enable-fading enable colors fading when off focus 1307 --enable-fading enable colors fading when off focus
1330 --enable-rxvt-scroll enable rxvt style scrollbar 1308 --enable-rxvt-scroll enable rxvt style scrollbar
1331 --enable-next-scroll enable NeXT style scrollbar 1309 --enable-next-scroll enable NeXT style scrollbar
1332 --enable-xterm-scroll enable Xterm style scrollbar 1310 --enable-xterm-scroll enable Xterm style scrollbar
1333 --enable-perl enable embedded perl interpreter 1311 --enable-perl enable embedded perl interpreter
1334 --enable-plain-scroll enable plain style scrollbar
1335 --enable-xim XIM (X Input Method) protocol support 1312 --enable-xim XIM (X Input Method) protocol support
1336 --disable-backspace-key disable handling of the backspace key 1313 --disable-backspace-key disable handling of the backspace key
1337 --disable-delete-key disable handling of the delete key 1314 --disable-delete-key disable handling of the delete key
1338 --disable-resources disable all resource checking 1315 --disable-resources disable all resource checking
1339 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1316 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1927echo "configuring for rxvt $VERSION" 1904echo "configuring for rxvt $VERSION"
1928echo "" 1905echo ""
1929 1906
1930orig_CXXFLAGS="$CXXFLAGS" 1907orig_CXXFLAGS="$CXXFLAGS"
1931 1908
1932
1933ac_ext=c 1909ac_ext=c
1934ac_cpp='$CPP $CPPFLAGS' 1910ac_cpp='$CPP $CPPFLAGS'
1935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936ac_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'
1937ac_compiler_gnu=$ac_cv_c_compiler_gnu 1913ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715echo "${ECHO_T}no" >&6; } 3691echo "${ECHO_T}no" >&6; }
3716fi 3692fi
3717rm -f conftest* 3693rm -f conftest*
3718 3694
3719 3695
3696
3697cat >>confdefs.h <<\_ACEOF
3698#define _GNU_SOURCE 1
3699_ACEOF
3700
3701
3720{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3702{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3721echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3703echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3722if test "${ac_cv_search_strerror+set}" = set; then 3704if test "${ac_cv_search_strerror+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6 3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else 3706else
3871LINKER=$LINKER 3853LINKER=$LINKER
3872 3854
3873 3855
3874if test -z "$orig_CXXFLAGS"; then 3856if test -z "$orig_CXXFLAGS"; then
3875 if test x$GCC = xyes && test "x$GXX" = xyes; then 3857 if test x$GCC = xyes && test "x$GXX" = xyes; then
3876 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"
3877 cat >conftest.$ac_ext <<_ACEOF 3859 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */ 3860/* confdefs.h. */
3879_ACEOF 3861_ACEOF
3880cat confdefs.h >>conftest.$ac_ext 3862cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF 3863cat >>conftest.$ac_ext <<_ACEOF
3919 CXXFLAGS="-O" 3901 CXXFLAGS="-O"
3920 fi 3902 fi
3921 CFLAGS="$CXXFLAGS" 3903 CFLAGS="$CXXFLAGS"
3922fi 3904fi
3923 3905
3924
3925cat >>confdefs.h <<\_ACEOF
3926#define _GNU_SOURCE 1
3927_ACEOF
3928
3929
3930case $host in 3906case $host in
3931 *-*-solaris* ) 3907 *-*-solaris* )
3932 3908
3933cat >>confdefs.h <<\_ACEOF 3909cat >>confdefs.h <<\_ACEOF
3934#define _XOPEN_SOURCE 500 3910#define _XOPEN_SOURCE 500
3935_ACEOF 3911_ACEOF
3936 3912
3937 ;; 3913 ;;
3938esac 3914esac
3939
3940 3915
3941{ echo "$as_me:$LINENO: checking for setlocale" >&5 3916{ echo "$as_me:$LINENO: checking for setlocale" >&5
3942echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3917echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3943if test "${ac_cv_func_setlocale+set}" = set; then 3918if test "${ac_cv_func_setlocale+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6 3919 echo $ECHO_N "(cached) $ECHO_C" >&6
4391fi 4366fi
4392 4367
4393fi 4368fi
4394 4369
4395 4370
4396
4397support_frills=yes 4371support_frills=yes
4398support_inheritpixmap=yes 4372support_inheritpixmap=yes
4399support_fading=yes 4373support_fading=yes
4400support_keepscrolling=yes 4374support_keepscrolling=yes
4401support_selectionscrolling=yes 4375support_selectionscrolling=yes
4404support_text_blink=yes 4378support_text_blink=yes
4405support_pointer_blank=yes 4379support_pointer_blank=yes
4406support_scroll_rxvt=yes 4380support_scroll_rxvt=yes
4407support_scroll_next=yes 4381support_scroll_next=yes
4408support_scroll_xterm=yes 4382support_scroll_xterm=yes
4409support_scroll_plain=yes
4410support_xim=yes 4383support_xim=yes
4411support_afterimage=yes 4384support_afterimage=yes
4412support_afterstep=yes 4385support_afterstep=yes
4413support_xft=yes 4386support_xft=yes
4414support_unicode3=no 4387support_unicode3=no
4416support_8bitctrls=no 4389support_8bitctrls=no
4417support_iso14755=yes 4390support_iso14755=yes
4418support_styles=yes 4391support_styles=yes
4419support_perl=yes 4392support_perl=yes
4420codesets=all 4393codesets=all
4421
4422
4423if test "x$enable_shared" = xyes; then
4424
4425cat >>confdefs.h <<\_ACEOF
4426#define LIBRXVT 1
4427_ACEOF
4428
4429 INSTALL_LIBRXVT=yes
4430fi
4431 4394
4432 4395
4433# Check whether --enable-everything was given. 4396# Check whether --enable-everything was given.
4434if test "${enable_everything+set}" = set; then 4397if test "${enable_everything+set}" = set; then
4435 enableval=$enable_everything; 4398 enableval=$enable_everything;
4445 support_text_blink=no 4408 support_text_blink=no
4446 support_pointer_blank=no 4409 support_pointer_blank=no
4447 support_scroll_rxvt=no 4410 support_scroll_rxvt=no
4448 support_scroll_next=no 4411 support_scroll_next=no
4449 support_scroll_xterm=no 4412 support_scroll_xterm=no
4450 support_scroll_plain=no
4451 support_utmp=no 4413 support_utmp=no
4452 support_wtmp=no 4414 support_wtmp=no
4453 support_xim=no 4415 support_xim=no
4454 support_afterimage=no 4416 support_afterimage=no
4455 support_afterstep=no 4417 support_afterstep=no
4474 support_text_blink=yes 4436 support_text_blink=yes
4475 support_pointer_blank=yes 4437 support_pointer_blank=yes
4476 support_scroll_rxvt=yes 4438 support_scroll_rxvt=yes
4477 support_scroll_next=yes 4439 support_scroll_next=yes
4478 support_scroll_xterm=yes 4440 support_scroll_xterm=yes
4479 support_scroll_plain=yes
4480 support_utmp=yes 4441 support_utmp=yes
4481 support_wtmp=yes 4442 support_wtmp=yes
4482 support_xim=yes 4443 support_xim=yes
4483 support_afterimage=yes 4444 support_afterimage=yes
4484 support_afterstep=yes 4445 support_afterstep=yes
4493 fi 4454 fi
4494 4455
4495fi 4456fi
4496 4457
4497 4458
4459ASSERTIONS=no
4460# Check whether --enable-assert was given.
4461if test "${enable_assert+set}" = set; then
4462 enableval=$enable_assert; if test x$enableval = xyes; then
4463 ASSERTIONS=yes
4464 fi
4465fi
4466
4467if test x$ASSERTIONS = xno; then
4468
4469cat >>confdefs.h <<\_ACEOF
4470#define NDEBUG 1
4471_ACEOF
4472
4473fi
4474
4498WARNINGS=no 4475WARNINGS=no
4499# Check whether --enable-warnings was given. 4476# Check whether --enable-warnings was given.
4500if test "${enable_warnings+set}" = set; then 4477if test "${enable_warnings+set}" = set; then
4501 enableval=$enable_warnings; if test x$enableval = xyes; then 4478 enableval=$enable_warnings; if test x$enableval = xyes; then
4502 WARNINGS=yes 4479 WARNINGS=yes
4649 support_perl=$enableval 4626 support_perl=$enableval
4650 fi 4627 fi
4651fi 4628fi
4652 4629
4653 4630
4654# Check whether --enable-plain-scroll was given.
4655if test "${enable_plain_scroll+set}" = set; then
4656 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4657 support_scroll_plain=$enableval
4658 fi
4659fi
4660
4661
4662 4631
4663# Check whether --with-codesets was given. 4632# Check whether --with-codesets was given.
4664if test "${with_codesets+set}" = set; then 4633if test "${with_codesets+set}" = set; then
4665 withval=$with_codesets; codesets="$withval" 4634 withval=$with_codesets; codesets="$withval"
4666fi 4635fi
4892 fi 4861 fi
4893fi 4862fi
4894 4863
4895 4864
4896 4865
4866LIBEV_M4_AVOID_LIBRT=1
4897 4867
4898ac_ext=cpp 4868ac_ext=cpp
4899ac_cpp='$CXXCPP $CPPFLAGS' 4869ac_cpp='$CXXCPP $CPPFLAGS'
4900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 5337
5368 5338
5369 5339
5370 5340
5371 5341
5372for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h 5342
5343
5344
5345
5346
5347for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5373do 5348do
5374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5350if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5376 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510 5485
5511 5486
5512 5487
5513 5488
5514 5489
5515for ac_func in epoll_ctl kqueue port_create 5490
5491
5492
5493
5494
5495for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5516do 5496do
5517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5518{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5498{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5500if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5689echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } 5669echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5690if test $ac_cv_func_clock_gettime = yes; then 5670if test $ac_cv_func_clock_gettime = yes; then
5691 : 5671 :
5692else 5672else
5693 5673
5674 if test $(uname) = Linux; then
5675 { echo "$as_me:$LINENO: checking for clock_gettime syscall" >&5
5676echo $ECHO_N "checking for clock_gettime syscall... $ECHO_C" >&6; }
5677 cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h. */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h. */
5683#include <syscall.h>
5684 #include <time.h>
5685int
5686main ()
5687{
5688struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext conftest$ac_exeext
5694if { (ac_try="$ac_link"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_link") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } && {
5707 test -z "$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest$ac_exeext &&
5710 $as_test_x conftest$ac_exeext; then
5711 ac_have_clock_syscall=1
5712
5713cat >>confdefs.h <<\_ACEOF
5714#define HAVE_CLOCK_SYSCALL 1
5715_ACEOF
5716
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6; }
5719else
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723 { echo "$as_me:$LINENO: result: no" >&5
5724echo "${ECHO_T}no" >&6; }
5725fi
5726
5727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5728 conftest$ac_exeext conftest.$ac_ext
5729 fi
5730 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5694 5731
5695{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 5732{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5696echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } 5733echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5697if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 5734if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6 5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 5797
5761 LIBS="-lrt $LIBS" 5798 LIBS="-lrt $LIBS"
5762 5799
5763fi 5800fi
5764 5801
5802 unset ac_cv_func_clock_gettime
5765 5803
5766for ac_func in clock_gettime 5804for ac_func in clock_gettime
5767do 5805do
5768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5769{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5854_ACEOF 5892_ACEOF
5855 5893
5856fi 5894fi
5857done 5895done
5858 5896
5897 fi
5898
5899fi
5900
5901
5902{ echo "$as_me:$LINENO: checking for nanosleep" >&5
5903echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
5904if test "${ac_cv_func_nanosleep+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907 cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
5914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5915#define nanosleep innocuous_nanosleep
5916
5917/* System header to define __stub macros and hopefully few prototypes,
5918 which can conflict with char nanosleep (); below.
5919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 <limits.h> exists even on freestanding compilers. */
5921
5922#ifdef __STDC__
5923# include <limits.h>
5924#else
5925# include <assert.h>
5926#endif
5927
5928#undef nanosleep
5929
5930/* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5933#ifdef __cplusplus
5934extern "C"
5935#endif
5936char nanosleep ();
5937/* The GNU C library defines this for functions which it implements
5938 to always fail with ENOSYS. Some functions are actually named
5939 something starting with __ and the normal name is an alias. */
5940#if defined __stub_nanosleep || defined __stub___nanosleep
5941choke me
5942#endif
5943
5944int
5945main ()
5946{
5947return nanosleep ();
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext conftest$ac_exeext
5953if { (ac_try="$ac_link"
5954case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957esac
5958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_cxx_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
5970 ac_cv_func_nanosleep=yes
5971else
5972 echo "$as_me: failed program was:" >&5
5973sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_cv_func_nanosleep=no
5976fi
5977
5978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979 conftest$ac_exeext conftest.$ac_ext
5980fi
5981{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
5982echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
5983if test $ac_cv_func_nanosleep = yes; then
5984 :
5985else
5986
5987 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5988
5989{ echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
5990echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
5991if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
5992 echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994 ac_check_lib_save_LIBS=$LIBS
5995LIBS="-lrt $LIBS"
5996cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
6002
6003/* Override any GCC internal prototype to avoid an error.
6004 Use char because int might match the return type of a GCC
6005 builtin and then its argument prototype would still apply. */
6006#ifdef __cplusplus
6007extern "C"
6008#endif
6009char nanosleep ();
6010int
6011main ()
6012{
6013return nanosleep ();
6014 ;
6015 return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (ac_try="$ac_link"
6020case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_link") 2>conftest.er1
6026 ac_status=$?
6027 grep -v '^ *+' conftest.er1 >conftest.err
6028 rm -f conftest.er1
6029 cat conftest.err >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_cxx_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest$ac_exeext &&
6035 $as_test_x conftest$ac_exeext; then
6036 ac_cv_lib_rt_nanosleep=yes
6037else
6038 echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041 ac_cv_lib_rt_nanosleep=no
6042fi
6043
6044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6045 conftest$ac_exeext conftest.$ac_ext
6046LIBS=$ac_check_lib_save_LIBS
6047fi
6048{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
6049echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
6050if test $ac_cv_lib_rt_nanosleep = yes; then
6051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_LIBRT 1
6053_ACEOF
6054
6055 LIBS="-lrt $LIBS"
6056
6057fi
6058
6059 unset ac_cv_func_nanosleep
6060
6061for ac_func in nanosleep
6062do
6063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6064{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6066if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h. */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */
6075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6077#define $ac_func innocuous_$ac_func
6078
6079/* System header to define __stub macros and hopefully few prototypes,
6080 which can conflict with char $ac_func (); below.
6081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6082 <limits.h> exists even on freestanding compilers. */
6083
6084#ifdef __STDC__
6085# include <limits.h>
6086#else
6087# include <assert.h>
6088#endif
6089
6090#undef $ac_func
6091
6092/* Override any GCC internal prototype to avoid an error.
6093 Use char because int might match the return type of a GCC
6094 builtin and then its argument prototype would still apply. */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098char $ac_func ();
6099/* The GNU C library defines this for functions which it implements
6100 to always fail with ENOSYS. Some functions are actually named
6101 something starting with __ and the normal name is an alias. */
6102#if defined __stub_$ac_func || defined __stub___$ac_func
6103choke me
6104#endif
6105
6106int
6107main ()
6108{
6109return $ac_func ();
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext conftest$ac_exeext
6115if { (ac_try="$ac_link"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_link") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_cxx_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest$ac_exeext &&
6131 $as_test_x conftest$ac_exeext; then
6132 eval "$as_ac_var=yes"
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 eval "$as_ac_var=no"
6138fi
6139
6140rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6141 conftest$ac_exeext conftest.$ac_ext
6142fi
6143ac_res=`eval echo '${'$as_ac_var'}'`
6144 { echo "$as_me:$LINENO: result: $ac_res" >&5
6145echo "${ECHO_T}$ac_res" >&6; }
6146if test `eval echo '${'$as_ac_var'}'` = yes; then
6147 cat >>confdefs.h <<_ACEOF
6148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6149_ACEOF
6150
6151fi
6152done
6153
6154 fi
5859 6155
5860fi 6156fi
5861 6157
5862 6158
5863 6159
5928_ACEOF 6224_ACEOF
5929 6225
5930 LIBS="-lm $LIBS" 6226 LIBS="-lm $LIBS"
5931 6227
5932fi 6228fi
5933
5934
5935 6229
5936 6230
5937 6231
5938 6232
5939 6233
5974echo "${ECHO_T}$TIC" >&6; } 6268echo "${ECHO_T}$TIC" >&6; }
5975else 6269else
5976 { echo "$as_me:$LINENO: result: no" >&5 6270 { echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6; } 6271echo "${ECHO_T}no" >&6; }
5978fi 6272fi
5979
5980
5981 6273
5982 6274
5983 6275
5984{ echo "$as_me:$LINENO: checking for X" >&5 6276{ echo "$as_me:$LINENO: checking for X" >&5
5985echo $ECHO_N "checking for X... $ECHO_C" >&6; } 6277echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7372echo "${ECHO_T}no" >&6; } 7664echo "${ECHO_T}no" >&6; }
7373 fi 7665 fi
7374 fi 7666 fi
7375fi 7667fi
7376 7668
7377{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7378echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7379if test "${ac_cv_header_sys_wait_h+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381else
7382 cat >conftest.$ac_ext <<_ACEOF
7383/* confdefs.h. */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h. */
7388#include <sys/types.h>
7389#include <sys/wait.h>
7390#ifndef WEXITSTATUS
7391# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7392#endif
7393#ifndef WIFEXITED
7394# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7395#endif
7396
7397int
7398main ()
7399{
7400 int s;
7401 wait (&s);
7402 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7403 ;
7404 return 0;
7405}
7406_ACEOF
7407rm -f conftest.$ac_objext
7408if { (ac_try="$ac_compile"
7409case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412esac
7413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_cxx_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_cv_header_sys_wait_h=yes
7425else
7426 echo "$as_me: failed program was:" >&5
7427sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 ac_cv_header_sys_wait_h=no
7430fi
7431
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433fi
7434{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7435echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7436if test $ac_cv_header_sys_wait_h = yes; then
7437
7438cat >>confdefs.h <<\_ACEOF
7439#define HAVE_SYS_WAIT_H 1
7440_ACEOF
7441
7442fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454 7669
7455 7670
7456 7671
7457 7672
7458 7673
7459 7674
7460 7675
7461for ac_header in \ 7676for ac_header in \
7462 assert.h \
7463 fcntl.h \
7464 stdarg.h \
7465 stdlib.h \
7466 string.h \
7467 termios.h \
7468 unistd.h \
7469 sys/byteorder.h \ 7677 sys/byteorder.h \
7470 sys/ioctl.h \ 7678 sys/ioctl.h \
7471 sys/select.h \
7472 sys/sockio.h \ 7679 sys/sockio.h \
7473 sys/strredir.h \ 7680 sys/strredir.h \
7474 sys/time.h \
7475 stdint.h \ 7681 stdint.h \
7476 wchar.h \ 7682 wchar.h \
7477 cwchar \ 7683 cwchar \
7478 clocale \
7479 7684
7480do 7685do
7481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7614fi 7819fi
7615 7820
7616done 7821done
7617 7822
7618 7823
7619{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7620echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7621if test "${ac_cv_header_time+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624 cat >conftest.$ac_ext <<_ACEOF
7625/* confdefs.h. */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h. */
7630#include <sys/types.h>
7631#include <sys/time.h>
7632#include <time.h>
7633
7634int
7635main ()
7636{
7637if ((struct tm *) 0)
7638return 0;
7639 ;
7640 return 0;
7641}
7642_ACEOF
7643rm -f conftest.$ac_objext
7644if { (ac_try="$ac_compile"
7645case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648esac
7649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_cxx_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_cv_header_time=yes
7661else
7662 echo "$as_me: failed program was:" >&5
7663sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 ac_cv_header_time=no
7666fi
7667
7668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669fi
7670{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7671echo "${ECHO_T}$ac_cv_header_time" >&6; }
7672if test $ac_cv_header_time = yes; then
7673
7674cat >>confdefs.h <<\_ACEOF
7675#define TIME_WITH_SYS_TIME 1
7676_ACEOF
7677
7678fi
7679
7680
7681{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7682echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7683if test "${rxvt_cv_header_sysioctl+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686 cat >conftest.$ac_ext <<_ACEOF
7687/* confdefs.h. */
7688_ACEOF
7689cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h. */
7692#include <stdio.h>
7693#include <sys/ioctl.h>
7694#ifdef HAVE_TERMIOS_H
7695#include <termios.h>
7696#endif
7697int
7698main ()
7699{
7700int a = ECHO;
7701 ;
7702 return 0;
7703}
7704_ACEOF
7705rm -f conftest.$ac_objext
7706if { (ac_try="$ac_compile"
7707case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710esac
7711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_cxx_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 rxvt_cv_header_sysioctl=yes
7723else
7724 echo "$as_me: failed program was:" >&5
7725sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 rxvt_cv_header_sysioctl=no
7728fi
7729
7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731fi
7732{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7733echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7734
7735{ echo "$as_me:$LINENO: checking for XPointer" >&5 7824{ echo "$as_me:$LINENO: checking for XPointer" >&5
7736echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; } 7825echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7737if test "${rxvt_cv_xpointer+set}" = set; then 7826if test "${rxvt_cv_xpointer+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6 7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7739else 7828else
7850cat >>confdefs.h <<\_ACEOF 7939cat >>confdefs.h <<\_ACEOF
7851#define XLIB_ILLEGAL_ACCESS 1 7940#define XLIB_ILLEGAL_ACCESS 1
7852_ACEOF 7941_ACEOF
7853 7942
7854fi 7943fi
7855
7856{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7857echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7858if test "${ac_cv_c_const+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860else
7861 cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867
7868int
7869main ()
7870{
7871/* FIXME: Include the comments suggested by Paul. */
7872#ifndef __cplusplus
7873 /* Ultrix mips cc rejects this. */
7874 typedef int charset[2];
7875 const charset cs;
7876 /* SunOS 4.1.1 cc rejects this. */
7877 char const *const *pcpcc;
7878 char **ppc;
7879 /* NEC SVR4.0.2 mips cc rejects this. */
7880 struct point {int x, y;};
7881 static struct point const zero = {0,0};
7882 /* AIX XL C 1.02.0.0 rejects this.
7883 It does not let you subtract one const X* pointer from another in
7884 an arm of an if-expression whose if-part is not a constant
7885 expression */
7886 const char *g = "string";
7887 pcpcc = &g + (g ? g-g : 0);
7888 /* HPUX 7.0 cc rejects these. */
7889 ++pcpcc;
7890 ppc = (char**) pcpcc;
7891 pcpcc = (char const *const *) ppc;
7892 { /* SCO 3.2v4 cc rejects this. */
7893 char *t;
7894 char const *s = 0 ? (char *) 0 : (char const *) 0;
7895
7896 *t++ = 0;
7897 if (s) return 0;
7898 }
7899 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7900 int x[] = {25, 17};
7901 const int *foo = &x[0];
7902 ++foo;
7903 }
7904 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7905 typedef const int *iptr;
7906 iptr p = 0;
7907 ++p;
7908 }
7909 { /* AIX XL C 1.02.0.0 rejects this saying
7910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7911 struct s { int j; const int *ap[3]; };
7912 struct s *b; b->j = 5;
7913 }
7914 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7915 const int foo = 10;
7916 if (!foo) return 0;
7917 }
7918 return !cs[0] && !zero.x;
7919#endif
7920
7921 ;
7922 return 0;
7923}
7924_ACEOF
7925rm -f conftest.$ac_objext
7926if { (ac_try="$ac_compile"
7927case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930esac
7931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932 (eval "$ac_compile") 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_cxx_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest.$ac_objext; then
7942 ac_cv_c_const=yes
7943else
7944 echo "$as_me: failed program was:" >&5
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7947 ac_cv_c_const=no
7948fi
7949
7950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951fi
7952{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7953echo "${ECHO_T}$ac_cv_c_const" >&6; }
7954if test $ac_cv_c_const = no; then
7955
7956cat >>confdefs.h <<\_ACEOF
7957#define const
7958_ACEOF
7959
7960fi
7961
7962{ echo "$as_me:$LINENO: checking for inline" >&5
7963echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7964if test "${ac_cv_c_inline+set}" = set; then
7965 echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967 ac_cv_c_inline=no
7968for ac_kw in inline __inline__ __inline; do
7969 cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h. */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h. */
7975#ifndef __cplusplus
7976typedef int foo_t;
7977static $ac_kw foo_t static_foo () {return 0; }
7978$ac_kw foo_t foo () {return 0; }
7979#endif
7980
7981_ACEOF
7982rm -f conftest.$ac_objext
7983if { (ac_try="$ac_compile"
7984case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987esac
7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_compile") 2>conftest.er1
7990 ac_status=$?
7991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } && {
7996 test -z "$ac_cxx_werror_flag" ||
7997 test ! -s conftest.err
7998 } && test -s conftest.$ac_objext; then
7999 ac_cv_c_inline=$ac_kw
8000else
8001 echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
8004
8005fi
8006
8007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8008 test "$ac_cv_c_inline" != no && break
8009done
8010
8011fi
8012{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8013echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8014
8015
8016case $ac_cv_c_inline in
8017 inline | yes) ;;
8018 *)
8019 case $ac_cv_c_inline in
8020 no) ac_val=;;
8021 *) ac_val=$ac_cv_c_inline;;
8022 esac
8023 cat >>confdefs.h <<_ACEOF
8024#ifndef __cplusplus
8025#define inline $ac_val
8026#endif
8027_ACEOF
8028 ;;
8029esac
8030
8031
8032 7944
8033{ echo "$as_me:$LINENO: checking for mode_t" >&5 7945{ echo "$as_me:$LINENO: checking for mode_t" >&5
8034echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7946echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8035if test "${ac_cv_type_mode_t+set}" = set; then 7947if test "${ac_cv_type_mode_t+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6 7948 echo $ECHO_N "(cached) $ECHO_C" >&6
8193_ACEOF 8105_ACEOF
8194 8106
8195fi 8107fi
8196 8108
8197 8109
8198{ echo "$as_me:$LINENO: checking for short" >&5 8110 { echo "$as_me:$LINENO: checking for int16_t" >&5
8199echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8111echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8200if test "${ac_cv_type_short+set}" = set; then 8112if test "${ac_cv_c_int16_t+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6 8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else 8114else
8115 ac_cv_c_int16_t=no
8116 for ac_type in 'int16_t' 'int' 'long int' \
8117 'long long int' 'short int' 'signed char'; do
8203 cat >conftest.$ac_ext <<_ACEOF 8118 cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */ 8119/* confdefs.h. */
8205_ACEOF 8120_ACEOF
8206cat confdefs.h >>conftest.$ac_ext 8121cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF 8122cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */ 8123/* end confdefs.h. */
8209$ac_includes_default 8124$ac_includes_default
8210typedef short ac__type_new_;
8211int 8125int
8212main () 8126main ()
8213{ 8127{
8214if ((ac__type_new_ *) 0) 8128static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8215 return 0; 8129test_array [0] = 0
8216if (sizeof (ac__type_new_)) 8130
8217 return 0;
8218 ; 8131 ;
8219 return 0; 8132 return 0;
8220} 8133}
8221_ACEOF 8134_ACEOF
8222rm -f conftest.$ac_objext 8135rm -f conftest.$ac_objext
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && { 8148 (exit $ac_status); } && {
8236 test -z "$ac_cxx_werror_flag" || 8149 test -z "$ac_cxx_werror_flag" ||
8237 test ! -s conftest.err 8150 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then 8151 } && test -s conftest.$ac_objext; then
8239 ac_cv_type_short=yes
8240else
8241 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_cv_type_short=no
8245fi
8246
8247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248fi
8249{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8250echo "${ECHO_T}$ac_cv_type_short" >&6; }
8251
8252# The cast to long int works around a bug in the HP C Compiler
8253# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8254# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8255# This bug is HP SR number 8606223364.
8256{ echo "$as_me:$LINENO: checking size of short" >&5
8257echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8258if test "${ac_cv_sizeof_short+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 if test "$cross_compiling" = yes; then
8262 # Depending upon the size, compute the lo and hi bounds.
8263cat >conftest.$ac_ext <<_ACEOF 8152 cat >conftest.$ac_ext <<_ACEOF
8264/* confdefs.h. */ 8153/* confdefs.h. */
8265_ACEOF 8154_ACEOF
8266cat confdefs.h >>conftest.$ac_ext 8155cat confdefs.h >>conftest.$ac_ext
8267cat >>conftest.$ac_ext <<_ACEOF 8156cat >>conftest.$ac_ext <<_ACEOF
8268/* end confdefs.h. */ 8157/* end confdefs.h. */
8269$ac_includes_default 8158$ac_includes_default
8270 typedef short ac__type_sizeof_;
8271int 8159int
8272main () 8160main ()
8273{ 8161{
8274static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8162static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
8163 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8275test_array [0] = 0 8164test_array [0] = 0
8276 8165
8277 ; 8166 ;
8278 return 0; 8167 return 0;
8279} 8168}
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && { 8183 (exit $ac_status); } && {
8295 test -z "$ac_cxx_werror_flag" || 8184 test -z "$ac_cxx_werror_flag" ||
8296 test ! -s conftest.err 8185 test ! -s conftest.err
8297 } && test -s conftest.$ac_objext; then 8186 } && test -s conftest.$ac_objext; then
8298 ac_lo=0 ac_mid=0 8187 :
8299 while :; do 8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192 case $ac_type in
8193 int16_t) ac_cv_c_int16_t=yes ;;
8194 *) ac_cv_c_int16_t=$ac_type ;;
8195esac
8196
8197fi
8198
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200else
8201 echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204
8205fi
8206
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 test "$ac_cv_c_int16_t" != no && break
8209 done
8210fi
8211{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
8212echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
8213 case $ac_cv_c_int16_t in #(
8214 no|yes) ;; #(
8215 *)
8216
8217cat >>confdefs.h <<_ACEOF
8218#define int16_t $ac_cv_c_int16_t
8219_ACEOF
8220;;
8221 esac
8222
8223
8224 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8225echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8226if test "${ac_cv_c_uint16_t+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_cv_c_uint16_t=no
8230 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
8231 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8300 cat >conftest.$ac_ext <<_ACEOF 8232 cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */ 8233/* confdefs.h. */
8302_ACEOF 8234_ACEOF
8303cat confdefs.h >>conftest.$ac_ext 8235cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF 8236cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */ 8237/* end confdefs.h. */
8306$ac_includes_default 8238$ac_includes_default
8307 typedef short ac__type_sizeof_;
8308int 8239int
8309main () 8240main ()
8310{ 8241{
8311static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8242static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8312test_array [0] = 0 8243test_array [0] = 0
8313 8244
8314 ; 8245 ;
8315 return 0; 8246 return 0;
8316} 8247}
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && { 8262 (exit $ac_status); } && {
8332 test -z "$ac_cxx_werror_flag" || 8263 test -z "$ac_cxx_werror_flag" ||
8333 test ! -s conftest.err 8264 test ! -s conftest.err
8334 } && test -s conftest.$ac_objext; then 8265 } && test -s conftest.$ac_objext; then
8335 ac_hi=$ac_mid; break 8266 case $ac_type in
8267 uint16_t) ac_cv_c_uint16_t=yes ;;
8268 *) ac_cv_c_uint16_t=$ac_type ;;
8269esac
8270
8336else 8271else
8337 echo "$as_me: failed program was:" >&5 8272 echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5 8273sed 's/^/| /' conftest.$ac_ext >&5
8339 8274
8340 ac_lo=`expr $ac_mid + 1` 8275
8341 if test $ac_lo -le $ac_mid; then
8342 ac_lo= ac_hi=
8343 break
8344 fi
8345 ac_mid=`expr 2 '*' $ac_mid + 1`
8346fi 8276fi
8347 8277
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 test "$ac_cv_c_uint16_t" != no && break
8349 done 8280 done
8350else 8281fi
8351 echo "$as_me: failed program was:" >&5 8282{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5 8283echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8284 case $ac_cv_c_uint16_t in #(
8285 no|yes) ;; #(
8286 *)
8353 8287
8288
8289cat >>confdefs.h <<_ACEOF
8290#define uint16_t $ac_cv_c_uint16_t
8291_ACEOF
8292;;
8293 esac
8294
8295
8296 { echo "$as_me:$LINENO: checking for int32_t" >&5
8297echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8298if test "${ac_cv_c_int32_t+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300else
8301 ac_cv_c_int32_t=no
8302 for ac_type in 'int32_t' 'int' 'long int' \
8303 'long long int' 'short int' 'signed char'; do
8354 cat >conftest.$ac_ext <<_ACEOF 8304 cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h. */ 8305/* confdefs.h. */
8356_ACEOF 8306_ACEOF
8357cat confdefs.h >>conftest.$ac_ext 8307cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF 8308cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */ 8309/* end confdefs.h. */
8360$ac_includes_default 8310$ac_includes_default
8361 typedef short ac__type_sizeof_;
8362int 8311int
8363main () 8312main ()
8364{ 8313{
8365static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8314static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8366test_array [0] = 0 8315test_array [0] = 0
8367 8316
8368 ; 8317 ;
8369 return 0; 8318 return 0;
8370} 8319}
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && { 8334 (exit $ac_status); } && {
8386 test -z "$ac_cxx_werror_flag" || 8335 test -z "$ac_cxx_werror_flag" ||
8387 test ! -s conftest.err 8336 test ! -s conftest.err
8388 } && test -s conftest.$ac_objext; then 8337 } && test -s conftest.$ac_objext; then
8389 ac_hi=-1 ac_mid=-1
8390 while :; do
8391 cat >conftest.$ac_ext <<_ACEOF 8338 cat >conftest.$ac_ext <<_ACEOF
8392/* confdefs.h. */ 8339/* confdefs.h. */
8393_ACEOF 8340_ACEOF
8394cat confdefs.h >>conftest.$ac_ext 8341cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF 8342cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */ 8343/* end confdefs.h. */
8397$ac_includes_default 8344$ac_includes_default
8398 typedef short ac__type_sizeof_;
8399int 8345int
8400main () 8346main ()
8401{ 8347{
8402static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8348static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8349 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8403test_array [0] = 0 8350test_array [0] = 0
8404 8351
8405 ; 8352 ;
8406 return 0; 8353 return 0;
8407} 8354}
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && { 8369 (exit $ac_status); } && {
8423 test -z "$ac_cxx_werror_flag" || 8370 test -z "$ac_cxx_werror_flag" ||
8424 test ! -s conftest.err 8371 test ! -s conftest.err
8425 } && test -s conftest.$ac_objext; then 8372 } && test -s conftest.$ac_objext; then
8426 ac_lo=$ac_mid; break 8373 :
8427else 8374else
8428 echo "$as_me: failed program was:" >&5 8375 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5 8376sed 's/^/| /' conftest.$ac_ext >&5
8430 8377
8431 ac_hi=`expr '(' $ac_mid ')' - 1` 8378 case $ac_type in
8432 if test $ac_mid -le $ac_hi; then 8379 int32_t) ac_cv_c_int32_t=yes ;;
8433 ac_lo= ac_hi= 8380 *) ac_cv_c_int32_t=$ac_type ;;
8434 break 8381esac
8435 fi 8382
8436 ac_mid=`expr 2 '*' $ac_mid`
8437fi 8383fi
8438 8384
8439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 done
8441else 8386else
8442 echo "$as_me: failed program was:" >&5 8387 echo "$as_me: failed program was:" >&5
8443sed 's/^/| /' conftest.$ac_ext >&5 8388sed 's/^/| /' conftest.$ac_ext >&5
8444 8389
8445 ac_lo= ac_hi= 8390
8446fi 8391fi
8447 8392
8448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 test "$ac_cv_c_int32_t" != no && break
8395 done
8449fi 8396fi
8397{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8398echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8399 case $ac_cv_c_int32_t in #(
8400 no|yes) ;; #(
8401 *)
8450 8402
8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8403cat >>confdefs.h <<_ACEOF
8452# Binary search between lo and hi bounds. 8404#define int32_t $ac_cv_c_int32_t
8453while test "x$ac_lo" != "x$ac_hi"; do 8405_ACEOF
8454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8406;;
8407 esac
8408
8409
8410 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8411echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8412if test "${ac_cv_c_uint32_t+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 ac_cv_c_uint32_t=no
8416 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8417 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8455 cat >conftest.$ac_ext <<_ACEOF 8418 cat >conftest.$ac_ext <<_ACEOF
8456/* confdefs.h. */ 8419/* confdefs.h. */
8457_ACEOF 8420_ACEOF
8458cat confdefs.h >>conftest.$ac_ext 8421cat confdefs.h >>conftest.$ac_ext
8459cat >>conftest.$ac_ext <<_ACEOF 8422cat >>conftest.$ac_ext <<_ACEOF
8460/* end confdefs.h. */ 8423/* end confdefs.h. */
8461$ac_includes_default 8424$ac_includes_default
8462 typedef short ac__type_sizeof_;
8463int 8425int
8464main () 8426main ()
8465{ 8427{
8466static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8428static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8467test_array [0] = 0 8429test_array [0] = 0
8468 8430
8469 ; 8431 ;
8470 return 0; 8432 return 0;
8471} 8433}
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && { 8448 (exit $ac_status); } && {
8487 test -z "$ac_cxx_werror_flag" || 8449 test -z "$ac_cxx_werror_flag" ||
8488 test ! -s conftest.err 8450 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then 8451 } && test -s conftest.$ac_objext; then
8490 ac_hi=$ac_mid 8452 case $ac_type in
8453 uint32_t) ac_cv_c_uint32_t=yes ;;
8454 *) ac_cv_c_uint32_t=$ac_type ;;
8455esac
8456
8491else 8457else
8492 echo "$as_me: failed program was:" >&5 8458 echo "$as_me: failed program was:" >&5
8493sed 's/^/| /' conftest.$ac_ext >&5 8459sed 's/^/| /' conftest.$ac_ext >&5
8494 8460
8495 ac_lo=`expr '(' $ac_mid ')' + 1` 8461
8496fi 8462fi
8497 8463
8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499done 8465 test "$ac_cv_c_uint32_t" != no && break
8500case $ac_lo in 8466 done
8501?*) ac_cv_sizeof_short=$ac_lo;;
8502'') if test "$ac_cv_type_short" = yes; then
8503 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8504See \`config.log' for more details." >&5
8505echo "$as_me: error: cannot compute sizeof (short)
8506See \`config.log' for more details." >&2;}
8507 { (exit 77); exit 77; }; }
8508 else
8509 ac_cv_sizeof_short=0
8510 fi ;;
8511esac
8512else
8513 cat >conftest.$ac_ext <<_ACEOF
8514/* confdefs.h. */
8515_ACEOF
8516cat confdefs.h >>conftest.$ac_ext
8517cat >>conftest.$ac_ext <<_ACEOF
8518/* end confdefs.h. */
8519$ac_includes_default
8520 typedef short ac__type_sizeof_;
8521static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8522static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8523#include <stdio.h>
8524#include <stdlib.h>
8525int
8526main ()
8527{
8528
8529 FILE *f = fopen ("conftest.val", "w");
8530 if (! f)
8531 return 1;
8532 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8533 {
8534 long int i = longval ();
8535 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8536 return 1;
8537 fprintf (f, "%ld\n", i);
8538 }
8539 else
8540 {
8541 unsigned long int i = ulongval ();
8542 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8543 return 1;
8544 fprintf (f, "%lu\n", i);
8545 }
8546 return ferror (f) || fclose (f) != 0;
8547
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552rm -f conftest$ac_exeext
8553if { (ac_try="$ac_link"
8554case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557esac
8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_link") 2>&5
8560 ac_status=$?
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8563 { (case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566esac
8567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_try") 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
8572 ac_cv_sizeof_short=`cat conftest.val`
8573else
8574 echo "$as_me: program exited with status $ac_status" >&5
8575echo "$as_me: failed program was:" >&5
8576sed 's/^/| /' conftest.$ac_ext >&5
8577
8578( exit $ac_status )
8579if test "$ac_cv_type_short" = yes; then
8580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8581See \`config.log' for more details." >&5
8582echo "$as_me: error: cannot compute sizeof (short)
8583See \`config.log' for more details." >&2;}
8584 { (exit 77); exit 77; }; }
8585 else
8586 ac_cv_sizeof_short=0
8587 fi
8588fi 8467fi
8589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8590fi
8591rm -f conftest.val
8592fi
8593{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8468{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8594echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8469echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8470 case $ac_cv_c_uint32_t in #(
8471 no|yes) ;; #(
8472 *)
8595 8473
8474cat >>confdefs.h <<\_ACEOF
8475#define _UINT32_T 1
8476_ACEOF
8596 8477
8597 8478
8598cat >>confdefs.h <<_ACEOF 8479cat >>confdefs.h <<_ACEOF
8599#define SIZEOF_SHORT $ac_cv_sizeof_short 8480#define uint32_t $ac_cv_c_uint32_t
8600_ACEOF 8481_ACEOF
8601 8482;;
8602
8603{ echo "$as_me:$LINENO: checking for int" >&5
8604echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8605if test "${ac_cv_type_int+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8607else
8608 cat >conftest.$ac_ext <<_ACEOF
8609/* confdefs.h. */
8610_ACEOF
8611cat confdefs.h >>conftest.$ac_ext
8612cat >>conftest.$ac_ext <<_ACEOF
8613/* end confdefs.h. */
8614$ac_includes_default
8615typedef int ac__type_new_;
8616int
8617main ()
8618{
8619if ((ac__type_new_ *) 0)
8620 return 0;
8621if (sizeof (ac__type_new_))
8622 return 0;
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext
8628if { (ac_try="$ac_compile"
8629case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac 8483 esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_cxx_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 ac_cv_type_int=yes
8645else
8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 ac_cv_type_int=no
8650fi
8651
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653fi
8654{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8655echo "${ECHO_T}$ac_cv_type_int" >&6; }
8656
8657# The cast to long int works around a bug in the HP C Compiler
8658# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8659# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8660# This bug is HP SR number 8606223364.
8661{ echo "$as_me:$LINENO: checking size of int" >&5
8662echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8663if test "${ac_cv_sizeof_int+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8665else
8666 if test "$cross_compiling" = yes; then
8667 # Depending upon the size, compute the lo and hi bounds.
8668cat >conftest.$ac_ext <<_ACEOF
8669/* confdefs.h. */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h. */
8674$ac_includes_default
8675 typedef int ac__type_sizeof_;
8676int
8677main ()
8678{
8679static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8680test_array [0] = 0
8681
8682 ;
8683 return 0;
8684}
8685_ACEOF
8686rm -f conftest.$ac_objext
8687if { (ac_try="$ac_compile"
8688case "(($ac_try" in
8689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690 *) ac_try_echo=$ac_try;;
8691esac
8692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693 (eval "$ac_compile") 2>conftest.er1
8694 ac_status=$?
8695 grep -v '^ *+' conftest.er1 >conftest.err
8696 rm -f conftest.er1
8697 cat conftest.err >&5
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); } && {
8700 test -z "$ac_cxx_werror_flag" ||
8701 test ! -s conftest.err
8702 } && test -s conftest.$ac_objext; then
8703 ac_lo=0 ac_mid=0
8704 while :; do
8705 cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
8711$ac_includes_default
8712 typedef int ac__type_sizeof_;
8713int
8714main ()
8715{
8716static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8717test_array [0] = 0
8718
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723rm -f conftest.$ac_objext
8724if { (ac_try="$ac_compile"
8725case "(($ac_try" in
8726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8727 *) ac_try_echo=$ac_try;;
8728esac
8729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8730 (eval "$ac_compile") 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } && {
8737 test -z "$ac_cxx_werror_flag" ||
8738 test ! -s conftest.err
8739 } && test -s conftest.$ac_objext; then
8740 ac_hi=$ac_mid; break
8741else
8742 echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_lo=`expr $ac_mid + 1`
8746 if test $ac_lo -le $ac_mid; then
8747 ac_lo= ac_hi=
8748 break
8749 fi
8750 ac_mid=`expr 2 '*' $ac_mid + 1`
8751fi
8752
8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 done
8755else
8756 echo "$as_me: failed program was:" >&5
8757sed 's/^/| /' conftest.$ac_ext >&5
8758
8759 cat >conftest.$ac_ext <<_ACEOF
8760/* confdefs.h. */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h. */
8765$ac_includes_default
8766 typedef int ac__type_sizeof_;
8767int
8768main ()
8769{
8770static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8771test_array [0] = 0
8772
8773 ;
8774 return 0;
8775}
8776_ACEOF
8777rm -f conftest.$ac_objext
8778if { (ac_try="$ac_compile"
8779case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782esac
8783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_compile") 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } && {
8791 test -z "$ac_cxx_werror_flag" ||
8792 test ! -s conftest.err
8793 } && test -s conftest.$ac_objext; then
8794 ac_hi=-1 ac_mid=-1
8795 while :; do
8796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>conftest.$ac_ext <<_ACEOF
8801/* end confdefs.h. */
8802$ac_includes_default
8803 typedef int ac__type_sizeof_;
8804int
8805main ()
8806{
8807static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8808test_array [0] = 0
8809
8810 ;
8811 return 0;
8812}
8813_ACEOF
8814rm -f conftest.$ac_objext
8815if { (ac_try="$ac_compile"
8816case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819esac
8820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_compile") 2>conftest.er1
8822 ac_status=$?
8823 grep -v '^ *+' conftest.er1 >conftest.err
8824 rm -f conftest.er1
8825 cat conftest.err >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); } && {
8828 test -z "$ac_cxx_werror_flag" ||
8829 test ! -s conftest.err
8830 } && test -s conftest.$ac_objext; then
8831 ac_lo=$ac_mid; break
8832else
8833 echo "$as_me: failed program was:" >&5
8834sed 's/^/| /' conftest.$ac_ext >&5
8835
8836 ac_hi=`expr '(' $ac_mid ')' - 1`
8837 if test $ac_mid -le $ac_hi; then
8838 ac_lo= ac_hi=
8839 break
8840 fi
8841 ac_mid=`expr 2 '*' $ac_mid`
8842fi
8843
8844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 done
8846else
8847 echo "$as_me: failed program was:" >&5
8848sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 ac_lo= ac_hi=
8851fi
8852
8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854fi
8855
8856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857# Binary search between lo and hi bounds.
8858while test "x$ac_lo" != "x$ac_hi"; do
8859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8860 cat >conftest.$ac_ext <<_ACEOF
8861/* confdefs.h. */
8862_ACEOF
8863cat confdefs.h >>conftest.$ac_ext
8864cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h. */
8866$ac_includes_default
8867 typedef int ac__type_sizeof_;
8868int
8869main ()
8870{
8871static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8872test_array [0] = 0
8873
8874 ;
8875 return 0;
8876}
8877_ACEOF
8878rm -f conftest.$ac_objext
8879if { (ac_try="$ac_compile"
8880case "(($ac_try" in
8881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882 *) ac_try_echo=$ac_try;;
8883esac
8884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_cxx_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_hi=$ac_mid
8896else
8897 echo "$as_me: failed program was:" >&5
8898sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 ac_lo=`expr '(' $ac_mid ')' + 1`
8901fi
8902
8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904done
8905case $ac_lo in
8906?*) ac_cv_sizeof_int=$ac_lo;;
8907'') if test "$ac_cv_type_int" = yes; then
8908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8909See \`config.log' for more details." >&5
8910echo "$as_me: error: cannot compute sizeof (int)
8911See \`config.log' for more details." >&2;}
8912 { (exit 77); exit 77; }; }
8913 else
8914 ac_cv_sizeof_int=0
8915 fi ;;
8916esac
8917else
8918 cat >conftest.$ac_ext <<_ACEOF
8919/* confdefs.h. */
8920_ACEOF
8921cat confdefs.h >>conftest.$ac_ext
8922cat >>conftest.$ac_ext <<_ACEOF
8923/* end confdefs.h. */
8924$ac_includes_default
8925 typedef int ac__type_sizeof_;
8926static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8927static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8928#include <stdio.h>
8929#include <stdlib.h>
8930int
8931main ()
8932{
8933
8934 FILE *f = fopen ("conftest.val", "w");
8935 if (! f)
8936 return 1;
8937 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8938 {
8939 long int i = longval ();
8940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8941 return 1;
8942 fprintf (f, "%ld\n", i);
8943 }
8944 else
8945 {
8946 unsigned long int i = ulongval ();
8947 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8948 return 1;
8949 fprintf (f, "%lu\n", i);
8950 }
8951 return ferror (f) || fclose (f) != 0;
8952
8953 ;
8954 return 0;
8955}
8956_ACEOF
8957rm -f conftest$ac_exeext
8958if { (ac_try="$ac_link"
8959case "(($ac_try" in
8960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961 *) ac_try_echo=$ac_try;;
8962esac
8963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964 (eval "$ac_link") 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971esac
8972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_sizeof_int=`cat conftest.val`
8978else
8979 echo "$as_me: program exited with status $ac_status" >&5
8980echo "$as_me: failed program was:" >&5
8981sed 's/^/| /' conftest.$ac_ext >&5
8982
8983( exit $ac_status )
8984if test "$ac_cv_type_int" = yes; then
8985 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8986See \`config.log' for more details." >&5
8987echo "$as_me: error: cannot compute sizeof (int)
8988See \`config.log' for more details." >&2;}
8989 { (exit 77); exit 77; }; }
8990 else
8991 ac_cv_sizeof_int=0
8992 fi
8993fi
8994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8995fi
8996rm -f conftest.val
8997fi
8998{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8999echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9000
9001
9002
9003cat >>confdefs.h <<_ACEOF
9004#define SIZEOF_INT $ac_cv_sizeof_int
9005_ACEOF
9006
9007
9008{ echo "$as_me:$LINENO: checking for long long" >&5
9009echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9010if test "${ac_cv_type_long_long+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012else
9013 cat >conftest.$ac_ext <<_ACEOF
9014/* confdefs.h. */
9015_ACEOF
9016cat confdefs.h >>conftest.$ac_ext
9017cat >>conftest.$ac_ext <<_ACEOF
9018/* end confdefs.h. */
9019$ac_includes_default
9020typedef long long ac__type_new_;
9021int
9022main ()
9023{
9024if ((ac__type_new_ *) 0)
9025 return 0;
9026if (sizeof (ac__type_new_))
9027 return 0;
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext
9033if { (ac_try="$ac_compile"
9034case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_compile") 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } && {
9046 test -z "$ac_cxx_werror_flag" ||
9047 test ! -s conftest.err
9048 } && test -s conftest.$ac_objext; then
9049 ac_cv_type_long_long=yes
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_cv_type_long_long=no
9055fi
9056
9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058fi
9059{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9060echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9061
9062# The cast to long int works around a bug in the HP C Compiler
9063# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9064# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9065# This bug is HP SR number 8606223364.
9066{ echo "$as_me:$LINENO: checking size of long long" >&5
9067echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9068if test "${ac_cv_sizeof_long_long+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9070else
9071 if test "$cross_compiling" = yes; then
9072 # Depending upon the size, compute the lo and hi bounds.
9073cat >conftest.$ac_ext <<_ACEOF
9074/* confdefs.h. */
9075_ACEOF
9076cat confdefs.h >>conftest.$ac_ext
9077cat >>conftest.$ac_ext <<_ACEOF
9078/* end confdefs.h. */
9079$ac_includes_default
9080 typedef long long ac__type_sizeof_;
9081int
9082main ()
9083{
9084static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9085test_array [0] = 0
9086
9087 ;
9088 return 0;
9089}
9090_ACEOF
9091rm -f conftest.$ac_objext
9092if { (ac_try="$ac_compile"
9093case "(($ac_try" in
9094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9095 *) ac_try_echo=$ac_try;;
9096esac
9097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9098 (eval "$ac_compile") 2>conftest.er1
9099 ac_status=$?
9100 grep -v '^ *+' conftest.er1 >conftest.err
9101 rm -f conftest.er1
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } && {
9105 test -z "$ac_cxx_werror_flag" ||
9106 test ! -s conftest.err
9107 } && test -s conftest.$ac_objext; then
9108 ac_lo=0 ac_mid=0
9109 while :; do
9110 cat >conftest.$ac_ext <<_ACEOF
9111/* confdefs.h. */
9112_ACEOF
9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
9115/* end confdefs.h. */
9116$ac_includes_default
9117 typedef long long ac__type_sizeof_;
9118int
9119main ()
9120{
9121static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9122test_array [0] = 0
9123
9124 ;
9125 return 0;
9126}
9127_ACEOF
9128rm -f conftest.$ac_objext
9129if { (ac_try="$ac_compile"
9130case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133esac
9134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_compile") 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_cxx_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest.$ac_objext; then
9145 ac_hi=$ac_mid; break
9146else
9147 echo "$as_me: failed program was:" >&5
9148sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_lo=`expr $ac_mid + 1`
9151 if test $ac_lo -le $ac_mid; then
9152 ac_lo= ac_hi=
9153 break
9154 fi
9155 ac_mid=`expr 2 '*' $ac_mid + 1`
9156fi
9157
9158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9159 done
9160else
9161 echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 cat >conftest.$ac_ext <<_ACEOF
9165/* confdefs.h. */
9166_ACEOF
9167cat confdefs.h >>conftest.$ac_ext
9168cat >>conftest.$ac_ext <<_ACEOF
9169/* end confdefs.h. */
9170$ac_includes_default
9171 typedef long long ac__type_sizeof_;
9172int
9173main ()
9174{
9175static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9176test_array [0] = 0
9177
9178 ;
9179 return 0;
9180}
9181_ACEOF
9182rm -f conftest.$ac_objext
9183if { (ac_try="$ac_compile"
9184case "(($ac_try" in
9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9187esac
9188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189 (eval "$ac_compile") 2>conftest.er1
9190 ac_status=$?
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_cxx_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest.$ac_objext; then
9199 ac_hi=-1 ac_mid=-1
9200 while :; do
9201 cat >conftest.$ac_ext <<_ACEOF
9202/* confdefs.h. */
9203_ACEOF
9204cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */
9207$ac_includes_default
9208 typedef long long ac__type_sizeof_;
9209int
9210main ()
9211{
9212static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9213test_array [0] = 0
9214
9215 ;
9216 return 0;
9217}
9218_ACEOF
9219rm -f conftest.$ac_objext
9220if { (ac_try="$ac_compile"
9221case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224esac
9225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_compile") 2>conftest.er1
9227 ac_status=$?
9228 grep -v '^ *+' conftest.er1 >conftest.err
9229 rm -f conftest.er1
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_cxx_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest.$ac_objext; then
9236 ac_lo=$ac_mid; break
9237else
9238 echo "$as_me: failed program was:" >&5
9239sed 's/^/| /' conftest.$ac_ext >&5
9240
9241 ac_hi=`expr '(' $ac_mid ')' - 1`
9242 if test $ac_mid -le $ac_hi; then
9243 ac_lo= ac_hi=
9244 break
9245 fi
9246 ac_mid=`expr 2 '*' $ac_mid`
9247fi
9248
9249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 done
9251else
9252 echo "$as_me: failed program was:" >&5
9253sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 ac_lo= ac_hi=
9256fi
9257
9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9259fi
9260
9261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9262# Binary search between lo and hi bounds.
9263while test "x$ac_lo" != "x$ac_hi"; do
9264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9265 cat >conftest.$ac_ext <<_ACEOF
9266/* confdefs.h. */
9267_ACEOF
9268cat confdefs.h >>conftest.$ac_ext
9269cat >>conftest.$ac_ext <<_ACEOF
9270/* end confdefs.h. */
9271$ac_includes_default
9272 typedef long long ac__type_sizeof_;
9273int
9274main ()
9275{
9276static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9277test_array [0] = 0
9278
9279 ;
9280 return 0;
9281}
9282_ACEOF
9283rm -f conftest.$ac_objext
9284if { (ac_try="$ac_compile"
9285case "(($ac_try" in
9286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9287 *) ac_try_echo=$ac_try;;
9288esac
9289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9290 (eval "$ac_compile") 2>conftest.er1
9291 ac_status=$?
9292 grep -v '^ *+' conftest.er1 >conftest.err
9293 rm -f conftest.er1
9294 cat conftest.err >&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && {
9297 test -z "$ac_cxx_werror_flag" ||
9298 test ! -s conftest.err
9299 } && test -s conftest.$ac_objext; then
9300 ac_hi=$ac_mid
9301else
9302 echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 ac_lo=`expr '(' $ac_mid ')' + 1`
9306fi
9307
9308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309done
9310case $ac_lo in
9311?*) ac_cv_sizeof_long_long=$ac_lo;;
9312'') if test "$ac_cv_type_long_long" = yes; then
9313 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9314See \`config.log' for more details." >&5
9315echo "$as_me: error: cannot compute sizeof (long long)
9316See \`config.log' for more details." >&2;}
9317 { (exit 77); exit 77; }; }
9318 else
9319 ac_cv_sizeof_long_long=0
9320 fi ;;
9321esac
9322else
9323 cat >conftest.$ac_ext <<_ACEOF
9324/* confdefs.h. */
9325_ACEOF
9326cat confdefs.h >>conftest.$ac_ext
9327cat >>conftest.$ac_ext <<_ACEOF
9328/* end confdefs.h. */
9329$ac_includes_default
9330 typedef long long ac__type_sizeof_;
9331static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9332static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9333#include <stdio.h>
9334#include <stdlib.h>
9335int
9336main ()
9337{
9338
9339 FILE *f = fopen ("conftest.val", "w");
9340 if (! f)
9341 return 1;
9342 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9343 {
9344 long int i = longval ();
9345 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9346 return 1;
9347 fprintf (f, "%ld\n", i);
9348 }
9349 else
9350 {
9351 unsigned long int i = ulongval ();
9352 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9353 return 1;
9354 fprintf (f, "%lu\n", i);
9355 }
9356 return ferror (f) || fclose (f) != 0;
9357
9358 ;
9359 return 0;
9360}
9361_ACEOF
9362rm -f conftest$ac_exeext
9363if { (ac_try="$ac_link"
9364case "(($ac_try" in
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9367esac
9368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_link") 2>&5
9370 ac_status=$?
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9373 { (case "(($ac_try" in
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9376esac
9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_try") 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_cv_sizeof_long_long=`cat conftest.val`
9383else
9384 echo "$as_me: program exited with status $ac_status" >&5
9385echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388( exit $ac_status )
9389if test "$ac_cv_type_long_long" = yes; then
9390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9391See \`config.log' for more details." >&5
9392echo "$as_me: error: cannot compute sizeof (long long)
9393See \`config.log' for more details." >&2;}
9394 { (exit 77); exit 77; }; }
9395 else
9396 ac_cv_sizeof_long_long=0
9397 fi
9398fi
9399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9400fi
9401rm -f conftest.val
9402fi
9403{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9404echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9405
9406
9407
9408cat >>confdefs.h <<_ACEOF
9409#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9410_ACEOF
9411
9412
9413{ echo "$as_me:$LINENO: checking for int *" >&5
9414echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9415if test "${ac_cv_type_int_p+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418 cat >conftest.$ac_ext <<_ACEOF
9419/* confdefs.h. */
9420_ACEOF
9421cat confdefs.h >>conftest.$ac_ext
9422cat >>conftest.$ac_ext <<_ACEOF
9423/* end confdefs.h. */
9424$ac_includes_default
9425typedef int * ac__type_new_;
9426int
9427main ()
9428{
9429if ((ac__type_new_ *) 0)
9430 return 0;
9431if (sizeof (ac__type_new_))
9432 return 0;
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext
9438if { (ac_try="$ac_compile"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_compile") 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_cxx_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
9454 ac_cv_type_int_p=yes
9455else
9456 echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_cv_type_int_p=no
9460fi
9461
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463fi
9464{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9465echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9466
9467# The cast to long int works around a bug in the HP C Compiler
9468# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9469# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9470# This bug is HP SR number 8606223364.
9471{ echo "$as_me:$LINENO: checking size of int *" >&5
9472echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9473if test "${ac_cv_sizeof_int_p+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476 if test "$cross_compiling" = yes; then
9477 # Depending upon the size, compute the lo and hi bounds.
9478cat >conftest.$ac_ext <<_ACEOF
9479/* confdefs.h. */
9480_ACEOF
9481cat confdefs.h >>conftest.$ac_ext
9482cat >>conftest.$ac_ext <<_ACEOF
9483/* end confdefs.h. */
9484$ac_includes_default
9485 typedef int * ac__type_sizeof_;
9486int
9487main ()
9488{
9489static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9490test_array [0] = 0
9491
9492 ;
9493 return 0;
9494}
9495_ACEOF
9496rm -f conftest.$ac_objext
9497if { (ac_try="$ac_compile"
9498case "(($ac_try" in
9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9500 *) ac_try_echo=$ac_try;;
9501esac
9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9503 (eval "$ac_compile") 2>conftest.er1
9504 ac_status=$?
9505 grep -v '^ *+' conftest.er1 >conftest.err
9506 rm -f conftest.er1
9507 cat conftest.err >&5
9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509 (exit $ac_status); } && {
9510 test -z "$ac_cxx_werror_flag" ||
9511 test ! -s conftest.err
9512 } && test -s conftest.$ac_objext; then
9513 ac_lo=0 ac_mid=0
9514 while :; do
9515 cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h. */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
9520/* end confdefs.h. */
9521$ac_includes_default
9522 typedef int * ac__type_sizeof_;
9523int
9524main ()
9525{
9526static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9527test_array [0] = 0
9528
9529 ;
9530 return 0;
9531}
9532_ACEOF
9533rm -f conftest.$ac_objext
9534if { (ac_try="$ac_compile"
9535case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538esac
9539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_cxx_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 ac_hi=$ac_mid; break
9551else
9552 echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 ac_lo=`expr $ac_mid + 1`
9556 if test $ac_lo -le $ac_mid; then
9557 ac_lo= ac_hi=
9558 break
9559 fi
9560 ac_mid=`expr 2 '*' $ac_mid + 1`
9561fi
9562
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 done
9565else
9566 echo "$as_me: failed program was:" >&5
9567sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 cat >conftest.$ac_ext <<_ACEOF
9570/* confdefs.h. */
9571_ACEOF
9572cat confdefs.h >>conftest.$ac_ext
9573cat >>conftest.$ac_ext <<_ACEOF
9574/* end confdefs.h. */
9575$ac_includes_default
9576 typedef int * ac__type_sizeof_;
9577int
9578main ()
9579{
9580static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9581test_array [0] = 0
9582
9583 ;
9584 return 0;
9585}
9586_ACEOF
9587rm -f conftest.$ac_objext
9588if { (ac_try="$ac_compile"
9589case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_compile") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } && {
9601 test -z "$ac_cxx_werror_flag" ||
9602 test ! -s conftest.err
9603 } && test -s conftest.$ac_objext; then
9604 ac_hi=-1 ac_mid=-1
9605 while :; do
9606 cat >conftest.$ac_ext <<_ACEOF
9607/* confdefs.h. */
9608_ACEOF
9609cat confdefs.h >>conftest.$ac_ext
9610cat >>conftest.$ac_ext <<_ACEOF
9611/* end confdefs.h. */
9612$ac_includes_default
9613 typedef int * ac__type_sizeof_;
9614int
9615main ()
9616{
9617static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9618test_array [0] = 0
9619
9620 ;
9621 return 0;
9622}
9623_ACEOF
9624rm -f conftest.$ac_objext
9625if { (ac_try="$ac_compile"
9626case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629esac
9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_cxx_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest.$ac_objext; then
9641 ac_lo=$ac_mid; break
9642else
9643 echo "$as_me: failed program was:" >&5
9644sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ac_hi=`expr '(' $ac_mid ')' - 1`
9647 if test $ac_mid -le $ac_hi; then
9648 ac_lo= ac_hi=
9649 break
9650 fi
9651 ac_mid=`expr 2 '*' $ac_mid`
9652fi
9653
9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 done
9656else
9657 echo "$as_me: failed program was:" >&5
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_lo= ac_hi=
9661fi
9662
9663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664fi
9665
9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9667# Binary search between lo and hi bounds.
9668while test "x$ac_lo" != "x$ac_hi"; do
9669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9670 cat >conftest.$ac_ext <<_ACEOF
9671/* confdefs.h. */
9672_ACEOF
9673cat confdefs.h >>conftest.$ac_ext
9674cat >>conftest.$ac_ext <<_ACEOF
9675/* end confdefs.h. */
9676$ac_includes_default
9677 typedef int * ac__type_sizeof_;
9678int
9679main ()
9680{
9681static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9682test_array [0] = 0
9683
9684 ;
9685 return 0;
9686}
9687_ACEOF
9688rm -f conftest.$ac_objext
9689if { (ac_try="$ac_compile"
9690case "(($ac_try" in
9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692 *) ac_try_echo=$ac_try;;
9693esac
9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695 (eval "$ac_compile") 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } && {
9702 test -z "$ac_cxx_werror_flag" ||
9703 test ! -s conftest.err
9704 } && test -s conftest.$ac_objext; then
9705 ac_hi=$ac_mid
9706else
9707 echo "$as_me: failed program was:" >&5
9708sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ac_lo=`expr '(' $ac_mid ')' + 1`
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714done
9715case $ac_lo in
9716?*) ac_cv_sizeof_int_p=$ac_lo;;
9717'') if test "$ac_cv_type_int_p" = yes; then
9718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9719See \`config.log' for more details." >&5
9720echo "$as_me: error: cannot compute sizeof (int *)
9721See \`config.log' for more details." >&2;}
9722 { (exit 77); exit 77; }; }
9723 else
9724 ac_cv_sizeof_int_p=0
9725 fi ;;
9726esac
9727else
9728 cat >conftest.$ac_ext <<_ACEOF
9729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734$ac_includes_default
9735 typedef int * ac__type_sizeof_;
9736static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9737static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9738#include <stdio.h>
9739#include <stdlib.h>
9740int
9741main ()
9742{
9743
9744 FILE *f = fopen ("conftest.val", "w");
9745 if (! f)
9746 return 1;
9747 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9748 {
9749 long int i = longval ();
9750 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9751 return 1;
9752 fprintf (f, "%ld\n", i);
9753 }
9754 else
9755 {
9756 unsigned long int i = ulongval ();
9757 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9758 return 1;
9759 fprintf (f, "%lu\n", i);
9760 }
9761 return ferror (f) || fclose (f) != 0;
9762
9763 ;
9764 return 0;
9765}
9766_ACEOF
9767rm -f conftest$ac_exeext
9768if { (ac_try="$ac_link"
9769case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772esac
9773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774 (eval "$ac_link") 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9778 { (case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781esac
9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_try") 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_sizeof_int_p=`cat conftest.val`
9788else
9789 echo "$as_me: program exited with status $ac_status" >&5
9790echo "$as_me: failed program was:" >&5
9791sed 's/^/| /' conftest.$ac_ext >&5
9792
9793( exit $ac_status )
9794if test "$ac_cv_type_int_p" = yes; then
9795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9796See \`config.log' for more details." >&5
9797echo "$as_me: error: cannot compute sizeof (int *)
9798See \`config.log' for more details." >&2;}
9799 { (exit 77); exit 77; }; }
9800 else
9801 ac_cv_sizeof_int_p=0
9802 fi
9803fi
9804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9805fi
9806rm -f conftest.val
9807fi
9808{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9809echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9810
9811
9812
9813cat >>confdefs.h <<_ACEOF
9814#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9815_ACEOF
9816
9817
9818
9819
9820{ echo "$as_me:$LINENO: checking for int16_t" >&5
9821echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9822if test "${rxvt_cv_int16_t+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
9831#include <stdint.h>
9832int
9833main ()
9834{
9835int16_t dummy;
9836 ;
9837 return 0;
9838}
9839_ACEOF
9840rm -f conftest.$ac_objext
9841if { (ac_try="$ac_compile"
9842case "(($ac_try" in
9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844 *) ac_try_echo=$ac_try;;
9845esac
9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_compile") 2>conftest.er1
9848 ac_status=$?
9849 grep -v '^ *+' conftest.er1 >conftest.err
9850 rm -f conftest.er1
9851 cat conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && {
9854 test -z "$ac_cxx_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest.$ac_objext; then
9857 rxvt_cv_int16_t=yes
9858else
9859 echo "$as_me: failed program was:" >&5
9860sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 if test "$ac_cv_sizeof_char" -ge 2; then
9863 rxvt_cv_int16_t=" char"
9864else
9865 if test "$ac_cv_sizeof_short" -ge 2; then
9866 rxvt_cv_int16_t=" short"
9867 else
9868 if test "$ac_cv_sizeof_int" -ge 2; then
9869 rxvt_cv_int16_t=" int"
9870 else
9871 if test "$ac_cv_sizeof_long" -ge 2; then
9872 rxvt_cv_int16_t=" long"
9873 else
9874 if test "$ac_cv_sizeof_long_long" -ge 2; then
9875 rxvt_cv_int16_t=" long long"
9876 else
9877 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9878 fi
9879 fi
9880 fi
9881 fi
9882fi
9883fi
9884
9885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886fi
9887{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9888echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9889if test x"$rxvt_cv_int16_t" != xyes; then
9890 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9891else
9892 if test x"" = x; then
9893 rxvt_int16_typedef="/* typedef short int16_t; */"
9894 else
9895 rxvt_int16_typedef="/* typedef short int16_t; */"
9896 fi
9897fi
9898
9899{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9900echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9901if test "${rxvt_cv_uint16_t+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903else
9904 cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910#include <stdint.h>
9911int
9912main ()
9913{
9914uint16_t dummy;
9915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext
9920if { (ac_try="$ac_compile"
9921case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924esac
9925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_compile") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_cxx_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest.$ac_objext; then
9936 rxvt_cv_uint16_t=yes
9937else
9938 echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 if test "$ac_cv_sizeof_char" -ge 2; then
9942 rxvt_cv_uint16_t="unsigned char"
9943else
9944 if test "$ac_cv_sizeof_short" -ge 2; then
9945 rxvt_cv_uint16_t="unsigned short"
9946 else
9947 if test "$ac_cv_sizeof_int" -ge 2; then
9948 rxvt_cv_uint16_t="unsigned int"
9949 else
9950 if test "$ac_cv_sizeof_long" -ge 2; then
9951 rxvt_cv_uint16_t="unsigned long"
9952 else
9953 if test "$ac_cv_sizeof_long_long" -ge 2; then
9954 rxvt_cv_uint16_t="unsigned long long"
9955 else
9956 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9957 fi
9958 fi
9959 fi
9960 fi
9961fi
9962fi
9963
9964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965fi
9966{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9967echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9968if test x"$rxvt_cv_uint16_t" != xyes; then
9969 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9970else
9971 if test x"unsigned" = x; then
9972 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9973 else
9974 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9975 fi
9976fi
9977
9978{ echo "$as_me:$LINENO: checking for int32_t" >&5
9979echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9980if test "${rxvt_cv_int32_t+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982else
9983 cat >conftest.$ac_ext <<_ACEOF
9984/* confdefs.h. */
9985_ACEOF
9986cat confdefs.h >>conftest.$ac_ext
9987cat >>conftest.$ac_ext <<_ACEOF
9988/* end confdefs.h. */
9989#include <stdint.h>
9990int
9991main ()
9992{
9993int32_t dummy;
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext
9999if { (ac_try="$ac_compile"
10000case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10003esac
10004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_compile") 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && {
10012 test -z "$ac_cxx_werror_flag" ||
10013 test ! -s conftest.err
10014 } && test -s conftest.$ac_objext; then
10015 rxvt_cv_int32_t=yes
10016else
10017 echo "$as_me: failed program was:" >&5
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
10020 if test "$ac_cv_sizeof_char" -ge 4; then
10021 rxvt_cv_int32_t=" char"
10022else
10023 if test "$ac_cv_sizeof_short" -ge 4; then
10024 rxvt_cv_int32_t=" short"
10025 else
10026 if test "$ac_cv_sizeof_int" -ge 4; then
10027 rxvt_cv_int32_t=" int"
10028 else
10029 if test "$ac_cv_sizeof_long" -ge 4; then
10030 rxvt_cv_int32_t=" long"
10031 else
10032 if test "$ac_cv_sizeof_long_long" -ge 4; then
10033 rxvt_cv_int32_t=" long long"
10034 else
10035 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10036 fi
10037 fi
10038 fi
10039 fi
10040fi
10041fi
10042
10043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10044fi
10045{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10046echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10047if test x"$rxvt_cv_int32_t" != xyes; then
10048 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10049else
10050 if test x"" = x; then
10051 rxvt_int32_typedef="/* typedef int int32_t; */"
10052 else
10053 rxvt_int32_typedef="/* typedef int int32_t; */"
10054 fi
10055fi
10056
10057{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10058echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10059if test "${rxvt_cv_uint32_t+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061else
10062 cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
10068#include <stdint.h>
10069int
10070main ()
10071{
10072uint32_t dummy;
10073 ;
10074 return 0;
10075}
10076_ACEOF
10077rm -f conftest.$ac_objext
10078if { (ac_try="$ac_compile"
10079case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_compile") 2>conftest.er1
10085 ac_status=$?
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } && {
10091 test -z "$ac_cxx_werror_flag" ||
10092 test ! -s conftest.err
10093 } && test -s conftest.$ac_objext; then
10094 rxvt_cv_uint32_t=yes
10095else
10096 echo "$as_me: failed program was:" >&5
10097sed 's/^/| /' conftest.$ac_ext >&5
10098
10099 if test "$ac_cv_sizeof_char" -ge 4; then
10100 rxvt_cv_uint32_t="unsigned char"
10101else
10102 if test "$ac_cv_sizeof_short" -ge 4; then
10103 rxvt_cv_uint32_t="unsigned short"
10104 else
10105 if test "$ac_cv_sizeof_int" -ge 4; then
10106 rxvt_cv_uint32_t="unsigned int"
10107 else
10108 if test "$ac_cv_sizeof_long" -ge 4; then
10109 rxvt_cv_uint32_t="unsigned long"
10110 else
10111 if test "$ac_cv_sizeof_long_long" -ge 4; then
10112 rxvt_cv_uint32_t="unsigned long long"
10113 else
10114 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10115 fi
10116 fi
10117 fi
10118 fi
10119fi
10120fi
10121
10122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10123fi
10124{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10125echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10126if test x"$rxvt_cv_uint32_t" != xyes; then
10127 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10128else
10129 if test x"unsigned" = x; then
10130 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10131 else
10132 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10133 fi
10134fi
10135
10136if test "$ac_cv_sizeof_int_p" -eq 8; then
10137 rxvt_intp_define="#define intp_t int64_t"
10138 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10139else
10140 if test "$ac_cv_sizeof_int_p" -eq 4; then
10141 rxvt_intp_define="#define intp_t int32_t"
10142 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10143 else
10144 if test "$ac_cv_sizeof_int_p" -eq 2; then
10145 rxvt_intp_define="#define intp_t int16_t"
10146 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10147 else
10148 rxvt_intp_define="#error set intp_t"
10149 rxvt_u_intp_define="#error set u_intp_t"
10150 fi
10151 fi
10152fi
10153
10154
10155
10156{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10157echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10158if test "${ac_cv_type_signal+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10160else
10161 cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h. */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h. */
10167#include <sys/types.h>
10168#include <signal.h>
10169
10170int
10171main ()
10172{
10173return *(signal (0, 0)) (0) == 1;
10174 ;
10175 return 0;
10176}
10177_ACEOF
10178rm -f conftest.$ac_objext
10179if { (ac_try="$ac_compile"
10180case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_compile") 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_cxx_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest.$ac_objext; then
10195 ac_cv_type_signal=int
10196else
10197 echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200 ac_cv_type_signal=void
10201fi
10202
10203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10204fi
10205{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10206echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10207
10208cat >>confdefs.h <<_ACEOF
10209#define RETSIGTYPE $ac_cv_type_signal
10210_ACEOF
10211
10212 8484
10213 8485
10214 8486
10215for ac_func in unsetenv 8487for ac_func in unsetenv
10216do 8488do
10457fi 8729fi
10458done 8730done
10459 8731
10460 8732
10461 8733
10462
10463
10464for ac_header in \ 8734for ac_header in lastlog.h
10465 utmp.h \
10466 utmpx.h \
10467 lastlog.h \
10468
10469do 8735do
10470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10604 8870
10605done 8871done
10606 8872
10607 8873
10608 8874
10609if test "${ac_cv_header_utmp_h+set}" = set; then 8875
8876for ac_header in utmp.h
8877do
8878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10610 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10611echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612if test "${ac_cv_header_utmp_h+set}" = set; then 8882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6 8883 echo $ECHO_N "(cached) $ECHO_C" >&6
10614fi 8884fi
8885ac_res=`eval echo '${'$as_ac_Header'}'`
10615{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8886 { echo "$as_me:$LINENO: result: $ac_res" >&5
10616echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8887echo "${ECHO_T}$ac_res" >&6; }
10617else 8888else
10618 # Is the header compilable? 8889 # Is the header compilable?
10619{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8890{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10620echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8891echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10621cat >conftest.$ac_ext <<_ACEOF 8892cat >conftest.$ac_ext <<_ACEOF
10622/* confdefs.h. */ 8893/* confdefs.h. */
10623_ACEOF 8894_ACEOF
10624cat confdefs.h >>conftest.$ac_ext 8895cat confdefs.h >>conftest.$ac_ext
10625cat >>conftest.$ac_ext <<_ACEOF 8896cat >>conftest.$ac_ext <<_ACEOF
10626/* end confdefs.h. */ 8897/* end confdefs.h. */
10627$ac_includes_default 8898$ac_includes_default
10628#include <utmp.h> 8899#include <$ac_header>
10629_ACEOF 8900_ACEOF
10630rm -f conftest.$ac_objext 8901rm -f conftest.$ac_objext
10631if { (ac_try="$ac_compile" 8902if { (ac_try="$ac_compile"
10632case "(($ac_try" in 8903case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8927{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10657echo "${ECHO_T}$ac_header_compiler" >&6; } 8928echo "${ECHO_T}$ac_header_compiler" >&6; }
10658 8929
10659# Is the header present? 8930# Is the header present?
10660{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8931{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10661echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10662cat >conftest.$ac_ext <<_ACEOF 8933cat >conftest.$ac_ext <<_ACEOF
10663/* confdefs.h. */ 8934/* confdefs.h. */
10664_ACEOF 8935_ACEOF
10665cat confdefs.h >>conftest.$ac_ext 8936cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF 8937cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h. */ 8938/* end confdefs.h. */
10668#include <utmp.h> 8939#include <$ac_header>
10669_ACEOF 8940_ACEOF
10670if { (ac_try="$ac_cpp conftest.$ac_ext" 8941if { (ac_try="$ac_cpp conftest.$ac_ext"
10671case "(($ac_try" in 8942case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;; 8944 *) ac_try_echo=$ac_try;;
10696echo "${ECHO_T}$ac_header_preproc" >&6; } 8967echo "${ECHO_T}$ac_header_preproc" >&6; }
10697 8968
10698# So? What about this header? 8969# So? What about this header?
10699case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8970case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10700 yes:no: ) 8971 yes:no: )
10701 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10702echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 8974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10704echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} 8975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10705 ac_header_preproc=yes 8976 ac_header_preproc=yes
10706 ;; 8977 ;;
10707 no:yes:* ) 8978 no:yes:* )
10708 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10709echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} 8980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 8981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10711echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} 8982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10713echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 8985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10715echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} 8986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10717echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} 8988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 8989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10719echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} 8990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10720 8991
10721 ;; 8992 ;;
10722esac 8993esac
10723{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10724echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10725if test "${ac_cv_header_utmp_h+set}" = set; then 8996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6 8997 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else 8998else
10728 ac_cv_header_utmp_h=$ac_header_preproc 8999 eval "$as_ac_Header=\$ac_header_preproc"
10729fi 9000fi
9001ac_res=`eval echo '${'$as_ac_Header'}'`
10730{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 9002 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 9003echo "${ECHO_T}$ac_res" >&6; }
10732 9004
10733fi 9005fi
10734if test $ac_cv_header_utmp_h = yes; then 9006if test `eval echo '${'$as_ac_Header'}'` = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9009_ACEOF
10735 { echo "$as_me:$LINENO: checking for struct utmp" >&5 9010 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10736echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 9011echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10737if test "${struct_utmp+set}" = set; then 9012if test "${struct_utmp+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6 9013 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else 9014else
10740 cat >conftest.$ac_ext <<_ACEOF 9015 cat >conftest.$ac_ext <<_ACEOF
10907 9182
10908fi 9183fi
10909 9184
10910fi 9185fi
10911 9186
9187done
10912 9188
10913 9189
10914if test "${ac_cv_header_utmpx_h+set}" = set; then 9190
9191for ac_header in utmpx.h
9192do
9193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 9195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10916echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10917if test "${ac_cv_header_utmpx_h+set}" = set; then 9197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6 9198 echo $ECHO_N "(cached) $ECHO_C" >&6
10919fi 9199fi
9200ac_res=`eval echo '${'$as_ac_Header'}'`
10920{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10921echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9202echo "${ECHO_T}$ac_res" >&6; }
10922else 9203else
10923 # Is the header compilable? 9204 # Is the header compilable?
10924{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 9205{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 9206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10926cat >conftest.$ac_ext <<_ACEOF 9207cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */ 9208/* confdefs.h. */
10928_ACEOF 9209_ACEOF
10929cat confdefs.h >>conftest.$ac_ext 9210cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF 9211cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */ 9212/* end confdefs.h. */
10932$ac_includes_default 9213$ac_includes_default
10933#include <utmpx.h> 9214#include <$ac_header>
10934_ACEOF 9215_ACEOF
10935rm -f conftest.$ac_objext 9216rm -f conftest.$ac_objext
10936if { (ac_try="$ac_compile" 9217if { (ac_try="$ac_compile"
10937case "(($ac_try" in 9218case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9242{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10962echo "${ECHO_T}$ac_header_compiler" >&6; } 9243echo "${ECHO_T}$ac_header_compiler" >&6; }
10963 9244
10964# Is the header present? 9245# Is the header present?
10965{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 9246{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10966echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 9247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10967cat >conftest.$ac_ext <<_ACEOF 9248cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h. */ 9249/* confdefs.h. */
10969_ACEOF 9250_ACEOF
10970cat confdefs.h >>conftest.$ac_ext 9251cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF 9252cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */ 9253/* end confdefs.h. */
10973#include <utmpx.h> 9254#include <$ac_header>
10974_ACEOF 9255_ACEOF
10975if { (ac_try="$ac_cpp conftest.$ac_ext" 9256if { (ac_try="$ac_cpp conftest.$ac_ext"
10976case "(($ac_try" in 9257case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;; 9259 *) ac_try_echo=$ac_try;;
11001echo "${ECHO_T}$ac_header_preproc" >&6; } 9282echo "${ECHO_T}$ac_header_preproc" >&6; }
11002 9283
11003# So? What about this header? 9284# So? What about this header?
11004case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9285case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11005 yes:no: ) 9286 yes:no: )
11006 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11007echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 9288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11009echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} 9290echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11010 ac_header_preproc=yes 9291 ac_header_preproc=yes
11011 ;; 9292 ;;
11012 no:yes:* ) 9293 no:yes:* )
11013 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9294 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11014echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} 9295echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 9296 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11016echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} 9297echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9298 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11018echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9299echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11019 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 9300 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11020echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} 9301echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 9302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11022echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} 9303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 9304 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11024echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} 9305echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11025 9306
11026 ;; 9307 ;;
11027esac 9308esac
11028{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9309{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11029echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11030if test "${ac_cv_header_utmpx_h+set}" = set; then 9311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6 9312 echo $ECHO_N "(cached) $ECHO_C" >&6
11032else 9313else
11033 ac_cv_header_utmpx_h=$ac_header_preproc 9314 eval "$as_ac_Header=\$ac_header_preproc"
11034fi 9315fi
9316ac_res=`eval echo '${'$as_ac_Header'}'`
11035{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9317 { echo "$as_me:$LINENO: result: $ac_res" >&5
11036echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9318echo "${ECHO_T}$ac_res" >&6; }
11037 9319
11038fi 9320fi
11039if test $ac_cv_header_utmpx_h = yes; then 9321if test `eval echo '${'$as_ac_Header'}'` = yes; then
9322 cat >>confdefs.h <<_ACEOF
9323#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9324_ACEOF
11040 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9325 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
11041echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9326echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
11042if test "${struct_utmpx+set}" = set; then 9327if test "${struct_utmpx+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6 9328 echo $ECHO_N "(cached) $ECHO_C" >&6
11044else 9329else
11045 cat >conftest.$ac_ext <<_ACEOF 9330 cat >conftest.$ac_ext <<_ACEOF
11212 9497
11213fi 9498fi
11214 9499
11215fi 9500fi
11216 9501
9502done
11217 9503
11218{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9504{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11219echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9505echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11220if test "${struct_lastlog+set}" = set; then 9506if test "${struct_lastlog+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6 9507 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 10577
12292 10578
12293 10579
12294 10580
12295 10581
10582
12296for ac_header in \ 10583for ac_header in \
12297 pty.h \ 10584 pty.h \
12298 util.h \ 10585 util.h \
12299 libutil.h \ 10586 libutil.h \
12300 sys/ioctl.h \ 10587 sys/ioctl.h \
12301 sys/stropts.h \ 10588 sys/stropts.h \
10589 stropts.h \
12302 10590
12303do 10591do
12304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12306 { echo "$as_me:$LINENO: checking for $ac_header" >&5 10594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13024 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" 11312 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13025 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11313 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13026 fi 11314 fi
13027 fi 11315 fi
13028 11316
11317 save_LIBS="$LIBS"
11318 LIBS="$LIBS $X_LIBS"
13029 11319
13030for ac_header in X11/Xft/Xft.h 11320for ac_header in X11/Xft/Xft.h
13031do 11321do
13032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13166 support_xft=no 11456 support_xft=no
13167fi 11457fi
13168 11458
13169done 11459done
13170 11460
13171 ac_save_LIBS="$LIBS"
13172 LIBS="$LIBS $X_LIBS"
13173
13174{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11461 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13175echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11462echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13176if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11463if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6 11464 echo $ECHO_N "(cached) $ECHO_C" >&6
13178else 11465else
13179 ac_check_lib_save_LIBS=$LIBS 11466 ac_check_lib_save_LIBS=$LIBS
13231LIBS=$ac_check_lib_save_LIBS 11518LIBS=$ac_check_lib_save_LIBS
13232fi 11519fi
13233{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11520{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13234echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11521echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13235if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11522if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13236 cat >>confdefs.h <<_ACEOF 11523 :
13237#define HAVE_LIBXFT 1
13238_ACEOF
13239
13240 LIBS="-lXft $LIBS"
13241
13242else 11524else
13243 support_xft=no 11525 support_xft=no
13244fi 11526fi
13245 11527
13246 LIBS="$ac_save_LIBS" 11528 LIBS="$save_LIBS"
13247 11529
13248 if test x$support_xft = xyes; then 11530 if test x$support_xft = xyes; then
13249 11531
13250cat >>confdefs.h <<\_ACEOF 11532cat >>confdefs.h <<\_ACEOF
13251#define XFT 1 11533#define XFT 1
13335_ACEOF 11617_ACEOF
13336 11618
13337fi 11619fi
13338 11620
13339 11621
11622scrolltypes=plain
11623
11624cat >>confdefs.h <<\_ACEOF
11625#define PLAIN_SCROLLBAR 1
11626_ACEOF
11627
11628
13340if test x$support_scroll_rxvt = xyes; then 11629if test x$support_scroll_rxvt = xyes; then
13341 11630
13342cat >>confdefs.h <<\_ACEOF 11631cat >>confdefs.h <<\_ACEOF
13343#define RXVT_SCROLLBAR 1 11632#define RXVT_SCROLLBAR 1
13344_ACEOF 11633_ACEOF
13345 11634
13346 scrolltypes="rxvt" 11635 scrolltypes="$scrolltypes rxvt"
13347fi 11636fi
13348if test x$support_scroll_next = xyes; then 11637if test x$support_scroll_next = xyes; then
13349 11638
13350cat >>confdefs.h <<\_ACEOF 11639cat >>confdefs.h <<\_ACEOF
13351#define NEXT_SCROLLBAR 1 11640#define NEXT_SCROLLBAR 1
13358cat >>confdefs.h <<\_ACEOF 11647cat >>confdefs.h <<\_ACEOF
13359#define XTERM_SCROLLBAR 1 11648#define XTERM_SCROLLBAR 1
13360_ACEOF 11649_ACEOF
13361 11650
13362 scrolltypes="$scrolltypes xterm" 11651 scrolltypes="$scrolltypes xterm"
13363fi
13364if test x$support_scroll_plain = xyes; then
13365
13366cat >>confdefs.h <<\_ACEOF
13367#define PLAIN_SCROLLBAR 1
13368_ACEOF
13369
13370 scrolltypes="$scrolltypes plain"
13371fi 11652fi
13372if test x$support_pointer_blank = xyes; then 11653if test x$support_pointer_blank = xyes; then
13373 11654
13374cat >>confdefs.h <<\_ACEOF 11655cat >>confdefs.h <<\_ACEOF
13375#define POINTER_BLANK 1 11656#define POINTER_BLANK 1
13638_ACEOF 11919_ACEOF
13639program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 11920program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13640rm -f conftest.sed 11921rm -f conftest.sed
13641 11922
13642 11923
13643
13644
13645
13646if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13647 include_stdint_h="#include <stdint.h>"
13648else
13649 include_stdint_h="/* #include <stdint.h> */"
13650fi
13651if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13652 include_stdarg_h="#include <cstdarg>"
13653else
13654 include_stdarg_h="/* #include <cstdarg> */"
13655fi
13656if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13657 include_stdlib_h="#include <cstdlib>"
13658else
13659 include_stdlib_h="/* #include <cstdlib> */"
13660fi
13661if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13662 include_unistd_h="#include <unistd.h>"
13663else
13664 include_unistd_h="/* #include <unistd.h> */"
13665fi
13666if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13667 include_string_h="#include <cstring>"
13668else
13669 include_string_h="/* #include <cstring> */"
13670fi
13671if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13672 include_fcntl_h="#include <fcntl.h>"
13673else
13674 include_fcntl_h="/* #include <fcntl.h> */"
13675fi
13676if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13677 include_util_h="#include <util.h>"
13678else
13679 include_util_h="/* #include <util.h> */"
13680fi
13681if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13682 include_assert_h="#include <assert.h>"
13683else
13684 include_assert_h="/* #include <assert.h> */"
13685fi
13686if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13687 include_sys_ioctl_h="#include <sys/ioctl.h>"
13688else
13689 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13690fi
13691if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13692 include_sys_select_h="#include <sys/select.h>"
13693else
13694 include_sys_select_h="/* #include <sys/select.h> */"
13695fi
13696if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13697 include_sys_strredir_h="#include <sys/strredir.h>"
13698else
13699 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13700fi
13701if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13702 include_sys_time_h="#include <sys/time.h>"
13703else
13704 include_sys_time_h="/* #include <sys/time.h> */"
13705fi
13706if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13707 include_time_h="#include <time.h>"
13708else
13709 include_time_h="/* #include <time.h> */"
13710fi
13711
13712ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11924ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13713 11925
13714cat >confcache <<\_ACEOF 11926cat >confcache <<\_ACEOF
13715# This file is a shell script that caches the results of configure 11927# This file is a shell script that caches the results of configure
13716# tests run on this system so they can be shared between configure 11928# tests run on this system so they can be shared between configure
13717# scripts and configure runs, see configure's option --config-cache. 11929# scripts and configure runs, see configure's option --config-cache.
14266 case $ac_config_target in 12478 case $ac_config_target in
14267 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; 12479 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12480 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14269 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12481 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14270 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12482 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14271 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14272 12483
14273 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12484 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14274echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12485echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14275 { (exit 1); exit 1; }; };; 12486 { (exit 1); exit 1; }; };;
14276 esac 12487 esac
14375host_cpu!$host_cpu$ac_delim 12586host_cpu!$host_cpu$ac_delim
14376host_vendor!$host_vendor$ac_delim 12587host_vendor!$host_vendor$ac_delim
14377host_os!$host_os$ac_delim 12588host_os!$host_os$ac_delim
14378VERSION!$VERSION$ac_delim 12589VERSION!$VERSION$ac_delim
14379DATE!$DATE$ac_delim 12590DATE!$DATE$ac_delim
14380LSMDATE!$LSMDATE$ac_delim
14381LIBVERSION!$LIBVERSION$ac_delim
14382CC!$CC$ac_delim 12591CC!$CC$ac_delim
14383CFLAGS!$CFLAGS$ac_delim 12592CFLAGS!$CFLAGS$ac_delim
14384LDFLAGS!$LDFLAGS$ac_delim 12593LDFLAGS!$LDFLAGS$ac_delim
14385CPPFLAGS!$CPPFLAGS$ac_delim 12594CPPFLAGS!$CPPFLAGS$ac_delim
14386ac_ct_CC!$ac_ct_CC$ac_delim 12595ac_ct_CC!$ac_ct_CC$ac_delim
14394INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12603INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14395INSTALL_DATA!$INSTALL_DATA$ac_delim 12604INSTALL_DATA!$INSTALL_DATA$ac_delim
14396GREP!$GREP$ac_delim 12605GREP!$GREP$ac_delim
14397EGREP!$EGREP$ac_delim 12606EGREP!$EGREP$ac_delim
14398LINKER!$LINKER$ac_delim 12607LINKER!$LINKER$ac_delim
14399INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14400RXVTNAME!$RXVTNAME$ac_delim 12608RXVTNAME!$RXVTNAME$ac_delim
14401CXXCPP!$CXXCPP$ac_delim 12609CXXCPP!$CXXCPP$ac_delim
14402TIC!$TIC$ac_delim 12610TIC!$TIC$ac_delim
14403XMKMF!$XMKMF$ac_delim 12611XMKMF!$XMKMF$ac_delim
14404X_CFLAGS!$X_CFLAGS$ac_delim 12612X_CFLAGS!$X_CFLAGS$ac_delim
14405X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12613X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14406X_LIBS!$X_LIBS$ac_delim 12614X_LIBS!$X_LIBS$ac_delim
14407X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12615X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14408afterimage_config!$afterimage_config$ac_delim 12616afterimage_config!$afterimage_config$ac_delim
14409rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14410rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14411rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14412rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14413rxvt_intp_define!$rxvt_intp_define$ac_delim
14414rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14415PKG_CONFIG!$PKG_CONFIG$ac_delim 12617PKG_CONFIG!$PKG_CONFIG$ac_delim
14416XFT_CONFIG!$XFT_CONFIG$ac_delim 12618XFT_CONFIG!$XFT_CONFIG$ac_delim
14417PERL!$PERL$ac_delim 12619PERL!$PERL$ac_delim
14418PERLLIB!$PERLLIB$ac_delim 12620PERLLIB!$PERLLIB$ac_delim
14419PERLFLAGS!$PERLFLAGS$ac_delim 12621PERLFLAGS!$PERLFLAGS$ac_delim
14420PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim 12622PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14421IF_PERL!$IF_PERL$ac_delim 12623IF_PERL!$IF_PERL$ac_delim
14422PERL_O!$PERL_O$ac_delim 12624PERL_O!$PERL_O$ac_delim
14423AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12625AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14424AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12626AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14425include_stdint_h!$include_stdint_h$ac_delim 12627LIBOBJS!$LIBOBJS$ac_delim
14426include_stdarg_h!$include_stdarg_h$ac_delim 12628LTLIBOBJS!$LTLIBOBJS$ac_delim
14427include_stdlib_h!$include_stdlib_h$ac_delim
14428include_unistd_h!$include_unistd_h$ac_delim
14429include_string_h!$include_string_h$ac_delim
14430_ACEOF 12629_ACEOF
14431 12630
14432 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
14433 break 12632 break
14434 elif $ac_last_try; then 12633 elif $ac_last_try; then
14435 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14436echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12635echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14437 { (exit 1); exit 1; }; } 12636 { (exit 1); exit 1; }; }
14446 ac_eof=`expr $ac_eof + 1` 12645 ac_eof=`expr $ac_eof + 1`
14447fi 12646fi
14448 12647
14449cat >>$CONFIG_STATUS <<_ACEOF 12648cat >>$CONFIG_STATUS <<_ACEOF
14450cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12649cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14451/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14452_ACEOF
14453sed '
14454s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14455s/^/s,@/; s/!/@,|#_!!_#|/
14456:n
14457t n
14458s/'"$ac_delim"'$/,g/; t
14459s/$/\\/; p
14460N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14461' >>$CONFIG_STATUS <conf$$subs.sed
14462rm -f conf$$subs.sed
14463cat >>$CONFIG_STATUS <<_ACEOF
14464CEOF$ac_eof
14465_ACEOF
14466
14467
14468ac_delim='%!_!# '
14469for ac_last_try in false false false false false :; do
14470 cat >conf$$subs.sed <<_ACEOF
14471include_fcntl_h!$include_fcntl_h$ac_delim
14472include_util_h!$include_util_h$ac_delim
14473include_assert_h!$include_assert_h$ac_delim
14474include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14475include_sys_select_h!$include_sys_select_h$ac_delim
14476include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14477include_sys_time_h!$include_sys_time_h$ac_delim
14478include_time_h!$include_time_h$ac_delim
14479LIBOBJS!$LIBOBJS$ac_delim
14480LTLIBOBJS!$LTLIBOBJS$ac_delim
14481_ACEOF
14482
14483 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
14484 break
14485 elif $ac_last_try; then
14486 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14487echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14488 { (exit 1); exit 1; }; }
14489 else
14490 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14491 fi
14492done
14493
14494ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14495if test -n "$ac_eof"; then
14496 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14497 ac_eof=`expr $ac_eof + 1`
14498fi
14499
14500cat >>$CONFIG_STATUS <<_ACEOF
14501cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14502/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 12650/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14503_ACEOF 12651_ACEOF
14504sed ' 12652sed '
14505s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12653s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14506s/^/s,@/; s/!/@,|#_!!_#|/ 12654s/^/s,@/; s/!/@,|#_!!_#|/
14759s&@builddir@&$ac_builddir&;t t 12907s&@builddir@&$ac_builddir&;t t
14760s&@abs_builddir@&$ac_abs_builddir&;t t 12908s&@abs_builddir@&$ac_abs_builddir&;t t
14761s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14762s&@INSTALL@&$ac_INSTALL&;t t 12910s&@INSTALL@&$ac_INSTALL&;t t
14763$ac_datarootdir_hack 12911$ac_datarootdir_hack
14764" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12912" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14765 12913
14766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12914test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14769 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12917 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines