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

Comparing rxvt-unicode/configure (file contents):
Revision 1.56 by root, Fri Dec 23 14:46:34 2005 UTC vs.
Revision 1.104 by ayin, Sat Jun 23 13:41:19 2007 UTC

307#endif 307#endif
308#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
309# include <unistd.h> 309# include <unistd.h>
310#endif" 310#endif"
311 311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER CXXLIB INSTALL_LIBRXVT RXVTNAME TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
313ac_subst_files='MCOMMON' 313ac_subst_files=''
314 314
315# Initialize some variables set by options. 315# Initialize some variables set by options.
316ac_init_help= 316ac_init_help=
317ac_init_version=false 317ac_init_version=false
318# The variables have the same names as the options, with 318# The variables have the same names as the options, with
870 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
873 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support 874 --enable-font-styles enable bold and italic support
875 --enable-utmp enable utmp (utmpx) support
876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
877 --enable-lastlog enable lastlog support (requires --enable-utmp)
878 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable background pixmaps
876 --enable-afterimage enable integration with libAfterImage for background images
877 --enable-afterstep enable integration with AfterStep window manager
879 --enable-transparency enable transparent backgrounds 878 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg 879 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus 880 --enable-fading enable colors fading when off focus
882 --enable-menubar enable menubar
883 --enable-rxvt-scroll enable rxvt style scrollbar 881 --enable-rxvt-scroll enable rxvt style scrollbar
884 --enable-next-scroll enable NeXT style scrollbar 882 --enable-next-scroll enable NeXT style scrollbar
885 --enable-xterm-scroll enable Xterm style scrollbar 883 --enable-xterm-scroll enable Xterm style scrollbar
884 --enable-perl enable embedded perl interpreter
886 --enable-plain-scroll enable plain style scrollbar 885 --enable-plain-scroll enable plain style scrollbar
887 --enable-half-shadow use half width/height shadow on rxvt scrollbar
888 --enable-xim XIM (X Input Method) protocol support 886 --enable-xim XIM (X Input Method) protocol support
889 --enable-ttygid enable tty setting to group named "tty"
890 --disable-backspace-key disable handling of the backspace key 887 --disable-backspace-key disable handling of the backspace key
891 --disable-delete-key disable handling of the delete key 888 --disable-delete-key disable handling of the delete key
892 --disable-resources disable all resource checking 889 --disable-resources disable all resource checking
893 --enable-xgetdefault enable resources via X instead of our small version
894 --enable-8bitctrls enable 8 bit control sequences (not recommended) 890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
895 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 891 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
896 --enable-strings enable some replacement system functions
897 --disable-swapscreen disable swap screen support 892 --disable-swapscreen disable swap screen support
898 --enable-iso14755 enable support for extended ISO 14755 modes 893 --enable-iso14755 enable support for extended ISO 14755 modes
899 --enable-frills enable support for rarely used features 894 --enable-frills enable support for rarely used features
900 --enable-24bit enable support for using 24bit visuals if available
901 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
902 --enable-selectionscrolling enable scrolling during selections 896 --enable-selectionscrolling enable scrolling during selections
903 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
904 --enable-slipwheeling enable slip wheel scrolling (requires previous) 898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
905 --enable-dmalloc enable Gray Watson's malloc - for debugging use
906 --enable-dlmalloc enable Doug Lea's malloc - for production use
907 NOTE: enable only one malloc package
908 --enable-smart-resize enable smart growth/shrink behaviour 899 --enable-smart-resize enable smart growth/shrink behaviour
909 --enable-text-blink enable blinking text 900 --enable-text-blink enable blinking text
910 --enable-pointer-blank enable pointer blank when typing or inactive pointer 901 --enable-pointer-blank enable pointer blank when typing or inactive pointer
902 --enable-utmp enable utmp (utmpx) support
903 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
904 --enable-lastlog enable lastlog support (requires --enable-utmp)
911 905
912Optional Packages: 906Optional Packages:
913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
914 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-afterimage-config=DIR use libAfterImage config script in DIR
915 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 910 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
916 --with-res-name=NAME use this as default resource name (default: urxvt) 911 --with-res-name=NAME use this as default resource name (default: urxvt)
917 --with-res-class=CLASS use this as the resource class (default: URxvt) 912 --with-res-class=CLASS use this as the resource class (default: URxvt)
918 --with-name=NAME set the basename for the installed binaries (default: urxvt) 913 --with-name=NAME set the basename for the installed binaries (default: urxvt)
919 --with-term=NAME set the terminal to NAME (default: rxvt) 914 --with-term=NAME set the terminal to NAME (default: rxvt)
1024 echo 1019 echo
1025 $ac_configure --help 1020 $ac_configure --help
1026 else 1021 else
1027 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1022 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1028 fi 1023 fi
1029 cd "$ac_popdir" 1024 cd $ac_popdir
1030 done 1025 done
1031fi 1026fi
1032 1027
1033test -n "$ac_init_help" && exit 0 1028test -n "$ac_init_help" && exit 0
1034if $ac_init_version; then 1029if $ac_init_version; then
1372 1367
1373 1368
1374 1369
1375 1370
1376 1371
1372
1373 ac_config_headers="$ac_config_headers config.h:config.h.in"
1374
1375
1377ac_aux_dir= 1376ac_aux_dir=
1378for ac_dir in autoconf $srcdir/autoconf; do 1377for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1379 if test -f $ac_dir/install-sh; then 1378 if test -f $ac_dir/install-sh; then
1380 ac_aux_dir=$ac_dir 1379 ac_aux_dir=$ac_dir
1381 ac_install_sh="$ac_aux_dir/install-sh -c" 1380 ac_install_sh="$ac_aux_dir/install-sh -c"
1382 break 1381 break
1383 elif test -f $ac_dir/install.sh; then 1382 elif test -f $ac_dir/install.sh; then
1389 ac_install_sh="$ac_aux_dir/shtool install -c" 1388 ac_install_sh="$ac_aux_dir/shtool install -c"
1390 break 1389 break
1391 fi 1390 fi
1392done 1391done
1393if test -z "$ac_aux_dir"; then 1392if test -z "$ac_aux_dir"; then
1394 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1393 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1395echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1394echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1396 { (exit 1); exit 1; }; } 1395 { (exit 1); exit 1; }; }
1397fi 1396fi
1398ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1397ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1399ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1398ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1400ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1399ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1401
1402 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1403
1404 1400
1405# Make sure we can run config.sub. 1401# Make sure we can run config.sub.
1406$ac_config_sub sun4 >/dev/null 2>&1 || 1402$ac_config_sub sun4 >/dev/null 2>&1 ||
1407 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1403 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1404echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1460VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1456VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1461DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1457DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462echo "" 1458echo ""
1463echo "configuring for rxvt $VERSION" 1459echo "configuring for rxvt $VERSION"
1464echo "" 1460echo ""
1461
1462orig_CXXFLAGS="$CXXFLAGS"
1465 1463
1466 1464
1467ac_ext=c 1465ac_ext=c
1468ac_cpp='$CPP $CPPFLAGS' 1466ac_cpp='$CPP $CPPFLAGS'
1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 grep -v '^ *+' conftest.er1 >conftest.err 2028 grep -v '^ *+' conftest.er1 >conftest.err
2031 rm -f conftest.er1 2029 rm -f conftest.er1
2032 cat conftest.err >&5 2030 cat conftest.err >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } && 2032 (exit $ac_status); } &&
2035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2033 { ac_try='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5 2036 (eval $ac_try) 2>&5
2038 ac_status=$? 2037 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } && 2039 (exit $ac_status); }; } &&
2088 grep -v '^ *+' conftest.er1 >conftest.err 2087 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1 2088 rm -f conftest.er1
2090 cat conftest.err >&5 2089 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } && 2091 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5 2095 (eval $ac_try) 2>&5
2096 ac_status=$? 2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } && 2098 (exit $ac_status); }; } &&
2204 grep -v '^ *+' conftest.er1 >conftest.err 2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1 2205 rm -f conftest.er1
2206 cat conftest.err >&5 2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } && 2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5 2212 (eval $ac_try) 2>&5
2212 ac_status=$? 2213 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } && 2215 (exit $ac_status); }; } &&
2258 grep -v '^ *+' conftest.er1 >conftest.err 2259 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1 2260 rm -f conftest.er1
2260 cat conftest.err >&5 2261 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } && 2263 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5 2267 (eval $ac_try) 2>&5
2266 ac_status=$? 2268 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } && 2270 (exit $ac_status); }; } &&
2303 grep -v '^ *+' conftest.er1 >conftest.err 2305 grep -v '^ *+' conftest.er1 >conftest.err
2304 rm -f conftest.er1 2306 rm -f conftest.er1
2305 cat conftest.err >&5 2307 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } && 2309 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5 2313 (eval $ac_try) 2>&5
2311 ac_status=$? 2314 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } && 2316 (exit $ac_status); }; } &&
2347 grep -v '^ *+' conftest.er1 >conftest.err 2350 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1 2351 rm -f conftest.er1
2349 cat conftest.err >&5 2352 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } && 2354 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5 2358 (eval $ac_try) 2>&5
2355 ac_status=$? 2359 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } && 2361 (exit $ac_status); }; } &&
2531 grep -v '^ *+' conftest.er1 >conftest.err 2535 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1 2536 rm -f conftest.er1
2533 cat conftest.err >&5 2537 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } && 2539 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5 2543 (eval $ac_try) 2>&5
2539 ac_status=$? 2544 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } && 2546 (exit $ac_status); }; } &&
2589 grep -v '^ *+' conftest.er1 >conftest.err 2594 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1 2595 rm -f conftest.er1
2591 cat conftest.err >&5 2596 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } && 2598 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2599 { ac_try='test -z "$ac_cxx_werror_flag"
2600 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5 2602 (eval $ac_try) 2>&5
2597 ac_status=$? 2603 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } && 2605 (exit $ac_status); }; } &&
2660 grep -v '^ *+' conftest.er1 >conftest.err 2666 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1 2667 rm -f conftest.er1
2662 cat conftest.err >&5 2668 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && 2670 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2671 { ac_try='test -z "$ac_cxx_werror_flag"
2672 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5 2674 (eval $ac_try) 2>&5
2668 ac_status=$? 2675 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } && 2677 (exit $ac_status); }; } &&
2704 grep -v '^ *+' conftest.er1 >conftest.err 2711 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1 2712 rm -f conftest.er1
2706 cat conftest.err >&5 2713 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && 2715 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2716 { ac_try='test -z "$ac_cxx_werror_flag"
2717 || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5 2719 (eval $ac_try) 2>&5
2712 ac_status=$? 2720 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } && 2722 (exit $ac_status); }; } &&
3050 3058
3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 3060
3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054 3062
3055for ac_prog in gawk mawk nawk awk
3056do
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058set dummy $ac_prog; ac_word=$2
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061if test "${ac_cv_prog_AWK+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AWK="$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
3080 3063
3081fi
3082fi
3083AWK=$ac_cv_prog_AWK
3084if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086echo "${ECHO_T}$AWK" >&6
3087else
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090fi
3091
3092 test -n "$AWK" && break
3093done
3094
3095
3096ac_ext=c
3097ac_cpp='$CPP $CPPFLAGS'
3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
3102
3103if test -z "$orig_CXXFLAGS"; then
3104 CXXFLAGS='-O'
3105 if test x$GCC = xyes && test "x$GXX" = xyes; then
3106 CXXFLAGS="-g -O3"
3107 fi
3108 CFLAGS="$CXXFLAGS"
3109fi
3110
3111LINKER="$CXX"
3112if test x$GCC = xyes && test x$GXX = xyes; then
3113
3114echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3115echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3116if test "${ac_cv_lib_supcpp_main+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119 ac_check_lib_save_LIBS=$LIBS
3120LIBS="-lsupc++ $LIBS"
3121cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128
3129int
3130main ()
3131{
3132main ();
3133 ;
3134 return 0;
3135}
3136_ACEOF
3137rm -f conftest.$ac_objext conftest$ac_exeext
3138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3139 (eval $ac_link) 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } &&
3146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest$ac_exeext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 ac_cv_lib_supcpp_main=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163ac_cv_lib_supcpp_main=no
3164fi
3165rm -f conftest.err conftest.$ac_objext \
3166 conftest$ac_exeext conftest.$ac_ext
3167LIBS=$ac_check_lib_save_LIBS
3168fi
3169echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3170echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3171if test $ac_cv_lib_supcpp_main = yes; then
3172
3173 LINKER="$CC"
3174 LIBS="$LIBS -lsupc++"
3175
3176fi
3177
3178fi
3179LINKER=$LINKER
3180
3181
3182
3183cat >>confdefs.h <<\_ACEOF
3184#define _GNU_SOURCE 1
3185_ACEOF
3186
3187
3188case $host in
3189 *-*-solaris* )
3190
3191cat >>confdefs.h <<\_ACEOF
3192#define _XOPEN_SOURCE_EXTENDED 1
3193_ACEOF
3194
3195
3196cat >>confdefs.h <<\_ACEOF
3197#define _XOPEN_SOURCE 2
3198_ACEOF
3199
3200
3201cat >>confdefs.h <<\_ACEOF
3202#define __EXTENSIONS__ 1
3203_ACEOF
3204
3205 ;;
3206esac
3207
3208
3209ac_ext=cc
3210ac_cpp='$CXXCPP $CPPFLAGS'
3211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3214
3215
3216
3217ac_ext=cc
3218ac_cpp='$CXXCPP $CPPFLAGS'
3219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3222echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3223echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3224if test -z "$CXXCPP"; then
3225 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228 # Double quotes because CXXCPP needs to be expanded
3229 for CXXCPP in "$CXX -E" "/lib/cpp"
3230 do
3231 ac_preproc_ok=false
3232for ac_cxx_preproc_warn_flag in '' yes
3233do
3234 # Use a header file that comes with gcc, so configuring glibc
3235 # with a fresh cross-compiler works.
3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237 # <limits.h> exists even on freestanding compilers.
3238 # On the NeXT, cc -E runs the code through the compiler's parser,
3239 # not just through cpp. "Syntax error" is here to catch this case.
3240 cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h. */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h. */
3246#ifdef __STDC__
3247# include <limits.h>
3248#else
3249# include <assert.h>
3250#endif
3251 Syntax error
3252_ACEOF
3253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } >/dev/null; then
3261 if test -s conftest.err; then
3262 ac_cpp_err=$ac_cxx_preproc_warn_flag
3263 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3264 else
3265 ac_cpp_err=
3266 fi
3267else
3268 ac_cpp_err=yes
3269fi
3270if test -z "$ac_cpp_err"; then
3271 :
3272else
3273 echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 # Broken: fails on valid input.
3277continue
3278fi
3279rm -f conftest.err conftest.$ac_ext
3280
3281 # OK, works on sane cases. Now check whether non-existent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h. */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h. */
3289#include <ac_nonexistent.h>
3290_ACEOF
3291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_cxx_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3302 else
3303 ac_cpp_err=
3304 fi
3305else
3306 ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3310continue
3311else
3312 echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
3319rm -f conftest.err conftest.$ac_ext
3320
3321done
3322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323rm -f conftest.err conftest.$ac_ext
3324if $ac_preproc_ok; then
3325 break
3326fi
3327
3328 done
3329 ac_cv_prog_CXXCPP=$CXXCPP
3330
3331fi
3332 CXXCPP=$ac_cv_prog_CXXCPP
3333else
3334 ac_cv_prog_CXXCPP=$CXXCPP
3335fi
3336echo "$as_me:$LINENO: result: $CXXCPP" >&5
3337echo "${ECHO_T}$CXXCPP" >&6
3338ac_preproc_ok=false
3339for ac_cxx_preproc_warn_flag in '' yes
3340do
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348/* confdefs.h. */
3349_ACEOF
3350cat confdefs.h >>conftest.$ac_ext
3351cat >>conftest.$ac_ext <<_ACEOF
3352/* end confdefs.h. */
3353#ifdef __STDC__
3354# include <limits.h>
3355#else
3356# include <assert.h>
3357#endif
3358 Syntax error
3359_ACEOF
3360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3362 ac_status=$?
3363 grep -v '^ *+' conftest.er1 >conftest.err
3364 rm -f conftest.er1
3365 cat conftest.err >&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } >/dev/null; then
3368 if test -s conftest.err; then
3369 ac_cpp_err=$ac_cxx_preproc_warn_flag
3370 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3371 else
3372 ac_cpp_err=
3373 fi
3374else
3375 ac_cpp_err=yes
3376fi
3377if test -z "$ac_cpp_err"; then
3378 :
3379else
3380 echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 # Broken: fails on valid input.
3384continue
3385fi
3386rm -f conftest.err conftest.$ac_ext
3387
3388 # OK, works on sane cases. Now check whether non-existent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h. */
3396#include <ac_nonexistent.h>
3397_ACEOF
3398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_cxx_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3409 else
3410 ac_cpp_err=
3411 fi
3412else
3413 ac_cpp_err=yes
3414fi
3415if test -z "$ac_cpp_err"; then
3416 # Broken: success on invalid input.
3417continue
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 # Passes both tests.
3423ac_preproc_ok=:
3424break
3425fi
3426rm -f conftest.err conftest.$ac_ext
3427
3428done
3429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430rm -f conftest.err conftest.$ac_ext
3431if $ac_preproc_ok; then
3432 :
3433else
3434 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3435See \`config.log' for more details." >&5
3436echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3437See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3439fi
3440
3441ac_ext=cc
3442ac_cpp='$CXXCPP $CPPFLAGS'
3443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3446 3064
3447 3065
3448echo "$as_me:$LINENO: checking for egrep" >&5 3066echo "$as_me:$LINENO: checking for egrep" >&5
3449echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3450if test "${ac_cv_prog_egrep+set}" = set; then 3068if test "${ac_cv_prog_egrep+set}" = set; then
3525 grep -v '^ *+' conftest.er1 >conftest.err 3143 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1 3144 rm -f conftest.er1
3527 cat conftest.err >&5 3145 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } && 3147 (exit $ac_status); } &&
3530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5 3151 (eval $ac_try) 2>&5
3533 ac_status=$? 3152 ac_status=$?
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } && 3154 (exit $ac_status); }; } &&
3579 grep -v '^ *+' conftest.er1 >conftest.err 3198 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1 3199 rm -f conftest.er1
3581 cat conftest.err >&5 3200 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } && 3202 (exit $ac_status); } &&
3584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3203 { ac_try='test -z "$ac_c_werror_flag"
3204 || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5 3206 (eval $ac_try) 2>&5
3587 ac_status=$? 3207 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } && 3209 (exit $ac_status); }; } &&
3611if test "$ac_cv_search_strerror" != no; then 3231if test "$ac_cv_search_strerror" != no; then
3612 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3232 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3613 3233
3614fi 3234fi
3615 3235
3236ac_ext=cc
3237ac_cpp='$CXXCPP $CPPFLAGS'
3238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3616 3241
3242
3243if test x$GCC = xyes && test x$GXX = xyes; then
3244 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3246 save_CXX="$CXX"
3247 save_LIBS="$LIBS"
3248 CXX="$CC"
3249 LIBS="$LIBS -lsupc++"
3250 LINKER="$CC"
3251
3252cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258struct test { }; void f() try { throw new test; } catch (...) { throw; }
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_cxx_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest$ac_exeext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289
3290 echo "$as_me:$LINENO: result: ok" >&5
3291echo "${ECHO_T}ok" >&6
3292 CXXLIB="-lsupc++"
3293
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298
3299 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3300echo "${ECHO_T}no, making everything bigger and slower" >&6
3301 LIBS="$save_LIBS"
3302 LINKER="$save_CXX"
3303
3304
3305fi
3306rm -f conftest.err conftest.$ac_objext \
3307 conftest$ac_exeext conftest.$ac_ext
3308 CXX="$save_CXX"
3309fi
3310LINKER=$LINKER
3311
3312
3313
3314if test -z "$orig_CXXFLAGS"; then
3315 if test x$GCC = xyes && test "x$GXX" = xyes; then
3316 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323
3324int
3325main ()
3326{
3327
3328 ;
3329 return 0;
3330}
3331_ACEOF
3332rm -f conftest.$ac_objext
3333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3334 (eval $ac_compile) 2>conftest.er1
3335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_cxx_werror_flag"
3342 || test ! -s conftest.err'
3343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3344 (eval $ac_try) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 :
3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
3359CXXFLAGS="-g -O3"
3360fi
3361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3362 else
3363 CXXFLAGS="-O"
3364 fi
3365 CFLAGS="$CXXFLAGS"
3366fi
3367
3368
3369cat >>confdefs.h <<\_ACEOF
3370#define _GNU_SOURCE 1
3371_ACEOF
3372
3373
3374case $host in
3375 *-*-solaris* )
3376
3377cat >>confdefs.h <<\_ACEOF
3378#define _XOPEN_SOURCE_EXTENDED 1
3379_ACEOF
3380
3381
3382cat >>confdefs.h <<\_ACEOF
3383#define _XOPEN_SOURCE 2
3384_ACEOF
3385
3386
3387cat >>confdefs.h <<\_ACEOF
3388#define __EXTENSIONS__ 1
3389_ACEOF
3390
3391 ;;
3392esac
3393
3394
3395echo "$as_me:$LINENO: checking for setlocale" >&5
3396echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3397if test "${ac_cv_func_setlocale+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
3406/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3408#define setlocale innocuous_setlocale
3409
3410/* System header to define __stub macros and hopefully few prototypes,
3411 which can conflict with char setlocale (); below.
3412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 <limits.h> exists even on freestanding compilers. */
3414
3415#ifdef __STDC__
3416# include <limits.h>
3417#else
3418# include <assert.h>
3419#endif
3420
3421#undef setlocale
3422
3423/* Override any gcc2 internal prototype to avoid an error. */
3424#ifdef __cplusplus
3425extern "C"
3426{
3427#endif
3428/* We use char because int might match the return type of a gcc2
3429 builtin and then its argument prototype would still apply. */
3430char setlocale ();
3431/* The GNU C library defines this for functions which it implements
3432 to always fail with ENOSYS. Some functions are actually named
3433 something starting with __ and the normal name is an alias. */
3434#if defined (__stub_setlocale) || defined (__stub___setlocale)
3435choke me
3436#else
3437char (*f) () = setlocale;
3438#endif
3439#ifdef __cplusplus
3440}
3441#endif
3442
3443int
3444main ()
3445{
3446return f != setlocale;
3447 ;
3448 return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext conftest$ac_exeext
3452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3453 (eval $ac_link) 2>conftest.er1
3454 ac_status=$?
3455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
3458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
3460 { ac_try='test -z "$ac_cxx_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest$ac_exeext'
3468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_func_setlocale=yes
3474else
3475 echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478ac_cv_func_setlocale=no
3479fi
3480rm -f conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
3482fi
3483echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3484echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3485if test $ac_cv_func_setlocale = yes; then
3486 :
3487else
3617echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 3488 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3618echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 3489echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3619if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 3490if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6 3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else 3492else
3622 ac_check_lib_save_LIBS=$LIBS 3493 ac_check_lib_save_LIBS=$LIBS
3650 grep -v '^ *+' conftest.er1 >conftest.err 3521 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1 3522 rm -f conftest.er1
3652 cat conftest.err >&5 3523 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } && 3525 (exit $ac_status); } &&
3655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3526 { ac_try='test -z "$ac_cxx_werror_flag"
3527 || test ! -s conftest.err'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5 3529 (eval $ac_try) 2>&5
3658 ac_status=$? 3530 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; } && 3532 (exit $ac_status); }; } &&
3679echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 3551echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3680if test $ac_cv_lib_xpg4_setlocale = yes; then 3552if test $ac_cv_lib_xpg4_setlocale = yes; then
3681 LIBS="$LIBS -lxpg4" 3553 LIBS="$LIBS -lxpg4"
3682fi 3554fi
3683 3555
3556fi
3684 3557
3558
3559echo "$as_me:$LINENO: checking for gethostbyname" >&5
3560echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3561if test "${ac_cv_func_gethostbyname+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3572#define gethostbyname innocuous_gethostbyname
3573
3574/* System header to define __stub macros and hopefully few prototypes,
3575 which can conflict with char gethostbyname (); below.
3576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 <limits.h> exists even on freestanding compilers. */
3578
3579#ifdef __STDC__
3580# include <limits.h>
3581#else
3582# include <assert.h>
3583#endif
3584
3585#undef gethostbyname
3586
3587/* Override any gcc2 internal prototype to avoid an error. */
3588#ifdef __cplusplus
3589extern "C"
3590{
3591#endif
3592/* We use char because int might match the return type of a gcc2
3593 builtin and then its argument prototype would still apply. */
3594char gethostbyname ();
3595/* The GNU C library defines this for functions which it implements
3596 to always fail with ENOSYS. Some functions are actually named
3597 something starting with __ and the normal name is an alias. */
3598#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3599choke me
3600#else
3601char (*f) () = gethostbyname;
3602#endif
3603#ifdef __cplusplus
3604}
3605#endif
3606
3607int
3608main ()
3609{
3610return f != gethostbyname;
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
3616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617 (eval $ac_link) 2>conftest.er1
3618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } &&
3624 { ac_try='test -z "$ac_cxx_werror_flag"
3625 || test ! -s conftest.err'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; } &&
3631 { ac_try='test -s conftest$ac_exeext'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 ac_cv_func_gethostbyname=yes
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642ac_cv_func_gethostbyname=no
3643fi
3644rm -f conftest.err conftest.$ac_objext \
3645 conftest$ac_exeext conftest.$ac_ext
3646fi
3647echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3648echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3649if test $ac_cv_func_gethostbyname = yes; then
3650 :
3651else
3685echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3652 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3686echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3653echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3687if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3654if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6 3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3689else 3656else
3690 ac_check_lib_save_LIBS=$LIBS 3657 ac_check_lib_save_LIBS=$LIBS
3718 grep -v '^ *+' conftest.er1 >conftest.err 3685 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1 3686 rm -f conftest.er1
3720 cat conftest.err >&5 3687 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && 3689 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3690 { ac_try='test -z "$ac_cxx_werror_flag"
3691 || test ! -s conftest.err'
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5 3693 (eval $ac_try) 2>&5
3726 ac_status=$? 3694 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } && 3696 (exit $ac_status); }; } &&
3747echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3715echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3748if test $ac_cv_lib_nsl_gethostbyname = yes; then 3716if test $ac_cv_lib_nsl_gethostbyname = yes; then
3749 LIBS="$LIBS -lnsl" 3717 LIBS="$LIBS -lnsl"
3750fi 3718fi
3751 3719
3720fi
3721
3722echo "$as_me:$LINENO: checking for socket" >&5
3723echo $ECHO_N "checking for socket... $ECHO_C" >&6
3724if test "${ac_cv_func_socket+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726else
3727 cat >conftest.$ac_ext <<_ACEOF
3728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3735#define socket innocuous_socket
3736
3737/* System header to define __stub macros and hopefully few prototypes,
3738 which can conflict with char socket (); below.
3739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 <limits.h> exists even on freestanding compilers. */
3741
3742#ifdef __STDC__
3743# include <limits.h>
3744#else
3745# include <assert.h>
3746#endif
3747
3748#undef socket
3749
3750/* Override any gcc2 internal prototype to avoid an error. */
3751#ifdef __cplusplus
3752extern "C"
3753{
3754#endif
3755/* We use char because int might match the return type of a gcc2
3756 builtin and then its argument prototype would still apply. */
3757char socket ();
3758/* The GNU C library defines this for functions which it implements
3759 to always fail with ENOSYS. Some functions are actually named
3760 something starting with __ and the normal name is an alias. */
3761#if defined (__stub_socket) || defined (__stub___socket)
3762choke me
3763#else
3764char (*f) () = socket;
3765#endif
3766#ifdef __cplusplus
3767}
3768#endif
3769
3770int
3771main ()
3772{
3773return f != socket;
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780 (eval $ac_link) 2>conftest.er1
3781 ac_status=$?
3782 grep -v '^ *+' conftest.er1 >conftest.err
3783 rm -f conftest.er1
3784 cat conftest.err >&5
3785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786 (exit $ac_status); } &&
3787 { ac_try='test -z "$ac_cxx_werror_flag"
3788 || test ! -s conftest.err'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; } &&
3794 { ac_try='test -s conftest$ac_exeext'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3800 ac_cv_func_socket=yes
3801else
3802 echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805ac_cv_func_socket=no
3806fi
3807rm -f conftest.err conftest.$ac_objext \
3808 conftest$ac_exeext conftest.$ac_ext
3809fi
3810echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3811echo "${ECHO_T}$ac_cv_func_socket" >&6
3812if test $ac_cv_func_socket = yes; then
3813 :
3814else
3752echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3815 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3753echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 3816echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3754if test "${ac_cv_lib_socket_socket+set}" = set; then 3817if test "${ac_cv_lib_socket_socket+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6 3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3756else 3819else
3757 ac_check_lib_save_LIBS=$LIBS 3820 ac_check_lib_save_LIBS=$LIBS
3785 grep -v '^ *+' conftest.er1 >conftest.err 3848 grep -v '^ *+' conftest.er1 >conftest.err
3786 rm -f conftest.er1 3849 rm -f conftest.er1
3787 cat conftest.err >&5 3850 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } && 3852 (exit $ac_status); } &&
3790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3853 { ac_try='test -z "$ac_cxx_werror_flag"
3854 || test ! -s conftest.err'
3791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792 (eval $ac_try) 2>&5 3856 (eval $ac_try) 2>&5
3793 ac_status=$? 3857 ac_status=$?
3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); }; } && 3859 (exit $ac_status); }; } &&
3814echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 3878echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3815if test $ac_cv_lib_socket_socket = yes; then 3879if test $ac_cv_lib_socket_socket = yes; then
3816 LIBS="$LIBS -lsocket" 3880 LIBS="$LIBS -lsocket"
3817fi 3881fi
3818 3882
3883fi
3819 3884
3820 3885
3821MALLOC_TYPE=S
3822 3886
3823support_addstrings=no
3824support_frills=yes 3887support_frills=yes
3825support_inheritpixmap=no 3888support_inheritpixmap=yes
3826support_tinting=yes 3889support_tinting=yes
3827support_fading=yes 3890support_fading=yes
3828support_keepscrolling=yes 3891support_keepscrolling=yes
3829support_selectionscrolling=yes 3892support_selectionscrolling=yes
3830support_menubar=no
3831support_mousewheel=yes 3893support_mousewheel=yes
3832support_mouseslipwheel=yes 3894support_mouseslipwheel=yes
3833support_utmp=yes
3834support_wtmp=yes
3835support_lastlog=yes
3836support_text_blink=yes 3895support_text_blink=yes
3837support_pointer_blank=yes 3896support_pointer_blank=yes
3838support_scroll_rxvt=yes 3897support_scroll_rxvt=yes
3839support_scroll_next=yes 3898support_scroll_next=yes
3840support_scroll_xterm=yes 3899support_scroll_xterm=yes
3841support_scroll_plain=yes 3900support_scroll_plain=yes
3842support_xim=yes 3901support_xim=yes
3843support_xpm=no 3902support_xpm=yes
3903support_afterimage=yes
3904support_afterstep=yes
3844support_xft=yes 3905support_xft=yes
3845support_unicode3=no 3906support_unicode3=no
3846support_combining=yes 3907support_combining=yes
3847support_8bitctrls=no 3908support_8bitctrls=no
3848support_iso14755=yes 3909support_iso14755=yes
3849support_styles=yes 3910support_styles=yes
3911support_perl=yes
3850codesets=all 3912codesets=all
3851 3913
3852 3914
3853if test "x$enable_shared" = xyes; then 3915if test "x$enable_shared" = xyes; then
3854 3916
3863# Check whether --enable-everything or --disable-everything was given. 3925# Check whether --enable-everything or --disable-everything was given.
3864if test "${enable_everything+set}" = set; then 3926if test "${enable_everything+set}" = set; then
3865 enableval="$enable_everything" 3927 enableval="$enable_everything"
3866 3928
3867 if test x$enableval = xno; then 3929 if test x$enableval = xno; then
3868 support_24bit=no
3869 support_frills=no 3930 support_frills=no
3870 support_inheritpixmap=no 3931 support_inheritpixmap=no
3871 support_tinting=no 3932 support_tinting=no
3872 support_fading=no 3933 support_fading=no
3873 support_keepscrolling=no 3934 support_keepscrolling=no
3874 support_selectionscrolling=no 3935 support_selectionscrolling=no
3875 support_lastlog=no 3936 support_lastlog=no
3876 support_menubar=no
3877 support_mousewheel=no 3937 support_mousewheel=no
3878 support_mouseslipwheel=no 3938 support_mouseslipwheel=no
3879 support_text_blink=no 3939 support_text_blink=no
3880 support_pointer_blank=no 3940 support_pointer_blank=no
3881 support_scroll_rxvt=no 3941 support_scroll_rxvt=no
3884 support_scroll_plain=no 3944 support_scroll_plain=no
3885 support_utmp=no 3945 support_utmp=no
3886 support_wtmp=no 3946 support_wtmp=no
3887 support_xim=no 3947 support_xim=no
3888 support_xpm=no 3948 support_xpm=no
3949 support_afterimage=no
3950 support_afterstep=no
3889 support_xft=no 3951 support_xft=no
3890 support_unicode3=no 3952 support_unicode3=no
3891 support_combining=no 3953 support_combining=no
3892 support_8bitctrls=no 3954 support_8bitctrls=no
3893 support_iso14755=no 3955 support_iso14755=no
3894 support_styles=no 3956 support_styles=no
3957 support_perl=no
3895 codesets= 3958 codesets=
3896 fi 3959 fi
3897 if test x$enableval = xyes; then 3960 if test x$enableval = xyes; then
3898 support_24bit=yes
3899 support_frills=yes 3961 support_frills=yes
3900 support_inheritpixmap=yes 3962 support_inheritpixmap=yes
3901 support_tinting=yes 3963 support_tinting=yes
3902 support_fading=yes 3964 support_fading=yes
3903 support_keepscrolling=yes 3965 support_keepscrolling=yes
3904 support_selectionscrolling=yes 3966 support_selectionscrolling=yes
3905 support_lastlog=yes 3967 support_lastlog=yes
3906 support_menubar=yes
3907 support_mousewheel=yes 3968 support_mousewheel=yes
3908 support_mouseslipwheel=yes 3969 support_mouseslipwheel=yes
3909 support_text_blink=yes 3970 support_text_blink=yes
3910 support_pointer_blank=yes 3971 support_pointer_blank=yes
3911 support_scroll_rxvt=yes 3972 support_scroll_rxvt=yes
3914 support_scroll_plain=yes 3975 support_scroll_plain=yes
3915 support_utmp=yes 3976 support_utmp=yes
3916 support_wtmp=yes 3977 support_wtmp=yes
3917 support_xim=yes 3978 support_xim=yes
3918 support_xpm=yes 3979 support_xpm=yes
3980 support_afterimage=yes
3981 support_afterstep=yes
3919 support_xft=yes 3982 support_xft=yes
3920 support_unicode3=yes 3983 support_unicode3=yes
3921 support_combining=yes 3984 support_combining=yes
3922 #support_8bitctrls=yes 3985 #support_8bitctrls=yes
3923 support_iso14755=yes 3986 support_iso14755=yes
3924 support_styles=yes 3987 support_styles=yes
3988 support_perl=yes
3925 codesets=all 3989 codesets=all
3926 fi 3990 fi
3927 3991
3928fi; 3992fi;
3929 3993
3957 if test x$enableval = xyes -o x$enableval = xno; then 4021 if test x$enableval = xyes -o x$enableval = xno; then
3958 support_styles=$enableval 4022 support_styles=$enableval
3959 fi 4023 fi
3960fi; 4024fi;
3961 4025
3962# Check whether --enable-utmp or --disable-utmp was given.
3963if test "${enable_utmp+set}" = set; then
3964 enableval="$enable_utmp"
3965 if test x$enableval = xyes -o x$enableval = xno; then
3966 support_utmp=$enableval
3967 fi
3968fi;
3969
3970# Check whether --enable-wtmp or --disable-wtmp was given.
3971if test "${enable_wtmp+set}" = set; then
3972 enableval="$enable_wtmp"
3973 if test x$enableval = xyes -o x$enableval = xno; then
3974 support_wtmp=$enableval
3975 fi
3976fi;
3977
3978# Check whether --enable-lastlog or --disable-lastlog was given.
3979if test "${enable_lastlog+set}" = set; then
3980 enableval="$enable_lastlog"
3981 if test x$enableval = xyes -o x$enableval = xno; then
3982 support_lastlog=$enableval
3983 fi
3984fi;
3985
3986# Check whether --enable-xpm-background or --disable-xpm-background was given. 4026# Check whether --enable-xpm-background or --disable-xpm-background was given.
3987if test "${enable_xpm_background+set}" = set; then 4027if test "${enable_xpm_background+set}" = set; then
3988 enableval="$enable_xpm_background" 4028 enableval="$enable_xpm_background"
3989 if test x$enableval = xyes -o x$enableval = xno; then 4029 if test x$enableval = xyes -o x$enableval = xno; then
3990 support_xpm=$enableval 4030 support_xpm=$enableval
3991 fi 4031 fi
3992fi; 4032fi;
3993 4033
4034# Check whether --enable-afterimage or --disable-afterimage was given.
4035if test "${enable_afterimage+set}" = set; then
4036 enableval="$enable_afterimage"
4037 if test x$enableval = xyes -o x$enableval = xno; then
4038 support_afterimage=$enableval
4039 fi
4040fi;
4041
4042
4043# Check whether --with-afterimage_config or --without-afterimage_config was given.
4044if test "${with_afterimage_config+set}" = set; then
4045 withval="$with_afterimage_config"
4046 if test "x$withval" != x; then
4047 afterimage_config=$withval/afterimage-config
4048 fi
4049fi;
4050
4051# Check whether --enable-afterstep or --disable-afterstep was given.
4052if test "${enable_afterstep+set}" = set; then
4053 enableval="$enable_afterstep"
4054 if test x$enableval = xyes -o x$enableval = xno; then
4055 support_afterstep=$enableval
4056 fi
4057fi;
4058
3994# Check whether --enable-transparency or --disable-transparency was given. 4059# Check whether --enable-transparency or --disable-transparency was given.
3995if test "${enable_transparency+set}" = set; then 4060if test "${enable_transparency+set}" = set; then
3996 enableval="$enable_transparency" 4061 enableval="$enable_transparency"
3997 if test x$enableval = xyes -o x$enableval = xno; then 4062 if test x$enableval = xyes -o x$enableval = xno; then
3998 support_inheritpixmap=$enableval 4063 support_inheritpixmap=$enableval
4013 if test x$enableval = xyes -o x$enableval = xno; then 4078 if test x$enableval = xyes -o x$enableval = xno; then
4014 support_fading=$enableval 4079 support_fading=$enableval
4015 fi 4080 fi
4016fi; 4081fi;
4017 4082
4018# Check whether --enable-menubar or --disable-menubar was given.
4019if test "${enable_menubar+set}" = set; then
4020 enableval="$enable_menubar"
4021 if test x$enableval = xyes -o x$enableval = xno; then
4022 support_menubar=$enableval
4023 fi
4024fi;
4025
4026# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4083# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4027if test "${enable_rxvt_scroll+set}" = set; then 4084if test "${enable_rxvt_scroll+set}" = set; then
4028 enableval="$enable_rxvt_scroll" 4085 enableval="$enable_rxvt_scroll"
4029 if test x$enableval = xyes -o x$enableval = xno; then 4086 if test x$enableval = xyes -o x$enableval = xno; then
4030 support_scroll_rxvt=$enableval 4087 support_scroll_rxvt=$enableval
4045 if test x$enableval = xyes -o x$enableval = xno; then 4102 if test x$enableval = xyes -o x$enableval = xno; then
4046 support_scroll_xterm=$enableval 4103 support_scroll_xterm=$enableval
4047 fi 4104 fi
4048fi; 4105fi;
4049 4106
4107# Check whether --enable-perl or --disable-perl was given.
4108if test "${enable_perl+set}" = set; then
4109 enableval="$enable_perl"
4110 if test x$enableval = xyes -o x$enableval = xno; then
4111 support_perl=$enableval
4112 fi
4113fi;
4114
4050# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4115# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4051if test "${enable_plain_scroll+set}" = set; then 4116if test "${enable_plain_scroll+set}" = set; then
4052 enableval="$enable_plain_scroll" 4117 enableval="$enable_plain_scroll"
4053 if test x$enableval = xyes -o x$enableval = xno; then 4118 if test x$enableval = xyes -o x$enableval = xno; then
4054 support_scroll_plain=$enableval 4119 support_scroll_plain=$enableval
4055 fi 4120 fi
4056fi; 4121fi;
4057 4122
4058# Check whether --enable-half-shadow or --disable-half-shadow was given.
4059if test "${enable_half_shadow+set}" = set; then
4060 enableval="$enable_half_shadow"
4061 if test x$enableval = xyes; then
4062
4063cat >>confdefs.h <<\_ACEOF
4064#define HALFSHADOW 1
4065_ACEOF
4066
4067 fi
4068fi;
4069
4070 4123
4071# Check whether --with-codesets or --without-codesets was given. 4124# Check whether --with-codesets or --without-codesets was given.
4072if test "${with_codesets+set}" = set; then 4125if test "${with_codesets+set}" = set; then
4073 withval="$with_codesets" 4126 withval="$with_codesets"
4074 codesets="$withval" 4127 codesets="$withval"
4080 if test x$enableval = xyes -o x$enableval = xno; then 4133 if test x$enableval = xyes -o x$enableval = xno; then
4081 support_xim=$enableval 4134 support_xim=$enableval
4082 fi 4135 fi
4083fi; 4136fi;
4084 4137
4085# Check whether --enable-ttygid or --disable-ttygid was given.
4086if test "${enable_ttygid+set}" = set; then
4087 enableval="$enable_ttygid"
4088 if test x$enableval = xyes; then
4089
4090cat >>confdefs.h <<\_ACEOF
4091#define TTY_GID_SUPPORT 1
4092_ACEOF
4093
4094 fi
4095fi;
4096
4097# Check whether --enable-backspace-key or --disable-backspace-key was given. 4138# Check whether --enable-backspace-key or --disable-backspace-key was given.
4098if test "${enable_backspace_key+set}" = set; then 4139if test "${enable_backspace_key+set}" = set; then
4099 enableval="$enable_backspace_key" 4140 enableval="$enable_backspace_key"
4100 if test x$enableval = xno; then 4141 if test x$enableval = xno; then
4101 4142
4123 enableval="$enable_resources" 4164 enableval="$enable_resources"
4124 if test x$enableval = xno; then 4165 if test x$enableval = xno; then
4125 4166
4126cat >>confdefs.h <<\_ACEOF 4167cat >>confdefs.h <<\_ACEOF
4127#define NO_RESOURCES 1 4168#define NO_RESOURCES 1
4128_ACEOF
4129
4130 fi
4131fi;
4132
4133# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4134if test "${enable_xgetdefault+set}" = set; then
4135 enableval="$enable_xgetdefault"
4136 if test x$enableval = xyes; then
4137
4138cat >>confdefs.h <<\_ACEOF
4139#define USE_XGETDEFAULT 1
4140_ACEOF 4169_ACEOF
4141 4170
4142 fi 4171 fi
4143fi; 4172fi;
4144 4173
4209 4238
4210 4239
4211RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4240RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4212 4241
4213 4242
4214# Check whether --enable-strings or --disable-strings was given.
4215if test "${enable_strings+set}" = set; then
4216 enableval="$enable_strings"
4217 if test x$enableval = xyes -o x$enableval = xno; then
4218 support_addstrings=$enableval
4219 fi
4220fi;
4221
4222# Check whether --enable-swapscreen or --disable-swapscreen was given. 4243# Check whether --enable-swapscreen or --disable-swapscreen was given.
4223if test "${enable_swapscreen+set}" = set; then 4244if test "${enable_swapscreen+set}" = set; then
4224 enableval="$enable_swapscreen" 4245 enableval="$enable_swapscreen"
4225 if test x$enableval = xno; then 4246 if test x$enableval = xno; then
4226 4247
4245 if test x$enableval = xyes -o x$enableval = xno; then 4266 if test x$enableval = xyes -o x$enableval = xno; then
4246 support_frills=$enableval 4267 support_frills=$enableval
4247 fi 4268 fi
4248fi; 4269fi;
4249 4270
4250# Check whether --enable-24bit or --disable-24bit was given.
4251if test "${enable_24bit+set}" = set; then
4252 enableval="$enable_24bit"
4253 if test x$enableval = xyes -o x$enableval = xno; then
4254 support_24bit=$enableval
4255 fi
4256fi;
4257
4258# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4271# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4259if test "${enable_keepscrolling+set}" = set; then 4272if test "${enable_keepscrolling+set}" = set; then
4260 enableval="$enable_keepscrolling" 4273 enableval="$enable_keepscrolling"
4261 if test x$enableval = xyes -o x$enableval = xno; then 4274 if test x$enableval = xyes -o x$enableval = xno; then
4262 support_keepscrolling=$enableval 4275 support_keepscrolling=$enableval
4285 if test x$enableval = xyes -o x$enableval = xno; then 4298 if test x$enableval = xyes -o x$enableval = xno; then
4286 support_mouseslipwheel=$enableval 4299 support_mouseslipwheel=$enableval
4287 fi 4300 fi
4288fi; 4301fi;
4289 4302
4290# Check whether --enable-dmalloc or --disable-dmalloc was given.
4291if test "${enable_dmalloc+set}" = set; then
4292 enableval="$enable_dmalloc"
4293 if test x$enableval = xyes; then
4294 MALLOC_TYPE=G
4295 DEBUG=-DDEBUG_MALLOC
4296 DLIB="-L/usr/local/lib -ldmalloc"
4297 DINCLUDE=-I/usr/local/include
4298 fi
4299fi;
4300
4301# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4302if test "${enable_dlmalloc+set}" = set; then
4303 enableval="$enable_dlmalloc"
4304 if test x$enableval = xyes; then
4305 MALLOC_TYPE=D
4306 DEBUG=
4307 DLIB="-L/usr/local/lib -ldlmalloc"
4308 DINCLUDE=
4309 fi
4310fi;
4311
4312# Check whether --enable-smart-resize or --disable-smart-resize was given. 4303# Check whether --enable-smart-resize or --disable-smart-resize was given.
4313if test "${enable_smart_resize+set}" = set; then 4304if test "${enable_smart_resize+set}" = set; then
4314 enableval="$enable_smart_resize" 4305 enableval="$enable_smart_resize"
4315 if test x$enableval = xyes; then 4306 if test x$enableval = xyes; then
4316 4307
4361_ACEOF 4352_ACEOF
4362 terminfo="$withval" 4353 terminfo="$withval"
4363 fi 4354 fi
4364fi; 4355fi;
4365 4356
4366
4367
4368cat >>confdefs.h <<\_ACEOF
4369#define PROTOTYPES 1
4370_ACEOF
4371
4372
4373# Extract the first word of "mv", so it can be a program name with args.
4374set dummy mv; ac_word=$2
4375echo "$as_me:$LINENO: checking for $ac_word" >&5
4376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4377if test "${ac_cv_path_MV+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380 case $MV in
4381 [\\/]* | ?:[\\/]*)
4382 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4383 ;;
4384 *)
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 break 2
4395 fi
4396done
4397done
4398
4399 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4400 ;;
4401esac
4402fi
4403MV=$ac_cv_path_MV
4404
4405if test -n "$MV"; then
4406 echo "$as_me:$LINENO: result: $MV" >&5
4407echo "${ECHO_T}$MV" >&6
4408else
4409 echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6
4411fi
4412
4413# Extract the first word of "rm", so it can be a program name with args.
4414set dummy rm; ac_word=$2
4415echo "$as_me:$LINENO: checking for $ac_word" >&5
4416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417if test "${ac_cv_path_RM+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420 case $RM in
4421 [\\/]* | ?:[\\/]*)
4422 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4423 ;;
4424 *)
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4435 fi
4436done
4437done
4438
4439 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4440 ;;
4441esac
4442fi
4443RM=$ac_cv_path_RM
4444
4445if test -n "$RM"; then
4446 echo "$as_me:$LINENO: result: $RM" >&5
4447echo "${ECHO_T}$RM" >&6
4448else
4449 echo "$as_me:$LINENO: result: no" >&5
4450echo "${ECHO_T}no" >&6
4451fi
4452
4453# Extract the first word of "cp", so it can be a program name with args.
4454set dummy cp; ac_word=$2
4455echo "$as_me:$LINENO: checking for $ac_word" >&5
4456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4457if test "${ac_cv_path_CP+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460 case $CP in
4461 [\\/]* | ?:[\\/]*)
4462 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4463 ;;
4464 *)
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466for as_dir in $PATH
4467do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476done
4477done
4478
4479 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4480 ;;
4481esac
4482fi
4483CP=$ac_cv_path_CP
4484
4485if test -n "$CP"; then
4486 echo "$as_me:$LINENO: result: $CP" >&5
4487echo "${ECHO_T}$CP" >&6
4488else
4489 echo "$as_me:$LINENO: result: no" >&5
4490echo "${ECHO_T}no" >&6
4491fi
4492
4493# Extract the first word of "ln", so it can be a program name with args.
4494set dummy ln; ac_word=$2
4495echo "$as_me:$LINENO: checking for $ac_word" >&5
4496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4497if test "${ac_cv_path_LN+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500 case $LN in
4501 [\\/]* | ?:[\\/]*)
4502 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4503 ;;
4504 *)
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516done
4517done
4518
4519 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4520 ;;
4521esac
4522fi
4523LN=$ac_cv_path_LN
4524
4525if test -n "$LN"; then
4526 echo "$as_me:$LINENO: result: $LN" >&5
4527echo "${ECHO_T}$LN" >&6
4528else
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531fi
4532
4533# Extract the first word of "sed", so it can be a program name with args.
4534set dummy sed; ac_word=$2
4535echo "$as_me:$LINENO: checking for $ac_word" >&5
4536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537if test "${ac_cv_path_SED+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 case $SED in
4541 [\\/]* | ?:[\\/]*)
4542 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4543 ;;
4544 *)
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4552 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556done
4557done
4558
4559 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4560 ;;
4561esac
4562fi
4563SED=$ac_cv_path_SED
4564
4565if test -n "$SED"; then
4566 echo "$as_me:$LINENO: result: $SED" >&5
4567echo "${ECHO_T}$SED" >&6
4568else
4569 echo "$as_me:$LINENO: result: no" >&5
4570echo "${ECHO_T}no" >&6
4571fi
4572
4573# Extract the first word of "echo", so it can be a program name with args.
4574set dummy echo; ac_word=$2
4575echo "$as_me:$LINENO: checking for $ac_word" >&5
4576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4577if test "${ac_cv_path_ECHO+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579else
4580 case $ECHO in
4581 [\\/]* | ?:[\\/]*)
4582 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4583 ;;
4584 *)
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596done
4597done
4598
4599 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4600 ;;
4601esac
4602fi
4603ECHO=$ac_cv_path_ECHO
4604
4605if test -n "$ECHO"; then
4606 echo "$as_me:$LINENO: result: $ECHO" >&5
4607echo "${ECHO_T}$ECHO" >&6
4608else
4609 echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6
4611fi
4612
4613# Extract the first word of "cmp", so it can be a program name with args.
4614set dummy cmp; ac_word=$2
4615echo "$as_me:$LINENO: checking for $ac_word" >&5
4616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617if test "${ac_cv_path_CMP+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620 case $CMP in
4621 [\\/]* | ?:[\\/]*)
4622 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4623 ;;
4624 *)
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626for as_dir in $PATH
4627do
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4635 fi
4636done
4637done
4638
4639 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4640 ;;
4641esac
4642fi
4643CMP=$ac_cv_path_CMP
4644
4645if test -n "$CMP"; then
4646 echo "$as_me:$LINENO: result: $CMP" >&5
4647echo "${ECHO_T}$CMP" >&6
4648else
4649 echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6
4651fi
4652
4653# Extract the first word of "tbl", so it can be a program name with args.
4654set dummy tbl; ac_word=$2
4655echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657if test "${ac_cv_path_TBL+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 case $TBL in
4661 [\\/]* | ?:[\\/]*)
4662 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4663 ;;
4664 *)
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677done
4678
4679 ;;
4680esac
4681fi
4682TBL=$ac_cv_path_TBL
4683
4684if test -n "$TBL"; then
4685 echo "$as_me:$LINENO: result: $TBL" >&5
4686echo "${ECHO_T}$TBL" >&6
4687else
4688 echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6
4690fi
4691 4357
4692# Extract the first word of "tic", so it can be a program name with args. 4358# Extract the first word of "tic", so it can be a program name with args.
4693set dummy tic; ac_word=$2 4359set dummy tic; ac_word=$2
4694echo "$as_me:$LINENO: checking for $ac_word" >&5 4360echo "$as_me:$LINENO: checking for $ac_word" >&5
4695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729fi 4395fi
4730 4396
4731 4397
4732 4398
4733 4399
4400ac_ext=cc
4401ac_cpp='$CXXCPP $CPPFLAGS'
4402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4405echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4406echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4407if test -z "$CXXCPP"; then
4408 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 # Double quotes because CXXCPP needs to be expanded
4412 for CXXCPP in "$CXX -E" "/lib/cpp"
4413 do
4414 ac_preproc_ok=false
4415for ac_cxx_preproc_warn_flag in '' yes
4416do
4417 # Use a header file that comes with gcc, so configuring glibc
4418 # with a fresh cross-compiler works.
4419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4420 # <limits.h> exists even on freestanding compilers.
4421 # On the NeXT, cc -E runs the code through the compiler's parser,
4422 # not just through cpp. "Syntax error" is here to catch this case.
4423 cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
4429#ifdef __STDC__
4430# include <limits.h>
4431#else
4432# include <assert.h>
4433#endif
4434 Syntax error
4435_ACEOF
4436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev/null; then
4444 if test -s conftest.err; then
4445 ac_cpp_err=$ac_cxx_preproc_warn_flag
4446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4447 else
4448 ac_cpp_err=
4449 fi
4450else
4451 ac_cpp_err=yes
4452fi
4453if test -z "$ac_cpp_err"; then
4454 :
4455else
4456 echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4734 4458
4735if test "x$ac_path_x_has_been_run" != xyes; then 4459 # Broken: fails on valid input.
4460continue
4461fi
4462rm -f conftest.err conftest.$ac_ext
4463
4464 # OK, works on sane cases. Now check whether non-existent headers
4465 # can be detected and how.
4466 cat >conftest.$ac_ext <<_ACEOF
4467/* confdefs.h. */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h. */
4472#include <ac_nonexistent.h>
4473_ACEOF
4474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4476 ac_status=$?
4477 grep -v '^ *+' conftest.er1 >conftest.err
4478 rm -f conftest.er1
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } >/dev/null; then
4482 if test -s conftest.err; then
4483 ac_cpp_err=$ac_cxx_preproc_warn_flag
4484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4485 else
4486 ac_cpp_err=
4487 fi
4488else
4489 ac_cpp_err=yes
4490fi
4491if test -z "$ac_cpp_err"; then
4492 # Broken: success on invalid input.
4493continue
4494else
4495 echo "$as_me: failed program was:" >&5
4496sed 's/^/| /' conftest.$ac_ext >&5
4497
4498 # Passes both tests.
4499ac_preproc_ok=:
4500break
4501fi
4502rm -f conftest.err conftest.$ac_ext
4503
4504done
4505# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4506rm -f conftest.err conftest.$ac_ext
4507if $ac_preproc_ok; then
4508 break
4509fi
4510
4511 done
4512 ac_cv_prog_CXXCPP=$CXXCPP
4513
4514fi
4515 CXXCPP=$ac_cv_prog_CXXCPP
4516else
4517 ac_cv_prog_CXXCPP=$CXXCPP
4518fi
4519echo "$as_me:$LINENO: result: $CXXCPP" >&5
4520echo "${ECHO_T}$CXXCPP" >&6
4521ac_preproc_ok=false
4522for ac_cxx_preproc_warn_flag in '' yes
4523do
4524 # Use a header file that comes with gcc, so configuring glibc
4525 # with a fresh cross-compiler works.
4526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 # <limits.h> exists even on freestanding compilers.
4528 # On the NeXT, cc -E runs the code through the compiler's parser,
4529 # not just through cpp. "Syntax error" is here to catch this case.
4530 cat >conftest.$ac_ext <<_ACEOF
4531/* confdefs.h. */
4532_ACEOF
4533cat confdefs.h >>conftest.$ac_ext
4534cat >>conftest.$ac_ext <<_ACEOF
4535/* end confdefs.h. */
4536#ifdef __STDC__
4537# include <limits.h>
4538#else
4539# include <assert.h>
4540#endif
4541 Syntax error
4542_ACEOF
4543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } >/dev/null; then
4551 if test -s conftest.err; then
4552 ac_cpp_err=$ac_cxx_preproc_warn_flag
4553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4554 else
4555 ac_cpp_err=
4556 fi
4557else
4558 ac_cpp_err=yes
4559fi
4560if test -z "$ac_cpp_err"; then
4561 :
4562else
4563 echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 # Broken: fails on valid input.
4567continue
4568fi
4569rm -f conftest.err conftest.$ac_ext
4570
4571 # OK, works on sane cases. Now check whether non-existent headers
4572 # can be detected and how.
4573 cat >conftest.$ac_ext <<_ACEOF
4574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h. */
4579#include <ac_nonexistent.h>
4580_ACEOF
4581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null; then
4589 if test -s conftest.err; then
4590 ac_cpp_err=$ac_cxx_preproc_warn_flag
4591 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4592 else
4593 ac_cpp_err=
4594 fi
4595else
4596 ac_cpp_err=yes
4597fi
4598if test -z "$ac_cpp_err"; then
4599 # Broken: success on invalid input.
4600continue
4601else
4602 echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605 # Passes both tests.
4606ac_preproc_ok=:
4607break
4608fi
4609rm -f conftest.err conftest.$ac_ext
4610
4611done
4612# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613rm -f conftest.err conftest.$ac_ext
4614if $ac_preproc_ok; then
4615 :
4616else
4617 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4618See \`config.log' for more details." >&5
4619echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4620See \`config.log' for more details." >&2;}
4621 { (exit 1); exit 1; }; }
4622fi
4623
4624ac_ext=cc
4625ac_cpp='$CXXCPP $CPPFLAGS'
4626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629
4630
4736 echo "$as_me:$LINENO: checking for X" >&5 4631echo "$as_me:$LINENO: checking for X" >&5
4737echo $ECHO_N "checking for X... $ECHO_C" >&6 4632echo $ECHO_N "checking for X... $ECHO_C" >&6
4738 4633
4739ac_path_x_has_been_run=yes
4740 4634
4741# Check whether --with-x or --without-x was given. 4635# Check whether --with-x or --without-x was given.
4742if test "${with_x+set}" = set; then 4636if test "${with_x+set}" = set; then
4743 withval="$with_x" 4637 withval="$with_x"
4744 4638
4827 4721
4828/usr/openwin/include 4722/usr/openwin/include
4829/usr/openwin/share/include' 4723/usr/openwin/share/include'
4830 4724
4831if test "$ac_x_includes" = no; then 4725if test "$ac_x_includes" = no; then
4832 # Guess where to find include files, by looking for a specified header file. 4726 # Guess where to find include files, by looking for Intrinsic.h.
4833 # First, try using that file with no special directory specified. 4727 # First, try using that file with no special directory specified.
4834 cat >conftest.$ac_ext <<_ACEOF 4728 cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */ 4729/* confdefs.h. */
4836_ACEOF 4730_ACEOF
4837cat confdefs.h >>conftest.$ac_ext 4731cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF 4732cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */ 4733/* end confdefs.h. */
4840#include <X11/Xlib.h> 4734#include <X11/Intrinsic.h>
4841_ACEOF 4735_ACEOF
4842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 ac_status=$? 4738 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err 4739 grep -v '^ *+' conftest.er1 >conftest.err
4862else 4756else
4863 echo "$as_me: failed program was:" >&5 4757 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5 4758sed 's/^/| /' conftest.$ac_ext >&5
4865 4759
4866 for ac_dir in $ac_x_header_dirs; do 4760 for ac_dir in $ac_x_header_dirs; do
4867 if test -r "$ac_dir/X11/Xlib.h"; then 4761 if test -r "$ac_dir/X11/Intrinsic.h"; then
4868 ac_x_includes=$ac_dir 4762 ac_x_includes=$ac_dir
4869 break 4763 break
4870 fi 4764 fi
4871done 4765done
4872fi 4766fi
4876if test "$ac_x_libraries" = no; then 4770if test "$ac_x_libraries" = no; then
4877 # Check for the libraries. 4771 # Check for the libraries.
4878 # See if we find them without any special options. 4772 # See if we find them without any special options.
4879 # Don't add to $LIBS permanently. 4773 # Don't add to $LIBS permanently.
4880 ac_save_LIBS=$LIBS 4774 ac_save_LIBS=$LIBS
4881 LIBS="-lX11 $LIBS" 4775 LIBS="-lXt $LIBS"
4882 cat >conftest.$ac_ext <<_ACEOF 4776 cat >conftest.$ac_ext <<_ACEOF
4883/* confdefs.h. */ 4777/* confdefs.h. */
4884_ACEOF 4778_ACEOF
4885cat confdefs.h >>conftest.$ac_ext 4779cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF 4780cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h. */ 4781/* end confdefs.h. */
4888#include <X11/Xlib.h> 4782#include <X11/Intrinsic.h>
4889int 4783int
4890main () 4784main ()
4891{ 4785{
4892XrmInitialize () 4786XtMalloc (0)
4893 ; 4787 ;
4894 return 0; 4788 return 0;
4895} 4789}
4896_ACEOF 4790_ACEOF
4897rm -f conftest.$ac_objext conftest$ac_exeext 4791rm -f conftest.$ac_objext conftest$ac_exeext
4901 grep -v '^ *+' conftest.er1 >conftest.err 4795 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1 4796 rm -f conftest.er1
4903 cat conftest.err >&5 4797 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && 4799 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4800 { ac_try='test -z "$ac_cxx_werror_flag"
4801 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5 4803 (eval $ac_try) 2>&5
4909 ac_status=$? 4804 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } && 4806 (exit $ac_status); }; } &&
4925LIBS=$ac_save_LIBS 4820LIBS=$ac_save_LIBS
4926for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4821for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4927do 4822do
4928 # Don't even attempt the hair of trying to link an X program! 4823 # Don't even attempt the hair of trying to link an X program!
4929 for ac_extension in a so sl; do 4824 for ac_extension in a so sl; do
4930 if test -r $ac_dir/libX11.$ac_extension; then 4825 if test -r $ac_dir/libXt.$ac_extension; then
4931 ac_x_libraries=$ac_dir 4826 ac_x_libraries=$ac_dir
4932 break 2 4827 break 2
4933 fi 4828 fi
4934 done 4829 done
4935done 4830done
4961 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4856 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4962 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4857 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4963 # Update the cache value to reflect the command line values. 4858 # Update the cache value to reflect the command line values.
4964 ac_cv_have_x="have_x=yes \ 4859 ac_cv_have_x="have_x=yes \
4965 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 4860 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4966 # It might be that x_includes is empty (headers are found in the
4967 # standard search path. Then output the corresponding message
4968 ac_out_x_includes=$x_includes
4969 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
4970 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 4861 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4971echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 4862echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4972fi 4863fi
4973 4864
4974fi
4975if test "$no_x" = yes; then 4865if test "$no_x" = yes; then
4976 # Not all programs may use this symbol, but it does not hurt to define it. 4866 # Not all programs may use this symbol, but it does not hurt to define it.
4977 4867
4978cat >>confdefs.h <<\_ACEOF 4868cat >>confdefs.h <<\_ACEOF
4979#define X_DISPLAY_MISSING 1 4869#define X_DISPLAY_MISSING 1
5017 grep -v '^ *+' conftest.er1 >conftest.err 4907 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1 4908 rm -f conftest.er1
5019 cat conftest.err >&5 4909 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } && 4911 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4912 { ac_try='test -z "$ac_cxx_werror_flag"
4913 || test ! -s conftest.err'
5023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5 4915 (eval $ac_try) 2>&5
5025 ac_status=$? 4916 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; } && 4918 (exit $ac_status); }; } &&
5068 grep -v '^ *+' conftest.er1 >conftest.err 4959 grep -v '^ *+' conftest.er1 >conftest.err
5069 rm -f conftest.er1 4960 rm -f conftest.er1
5070 cat conftest.err >&5 4961 cat conftest.err >&5
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && 4963 (exit $ac_status); } &&
5073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4964 { ac_try='test -z "$ac_cxx_werror_flag"
4965 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5 4967 (eval $ac_try) 2>&5
5076 ac_status=$? 4968 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } && 4970 (exit $ac_status); }; } &&
5144 grep -v '^ *+' conftest.er1 >conftest.err 5036 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1 5037 rm -f conftest.er1
5146 cat conftest.err >&5 5038 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && 5040 (exit $ac_status); } &&
5149 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5041 { ac_try='test -z "$ac_cxx_werror_flag"
5042 || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5 5044 (eval $ac_try) 2>&5
5152 ac_status=$? 5045 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } && 5047 (exit $ac_status); }; } &&
5199 grep -v '^ *+' conftest.er1 >conftest.err 5092 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1 5093 rm -f conftest.er1
5201 cat conftest.err >&5 5094 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && 5096 (exit $ac_status); } &&
5204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5097 { ac_try='test -z "$ac_cxx_werror_flag"
5098 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 (eval $ac_try) 2>&5 5100 (eval $ac_try) 2>&5
5207 ac_status=$? 5101 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } && 5103 (exit $ac_status); }; } &&
5267 grep -v '^ *+' conftest.er1 >conftest.err 5161 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1 5162 rm -f conftest.er1
5269 cat conftest.err >&5 5163 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && 5165 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5166 { ac_try='test -z "$ac_cxx_werror_flag"
5167 || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5 5169 (eval $ac_try) 2>&5
5275 ac_status=$? 5170 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } && 5172 (exit $ac_status); }; } &&
5375 grep -v '^ *+' conftest.er1 >conftest.err 5270 grep -v '^ *+' conftest.er1 >conftest.err
5376 rm -f conftest.er1 5271 rm -f conftest.er1
5377 cat conftest.err >&5 5272 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } && 5274 (exit $ac_status); } &&
5380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5275 { ac_try='test -z "$ac_cxx_werror_flag"
5276 || test ! -s conftest.err'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5 5278 (eval $ac_try) 2>&5
5383 ac_status=$? 5279 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; } && 5281 (exit $ac_status); }; } &&
5439 grep -v '^ *+' conftest.er1 >conftest.err 5335 grep -v '^ *+' conftest.er1 >conftest.err
5440 rm -f conftest.er1 5336 rm -f conftest.er1
5441 cat conftest.err >&5 5337 cat conftest.err >&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } && 5339 (exit $ac_status); } &&
5444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5340 { ac_try='test -z "$ac_cxx_werror_flag"
5341 || test ! -s conftest.err'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5 5343 (eval $ac_try) 2>&5
5447 ac_status=$? 5344 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; } && 5346 (exit $ac_status); }; } &&
5507 grep -v '^ *+' conftest.er1 >conftest.err 5404 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1 5405 rm -f conftest.er1
5509 cat conftest.err >&5 5406 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && 5408 (exit $ac_status); } &&
5512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5409 { ac_try='test -z "$ac_cxx_werror_flag"
5410 || test ! -s conftest.err'
5513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514 (eval $ac_try) 2>&5 5412 (eval $ac_try) 2>&5
5515 ac_status=$? 5413 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); }; } && 5415 (exit $ac_status); }; } &&
5611 grep -v '^ *+' conftest.er1 >conftest.err 5509 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1 5510 rm -f conftest.er1
5613 cat conftest.err >&5 5511 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && 5513 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5514 { ac_try='test -z "$ac_cxx_werror_flag"
5515 || test ! -s conftest.err'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5 5517 (eval $ac_try) 2>&5
5619 ac_status=$? 5518 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; } && 5520 (exit $ac_status); }; } &&
5675 grep -v '^ *+' conftest.er1 >conftest.err 5574 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1 5575 rm -f conftest.er1
5677 cat conftest.err >&5 5576 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } && 5578 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5579 { ac_try='test -z "$ac_cxx_werror_flag"
5580 || test ! -s conftest.err'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5 5582 (eval $ac_try) 2>&5
5683 ac_status=$? 5583 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } && 5585 (exit $ac_status); }; } &&
5772 grep -v '^ *+' conftest.er1 >conftest.err 5672 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1 5673 rm -f conftest.er1
5774 cat conftest.err >&5 5674 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && 5676 (exit $ac_status); } &&
5777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5677 { ac_try='test -z "$ac_cxx_werror_flag"
5678 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5 5680 (eval $ac_try) 2>&5
5780 ac_status=$? 5681 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } && 5683 (exit $ac_status); }; } &&
5836 grep -v '^ *+' conftest.er1 >conftest.err 5737 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1 5738 rm -f conftest.er1
5838 cat conftest.err >&5 5739 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && 5741 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5742 { ac_try='test -z "$ac_cxx_werror_flag"
5743 || test ! -s conftest.err'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5 5745 (eval $ac_try) 2>&5
5844 ac_status=$? 5746 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } && 5748 (exit $ac_status); }; } &&
5933 grep -v '^ *+' conftest.er1 >conftest.err 5835 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1 5836 rm -f conftest.er1
5935 cat conftest.err >&5 5837 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && 5839 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5840 { ac_try='test -z "$ac_cxx_werror_flag"
5841 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5 5843 (eval $ac_try) 2>&5
5941 ac_status=$? 5844 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } && 5846 (exit $ac_status); }; } &&
5997 grep -v '^ *+' conftest.er1 >conftest.err 5900 grep -v '^ *+' conftest.er1 >conftest.err
5998 rm -f conftest.er1 5901 rm -f conftest.er1
5999 cat conftest.err >&5 5902 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } && 5904 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5905 { ac_try='test -z "$ac_cxx_werror_flag"
5906 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004 (eval $ac_try) 2>&5 5908 (eval $ac_try) 2>&5
6005 ac_status=$? 5909 ac_status=$?
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } && 5911 (exit $ac_status); }; } &&
6076 grep -v '^ *+' conftest.er1 >conftest.err 5980 grep -v '^ *+' conftest.er1 >conftest.err
6077 rm -f conftest.er1 5981 rm -f conftest.er1
6078 cat conftest.err >&5 5982 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && 5984 (exit $ac_status); } &&
6081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5985 { ac_try='test -z "$ac_cxx_werror_flag"
5986 || test ! -s conftest.err'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5 5988 (eval $ac_try) 2>&5
6084 ac_status=$? 5989 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; } && 5991 (exit $ac_status); }; } &&
6111 6016
6112fi 6017fi
6113 6018
6114 6019
6115 6020
6021LIBAFTERIMAGE_CFLAGS=
6022AFTERIMAGE_LIBS=
6023have_afterimage=
6024
6116if test x$support_xpm = xyes; then 6025if test x$support_afterimage = xyes; then
6026 support_afterimage=no
6027
6028 if test "x$afterimage_config" = "x" ; then
6029 # Extract the first word of "afterimage-config", so it can be a program name with args.
6030set dummy afterimage-config; ac_word=$2
6031echo "$as_me:$LINENO: checking for $ac_word" >&5
6032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033if test "${ac_cv_path_afterimage_config+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 case $afterimage_config in
6037 [\\/]* | ?:[\\/]*)
6038 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6039 ;;
6040 *)
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054
6055 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6056 ;;
6057esac
6058fi
6059afterimage_config=$ac_cv_path_afterimage_config
6060
6061if test -n "$afterimage_config"; then
6062 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6063echo "${ECHO_T}$afterimage_config" >&6
6064else
6065 echo "$as_me:$LINENO: result: no" >&5
6066echo "${ECHO_T}no" >&6
6067fi
6068
6069 fi
6070
6071 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6072echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6073 if $afterimage_config --version >/dev/null 2>&1 ; then
6074 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6075 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6076 if test "x$AFTERIMAGE_LIBS" != "x"; then
6077 support_afterimage=yes
6078 fi
6079 fi
6080
6081 if test "x$support_afterimage" = "xyes"; then
6082 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6083echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088fi
6089
6090if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6117 6091
6118 6092
6119 6093
6120# Initialize some more variables set by options. 6094# Initialize some more variables set by options.
6121# The variables have the same names as the options, with 6095# The variables have the same names as the options, with
6292 grep -v '^ *+' conftest.er1 >conftest.err 6266 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1 6267 rm -f conftest.er1
6294 cat conftest.err >&5 6268 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && 6270 (exit $ac_status); } &&
6297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6271 { ac_try='test -z "$ac_cxx_werror_flag"
6272 || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5 6274 (eval $ac_try) 2>&5
6300 ac_status=$? 6275 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } && 6277 (exit $ac_status); }; } &&
6506 grep -v '^ *+' conftest.er1 >conftest.err 6481 grep -v '^ *+' conftest.er1 >conftest.err
6507 rm -f conftest.er1 6482 rm -f conftest.er1
6508 cat conftest.err >&5 6483 cat conftest.err >&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); } && 6485 (exit $ac_status); } &&
6511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6486 { ac_try='test -z "$ac_cxx_werror_flag"
6487 || test ! -s conftest.err'
6512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 (eval $ac_try) 2>&5 6489 (eval $ac_try) 2>&5
6514 ac_status=$? 6490 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); }; } && 6492 (exit $ac_status); }; } &&
6570 grep -v '^ *+' conftest.er1 >conftest.err 6546 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1 6547 rm -f conftest.er1
6572 cat conftest.err >&5 6548 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && 6550 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6551 { ac_try='test -z "$ac_cxx_werror_flag"
6552 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5 6554 (eval $ac_try) 2>&5
6578 ac_status=$? 6555 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } && 6557 (exit $ac_status); }; } &&
6740 grep -v '^ *+' conftest.er1 >conftest.err 6717 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1 6718 rm -f conftest.er1
6742 cat conftest.err >&5 6719 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && 6721 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6722 { ac_try='test -z "$ac_cxx_werror_flag"
6723 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5 6725 (eval $ac_try) 2>&5
6748 ac_status=$? 6726 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } && 6728 (exit $ac_status); }; } &&
6790 6768
6791 6769
6792 6770
6793 6771
6794 6772
6795
6796
6797
6798
6799
6800
6801
6802for ac_header in \ 6773for ac_header in \
6803 assert.h \ 6774 assert.h \
6804 fcntl.h \ 6775 fcntl.h \
6805 grp.h \
6806 libc.h \
6807 lastlog.h \
6808 stdarg.h \ 6776 stdarg.h \
6809 stdlib.h \ 6777 stdlib.h \
6810 string.h \ 6778 string.h \
6811 termios.h \ 6779 termios.h \
6812 unistd.h \ 6780 unistd.h \
6813 sys/byteorder.h \ 6781 sys/byteorder.h \
6814 sys/ioctl.h \ 6782 sys/ioctl.h \
6815 sys/select.h \ 6783 sys/select.h \
6816 sys/sockio.h \ 6784 sys/sockio.h \
6817 sys/strredir.h \ 6785 sys/strredir.h \
6818 sys/stropts.h \
6819 sys/time.h \ 6786 sys/time.h \
6820 utmp.h \ 6787 stdint.h \
6821 utmpx.h \ 6788 wchar.h \
6822 stdint.h \ 6789 cwchar \
6823 pty.h \ 6790 clocale \
6824 wchar.h \
6825 cwchar \
6826 clocale \
6827 6791
6828do 6792do
6829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6830if eval "test \"\${$as_ac_Header+set}\" = set"; then 6794if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831 echo "$as_me:$LINENO: checking for $ac_header" >&5 6795 echo "$as_me:$LINENO: checking for $ac_header" >&5
6855 grep -v '^ *+' conftest.er1 >conftest.err 6819 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1 6820 rm -f conftest.er1
6857 cat conftest.err >&5 6821 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } && 6823 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6824 { ac_try='test -z "$ac_cxx_werror_flag"
6825 || test ! -s conftest.err'
6861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5 6827 (eval $ac_try) 2>&5
6863 ac_status=$? 6828 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; } && 6830 (exit $ac_status); }; } &&
7004 grep -v '^ *+' conftest.er1 >conftest.err 6969 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1 6970 rm -f conftest.er1
7006 cat conftest.err >&5 6971 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } && 6973 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6974 { ac_try='test -z "$ac_cxx_werror_flag"
6975 || test ! -s conftest.err'
7010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011 (eval $ac_try) 2>&5 6977 (eval $ac_try) 2>&5
7012 ac_status=$? 6978 ac_status=$?
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); }; } && 6980 (exit $ac_status); }; } &&
7069 grep -v '^ *+' conftest.er1 >conftest.err 7035 grep -v '^ *+' conftest.er1 >conftest.err
7070 rm -f conftest.er1 7036 rm -f conftest.er1
7071 cat conftest.err >&5 7037 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && 7039 (exit $ac_status); } &&
7074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7040 { ac_try='test -z "$ac_cxx_werror_flag"
7041 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5 7043 (eval $ac_try) 2>&5
7077 ac_status=$? 7044 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } && 7046 (exit $ac_status); }; } &&
7119/* confdefs.h. */ 7086/* confdefs.h. */
7120_ACEOF 7087_ACEOF
7121cat confdefs.h >>conftest.$ac_ext 7088cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF 7089cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h. */ 7090/* end confdefs.h. */
7124 7091#include <X11/Xlib.h>
7092#include <stdlib.h>
7125main() 7093main()
7126{ 7094{
7127 exit(0); 7095 exit(0);
7128 (void) XOpenDisplay("foobar"); 7096 (void) XOpenDisplay("foobar");
7129} 7097}
7168/* confdefs.h. */ 7136/* confdefs.h. */
7169_ACEOF 7137_ACEOF
7170cat confdefs.h >>conftest.$ac_ext 7138cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF 7139cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */ 7140/* end confdefs.h. */
7173 7141#include <X11/Xlib.h>
7142#include <stdlib.h>
7174main() 7143main()
7175{ 7144{
7176 exit(0); 7145 exit(0);
7177 (void) XOpenDisplay("foobar"); 7146 (void) XOpenDisplay("foobar");
7178} 7147}
7234 grep -v '^ *+' conftest.er1 >conftest.err 7203 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1 7204 rm -f conftest.er1
7236 cat conftest.err >&5 7205 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && 7207 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7208 { ac_try='test -z "$ac_cxx_werror_flag"
7209 || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5 7211 (eval $ac_try) 2>&5
7242 ac_status=$? 7212 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } && 7214 (exit $ac_status); }; } &&
7267 7237
7268fi 7238fi
7269LIBS=$ac_save_LIBS 7239LIBS=$ac_save_LIBS
7270CFLAGS=$ac_save_CFLAGS 7240CFLAGS=$ac_save_CFLAGS
7271 7241
7242echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7243echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7244if test "${rxvt_xlib_illegal_access+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247 cat >conftest.$ac_ext <<_ACEOF
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
7253
7254#define XLIB_ILLEGAL_ACCESS
7255#include <X11/Xlib.h>
7256
7257int
7258main ()
7259{
7260
7261 Display *dpy;
7262 dpy->xdefaults = (char *)0;
7263
7264 ;
7265 return 0;
7266}
7267_ACEOF
7268rm -f conftest.$ac_objext
7269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7270 (eval $ac_compile) 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } &&
7277 { ac_try='test -z "$ac_cxx_werror_flag"
7278 || test ! -s conftest.err'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; } &&
7284 { ac_try='test -s conftest.$ac_objext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 rxvt_xlib_illegal_access=yes
7291else
7292 echo "$as_me: failed program was:" >&5
7293sed 's/^/| /' conftest.$ac_ext >&5
7294
7295rxvt_xlib_illegal_access=no
7296
7297fi
7298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299fi
7300echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7301echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7302if test x$rxvt_xlib_illegal_access = xyes; then
7303
7304cat >>confdefs.h <<\_ACEOF
7305#define XLIB_ILLEGAL_ACCESS 1
7306_ACEOF
7307
7308fi
7272 7309
7273echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7310echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7274echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7311echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7275if test "${ac_cv_c_const+set}" = set; then 7312if test "${ac_cv_c_const+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6 7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 grep -v '^ *+' conftest.er1 >conftest.err 7380 grep -v '^ *+' conftest.er1 >conftest.err
7344 rm -f conftest.er1 7381 rm -f conftest.er1
7345 cat conftest.err >&5 7382 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && 7384 (exit $ac_status); } &&
7348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7385 { ac_try='test -z "$ac_cxx_werror_flag"
7386 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5 7388 (eval $ac_try) 2>&5
7351 ac_status=$? 7389 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } && 7391 (exit $ac_status); }; } &&
7403 grep -v '^ *+' conftest.er1 >conftest.err 7441 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1 7442 rm -f conftest.er1
7405 cat conftest.err >&5 7443 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && 7445 (exit $ac_status); } &&
7408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7446 { ac_try='test -z "$ac_cxx_werror_flag"
7447 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5 7449 (eval $ac_try) 2>&5
7411 ac_status=$? 7450 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } && 7452 (exit $ac_status); }; } &&
7478 grep -v '^ *+' conftest.er1 >conftest.err 7517 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1 7518 rm -f conftest.er1
7480 cat conftest.err >&5 7519 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && 7521 (exit $ac_status); } &&
7483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7522 { ac_try='test -z "$ac_cxx_werror_flag"
7523 || test ! -s conftest.err'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485 (eval $ac_try) 2>&5 7525 (eval $ac_try) 2>&5
7486 ac_status=$? 7526 ac_status=$?
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; } && 7528 (exit $ac_status); }; } &&
7543 grep -v '^ *+' conftest.er1 >conftest.err 7583 grep -v '^ *+' conftest.er1 >conftest.err
7544 rm -f conftest.er1 7584 rm -f conftest.er1
7545 cat conftest.err >&5 7585 cat conftest.err >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && 7587 (exit $ac_status); } &&
7548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7588 { ac_try='test -z "$ac_cxx_werror_flag"
7589 || test ! -s conftest.err'
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5 7591 (eval $ac_try) 2>&5
7551 ac_status=$? 7592 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } && 7594 (exit $ac_status); }; } &&
7647 grep -v '^ *+' conftest.er1 >conftest.err 7688 grep -v '^ *+' conftest.er1 >conftest.err
7648 rm -f conftest.er1 7689 rm -f conftest.er1
7649 cat conftest.err >&5 7690 cat conftest.err >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && 7692 (exit $ac_status); } &&
7652 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7693 { ac_try='test -z "$ac_cxx_werror_flag"
7694 || test ! -s conftest.err'
7653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 (eval $ac_try) 2>&5 7696 (eval $ac_try) 2>&5
7655 ac_status=$? 7697 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); }; } && 7699 (exit $ac_status); }; } &&
7709 grep -v '^ *+' conftest.er1 >conftest.err 7751 grep -v '^ *+' conftest.er1 >conftest.err
7710 rm -f conftest.er1 7752 rm -f conftest.er1
7711 cat conftest.err >&5 7753 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && 7755 (exit $ac_status); } &&
7714 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7756 { ac_try='test -z "$ac_cxx_werror_flag"
7757 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5 7759 (eval $ac_try) 2>&5
7717 ac_status=$? 7760 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } && 7762 (exit $ac_status); }; } &&
7749 grep -v '^ *+' conftest.er1 >conftest.err 7792 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1 7793 rm -f conftest.er1
7751 cat conftest.err >&5 7794 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && 7796 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7797 { ac_try='test -z "$ac_cxx_werror_flag"
7798 || test ! -s conftest.err'
7755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756 (eval $ac_try) 2>&5 7800 (eval $ac_try) 2>&5
7757 ac_status=$? 7801 ac_status=$?
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); }; } && 7803 (exit $ac_status); }; } &&
7805 grep -v '^ *+' conftest.er1 >conftest.err 7849 grep -v '^ *+' conftest.er1 >conftest.err
7806 rm -f conftest.er1 7850 rm -f conftest.er1
7807 cat conftest.err >&5 7851 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && 7853 (exit $ac_status); } &&
7810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7854 { ac_try='test -z "$ac_cxx_werror_flag"
7855 || test ! -s conftest.err'
7811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 (eval $ac_try) 2>&5 7857 (eval $ac_try) 2>&5
7813 ac_status=$? 7858 ac_status=$?
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); }; } && 7860 (exit $ac_status); }; } &&
7845 grep -v '^ *+' conftest.er1 >conftest.err 7890 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1 7891 rm -f conftest.er1
7847 cat conftest.err >&5 7892 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && 7894 (exit $ac_status); } &&
7850 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7895 { ac_try='test -z "$ac_cxx_werror_flag"
7896 || test ! -s conftest.err'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5 7898 (eval $ac_try) 2>&5
7853 ac_status=$? 7899 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; } && 7901 (exit $ac_status); }; } &&
7909 grep -v '^ *+' conftest.er1 >conftest.err 7955 grep -v '^ *+' conftest.er1 >conftest.err
7910 rm -f conftest.er1 7956 rm -f conftest.er1
7911 cat conftest.err >&5 7957 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && 7959 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7960 { ac_try='test -z "$ac_cxx_werror_flag"
7961 || test ! -s conftest.err'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5 7963 (eval $ac_try) 2>&5
7917 ac_status=$? 7964 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } && 7966 (exit $ac_status); }; } &&
7940See \`config.log' for more details." >&2;} 7987See \`config.log' for more details." >&2;}
7941 { (exit 1); exit 1; }; } ;; 7988 { (exit 1); exit 1; }; } ;;
7942esac 7989esac
7943else 7990else
7944 if test "$cross_compiling" = yes; then 7991 if test "$cross_compiling" = yes; then
7945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7992 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7946echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7993See \`config.log' for more details." >&5
7994echo "$as_me: error: cannot run test program while cross compiling
7995See \`config.log' for more details." >&2;}
7947 { (exit 1); exit 1; }; } 7996 { (exit 1); exit 1; }; }
7948else 7997else
7949 cat >conftest.$ac_ext <<_ACEOF 7998 cat >conftest.$ac_ext <<_ACEOF
7950/* confdefs.h. */ 7999/* confdefs.h. */
7951_ACEOF 8000_ACEOF
8053 grep -v '^ *+' conftest.er1 >conftest.err 8102 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1 8103 rm -f conftest.er1
8055 cat conftest.err >&5 8104 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && 8106 (exit $ac_status); } &&
8058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8107 { ac_try='test -z "$ac_cxx_werror_flag"
8108 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5 8110 (eval $ac_try) 2>&5
8061 ac_status=$? 8111 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } && 8113 (exit $ac_status); }; } &&
8115 grep -v '^ *+' conftest.er1 >conftest.err 8165 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1 8166 rm -f conftest.er1
8117 cat conftest.err >&5 8167 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && 8169 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8170 { ac_try='test -z "$ac_cxx_werror_flag"
8171 || test ! -s conftest.err'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 (eval $ac_try) 2>&5 8173 (eval $ac_try) 2>&5
8123 ac_status=$? 8174 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } && 8176 (exit $ac_status); }; } &&
8155 grep -v '^ *+' conftest.er1 >conftest.err 8206 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1 8207 rm -f conftest.er1
8157 cat conftest.err >&5 8208 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && 8210 (exit $ac_status); } &&
8160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8211 { ac_try='test -z "$ac_cxx_werror_flag"
8212 || test ! -s conftest.err'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162 (eval $ac_try) 2>&5 8214 (eval $ac_try) 2>&5
8163 ac_status=$? 8215 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; } && 8217 (exit $ac_status); }; } &&
8211 grep -v '^ *+' conftest.er1 >conftest.err 8263 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1 8264 rm -f conftest.er1
8213 cat conftest.err >&5 8265 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && 8267 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8268 { ac_try='test -z "$ac_cxx_werror_flag"
8269 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5 8271 (eval $ac_try) 2>&5
8219 ac_status=$? 8272 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } && 8274 (exit $ac_status); }; } &&
8251 grep -v '^ *+' conftest.er1 >conftest.err 8304 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1 8305 rm -f conftest.er1
8253 cat conftest.err >&5 8306 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && 8308 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8309 { ac_try='test -z "$ac_cxx_werror_flag"
8310 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5 8312 (eval $ac_try) 2>&5
8259 ac_status=$? 8313 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } && 8315 (exit $ac_status); }; } &&
8315 grep -v '^ *+' conftest.er1 >conftest.err 8369 grep -v '^ *+' conftest.er1 >conftest.err
8316 rm -f conftest.er1 8370 rm -f conftest.er1
8317 cat conftest.err >&5 8371 cat conftest.err >&5
8318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && 8373 (exit $ac_status); } &&
8320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8374 { ac_try='test -z "$ac_cxx_werror_flag"
8375 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5 8377 (eval $ac_try) 2>&5
8323 ac_status=$? 8378 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } && 8380 (exit $ac_status); }; } &&
8346See \`config.log' for more details." >&2;} 8401See \`config.log' for more details." >&2;}
8347 { (exit 1); exit 1; }; } ;; 8402 { (exit 1); exit 1; }; } ;;
8348esac 8403esac
8349else 8404else
8350 if test "$cross_compiling" = yes; then 8405 if test "$cross_compiling" = yes; then
8351 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8406 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8352echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8407See \`config.log' for more details." >&5
8408echo "$as_me: error: cannot run test program while cross compiling
8409See \`config.log' for more details." >&2;}
8353 { (exit 1); exit 1; }; } 8410 { (exit 1); exit 1; }; }
8354else 8411else
8355 cat >conftest.$ac_ext <<_ACEOF 8412 cat >conftest.$ac_ext <<_ACEOF
8356/* confdefs.h. */ 8413/* confdefs.h. */
8357_ACEOF 8414_ACEOF
8459 grep -v '^ *+' conftest.er1 >conftest.err 8516 grep -v '^ *+' conftest.er1 >conftest.err
8460 rm -f conftest.er1 8517 rm -f conftest.er1
8461 cat conftest.err >&5 8518 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } && 8520 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8521 { ac_try='test -z "$ac_cxx_werror_flag"
8522 || test ! -s conftest.err'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5 8524 (eval $ac_try) 2>&5
8467 ac_status=$? 8525 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; } && 8527 (exit $ac_status); }; } &&
8521 grep -v '^ *+' conftest.er1 >conftest.err 8579 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1 8580 rm -f conftest.er1
8523 cat conftest.err >&5 8581 cat conftest.err >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && 8583 (exit $ac_status); } &&
8526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8584 { ac_try='test -z "$ac_cxx_werror_flag"
8585 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5 8587 (eval $ac_try) 2>&5
8529 ac_status=$? 8588 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } && 8590 (exit $ac_status); }; } &&
8561 grep -v '^ *+' conftest.er1 >conftest.err 8620 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1 8621 rm -f conftest.er1
8563 cat conftest.err >&5 8622 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && 8624 (exit $ac_status); } &&
8566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8625 { ac_try='test -z "$ac_cxx_werror_flag"
8626 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5 8628 (eval $ac_try) 2>&5
8569 ac_status=$? 8629 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } && 8631 (exit $ac_status); }; } &&
8617 grep -v '^ *+' conftest.er1 >conftest.err 8677 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1 8678 rm -f conftest.er1
8619 cat conftest.err >&5 8679 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); } && 8681 (exit $ac_status); } &&
8622 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8682 { ac_try='test -z "$ac_cxx_werror_flag"
8683 || test ! -s conftest.err'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5 8685 (eval $ac_try) 2>&5
8625 ac_status=$? 8686 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; } && 8688 (exit $ac_status); }; } &&
8657 grep -v '^ *+' conftest.er1 >conftest.err 8718 grep -v '^ *+' conftest.er1 >conftest.err
8658 rm -f conftest.er1 8719 rm -f conftest.er1
8659 cat conftest.err >&5 8720 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } && 8722 (exit $ac_status); } &&
8662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8723 { ac_try='test -z "$ac_cxx_werror_flag"
8724 || test ! -s conftest.err'
8663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 (eval $ac_try) 2>&5 8726 (eval $ac_try) 2>&5
8665 ac_status=$? 8727 ac_status=$?
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; } && 8729 (exit $ac_status); }; } &&
8721 grep -v '^ *+' conftest.er1 >conftest.err 8783 grep -v '^ *+' conftest.er1 >conftest.err
8722 rm -f conftest.er1 8784 rm -f conftest.er1
8723 cat conftest.err >&5 8785 cat conftest.err >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); } && 8787 (exit $ac_status); } &&
8726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8788 { ac_try='test -z "$ac_cxx_werror_flag"
8789 || test ! -s conftest.err'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5 8791 (eval $ac_try) 2>&5
8729 ac_status=$? 8792 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } && 8794 (exit $ac_status); }; } &&
8752See \`config.log' for more details." >&2;} 8815See \`config.log' for more details." >&2;}
8753 { (exit 1); exit 1; }; } ;; 8816 { (exit 1); exit 1; }; } ;;
8754esac 8817esac
8755else 8818else
8756 if test "$cross_compiling" = yes; then 8819 if test "$cross_compiling" = yes; then
8757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8820 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8758echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8821See \`config.log' for more details." >&5
8822echo "$as_me: error: cannot run test program while cross compiling
8823See \`config.log' for more details." >&2;}
8759 { (exit 1); exit 1; }; } 8824 { (exit 1); exit 1; }; }
8760else 8825else
8761 cat >conftest.$ac_ext <<_ACEOF 8826 cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */ 8827/* confdefs.h. */
8763_ACEOF 8828_ACEOF
8865 grep -v '^ *+' conftest.er1 >conftest.err 8930 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1 8931 rm -f conftest.er1
8867 cat conftest.err >&5 8932 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } && 8934 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8935 { ac_try='test -z "$ac_cxx_werror_flag"
8936 || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5 8938 (eval $ac_try) 2>&5
8873 ac_status=$? 8939 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } && 8941 (exit $ac_status); }; } &&
8927 grep -v '^ *+' conftest.er1 >conftest.err 8993 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1 8994 rm -f conftest.er1
8929 cat conftest.err >&5 8995 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } && 8997 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8998 { ac_try='test -z "$ac_cxx_werror_flag"
8999 || test ! -s conftest.err'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 (eval $ac_try) 2>&5 9001 (eval $ac_try) 2>&5
8935 ac_status=$? 9002 ac_status=$?
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; } && 9004 (exit $ac_status); }; } &&
8967 grep -v '^ *+' conftest.er1 >conftest.err 9034 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1 9035 rm -f conftest.er1
8969 cat conftest.err >&5 9036 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && 9038 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9039 { ac_try='test -z "$ac_cxx_werror_flag"
9040 || test ! -s conftest.err'
8973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 (eval $ac_try) 2>&5 9042 (eval $ac_try) 2>&5
8975 ac_status=$? 9043 ac_status=$?
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); }; } && 9045 (exit $ac_status); }; } &&
9023 grep -v '^ *+' conftest.er1 >conftest.err 9091 grep -v '^ *+' conftest.er1 >conftest.err
9024 rm -f conftest.er1 9092 rm -f conftest.er1
9025 cat conftest.err >&5 9093 cat conftest.err >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); } && 9095 (exit $ac_status); } &&
9028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9096 { ac_try='test -z "$ac_cxx_werror_flag"
9097 || test ! -s conftest.err'
9029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 (eval $ac_try) 2>&5 9099 (eval $ac_try) 2>&5
9031 ac_status=$? 9100 ac_status=$?
9032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033 (exit $ac_status); }; } && 9102 (exit $ac_status); }; } &&
9063 grep -v '^ *+' conftest.er1 >conftest.err 9132 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1 9133 rm -f conftest.er1
9065 cat conftest.err >&5 9134 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && 9136 (exit $ac_status); } &&
9068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9137 { ac_try='test -z "$ac_cxx_werror_flag"
9138 || test ! -s conftest.err'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5 9140 (eval $ac_try) 2>&5
9071 ac_status=$? 9141 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; } && 9143 (exit $ac_status); }; } &&
9127 grep -v '^ *+' conftest.er1 >conftest.err 9197 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1 9198 rm -f conftest.er1
9129 cat conftest.err >&5 9199 cat conftest.err >&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && 9201 (exit $ac_status); } &&
9132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9202 { ac_try='test -z "$ac_cxx_werror_flag"
9203 || test ! -s conftest.err'
9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9134 (eval $ac_try) 2>&5 9205 (eval $ac_try) 2>&5
9135 ac_status=$? 9206 ac_status=$?
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); }; } && 9208 (exit $ac_status); }; } &&
9158See \`config.log' for more details." >&2;} 9229See \`config.log' for more details." >&2;}
9159 { (exit 1); exit 1; }; } ;; 9230 { (exit 1); exit 1; }; } ;;
9160esac 9231esac
9161else 9232else
9162 if test "$cross_compiling" = yes; then 9233 if test "$cross_compiling" = yes; then
9163 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 9234 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9164echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 9235See \`config.log' for more details." >&5
9236echo "$as_me: error: cannot run test program while cross compiling
9237See \`config.log' for more details." >&2;}
9165 { (exit 1); exit 1; }; } 9238 { (exit 1); exit 1; }; }
9166else 9239else
9167 cat >conftest.$ac_ext <<_ACEOF 9240 cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */ 9241/* confdefs.h. */
9169_ACEOF 9242_ACEOF
9270 grep -v '^ *+' conftest.er1 >conftest.err 9343 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1 9344 rm -f conftest.er1
9272 cat conftest.err >&5 9345 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } && 9347 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9348 { ac_try='test -z "$ac_cxx_werror_flag"
9349 || test ! -s conftest.err'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 (eval $ac_try) 2>&5 9351 (eval $ac_try) 2>&5
9278 ac_status=$? 9352 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; } && 9354 (exit $ac_status); }; } &&
9352 grep -v '^ *+' conftest.er1 >conftest.err 9426 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1 9427 rm -f conftest.er1
9354 cat conftest.err >&5 9428 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && 9430 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9431 { ac_try='test -z "$ac_cxx_werror_flag"
9432 || test ! -s conftest.err'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5 9434 (eval $ac_try) 2>&5
9360 ac_status=$? 9435 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } && 9437 (exit $ac_status); }; } &&
9434 grep -v '^ *+' conftest.er1 >conftest.err 9509 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1 9510 rm -f conftest.er1
9436 cat conftest.err >&5 9511 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && 9513 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9514 { ac_try='test -z "$ac_cxx_werror_flag"
9515 || test ! -s conftest.err'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5 9517 (eval $ac_try) 2>&5
9442 ac_status=$? 9518 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; } && 9520 (exit $ac_status); }; } &&
9516 grep -v '^ *+' conftest.er1 >conftest.err 9592 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1 9593 rm -f conftest.er1
9518 cat conftest.err >&5 9594 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && 9596 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9597 { ac_try='test -z "$ac_cxx_werror_flag"
9598 || test ! -s conftest.err'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5 9600 (eval $ac_try) 2>&5
9524 ac_status=$? 9601 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; } && 9603 (exit $ac_status); }; } &&
9628 grep -v '^ *+' conftest.er1 >conftest.err 9705 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1 9706 rm -f conftest.er1
9630 cat conftest.err >&5 9707 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && 9709 (exit $ac_status); } &&
9633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9710 { ac_try='test -z "$ac_cxx_werror_flag"
9711 || test ! -s conftest.err'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5 9713 (eval $ac_try) 2>&5
9636 ac_status=$? 9714 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; } && 9716 (exit $ac_status); }; } &&
9658#define RETSIGTYPE $ac_cv_type_signal 9736#define RETSIGTYPE $ac_cv_type_signal
9659_ACEOF 9737_ACEOF
9660 9738
9661 9739
9662 9740
9663case "$host_alias" in
9664 *ultrix) ac_cv_func_setsid='no' ;;
9665 *) break;;
9666esac
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684 9741
9685 9742
9686 9743
9687for ac_func in \ 9744for ac_func in \
9688 atexit \
9689 revoke \
9690 unsetenv \ 9745 unsetenv \
9691 setutent \ 9746 setutent \
9692 seteuid \
9693 setreuid \
9694 setsid \
9695 setpgrp \
9696 setpgid \
9697 openpty \
9698 _getpty \
9699 grantpt \
9700 unlockpt \
9701 isastream \
9702 on_exit \ 9747 on_exit \
9703 nanosleep \
9704 updwtmp \
9705 updwtmpx \
9706 ttyslot \
9707 9748
9708do 9749do
9709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9750as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9710echo "$as_me:$LINENO: checking for $ac_func" >&5 9751echo "$as_me:$LINENO: checking for $ac_func" >&5
9711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9752echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9770 grep -v '^ *+' conftest.er1 >conftest.err 9811 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1 9812 rm -f conftest.er1
9772 cat conftest.err >&5 9813 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && 9815 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9816 { ac_try='test -z "$ac_cxx_werror_flag"
9817 || test ! -s conftest.err'
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5 9819 (eval $ac_try) 2>&5
9778 ac_status=$? 9820 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } && 9822 (exit $ac_status); }; } &&
9804fi 9846fi
9805done 9847done
9806 9848
9807 9849
9808 9850
9851support_utmp=yes
9852support_wtmp=yes
9853support_lastlog=yes
9854
9855# Check whether --enable-utmp or --disable-utmp was given.
9856if test "${enable_utmp+set}" = set; then
9857 enableval="$enable_utmp"
9858 if test x$enableval = xyes -o x$enableval = xno; then
9859 support_utmp=$enableval
9860 fi
9861fi;
9862
9863# Check whether --enable-wtmp or --disable-wtmp was given.
9864if test "${enable_wtmp+set}" = set; then
9865 enableval="$enable_wtmp"
9866 if test x$enableval = xyes -o x$enableval = xno; then
9867 support_wtmp=$enableval
9868 fi
9869fi;
9870
9871# Check whether --enable-lastlog or --disable-lastlog was given.
9872if test "${enable_lastlog+set}" = set; then
9873 enableval="$enable_lastlog"
9874 if test x$enableval = xyes -o x$enableval = xno; then
9875 support_lastlog=$enableval
9876 fi
9877fi;
9878
9879if test x$support_utmp = xyes; then
9880
9881cat >>confdefs.h <<\_ACEOF
9882#define UTMP_SUPPORT 1
9883_ACEOF
9884
9885fi
9886if test x$support_wtmp = xyes; then
9887
9888cat >>confdefs.h <<\_ACEOF
9889#define WTMP_SUPPORT 1
9890_ACEOF
9891
9892fi
9893if test x$support_lastlog = xyes; then
9894
9895cat >>confdefs.h <<\_ACEOF
9896#define LASTLOG_SUPPORT 1
9897_ACEOF
9898
9899fi
9900
9901
9902
9903
9904for ac_func in \
9905 ttyslot \
9906 updwtmp \
9907 updwtmpx \
9908
9909do
9910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911echo "$as_me:$LINENO: checking for $ac_func" >&5
9912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9913if eval "test \"\${$as_ac_var+set}\" = set"; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9915else
9916 cat >conftest.$ac_ext <<_ACEOF
9917/* confdefs.h. */
9918_ACEOF
9919cat confdefs.h >>conftest.$ac_ext
9920cat >>conftest.$ac_ext <<_ACEOF
9921/* end confdefs.h. */
9922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924#define $ac_func innocuous_$ac_func
9925
9926/* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func (); below.
9928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929 <limits.h> exists even on freestanding compilers. */
9930
9931#ifdef __STDC__
9932# include <limits.h>
9933#else
9934# include <assert.h>
9935#endif
9936
9937#undef $ac_func
9938
9939/* Override any gcc2 internal prototype to avoid an error. */
9940#ifdef __cplusplus
9941extern "C"
9942{
9943#endif
9944/* We use char because int might match the return type of a gcc2
9945 builtin and then its argument prototype would still apply. */
9946char $ac_func ();
9947/* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9951choke me
9952#else
9953char (*f) () = $ac_func;
9954#endif
9955#ifdef __cplusplus
9956}
9957#endif
9958
9959int
9960main ()
9961{
9962return f != $ac_func;
9963 ;
9964 return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
9968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9969 (eval $ac_link) 2>conftest.er1
9970 ac_status=$?
9971 grep -v '^ *+' conftest.er1 >conftest.err
9972 rm -f conftest.er1
9973 cat conftest.err >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); } &&
9976 { ac_try='test -z "$ac_cxx_werror_flag"
9977 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5
9980 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9989 eval "$as_ac_var=yes"
9990else
9991 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5
9993
9994eval "$as_ac_var=no"
9995fi
9996rm -f conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9998fi
9999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10001if test `eval echo '${'$as_ac_var'}'` = yes; then
10002 cat >>confdefs.h <<_ACEOF
10003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004_ACEOF
10005
10006fi
10007done
10008
10009
10010
10011
10012
10013for ac_header in \
10014 utmp.h \
10015 utmpx.h \
10016 lastlog.h \
10017
10018do
10019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo "$as_me:$LINENO: checking for $ac_header" >&5
10022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10023if eval "test \"\${$as_ac_Header+set}\" = set"; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025fi
10026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028else
10029 # Is the header compilable?
10030echo "$as_me:$LINENO: checking $ac_header usability" >&5
10031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10032cat >conftest.$ac_ext <<_ACEOF
10033/* confdefs.h. */
10034_ACEOF
10035cat confdefs.h >>conftest.$ac_ext
10036cat >>conftest.$ac_ext <<_ACEOF
10037/* end confdefs.h. */
10038$ac_includes_default
10039#include <$ac_header>
10040_ACEOF
10041rm -f conftest.$ac_objext
10042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10043 (eval $ac_compile) 2>conftest.er1
10044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_cxx_werror_flag"
10051 || test ! -s conftest.err'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest.$ac_objext'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; }; then
10063 ac_header_compiler=yes
10064else
10065 echo "$as_me: failed program was:" >&5
10066sed 's/^/| /' conftest.$ac_ext >&5
10067
10068ac_header_compiler=no
10069fi
10070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10072echo "${ECHO_T}$ac_header_compiler" >&6
10073
10074# Is the header present?
10075echo "$as_me:$LINENO: checking $ac_header presence" >&5
10076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10077cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
10083#include <$ac_header>
10084_ACEOF
10085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } >/dev/null; then
10093 if test -s conftest.err; then
10094 ac_cpp_err=$ac_cxx_preproc_warn_flag
10095 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10096 else
10097 ac_cpp_err=
10098 fi
10099else
10100 ac_cpp_err=yes
10101fi
10102if test -z "$ac_cpp_err"; then
10103 ac_header_preproc=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_header_preproc=no
10109fi
10110rm -f conftest.err conftest.$ac_ext
10111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10112echo "${ECHO_T}$ac_header_preproc" >&6
10113
10114# So? What about this header?
10115case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10116 yes:no: )
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10121 ac_header_preproc=yes
10122 ;;
10123 no:yes:* )
10124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10127echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10131echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10136 (
10137 cat <<\_ASBOX
10138## ------------------------------------------ ##
10139## Report this to the AC_PACKAGE_NAME lists. ##
10140## ------------------------------------------ ##
10141_ASBOX
10142 ) |
10143 sed "s/^/$as_me: WARNING: /" >&2
10144 ;;
10145esac
10146echo "$as_me:$LINENO: checking for $ac_header" >&5
10147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10148if eval "test \"\${$as_ac_Header+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 eval "$as_ac_Header=\$ac_header_preproc"
10152fi
10153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10155
10156fi
10157if test `eval echo '${'$as_ac_Header'}'` = yes; then
10158 cat >>confdefs.h <<_ACEOF
10159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10160_ACEOF
10161
10162fi
10163
10164done
10165
10166
10167
9809if test "${ac_cv_header_utmp_h+set}" = set; then 10168if test "${ac_cv_header_utmp_h+set}" = set; then
9810 echo "$as_me:$LINENO: checking for utmp.h" >&5 10169 echo "$as_me:$LINENO: checking for utmp.h" >&5
9811echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10170echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
9812if test "${ac_cv_header_utmp_h+set}" = set; then 10171if test "${ac_cv_header_utmp_h+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6 10172 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 grep -v '^ *+' conftest.er1 >conftest.err 10193 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1 10194 rm -f conftest.er1
9836 cat conftest.err >&5 10195 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && 10197 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10198 { ac_try='test -z "$ac_cxx_werror_flag"
10199 || test ! -s conftest.err'
9840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9841 (eval $ac_try) 2>&5 10201 (eval $ac_try) 2>&5
9842 ac_status=$? 10202 ac_status=$?
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; } && 10204 (exit $ac_status); }; } &&
9943 10303
9944fi 10304fi
9945if test $ac_cv_header_utmp_h = yes; then 10305if test $ac_cv_header_utmp_h = yes; then
9946 echo "$as_me:$LINENO: checking for struct utmp" >&5 10306 echo "$as_me:$LINENO: checking for struct utmp" >&5
9947echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10307echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
9948if test "${rxvt_cv_struct_utmp+set}" = set; then 10308if test "${struct_utmp+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6 10309 echo $ECHO_N "(cached) $ECHO_C" >&6
9950else 10310else
9951 cat >conftest.$ac_ext <<_ACEOF 10311 cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h. */ 10312/* confdefs.h. */
9953_ACEOF 10313_ACEOF
9954cat confdefs.h >>conftest.$ac_ext 10314cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF 10315cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h. */ 10316/* end confdefs.h. */
9957#include <sys/types.h> 10317#include <sys/types.h>
9958#include <stdint.h>
9959#include <utmp.h> 10318#include <utmp.h>
9960int 10319int
9961main () 10320main ()
9962{ 10321{
9963struct utmp ut; 10322struct utmp ut;
9972 grep -v '^ *+' conftest.er1 >conftest.err 10331 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1 10332 rm -f conftest.er1
9974 cat conftest.err >&5 10333 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && 10335 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10336 { ac_try='test -z "$ac_cxx_werror_flag"
10337 || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 (eval $ac_try) 2>&5 10339 (eval $ac_try) 2>&5
9980 ac_status=$? 10340 ac_status=$?
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } && 10342 (exit $ac_status); }; } &&
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985 (eval $ac_try) 2>&5 10345 (eval $ac_try) 2>&5
9986 ac_status=$? 10346 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then 10348 (exit $ac_status); }; }; then
9989 rxvt_cv_struct_utmp=yes 10349 struct_utmp=yes
9990else 10350else
9991 echo "$as_me: failed program was:" >&5 10351 echo "$as_me: failed program was:" >&5
9992sed 's/^/| /' conftest.$ac_ext >&5 10352sed 's/^/| /' conftest.$ac_ext >&5
9993 10353
9994rxvt_cv_struct_utmp=no 10354struct_utmp=no
9995fi 10355fi
9996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9997fi 10357fi
9998echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10358echo "$as_me:$LINENO: result: $struct_utmp" >&5
9999echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10359echo "${ECHO_T}$struct_utmp" >&6
10000if test x$rxvt_cv_struct_utmp = xyes; then 10360if test x$struct_utmp = xyes; then
10001 10361
10002cat >>confdefs.h <<\_ACEOF 10362cat >>confdefs.h <<\_ACEOF
10003#define HAVE_STRUCT_UTMP 1 10363#define HAVE_STRUCT_UTMP 1
10004_ACEOF 10364_ACEOF
10005 10365
10006fi 10366fi
10007 10367
10008 10368
10009echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10369echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10010echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10370echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10011if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10371if test "${struct_utmp_host+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6 10372 echo $ECHO_N "(cached) $ECHO_C" >&6
10013else 10373else
10014 cat >conftest.$ac_ext <<_ACEOF 10374 cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */ 10375/* confdefs.h. */
10016_ACEOF 10376_ACEOF
10034 grep -v '^ *+' conftest.er1 >conftest.err 10394 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1 10395 rm -f conftest.er1
10036 cat conftest.err >&5 10396 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } && 10398 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10399 { ac_try='test -z "$ac_cxx_werror_flag"
10400 || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5 10402 (eval $ac_try) 2>&5
10042 ac_status=$? 10403 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } && 10405 (exit $ac_status); }; } &&
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5 10408 (eval $ac_try) 2>&5
10048 ac_status=$? 10409 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then 10411 (exit $ac_status); }; }; then
10051 rxvt_cv_struct_utmp_host=yes 10412 struct_utmp_host=yes
10052else 10413else
10053 echo "$as_me: failed program was:" >&5 10414 echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5 10415sed 's/^/| /' conftest.$ac_ext >&5
10055 10416
10056rxvt_cv_struct_utmp_host=no 10417struct_utmp_host=no
10057fi 10418fi
10058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10059fi 10420fi
10060echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10421echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10061echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10422echo "${ECHO_T}$struct_utmp_host" >&6
10062if test x$rxvt_cv_struct_utmp_host = xyes; then 10423if test x$struct_utmp_host = xyes; then
10063 10424
10064cat >>confdefs.h <<\_ACEOF 10425cat >>confdefs.h <<\_ACEOF
10065#define HAVE_UTMP_HOST 1 10426#define HAVE_UTMP_HOST 1
10066_ACEOF 10427_ACEOF
10067 10428
10068fi 10429fi
10069 10430
10070echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10431echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10071echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10432echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10072if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10433if test "${struct_utmp_pid+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6 10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10074else 10435else
10075 cat >conftest.$ac_ext <<_ACEOF 10436 cat >conftest.$ac_ext <<_ACEOF
10076/* confdefs.h. */ 10437/* confdefs.h. */
10077_ACEOF 10438_ACEOF
10095 grep -v '^ *+' conftest.er1 >conftest.err 10456 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1 10457 rm -f conftest.er1
10097 cat conftest.err >&5 10458 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && 10460 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10461 { ac_try='test -z "$ac_cxx_werror_flag"
10462 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5 10464 (eval $ac_try) 2>&5
10103 ac_status=$? 10465 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } && 10467 (exit $ac_status); }; } &&
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5 10470 (eval $ac_try) 2>&5
10109 ac_status=$? 10471 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then 10473 (exit $ac_status); }; }; then
10112 rxvt_cv_struct_utmp_pid=yes 10474 struct_utmp_pid=yes
10113else 10475else
10114 echo "$as_me: failed program was:" >&5 10476 echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5 10477sed 's/^/| /' conftest.$ac_ext >&5
10116 10478
10117rxvt_cv_struct_utmp_pid=no 10479struct_utmp_pid=no
10118fi 10480fi
10119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10120fi 10482fi
10121echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10483echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10122echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10484echo "${ECHO_T}$struct_utmp_pid" >&6
10123if test x$rxvt_cv_struct_utmp_pid = xyes; then 10485if test x$struct_utmp_pid = xyes; then
10124 10486
10125cat >>confdefs.h <<\_ACEOF 10487cat >>confdefs.h <<\_ACEOF
10126#define HAVE_UTMP_PID 1 10488#define HAVE_UTMP_PID 1
10127_ACEOF 10489_ACEOF
10128 10490
10160 grep -v '^ *+' conftest.er1 >conftest.err 10522 grep -v '^ *+' conftest.er1 >conftest.err
10161 rm -f conftest.er1 10523 rm -f conftest.er1
10162 cat conftest.err >&5 10524 cat conftest.err >&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && 10526 (exit $ac_status); } &&
10165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10527 { ac_try='test -z "$ac_cxx_werror_flag"
10528 || test ! -s conftest.err'
10166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167 (eval $ac_try) 2>&5 10530 (eval $ac_try) 2>&5
10168 ac_status=$? 10531 ac_status=$?
10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); }; } && 10533 (exit $ac_status); }; } &&
10269 10632
10270fi 10633fi
10271if test $ac_cv_header_utmpx_h = yes; then 10634if test $ac_cv_header_utmpx_h = yes; then
10272 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10635 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10273echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10636echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10274if test "${rxvt_cv_struct_utmpx+set}" = set; then 10637if test "${struct_utmpx+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6 10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10276else 10639else
10277 cat >conftest.$ac_ext <<_ACEOF 10640 cat >conftest.$ac_ext <<_ACEOF
10278/* confdefs.h. */ 10641/* confdefs.h. */
10279_ACEOF 10642_ACEOF
10297 grep -v '^ *+' conftest.er1 >conftest.err 10660 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1 10661 rm -f conftest.er1
10299 cat conftest.err >&5 10662 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && 10664 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10665 { ac_try='test -z "$ac_cxx_werror_flag"
10666 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5 10668 (eval $ac_try) 2>&5
10305 ac_status=$? 10669 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } && 10671 (exit $ac_status); }; } &&
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
10311 ac_status=$? 10675 ac_status=$?
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
10314 rxvt_cv_struct_utmpx=yes 10678 struct_utmpx=yes
10315else 10679else
10316 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
10318 10682
10319rxvt_cv_struct_utmpx=no 10683struct_utmpx=no
10320fi 10684fi
10321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10322fi 10686fi
10323echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10687echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10324echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10688echo "${ECHO_T}$struct_utmpx" >&6
10325if test x$rxvt_cv_struct_utmpx = xyes; then 10689if test x$struct_utmpx = xyes; then
10326 10690
10327cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
10328#define HAVE_STRUCT_UTMPX 1 10692#define HAVE_STRUCT_UTMPX 1
10329_ACEOF 10693_ACEOF
10330 10694
10331fi 10695fi
10332 10696
10333 10697
10334echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10698echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10335echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10699echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10336if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10700if test "${struct_utmpx_host+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6 10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10338else 10702else
10339 cat >conftest.$ac_ext <<_ACEOF 10703 cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h. */ 10704/* confdefs.h. */
10341_ACEOF 10705_ACEOF
10359 grep -v '^ *+' conftest.er1 >conftest.err 10723 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1 10724 rm -f conftest.er1
10361 cat conftest.err >&5 10725 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && 10727 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10728 { ac_try='test -z "$ac_cxx_werror_flag"
10729 || test ! -s conftest.err'
10365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366 (eval $ac_try) 2>&5 10731 (eval $ac_try) 2>&5
10367 ac_status=$? 10732 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; } && 10734 (exit $ac_status); }; } &&
10371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10372 (eval $ac_try) 2>&5 10737 (eval $ac_try) 2>&5
10373 ac_status=$? 10738 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; }; then 10740 (exit $ac_status); }; }; then
10376 rxvt_cv_struct_utmpx_host=yes 10741 struct_utmpx_host=yes
10377else 10742else
10378 echo "$as_me: failed program was:" >&5 10743 echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5 10744sed 's/^/| /' conftest.$ac_ext >&5
10380 10745
10381rxvt_cv_struct_utmpx_host=no 10746struct_utmpx_host=no
10382fi 10747fi
10383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10384fi 10749fi
10385echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10750echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10386echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10751echo "${ECHO_T}$struct_utmpx_host" >&6
10387if test x$rxvt_cv_struct_utmpx_host = xyes; then 10752if test x$struct_utmpx_host = xyes; then
10388 10753
10389cat >>confdefs.h <<\_ACEOF 10754cat >>confdefs.h <<\_ACEOF
10390#define HAVE_UTMPX_HOST 1 10755#define HAVE_UTMPX_HOST 1
10391_ACEOF 10756_ACEOF
10392 10757
10393fi 10758fi
10394 10759
10395echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 10760echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10396echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 10761echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10397if test "${rxvt_cv_struct_utmpx_session+set}" = set; then 10762if test "${struct_utmpx_session+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6 10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else 10764else
10400 cat >conftest.$ac_ext <<_ACEOF 10765 cat >conftest.$ac_ext <<_ACEOF
10401/* confdefs.h. */ 10766/* confdefs.h. */
10402_ACEOF 10767_ACEOF
10420 grep -v '^ *+' conftest.er1 >conftest.err 10785 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1 10786 rm -f conftest.er1
10422 cat conftest.err >&5 10787 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && 10789 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10790 { ac_try='test -z "$ac_cxx_werror_flag"
10791 || test ! -s conftest.err'
10426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427 (eval $ac_try) 2>&5 10793 (eval $ac_try) 2>&5
10428 ac_status=$? 10794 ac_status=$?
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); }; } && 10796 (exit $ac_status); }; } &&
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5 10799 (eval $ac_try) 2>&5
10434 ac_status=$? 10800 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then 10802 (exit $ac_status); }; }; then
10437 rxvt_cv_struct_utmpx_session=yes 10803 struct_utmpx_session=yes
10438else 10804else
10439 echo "$as_me: failed program was:" >&5 10805 echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5 10806sed 's/^/| /' conftest.$ac_ext >&5
10441 10807
10442rxvt_cv_struct_utmpx_session=no 10808struct_utmpx_session=no
10443fi 10809fi
10444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10445fi 10811fi
10446echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 10812echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10447echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 10813echo "${ECHO_T}$struct_utmpx_session" >&6
10448if test x$rxvt_cv_struct_utmpx_session = xyes; then 10814if test x$struct_utmpx_session = xyes; then
10449 10815
10450cat >>confdefs.h <<\_ACEOF 10816cat >>confdefs.h <<\_ACEOF
10451#define HAVE_UTMPX_SESSION 1 10817#define HAVE_UTMPX_SESSION 1
10452_ACEOF 10818_ACEOF
10453 10819
10456fi 10822fi
10457 10823
10458 10824
10459echo "$as_me:$LINENO: checking for struct lastlog" >&5 10825echo "$as_me:$LINENO: checking for struct lastlog" >&5
10460echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10826echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10461if test "${rxvt_cv_struct_lastlog+set}" = set; then 10827if test "${struct_lastlog+set}" = set; then
10462 echo $ECHO_N "(cached) $ECHO_C" >&6 10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10463else 10829else
10464 cat >conftest.$ac_ext <<_ACEOF 10830 cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h. */ 10831/* confdefs.h. */
10466_ACEOF 10832_ACEOF
10488 grep -v '^ *+' conftest.er1 >conftest.err 10854 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1 10855 rm -f conftest.er1
10490 cat conftest.err >&5 10856 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && 10858 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10859 { ac_try='test -z "$ac_cxx_werror_flag"
10860 || test ! -s conftest.err'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5 10862 (eval $ac_try) 2>&5
10496 ac_status=$? 10863 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; } && 10865 (exit $ac_status); }; } &&
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5 10868 (eval $ac_try) 2>&5
10502 ac_status=$? 10869 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then 10871 (exit $ac_status); }; }; then
10505 rxvt_cv_struct_lastlog=yes 10872 struct_lastlog=yes
10506else 10873else
10507 echo "$as_me: failed program was:" >&5 10874 echo "$as_me: failed program was:" >&5
10508sed 's/^/| /' conftest.$ac_ext >&5 10875sed 's/^/| /' conftest.$ac_ext >&5
10509 10876
10510rxvt_cv_struct_lastlog=no 10877struct_lastlog=no
10511fi 10878fi
10512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10513fi 10880fi
10514echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10881echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10515echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10882echo "${ECHO_T}$struct_lastlog" >&6
10516if test x$rxvt_cv_struct_lastlog = xyes; then 10883if test x$struct_lastlog = xyes; then
10517 10884
10518cat >>confdefs.h <<\_ACEOF 10885cat >>confdefs.h <<\_ACEOF
10519#define HAVE_STRUCT_LASTLOG 1 10886#define HAVE_STRUCT_LASTLOG 1
10520_ACEOF 10887_ACEOF
10521 10888
10522fi 10889fi
10523 10890
10524echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10891echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10525echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10892echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10526if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10893if test "${struct_lastlogx+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6 10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10528else 10895else
10529 cat >conftest.$ac_ext <<_ACEOF 10896 cat >conftest.$ac_ext <<_ACEOF
10530/* confdefs.h. */ 10897/* confdefs.h. */
10531_ACEOF 10898_ACEOF
10553 grep -v '^ *+' conftest.er1 >conftest.err 10920 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1 10921 rm -f conftest.er1
10555 cat conftest.err >&5 10922 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && 10924 (exit $ac_status); } &&
10558 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10925 { ac_try='test -z "$ac_cxx_werror_flag"
10926 || test ! -s conftest.err'
10559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560 (eval $ac_try) 2>&5 10928 (eval $ac_try) 2>&5
10561 ac_status=$? 10929 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; } && 10931 (exit $ac_status); }; } &&
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5 10934 (eval $ac_try) 2>&5
10567 ac_status=$? 10935 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then 10937 (exit $ac_status); }; }; then
10570 rxvt_cv_struct_lastlogx=yes 10938 struct_lastlogx=yes
10571else 10939else
10572 echo "$as_me: failed program was:" >&5 10940 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5 10941sed 's/^/| /' conftest.$ac_ext >&5
10574 10942
10575rxvt_cv_struct_lastlogx=no 10943struct_lastlogx=no
10576fi 10944fi
10577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10578fi 10946fi
10579echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10947echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10580echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10948echo "${ECHO_T}$struct_lastlogx" >&6
10581if test x$rxvt_cv_struct_lastlogx = xyes; then 10949if test x$struct_lastlogx = xyes; then
10582 10950
10583cat >>confdefs.h <<\_ACEOF 10951cat >>confdefs.h <<\_ACEOF
10584#define HAVE_STRUCT_LASTLOGX 1 10952#define HAVE_STRUCT_LASTLOGX 1
10585_ACEOF 10953_ACEOF
10586 10954
10587fi 10955fi
10588 10956
10589 10957
10590echo "$as_me:$LINENO: checking where utmp is located" >&5 10958echo "$as_me:$LINENO: checking where utmp is located" >&5
10591echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10959echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10592if test "${rxvt_cv_path_utmp+set}" = set; then 10960if test "${path_utmp+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6 10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10594else 10962else
10595 if test "$cross_compiling" = yes; then 10963 if test "$cross_compiling" = yes; then
10596 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10964 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10597echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10965echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10598else 10966else
10599 cat >conftest.$ac_ext <<_ACEOF 10967 cat >conftest.$ac_ext <<_ACEOF
10600/* confdefs.h. */ 10968/* confdefs.h. */
10601_ACEOF 10969_ACEOF
10602cat confdefs.h >>conftest.$ac_ext 10970cat confdefs.h >>conftest.$ac_ext
10603cat >>conftest.$ac_ext <<_ACEOF 10971cat >>conftest.$ac_ext <<_ACEOF
10604/* end confdefs.h. */ 10972/* end confdefs.h. */
10605#include <stdio.h> 10973#include <stdio.h>
10974#include <stdlib.h>
10606#include <sys/types.h> 10975#include <sys/types.h>
10607#include <utmp.h> 10976#include <utmp.h>
10608#include <errno.h> 10977#include <errno.h>
10609main() 10978main()
10610{ 10979{
10638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639 (eval $ac_try) 2>&5 11008 (eval $ac_try) 2>&5
10640 ac_status=$? 11009 ac_status=$?
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); }; }; then 11011 (exit $ac_status); }; }; then
10643 rxvt_cv_path_utmp=`cat conftestval` 11012 path_utmp=`cat conftestval`
10644else 11013else
10645 echo "$as_me: program exited with status $ac_status" >&5 11014 echo "$as_me: program exited with status $ac_status" >&5
10646echo "$as_me: failed program was:" >&5 11015echo "$as_me: failed program was:" >&5
10647sed 's/^/| /' conftest.$ac_ext >&5 11016sed 's/^/| /' conftest.$ac_ext >&5
10648 11017
10649( exit $ac_status ) 11018( exit $ac_status )
10650rxvt_cv_path_utmp= 11019path_utmp=
10651fi 11020fi
10652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10653fi 11022fi
10654fi 11023fi
10655echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11024echo "$as_me:$LINENO: result: $path_utmp" >&5
10656echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11025echo "${ECHO_T}$path_utmp" >&6
10657if test x$rxvt_cv_path_utmp != x; then 11026if test x$path_utmp != x; then
10658 11027
10659cat >>confdefs.h <<_ACEOF 11028cat >>confdefs.h <<_ACEOF
10660#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11029#define UTMP_FILE "$path_utmp"
10661_ACEOF 11030_ACEOF
10662 11031
10663fi 11032fi
10664 11033
10665 11034
10666echo "$as_me:$LINENO: checking where utmpx is located" >&5 11035echo "$as_me:$LINENO: checking where utmpx is located" >&5
10667echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11036echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
10668if test "${rxvt_cv_path_utmpx+set}" = set; then 11037if test "${path_utmpx+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6 11038 echo $ECHO_N "(cached) $ECHO_C" >&6
10670else 11039else
10671 if test "$cross_compiling" = yes; then 11040 if test "$cross_compiling" = yes; then
10672 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11041 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
10673echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11042echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
10674else 11043else
10675 cat >conftest.$ac_ext <<_ACEOF 11044 cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h. */ 11045/* confdefs.h. */
10677_ACEOF 11046_ACEOF
10678cat confdefs.h >>conftest.$ac_ext 11047cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF 11048cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */ 11049/* end confdefs.h. */
10681#include <stdio.h> 11050#include <stdio.h>
11051#include <stdlib.h>
10682#include <sys/types.h> 11052#include <sys/types.h>
10683#include <utmpx.h> 11053#include <utmpx.h>
10684#include <errno.h> 11054#include <errno.h>
10685#include <sys/stat.h> 11055#include <sys/stat.h>
10686#ifdef HAVE_STRING_H 11056#ifdef HAVE_STRING_H
10724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10725 (eval $ac_try) 2>&5 11095 (eval $ac_try) 2>&5
10726 ac_status=$? 11096 ac_status=$?
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); }; }; then 11098 (exit $ac_status); }; }; then
10729 rxvt_cv_path_utmpx=`cat conftestval` 11099 path_utmpx=`cat conftestval`
10730else 11100else
10731 echo "$as_me: program exited with status $ac_status" >&5 11101 echo "$as_me: program exited with status $ac_status" >&5
10732echo "$as_me: failed program was:" >&5 11102echo "$as_me: failed program was:" >&5
10733sed 's/^/| /' conftest.$ac_ext >&5 11103sed 's/^/| /' conftest.$ac_ext >&5
10734 11104
10735( exit $ac_status ) 11105( exit $ac_status )
10736rxvt_cv_path_utmpx= 11106path_utmpx=
10737fi 11107fi
10738rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10739fi 11109fi
10740fi 11110fi
10741echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11111echo "$as_me:$LINENO: result: $path_utmpx" >&5
10742echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11112echo "${ECHO_T}$path_utmpx" >&6
10743if test x$rxvt_cv_path_utmpx != x; then 11113if test x$path_utmpx != x; then
10744 11114
10745cat >>confdefs.h <<_ACEOF 11115cat >>confdefs.h <<_ACEOF
10746#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11116#define UTMPX_FILE "$path_utmpx"
10747_ACEOF 11117_ACEOF
10748 11118
10749fi 11119fi
10750 11120
10751 11121
10752echo "$as_me:$LINENO: checking where wtmp is located" >&5 11122echo "$as_me:$LINENO: checking where wtmp is located" >&5
10753echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11123echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
10754if test "${rxvt_cv_path_wtmp+set}" = set; then 11124if test "${path_wtmp+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6 11125 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else 11126else
10757 if test "$cross_compiling" = yes; then 11127 if test "$cross_compiling" = yes; then
10758 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11128 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
10759echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11129echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
10760else 11130else
10761 cat >conftest.$ac_ext <<_ACEOF 11131 cat >conftest.$ac_ext <<_ACEOF
10762/* confdefs.h. */ 11132/* confdefs.h. */
10763_ACEOF 11133_ACEOF
10764cat confdefs.h >>conftest.$ac_ext 11134cat confdefs.h >>conftest.$ac_ext
10765cat >>conftest.$ac_ext <<_ACEOF 11135cat >>conftest.$ac_ext <<_ACEOF
10766/* end confdefs.h. */ 11136/* end confdefs.h. */
10767#include <stdio.h> 11137#include <stdio.h>
11138#include <stdlib.h>
10768#include <sys/types.h> 11139#include <sys/types.h>
10769#ifdef HAVE_UTMP_H 11140#ifdef HAVE_UTMP_H
10770#include <utmp.h> 11141#include <utmp.h>
10771#endif 11142#endif
10772#include <errno.h> 11143#include <errno.h>
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5 11174 (eval $ac_try) 2>&5
10804 ac_status=$? 11175 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; }; then 11177 (exit $ac_status); }; }; then
10807 rxvt_cv_path_wtmp=`cat conftestval` 11178 path_wtmp=`cat conftestval`
10808else 11179else
10809 echo "$as_me: program exited with status $ac_status" >&5 11180 echo "$as_me: program exited with status $ac_status" >&5
10810echo "$as_me: failed program was:" >&5 11181echo "$as_me: failed program was:" >&5
10811sed 's/^/| /' conftest.$ac_ext >&5 11182sed 's/^/| /' conftest.$ac_ext >&5
10812 11183
10813( exit $ac_status ) 11184( exit $ac_status )
10814rxvt_cv_path_wtmp= 11185path_wtmp=
10815fi 11186fi
10816rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11187rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10817fi 11188fi
10818fi 11189fi
10819echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11190echo "$as_me:$LINENO: result: $path_wtmp" >&5
10820echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11191echo "${ECHO_T}$path_wtmp" >&6
10821if test x$rxvt_cv_path_wtmp != x; then 11192if test x$path_wtmp != x; then
10822 11193
10823cat >>confdefs.h <<_ACEOF 11194cat >>confdefs.h <<_ACEOF
10824#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11195#define WTMP_FILE "$path_wtmp"
10825_ACEOF 11196_ACEOF
10826 11197
10827fi 11198fi
10828 11199
10829echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11200echo "$as_me:$LINENO: checking where wtmpx is located" >&5
10830echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11201echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
10831if test "${rxvt_cv_path_wtmpx+set}" = set; then 11202if test "${path_wtmpx+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6 11203 echo $ECHO_N "(cached) $ECHO_C" >&6
10833else 11204else
10834 if test "$cross_compiling" = yes; then 11205 if test "$cross_compiling" = yes; then
10835 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11206 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
10836echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11207echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
10837else 11208else
10838 cat >conftest.$ac_ext <<_ACEOF 11209 cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h. */ 11210/* confdefs.h. */
10840_ACEOF 11211_ACEOF
10841cat confdefs.h >>conftest.$ac_ext 11212cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF 11213cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */ 11214/* end confdefs.h. */
10844#include <stdio.h> 11215#include <stdio.h>
11216#include <stdlib.h>
10845#ifdef HAVE_UTMPX_H 11217#ifdef HAVE_UTMPX_H
10846#include <utmpx.h> 11218#include <utmpx.h>
10847#endif 11219#endif
10848#include <errno.h> 11220#include <errno.h>
10849main() 11221main()
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5 11251 (eval $ac_try) 2>&5
10880 ac_status=$? 11252 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then 11254 (exit $ac_status); }; }; then
10883 rxvt_cv_path_wtmpx=`cat conftestval` 11255 path_wtmpx=`cat conftestval`
10884else 11256else
10885 echo "$as_me: program exited with status $ac_status" >&5 11257 echo "$as_me: program exited with status $ac_status" >&5
10886echo "$as_me: failed program was:" >&5 11258echo "$as_me: failed program was:" >&5
10887sed 's/^/| /' conftest.$ac_ext >&5 11259sed 's/^/| /' conftest.$ac_ext >&5
10888 11260
10889( exit $ac_status ) 11261( exit $ac_status )
10890rxvt_cv_path_wtmpx= 11262path_wtmpx=
10891fi 11263fi
10892rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11264rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10893fi 11265fi
10894fi 11266fi
10895echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11267echo "$as_me:$LINENO: result: $path_wtmpx" >&5
10896echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11268echo "${ECHO_T}$path_wtmpx" >&6
10897if test x$rxvt_cv_path_wtmpx != x; then 11269if test x$path_wtmpx != x; then
10898 11270
10899cat >>confdefs.h <<_ACEOF 11271cat >>confdefs.h <<_ACEOF
10900#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11272#define WTMPX_FILE "$path_wtmpx"
10901_ACEOF 11273_ACEOF
10902 11274
10903fi 11275fi
10904 11276
10905echo "$as_me:$LINENO: checking where lastlog is located" >&5 11277echo "$as_me:$LINENO: checking where lastlog is located" >&5
10906echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11278echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
10907if test "${rxvt_cv_path_lastlog+set}" = set; then 11279if test "${path_lastlog+set}" = set; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6 11280 echo $ECHO_N "(cached) $ECHO_C" >&6
10909else 11281else
10910 if test "$cross_compiling" = yes; then 11282 if test "$cross_compiling" = yes; then
10911 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11283 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
10912echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11284echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
10913else 11285else
10914 cat >conftest.$ac_ext <<_ACEOF 11286 cat >conftest.$ac_ext <<_ACEOF
10915/* confdefs.h. */ 11287/* confdefs.h. */
10916_ACEOF 11288_ACEOF
10917cat confdefs.h >>conftest.$ac_ext 11289cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF 11290cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h. */ 11291/* end confdefs.h. */
10920#include <stdio.h> 11292#include <stdio.h>
11293#include <stdlib.h>
10921#include <sys/types.h> 11294#include <sys/types.h>
10922#ifdef HAVE_UTMPX_H 11295#ifdef HAVE_UTMPX_H
10923#include <utmpx.h> 11296#include <utmpx.h>
10924#elif defined(HAVE_UTMP_H) 11297#elif defined(HAVE_UTMP_H)
10925#include <utmp.h> 11298#include <utmp.h>
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5 11333 (eval $ac_try) 2>&5
10961 ac_status=$? 11334 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then 11336 (exit $ac_status); }; }; then
10964 rxvt_cv_path_lastlog=`cat conftestval` 11337 path_lastlog=`cat conftestval`
10965else 11338else
10966 echo "$as_me: program exited with status $ac_status" >&5 11339 echo "$as_me: program exited with status $ac_status" >&5
10967echo "$as_me: failed program was:" >&5 11340echo "$as_me: failed program was:" >&5
10968sed 's/^/| /' conftest.$ac_ext >&5 11341sed 's/^/| /' conftest.$ac_ext >&5
10969 11342
10970( exit $ac_status ) 11343( exit $ac_status )
10971rxvt_cv_path_lastlog= 11344path_lastlog=
10972fi 11345fi
10973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11346rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10974fi 11347fi
10975fi 11348fi
10976echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11349echo "$as_me:$LINENO: result: $path_lastlog" >&5
10977echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11350echo "${ECHO_T}$path_lastlog" >&6
10978if test x$rxvt_cv_path_lastlog != x; then 11351if test x$path_lastlog != x; then
10979 11352
10980cat >>confdefs.h <<_ACEOF 11353cat >>confdefs.h <<_ACEOF
10981#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11354#define LASTLOG_FILE "$path_lastlog"
10982_ACEOF 11355_ACEOF
10983 11356
10984 if test -d "$rxvt_cv_path_lastlog"; then 11357 if test -d "$path_lastlog"; then
10985 11358
10986cat >>confdefs.h <<\_ACEOF 11359cat >>confdefs.h <<\_ACEOF
10987#define LASTLOG_IS_DIR 1 11360#define LASTLOG_IS_DIR 1
10988_ACEOF 11361_ACEOF
10989 11362
10990 fi 11363 fi
10991fi 11364fi
10992 11365
10993echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11366echo "$as_me:$LINENO: checking where lastlogx is located" >&5
10994echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11367echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
10995if test "${rxvt_cv_path_lastlogx+set}" = set; then 11368if test "${path_lastlogx+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6 11369 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else 11370else
10998 if test "$cross_compiling" = yes; then 11371 if test "$cross_compiling" = yes; then
10999 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11372 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11000echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11373echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11001else 11374else
11002 cat >conftest.$ac_ext <<_ACEOF 11375 cat >conftest.$ac_ext <<_ACEOF
11003/* confdefs.h. */ 11376/* confdefs.h. */
11004_ACEOF 11377_ACEOF
11005cat confdefs.h >>conftest.$ac_ext 11378cat confdefs.h >>conftest.$ac_ext
11006cat >>conftest.$ac_ext <<_ACEOF 11379cat >>conftest.$ac_ext <<_ACEOF
11007/* end confdefs.h. */ 11380/* end confdefs.h. */
11008#include <stdio.h> 11381#include <stdio.h>
11382#include <stdlib.h>
11009#ifdef HAVE_UTMPX_H 11383#ifdef HAVE_UTMPX_H
11010#include <utmpx.h> 11384#include <utmpx.h>
11011#endif 11385#endif
11012#include <errno.h> 11386#include <errno.h>
11013main() 11387main()
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5 11416 (eval $ac_try) 2>&5
11043 ac_status=$? 11417 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then 11419 (exit $ac_status); }; }; then
11046 rxvt_cv_path_lastlogx=`cat conftestval` 11420 path_lastlogx=`cat conftestval`
11047else 11421else
11048 echo "$as_me: program exited with status $ac_status" >&5 11422 echo "$as_me: program exited with status $ac_status" >&5
11049echo "$as_me: failed program was:" >&5 11423echo "$as_me: failed program was:" >&5
11050sed 's/^/| /' conftest.$ac_ext >&5 11424sed 's/^/| /' conftest.$ac_ext >&5
11051 11425
11052( exit $ac_status ) 11426( exit $ac_status )
11053rxvt_cv_path_lastlogx= 11427path_lastlogx=
11054fi 11428fi
11055rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11429rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11056fi 11430fi
11057fi 11431fi
11058echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11432echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11059echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11433echo "${ECHO_T}$path_lastlogx" >&6
11060if test x$rxvt_cv_path_lastlogx != x; then 11434if test x$path_lastlogx != x; then
11061 11435
11062cat >>confdefs.h <<_ACEOF 11436cat >>confdefs.h <<_ACEOF
11063#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11437#define LASTLOGX_FILE "$path_lastlogx"
11064_ACEOF 11438_ACEOF
11065 11439
11066fi 11440fi
11441
11067 11442
11068 11443
11069echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11444echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11070echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11445echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11071if test "${rxvt_cv_path_ttytab+set}" = set; then 11446if test "${rxvt_cv_path_ttytab+set}" = set; then
11112_ACEOF 11487_ACEOF
11113cat confdefs.h >>conftest.$ac_ext 11488cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF 11489cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h. */ 11490/* end confdefs.h. */
11116#include <X11/Xlib.h> 11491#include <X11/Xlib.h>
11492#include <stdlib.h>
11117main() { 11493main() {
11118char *p; 11494char *p;
11119if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11495if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11120exit (XSupportsLocale() ? 0 : 1); 11496exit (XSupportsLocale() ? 0 : 1);
11121else 11497else
11182 grep -v '^ *+' conftest.er1 >conftest.err 11558 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1 11559 rm -f conftest.er1
11184 cat conftest.err >&5 11560 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && 11562 (exit $ac_status); } &&
11187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11563 { ac_try='test -z "$ac_cxx_werror_flag"
11564 || test ! -s conftest.err'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5 11566 (eval $ac_try) 2>&5
11190 ac_status=$? 11567 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; } && 11569 (exit $ac_status); }; } &&
11245 grep -v '^ *+' conftest.er1 >conftest.err 11622 grep -v '^ *+' conftest.er1 >conftest.err
11246 rm -f conftest.er1 11623 rm -f conftest.er1
11247 cat conftest.err >&5 11624 cat conftest.err >&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && 11626 (exit $ac_status); } &&
11250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11627 { ac_try='test -z "$ac_cxx_werror_flag"
11628 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5 11630 (eval $ac_try) 2>&5
11253 ac_status=$? 11631 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } && 11633 (exit $ac_status); }; } &&
11306 grep -v '^ *+' conftest.er1 >conftest.err 11684 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1 11685 rm -f conftest.er1
11308 cat conftest.err >&5 11686 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } && 11688 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11689 { ac_try='test -z "$ac_cxx_werror_flag"
11690 || test ! -s conftest.err'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5 11692 (eval $ac_try) 2>&5
11314 ac_status=$? 11693 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } && 11695 (exit $ac_status); }; } &&
11338#define HAVE_NL_LANGINFO 1 11717#define HAVE_NL_LANGINFO 1
11339_ACEOF 11718_ACEOF
11340 11719
11341fi 11720fi
11342 11721
11722
11343echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 11723echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11344echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 11724echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11345if test "${rxvt_can_pass_fds+set}" = set; then 11725if test "${can_pass_fds+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6 11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11347else 11727else
11348 cat >conftest.$ac_ext <<_ACEOF 11728 cat >conftest.$ac_ext <<_ACEOF
11349/* confdefs.h. */ 11729/* confdefs.h. */
11350_ACEOF 11730_ACEOF
11351cat confdefs.h >>conftest.$ac_ext 11731cat confdefs.h >>conftest.$ac_ext
11352cat >>conftest.$ac_ext <<_ACEOF 11732cat >>conftest.$ac_ext <<_ACEOF
11353/* end confdefs.h. */ 11733/* end confdefs.h. */
11354 11734
11735#include <cstddef> // broken bsds (is that redundant?) need this
11355#include <sys/types.h> 11736#include <sys/types.h>
11356#include <sys/socket.h> 11737#include <sys/socket.h>
11738#include <sys/uio.h>
11357 11739
11358int 11740int
11359main () 11741main ()
11360{ 11742{
11361 11743
11394 grep -v '^ *+' conftest.er1 >conftest.err 11776 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1 11777 rm -f conftest.er1
11396 cat conftest.err >&5 11778 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } && 11780 (exit $ac_status); } &&
11399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11781 { ac_try='test -z "$ac_cxx_werror_flag"
11782 || test ! -s conftest.err'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5 11784 (eval $ac_try) 2>&5
11402 ac_status=$? 11785 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; } && 11787 (exit $ac_status); }; } &&
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5 11790 (eval $ac_try) 2>&5
11408 ac_status=$? 11791 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; }; then 11793 (exit $ac_status); }; }; then
11411 rxvt_can_pass_fds=yes 11794 can_pass_fds=yes
11412else 11795else
11413 echo "$as_me: failed program was:" >&5 11796 echo "$as_me: failed program was:" >&5
11414sed 's/^/| /' conftest.$ac_ext >&5 11797sed 's/^/| /' conftest.$ac_ext >&5
11415 11798
11416rxvt_can_pass_fds=no 11799can_pass_fds=no
11417fi 11800fi
11418rm -f conftest.err conftest.$ac_objext \ 11801rm -f conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext 11802 conftest$ac_exeext conftest.$ac_ext
11420fi 11803fi
11421echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 11804echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11422echo "${ECHO_T}$rxvt_can_pass_fds" >&6 11805echo "${ECHO_T}$can_pass_fds" >&6
11423if test x$rxvt_can_pass_fds = xyes; then 11806if test x$can_pass_fds = xyes; then
11424 11807
11425cat >>confdefs.h <<\_ACEOF 11808cat >>confdefs.h <<\_ACEOF
11426#define HAVE_UNIX_FDPASS 1 11809#define HAVE_UNIX_FDPASS 1
11427_ACEOF 11810_ACEOF
11428 11811
11812else
11813 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11814echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11815 { (exit 1); exit 1; }; }
11429fi 11816fi
11817
11430 11818
11431echo "$as_me:$LINENO: checking for broken XIM callback" >&5 11819echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11432echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 11820echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11433if test "${rxvt_broken_ximcb+set}" = set; then 11821if test "${rxvt_broken_ximcb+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6 11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 grep -v '^ *+' conftest.er1 >conftest.err 11840 grep -v '^ *+' conftest.er1 >conftest.err
11453 rm -f conftest.er1 11841 rm -f conftest.er1
11454 cat conftest.err >&5 11842 cat conftest.err >&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && 11844 (exit $ac_status); } &&
11457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11845 { ac_try='test -z "$ac_cxx_werror_flag"
11846 || test ! -s conftest.err'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5 11848 (eval $ac_try) 2>&5
11460 ac_status=$? 11849 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } && 11851 (exit $ac_status); }; } &&
11484#define XIMCB_PROTO_BROKEN 1 11873#define XIMCB_PROTO_BROKEN 1
11485_ACEOF 11874_ACEOF
11486 11875
11487fi 11876fi
11488 11877
11489echo "$as_me:$LINENO: checking for getpt" >&5
11490echo $ECHO_N "checking for getpt... $ECHO_C" >&6
11491if test "${rxvt_cv_func_getpt+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11493else
11494 cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500#define _GNU_SOURCE
11501#ifdef HAVE_STDLIB_H
11502# include <cstdlib>
11503#endif
11504int
11505main ()
11506{
11507(void)getpt();
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512rm -f conftest.$ac_objext conftest$ac_exeext
11513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 rxvt_cv_func_getpt=yes
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537 11878
11538rxvt_cv_func_getpt=no
11539fi
11540rm -f conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542fi
11543echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
11544echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
11545if test x$rxvt_cv_func_getpt = xyes; then
11546 11879
11547cat >>confdefs.h <<\_ACEOF
11548#define HAVE_GETPT 1
11549_ACEOF
11550 11880
11551fi
11552 11881
11553echo "$as_me:$LINENO: checking for pty/tty type" >&5
11554echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
11555if test "${rxvt_cv_ptys+set}" = set; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11557else
11558 if test x$ac_cv_func_openpty = xyes; then
11559 rxvt_cv_ptys=OPENPTY
11560 else if test x$ac_cv_func__getpty = xyes; then
11561 rxvt_cv_ptys=SGI4
11562 else if test -c /dev/ttyp20; then
11563 rxvt_cv_ptys=SCO
11564 else if test -c /dev/ptym/clone; then
11565 rxvt_cv_ptys=HPUX
11566 else if test x$rxvt_cv_func_getpt = xyes; then
11567 rxvt_cv_ptys=GLIBC
11568 else if test -c /dev/ptc -a -c /dev/pts; then
11569 rxvt_cv_ptys=PTC
11570 else if test -c /dev/ptc -a -d /dev/pts; then
11571 rxvt_cv_ptys=PTC
11572 else if test -c /dev/ptmx -a -c /dev/pts/0; then
11573 rxvt_cv_ptys=STREAMS
11574 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
11575 rxvt_cv_ptys=STREAMS
11576 else
11577 rxvt_cv_ptys=BSD
11578fi
11579fi
11580fi
11581fi
11582fi
11583fi
11584fi
11585fi
11586fi
11587 11882
11588fi
11589echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
11590echo "${ECHO_T}$rxvt_cv_ptys" >&6
11591 11883
11592if test x$rxvt_cv_ptys = xOPENPTY; then 11884for ac_header in \
11885 pty.h \
11886 util.h \
11887 libutil.h \
11888 sys/ioctl.h \
11889 sys/stropts.h \
11593 11890
11594cat >>confdefs.h <<\_ACEOF
11595#define PTYS_ARE_OPENPTY 1
11596_ACEOF
11597
11598fi
11599if test x$rxvt_cv_ptys = xSCO; then
11600
11601cat >>confdefs.h <<\_ACEOF
11602#define PTYS_ARE_NUMERIC 1
11603_ACEOF
11604
11605fi
11606if test x$rxvt_cv_ptys = xSTREAMS; then
11607
11608cat >>confdefs.h <<\_ACEOF
11609#define PTYS_ARE_PTMX 1
11610_ACEOF
11611
11612fi
11613if test x$rxvt_cv_ptys = xPTC; then
11614
11615cat >>confdefs.h <<\_ACEOF
11616#define PTYS_ARE_PTC 1
11617_ACEOF
11618
11619fi
11620if test x$rxvt_cv_ptys = xSGI4; then
11621
11622cat >>confdefs.h <<\_ACEOF
11623#define PTYS_ARE__GETPTY 1
11624_ACEOF
11625
11626fi
11627if test x$rxvt_cv_ptys = xCONVEX; then
11628
11629cat >>confdefs.h <<\_ACEOF
11630#define PTYS_ARE_GETPTY 1
11631_ACEOF
11632
11633fi
11634if test x$rxvt_cv_ptys = xGLIBC; then
11635
11636cat >>confdefs.h <<\_ACEOF
11637#define PTYS_ARE_GETPT 1
11638_ACEOF
11639
11640fi
11641if test x$rxvt_cv_ptys = xHPUX; then
11642
11643cat >>confdefs.h <<\_ACEOF
11644#define PTYS_ARE_CLONE 1
11645_ACEOF
11646
11647fi
11648if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
11649
11650cat >>confdefs.h <<\_ACEOF
11651#define PTYS_ARE_SEARCHED 1
11652_ACEOF
11653
11654fi
11655
11656
11657{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
11658echo "$as_me: checking for pty ranges..." >&6;}
11659ptys=`echo /dev/pty??`
11660pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
11661pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
11662if test x$pch1 != x; then
11663
11664cat >>confdefs.h <<_ACEOF
11665#define PTYCHAR1 "$pch1"
11666_ACEOF
11667
11668fi
11669if test x$pch2 != x; then
11670
11671cat >>confdefs.h <<_ACEOF
11672#define PTYCHAR2 "$pch2"
11673_ACEOF
11674
11675fi
11676
11677if test x$support_xft = xyes; then
11678 LIBS="$LIBS `pkg-config xft --libs`"
11679 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
11680 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
11681
11682
11683for ac_header in X11/Xft/Xft.h
11684do 11891do
11685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11892as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11686if eval "test \"\${$as_ac_Header+set}\" = set"; then 11893if eval "test \"\${$as_ac_Header+set}\" = set"; then
11687 echo "$as_me:$LINENO: checking for $ac_header" >&5 11894 echo "$as_me:$LINENO: checking for $ac_header" >&5
11688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11711 grep -v '^ *+' conftest.er1 >conftest.err 11918 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1 11919 rm -f conftest.er1
11713 cat conftest.err >&5 11920 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && 11922 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11923 { ac_try='test -z "$ac_cxx_werror_flag"
11924 || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5 11926 (eval $ac_try) 2>&5
11719 ac_status=$? 11927 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } && 11929 (exit $ac_status); }; } &&
11822if test `eval echo '${'$as_ac_Header'}'` = yes; then 12030if test `eval echo '${'$as_ac_Header'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF 12031 cat >>confdefs.h <<_ACEOF
11824#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11825_ACEOF 12033_ACEOF
11826 12034
12035fi
12036
12037done
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049for ac_func in \
12050 revoke \
12051 _getpty \
12052 getpt \
12053 posix_openpt \
12054 isastream \
12055 setuid \
12056 seteuid \
12057 setreuid \
12058 setresuid \
12059
12060do
12061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12062echo "$as_me:$LINENO: checking for $ac_func" >&5
12063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12064if eval "test \"\${$as_ac_var+set}\" = set"; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 cat >conftest.$ac_ext <<_ACEOF
12068/* confdefs.h. */
12069_ACEOF
12070cat confdefs.h >>conftest.$ac_ext
12071cat >>conftest.$ac_ext <<_ACEOF
12072/* end confdefs.h. */
12073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12075#define $ac_func innocuous_$ac_func
12076
12077/* System header to define __stub macros and hopefully few prototypes,
12078 which can conflict with char $ac_func (); below.
12079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12080 <limits.h> exists even on freestanding compilers. */
12081
12082#ifdef __STDC__
12083# include <limits.h>
12084#else
12085# include <assert.h>
12086#endif
12087
12088#undef $ac_func
12089
12090/* Override any gcc2 internal prototype to avoid an error. */
12091#ifdef __cplusplus
12092extern "C"
12093{
12094#endif
12095/* We use char because int might match the return type of a gcc2
12096 builtin and then its argument prototype would still apply. */
12097char $ac_func ();
12098/* The GNU C library defines this for functions which it implements
12099 to always fail with ENOSYS. Some functions are actually named
12100 something starting with __ and the normal name is an alias. */
12101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12102choke me
12103#else
12104char (*f) () = $ac_func;
12105#endif
12106#ifdef __cplusplus
12107}
12108#endif
12109
12110int
12111main ()
12112{
12113return f != $ac_func;
12114 ;
12115 return 0;
12116}
12117_ACEOF
12118rm -f conftest.$ac_objext conftest$ac_exeext
12119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>conftest.er1
12121 ac_status=$?
12122 grep -v '^ *+' conftest.er1 >conftest.err
12123 rm -f conftest.er1
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -z "$ac_cxx_werror_flag"
12128 || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 eval "$as_ac_var=yes"
12141else
12142 echo "$as_me: failed program was:" >&5
12143sed 's/^/| /' conftest.$ac_ext >&5
12144
12145eval "$as_ac_var=no"
12146fi
12147rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149fi
12150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12151echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12152if test `eval echo '${'$as_ac_var'}'` = yes; then
12153 cat >>confdefs.h <<_ACEOF
12154#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12155_ACEOF
12156
12157fi
12158done
12159
12160
12161have_clone=no
12162
12163echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12164echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12165if test -e /dev/ptym/clone; then
12166 echo "$as_me:$LINENO: result: yes" >&5
12167echo "${ECHO_T}yes" >&6
12168
12169cat >>confdefs.h <<\_ACEOF
12170#define HAVE_DEV_CLONE 1
12171_ACEOF
12172
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define CLONE_DEVICE "/dev/ptym/clone"
12176_ACEOF
12177
12178 have_clone=yes
12179else
12180 echo "$as_me:$LINENO: result: no" >&5
12181echo "${ECHO_T}no" >&6
12182fi
12183
12184echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12185echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12186if test -e /dev/ptc; then
12187 echo "$as_me:$LINENO: result: yes" >&5
12188echo "${ECHO_T}yes" >&6
12189
12190cat >>confdefs.h <<\_ACEOF
12191#define HAVE_DEV_PTC 1
12192_ACEOF
12193
12194
12195cat >>confdefs.h <<\_ACEOF
12196#define CLONE_DEVICE "/dev/ptc"
12197_ACEOF
12198
12199 have_clone=yes
12200else
12201 echo "$as_me:$LINENO: result: no" >&5
12202echo "${ECHO_T}no" >&6
12203fi
12204
12205case $host in
12206 *-*-cygwin*)
12207 have_clone=yes
12208
12209cat >>confdefs.h <<\_ACEOF
12210#define CLONE_DEVICE "/dev/ptmx"
12211_ACEOF
12212
12213 ;;
12214 *)
12215 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12216echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12217 if test -e /dev/ptmx; then
12218 echo "$as_me:$LINENO: result: yes" >&5
12219echo "${ECHO_T}yes" >&6
12220
12221cat >>confdefs.h <<\_ACEOF
12222#define HAVE_DEV_PTMX 1
12223_ACEOF
12224
12225
12226cat >>confdefs.h <<\_ACEOF
12227#define CLONE_DEVICE "/dev/ptmx"
12228_ACEOF
12229
12230 have_clone=yes
12231 else
12232 echo "$as_me:$LINENO: result: no" >&5
12233echo "${ECHO_T}no" >&6
12234 fi
12235 ;;
12236esac
12237
12238if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12239 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12240echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12241 cat >conftest.$ac_ext <<_ACEOF
12242/* confdefs.h. */
12243_ACEOF
12244cat confdefs.h >>conftest.$ac_ext
12245cat >>conftest.$ac_ext <<_ACEOF
12246/* end confdefs.h. */
12247#include <stdlib.h>
12248int
12249main ()
12250{
12251grantpt(0);unlockpt(0);ptsname(0);
12252 ;
12253 return 0;
12254}
12255_ACEOF
12256rm -f conftest.$ac_objext conftest$ac_exeext
12257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12258 (eval $ac_link) 2>conftest.er1
12259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } &&
12265 { ac_try='test -z "$ac_cxx_werror_flag"
12266 || test ! -s conftest.err'
12267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268 (eval $ac_try) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; } &&
12272 { ac_try='test -s conftest$ac_exeext'
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
12278 unix98_pty=yes
12279
12280cat >>confdefs.h <<\_ACEOF
12281#define UNIX98_PTY 1
12282_ACEOF
12283
12284 echo "$as_me:$LINENO: result: yes" >&5
12285echo "${ECHO_T}yes" >&6
12286else
12287 echo "$as_me: failed program was:" >&5
12288sed 's/^/| /' conftest.$ac_ext >&5
12289
12290echo "$as_me:$LINENO: result: no" >&5
12291echo "${ECHO_T}no" >&6
12292fi
12293rm -f conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295fi
12296
12297if test -z "$unix98_pty"; then
12298
12299for ac_func in openpty
12300do
12301as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12302echo "$as_me:$LINENO: checking for $ac_func" >&5
12303echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12304if eval "test \"\${$as_ac_var+set}\" = set"; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307 cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12315#define $ac_func innocuous_$ac_func
12316
12317/* System header to define __stub macros and hopefully few prototypes,
12318 which can conflict with char $ac_func (); below.
12319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12320 <limits.h> exists even on freestanding compilers. */
12321
12322#ifdef __STDC__
12323# include <limits.h>
12324#else
12325# include <assert.h>
12326#endif
12327
12328#undef $ac_func
12329
12330/* Override any gcc2 internal prototype to avoid an error. */
12331#ifdef __cplusplus
12332extern "C"
12333{
12334#endif
12335/* We use char because int might match the return type of a gcc2
12336 builtin and then its argument prototype would still apply. */
12337char $ac_func ();
12338/* The GNU C library defines this for functions which it implements
12339 to always fail with ENOSYS. Some functions are actually named
12340 something starting with __ and the normal name is an alias. */
12341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12342choke me
12343#else
12344char (*f) () = $ac_func;
12345#endif
12346#ifdef __cplusplus
12347}
12348#endif
12349
12350int
12351main ()
12352{
12353return f != $ac_func;
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext conftest$ac_exeext
12359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_cxx_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest$ac_exeext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
12380 eval "$as_ac_var=yes"
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385eval "$as_ac_var=no"
12386fi
12387rm -f conftest.err conftest.$ac_objext \
12388 conftest$ac_exeext conftest.$ac_ext
12389fi
12390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12392if test `eval echo '${'$as_ac_var'}'` = yes; then
12393 cat >>confdefs.h <<_ACEOF
12394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12395_ACEOF
12396
12397else
12398 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12399echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12400if test "${ac_cv_lib_util_openpty+set}" = set; then
12401 echo $ECHO_N "(cached) $ECHO_C" >&6
12402else
12403 ac_check_lib_save_LIBS=$LIBS
12404LIBS="-lutil $LIBS"
12405cat >conftest.$ac_ext <<_ACEOF
12406/* confdefs.h. */
12407_ACEOF
12408cat confdefs.h >>conftest.$ac_ext
12409cat >>conftest.$ac_ext <<_ACEOF
12410/* end confdefs.h. */
12411
12412/* Override any gcc2 internal prototype to avoid an error. */
12413#ifdef __cplusplus
12414extern "C"
12415#endif
12416/* We use char because int might match the return type of a gcc2
12417 builtin and then its argument prototype would still apply. */
12418char openpty ();
12419int
12420main ()
12421{
12422openpty ();
12423 ;
12424 return 0;
12425}
12426_ACEOF
12427rm -f conftest.$ac_objext conftest$ac_exeext
12428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_cxx_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 ac_cv_lib_util_openpty=yes
12450else
12451 echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454ac_cv_lib_util_openpty=no
12455fi
12456rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458LIBS=$ac_check_lib_save_LIBS
12459fi
12460echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12461echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12462if test $ac_cv_lib_util_openpty = yes; then
12463 cat >>confdefs.h <<\_ACEOF
12464#define HAVE_OPENPTY 1
12465_ACEOF
12466 LIBS="$LIBS -lutil"
12467fi
12468
12469fi
12470done
12471
12472fi
12473
12474
12475
12476echo "$as_me:$LINENO: checking for tty group" >&5
12477echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12478if test "${tty_group+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12480else
12481 if test "$cross_compiling" = yes; then
12482 tty_group=no
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490
12491#include <sys/types.h>
12492#include <sys/stat.h>
12493#include <unistd.h>
12494#include <grp.h>
12495
12496main()
12497{
12498 struct stat st;
12499 struct group *gr;
12500 char *tty;
12501 gr = getgrnam("tty");
12502 tty = ttyname(0);
12503 if (gr != 0
12504 && tty != 0
12505 && (stat(tty, &st)) == 0
12506 && st.st_gid == gr->gr_gid)
12507 return 0;
12508 else
12509 return 1;
12510}
12511_ACEOF
12512rm -f conftest$ac_exeext
12513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12514 (eval $ac_link) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 tty_group=yes
12524else
12525 echo "$as_me: program exited with status $ac_status" >&5
12526echo "$as_me: failed program was:" >&5
12527sed 's/^/| /' conftest.$ac_ext >&5
12528
12529( exit $ac_status )
12530tty_group=no
12531fi
12532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12533fi
12534fi
12535echo "$as_me:$LINENO: result: $tty_group" >&5
12536echo "${ECHO_T}$tty_group" >&6
12537if test x$tty_group = xyes; then
12538
12539cat >>confdefs.h <<\_ACEOF
12540#define TTY_GID_SUPPORT 1
12541_ACEOF
12542
12543fi
12544
12545if test x$support_xft = xyes; then
12546 # Extract the first word of "pkg-config", so it can be a program name with args.
12547set dummy pkg-config; ac_word=$2
12548echo "$as_me:$LINENO: checking for $ac_word" >&5
12549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12550if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12552else
12553 case $PKG_CONFIG in
12554 [\\/]* | ?:[\\/]*)
12555 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12556 ;;
12557 *)
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570done
12571
12572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12573 ;;
12574esac
12575fi
12576PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12577
12578if test -n "$PKG_CONFIG"; then
12579 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12580echo "${ECHO_T}$PKG_CONFIG" >&6
12581else
12582 echo "$as_me:$LINENO: result: no" >&5
12583echo "${ECHO_T}no" >&6
12584fi
12585
12586 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12587 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12588 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12589 else
12590 # Extract the first word of "xft-config", so it can be a program name with args.
12591set dummy xft-config; ac_word=$2
12592echo "$as_me:$LINENO: checking for $ac_word" >&5
12593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596else
12597 case $XFT_CONFIG in
12598 [\\/]* | ?:[\\/]*)
12599 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12600 ;;
12601 *)
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 break 2
12612 fi
12613done
12614done
12615
12616 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12617 ;;
12618esac
12619fi
12620XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12621
12622if test -n "$XFT_CONFIG"; then
12623 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12624echo "${ECHO_T}$XFT_CONFIG" >&6
12625else
12626 echo "$as_me:$LINENO: result: no" >&5
12627echo "${ECHO_T}no" >&6
12628fi
12629
12630 if test $XFT_CONFIG != no; then
12631 LIBS="$LIBS `$XFT_CONFIG --libs`"
12632 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12633 fi
12634 fi
12635
12636
12637for ac_header in X11/Xft/Xft.h
12638do
12639as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640if eval "test \"\${$as_ac_Header+set}\" = set"; then
12641 echo "$as_me:$LINENO: checking for $ac_header" >&5
12642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12643if eval "test \"\${$as_ac_Header+set}\" = set"; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645fi
12646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12647echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12648else
12649 # Is the header compilable?
12650echo "$as_me:$LINENO: checking $ac_header usability" >&5
12651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12652cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658$ac_includes_default
12659#include <$ac_header>
12660_ACEOF
12661rm -f conftest.$ac_objext
12662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12663 (eval $ac_compile) 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_cxx_werror_flag"
12671 || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_header_compiler=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_header_compiler=no
12689fi
12690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692echo "${ECHO_T}$ac_header_compiler" >&6
12693
12694# Is the header present?
12695echo "$as_me:$LINENO: checking $ac_header presence" >&5
12696echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12697cat >conftest.$ac_ext <<_ACEOF
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703#include <$ac_header>
12704_ACEOF
12705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } >/dev/null; then
12713 if test -s conftest.err; then
12714 ac_cpp_err=$ac_cxx_preproc_warn_flag
12715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12716 else
12717 ac_cpp_err=
12718 fi
12719else
12720 ac_cpp_err=yes
12721fi
12722if test -z "$ac_cpp_err"; then
12723 ac_header_preproc=yes
12724else
12725 echo "$as_me: failed program was:" >&5
12726sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_header_preproc=no
12729fi
12730rm -f conftest.err conftest.$ac_ext
12731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12732echo "${ECHO_T}$ac_header_preproc" >&6
12733
12734# So? What about this header?
12735case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12736 yes:no: )
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12738echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12740echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12741 ac_header_preproc=yes
12742 ;;
12743 no:yes:* )
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12745echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12747echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12749echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12751echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12755echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12756 (
12757 cat <<\_ASBOX
12758## ------------------------------------------ ##
12759## Report this to the AC_PACKAGE_NAME lists. ##
12760## ------------------------------------------ ##
12761_ASBOX
12762 ) |
12763 sed "s/^/$as_me: WARNING: /" >&2
12764 ;;
12765esac
12766echo "$as_me:$LINENO: checking for $ac_header" >&5
12767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12768if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770else
12771 eval "$as_ac_Header=\$ac_header_preproc"
12772fi
12773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12775
12776fi
12777if test `eval echo '${'$as_ac_Header'}'` = yes; then
12778 cat >>confdefs.h <<_ACEOF
12779#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12780_ACEOF
12781
11827else 12782else
11828 support_xft=no 12783 support_xft=no
11829fi 12784fi
11830 12785
11831done 12786done
11867 grep -v '^ *+' conftest.er1 >conftest.err 12822 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1 12823 rm -f conftest.er1
11869 cat conftest.err >&5 12824 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } && 12826 (exit $ac_status); } &&
11872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12827 { ac_try='test -z "$ac_cxx_werror_flag"
12828 || test ! -s conftest.err'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5 12830 (eval $ac_try) 2>&5
11875 ac_status=$? 12831 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; } && 12833 (exit $ac_status); }; } &&
11968cat >>confdefs.h <<\_ACEOF 12924cat >>confdefs.h <<\_ACEOF
11969#define SELECTION_SCROLLING 1 12925#define SELECTION_SCROLLING 1
11970_ACEOF 12926_ACEOF
11971 12927
11972fi 12928fi
11973if test x$support_menubar = xyes; then
11974
11975cat >>confdefs.h <<\_ACEOF
11976#define MENUBAR 1
11977_ACEOF
11978
11979fi
11980if test x$support_frills = xyes; then 12929if test x$support_frills = xyes; then
11981 12930
11982cat >>confdefs.h <<\_ACEOF 12931cat >>confdefs.h <<\_ACEOF
11983#define ENABLE_FRILLS 1 12932#define ENABLE_FRILLS 1
11984_ACEOF 12933_ACEOF
11985 12934
11986fi 12935fi
11987if test x$support_24bit = xyes; then
11988
11989cat >>confdefs.h <<\_ACEOF
11990#define PREFER_24BIT 1
11991_ACEOF
11992
11993fi
11994if test x$support_mousewheel = xyes; then 12936if test x$support_mousewheel = xyes; then
11995 12937
11996cat >>confdefs.h <<\_ACEOF 12938cat >>confdefs.h <<\_ACEOF
11997#define MOUSE_WHEEL 1 12939#define MOUSE_WHEEL 1
11998_ACEOF 12940_ACEOF
12003cat >>confdefs.h <<\_ACEOF 12945cat >>confdefs.h <<\_ACEOF
12004#define MOUSE_SLIP_WHEELING 1 12946#define MOUSE_SLIP_WHEELING 1
12005_ACEOF 12947_ACEOF
12006 12948
12007fi 12949fi
12008if test x$support_utmp = xyes; then
12009
12010cat >>confdefs.h <<\_ACEOF
12011#define UTMP_SUPPORT 1
12012_ACEOF
12013
12014fi
12015if test x$support_wtmp = xyes; then
12016
12017cat >>confdefs.h <<\_ACEOF
12018#define WTMP_SUPPORT 1
12019_ACEOF
12020
12021fi
12022if test x$support_lastlog = xyes; then
12023
12024cat >>confdefs.h <<\_ACEOF
12025#define LASTLOG_SUPPORT 1
12026_ACEOF
12027
12028fi
12029if test x$support_xim = xyes -o x$multichar_set = xyes; then 12950if test x$support_xim = xyes -o x$multichar_set = xyes; then
12030 if test x$rxvt_cv_func_xlocale = xyes; then 12951 if test x$rxvt_cv_func_xlocale = xyes; then
12031 12952
12032cat >>confdefs.h <<\_ACEOF 12953cat >>confdefs.h <<\_ACEOF
12033#define USE_XIM 1 12954#define USE_XIM 1
12034_ACEOF 12955_ACEOF
12035 12956
12036 fi 12957 fi
12037fi 12958fi
12038if test x$support_xpm = xyes; then 12959if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12039 12960
12040cat >>confdefs.h <<\_ACEOF 12961cat >>confdefs.h <<\_ACEOF
12041#define XPM_BACKGROUND 1 12962#define XPM_BACKGROUND 1
12042_ACEOF 12963_ACEOF
12043 12964
12044fi 12965fi
12966
12967if test x$support_afterimage = xyes; then
12968
12969cat >>confdefs.h <<\_ACEOF
12970#define HAVE_AFTERIMAGE 1
12971_ACEOF
12972
12973fi
12974
12975if test x$support_afterstep = xyes; then
12976
12977cat >>confdefs.h <<\_ACEOF
12978#define AFTERSTEP_INTEGRATION 1
12979_ACEOF
12980
12981fi
12982
12045if test x$support_scroll_rxvt = xyes; then 12983if test x$support_scroll_rxvt = xyes; then
12046 12984
12047cat >>confdefs.h <<\_ACEOF 12985cat >>confdefs.h <<\_ACEOF
12048#define RXVT_SCROLLBAR 1 12986#define RXVT_SCROLLBAR 1
12049_ACEOF 12987_ACEOF
12143_ACEOF 13081_ACEOF
12144 ;; 13082 ;;
12145 esac 13083 esac
12146done 13084done
12147 13085
13086IF_PERL=\#
13087if test x$support_perl = xyes; then
13088 # Extract the first word of "perl5", so it can be a program name with args.
13089set dummy perl5; ac_word=$2
13090echo "$as_me:$LINENO: checking for $ac_word" >&5
13091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13092if test "${ac_cv_path_PERL+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094else
13095 case $PERL in
13096 [\\/]* | ?:[\\/]*)
13097 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13098 ;;
13099 *)
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13107 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13109 break 2
13110 fi
13111done
13112done
12148 13113
12149CFLAGS=${CFLAGS--O} 13114 ;;
12150LDFLAGS=${LDFLAGS--O} 13115esac
13116fi
13117PERL=$ac_cv_path_PERL
12151 13118
12152CPPFLAGS="$CPPFLAGS" 13119if test -n "$PERL"; then
13120 echo "$as_me:$LINENO: result: $PERL" >&5
13121echo "${ECHO_T}$PERL" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
12153 13126
13127 # Extract the first word of "perl", so it can be a program name with args.
13128set dummy perl; ac_word=$2
13129echo "$as_me:$LINENO: checking for $ac_word" >&5
13130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13131if test "${ac_cv_path_PERL+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else
13134 case $PERL in
13135 [\\/]* | ?:[\\/]*)
13136 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13137 ;;
13138 *)
13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13140for as_dir in $PATH
13141do
13142 IFS=$as_save_IFS
13143 test -z "$as_dir" && as_dir=.
13144 for ac_exec_ext in '' $ac_executable_extensions; do
13145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13146 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13148 break 2
13149 fi
13150done
13151done
13152
13153 ;;
13154esac
13155fi
13156PERL=$ac_cv_path_PERL
13157
13158if test -n "$PERL"; then
13159 echo "$as_me:$LINENO: result: $PERL" >&5
13160echo "${ECHO_T}$PERL" >&6
13161else
13162 echo "$as_me:$LINENO: result: no" >&5
13163echo "${ECHO_T}no" >&6
13164fi
13165
13166
13167 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13168echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13169 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13170
13171 save_CXXFLAGS="$CXXFLAGS"
13172 save_LIBS="$LIBS"
13173 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13174 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13175 cat >conftest.$ac_ext <<_ACEOF
13176/* confdefs.h. */
13177_ACEOF
13178cat confdefs.h >>conftest.$ac_ext
13179cat >>conftest.$ac_ext <<_ACEOF
13180/* end confdefs.h. */
13181
13182#include <EXTERN.h>
13183#include <perl.h>
13184#include <XSUB.h>
13185
13186int
13187main ()
13188{
13189
13190 PerlInterpreter *perl = perl_alloc ();
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext conftest$ac_exeext
13197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13198 (eval $ac_link) 2>conftest.er1
13199 ac_status=$?
13200 grep -v '^ *+' conftest.er1 >conftest.err
13201 rm -f conftest.er1
13202 cat conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); } &&
13205 { ac_try='test -z "$ac_cxx_werror_flag"
13206 || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 rxvt_perl_link=yes
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223rxvt_perl_link=no
13224fi
13225rm -f conftest.err conftest.$ac_objext \
13226 conftest$ac_exeext conftest.$ac_ext
13227 CXXFLAGS="$save_CXXFLAGS"
13228 LIBS="$save_LIBS"
13229
13230 if test x$rxvt_perl_link = xyes; then
13231 echo "$as_me:$LINENO: result: ok" >&5
13232echo "${ECHO_T}ok" >&6
13233
13234cat >>confdefs.h <<\_ACEOF
13235#define ENABLE_PERL 1
13236_ACEOF
13237
13238 IF_PERL=
13239 PERL_O=rxvtperl.o
13240 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13241 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13242 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13243 else
13244 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13245echo "$as_me: error: no, unable to link" >&2;}
13246 { (exit 1); exit 1; }; }
13247 fi
13248 else
13249 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13250echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13251 { (exit 1); exit 1; }; }
13252 fi
13253fi
13254
13255
13256
13257
13258
13259
13260
13261if test x$support_perl = xyes; then
13262 support_frills=yes
13263fi
12154 13264
12155 13265
12156 13266
12157 13267
12158 13268
12159 13269
12160if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 13270if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12161 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12162 LIBS=`echo $LIBS | sed "$R_TRANSLATE"` 13271 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12163 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` 13272 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12164 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` 13273 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12165 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` 13274 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12166fi 13275fi
12167 13276
12168 13277
12169 13278
12170 13279
12171 13280
12172if test x$support_addstrings = xno; then
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define NO_STRINGS 1
12176_ACEOF
12177
12178fi
12179
12180MCOMMON=./autoconf/Make.common
12181 13281
12182 13282
12183test "$program_prefix" != NONE && 13283test "$program_prefix" != NONE &&
12184 program_transform_name="s,^,$program_prefix,;$program_transform_name" 13284 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12185# Use a double $ so make ignores it. 13285# Use a double $ so make ignores it.
12261 include_time_h="#include <time.h>" 13361 include_time_h="#include <time.h>"
12262else 13362else
12263 include_time_h="/* #include <time.h> */" 13363 include_time_h="/* #include <time.h> */"
12264fi 13364fi
12265 13365
12266 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h" 13366 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12267 13367
12268cat >confcache <<\_ACEOF 13368cat >confcache <<\_ACEOF
12269# This file is a shell script that caches the results of configure 13369# This file is a shell script that caches the results of configure
12270# tests run on this system so they can be shared between configure 13370# tests run on this system so they can be shared between configure
12271# scripts and configure runs, see configure's option --config-cache. 13371# scripts and configure runs, see configure's option --config-cache.
12788cat >>$CONFIG_STATUS <<\_ACEOF 13888cat >>$CONFIG_STATUS <<\_ACEOF
12789for ac_config_target in $ac_config_targets 13889for ac_config_target in $ac_config_targets
12790do 13890do
12791 case "$ac_config_target" in 13891 case "$ac_config_target" in
12792 # Handling of arguments. 13892 # Handling of arguments.
12793 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
12794 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13893 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12795 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13894 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12796 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13895 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12797 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13896 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
12798 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13897 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
12799 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13898 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12800echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13899echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12801 { (exit 1); exit 1; }; };; 13900 { (exit 1); exit 1; }; };;
12802 esac 13901 esac
12803done 13902done
12904s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14003s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12905s,@CPP@,$CPP,;t t 14004s,@CPP@,$CPP,;t t
12906s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14005s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12907s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14006s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12908s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14007s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12909s,@AWK@,$AWK,;t t 14008s,@EGREP@,$EGREP,;t t
12910s,@LINKER@,$LINKER,;t t 14009s,@LINKER@,$LINKER,;t t
12911s,@CXXCPP@,$CXXCPP,;t t 14010s,@CXXLIB@,$CXXLIB,;t t
12912s,@EGREP@,$EGREP,;t t
12913s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14011s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
12914s,@RXVTNAME@,$RXVTNAME,;t t 14012s,@RXVTNAME@,$RXVTNAME,;t t
12915s,@MV@,$MV,;t t
12916s,@RM@,$RM,;t t
12917s,@CP@,$CP,;t t
12918s,@LN@,$LN,;t t
12919s,@SED@,$SED,;t t
12920s,@ECHO@,$ECHO,;t t
12921s,@CMP@,$CMP,;t t
12922s,@TBL@,$TBL,;t t
12923s,@TIC@,$TIC,;t t 14013s,@TIC@,$TIC,;t t
14014s,@CXXCPP@,$CXXCPP,;t t
12924s,@X_CFLAGS@,$X_CFLAGS,;t t 14015s,@X_CFLAGS@,$X_CFLAGS,;t t
12925s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
12926s,@X_LIBS@,$X_LIBS,;t t 14017s,@X_LIBS@,$X_LIBS,;t t
12927s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
14019s,@afterimage_config@,$afterimage_config,;t t
12928s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14020s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
12929s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t 14021s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
12930s,@XPM_LIBS@,$XPM_LIBS,;t t 14022s,@XPM_LIBS@,$XPM_LIBS,;t t
12931s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t 14023s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
12932s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14024s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
12933s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14025s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
12934s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14026s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
12935s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14027s,@rxvt_intp_define@,$rxvt_intp_define,;t t
12936s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14028s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
12937s,@DEBUG@,$DEBUG,;t t 14029s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12938s,@DINCLUDE@,$DINCLUDE,;t t 14030s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14031s,@PERL@,$PERL,;t t
12939s,@DLIB@,$DLIB,;t t 14032s,@PERLLIB@,$PERLLIB,;t t
14033s,@PERLFLAGS@,$PERLFLAGS,;t t
14034s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14035s,@IF_PERL@,$IF_PERL,;t t
14036s,@PERL_O@,$PERL_O,;t t
14037s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
14038s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
12940s,@include_stdint_h@,$include_stdint_h,;t t 14039s,@include_stdint_h@,$include_stdint_h,;t t
12941s,@include_stdarg_h@,$include_stdarg_h,;t t 14040s,@include_stdarg_h@,$include_stdarg_h,;t t
12942s,@include_stdlib_h@,$include_stdlib_h,;t t 14041s,@include_stdlib_h@,$include_stdlib_h,;t t
12943s,@include_unistd_h@,$include_unistd_h,;t t 14042s,@include_unistd_h@,$include_unistd_h,;t t
12944s,@include_string_h@,$include_string_h,;t t 14043s,@include_string_h@,$include_string_h,;t t
12950s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14049s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
12951s,@include_sys_time_h@,$include_sys_time_h,;t t 14050s,@include_sys_time_h@,$include_sys_time_h,;t t
12952s,@include_time_h@,$include_time_h,;t t 14051s,@include_time_h@,$include_time_h,;t t
12953s,@LIBOBJS@,$LIBOBJS,;t t 14052s,@LIBOBJS@,$LIBOBJS,;t t
12954s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12955/@MCOMMON@/r $MCOMMON
12956s,@MCOMMON@,,;t t
12957CEOF 14054CEOF
12958 14055
12959_ACEOF 14056_ACEOF
12960 14057
12961 cat >>$CONFIG_STATUS <<\_ACEOF 14058 cat >>$CONFIG_STATUS <<\_ACEOF
13118 case $INSTALL in 14215 case $INSTALL in
13119 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14216 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13120 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14217 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13121 esac 14218 esac
13122 14219
14220 if test x"$ac_file" != x-; then
14221 { echo "$as_me:$LINENO: creating $ac_file" >&5
14222echo "$as_me: creating $ac_file" >&6;}
14223 rm -f "$ac_file"
14224 fi
13123 # Let's still pretend it is `configure' which instantiates (i.e., don't 14225 # Let's still pretend it is `configure' which instantiates (i.e., don't
13124 # use $as_me), people would be surprised to read: 14226 # use $as_me), people would be surprised to read:
13125 # /* config.h. Generated by config.status. */ 14227 # /* config.h. Generated by config.status. */
13126 if test x"$ac_file" = x-; then 14228 if test x"$ac_file" = x-; then
13127 configure_input= 14229 configure_input=
13156echo "$as_me: error: cannot find input file: $f" >&2;} 14258echo "$as_me: error: cannot find input file: $f" >&2;}
13157 { (exit 1); exit 1; }; } 14259 { (exit 1); exit 1; }; }
13158 fi;; 14260 fi;;
13159 esac 14261 esac
13160 done` || { (exit 1); exit 1; } 14262 done` || { (exit 1); exit 1; }
13161
13162 if test x"$ac_file" != x-; then
13163 { echo "$as_me:$LINENO: creating $ac_file" >&5
13164echo "$as_me: creating $ac_file" >&6;}
13165 rm -f "$ac_file"
13166 fi
13167_ACEOF 14263_ACEOF
13168cat >>$CONFIG_STATUS <<_ACEOF 14264cat >>$CONFIG_STATUS <<_ACEOF
13169 sed "$ac_vpsub 14265 sed "$ac_vpsub
13170$extrasub 14266$extrasub
13171_ACEOF 14267_ACEOF
13451 14547
13452 Rxvt version: $VERSION : $DATE 14548 Rxvt version: $VERSION : $DATE
13453 Source code location: $srcdir 14549 Source code location: $srcdir
13454 Install path: ${prefix}/bin 14550 Install path: ${prefix}/bin
13455 Compiler: $CXX 14551 Compiler: $CXX
13456 Compiler flags: $CFLAGS 14552 Compiler flags: $CXXFLAGS
13457 Linker: $LINKER" 14553 Linker: $LINKER"
13458
13459if test "$MALLOC_TYPE" = S; then
13460 echo " malloc support: system default"
13461fi
13462if test "$MALLOC_TYPE" = G; then
13463 echo " malloc support: Gray Watson's dmalloc"
13464fi
13465if test "$MALLOC_TYPE" = D; then
13466 echo " malloc support: Doug Lea's malloc"
13467fi
13468 14554
13469if test x$support_xpm = xyes; then 14555if test x$support_xpm = xyes; then
13470 echo " Xpm library: $XPM_LIBS" 14556 echo " Xpm library: $XPM_LIBS"
13471fi 14557fi
13472 14558
13473echo " 14559if test x$support_afterimage = xyes; then
13474The following are set in config.h 14560 echo " AfterImage support: yes"
13475" 14561fi
13476echo " pty/tty type: "$rxvt_cv_ptys 14562
13477if test x$support_utmp != xyes; then 14563if test x$support_afterstep = xyes; then
13478 echo " utmp support: disabled" 14564 echo " AfterStep integration: yes"
13479 echo
13480else
13481 echo " utmp support: enabled
13482 utmp file: $rxvt_cv_path_utmp
13483 utmpx file: $rxvt_cv_path_utmpx
13484 wtmp file: $rxvt_cv_path_wtmp
13485 wtmpx file: $rxvt_cv_path_wtmpx
13486 lastlog file: $rxvt_cv_path_lastlog
13487 ttys/ttytab file: $rxvt_cv_path_ttytab"
13488 echo
13489fi 14565fi
14566
13490if test x$term != x; then 14567if test x$term != x; then
13491 echo " set TERM to: $term" 14568 echo " set TERM to: $term"
13492fi 14569fi
13493if test x$terminfo != x; then 14570if test x$terminfo != x; then
13494 echo " set TERMINFO to: $terminfo" 14571 echo " set TERMINFO to: $terminfo"
13497echo " resource class: $RESCLASS" 14574echo " resource class: $RESCLASS"
13498if test x$RESFALLBACK != x; then 14575if test x$RESFALLBACK != x; then
13499 echo " resource class fallback: $RESFALLBACK" 14576 echo " resource class fallback: $RESFALLBACK"
13500fi 14577fi
13501echo 14578echo
13502if test x$rxvt_cv_ptys = xUNKNOWN; then 14579echo " embedded perl: $support_perl"
13503 echo ".----------------------------------------------------------------." 14580echo
13504 echo ". WARNING: could not determine pty/tty type. Do not build until ."
13505 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
13506 echo ".----------------------------------------------------------------."
13507fi
13508if test x$support_xpm = xneedsmanualspecification; then 14581if test x$support_xpm = xneedsmanualspecification; then
13509 echo ".----------------------------------------------------------------." 14582 echo ".----------------------------------------------------------------."
13510 echo ". WARNING: --enable-xpm-background was specified however the ." 14583 echo ". WARNING: --enable-xpm-background was specified however the ."
13511 echo ". XPM includes files and libraries could not be found. ." 14584 echo ". XPM includes files and libraries could not be found. ."
13512 echo ". XPM backgrounds are now being DISABLED! If you want ." 14585 echo ". XPM backgrounds are now being DISABLED! If you want ."
13521 echo ". functions could not be found. ." 14594 echo ". functions could not be found. ."
13522 echo ". XIM is now being DISABLED! ." 14595 echo ". XIM is now being DISABLED! ."
13523 echo ".----------------------------------------------------------------." 14596 echo ".----------------------------------------------------------------."
13524fi 14597fi
13525 14598
13526echo " *** Optionally check src/feature.h for further options ***" 14599echo "*** Optionally check src/feature.h for further, rarely used options ***"
13527echo 14600echo
13528 14601
13529echo ".----------------------------------------------------------------."
13530echo ". NOTE: some features are disabled by default, try ."
13531echo ". configure --help to get an idea of the optional features, ."
13532echo ". or read ./README.configure ."
13533echo ". ."
13534echo ". The script ./reconf gives a reasonable baseline, try it if ."
13535echo ". you do not want to read documentation and still want some ."
13536echo ". useful features. ."
13537echo ".----------------------------------------------------------------."
13538echo
13539

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines