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.122 by ayin, Tue Dec 11 18:32:08 2007 UTC

658host_cpu 658host_cpu
659host_vendor 659host_vendor
660host_os 660host_os
661VERSION 661VERSION
662DATE 662DATE
663LSMDATE
664LIBVERSION
665CC 663CC
666CFLAGS 664CFLAGS
667LDFLAGS 665LDFLAGS
668CPPFLAGS 666CPPFLAGS
669ac_ct_CC 667ac_ct_CC
677INSTALL_SCRIPT 675INSTALL_SCRIPT
678INSTALL_DATA 676INSTALL_DATA
679GREP 677GREP
680EGREP 678EGREP
681LINKER 679LINKER
682INSTALL_LIBRXVT
683RXVTNAME 680RXVTNAME
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
704IF_PERL 695IF_PERL
705PERL_O 696PERL_O
706AFTERIMAGE_CFLAGS 697AFTERIMAGE_CFLAGS
707AFTERIMAGE_LIBS 698AFTERIMAGE_LIBS
708include_stdint_h 699include_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 700include_sys_ioctl_h
717include_sys_select_h
718include_sys_strredir_h 701include_sys_strredir_h
719include_sys_time_h
720include_time_h
721LIBOBJS 702LIBOBJS
722LTLIBOBJS' 703LTLIBOBJS'
723ac_subst_files='' 704ac_subst_files=''
724 ac_precious_vars='build_alias 705 ac_precious_vars='build_alias
725host_alias 706host_alias
1316Optional Features: 1297Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features 1300 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent 1301 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared
1322 --enable-warnings turn on g++ warnings 1302 --enable-warnings turn on g++ warnings
1323 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1303 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1324 --enable-combining enable composition of base and combining characters 1304 --enable-combining enable composition of base and combining characters
1325 --enable-xft enable xft support on systems that have it 1305 --enable-xft enable xft support on systems that have it
1326 --enable-font-styles enable bold and italic support 1306 --enable-font-styles enable bold and italic support
1328 --enable-transparency enable transparent backgrounds 1308 --enable-transparency enable transparent backgrounds
1329 --enable-fading enable colors fading when off focus 1309 --enable-fading enable colors fading when off focus
1330 --enable-rxvt-scroll enable rxvt style scrollbar 1310 --enable-rxvt-scroll enable rxvt style scrollbar
1331 --enable-next-scroll enable NeXT style scrollbar 1311 --enable-next-scroll enable NeXT style scrollbar
1332 --enable-xterm-scroll enable Xterm style scrollbar 1312 --enable-xterm-scroll enable Xterm style scrollbar
1313 --enable-plain-scroll enable plain style scrollbar
1333 --enable-perl enable embedded perl interpreter 1314 --enable-perl enable embedded perl interpreter
1334 --enable-plain-scroll enable plain style scrollbar
1335 --enable-xim XIM (X Input Method) protocol support 1315 --enable-xim XIM (X Input Method) protocol support
1336 --disable-backspace-key disable handling of the backspace key 1316 --disable-backspace-key disable handling of the backspace key
1337 --disable-delete-key disable handling of the delete key 1317 --disable-delete-key disable handling of the delete key
1338 --disable-resources disable all resource checking 1318 --disable-resources disable all resource checking
1339 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1319 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1927echo "configuring for rxvt $VERSION" 1907echo "configuring for rxvt $VERSION"
1928echo "" 1908echo ""
1929 1909
1930orig_CXXFLAGS="$CXXFLAGS" 1910orig_CXXFLAGS="$CXXFLAGS"
1931 1911
1932
1933ac_ext=c 1912ac_ext=c
1934ac_cpp='$CPP $CPPFLAGS' 1913ac_cpp='$CPP $CPPFLAGS'
1935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937ac_compiler_gnu=$ac_cv_c_compiler_gnu 1916ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715echo "${ECHO_T}no" >&6; } 3694echo "${ECHO_T}no" >&6; }
3716fi 3695fi
3717rm -f conftest* 3696rm -f conftest*
3718 3697
3719 3698
3699
3700cat >>confdefs.h <<\_ACEOF
3701#define _GNU_SOURCE 1
3702_ACEOF
3703
3704
3720{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3705{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3721echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3706echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3722if test "${ac_cv_search_strerror+set}" = set; then 3707if test "${ac_cv_search_strerror+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6 3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3724else 3709else
3871LINKER=$LINKER 3856LINKER=$LINKER
3872 3857
3873 3858
3874if test -z "$orig_CXXFLAGS"; then 3859if test -z "$orig_CXXFLAGS"; then
3875 if test x$GCC = xyes && test "x$GXX" = xyes; then 3860 if test x$GCC = xyes && test "x$GXX" = xyes; then
3876 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 3861 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3877 cat >conftest.$ac_ext <<_ACEOF 3862 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */ 3863/* confdefs.h. */
3879_ACEOF 3864_ACEOF
3880cat confdefs.h >>conftest.$ac_ext 3865cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF 3866cat >>conftest.$ac_ext <<_ACEOF
3919 CXXFLAGS="-O" 3904 CXXFLAGS="-O"
3920 fi 3905 fi
3921 CFLAGS="$CXXFLAGS" 3906 CFLAGS="$CXXFLAGS"
3922fi 3907fi
3923 3908
3924
3925cat >>confdefs.h <<\_ACEOF
3926#define _GNU_SOURCE 1
3927_ACEOF
3928
3929
3930case $host in 3909case $host in
3931 *-*-solaris* ) 3910 *-*-solaris* )
3932 3911
3933cat >>confdefs.h <<\_ACEOF 3912cat >>confdefs.h <<\_ACEOF
3934#define _XOPEN_SOURCE 500 3913#define _XOPEN_SOURCE 500
3935_ACEOF 3914_ACEOF
3936 3915
3937 ;; 3916 ;;
3938esac 3917esac
3939
3940 3918
3941{ echo "$as_me:$LINENO: checking for setlocale" >&5 3919{ echo "$as_me:$LINENO: checking for setlocale" >&5
3942echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 3920echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3943if test "${ac_cv_func_setlocale+set}" = set; then 3921if test "${ac_cv_func_setlocale+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6 3922 echo $ECHO_N "(cached) $ECHO_C" >&6
4417support_iso14755=yes 4395support_iso14755=yes
4418support_styles=yes 4396support_styles=yes
4419support_perl=yes 4397support_perl=yes
4420codesets=all 4398codesets=all
4421 4399
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 4400
4432 4401
4433# Check whether --enable-everything was given. 4402# Check whether --enable-everything was given.
4434if test "${enable_everything+set}" = set; then 4403if test "${enable_everything+set}" = set; then
4435 enableval=$enable_everything; 4404 enableval=$enable_everything;
4641 support_scroll_xterm=$enableval 4610 support_scroll_xterm=$enableval
4642 fi 4611 fi
4643fi 4612fi
4644 4613
4645 4614
4615# Check whether --enable-plain-scroll was given.
4616if test "${enable_plain_scroll+set}" = set; then
4617 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4618 support_scroll_plain=$enableval
4619 fi
4620fi
4621
4622
4646# Check whether --enable-perl was given. 4623# Check whether --enable-perl was given.
4647if test "${enable_perl+set}" = set; then 4624if test "${enable_perl+set}" = set; then
4648 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4625 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4649 support_perl=$enableval 4626 support_perl=$enableval
4650 fi
4651fi
4652
4653
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 4627 fi
4659fi 4628fi
4660 4629
4661 4630
4662 4631
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
5342
5343
5344
5372for ac_header in sys/epoll.h sys/event.h sys/queue.h port.h 5345for ac_header in sys/inotify.h sys/epoll.h sys/event.h sys/queue.h port.h poll.h sys/select.h
5373do 5346do
5374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5376 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5510 5483
5511 5484
5512 5485
5513 5486
5514 5487
5488
5489
5490
5515for ac_func in epoll_ctl kqueue port_create 5491for ac_func in inotify_init epoll_ctl kqueue port_create poll select
5516do 5492do
5517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5518{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5494{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5496if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5689echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; } 5665echo "${ECHO_T}$ac_cv_func_clock_gettime" >&6; }
5690if test $ac_cv_func_clock_gettime = yes; then 5666if test $ac_cv_func_clock_gettime = yes; then
5691 : 5667 :
5692else 5668else
5693 5669
5670 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5694 5671
5695{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 5672{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
5696echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; } 5673echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
5697if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 5674if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6 5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 5737
5761 LIBS="-lrt $LIBS" 5738 LIBS="-lrt $LIBS"
5762 5739
5763fi 5740fi
5764 5741
5742 unset ac_cv_func_clock_gettime
5765 5743
5766for ac_func in clock_gettime 5744for ac_func in clock_gettime
5767do 5745do
5768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5746as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5769{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5747{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5854_ACEOF 5832_ACEOF
5855 5833
5856fi 5834fi
5857done 5835done
5858 5836
5837 fi
5859 5838
5860fi 5839fi
5861 5840
5862 5841
5863 5842
5974echo "${ECHO_T}$TIC" >&6; } 5953echo "${ECHO_T}$TIC" >&6; }
5975else 5954else
5976 { echo "$as_me:$LINENO: result: no" >&5 5955 { echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6; } 5956echo "${ECHO_T}no" >&6; }
5978fi 5957fi
5979
5980
5981 5958
5982 5959
5983 5960
5984{ echo "$as_me:$LINENO: checking for X" >&5 5961{ echo "$as_me:$LINENO: checking for X" >&5
5985echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5962echo $ECHO_N "checking for X... $ECHO_C" >&6; }
7372echo "${ECHO_T}no" >&6; } 7349echo "${ECHO_T}no" >&6; }
7373 fi 7350 fi
7374 fi 7351 fi
7375fi 7352fi
7376 7353
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 7354
7454 7355
7455 7356
7456 7357
7457 7358
7458 7359
7459 7360
7460 7361
7461for ac_header in \ 7362for 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 \ 7363 sys/byteorder.h \
7470 sys/ioctl.h \ 7364 sys/ioctl.h \
7471 sys/select.h \
7472 sys/sockio.h \ 7365 sys/sockio.h \
7473 sys/strredir.h \ 7366 sys/strredir.h \
7474 sys/time.h \
7475 stdint.h \ 7367 stdint.h \
7476 wchar.h \ 7368 wchar.h \
7477 cwchar \ 7369 cwchar \
7478 clocale \ 7370 clocale \
7479 7371
7614fi 7506fi
7615 7507
7616done 7508done
7617 7509
7618 7510
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 7511{ 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; } 7512echo $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 7513if test "${rxvt_cv_header_sysioctl+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6 7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7685else 7515else
7689cat confdefs.h >>conftest.$ac_ext 7519cat confdefs.h >>conftest.$ac_ext
7690cat >>conftest.$ac_ext <<_ACEOF 7520cat >>conftest.$ac_ext <<_ACEOF
7691/* end confdefs.h. */ 7521/* end confdefs.h. */
7692#include <stdio.h> 7522#include <stdio.h>
7693#include <sys/ioctl.h> 7523#include <sys/ioctl.h>
7694#ifdef HAVE_TERMIOS_H
7695#include <termios.h> 7524#include <termios.h>
7696#endif 7525
7697int 7526int
7698main () 7527main ()
7699{ 7528{
7700int a = ECHO; 7529int a = ECHO;
7701 ; 7530 ;
7850cat >>confdefs.h <<\_ACEOF 7679cat >>confdefs.h <<\_ACEOF
7851#define XLIB_ILLEGAL_ACCESS 1 7680#define XLIB_ILLEGAL_ACCESS 1
7852_ACEOF 7681_ACEOF
7853 7682
7854fi 7683fi
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 7684
8033{ echo "$as_me:$LINENO: checking for mode_t" >&5 7685{ echo "$as_me:$LINENO: checking for mode_t" >&5
8034echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 7686echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8035if test "${ac_cv_type_mode_t+set}" = set; then 7687if test "${ac_cv_type_mode_t+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6 7688 echo $ECHO_N "(cached) $ECHO_C" >&6
8193_ACEOF 7845_ACEOF
8194 7846
8195fi 7847fi
8196 7848
8197 7849
8198{ echo "$as_me:$LINENO: checking for short" >&5 7850 { echo "$as_me:$LINENO: checking for int16_t" >&5
8199echo $ECHO_N "checking for short... $ECHO_C" >&6; } 7851echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
8200if test "${ac_cv_type_short+set}" = set; then 7852if test "${ac_cv_c_int16_t+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6 7853 echo $ECHO_N "(cached) $ECHO_C" >&6
8202else 7854else
7855 ac_cv_c_int16_t=no
7856 for ac_type in 'int16_t' 'int' 'long int' \
7857 'long long int' 'short int' 'signed char'; do
8203 cat >conftest.$ac_ext <<_ACEOF 7858 cat >conftest.$ac_ext <<_ACEOF
8204/* confdefs.h. */ 7859/* confdefs.h. */
8205_ACEOF 7860_ACEOF
8206cat confdefs.h >>conftest.$ac_ext 7861cat confdefs.h >>conftest.$ac_ext
8207cat >>conftest.$ac_ext <<_ACEOF 7862cat >>conftest.$ac_ext <<_ACEOF
8208/* end confdefs.h. */ 7863/* end confdefs.h. */
8209$ac_includes_default 7864$ac_includes_default
8210typedef short ac__type_new_;
8211int 7865int
8212main () 7866main ()
8213{ 7867{
8214if ((ac__type_new_ *) 0) 7868static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
8215 return 0; 7869test_array [0] = 0
8216if (sizeof (ac__type_new_)) 7870
8217 return 0;
8218 ; 7871 ;
8219 return 0; 7872 return 0;
8220} 7873}
8221_ACEOF 7874_ACEOF
8222rm -f conftest.$ac_objext 7875rm -f conftest.$ac_objext
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && { 7888 (exit $ac_status); } && {
8236 test -z "$ac_cxx_werror_flag" || 7889 test -z "$ac_cxx_werror_flag" ||
8237 test ! -s conftest.err 7890 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then 7891 } && 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 7892 cat >conftest.$ac_ext <<_ACEOF
8264/* confdefs.h. */ 7893/* confdefs.h. */
8265_ACEOF 7894_ACEOF
8266cat confdefs.h >>conftest.$ac_ext 7895cat confdefs.h >>conftest.$ac_ext
8267cat >>conftest.$ac_ext <<_ACEOF 7896cat >>conftest.$ac_ext <<_ACEOF
8268/* end confdefs.h. */ 7897/* end confdefs.h. */
8269$ac_includes_default 7898$ac_includes_default
8270 typedef short ac__type_sizeof_;
8271int 7899int
8272main () 7900main ()
8273{ 7901{
8274static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7902static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
7903 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
8275test_array [0] = 0 7904test_array [0] = 0
8276 7905
8277 ; 7906 ;
8278 return 0; 7907 return 0;
8279} 7908}
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } && { 7923 (exit $ac_status); } && {
8295 test -z "$ac_cxx_werror_flag" || 7924 test -z "$ac_cxx_werror_flag" ||
8296 test ! -s conftest.err 7925 test ! -s conftest.err
8297 } && test -s conftest.$ac_objext; then 7926 } && test -s conftest.$ac_objext; then
8298 ac_lo=0 ac_mid=0 7927 :
8299 while :; do 7928else
7929 echo "$as_me: failed program was:" >&5
7930sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 case $ac_type in
7933 int16_t) ac_cv_c_int16_t=yes ;;
7934 *) ac_cv_c_int16_t=$ac_type ;;
7935esac
7936
7937fi
7938
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940else
7941 echo "$as_me: failed program was:" >&5
7942sed 's/^/| /' conftest.$ac_ext >&5
7943
7944
7945fi
7946
7947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 test "$ac_cv_c_int16_t" != no && break
7949 done
7950fi
7951{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7952echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
7953 case $ac_cv_c_int16_t in #(
7954 no|yes) ;; #(
7955 *)
7956
7957cat >>confdefs.h <<_ACEOF
7958#define int16_t $ac_cv_c_int16_t
7959_ACEOF
7960;;
7961 esac
7962
7963
7964 { echo "$as_me:$LINENO: checking for uint16_t" >&5
7965echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
7966if test "${ac_cv_c_uint16_t+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969 ac_cv_c_uint16_t=no
7970 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7971 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8300 cat >conftest.$ac_ext <<_ACEOF 7972 cat >conftest.$ac_ext <<_ACEOF
8301/* confdefs.h. */ 7973/* confdefs.h. */
8302_ACEOF 7974_ACEOF
8303cat confdefs.h >>conftest.$ac_ext 7975cat confdefs.h >>conftest.$ac_ext
8304cat >>conftest.$ac_ext <<_ACEOF 7976cat >>conftest.$ac_ext <<_ACEOF
8305/* end confdefs.h. */ 7977/* end confdefs.h. */
8306$ac_includes_default 7978$ac_includes_default
8307 typedef short ac__type_sizeof_;
8308int 7979int
8309main () 7980main ()
8310{ 7981{
8311static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7982static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
8312test_array [0] = 0 7983test_array [0] = 0
8313 7984
8314 ; 7985 ;
8315 return 0; 7986 return 0;
8316} 7987}
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } && { 8002 (exit $ac_status); } && {
8332 test -z "$ac_cxx_werror_flag" || 8003 test -z "$ac_cxx_werror_flag" ||
8333 test ! -s conftest.err 8004 test ! -s conftest.err
8334 } && test -s conftest.$ac_objext; then 8005 } && test -s conftest.$ac_objext; then
8335 ac_hi=$ac_mid; break 8006 case $ac_type in
8007 uint16_t) ac_cv_c_uint16_t=yes ;;
8008 *) ac_cv_c_uint16_t=$ac_type ;;
8009esac
8010
8336else 8011else
8337 echo "$as_me: failed program was:" >&5 8012 echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5 8013sed 's/^/| /' conftest.$ac_ext >&5
8339 8014
8340 ac_lo=`expr $ac_mid + 1` 8015
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 8016fi
8347 8017
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019 test "$ac_cv_c_uint16_t" != no && break
8349 done 8020 done
8350else 8021fi
8351 echo "$as_me: failed program was:" >&5 8022{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5 8023echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
8024 case $ac_cv_c_uint16_t in #(
8025 no|yes) ;; #(
8026 *)
8353 8027
8028
8029cat >>confdefs.h <<_ACEOF
8030#define uint16_t $ac_cv_c_uint16_t
8031_ACEOF
8032;;
8033 esac
8034
8035
8036 { echo "$as_me:$LINENO: checking for int32_t" >&5
8037echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8038if test "${ac_cv_c_int32_t+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 ac_cv_c_int32_t=no
8042 for ac_type in 'int32_t' 'int' 'long int' \
8043 'long long int' 'short int' 'signed char'; do
8354 cat >conftest.$ac_ext <<_ACEOF 8044 cat >conftest.$ac_ext <<_ACEOF
8355/* confdefs.h. */ 8045/* confdefs.h. */
8356_ACEOF 8046_ACEOF
8357cat confdefs.h >>conftest.$ac_ext 8047cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF 8048cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */ 8049/* end confdefs.h. */
8360$ac_includes_default 8050$ac_includes_default
8361 typedef short ac__type_sizeof_;
8362int 8051int
8363main () 8052main ()
8364{ 8053{
8365static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8054static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
8366test_array [0] = 0 8055test_array [0] = 0
8367 8056
8368 ; 8057 ;
8369 return 0; 8058 return 0;
8370} 8059}
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && { 8074 (exit $ac_status); } && {
8386 test -z "$ac_cxx_werror_flag" || 8075 test -z "$ac_cxx_werror_flag" ||
8387 test ! -s conftest.err 8076 test ! -s conftest.err
8388 } && test -s conftest.$ac_objext; then 8077 } && test -s conftest.$ac_objext; then
8389 ac_hi=-1 ac_mid=-1
8390 while :; do
8391 cat >conftest.$ac_ext <<_ACEOF 8078 cat >conftest.$ac_ext <<_ACEOF
8392/* confdefs.h. */ 8079/* confdefs.h. */
8393_ACEOF 8080_ACEOF
8394cat confdefs.h >>conftest.$ac_ext 8081cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF 8082cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */ 8083/* end confdefs.h. */
8397$ac_includes_default 8084$ac_includes_default
8398 typedef short ac__type_sizeof_;
8399int 8085int
8400main () 8086main ()
8401{ 8087{
8402static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8088static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
8089 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
8403test_array [0] = 0 8090test_array [0] = 0
8404 8091
8405 ; 8092 ;
8406 return 0; 8093 return 0;
8407} 8094}
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && { 8109 (exit $ac_status); } && {
8423 test -z "$ac_cxx_werror_flag" || 8110 test -z "$ac_cxx_werror_flag" ||
8424 test ! -s conftest.err 8111 test ! -s conftest.err
8425 } && test -s conftest.$ac_objext; then 8112 } && test -s conftest.$ac_objext; then
8426 ac_lo=$ac_mid; break 8113 :
8427else 8114else
8428 echo "$as_me: failed program was:" >&5 8115 echo "$as_me: failed program was:" >&5
8429sed 's/^/| /' conftest.$ac_ext >&5 8116sed 's/^/| /' conftest.$ac_ext >&5
8430 8117
8431 ac_hi=`expr '(' $ac_mid ')' - 1` 8118 case $ac_type in
8432 if test $ac_mid -le $ac_hi; then 8119 int32_t) ac_cv_c_int32_t=yes ;;
8433 ac_lo= ac_hi= 8120 *) ac_cv_c_int32_t=$ac_type ;;
8434 break 8121esac
8435 fi 8122
8436 ac_mid=`expr 2 '*' $ac_mid`
8437fi 8123fi
8438 8124
8439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 done
8441else 8126else
8442 echo "$as_me: failed program was:" >&5 8127 echo "$as_me: failed program was:" >&5
8443sed 's/^/| /' conftest.$ac_ext >&5 8128sed 's/^/| /' conftest.$ac_ext >&5
8444 8129
8445 ac_lo= ac_hi= 8130
8446fi 8131fi
8447 8132
8448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 test "$ac_cv_c_int32_t" != no && break
8135 done
8449fi 8136fi
8137{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
8138echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
8139 case $ac_cv_c_int32_t in #(
8140 no|yes) ;; #(
8141 *)
8450 8142
8451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8143cat >>confdefs.h <<_ACEOF
8452# Binary search between lo and hi bounds. 8144#define int32_t $ac_cv_c_int32_t
8453while test "x$ac_lo" != "x$ac_hi"; do 8145_ACEOF
8454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8146;;
8147 esac
8148
8149
8150 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8151echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8152if test "${ac_cv_c_uint32_t+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155 ac_cv_c_uint32_t=no
8156 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
8157 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
8455 cat >conftest.$ac_ext <<_ACEOF 8158 cat >conftest.$ac_ext <<_ACEOF
8456/* confdefs.h. */ 8159/* confdefs.h. */
8457_ACEOF 8160_ACEOF
8458cat confdefs.h >>conftest.$ac_ext 8161cat confdefs.h >>conftest.$ac_ext
8459cat >>conftest.$ac_ext <<_ACEOF 8162cat >>conftest.$ac_ext <<_ACEOF
8460/* end confdefs.h. */ 8163/* end confdefs.h. */
8461$ac_includes_default 8164$ac_includes_default
8462 typedef short ac__type_sizeof_;
8463int 8165int
8464main () 8166main ()
8465{ 8167{
8466static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8168static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
8467test_array [0] = 0 8169test_array [0] = 0
8468 8170
8469 ; 8171 ;
8470 return 0; 8172 return 0;
8471} 8173}
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } && { 8188 (exit $ac_status); } && {
8487 test -z "$ac_cxx_werror_flag" || 8189 test -z "$ac_cxx_werror_flag" ||
8488 test ! -s conftest.err 8190 test ! -s conftest.err
8489 } && test -s conftest.$ac_objext; then 8191 } && test -s conftest.$ac_objext; then
8490 ac_hi=$ac_mid 8192 case $ac_type in
8193 uint32_t) ac_cv_c_uint32_t=yes ;;
8194 *) ac_cv_c_uint32_t=$ac_type ;;
8195esac
8196
8491else 8197else
8492 echo "$as_me: failed program was:" >&5 8198 echo "$as_me: failed program was:" >&5
8493sed 's/^/| /' conftest.$ac_ext >&5 8199sed 's/^/| /' conftest.$ac_ext >&5
8494 8200
8495 ac_lo=`expr '(' $ac_mid ')' + 1` 8201
8496fi 8202fi
8497 8203
8498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8499done 8205 test "$ac_cv_c_uint32_t" != no && break
8500case $ac_lo in 8206 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 8207fi
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 8208{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
8594echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8209echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
8210 case $ac_cv_c_uint32_t in #(
8211 no|yes) ;; #(
8212 *)
8595 8213
8214cat >>confdefs.h <<\_ACEOF
8215#define _UINT32_T 1
8216_ACEOF
8596 8217
8597 8218
8598cat >>confdefs.h <<_ACEOF 8219cat >>confdefs.h <<_ACEOF
8599#define SIZEOF_SHORT $ac_cv_sizeof_short 8220#define uint32_t $ac_cv_c_uint32_t
8600_ACEOF 8221_ACEOF
8601 8222;;
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 8223 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 8224
10213 8225
10214 8226
10215for ac_func in unsetenv 8227for ac_func in unsetenv
10216do 8228do
10457fi 8469fi
10458done 8470done
10459 8471
10460 8472
10461 8473
10462
10463
10464for ac_header in \ 8474for ac_header in lastlog.h
10465 utmp.h \
10466 utmpx.h \
10467 lastlog.h \
10468
10469do 8475do
10470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10604 8610
10605done 8611done
10606 8612
10607 8613
10608 8614
10609if test "${ac_cv_header_utmp_h+set}" = set; then 8615
8616for ac_header in utmp.h
8617do
8618as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10610 { echo "$as_me:$LINENO: checking for utmp.h" >&5 8620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10611echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612if test "${ac_cv_header_utmp_h+set}" = set; then 8622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6 8623 echo $ECHO_N "(cached) $ECHO_C" >&6
10614fi 8624fi
8625ac_res=`eval echo '${'$as_ac_Header'}'`
10615{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
10616echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8627echo "${ECHO_T}$ac_res" >&6; }
10617else 8628else
10618 # Is the header compilable? 8629 # Is the header compilable?
10619{ echo "$as_me:$LINENO: checking utmp.h usability" >&5 8630{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10620echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; } 8631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10621cat >conftest.$ac_ext <<_ACEOF 8632cat >conftest.$ac_ext <<_ACEOF
10622/* confdefs.h. */ 8633/* confdefs.h. */
10623_ACEOF 8634_ACEOF
10624cat confdefs.h >>conftest.$ac_ext 8635cat confdefs.h >>conftest.$ac_ext
10625cat >>conftest.$ac_ext <<_ACEOF 8636cat >>conftest.$ac_ext <<_ACEOF
10626/* end confdefs.h. */ 8637/* end confdefs.h. */
10627$ac_includes_default 8638$ac_includes_default
10628#include <utmp.h> 8639#include <$ac_header>
10629_ACEOF 8640_ACEOF
10630rm -f conftest.$ac_objext 8641rm -f conftest.$ac_objext
10631if { (ac_try="$ac_compile" 8642if { (ac_try="$ac_compile"
10632case "(($ac_try" in 8643case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8667{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10657echo "${ECHO_T}$ac_header_compiler" >&6; } 8668echo "${ECHO_T}$ac_header_compiler" >&6; }
10658 8669
10659# Is the header present? 8670# Is the header present?
10660{ echo "$as_me:$LINENO: checking utmp.h presence" >&5 8671{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10661echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; } 8672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10662cat >conftest.$ac_ext <<_ACEOF 8673cat >conftest.$ac_ext <<_ACEOF
10663/* confdefs.h. */ 8674/* confdefs.h. */
10664_ACEOF 8675_ACEOF
10665cat confdefs.h >>conftest.$ac_ext 8676cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF 8677cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h. */ 8678/* end confdefs.h. */
10668#include <utmp.h> 8679#include <$ac_header>
10669_ACEOF 8680_ACEOF
10670if { (ac_try="$ac_cpp conftest.$ac_ext" 8681if { (ac_try="$ac_cpp conftest.$ac_ext"
10671case "(($ac_try" in 8682case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;; 8684 *) ac_try_echo=$ac_try;;
10696echo "${ECHO_T}$ac_header_preproc" >&6; } 8707echo "${ECHO_T}$ac_header_preproc" >&6; }
10697 8708
10698# So? What about this header? 8709# So? What about this header?
10699case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 8710case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10700 yes:no: ) 8711 yes:no: )
10701 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 8712 { 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;} 8713echo "$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 8714 { 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;} 8715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10705 ac_header_preproc=yes 8716 ac_header_preproc=yes
10706 ;; 8717 ;;
10707 no:yes:* ) 8718 no:yes:* )
10708 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 8719 { 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;} 8720echo "$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 8721 { 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;} 8722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 8723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10713echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} 8724echo "$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 8725 { 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;} 8726echo "$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 8727 { 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;} 8728echo "$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 8729 { 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;} 8730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10720 8731
10721 ;; 8732 ;;
10722esac 8733esac
10723{ echo "$as_me:$LINENO: checking for utmp.h" >&5 8734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10724echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; } 8735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10725if test "${ac_cv_header_utmp_h+set}" = set; then 8736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6 8737 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else 8738else
10728 ac_cv_header_utmp_h=$ac_header_preproc 8739 eval "$as_ac_Header=\$ac_header_preproc"
10729fi 8740fi
8741ac_res=`eval echo '${'$as_ac_Header'}'`
10730{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 8742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; } 8743echo "${ECHO_T}$ac_res" >&6; }
10732 8744
10733fi 8745fi
10734if test $ac_cv_header_utmp_h = yes; then 8746if test `eval echo '${'$as_ac_Header'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8749_ACEOF
10735 { echo "$as_me:$LINENO: checking for struct utmp" >&5 8750 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10736echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; } 8751echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10737if test "${struct_utmp+set}" = set; then 8752if test "${struct_utmp+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6 8753 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else 8754else
10740 cat >conftest.$ac_ext <<_ACEOF 8755 cat >conftest.$ac_ext <<_ACEOF
10907 8922
10908fi 8923fi
10909 8924
10910fi 8925fi
10911 8926
8927done
10912 8928
10913 8929
10914if test "${ac_cv_header_utmpx_h+set}" = set; then 8930
8931for ac_header in utmpx.h
8932do
8933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10915 { echo "$as_me:$LINENO: checking for utmpx.h" >&5 8935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10916echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 8936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10917if test "${ac_cv_header_utmpx_h+set}" = set; then 8937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6 8938 echo $ECHO_N "(cached) $ECHO_C" >&6
10919fi 8939fi
8940ac_res=`eval echo '${'$as_ac_Header'}'`
10920{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 8941 { echo "$as_me:$LINENO: result: $ac_res" >&5
10921echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 8942echo "${ECHO_T}$ac_res" >&6; }
10922else 8943else
10923 # Is the header compilable? 8944 # Is the header compilable?
10924{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5 8945{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; } 8946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10926cat >conftest.$ac_ext <<_ACEOF 8947cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */ 8948/* confdefs.h. */
10928_ACEOF 8949_ACEOF
10929cat confdefs.h >>conftest.$ac_ext 8950cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF 8951cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */ 8952/* end confdefs.h. */
10932$ac_includes_default 8953$ac_includes_default
10933#include <utmpx.h> 8954#include <$ac_header>
10934_ACEOF 8955_ACEOF
10935rm -f conftest.$ac_objext 8956rm -f conftest.$ac_objext
10936if { (ac_try="$ac_compile" 8957if { (ac_try="$ac_compile"
10937case "(($ac_try" in 8958case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8982{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10962echo "${ECHO_T}$ac_header_compiler" >&6; } 8983echo "${ECHO_T}$ac_header_compiler" >&6; }
10963 8984
10964# Is the header present? 8985# Is the header present?
10965{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5 8986{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10966echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; } 8987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10967cat >conftest.$ac_ext <<_ACEOF 8988cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h. */ 8989/* confdefs.h. */
10969_ACEOF 8990_ACEOF
10970cat confdefs.h >>conftest.$ac_ext 8991cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF 8992cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */ 8993/* end confdefs.h. */
10973#include <utmpx.h> 8994#include <$ac_header>
10974_ACEOF 8995_ACEOF
10975if { (ac_try="$ac_cpp conftest.$ac_ext" 8996if { (ac_try="$ac_cpp conftest.$ac_ext"
10976case "(($ac_try" in 8997case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;; 8999 *) ac_try_echo=$ac_try;;
11001echo "${ECHO_T}$ac_header_preproc" >&6; } 9022echo "${ECHO_T}$ac_header_preproc" >&6; }
11002 9023
11003# So? What about this header? 9024# So? What about this header?
11004case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 9025case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11005 yes:no: ) 9026 yes:no: )
11006 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 9027 { 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;} 9028echo "$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 9029 { 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;} 9030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11010 ac_header_preproc=yes 9031 ac_header_preproc=yes
11011 ;; 9032 ;;
11012 no:yes:* ) 9033 no:yes:* )
11013 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 9034 { 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;} 9035echo "$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 9036 { 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;} 9037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11017 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 9038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11018echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} 9039echo "$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 9040 { 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;} 9041echo "$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 9042 { 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;} 9043echo "$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 9044 { 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;} 9045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11025 9046
11026 ;; 9047 ;;
11027esac 9048esac
11028{ echo "$as_me:$LINENO: checking for utmpx.h" >&5 9049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11029echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; } 9050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11030if test "${ac_cv_header_utmpx_h+set}" = set; then 9051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6 9052 echo $ECHO_N "(cached) $ECHO_C" >&6
11032else 9053else
11033 ac_cv_header_utmpx_h=$ac_header_preproc 9054 eval "$as_ac_Header=\$ac_header_preproc"
11034fi 9055fi
9056ac_res=`eval echo '${'$as_ac_Header'}'`
11035{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 9057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11036echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; } 9058echo "${ECHO_T}$ac_res" >&6; }
11037 9059
11038fi 9060fi
11039if test $ac_cv_header_utmpx_h = yes; then 9061if test `eval echo '${'$as_ac_Header'}'` = yes; then
9062 cat >>confdefs.h <<_ACEOF
9063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9064_ACEOF
11040 { echo "$as_me:$LINENO: checking for struct utmpx" >&5 9065 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
11041echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; } 9066echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
11042if test "${struct_utmpx+set}" = set; then 9067if test "${struct_utmpx+set}" = set; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6 9068 echo $ECHO_N "(cached) $ECHO_C" >&6
11044else 9069else
11045 cat >conftest.$ac_ext <<_ACEOF 9070 cat >conftest.$ac_ext <<_ACEOF
11212 9237
11213fi 9238fi
11214 9239
11215fi 9240fi
11216 9241
9242done
11217 9243
11218{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 9244{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11219echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 9245echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11220if test "${struct_lastlog+set}" = set; then 9246if test "${struct_lastlog+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6 9247 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" 11050 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13025 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 11051 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13026 fi 11052 fi
13027 fi 11053 fi
13028 11054
11055 save_LIBS="$LIBS"
11056 LIBS="$LIBS $X_LIBS"
13029 11057
13030for ac_header in X11/Xft/Xft.h 11058for ac_header in X11/Xft/Xft.h
13031do 11059do
13032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13166 support_xft=no 11194 support_xft=no
13167fi 11195fi
13168 11196
13169done 11197done
13170 11198
13171 ac_save_LIBS="$LIBS"
13172 LIBS="$LIBS $X_LIBS"
13173
13174{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 11199 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
13175echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 11200echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
13176if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 11201if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6 11202 echo $ECHO_N "(cached) $ECHO_C" >&6
13178else 11203else
13179 ac_check_lib_save_LIBS=$LIBS 11204 ac_check_lib_save_LIBS=$LIBS
13231LIBS=$ac_check_lib_save_LIBS 11256LIBS=$ac_check_lib_save_LIBS
13232fi 11257fi
13233{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 11258{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13234echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 11259echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13235if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 11260if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13236 cat >>confdefs.h <<_ACEOF 11261 :
13237#define HAVE_LIBXFT 1
13238_ACEOF
13239
13240 LIBS="-lXft $LIBS"
13241
13242else 11262else
13243 support_xft=no 11263 support_xft=no
13244fi 11264fi
13245 11265
13246 LIBS="$ac_save_LIBS" 11266 LIBS="$save_LIBS"
13247 11267
13248 if test x$support_xft = xyes; then 11268 if test x$support_xft = xyes; then
13249 11269
13250cat >>confdefs.h <<\_ACEOF 11270cat >>confdefs.h <<\_ACEOF
13251#define XFT 1 11271#define XFT 1
13646if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then 11666if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13647 include_stdint_h="#include <stdint.h>" 11667 include_stdint_h="#include <stdint.h>"
13648else 11668else
13649 include_stdint_h="/* #include <stdint.h> */" 11669 include_stdint_h="/* #include <stdint.h> */"
13650fi 11670fi
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 11671if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13687 include_sys_ioctl_h="#include <sys/ioctl.h>" 11672 include_sys_ioctl_h="#include <sys/ioctl.h>"
13688else 11673else
13689 include_sys_ioctl_h="/* #include <sys/ioctl.h> */" 11674 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13690fi 11675fi
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 11676if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13697 include_sys_strredir_h="#include <sys/strredir.h>" 11677 include_sys_strredir_h="#include <sys/strredir.h>"
13698else 11678else
13699 include_sys_strredir_h="/* #include <sys/strredir.h> */" 11679 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 11680fi
13711 11681
13712ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 11682ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13713 11683
13714cat >confcache <<\_ACEOF 11684cat >confcache <<\_ACEOF
14375host_cpu!$host_cpu$ac_delim 12345host_cpu!$host_cpu$ac_delim
14376host_vendor!$host_vendor$ac_delim 12346host_vendor!$host_vendor$ac_delim
14377host_os!$host_os$ac_delim 12347host_os!$host_os$ac_delim
14378VERSION!$VERSION$ac_delim 12348VERSION!$VERSION$ac_delim
14379DATE!$DATE$ac_delim 12349DATE!$DATE$ac_delim
14380LSMDATE!$LSMDATE$ac_delim
14381LIBVERSION!$LIBVERSION$ac_delim
14382CC!$CC$ac_delim 12350CC!$CC$ac_delim
14383CFLAGS!$CFLAGS$ac_delim 12351CFLAGS!$CFLAGS$ac_delim
14384LDFLAGS!$LDFLAGS$ac_delim 12352LDFLAGS!$LDFLAGS$ac_delim
14385CPPFLAGS!$CPPFLAGS$ac_delim 12353CPPFLAGS!$CPPFLAGS$ac_delim
14386ac_ct_CC!$ac_ct_CC$ac_delim 12354ac_ct_CC!$ac_ct_CC$ac_delim
14394INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 12362INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14395INSTALL_DATA!$INSTALL_DATA$ac_delim 12363INSTALL_DATA!$INSTALL_DATA$ac_delim
14396GREP!$GREP$ac_delim 12364GREP!$GREP$ac_delim
14397EGREP!$EGREP$ac_delim 12365EGREP!$EGREP$ac_delim
14398LINKER!$LINKER$ac_delim 12366LINKER!$LINKER$ac_delim
14399INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14400RXVTNAME!$RXVTNAME$ac_delim 12367RXVTNAME!$RXVTNAME$ac_delim
14401CXXCPP!$CXXCPP$ac_delim 12368CXXCPP!$CXXCPP$ac_delim
14402TIC!$TIC$ac_delim 12369TIC!$TIC$ac_delim
14403XMKMF!$XMKMF$ac_delim 12370XMKMF!$XMKMF$ac_delim
14404X_CFLAGS!$X_CFLAGS$ac_delim 12371X_CFLAGS!$X_CFLAGS$ac_delim
14405X_PRE_LIBS!$X_PRE_LIBS$ac_delim 12372X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14406X_LIBS!$X_LIBS$ac_delim 12373X_LIBS!$X_LIBS$ac_delim
14407X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 12374X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14408afterimage_config!$afterimage_config$ac_delim 12375afterimage_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 12376PKG_CONFIG!$PKG_CONFIG$ac_delim
14416XFT_CONFIG!$XFT_CONFIG$ac_delim 12377XFT_CONFIG!$XFT_CONFIG$ac_delim
14417PERL!$PERL$ac_delim 12378PERL!$PERL$ac_delim
14418PERLLIB!$PERLLIB$ac_delim 12379PERLLIB!$PERLLIB$ac_delim
14419PERLFLAGS!$PERLFLAGS$ac_delim 12380PERLFLAGS!$PERLFLAGS$ac_delim
14421IF_PERL!$IF_PERL$ac_delim 12382IF_PERL!$IF_PERL$ac_delim
14422PERL_O!$PERL_O$ac_delim 12383PERL_O!$PERL_O$ac_delim
14423AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim 12384AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14424AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim 12385AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14425include_stdint_h!$include_stdint_h$ac_delim 12386include_stdint_h!$include_stdint_h$ac_delim
14426include_stdarg_h!$include_stdarg_h$ac_delim
14427include_stdlib_h!$include_stdlib_h$ac_delim 12387include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14428include_unistd_h!$include_unistd_h$ac_delim
14429include_string_h!$include_string_h$ac_delim 12388include_sys_strredir_h!$include_sys_strredir_h$ac_delim
12389LIBOBJS!$LIBOBJS$ac_delim
12390LTLIBOBJS!$LTLIBOBJS$ac_delim
14430_ACEOF 12391_ACEOF
14431 12392
14432 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 12393 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
14433 break 12394 break
14434 elif $ac_last_try; then 12395 elif $ac_last_try; then
14435 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 12396 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14436echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 12397echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14437 { (exit 1); exit 1; }; } 12398 { (exit 1); exit 1; }; }
14446 ac_eof=`expr $ac_eof + 1` 12407 ac_eof=`expr $ac_eof + 1`
14447fi 12408fi
14448 12409
14449cat >>$CONFIG_STATUS <<_ACEOF 12410cat >>$CONFIG_STATUS <<_ACEOF
14450cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 12411cat >"\$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 12412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14503_ACEOF 12413_ACEOF
14504sed ' 12414sed '
14505s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 12415s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14506s/^/s,@/; s/!/@,|#_!!_#|/ 12416s/^/s,@/; s/!/@,|#_!!_#|/
14759s&@builddir@&$ac_builddir&;t t 12669s&@builddir@&$ac_builddir&;t t
14760s&@abs_builddir@&$ac_abs_builddir&;t t 12670s&@abs_builddir@&$ac_abs_builddir&;t t
14761s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12671s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14762s&@INSTALL@&$ac_INSTALL&;t t 12672s&@INSTALL@&$ac_INSTALL&;t t
14763$ac_datarootdir_hack 12673$ac_datarootdir_hack
14764" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 12674" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14765 12675
14766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12676test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12677 { 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"; } && 12678 { 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' 12679 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines