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

Comparing rxvt-unicode/configure (file contents):
Revision 1.79 by root, Wed Jan 18 15:04:24 2006 UTC vs.
Revision 1.107 by ayin, Thu Jun 28 17:20:24 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 LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP 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 PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O 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 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='' 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
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-rxvt-scroll enable rxvt style scrollbar 881 --enable-rxvt-scroll enable rxvt style scrollbar
883 --enable-next-scroll enable NeXT style scrollbar 882 --enable-next-scroll enable NeXT style scrollbar
884 --enable-xterm-scroll enable Xterm style scrollbar 883 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter 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-xim XIM (X Input Method) protocol support 886 --enable-xim XIM (X Input Method) protocol support
888 --enable-ttygid enable tty setting to group named "tty"
889 --disable-backspace-key disable handling of the backspace key 887 --disable-backspace-key disable handling of the backspace key
890 --disable-delete-key disable handling of the delete key 888 --disable-delete-key disable handling of the delete key
891 --disable-resources disable all resource checking 889 --disable-resources disable all resource checking
892 --enable-8bitctrls enable 8 bit control sequences (not recommended) 890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
893 --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)
894 --disable-swapscreen disable swap screen support 892 --disable-swapscreen disable swap screen support
895 --enable-iso14755 enable support for extended ISO 14755 modes 893 --enable-iso14755 enable support for extended ISO 14755 modes
896 --enable-frills enable support for rarely used features 894 --enable-frills enable support for rarely used features
897 --enable-24bit enable support for using 24bit visuals if available
898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
899 --enable-selectionscrolling enable scrolling during selections 896 --enable-selectionscrolling enable scrolling during selections
900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
901 --enable-slipwheeling enable slip wheel scrolling (requires previous) 898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
903 --enable-dlmalloc enable Doug Lea's malloc - for production use
904 NOTE: enable only one malloc package
905 --enable-smart-resize enable smart growth/shrink behaviour 899 --enable-smart-resize enable smart growth/shrink behaviour
906 --enable-text-blink enable blinking text 900 --enable-text-blink enable blinking text
907 --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)
908 905
909Optional Packages: 906Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --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
912 --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)
913 --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)
914 --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)
915 --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)
916 --with-term=NAME set the terminal to NAME (default: rxvt) 914 --with-term=NAME set the terminal to NAME (default: rxvt)
1021 echo 1019 echo
1022 $ac_configure --help 1020 $ac_configure --help
1023 else 1021 else
1024 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
1025 fi 1023 fi
1026 cd "$ac_popdir" 1024 cd $ac_popdir
1027 done 1025 done
1028fi 1026fi
1029 1027
1030test -n "$ac_init_help" && exit 0 1028test -n "$ac_init_help" && exit 0
1031if $ac_init_version; then 1029if $ac_init_version; then
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); }; } &&
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
3055 3063
3056ac_ext=c
3057ac_cpp='$CPP $CPPFLAGS'
3058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061
3062
3063if test -z "$orig_CXXFLAGS"; then
3064 if test x$GCC = xyes && test "x$GXX" = xyes; then
3065 CXXFLAGS="-g -O3"
3066 else
3067 CXXFLAGS="-O"
3068 fi
3069 CFLAGS="$CXXFLAGS"
3070fi
3071
3072LINKER="$CXX"
3073if test x$GCC = xyes && test x$GXX = xyes; then
3074
3075echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3076echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3077if test "${ac_cv_lib_supcpp_main+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080 ac_check_lib_save_LIBS=$LIBS
3081LIBS="-lsupc++ $LIBS"
3082cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h. */
3088
3089
3090int
3091main ()
3092{
3093main ();
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098rm -f conftest.$ac_objext conftest$ac_exeext
3099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3100 (eval $ac_link) 2>conftest.er1
3101 ac_status=$?
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest$ac_exeext'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115 (eval $ac_try) 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; }; then
3119 ac_cv_lib_supcpp_main=yes
3120else
3121 echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124ac_cv_lib_supcpp_main=no
3125fi
3126rm -f conftest.err conftest.$ac_objext \
3127 conftest$ac_exeext conftest.$ac_ext
3128LIBS=$ac_check_lib_save_LIBS
3129fi
3130echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3131echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3132if test $ac_cv_lib_supcpp_main = yes; then
3133
3134 LINKER="$CC"
3135 LIBS="$LIBS -lsupc++"
3136
3137fi
3138
3139fi
3140LINKER=$LINKER
3141
3142
3143
3144cat >>confdefs.h <<\_ACEOF
3145#define _GNU_SOURCE 1
3146_ACEOF
3147
3148
3149case $host in
3150 *-*-solaris* )
3151
3152cat >>confdefs.h <<\_ACEOF
3153#define _XOPEN_SOURCE_EXTENDED 1
3154_ACEOF
3155
3156
3157cat >>confdefs.h <<\_ACEOF
3158#define _XOPEN_SOURCE 2
3159_ACEOF
3160
3161
3162cat >>confdefs.h <<\_ACEOF
3163#define __EXTENSIONS__ 1
3164_ACEOF
3165
3166 ;;
3167esac
3168
3169
3170ac_ext=cc
3171ac_cpp='$CXXCPP $CPPFLAGS'
3172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3175
3176
3177
3178ac_ext=cc
3179ac_cpp='$CXXCPP $CPPFLAGS'
3180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3183echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3184echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3185if test -z "$CXXCPP"; then
3186 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189 # Double quotes because CXXCPP needs to be expanded
3190 for CXXCPP in "$CXX -E" "/lib/cpp"
3191 do
3192 ac_preproc_ok=false
3193for ac_cxx_preproc_warn_flag in '' yes
3194do
3195 # Use a header file that comes with gcc, so configuring glibc
3196 # with a fresh cross-compiler works.
3197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198 # <limits.h> exists even on freestanding compilers.
3199 # On the NeXT, cc -E runs the code through the compiler's parser,
3200 # not just through cpp. "Syntax error" is here to catch this case.
3201 cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207#ifdef __STDC__
3208# include <limits.h>
3209#else
3210# include <assert.h>
3211#endif
3212 Syntax error
3213_ACEOF
3214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3216 ac_status=$?
3217 grep -v '^ *+' conftest.er1 >conftest.err
3218 rm -f conftest.er1
3219 cat conftest.err >&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } >/dev/null; then
3222 if test -s conftest.err; then
3223 ac_cpp_err=$ac_cxx_preproc_warn_flag
3224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3225 else
3226 ac_cpp_err=
3227 fi
3228else
3229 ac_cpp_err=yes
3230fi
3231if test -z "$ac_cpp_err"; then
3232 :
3233else
3234 echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237 # Broken: fails on valid input.
3238continue
3239fi
3240rm -f conftest.err conftest.$ac_ext
3241
3242 # OK, works on sane cases. Now check whether non-existent headers
3243 # can be detected and how.
3244 cat >conftest.$ac_ext <<_ACEOF
3245/* confdefs.h. */
3246_ACEOF
3247cat confdefs.h >>conftest.$ac_ext
3248cat >>conftest.$ac_ext <<_ACEOF
3249/* end confdefs.h. */
3250#include <ac_nonexistent.h>
3251_ACEOF
3252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3254 ac_status=$?
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } >/dev/null; then
3260 if test -s conftest.err; then
3261 ac_cpp_err=$ac_cxx_preproc_warn_flag
3262 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3263 else
3264 ac_cpp_err=
3265 fi
3266else
3267 ac_cpp_err=yes
3268fi
3269if test -z "$ac_cpp_err"; then
3270 # Broken: success on invalid input.
3271continue
3272else
3273 echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 # Passes both tests.
3277ac_preproc_ok=:
3278break
3279fi
3280rm -f conftest.err conftest.$ac_ext
3281
3282done
3283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3284rm -f conftest.err conftest.$ac_ext
3285if $ac_preproc_ok; then
3286 break
3287fi
3288
3289 done
3290 ac_cv_prog_CXXCPP=$CXXCPP
3291
3292fi
3293 CXXCPP=$ac_cv_prog_CXXCPP
3294else
3295 ac_cv_prog_CXXCPP=$CXXCPP
3296fi
3297echo "$as_me:$LINENO: result: $CXXCPP" >&5
3298echo "${ECHO_T}$CXXCPP" >&6
3299ac_preproc_ok=false
3300for ac_cxx_preproc_warn_flag in '' yes
3301do
3302 # Use a header file that comes with gcc, so configuring glibc
3303 # with a fresh cross-compiler works.
3304 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305 # <limits.h> exists even on freestanding compilers.
3306 # On the NeXT, cc -E runs the code through the compiler's parser,
3307 # not just through cpp. "Syntax error" is here to catch this case.
3308 cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3314#ifdef __STDC__
3315# include <limits.h>
3316#else
3317# include <assert.h>
3318#endif
3319 Syntax error
3320_ACEOF
3321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } >/dev/null; then
3329 if test -s conftest.err; then
3330 ac_cpp_err=$ac_cxx_preproc_warn_flag
3331 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3332 else
3333 ac_cpp_err=
3334 fi
3335else
3336 ac_cpp_err=yes
3337fi
3338if test -z "$ac_cpp_err"; then
3339 :
3340else
3341 echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 # Broken: fails on valid input.
3345continue
3346fi
3347rm -f conftest.err conftest.$ac_ext
3348
3349 # OK, works on sane cases. Now check whether non-existent headers
3350 # can be detected and how.
3351 cat >conftest.$ac_ext <<_ACEOF
3352/* confdefs.h. */
3353_ACEOF
3354cat confdefs.h >>conftest.$ac_ext
3355cat >>conftest.$ac_ext <<_ACEOF
3356/* end confdefs.h. */
3357#include <ac_nonexistent.h>
3358_ACEOF
3359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_cxx_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3370 else
3371 ac_cpp_err=
3372 fi
3373else
3374 ac_cpp_err=yes
3375fi
3376if test -z "$ac_cpp_err"; then
3377 # Broken: success on invalid input.
3378continue
3379else
3380 echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 # Passes both tests.
3384ac_preproc_ok=:
3385break
3386fi
3387rm -f conftest.err conftest.$ac_ext
3388
3389done
3390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391rm -f conftest.err conftest.$ac_ext
3392if $ac_preproc_ok; then
3393 :
3394else
3395 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3396See \`config.log' for more details." >&5
3397echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3398See \`config.log' for more details." >&2;}
3399 { (exit 1); exit 1; }; }
3400fi
3401
3402ac_ext=cc
3403ac_cpp='$CXXCPP $CPPFLAGS'
3404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3407 3064
3408 3065
3409echo "$as_me:$LINENO: checking for egrep" >&5 3066echo "$as_me:$LINENO: checking for egrep" >&5
3410echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3411if test "${ac_cv_prog_egrep+set}" = set; then 3068if test "${ac_cv_prog_egrep+set}" = set; then
3486 grep -v '^ *+' conftest.er1 >conftest.err 3143 grep -v '^ *+' conftest.er1 >conftest.err
3487 rm -f conftest.er1 3144 rm -f conftest.er1
3488 cat conftest.err >&5 3145 cat conftest.err >&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } && 3147 (exit $ac_status); } &&
3491 { 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'
3492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 (eval $ac_try) 2>&5 3151 (eval $ac_try) 2>&5
3494 ac_status=$? 3152 ac_status=$?
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; } && 3154 (exit $ac_status); }; } &&
3540 grep -v '^ *+' conftest.er1 >conftest.err 3198 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1 3199 rm -f conftest.er1
3542 cat conftest.err >&5 3200 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } && 3202 (exit $ac_status); } &&
3545 { 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'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5 3206 (eval $ac_try) 2>&5
3548 ac_status=$? 3207 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } && 3209 (exit $ac_status); }; } &&
3571echo "${ECHO_T}$ac_cv_search_strerror" >&6 3230echo "${ECHO_T}$ac_cv_search_strerror" >&6
3572if test "$ac_cv_search_strerror" != no; then 3231if test "$ac_cv_search_strerror" != no; then
3573 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"
3574 3233
3575fi 3234fi
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
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 echo "$as_me:$LINENO: result: ok" >&5
3290echo "${ECHO_T}ok" >&6
3291else
3292 echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295
3296 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3297echo "${ECHO_T}no, making everything bigger and slower" >&6
3298 LIBS="$save_LIBS"
3299 LINKER="$save_CXX"
3300
3301
3302fi
3303rm -f conftest.err conftest.$ac_objext \
3304 conftest$ac_exeext conftest.$ac_ext
3305 CXX="$save_CXX"
3306fi
3307LINKER=$LINKER
3308
3309
3310if test -z "$orig_CXXFLAGS"; then
3311 if test x$GCC = xyes && test "x$GXX" = xyes; then
3312 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3313 cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319
3320int
3321main ()
3322{
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328rm -f conftest.$ac_objext
3329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_cxx_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 :
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355CXXFLAGS="-g -O3"
3356fi
3357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358 else
3359 CXXFLAGS="-O"
3360 fi
3361 CFLAGS="$CXXFLAGS"
3362fi
3363
3364
3365cat >>confdefs.h <<\_ACEOF
3366#define _GNU_SOURCE 1
3367_ACEOF
3368
3369
3370case $host in
3371 *-*-solaris* )
3372
3373cat >>confdefs.h <<\_ACEOF
3374#define _XOPEN_SOURCE 500
3375_ACEOF
3376
3377 ;;
3378esac
3576 3379
3577 3380
3578echo "$as_me:$LINENO: checking for setlocale" >&5 3381echo "$as_me:$LINENO: checking for setlocale" >&5
3579echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 3382echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3580if test "${ac_cv_func_setlocale+set}" = set; then 3383if test "${ac_cv_func_setlocale+set}" = set; then
3638 grep -v '^ *+' conftest.er1 >conftest.err 3441 grep -v '^ *+' conftest.er1 >conftest.err
3639 rm -f conftest.er1 3442 rm -f conftest.er1
3640 cat conftest.err >&5 3443 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && 3445 (exit $ac_status); } &&
3643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3446 { ac_try='test -z "$ac_cxx_werror_flag"
3447 || test ! -s conftest.err'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645 (eval $ac_try) 2>&5 3449 (eval $ac_try) 2>&5
3646 ac_status=$? 3450 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; } && 3452 (exit $ac_status); }; } &&
3703 grep -v '^ *+' conftest.er1 >conftest.err 3507 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1 3508 rm -f conftest.er1
3705 cat conftest.err >&5 3509 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && 3511 (exit $ac_status); } &&
3708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3512 { ac_try='test -z "$ac_cxx_werror_flag"
3513 || test ! -s conftest.err'
3709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5 3515 (eval $ac_try) 2>&5
3711 ac_status=$? 3516 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; } && 3518 (exit $ac_status); }; } &&
3800 grep -v '^ *+' conftest.er1 >conftest.err 3605 grep -v '^ *+' conftest.er1 >conftest.err
3801 rm -f conftest.er1 3606 rm -f conftest.er1
3802 cat conftest.err >&5 3607 cat conftest.err >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } && 3609 (exit $ac_status); } &&
3805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3610 { ac_try='test -z "$ac_cxx_werror_flag"
3611 || test ! -s conftest.err'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5 3613 (eval $ac_try) 2>&5
3808 ac_status=$? 3614 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; } && 3616 (exit $ac_status); }; } &&
3865 grep -v '^ *+' conftest.er1 >conftest.err 3671 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1 3672 rm -f conftest.er1
3867 cat conftest.err >&5 3673 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && 3675 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3676 { ac_try='test -z "$ac_cxx_werror_flag"
3677 || test ! -s conftest.err'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872 (eval $ac_try) 2>&5 3679 (eval $ac_try) 2>&5
3873 ac_status=$? 3680 ac_status=$?
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; } && 3682 (exit $ac_status); }; } &&
3961 grep -v '^ *+' conftest.er1 >conftest.err 3768 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1 3769 rm -f conftest.er1
3963 cat conftest.err >&5 3770 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && 3772 (exit $ac_status); } &&
3966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3773 { ac_try='test -z "$ac_cxx_werror_flag"
3774 || test ! -s conftest.err'
3967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 (eval $ac_try) 2>&5 3776 (eval $ac_try) 2>&5
3969 ac_status=$? 3777 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }; } && 3779 (exit $ac_status); }; } &&
4026 grep -v '^ *+' conftest.er1 >conftest.err 3834 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1 3835 rm -f conftest.er1
4028 cat conftest.err >&5 3836 cat conftest.err >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && 3838 (exit $ac_status); } &&
4031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3839 { ac_try='test -z "$ac_cxx_werror_flag"
3840 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5 3842 (eval $ac_try) 2>&5
4034 ac_status=$? 3843 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } && 3845 (exit $ac_status); }; } &&
4058fi 3867fi
4059 3868
4060fi 3869fi
4061 3870
4062 3871
4063echo "$as_me:$LINENO: checking for sched_yield" >&5
4064echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4065if test "${ac_cv_func_sched_yield+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
4074/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4076#define sched_yield innocuous_sched_yield
4077
4078/* System header to define __stub macros and hopefully few prototypes,
4079 which can conflict with char sched_yield (); below.
4080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4081 <limits.h> exists even on freestanding compilers. */
4082
4083#ifdef __STDC__
4084# include <limits.h>
4085#else
4086# include <assert.h>
4087#endif
4088
4089#undef sched_yield
4090
4091/* Override any gcc2 internal prototype to avoid an error. */
4092#ifdef __cplusplus
4093extern "C"
4094{
4095#endif
4096/* We use char because int might match the return type of a gcc2
4097 builtin and then its argument prototype would still apply. */
4098char sched_yield ();
4099/* The GNU C library defines this for functions which it implements
4100 to always fail with ENOSYS. Some functions are actually named
4101 something starting with __ and the normal name is an alias. */
4102#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4103choke me
4104#else
4105char (*f) () = sched_yield;
4106#endif
4107#ifdef __cplusplus
4108}
4109#endif
4110
4111int
4112main ()
4113{
4114return f != sched_yield;
4115 ;
4116 return 0;
4117}
4118_ACEOF
4119rm -f conftest.$ac_objext conftest$ac_exeext
4120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4121 (eval $ac_link) 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4130 (eval $ac_try) 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest$ac_exeext'
4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 (eval $ac_try) 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; }; then
4140 ac_cv_func_sched_yield=yes
4141else
4142 echo "$as_me: failed program was:" >&5
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
4145ac_cv_func_sched_yield=no
4146fi
4147rm -f conftest.err conftest.$ac_objext \
4148 conftest$ac_exeext conftest.$ac_ext
4149fi
4150echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4151echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4152if test $ac_cv_func_sched_yield = yes; then
4153 :
4154else
4155 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4156echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4157if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159else
4160 ac_check_lib_save_LIBS=$LIBS
4161LIBS="-lrt $LIBS"
4162cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h. */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h. */
4168
4169/* Override any gcc2 internal prototype to avoid an error. */
4170#ifdef __cplusplus
4171extern "C"
4172#endif
4173/* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */
4175char sched_yield ();
4176int
4177main ()
4178{
4179sched_yield ();
4180 ;
4181 return 0;
4182}
4183_ACEOF
4184rm -f conftest.$ac_objext conftest$ac_exeext
4185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4186 (eval $ac_link) 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } &&
4193 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 (eval $ac_try) 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; } &&
4199 { ac_try='test -s conftest$ac_exeext'
4200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 (eval $ac_try) 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
4205 ac_cv_lib_rt_sched_yield=yes
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210ac_cv_lib_rt_sched_yield=no
4211fi
4212rm -f conftest.err conftest.$ac_objext \
4213 conftest$ac_exeext conftest.$ac_ext
4214LIBS=$ac_check_lib_save_LIBS
4215fi
4216echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4217echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4218if test $ac_cv_lib_rt_sched_yield = yes; then
4219 LIBS="$LIBS -lrt"
4220fi
4221
4222fi
4223
4224
4225echo "$as_me:$LINENO: checking for sched_yield support" >&5
4226echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4227cat >conftest.$ac_ext <<_ACEOF
4228/* confdefs.h. */
4229_ACEOF
4230cat confdefs.h >>conftest.$ac_ext
4231cat >>conftest.$ac_ext <<_ACEOF
4232/* end confdefs.h. */
4233#include <sched.h>
4234int
4235main ()
4236{
4237sched_yield ()
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext conftest$ac_exeext
4243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; } &&
4257 { ac_try='test -s conftest$ac_exeext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 (eval $ac_try) 2>&5
4260 ac_status=$?
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
4265
4266cat >>confdefs.h <<\_ACEOF
4267#define HAVE_SCHED_YIELD 1
4268_ACEOF
4269
4270else
4271 echo "$as_me: failed program was:" >&5
4272sed 's/^/| /' conftest.$ac_ext >&5
4273
4274echo "$as_me:$LINENO: result: no" >&5
4275echo "${ECHO_T}no" >&6
4276fi
4277rm -f conftest.err conftest.$ac_objext \
4278 conftest$ac_exeext conftest.$ac_ext
4279
4280
4281MALLOC_TYPE=S
4282 3872
4283support_frills=yes 3873support_frills=yes
4284support_inheritpixmap=yes 3874support_inheritpixmap=yes
4285support_tinting=yes 3875support_tinting=yes
4286support_fading=yes 3876support_fading=yes
4287support_keepscrolling=yes 3877support_keepscrolling=yes
4288support_selectionscrolling=yes 3878support_selectionscrolling=yes
4289support_mousewheel=yes 3879support_mousewheel=yes
4290support_mouseslipwheel=yes 3880support_mouseslipwheel=yes
4291support_utmp=yes
4292support_wtmp=yes
4293support_lastlog=yes
4294support_text_blink=yes 3881support_text_blink=yes
4295support_pointer_blank=yes 3882support_pointer_blank=yes
4296support_scroll_rxvt=yes 3883support_scroll_rxvt=yes
4297support_scroll_next=yes 3884support_scroll_next=yes
4298support_scroll_xterm=yes 3885support_scroll_xterm=yes
4299support_scroll_plain=yes 3886support_scroll_plain=yes
4300support_xim=yes 3887support_xim=yes
4301support_xpm=yes 3888support_xpm=yes
3889support_afterimage=yes
3890support_afterstep=yes
4302support_xft=yes 3891support_xft=yes
4303support_unicode3=no 3892support_unicode3=no
4304support_combining=yes 3893support_combining=yes
4305support_8bitctrls=no 3894support_8bitctrls=no
4306support_iso14755=yes 3895support_iso14755=yes
4322# Check whether --enable-everything or --disable-everything was given. 3911# Check whether --enable-everything or --disable-everything was given.
4323if test "${enable_everything+set}" = set; then 3912if test "${enable_everything+set}" = set; then
4324 enableval="$enable_everything" 3913 enableval="$enable_everything"
4325 3914
4326 if test x$enableval = xno; then 3915 if test x$enableval = xno; then
4327 support_24bit=no
4328 support_frills=no 3916 support_frills=no
4329 support_inheritpixmap=no 3917 support_inheritpixmap=no
4330 support_tinting=no 3918 support_tinting=no
4331 support_fading=no 3919 support_fading=no
4332 support_keepscrolling=no 3920 support_keepscrolling=no
4342 support_scroll_plain=no 3930 support_scroll_plain=no
4343 support_utmp=no 3931 support_utmp=no
4344 support_wtmp=no 3932 support_wtmp=no
4345 support_xim=no 3933 support_xim=no
4346 support_xpm=no 3934 support_xpm=no
3935 support_afterimage=no
3936 support_afterstep=no
4347 support_xft=no 3937 support_xft=no
4348 support_unicode3=no 3938 support_unicode3=no
4349 support_combining=no 3939 support_combining=no
4350 support_8bitctrls=no 3940 support_8bitctrls=no
4351 support_iso14755=no 3941 support_iso14755=no
4352 support_styles=no 3942 support_styles=no
4353 support_perl=no 3943 support_perl=no
4354 codesets= 3944 codesets=
4355 fi 3945 fi
4356 if test x$enableval = xyes; then 3946 if test x$enableval = xyes; then
4357 support_24bit=yes
4358 support_frills=yes 3947 support_frills=yes
4359 support_inheritpixmap=yes 3948 support_inheritpixmap=yes
4360 support_tinting=yes 3949 support_tinting=yes
4361 support_fading=yes 3950 support_fading=yes
4362 support_keepscrolling=yes 3951 support_keepscrolling=yes
4372 support_scroll_plain=yes 3961 support_scroll_plain=yes
4373 support_utmp=yes 3962 support_utmp=yes
4374 support_wtmp=yes 3963 support_wtmp=yes
4375 support_xim=yes 3964 support_xim=yes
4376 support_xpm=yes 3965 support_xpm=yes
3966 support_afterimage=yes
3967 support_afterstep=yes
4377 support_xft=yes 3968 support_xft=yes
4378 support_unicode3=yes 3969 support_unicode3=yes
4379 support_combining=yes 3970 support_combining=yes
4380 #support_8bitctrls=yes 3971 #support_8bitctrls=yes
4381 support_iso14755=yes 3972 support_iso14755=yes
4416 if test x$enableval = xyes -o x$enableval = xno; then 4007 if test x$enableval = xyes -o x$enableval = xno; then
4417 support_styles=$enableval 4008 support_styles=$enableval
4418 fi 4009 fi
4419fi; 4010fi;
4420 4011
4421# Check whether --enable-utmp or --disable-utmp was given.
4422if test "${enable_utmp+set}" = set; then
4423 enableval="$enable_utmp"
4424 if test x$enableval = xyes -o x$enableval = xno; then
4425 support_utmp=$enableval
4426 fi
4427fi;
4428
4429# Check whether --enable-wtmp or --disable-wtmp was given.
4430if test "${enable_wtmp+set}" = set; then
4431 enableval="$enable_wtmp"
4432 if test x$enableval = xyes -o x$enableval = xno; then
4433 support_wtmp=$enableval
4434 fi
4435fi;
4436
4437# Check whether --enable-lastlog or --disable-lastlog was given.
4438if test "${enable_lastlog+set}" = set; then
4439 enableval="$enable_lastlog"
4440 if test x$enableval = xyes -o x$enableval = xno; then
4441 support_lastlog=$enableval
4442 fi
4443fi;
4444
4445# Check whether --enable-xpm-background or --disable-xpm-background was given. 4012# Check whether --enable-xpm-background or --disable-xpm-background was given.
4446if test "${enable_xpm_background+set}" = set; then 4013if test "${enable_xpm_background+set}" = set; then
4447 enableval="$enable_xpm_background" 4014 enableval="$enable_xpm_background"
4448 if test x$enableval = xyes -o x$enableval = xno; then 4015 if test x$enableval = xyes -o x$enableval = xno; then
4449 support_xpm=$enableval 4016 support_xpm=$enableval
4450 fi 4017 fi
4451fi; 4018fi;
4452 4019
4020# Check whether --enable-afterimage or --disable-afterimage was given.
4021if test "${enable_afterimage+set}" = set; then
4022 enableval="$enable_afterimage"
4023 if test x$enableval = xyes -o x$enableval = xno; then
4024 support_afterimage=$enableval
4025 fi
4026fi;
4027
4028
4029# Check whether --with-afterimage_config or --without-afterimage_config was given.
4030if test "${with_afterimage_config+set}" = set; then
4031 withval="$with_afterimage_config"
4032 if test "x$withval" != x; then
4033 afterimage_config=$withval/afterimage-config
4034 fi
4035fi;
4036
4037# Check whether --enable-afterstep or --disable-afterstep was given.
4038if test "${enable_afterstep+set}" = set; then
4039 enableval="$enable_afterstep"
4040 if test x$enableval = xyes -o x$enableval = xno; then
4041 support_afterstep=$enableval
4042 fi
4043fi;
4044
4453# Check whether --enable-transparency or --disable-transparency was given. 4045# Check whether --enable-transparency or --disable-transparency was given.
4454if test "${enable_transparency+set}" = set; then 4046if test "${enable_transparency+set}" = set; then
4455 enableval="$enable_transparency" 4047 enableval="$enable_transparency"
4456 if test x$enableval = xyes -o x$enableval = xno; then 4048 if test x$enableval = xyes -o x$enableval = xno; then
4457 support_inheritpixmap=$enableval 4049 support_inheritpixmap=$enableval
4513 support_scroll_plain=$enableval 4105 support_scroll_plain=$enableval
4514 fi 4106 fi
4515fi; 4107fi;
4516 4108
4517 4109
4518
4519# Check whether --with-codesets or --without-codesets was given. 4110# Check whether --with-codesets or --without-codesets was given.
4520if test "${with_codesets+set}" = set; then 4111if test "${with_codesets+set}" = set; then
4521 withval="$with_codesets" 4112 withval="$with_codesets"
4522 codesets="$withval" 4113 codesets="$withval"
4523fi; 4114fi;
4528 if test x$enableval = xyes -o x$enableval = xno; then 4119 if test x$enableval = xyes -o x$enableval = xno; then
4529 support_xim=$enableval 4120 support_xim=$enableval
4530 fi 4121 fi
4531fi; 4122fi;
4532 4123
4533# Check whether --enable-ttygid or --disable-ttygid was given.
4534if test "${enable_ttygid+set}" = set; then
4535 enableval="$enable_ttygid"
4536 if test x$enableval = xyes; then
4537
4538cat >>confdefs.h <<\_ACEOF
4539#define TTY_GID_SUPPORT 1
4540_ACEOF
4541
4542 fi
4543fi;
4544
4545# Check whether --enable-backspace-key or --disable-backspace-key was given. 4124# Check whether --enable-backspace-key or --disable-backspace-key was given.
4546if test "${enable_backspace_key+set}" = set; then 4125if test "${enable_backspace_key+set}" = set; then
4547 enableval="$enable_backspace_key" 4126 enableval="$enable_backspace_key"
4548 if test x$enableval = xno; then 4127 if test x$enableval = xno; then
4549 4128
4673 if test x$enableval = xyes -o x$enableval = xno; then 4252 if test x$enableval = xyes -o x$enableval = xno; then
4674 support_frills=$enableval 4253 support_frills=$enableval
4675 fi 4254 fi
4676fi; 4255fi;
4677 4256
4678# Check whether --enable-24bit or --disable-24bit was given.
4679if test "${enable_24bit+set}" = set; then
4680 enableval="$enable_24bit"
4681 if test x$enableval = xyes -o x$enableval = xno; then
4682 support_24bit=$enableval
4683 fi
4684fi;
4685
4686# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4257# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4687if test "${enable_keepscrolling+set}" = set; then 4258if test "${enable_keepscrolling+set}" = set; then
4688 enableval="$enable_keepscrolling" 4259 enableval="$enable_keepscrolling"
4689 if test x$enableval = xyes -o x$enableval = xno; then 4260 if test x$enableval = xyes -o x$enableval = xno; then
4690 support_keepscrolling=$enableval 4261 support_keepscrolling=$enableval
4713 if test x$enableval = xyes -o x$enableval = xno; then 4284 if test x$enableval = xyes -o x$enableval = xno; then
4714 support_mouseslipwheel=$enableval 4285 support_mouseslipwheel=$enableval
4715 fi 4286 fi
4716fi; 4287fi;
4717 4288
4718# Check whether --enable-dmalloc or --disable-dmalloc was given.
4719if test "${enable_dmalloc+set}" = set; then
4720 enableval="$enable_dmalloc"
4721 if test x$enableval = xyes; then
4722 MALLOC_TYPE=G
4723 DEBUG=-DDEBUG_MALLOC
4724 DLIB="-L/usr/local/lib -ldmalloc"
4725 DINCLUDE=-I/usr/local/include
4726 fi
4727fi;
4728
4729# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4730if test "${enable_dlmalloc+set}" = set; then
4731 enableval="$enable_dlmalloc"
4732 if test x$enableval = xyes; then
4733 MALLOC_TYPE=D
4734 DEBUG=
4735 DLIB="-L/usr/local/lib -ldlmalloc"
4736 DINCLUDE=
4737 fi
4738fi;
4739
4740# Check whether --enable-smart-resize or --disable-smart-resize was given. 4289# Check whether --enable-smart-resize or --disable-smart-resize was given.
4741if test "${enable_smart_resize+set}" = set; then 4290if test "${enable_smart_resize+set}" = set; then
4742 enableval="$enable_smart_resize" 4291 enableval="$enable_smart_resize"
4743 if test x$enableval = xyes; then 4292 if test x$enableval = xyes; then
4744 4293
4789_ACEOF 4338_ACEOF
4790 terminfo="$withval" 4339 terminfo="$withval"
4791 fi 4340 fi
4792fi; 4341fi;
4793 4342
4794
4795# Extract the first word of "mv", so it can be a program name with args.
4796set dummy mv; ac_word=$2
4797echo "$as_me:$LINENO: checking for $ac_word" >&5
4798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4799if test "${ac_cv_path_MV+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801else
4802 case $MV in
4803 [\\/]* | ?:[\\/]*)
4804 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4805 ;;
4806 *)
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818done
4819done
4820
4821 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4822 ;;
4823esac
4824fi
4825MV=$ac_cv_path_MV
4826
4827if test -n "$MV"; then
4828 echo "$as_me:$LINENO: result: $MV" >&5
4829echo "${ECHO_T}$MV" >&6
4830else
4831 echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
4833fi
4834
4835# Extract the first word of "rm", so it can be a program name with args.
4836set dummy rm; ac_word=$2
4837echo "$as_me:$LINENO: checking for $ac_word" >&5
4838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4839if test "${ac_cv_path_RM+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 case $RM in
4843 [\\/]* | ?:[\\/]*)
4844 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4845 ;;
4846 *)
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848for as_dir in $PATH
4849do
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4857 fi
4858done
4859done
4860
4861 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4862 ;;
4863esac
4864fi
4865RM=$ac_cv_path_RM
4866
4867if test -n "$RM"; then
4868 echo "$as_me:$LINENO: result: $RM" >&5
4869echo "${ECHO_T}$RM" >&6
4870else
4871 echo "$as_me:$LINENO: result: no" >&5
4872echo "${ECHO_T}no" >&6
4873fi
4874
4875# Extract the first word of "cp", so it can be a program name with args.
4876set dummy cp; ac_word=$2
4877echo "$as_me:$LINENO: checking for $ac_word" >&5
4878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879if test "${ac_cv_path_CP+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882 case $CP in
4883 [\\/]* | ?:[\\/]*)
4884 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4885 ;;
4886 *)
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH
4889do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898done
4899done
4900
4901 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4902 ;;
4903esac
4904fi
4905CP=$ac_cv_path_CP
4906
4907if test -n "$CP"; then
4908 echo "$as_me:$LINENO: result: $CP" >&5
4909echo "${ECHO_T}$CP" >&6
4910else
4911 echo "$as_me:$LINENO: result: no" >&5
4912echo "${ECHO_T}no" >&6
4913fi
4914
4915# Extract the first word of "ln", so it can be a program name with args.
4916set dummy ln; ac_word=$2
4917echo "$as_me:$LINENO: checking for $ac_word" >&5
4918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4919if test "${ac_cv_path_LN+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922 case $LN in
4923 [\\/]* | ?:[\\/]*)
4924 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4925 ;;
4926 *)
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4937 fi
4938done
4939done
4940
4941 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4942 ;;
4943esac
4944fi
4945LN=$ac_cv_path_LN
4946
4947if test -n "$LN"; then
4948 echo "$as_me:$LINENO: result: $LN" >&5
4949echo "${ECHO_T}$LN" >&6
4950else
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953fi
4954
4955# Extract the first word of "sed", so it can be a program name with args.
4956set dummy sed; ac_word=$2
4957echo "$as_me:$LINENO: checking for $ac_word" >&5
4958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4959if test "${ac_cv_path_SED+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 case $SED in
4963 [\\/]* | ?:[\\/]*)
4964 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4965 ;;
4966 *)
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4977 fi
4978done
4979done
4980
4981 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4982 ;;
4983esac
4984fi
4985SED=$ac_cv_path_SED
4986
4987if test -n "$SED"; then
4988 echo "$as_me:$LINENO: result: $SED" >&5
4989echo "${ECHO_T}$SED" >&6
4990else
4991 echo "$as_me:$LINENO: result: no" >&5
4992echo "${ECHO_T}no" >&6
4993fi
4994
4995# Extract the first word of "echo", so it can be a program name with args.
4996set dummy echo; ac_word=$2
4997echo "$as_me:$LINENO: checking for $ac_word" >&5
4998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4999if test "${ac_cv_path_ECHO+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002 case $ECHO in
5003 [\\/]* | ?:[\\/]*)
5004 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5005 ;;
5006 *)
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018done
5019done
5020
5021 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5022 ;;
5023esac
5024fi
5025ECHO=$ac_cv_path_ECHO
5026
5027if test -n "$ECHO"; then
5028 echo "$as_me:$LINENO: result: $ECHO" >&5
5029echo "${ECHO_T}$ECHO" >&6
5030else
5031 echo "$as_me:$LINENO: result: no" >&5
5032echo "${ECHO_T}no" >&6
5033fi
5034
5035# Extract the first word of "cmp", so it can be a program name with args.
5036set dummy cmp; ac_word=$2
5037echo "$as_me:$LINENO: checking for $ac_word" >&5
5038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5039if test "${ac_cv_path_CMP+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042 case $CMP in
5043 [\\/]* | ?:[\\/]*)
5044 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5045 ;;
5046 *)
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048for as_dir in $PATH
5049do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5054 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 break 2
5057 fi
5058done
5059done
5060
5061 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5062 ;;
5063esac
5064fi
5065CMP=$ac_cv_path_CMP
5066
5067if test -n "$CMP"; then
5068 echo "$as_me:$LINENO: result: $CMP" >&5
5069echo "${ECHO_T}$CMP" >&6
5070else
5071 echo "$as_me:$LINENO: result: no" >&5
5072echo "${ECHO_T}no" >&6
5073fi
5074 4343
5075# Extract the first word of "tic", so it can be a program name with args. 4344# Extract the first word of "tic", so it can be a program name with args.
5076set dummy tic; ac_word=$2 4345set dummy tic; ac_word=$2
5077echo "$as_me:$LINENO: checking for $ac_word" >&5 4346echo "$as_me:$LINENO: checking for $ac_word" >&5
5078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112fi 4381fi
5113 4382
5114 4383
5115 4384
5116 4385
4386ac_ext=cc
4387ac_cpp='$CXXCPP $CPPFLAGS'
4388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4392echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4393if test -z "$CXXCPP"; then
4394 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 # Double quotes because CXXCPP needs to be expanded
4398 for CXXCPP in "$CXX -E" "/lib/cpp"
4399 do
4400 ac_preproc_ok=false
4401for ac_cxx_preproc_warn_flag in '' yes
4402do
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415#ifdef __STDC__
4416# include <limits.h>
4417#else
4418# include <assert.h>
4419#endif
4420 Syntax error
4421_ACEOF
4422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } >/dev/null; then
4430 if test -s conftest.err; then
4431 ac_cpp_err=$ac_cxx_preproc_warn_flag
4432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4433 else
4434 ac_cpp_err=
4435 fi
4436else
4437 ac_cpp_err=yes
4438fi
4439if test -z "$ac_cpp_err"; then
4440 :
4441else
4442 echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
5117 4444
5118if test "x$ac_path_x_has_been_run" != xyes; then 4445 # Broken: fails on valid input.
4446continue
4447fi
4448rm -f conftest.err conftest.$ac_ext
4449
4450 # OK, works on sane cases. Now check whether non-existent headers
4451 # can be detected and how.
4452 cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h. */
4458#include <ac_nonexistent.h>
4459_ACEOF
4460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_cxx_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4471 else
4472 ac_cpp_err=
4473 fi
4474else
4475 ac_cpp_err=yes
4476fi
4477if test -z "$ac_cpp_err"; then
4478 # Broken: success on invalid input.
4479continue
4480else
4481 echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 # Passes both tests.
4485ac_preproc_ok=:
4486break
4487fi
4488rm -f conftest.err conftest.$ac_ext
4489
4490done
4491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492rm -f conftest.err conftest.$ac_ext
4493if $ac_preproc_ok; then
4494 break
4495fi
4496
4497 done
4498 ac_cv_prog_CXXCPP=$CXXCPP
4499
4500fi
4501 CXXCPP=$ac_cv_prog_CXXCPP
4502else
4503 ac_cv_prog_CXXCPP=$CXXCPP
4504fi
4505echo "$as_me:$LINENO: result: $CXXCPP" >&5
4506echo "${ECHO_T}$CXXCPP" >&6
4507ac_preproc_ok=false
4508for ac_cxx_preproc_warn_flag in '' yes
4509do
4510 # Use a header file that comes with gcc, so configuring glibc
4511 # with a fresh cross-compiler works.
4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513 # <limits.h> exists even on freestanding compilers.
4514 # On the NeXT, cc -E runs the code through the compiler's parser,
4515 # not just through cpp. "Syntax error" is here to catch this case.
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522#ifdef __STDC__
4523# include <limits.h>
4524#else
4525# include <assert.h>
4526#endif
4527 Syntax error
4528_ACEOF
4529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } >/dev/null; then
4537 if test -s conftest.err; then
4538 ac_cpp_err=$ac_cxx_preproc_warn_flag
4539 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4540 else
4541 ac_cpp_err=
4542 fi
4543else
4544 ac_cpp_err=yes
4545fi
4546if test -z "$ac_cpp_err"; then
4547 :
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 # Broken: fails on valid input.
4553continue
4554fi
4555rm -f conftest.err conftest.$ac_ext
4556
4557 # OK, works on sane cases. Now check whether non-existent headers
4558 # can be detected and how.
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565#include <ac_nonexistent.h>
4566_ACEOF
4567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } >/dev/null; then
4575 if test -s conftest.err; then
4576 ac_cpp_err=$ac_cxx_preproc_warn_flag
4577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4578 else
4579 ac_cpp_err=
4580 fi
4581else
4582 ac_cpp_err=yes
4583fi
4584if test -z "$ac_cpp_err"; then
4585 # Broken: success on invalid input.
4586continue
4587else
4588 echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591 # Passes both tests.
4592ac_preproc_ok=:
4593break
4594fi
4595rm -f conftest.err conftest.$ac_ext
4596
4597done
4598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599rm -f conftest.err conftest.$ac_ext
4600if $ac_preproc_ok; then
4601 :
4602else
4603 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4604See \`config.log' for more details." >&5
4605echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4606See \`config.log' for more details." >&2;}
4607 { (exit 1); exit 1; }; }
4608fi
4609
4610ac_ext=cc
4611ac_cpp='$CXXCPP $CPPFLAGS'
4612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4615
4616
5119 echo "$as_me:$LINENO: checking for X" >&5 4617echo "$as_me:$LINENO: checking for X" >&5
5120echo $ECHO_N "checking for X... $ECHO_C" >&6 4618echo $ECHO_N "checking for X... $ECHO_C" >&6
5121 4619
5122ac_path_x_has_been_run=yes
5123 4620
5124# Check whether --with-x or --without-x was given. 4621# Check whether --with-x or --without-x was given.
5125if test "${with_x+set}" = set; then 4622if test "${with_x+set}" = set; then
5126 withval="$with_x" 4623 withval="$with_x"
5127 4624
5210 4707
5211/usr/openwin/include 4708/usr/openwin/include
5212/usr/openwin/share/include' 4709/usr/openwin/share/include'
5213 4710
5214if test "$ac_x_includes" = no; then 4711if test "$ac_x_includes" = no; then
5215 # Guess where to find include files, by looking for a specified header file. 4712 # Guess where to find include files, by looking for Intrinsic.h.
5216 # First, try using that file with no special directory specified. 4713 # First, try using that file with no special directory specified.
5217 cat >conftest.$ac_ext <<_ACEOF 4714 cat >conftest.$ac_ext <<_ACEOF
5218/* confdefs.h. */ 4715/* confdefs.h. */
5219_ACEOF 4716_ACEOF
5220cat confdefs.h >>conftest.$ac_ext 4717cat confdefs.h >>conftest.$ac_ext
5221cat >>conftest.$ac_ext <<_ACEOF 4718cat >>conftest.$ac_ext <<_ACEOF
5222/* end confdefs.h. */ 4719/* end confdefs.h. */
5223#include <X11/Xlib.h> 4720#include <X11/Intrinsic.h>
5224_ACEOF 4721_ACEOF
5225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5227 ac_status=$? 4724 ac_status=$?
5228 grep -v '^ *+' conftest.er1 >conftest.err 4725 grep -v '^ *+' conftest.er1 >conftest.err
5245else 4742else
5246 echo "$as_me: failed program was:" >&5 4743 echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5 4744sed 's/^/| /' conftest.$ac_ext >&5
5248 4745
5249 for ac_dir in $ac_x_header_dirs; do 4746 for ac_dir in $ac_x_header_dirs; do
5250 if test -r "$ac_dir/X11/Xlib.h"; then 4747 if test -r "$ac_dir/X11/Intrinsic.h"; then
5251 ac_x_includes=$ac_dir 4748 ac_x_includes=$ac_dir
5252 break 4749 break
5253 fi 4750 fi
5254done 4751done
5255fi 4752fi
5259if test "$ac_x_libraries" = no; then 4756if test "$ac_x_libraries" = no; then
5260 # Check for the libraries. 4757 # Check for the libraries.
5261 # See if we find them without any special options. 4758 # See if we find them without any special options.
5262 # Don't add to $LIBS permanently. 4759 # Don't add to $LIBS permanently.
5263 ac_save_LIBS=$LIBS 4760 ac_save_LIBS=$LIBS
5264 LIBS="-lX11 $LIBS" 4761 LIBS="-lXt $LIBS"
5265 cat >conftest.$ac_ext <<_ACEOF 4762 cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h. */ 4763/* confdefs.h. */
5267_ACEOF 4764_ACEOF
5268cat confdefs.h >>conftest.$ac_ext 4765cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF 4766cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h. */ 4767/* end confdefs.h. */
5271#include <X11/Xlib.h> 4768#include <X11/Intrinsic.h>
5272int 4769int
5273main () 4770main ()
5274{ 4771{
5275XrmInitialize () 4772XtMalloc (0)
5276 ; 4773 ;
5277 return 0; 4774 return 0;
5278} 4775}
5279_ACEOF 4776_ACEOF
5280rm -f conftest.$ac_objext conftest$ac_exeext 4777rm -f conftest.$ac_objext conftest$ac_exeext
5284 grep -v '^ *+' conftest.er1 >conftest.err 4781 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1 4782 rm -f conftest.er1
5286 cat conftest.err >&5 4783 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && 4785 (exit $ac_status); } &&
5289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4786 { ac_try='test -z "$ac_cxx_werror_flag"
4787 || test ! -s conftest.err'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5 4789 (eval $ac_try) 2>&5
5292 ac_status=$? 4790 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; } && 4792 (exit $ac_status); }; } &&
5308LIBS=$ac_save_LIBS 4806LIBS=$ac_save_LIBS
5309for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4807for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5310do 4808do
5311 # Don't even attempt the hair of trying to link an X program! 4809 # Don't even attempt the hair of trying to link an X program!
5312 for ac_extension in a so sl; do 4810 for ac_extension in a so sl; do
5313 if test -r $ac_dir/libX11.$ac_extension; then 4811 if test -r $ac_dir/libXt.$ac_extension; then
5314 ac_x_libraries=$ac_dir 4812 ac_x_libraries=$ac_dir
5315 break 2 4813 break 2
5316 fi 4814 fi
5317 done 4815 done
5318done 4816done
5344 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5345 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5346 # Update the cache value to reflect the command line values. 4844 # Update the cache value to reflect the command line values.
5347 ac_cv_have_x="have_x=yes \ 4845 ac_cv_have_x="have_x=yes \
5348 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 4846 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5349 # It might be that x_includes is empty (headers are found in the
5350 # standard search path. Then output the corresponding message
5351 ac_out_x_includes=$x_includes
5352 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5353 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 4847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5354echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 4848echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5355fi 4849fi
5356 4850
5357fi
5358if test "$no_x" = yes; then 4851if test "$no_x" = yes; then
5359 # Not all programs may use this symbol, but it does not hurt to define it. 4852 # Not all programs may use this symbol, but it does not hurt to define it.
5360 4853
5361cat >>confdefs.h <<\_ACEOF 4854cat >>confdefs.h <<\_ACEOF
5362#define X_DISPLAY_MISSING 1 4855#define X_DISPLAY_MISSING 1
5400 grep -v '^ *+' conftest.er1 >conftest.err 4893 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1 4894 rm -f conftest.er1
5402 cat conftest.err >&5 4895 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } && 4897 (exit $ac_status); } &&
5405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4898 { ac_try='test -z "$ac_cxx_werror_flag"
4899 || test ! -s conftest.err'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5 4901 (eval $ac_try) 2>&5
5408 ac_status=$? 4902 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; } && 4904 (exit $ac_status); }; } &&
5451 grep -v '^ *+' conftest.er1 >conftest.err 4945 grep -v '^ *+' conftest.er1 >conftest.err
5452 rm -f conftest.er1 4946 rm -f conftest.er1
5453 cat conftest.err >&5 4947 cat conftest.err >&5
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } && 4949 (exit $ac_status); } &&
5456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4950 { ac_try='test -z "$ac_cxx_werror_flag"
4951 || test ! -s conftest.err'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5 4953 (eval $ac_try) 2>&5
5459 ac_status=$? 4954 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; } && 4956 (exit $ac_status); }; } &&
5527 grep -v '^ *+' conftest.er1 >conftest.err 5022 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1 5023 rm -f conftest.er1
5529 cat conftest.err >&5 5024 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && 5026 (exit $ac_status); } &&
5532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5027 { ac_try='test -z "$ac_cxx_werror_flag"
5028 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5 5030 (eval $ac_try) 2>&5
5535 ac_status=$? 5031 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } && 5033 (exit $ac_status); }; } &&
5582 grep -v '^ *+' conftest.er1 >conftest.err 5078 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1 5079 rm -f conftest.er1
5584 cat conftest.err >&5 5080 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && 5082 (exit $ac_status); } &&
5587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5083 { ac_try='test -z "$ac_cxx_werror_flag"
5084 || test ! -s conftest.err'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5 5086 (eval $ac_try) 2>&5
5590 ac_status=$? 5087 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } && 5089 (exit $ac_status); }; } &&
5650 grep -v '^ *+' conftest.er1 >conftest.err 5147 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1 5148 rm -f conftest.er1
5652 cat conftest.err >&5 5149 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } && 5151 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5152 { ac_try='test -z "$ac_cxx_werror_flag"
5153 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5 5155 (eval $ac_try) 2>&5
5658 ac_status=$? 5156 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } && 5158 (exit $ac_status); }; } &&
5758 grep -v '^ *+' conftest.er1 >conftest.err 5256 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1 5257 rm -f conftest.er1
5760 cat conftest.err >&5 5258 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && 5260 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5261 { ac_try='test -z "$ac_cxx_werror_flag"
5262 || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5 5264 (eval $ac_try) 2>&5
5766 ac_status=$? 5265 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } && 5267 (exit $ac_status); }; } &&
5822 grep -v '^ *+' conftest.er1 >conftest.err 5321 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1 5322 rm -f conftest.er1
5824 cat conftest.err >&5 5323 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } && 5325 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5326 { ac_try='test -z "$ac_cxx_werror_flag"
5327 || test ! -s conftest.err'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5 5329 (eval $ac_try) 2>&5
5830 ac_status=$? 5330 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; } && 5332 (exit $ac_status); }; } &&
5890 grep -v '^ *+' conftest.er1 >conftest.err 5390 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1 5391 rm -f conftest.er1
5892 cat conftest.err >&5 5392 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && 5394 (exit $ac_status); } &&
5895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5395 { ac_try='test -z "$ac_cxx_werror_flag"
5396 || test ! -s conftest.err'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897 (eval $ac_try) 2>&5 5398 (eval $ac_try) 2>&5
5898 ac_status=$? 5399 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } && 5401 (exit $ac_status); }; } &&
5994 grep -v '^ *+' conftest.er1 >conftest.err 5495 grep -v '^ *+' conftest.er1 >conftest.err
5995 rm -f conftest.er1 5496 rm -f conftest.er1
5996 cat conftest.err >&5 5497 cat conftest.err >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && 5499 (exit $ac_status); } &&
5999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5500 { ac_try='test -z "$ac_cxx_werror_flag"
5501 || test ! -s conftest.err'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5 5503 (eval $ac_try) 2>&5
6002 ac_status=$? 5504 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; } && 5506 (exit $ac_status); }; } &&
6058 grep -v '^ *+' conftest.er1 >conftest.err 5560 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1 5561 rm -f conftest.er1
6060 cat conftest.err >&5 5562 cat conftest.err >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && 5564 (exit $ac_status); } &&
6063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5565 { ac_try='test -z "$ac_cxx_werror_flag"
5566 || test ! -s conftest.err'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5 5568 (eval $ac_try) 2>&5
6066 ac_status=$? 5569 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; } && 5571 (exit $ac_status); }; } &&
6155 grep -v '^ *+' conftest.er1 >conftest.err 5658 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1 5659 rm -f conftest.er1
6157 cat conftest.err >&5 5660 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && 5662 (exit $ac_status); } &&
6160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5663 { ac_try='test -z "$ac_cxx_werror_flag"
5664 || test ! -s conftest.err'
6161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 (eval $ac_try) 2>&5 5666 (eval $ac_try) 2>&5
6163 ac_status=$? 5667 ac_status=$?
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; } && 5669 (exit $ac_status); }; } &&
6219 grep -v '^ *+' conftest.er1 >conftest.err 5723 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1 5724 rm -f conftest.er1
6221 cat conftest.err >&5 5725 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && 5727 (exit $ac_status); } &&
6224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5728 { ac_try='test -z "$ac_cxx_werror_flag"
5729 || test ! -s conftest.err'
6225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226 (eval $ac_try) 2>&5 5731 (eval $ac_try) 2>&5
6227 ac_status=$? 5732 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; } && 5734 (exit $ac_status); }; } &&
6316 grep -v '^ *+' conftest.er1 >conftest.err 5821 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1 5822 rm -f conftest.er1
6318 cat conftest.err >&5 5823 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } && 5825 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5826 { ac_try='test -z "$ac_cxx_werror_flag"
5827 || test ! -s conftest.err'
6322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6323 (eval $ac_try) 2>&5 5829 (eval $ac_try) 2>&5
6324 ac_status=$? 5830 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; } && 5832 (exit $ac_status); }; } &&
6380 grep -v '^ *+' conftest.er1 >conftest.err 5886 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1 5887 rm -f conftest.er1
6382 cat conftest.err >&5 5888 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && 5890 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5891 { ac_try='test -z "$ac_cxx_werror_flag"
5892 || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5 5894 (eval $ac_try) 2>&5
6388 ac_status=$? 5895 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } && 5897 (exit $ac_status); }; } &&
6459 grep -v '^ *+' conftest.er1 >conftest.err 5966 grep -v '^ *+' conftest.er1 >conftest.err
6460 rm -f conftest.er1 5967 rm -f conftest.er1
6461 cat conftest.err >&5 5968 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } && 5970 (exit $ac_status); } &&
6464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5971 { ac_try='test -z "$ac_cxx_werror_flag"
5972 || test ! -s conftest.err'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5 5974 (eval $ac_try) 2>&5
6467 ac_status=$? 5975 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } && 5977 (exit $ac_status); }; } &&
6494 6002
6495fi 6003fi
6496 6004
6497 6005
6498 6006
6007LIBAFTERIMAGE_CFLAGS=
6008AFTERIMAGE_LIBS=
6009have_afterimage=
6010
6499if test x$support_xpm = xyes; then 6011if test x$support_afterimage = xyes; then
6012 support_afterimage=no
6013
6014 if test "x$afterimage_config" = "x" ; then
6015 # Extract the first word of "afterimage-config", so it can be a program name with args.
6016set dummy afterimage-config; ac_word=$2
6017echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019if test "${ac_cv_path_afterimage_config+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022 case $afterimage_config in
6023 [\\/]* | ?:[\\/]*)
6024 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6025 ;;
6026 *)
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038done
6039done
6040
6041 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6042 ;;
6043esac
6044fi
6045afterimage_config=$ac_cv_path_afterimage_config
6046
6047if test -n "$afterimage_config"; then
6048 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6049echo "${ECHO_T}$afterimage_config" >&6
6050else
6051 echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6
6053fi
6054
6055 fi
6056
6057 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6058echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6059 if $afterimage_config --version >/dev/null 2>&1 ; then
6060 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6061 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6062 if test "x$AFTERIMAGE_LIBS" != "x"; then
6063 support_afterimage=yes
6064 fi
6065 fi
6066
6067 if test "x$support_afterimage" = "xyes"; then
6068 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6069echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6070 else
6071 echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6
6073 fi
6074fi
6075
6076if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6500 6077
6501 6078
6502 6079
6503# Initialize some more variables set by options. 6080# Initialize some more variables set by options.
6504# The variables have the same names as the options, with 6081# The variables have the same names as the options, with
6675 grep -v '^ *+' conftest.er1 >conftest.err 6252 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1 6253 rm -f conftest.er1
6677 cat conftest.err >&5 6254 cat conftest.err >&5
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && 6256 (exit $ac_status); } &&
6680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6257 { ac_try='test -z "$ac_cxx_werror_flag"
6258 || test ! -s conftest.err'
6681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682 (eval $ac_try) 2>&5 6260 (eval $ac_try) 2>&5
6683 ac_status=$? 6261 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; } && 6263 (exit $ac_status); }; } &&
6889 grep -v '^ *+' conftest.er1 >conftest.err 6467 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1 6468 rm -f conftest.er1
6891 cat conftest.err >&5 6469 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } && 6471 (exit $ac_status); } &&
6894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6472 { ac_try='test -z "$ac_cxx_werror_flag"
6473 || test ! -s conftest.err'
6895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896 (eval $ac_try) 2>&5 6475 (eval $ac_try) 2>&5
6897 ac_status=$? 6476 ac_status=$?
6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899 (exit $ac_status); }; } && 6478 (exit $ac_status); }; } &&
6953 grep -v '^ *+' conftest.er1 >conftest.err 6532 grep -v '^ *+' conftest.er1 >conftest.err
6954 rm -f conftest.er1 6533 rm -f conftest.er1
6955 cat conftest.err >&5 6534 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && 6536 (exit $ac_status); } &&
6958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6537 { ac_try='test -z "$ac_cxx_werror_flag"
6538 || test ! -s conftest.err'
6959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 (eval $ac_try) 2>&5 6540 (eval $ac_try) 2>&5
6961 ac_status=$? 6541 ac_status=$?
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); }; } && 6543 (exit $ac_status); }; } &&
7123 grep -v '^ *+' conftest.er1 >conftest.err 6703 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1 6704 rm -f conftest.er1
7125 cat conftest.err >&5 6705 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && 6707 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6708 { ac_try='test -z "$ac_cxx_werror_flag"
6709 || test ! -s conftest.err'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130 (eval $ac_try) 2>&5 6711 (eval $ac_try) 2>&5
7131 ac_status=$? 6712 ac_status=$?
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; } && 6714 (exit $ac_status); }; } &&
7173 6754
7174 6755
7175 6756
7176 6757
7177 6758
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187for ac_header in \ 6759for ac_header in \
7188 assert.h \ 6760 assert.h \
7189 fcntl.h \ 6761 fcntl.h \
7190 grp.h \
7191 libc.h \
7192 lastlog.h \
7193 stdarg.h \ 6762 stdarg.h \
7194 stdlib.h \ 6763 stdlib.h \
7195 string.h \ 6764 string.h \
7196 termios.h \ 6765 termios.h \
7197 unistd.h \ 6766 unistd.h \
7198 sys/byteorder.h \ 6767 sys/byteorder.h \
7199 sys/ioctl.h \ 6768 sys/ioctl.h \
7200 sys/select.h \ 6769 sys/select.h \
7201 sys/sockio.h \ 6770 sys/sockio.h \
7202 sys/strredir.h \ 6771 sys/strredir.h \
7203 sys/stropts.h \
7204 sys/time.h \ 6772 sys/time.h \
7205 utmp.h \ 6773 stdint.h \
7206 utmpx.h \ 6774 wchar.h \
7207 stdint.h \ 6775 cwchar \
7208 pty.h \ 6776 clocale \
7209 util.h \
7210 libutil.h \
7211 wchar.h \
7212 cwchar \
7213 clocale \
7214 6777
7215do 6778do
7216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7217if eval "test \"\${$as_ac_Header+set}\" = set"; then 6780if eval "test \"\${$as_ac_Header+set}\" = set"; then
7218 echo "$as_me:$LINENO: checking for $ac_header" >&5 6781 echo "$as_me:$LINENO: checking for $ac_header" >&5
7242 grep -v '^ *+' conftest.er1 >conftest.err 6805 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1 6806 rm -f conftest.er1
7244 cat conftest.err >&5 6807 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && 6809 (exit $ac_status); } &&
7247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6810 { ac_try='test -z "$ac_cxx_werror_flag"
6811 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5 6813 (eval $ac_try) 2>&5
7250 ac_status=$? 6814 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } && 6816 (exit $ac_status); }; } &&
7391 grep -v '^ *+' conftest.er1 >conftest.err 6955 grep -v '^ *+' conftest.er1 >conftest.err
7392 rm -f conftest.er1 6956 rm -f conftest.er1
7393 cat conftest.err >&5 6957 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && 6959 (exit $ac_status); } &&
7396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6960 { ac_try='test -z "$ac_cxx_werror_flag"
6961 || test ! -s conftest.err'
7397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7398 (eval $ac_try) 2>&5 6963 (eval $ac_try) 2>&5
7399 ac_status=$? 6964 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; } && 6966 (exit $ac_status); }; } &&
7456 grep -v '^ *+' conftest.er1 >conftest.err 7021 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1 7022 rm -f conftest.er1
7458 cat conftest.err >&5 7023 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && 7025 (exit $ac_status); } &&
7461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7026 { ac_try='test -z "$ac_cxx_werror_flag"
7027 || test ! -s conftest.err'
7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 (eval $ac_try) 2>&5 7029 (eval $ac_try) 2>&5
7464 ac_status=$? 7030 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; } && 7032 (exit $ac_status); }; } &&
7479fi 7045fi
7480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7481fi 7047fi
7482echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 7048echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7483echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6 7049echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7484
7485if test -n "$GCC"; then
7486 LDARG="-Wl,"
7487else
7488 LDARG=""
7489fi
7490R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7491
7492ac_save_CFLAGS=$CFLAGS
7493ac_save_LIBS=$LIBS
7494CFLAGS="$CFLAGS $X_CFLAGS"
7495LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7496echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7497echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7498if test "${rxvt_cv_rpath+set}" = set; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501 if test "$cross_compiling" = yes; then
7502 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7503echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7504else
7505 cat >conftest.$ac_ext <<_ACEOF
7506/* confdefs.h. */
7507_ACEOF
7508cat confdefs.h >>conftest.$ac_ext
7509cat >>conftest.$ac_ext <<_ACEOF
7510/* end confdefs.h. */
7511
7512main()
7513{
7514 exit(0);
7515 (void) XOpenDisplay("foobar");
7516}
7517_ACEOF
7518rm -f conftest$ac_exeext
7519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7520 (eval $ac_link) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 rxvt_cv_rpath=yes
7530else
7531 echo "$as_me: program exited with status $ac_status" >&5
7532echo "$as_me: failed program was:" >&5
7533sed 's/^/| /' conftest.$ac_ext >&5
7534
7535( exit $ac_status )
7536rxvt_cv_rpath=no
7537fi
7538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7539fi
7540fi
7541echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7542echo "${ECHO_T}$rxvt_cv_rpath" >&6
7543if test x$rxvt_cv_rpath != xyes; then
7544 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7545 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7546 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7547echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7548if test "${rxvt_cv_R+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 if test "$cross_compiling" = yes; then
7552 rxvt_cv_R=no
7553else
7554 cat >conftest.$ac_ext <<_ACEOF
7555/* confdefs.h. */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h. */
7560
7561main()
7562{
7563 exit(0);
7564 (void) XOpenDisplay("foobar");
7565}
7566_ACEOF
7567rm -f conftest$ac_exeext
7568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569 (eval $ac_link) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 rxvt_cv_R=yes
7579else
7580 echo "$as_me: program exited with status $ac_status" >&5
7581echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584( exit $ac_status )
7585rxvt_cv_R=no
7586fi
7587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7588fi
7589fi
7590echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7591echo "${ECHO_T}$rxvt_cv_R" >&6
7592 if test x$rxvt_cv_R != xyes; then
7593 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7594 fi
7595fi
7596 7050
7597echo "$as_me:$LINENO: checking for XPointer" >&5 7051echo "$as_me:$LINENO: checking for XPointer" >&5
7598echo $ECHO_N "checking for XPointer... $ECHO_C" >&6 7052echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7599if test "${rxvt_cv_xpointer+set}" = set; then 7053if test "${rxvt_cv_xpointer+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6 7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7621 grep -v '^ *+' conftest.er1 >conftest.err 7075 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1 7076 rm -f conftest.er1
7623 cat conftest.err >&5 7077 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && 7079 (exit $ac_status); } &&
7626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7080 { ac_try='test -z "$ac_cxx_werror_flag"
7081 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5 7083 (eval $ac_try) 2>&5
7629 ac_status=$? 7084 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } && 7086 (exit $ac_status); }; } &&
7651cat >>confdefs.h <<\_ACEOF 7106cat >>confdefs.h <<\_ACEOF
7652#define HAVE_XPOINTER 1 7107#define HAVE_XPOINTER 1
7653_ACEOF 7108_ACEOF
7654 7109
7655fi 7110fi
7656LIBS=$ac_save_LIBS
7657CFLAGS=$ac_save_CFLAGS
7658 7111
7112echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7113echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7114if test "${rxvt_xlib_illegal_access+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117 cat >conftest.$ac_ext <<_ACEOF
7118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
7123
7124#define XLIB_ILLEGAL_ACCESS
7125#include <X11/Xlib.h>
7126
7127int
7128main ()
7129{
7130
7131 Display *dpy;
7132 dpy->xdefaults = (char *)0;
7133
7134 ;
7135 return 0;
7136}
7137_ACEOF
7138rm -f conftest.$ac_objext
7139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7140 (eval $ac_compile) 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } &&
7147 { ac_try='test -z "$ac_cxx_werror_flag"
7148 || test ! -s conftest.err'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7150 (eval $ac_try) 2>&5
7151 ac_status=$?
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; } &&
7154 { ac_try='test -s conftest.$ac_objext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 rxvt_xlib_illegal_access=yes
7161else
7162 echo "$as_me: failed program was:" >&5
7163sed 's/^/| /' conftest.$ac_ext >&5
7164
7165rxvt_xlib_illegal_access=no
7166
7167fi
7168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169fi
7170echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7171echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7172if test x$rxvt_xlib_illegal_access = xyes; then
7173
7174cat >>confdefs.h <<\_ACEOF
7175#define XLIB_ILLEGAL_ACCESS 1
7176_ACEOF
7177
7178fi
7659 7179
7660echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7180echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7661echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7181echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7662if test "${ac_cv_c_const+set}" = set; then 7182if test "${ac_cv_c_const+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6 7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 grep -v '^ *+' conftest.er1 >conftest.err 7250 grep -v '^ *+' conftest.er1 >conftest.err
7731 rm -f conftest.er1 7251 rm -f conftest.er1
7732 cat conftest.err >&5 7252 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && 7254 (exit $ac_status); } &&
7735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7255 { ac_try='test -z "$ac_cxx_werror_flag"
7256 || test ! -s conftest.err'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737 (eval $ac_try) 2>&5 7258 (eval $ac_try) 2>&5
7738 ac_status=$? 7259 ac_status=$?
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; } && 7261 (exit $ac_status); }; } &&
7790 grep -v '^ *+' conftest.er1 >conftest.err 7311 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1 7312 rm -f conftest.er1
7792 cat conftest.err >&5 7313 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && 7315 (exit $ac_status); } &&
7795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7316 { ac_try='test -z "$ac_cxx_werror_flag"
7317 || test ! -s conftest.err'
7796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 (eval $ac_try) 2>&5 7319 (eval $ac_try) 2>&5
7798 ac_status=$? 7320 ac_status=$?
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; } && 7322 (exit $ac_status); }; } &&
7865 grep -v '^ *+' conftest.er1 >conftest.err 7387 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1 7388 rm -f conftest.er1
7867 cat conftest.err >&5 7389 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && 7391 (exit $ac_status); } &&
7870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7392 { ac_try='test -z "$ac_cxx_werror_flag"
7393 || test ! -s conftest.err'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5 7395 (eval $ac_try) 2>&5
7873 ac_status=$? 7396 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; } && 7398 (exit $ac_status); }; } &&
7930 grep -v '^ *+' conftest.er1 >conftest.err 7453 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1 7454 rm -f conftest.er1
7932 cat conftest.err >&5 7455 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && 7457 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7458 { ac_try='test -z "$ac_cxx_werror_flag"
7459 || test ! -s conftest.err'
7936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 (eval $ac_try) 2>&5 7461 (eval $ac_try) 2>&5
7938 ac_status=$? 7462 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } && 7464 (exit $ac_status); }; } &&
8034 grep -v '^ *+' conftest.er1 >conftest.err 7558 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1 7559 rm -f conftest.er1
8036 cat conftest.err >&5 7560 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } && 7562 (exit $ac_status); } &&
8039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7563 { ac_try='test -z "$ac_cxx_werror_flag"
7564 || test ! -s conftest.err'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5 7566 (eval $ac_try) 2>&5
8042 ac_status=$? 7567 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } && 7569 (exit $ac_status); }; } &&
8096 grep -v '^ *+' conftest.er1 >conftest.err 7621 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1 7622 rm -f conftest.er1
8098 cat conftest.err >&5 7623 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && 7625 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7626 { ac_try='test -z "$ac_cxx_werror_flag"
7627 || test ! -s conftest.err'
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5 7629 (eval $ac_try) 2>&5
8104 ac_status=$? 7630 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } && 7632 (exit $ac_status); }; } &&
8136 grep -v '^ *+' conftest.er1 >conftest.err 7662 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1 7663 rm -f conftest.er1
8138 cat conftest.err >&5 7664 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && 7666 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7667 { ac_try='test -z "$ac_cxx_werror_flag"
7668 || test ! -s conftest.err'
8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8143 (eval $ac_try) 2>&5 7670 (eval $ac_try) 2>&5
8144 ac_status=$? 7671 ac_status=$?
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); }; } && 7673 (exit $ac_status); }; } &&
8192 grep -v '^ *+' conftest.er1 >conftest.err 7719 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1 7720 rm -f conftest.er1
8194 cat conftest.err >&5 7721 cat conftest.err >&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && 7723 (exit $ac_status); } &&
8197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7724 { ac_try='test -z "$ac_cxx_werror_flag"
7725 || test ! -s conftest.err'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5 7727 (eval $ac_try) 2>&5
8200 ac_status=$? 7728 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; } && 7730 (exit $ac_status); }; } &&
8232 grep -v '^ *+' conftest.er1 >conftest.err 7760 grep -v '^ *+' conftest.er1 >conftest.err
8233 rm -f conftest.er1 7761 rm -f conftest.er1
8234 cat conftest.err >&5 7762 cat conftest.err >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && 7764 (exit $ac_status); } &&
8237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7765 { ac_try='test -z "$ac_cxx_werror_flag"
7766 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5 7768 (eval $ac_try) 2>&5
8240 ac_status=$? 7769 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } && 7771 (exit $ac_status); }; } &&
8296 grep -v '^ *+' conftest.er1 >conftest.err 7825 grep -v '^ *+' conftest.er1 >conftest.err
8297 rm -f conftest.er1 7826 rm -f conftest.er1
8298 cat conftest.err >&5 7827 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && 7829 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7830 { ac_try='test -z "$ac_cxx_werror_flag"
7831 || test ! -s conftest.err'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5 7833 (eval $ac_try) 2>&5
8304 ac_status=$? 7834 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } && 7836 (exit $ac_status); }; } &&
8327See \`config.log' for more details." >&2;} 7857See \`config.log' for more details." >&2;}
8328 { (exit 1); exit 1; }; } ;; 7858 { (exit 1); exit 1; }; } ;;
8329esac 7859esac
8330else 7860else
8331 if test "$cross_compiling" = yes; then 7861 if test "$cross_compiling" = yes; then
8332 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7862 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8333echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7863See \`config.log' for more details." >&5
7864echo "$as_me: error: cannot run test program while cross compiling
7865See \`config.log' for more details." >&2;}
8334 { (exit 1); exit 1; }; } 7866 { (exit 1); exit 1; }; }
8335else 7867else
8336 cat >conftest.$ac_ext <<_ACEOF 7868 cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h. */ 7869/* confdefs.h. */
8338_ACEOF 7870_ACEOF
8440 grep -v '^ *+' conftest.er1 >conftest.err 7972 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1 7973 rm -f conftest.er1
8442 cat conftest.err >&5 7974 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && 7976 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7977 { ac_try='test -z "$ac_cxx_werror_flag"
7978 || test ! -s conftest.err'
8446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8447 (eval $ac_try) 2>&5 7980 (eval $ac_try) 2>&5
8448 ac_status=$? 7981 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } && 7983 (exit $ac_status); }; } &&
8502 grep -v '^ *+' conftest.er1 >conftest.err 8035 grep -v '^ *+' conftest.er1 >conftest.err
8503 rm -f conftest.er1 8036 rm -f conftest.er1
8504 cat conftest.err >&5 8037 cat conftest.err >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && 8039 (exit $ac_status); } &&
8507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8040 { ac_try='test -z "$ac_cxx_werror_flag"
8041 || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5 8043 (eval $ac_try) 2>&5
8510 ac_status=$? 8044 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } && 8046 (exit $ac_status); }; } &&
8542 grep -v '^ *+' conftest.er1 >conftest.err 8076 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1 8077 rm -f conftest.er1
8544 cat conftest.err >&5 8078 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } && 8080 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8081 { ac_try='test -z "$ac_cxx_werror_flag"
8082 || test ! -s conftest.err'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 (eval $ac_try) 2>&5 8084 (eval $ac_try) 2>&5
8550 ac_status=$? 8085 ac_status=$?
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; } && 8087 (exit $ac_status); }; } &&
8598 grep -v '^ *+' conftest.er1 >conftest.err 8133 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1 8134 rm -f conftest.er1
8600 cat conftest.err >&5 8135 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && 8137 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8138 { ac_try='test -z "$ac_cxx_werror_flag"
8139 || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5 8141 (eval $ac_try) 2>&5
8606 ac_status=$? 8142 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } && 8144 (exit $ac_status); }; } &&
8638 grep -v '^ *+' conftest.er1 >conftest.err 8174 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1 8175 rm -f conftest.er1
8640 cat conftest.err >&5 8176 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } && 8178 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8179 { ac_try='test -z "$ac_cxx_werror_flag"
8180 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8645 (eval $ac_try) 2>&5 8182 (eval $ac_try) 2>&5
8646 ac_status=$? 8183 ac_status=$?
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } && 8185 (exit $ac_status); }; } &&
8702 grep -v '^ *+' conftest.er1 >conftest.err 8239 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1 8240 rm -f conftest.er1
8704 cat conftest.err >&5 8241 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && 8243 (exit $ac_status); } &&
8707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8244 { ac_try='test -z "$ac_cxx_werror_flag"
8245 || test ! -s conftest.err'
8708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709 (eval $ac_try) 2>&5 8247 (eval $ac_try) 2>&5
8710 ac_status=$? 8248 ac_status=$?
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); }; } && 8250 (exit $ac_status); }; } &&
8733See \`config.log' for more details." >&2;} 8271See \`config.log' for more details." >&2;}
8734 { (exit 1); exit 1; }; } ;; 8272 { (exit 1); exit 1; }; } ;;
8735esac 8273esac
8736else 8274else
8737 if test "$cross_compiling" = yes; then 8275 if test "$cross_compiling" = yes; then
8738 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8276 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8739echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8277See \`config.log' for more details." >&5
8278echo "$as_me: error: cannot run test program while cross compiling
8279See \`config.log' for more details." >&2;}
8740 { (exit 1); exit 1; }; } 8280 { (exit 1); exit 1; }; }
8741else 8281else
8742 cat >conftest.$ac_ext <<_ACEOF 8282 cat >conftest.$ac_ext <<_ACEOF
8743/* confdefs.h. */ 8283/* confdefs.h. */
8744_ACEOF 8284_ACEOF
8846 grep -v '^ *+' conftest.er1 >conftest.err 8386 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1 8387 rm -f conftest.er1
8848 cat conftest.err >&5 8388 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && 8390 (exit $ac_status); } &&
8851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8391 { ac_try='test -z "$ac_cxx_werror_flag"
8392 || test ! -s conftest.err'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5 8394 (eval $ac_try) 2>&5
8854 ac_status=$? 8395 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; } && 8397 (exit $ac_status); }; } &&
8908 grep -v '^ *+' conftest.er1 >conftest.err 8449 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1 8450 rm -f conftest.er1
8910 cat conftest.err >&5 8451 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && 8453 (exit $ac_status); } &&
8913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8454 { ac_try='test -z "$ac_cxx_werror_flag"
8455 || test ! -s conftest.err'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5 8457 (eval $ac_try) 2>&5
8916 ac_status=$? 8458 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } && 8460 (exit $ac_status); }; } &&
8948 grep -v '^ *+' conftest.er1 >conftest.err 8490 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1 8491 rm -f conftest.er1
8950 cat conftest.err >&5 8492 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && 8494 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8495 { ac_try='test -z "$ac_cxx_werror_flag"
8496 || test ! -s conftest.err'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955 (eval $ac_try) 2>&5 8498 (eval $ac_try) 2>&5
8956 ac_status=$? 8499 ac_status=$?
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; } && 8501 (exit $ac_status); }; } &&
9004 grep -v '^ *+' conftest.er1 >conftest.err 8547 grep -v '^ *+' conftest.er1 >conftest.err
9005 rm -f conftest.er1 8548 rm -f conftest.er1
9006 cat conftest.err >&5 8549 cat conftest.err >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); } && 8551 (exit $ac_status); } &&
9009 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8552 { ac_try='test -z "$ac_cxx_werror_flag"
8553 || test ! -s conftest.err'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011 (eval $ac_try) 2>&5 8555 (eval $ac_try) 2>&5
9012 ac_status=$? 8556 ac_status=$?
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; } && 8558 (exit $ac_status); }; } &&
9044 grep -v '^ *+' conftest.er1 >conftest.err 8588 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1 8589 rm -f conftest.er1
9046 cat conftest.err >&5 8590 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } && 8592 (exit $ac_status); } &&
9049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8593 { ac_try='test -z "$ac_cxx_werror_flag"
8594 || test ! -s conftest.err'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051 (eval $ac_try) 2>&5 8596 (eval $ac_try) 2>&5
9052 ac_status=$? 8597 ac_status=$?
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; } && 8599 (exit $ac_status); }; } &&
9108 grep -v '^ *+' conftest.er1 >conftest.err 8653 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1 8654 rm -f conftest.er1
9110 cat conftest.err >&5 8655 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && 8657 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8658 { ac_try='test -z "$ac_cxx_werror_flag"
8659 || test ! -s conftest.err'
9114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 (eval $ac_try) 2>&5 8661 (eval $ac_try) 2>&5
9116 ac_status=$? 8662 ac_status=$?
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); }; } && 8664 (exit $ac_status); }; } &&
9139See \`config.log' for more details." >&2;} 8685See \`config.log' for more details." >&2;}
9140 { (exit 1); exit 1; }; } ;; 8686 { (exit 1); exit 1; }; } ;;
9141esac 8687esac
9142else 8688else
9143 if test "$cross_compiling" = yes; then 8689 if test "$cross_compiling" = yes; then
9144 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8690 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9145echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8691See \`config.log' for more details." >&5
8692echo "$as_me: error: cannot run test program while cross compiling
8693See \`config.log' for more details." >&2;}
9146 { (exit 1); exit 1; }; } 8694 { (exit 1); exit 1; }; }
9147else 8695else
9148 cat >conftest.$ac_ext <<_ACEOF 8696 cat >conftest.$ac_ext <<_ACEOF
9149/* confdefs.h. */ 8697/* confdefs.h. */
9150_ACEOF 8698_ACEOF
9252 grep -v '^ *+' conftest.er1 >conftest.err 8800 grep -v '^ *+' conftest.er1 >conftest.err
9253 rm -f conftest.er1 8801 rm -f conftest.er1
9254 cat conftest.err >&5 8802 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } && 8804 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8805 { ac_try='test -z "$ac_cxx_werror_flag"
8806 || test ! -s conftest.err'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5 8808 (eval $ac_try) 2>&5
9260 ac_status=$? 8809 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; } && 8811 (exit $ac_status); }; } &&
9314 grep -v '^ *+' conftest.er1 >conftest.err 8863 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1 8864 rm -f conftest.er1
9316 cat conftest.err >&5 8865 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && 8867 (exit $ac_status); } &&
9319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8868 { ac_try='test -z "$ac_cxx_werror_flag"
8869 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5 8871 (eval $ac_try) 2>&5
9322 ac_status=$? 8872 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } && 8874 (exit $ac_status); }; } &&
9354 grep -v '^ *+' conftest.er1 >conftest.err 8904 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1 8905 rm -f conftest.er1
9356 cat conftest.err >&5 8906 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && 8908 (exit $ac_status); } &&
9359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8909 { ac_try='test -z "$ac_cxx_werror_flag"
8910 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5 8912 (eval $ac_try) 2>&5
9362 ac_status=$? 8913 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } && 8915 (exit $ac_status); }; } &&
9410 grep -v '^ *+' conftest.er1 >conftest.err 8961 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1 8962 rm -f conftest.er1
9412 cat conftest.err >&5 8963 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && 8965 (exit $ac_status); } &&
9415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8966 { ac_try='test -z "$ac_cxx_werror_flag"
8967 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5 8969 (eval $ac_try) 2>&5
9418 ac_status=$? 8970 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } && 8972 (exit $ac_status); }; } &&
9450 grep -v '^ *+' conftest.er1 >conftest.err 9002 grep -v '^ *+' conftest.er1 >conftest.err
9451 rm -f conftest.er1 9003 rm -f conftest.er1
9452 cat conftest.err >&5 9004 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } && 9006 (exit $ac_status); } &&
9455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9007 { ac_try='test -z "$ac_cxx_werror_flag"
9008 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5 9010 (eval $ac_try) 2>&5
9458 ac_status=$? 9011 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } && 9013 (exit $ac_status); }; } &&
9514 grep -v '^ *+' conftest.er1 >conftest.err 9067 grep -v '^ *+' conftest.er1 >conftest.err
9515 rm -f conftest.er1 9068 rm -f conftest.er1
9516 cat conftest.err >&5 9069 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && 9071 (exit $ac_status); } &&
9519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9072 { ac_try='test -z "$ac_cxx_werror_flag"
9073 || test ! -s conftest.err'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5 9075 (eval $ac_try) 2>&5
9522 ac_status=$? 9076 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; } && 9078 (exit $ac_status); }; } &&
9545See \`config.log' for more details." >&2;} 9099See \`config.log' for more details." >&2;}
9546 { (exit 1); exit 1; }; } ;; 9100 { (exit 1); exit 1; }; } ;;
9547esac 9101esac
9548else 9102else
9549 if test "$cross_compiling" = yes; then 9103 if test "$cross_compiling" = yes; then
9550 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 9104 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9551echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 9105See \`config.log' for more details." >&5
9106echo "$as_me: error: cannot run test program while cross compiling
9107See \`config.log' for more details." >&2;}
9552 { (exit 1); exit 1; }; } 9108 { (exit 1); exit 1; }; }
9553else 9109else
9554 cat >conftest.$ac_ext <<_ACEOF 9110 cat >conftest.$ac_ext <<_ACEOF
9555/* confdefs.h. */ 9111/* confdefs.h. */
9556_ACEOF 9112_ACEOF
9657 grep -v '^ *+' conftest.er1 >conftest.err 9213 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1 9214 rm -f conftest.er1
9659 cat conftest.err >&5 9215 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } && 9217 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9218 { ac_try='test -z "$ac_cxx_werror_flag"
9219 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5 9221 (eval $ac_try) 2>&5
9665 ac_status=$? 9222 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } && 9224 (exit $ac_status); }; } &&
9739 grep -v '^ *+' conftest.er1 >conftest.err 9296 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1 9297 rm -f conftest.er1
9741 cat conftest.err >&5 9298 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } && 9300 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9301 { ac_try='test -z "$ac_cxx_werror_flag"
9302 || test ! -s conftest.err'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746 (eval $ac_try) 2>&5 9304 (eval $ac_try) 2>&5
9747 ac_status=$? 9305 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } && 9307 (exit $ac_status); }; } &&
9821 grep -v '^ *+' conftest.er1 >conftest.err 9379 grep -v '^ *+' conftest.er1 >conftest.err
9822 rm -f conftest.er1 9380 rm -f conftest.er1
9823 cat conftest.err >&5 9381 cat conftest.err >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } && 9383 (exit $ac_status); } &&
9826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9384 { ac_try='test -z "$ac_cxx_werror_flag"
9385 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5 9387 (eval $ac_try) 2>&5
9829 ac_status=$? 9388 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } && 9390 (exit $ac_status); }; } &&
9903 grep -v '^ *+' conftest.er1 >conftest.err 9462 grep -v '^ *+' conftest.er1 >conftest.err
9904 rm -f conftest.er1 9463 rm -f conftest.er1
9905 cat conftest.err >&5 9464 cat conftest.err >&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } && 9466 (exit $ac_status); } &&
9908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9467 { ac_try='test -z "$ac_cxx_werror_flag"
9468 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5 9470 (eval $ac_try) 2>&5
9911 ac_status=$? 9471 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } && 9473 (exit $ac_status); }; } &&
10015 grep -v '^ *+' conftest.er1 >conftest.err 9575 grep -v '^ *+' conftest.er1 >conftest.err
10016 rm -f conftest.er1 9576 rm -f conftest.er1
10017 cat conftest.err >&5 9577 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } && 9579 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9580 { ac_try='test -z "$ac_cxx_werror_flag"
9581 || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5 9583 (eval $ac_try) 2>&5
10023 ac_status=$? 9584 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } && 9586 (exit $ac_status); }; } &&
10048 9609
10049 9610
10050 9611
10051 9612
10052 9613
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067for ac_func in \ 9614for ac_func in \
10068 revoke \
10069 unsetenv \ 9615 unsetenv \
10070 setutent \ 9616 setutent \
10071 seteuid \
10072 setresuid \
10073 setreuid \
10074 _getpty \
10075 getpt \
10076 posix_openpt \
10077 grantpt \
10078 unlockpt \
10079 isastream \
10080 on_exit \ 9617 on_exit \
10081 nanosleep \
10082 updwtmp \
10083 updwtmpx \
10084 ttyslot \
10085 9618
10086do 9619do
10087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10088echo "$as_me:$LINENO: checking for $ac_func" >&5 9621echo "$as_me:$LINENO: checking for $ac_func" >&5
10089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10148 grep -v '^ *+' conftest.er1 >conftest.err 9681 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1 9682 rm -f conftest.er1
10150 cat conftest.err >&5 9683 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && 9685 (exit $ac_status); } &&
10153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9686 { ac_try='test -z "$ac_cxx_werror_flag"
9687 || test ! -s conftest.err'
10154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10155 (eval $ac_try) 2>&5 9689 (eval $ac_try) 2>&5
10156 ac_status=$? 9690 ac_status=$?
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); }; } && 9692 (exit $ac_status); }; } &&
10182fi 9716fi
10183done 9717done
10184 9718
10185 9719
10186 9720
9721support_utmp=yes
9722support_wtmp=yes
9723support_lastlog=yes
9724
9725# Check whether --enable-utmp or --disable-utmp was given.
9726if test "${enable_utmp+set}" = set; then
9727 enableval="$enable_utmp"
9728 if test x$enableval = xyes -o x$enableval = xno; then
9729 support_utmp=$enableval
9730 fi
9731fi;
9732
9733# Check whether --enable-wtmp or --disable-wtmp was given.
9734if test "${enable_wtmp+set}" = set; then
9735 enableval="$enable_wtmp"
9736 if test x$enableval = xyes -o x$enableval = xno; then
9737 support_wtmp=$enableval
9738 fi
9739fi;
9740
9741# Check whether --enable-lastlog or --disable-lastlog was given.
9742if test "${enable_lastlog+set}" = set; then
9743 enableval="$enable_lastlog"
9744 if test x$enableval = xyes -o x$enableval = xno; then
9745 support_lastlog=$enableval
9746 fi
9747fi;
9748
9749if test x$support_utmp = xyes; then
9750
9751cat >>confdefs.h <<\_ACEOF
9752#define UTMP_SUPPORT 1
9753_ACEOF
9754
9755fi
9756if test x$support_wtmp = xyes; then
9757
9758cat >>confdefs.h <<\_ACEOF
9759#define WTMP_SUPPORT 1
9760_ACEOF
9761
9762fi
9763if test x$support_lastlog = xyes; then
9764
9765cat >>confdefs.h <<\_ACEOF
9766#define LASTLOG_SUPPORT 1
9767_ACEOF
9768
9769fi
9770
9771
9772
9773
9774for ac_func in \
9775 ttyslot \
9776 updwtmp \
9777 updwtmpx \
9778
9779do
9780as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9781echo "$as_me:$LINENO: checking for $ac_func" >&5
9782echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9783if eval "test \"\${$as_ac_var+set}\" = set"; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785else
9786 cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9794#define $ac_func innocuous_$ac_func
9795
9796/* System header to define __stub macros and hopefully few prototypes,
9797 which can conflict with char $ac_func (); below.
9798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9799 <limits.h> exists even on freestanding compilers. */
9800
9801#ifdef __STDC__
9802# include <limits.h>
9803#else
9804# include <assert.h>
9805#endif
9806
9807#undef $ac_func
9808
9809/* Override any gcc2 internal prototype to avoid an error. */
9810#ifdef __cplusplus
9811extern "C"
9812{
9813#endif
9814/* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9816char $ac_func ();
9817/* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821choke me
9822#else
9823char (*f) () = $ac_func;
9824#endif
9825#ifdef __cplusplus
9826}
9827#endif
9828
9829int
9830main ()
9831{
9832return f != $ac_func;
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837rm -f conftest.$ac_objext conftest$ac_exeext
9838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } &&
9846 { ac_try='test -z "$ac_cxx_werror_flag"
9847 || test ! -s conftest.err'
9848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 (eval $ac_try) 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 eval "$as_ac_var=yes"
9860else
9861 echo "$as_me: failed program was:" >&5
9862sed 's/^/| /' conftest.$ac_ext >&5
9863
9864eval "$as_ac_var=no"
9865fi
9866rm -f conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868fi
9869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9871if test `eval echo '${'$as_ac_var'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9874_ACEOF
9875
9876fi
9877done
9878
9879
9880
9881
9882
9883for ac_header in \
9884 utmp.h \
9885 utmpx.h \
9886 lastlog.h \
9887
9888do
9889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9890if eval "test \"\${$as_ac_Header+set}\" = set"; then
9891 echo "$as_me:$LINENO: checking for $ac_header" >&5
9892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9893if eval "test \"\${$as_ac_Header+set}\" = set"; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9895fi
9896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9898else
9899 # Is the header compilable?
9900echo "$as_me:$LINENO: checking $ac_header usability" >&5
9901echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9902cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h. */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h. */
9908$ac_includes_default
9909#include <$ac_header>
9910_ACEOF
9911rm -f conftest.$ac_objext
9912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9913 (eval $ac_compile) 2>conftest.er1
9914 ac_status=$?
9915 grep -v '^ *+' conftest.er1 >conftest.err
9916 rm -f conftest.er1
9917 cat conftest.err >&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } &&
9920 { ac_try='test -z "$ac_cxx_werror_flag"
9921 || test ! -s conftest.err'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923 (eval $ac_try) 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; } &&
9927 { ac_try='test -s conftest.$ac_objext'
9928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 (eval $ac_try) 2>&5
9930 ac_status=$?
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); }; }; then
9933 ac_header_compiler=yes
9934else
9935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
9937
9938ac_header_compiler=no
9939fi
9940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9942echo "${ECHO_T}$ac_header_compiler" >&6
9943
9944# Is the header present?
9945echo "$as_me:$LINENO: checking $ac_header presence" >&5
9946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9947cat >conftest.$ac_ext <<_ACEOF
9948/* confdefs.h. */
9949_ACEOF
9950cat confdefs.h >>conftest.$ac_ext
9951cat >>conftest.$ac_ext <<_ACEOF
9952/* end confdefs.h. */
9953#include <$ac_header>
9954_ACEOF
9955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9957 ac_status=$?
9958 grep -v '^ *+' conftest.er1 >conftest.err
9959 rm -f conftest.er1
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } >/dev/null; then
9963 if test -s conftest.err; then
9964 ac_cpp_err=$ac_cxx_preproc_warn_flag
9965 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9966 else
9967 ac_cpp_err=
9968 fi
9969else
9970 ac_cpp_err=yes
9971fi
9972if test -z "$ac_cpp_err"; then
9973 ac_header_preproc=yes
9974else
9975 echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 ac_header_preproc=no
9979fi
9980rm -f conftest.err conftest.$ac_ext
9981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9982echo "${ECHO_T}$ac_header_preproc" >&6
9983
9984# So? What about this header?
9985case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9986 yes:no: )
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9991 ac_header_preproc=yes
9992 ;;
9993 no:yes:* )
9994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10006 (
10007 cat <<\_ASBOX
10008## ------------------------------------------ ##
10009## Report this to the AC_PACKAGE_NAME lists. ##
10010## ------------------------------------------ ##
10011_ASBOX
10012 ) |
10013 sed "s/^/$as_me: WARNING: /" >&2
10014 ;;
10015esac
10016echo "$as_me:$LINENO: checking for $ac_header" >&5
10017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10018if eval "test \"\${$as_ac_Header+set}\" = set"; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 eval "$as_ac_Header=\$ac_header_preproc"
10022fi
10023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10025
10026fi
10027if test `eval echo '${'$as_ac_Header'}'` = yes; then
10028 cat >>confdefs.h <<_ACEOF
10029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10030_ACEOF
10031
10032fi
10033
10034done
10035
10036
10037
10187if test "${ac_cv_header_utmp_h+set}" = set; then 10038if test "${ac_cv_header_utmp_h+set}" = set; then
10188 echo "$as_me:$LINENO: checking for utmp.h" >&5 10039 echo "$as_me:$LINENO: checking for utmp.h" >&5
10189echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10040echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10190if test "${ac_cv_header_utmp_h+set}" = set; then 10041if test "${ac_cv_header_utmp_h+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6 10042 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 grep -v '^ *+' conftest.er1 >conftest.err 10063 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1 10064 rm -f conftest.er1
10214 cat conftest.err >&5 10065 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && 10067 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10068 { ac_try='test -z "$ac_cxx_werror_flag"
10069 || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5 10071 (eval $ac_try) 2>&5
10220 ac_status=$? 10072 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } && 10074 (exit $ac_status); }; } &&
10321 10173
10322fi 10174fi
10323if test $ac_cv_header_utmp_h = yes; then 10175if test $ac_cv_header_utmp_h = yes; then
10324 echo "$as_me:$LINENO: checking for struct utmp" >&5 10176 echo "$as_me:$LINENO: checking for struct utmp" >&5
10325echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10177echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10326if test "${rxvt_cv_struct_utmp+set}" = set; then 10178if test "${struct_utmp+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6 10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10328else 10180else
10329 cat >conftest.$ac_ext <<_ACEOF 10181 cat >conftest.$ac_ext <<_ACEOF
10330/* confdefs.h. */ 10182/* confdefs.h. */
10331_ACEOF 10183_ACEOF
10349 grep -v '^ *+' conftest.er1 >conftest.err 10201 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1 10202 rm -f conftest.er1
10351 cat conftest.err >&5 10203 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && 10205 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10206 { ac_try='test -z "$ac_cxx_werror_flag"
10207 || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5 10209 (eval $ac_try) 2>&5
10357 ac_status=$? 10210 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } && 10212 (exit $ac_status); }; } &&
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5 10215 (eval $ac_try) 2>&5
10363 ac_status=$? 10216 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then 10218 (exit $ac_status); }; }; then
10366 rxvt_cv_struct_utmp=yes 10219 struct_utmp=yes
10367else 10220else
10368 echo "$as_me: failed program was:" >&5 10221 echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5 10222sed 's/^/| /' conftest.$ac_ext >&5
10370 10223
10371rxvt_cv_struct_utmp=no 10224struct_utmp=no
10372fi 10225fi
10373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374fi 10227fi
10375echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10228echo "$as_me:$LINENO: result: $struct_utmp" >&5
10376echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10229echo "${ECHO_T}$struct_utmp" >&6
10377if test x$rxvt_cv_struct_utmp = xyes; then 10230if test x$struct_utmp = xyes; then
10378 10231
10379cat >>confdefs.h <<\_ACEOF 10232cat >>confdefs.h <<\_ACEOF
10380#define HAVE_STRUCT_UTMP 1 10233#define HAVE_STRUCT_UTMP 1
10381_ACEOF 10234_ACEOF
10382 10235
10383fi 10236fi
10384 10237
10385 10238
10386echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10239echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10387echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10240echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10388if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10241if test "${struct_utmp_host+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6 10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10390else 10243else
10391 cat >conftest.$ac_ext <<_ACEOF 10244 cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h. */ 10245/* confdefs.h. */
10393_ACEOF 10246_ACEOF
10411 grep -v '^ *+' conftest.er1 >conftest.err 10264 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1 10265 rm -f conftest.er1
10413 cat conftest.err >&5 10266 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && 10268 (exit $ac_status); } &&
10416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10269 { ac_try='test -z "$ac_cxx_werror_flag"
10270 || test ! -s conftest.err'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5 10272 (eval $ac_try) 2>&5
10419 ac_status=$? 10273 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } && 10275 (exit $ac_status); }; } &&
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5 10278 (eval $ac_try) 2>&5
10425 ac_status=$? 10279 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then 10281 (exit $ac_status); }; }; then
10428 rxvt_cv_struct_utmp_host=yes 10282 struct_utmp_host=yes
10429else 10283else
10430 echo "$as_me: failed program was:" >&5 10284 echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5 10285sed 's/^/| /' conftest.$ac_ext >&5
10432 10286
10433rxvt_cv_struct_utmp_host=no 10287struct_utmp_host=no
10434fi 10288fi
10435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10436fi 10290fi
10437echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10291echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10438echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10292echo "${ECHO_T}$struct_utmp_host" >&6
10439if test x$rxvt_cv_struct_utmp_host = xyes; then 10293if test x$struct_utmp_host = xyes; then
10440 10294
10441cat >>confdefs.h <<\_ACEOF 10295cat >>confdefs.h <<\_ACEOF
10442#define HAVE_UTMP_HOST 1 10296#define HAVE_UTMP_HOST 1
10443_ACEOF 10297_ACEOF
10444 10298
10445fi 10299fi
10446 10300
10447echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10301echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10448echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10302echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10449if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10303if test "${struct_utmp_pid+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6 10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10451else 10305else
10452 cat >conftest.$ac_ext <<_ACEOF 10306 cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h. */ 10307/* confdefs.h. */
10454_ACEOF 10308_ACEOF
10472 grep -v '^ *+' conftest.er1 >conftest.err 10326 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1 10327 rm -f conftest.er1
10474 cat conftest.err >&5 10328 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && 10330 (exit $ac_status); } &&
10477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10331 { ac_try='test -z "$ac_cxx_werror_flag"
10332 || test ! -s conftest.err'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5 10334 (eval $ac_try) 2>&5
10480 ac_status=$? 10335 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; } && 10337 (exit $ac_status); }; } &&
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5 10340 (eval $ac_try) 2>&5
10486 ac_status=$? 10341 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; }; then 10343 (exit $ac_status); }; }; then
10489 rxvt_cv_struct_utmp_pid=yes 10344 struct_utmp_pid=yes
10490else 10345else
10491 echo "$as_me: failed program was:" >&5 10346 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5 10347sed 's/^/| /' conftest.$ac_ext >&5
10493 10348
10494rxvt_cv_struct_utmp_pid=no 10349struct_utmp_pid=no
10495fi 10350fi
10496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10497fi 10352fi
10498echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10353echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10499echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10354echo "${ECHO_T}$struct_utmp_pid" >&6
10500if test x$rxvt_cv_struct_utmp_pid = xyes; then 10355if test x$struct_utmp_pid = xyes; then
10501 10356
10502cat >>confdefs.h <<\_ACEOF 10357cat >>confdefs.h <<\_ACEOF
10503#define HAVE_UTMP_PID 1 10358#define HAVE_UTMP_PID 1
10504_ACEOF 10359_ACEOF
10505 10360
10537 grep -v '^ *+' conftest.er1 >conftest.err 10392 grep -v '^ *+' conftest.er1 >conftest.err
10538 rm -f conftest.er1 10393 rm -f conftest.er1
10539 cat conftest.err >&5 10394 cat conftest.err >&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); } && 10396 (exit $ac_status); } &&
10542 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10397 { ac_try='test -z "$ac_cxx_werror_flag"
10398 || test ! -s conftest.err'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5 10400 (eval $ac_try) 2>&5
10545 ac_status=$? 10401 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; } && 10403 (exit $ac_status); }; } &&
10646 10502
10647fi 10503fi
10648if test $ac_cv_header_utmpx_h = yes; then 10504if test $ac_cv_header_utmpx_h = yes; then
10649 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10505 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10650echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10506echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10651if test "${rxvt_cv_struct_utmpx+set}" = set; then 10507if test "${struct_utmpx+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6 10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10653else 10509else
10654 cat >conftest.$ac_ext <<_ACEOF 10510 cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h. */ 10511/* confdefs.h. */
10656_ACEOF 10512_ACEOF
10674 grep -v '^ *+' conftest.er1 >conftest.err 10530 grep -v '^ *+' conftest.er1 >conftest.err
10675 rm -f conftest.er1 10531 rm -f conftest.er1
10676 cat conftest.err >&5 10532 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } && 10534 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10535 { ac_try='test -z "$ac_cxx_werror_flag"
10536 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5 10538 (eval $ac_try) 2>&5
10682 ac_status=$? 10539 ac_status=$?
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } && 10541 (exit $ac_status); }; } &&
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5 10544 (eval $ac_try) 2>&5
10688 ac_status=$? 10545 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then 10547 (exit $ac_status); }; }; then
10691 rxvt_cv_struct_utmpx=yes 10548 struct_utmpx=yes
10692else 10549else
10693 echo "$as_me: failed program was:" >&5 10550 echo "$as_me: failed program was:" >&5
10694sed 's/^/| /' conftest.$ac_ext >&5 10551sed 's/^/| /' conftest.$ac_ext >&5
10695 10552
10696rxvt_cv_struct_utmpx=no 10553struct_utmpx=no
10697fi 10554fi
10698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10699fi 10556fi
10700echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10557echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10701echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10558echo "${ECHO_T}$struct_utmpx" >&6
10702if test x$rxvt_cv_struct_utmpx = xyes; then 10559if test x$struct_utmpx = xyes; then
10703 10560
10704cat >>confdefs.h <<\_ACEOF 10561cat >>confdefs.h <<\_ACEOF
10705#define HAVE_STRUCT_UTMPX 1 10562#define HAVE_STRUCT_UTMPX 1
10706_ACEOF 10563_ACEOF
10707 10564
10708fi 10565fi
10709 10566
10710 10567
10711echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10568echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10712echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10569echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10713if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10570if test "${struct_utmpx_host+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6 10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else 10572else
10716 cat >conftest.$ac_ext <<_ACEOF 10573 cat >conftest.$ac_ext <<_ACEOF
10717/* confdefs.h. */ 10574/* confdefs.h. */
10718_ACEOF 10575_ACEOF
10736 grep -v '^ *+' conftest.er1 >conftest.err 10593 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1 10594 rm -f conftest.er1
10738 cat conftest.err >&5 10595 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && 10597 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10598 { ac_try='test -z "$ac_cxx_werror_flag"
10599 || test ! -s conftest.err'
10742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743 (eval $ac_try) 2>&5 10601 (eval $ac_try) 2>&5
10744 ac_status=$? 10602 ac_status=$?
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); }; } && 10604 (exit $ac_status); }; } &&
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5 10607 (eval $ac_try) 2>&5
10750 ac_status=$? 10608 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then 10610 (exit $ac_status); }; }; then
10753 rxvt_cv_struct_utmpx_host=yes 10611 struct_utmpx_host=yes
10754else 10612else
10755 echo "$as_me: failed program was:" >&5 10613 echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5 10614sed 's/^/| /' conftest.$ac_ext >&5
10757 10615
10758rxvt_cv_struct_utmpx_host=no 10616struct_utmpx_host=no
10759fi 10617fi
10760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10761fi 10619fi
10762echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10620echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10763echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10621echo "${ECHO_T}$struct_utmpx_host" >&6
10764if test x$rxvt_cv_struct_utmpx_host = xyes; then 10622if test x$struct_utmpx_host = xyes; then
10765 10623
10766cat >>confdefs.h <<\_ACEOF 10624cat >>confdefs.h <<\_ACEOF
10767#define HAVE_UTMPX_HOST 1 10625#define HAVE_UTMPX_HOST 1
10768_ACEOF 10626_ACEOF
10769 10627
10770fi 10628fi
10771 10629
10772echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 10630echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10773echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 10631echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10774if test "${rxvt_cv_struct_utmpx_session+set}" = set; then 10632if test "${struct_utmpx_session+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6 10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else 10634else
10777 cat >conftest.$ac_ext <<_ACEOF 10635 cat >conftest.$ac_ext <<_ACEOF
10778/* confdefs.h. */ 10636/* confdefs.h. */
10779_ACEOF 10637_ACEOF
10797 grep -v '^ *+' conftest.er1 >conftest.err 10655 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1 10656 rm -f conftest.er1
10799 cat conftest.err >&5 10657 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && 10659 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10660 { ac_try='test -z "$ac_cxx_werror_flag"
10661 || test ! -s conftest.err'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5 10663 (eval $ac_try) 2>&5
10805 ac_status=$? 10664 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } && 10666 (exit $ac_status); }; } &&
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5 10669 (eval $ac_try) 2>&5
10811 ac_status=$? 10670 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then 10672 (exit $ac_status); }; }; then
10814 rxvt_cv_struct_utmpx_session=yes 10673 struct_utmpx_session=yes
10815else 10674else
10816 echo "$as_me: failed program was:" >&5 10675 echo "$as_me: failed program was:" >&5
10817sed 's/^/| /' conftest.$ac_ext >&5 10676sed 's/^/| /' conftest.$ac_ext >&5
10818 10677
10819rxvt_cv_struct_utmpx_session=no 10678struct_utmpx_session=no
10820fi 10679fi
10821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10822fi 10681fi
10823echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 10682echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10824echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 10683echo "${ECHO_T}$struct_utmpx_session" >&6
10825if test x$rxvt_cv_struct_utmpx_session = xyes; then 10684if test x$struct_utmpx_session = xyes; then
10826 10685
10827cat >>confdefs.h <<\_ACEOF 10686cat >>confdefs.h <<\_ACEOF
10828#define HAVE_UTMPX_SESSION 1 10687#define HAVE_UTMPX_SESSION 1
10829_ACEOF 10688_ACEOF
10830 10689
10833fi 10692fi
10834 10693
10835 10694
10836echo "$as_me:$LINENO: checking for struct lastlog" >&5 10695echo "$as_me:$LINENO: checking for struct lastlog" >&5
10837echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10696echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10838if test "${rxvt_cv_struct_lastlog+set}" = set; then 10697if test "${struct_lastlog+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6 10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10840else 10699else
10841 cat >conftest.$ac_ext <<_ACEOF 10700 cat >conftest.$ac_ext <<_ACEOF
10842/* confdefs.h. */ 10701/* confdefs.h. */
10843_ACEOF 10702_ACEOF
10865 grep -v '^ *+' conftest.er1 >conftest.err 10724 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1 10725 rm -f conftest.er1
10867 cat conftest.err >&5 10726 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && 10728 (exit $ac_status); } &&
10870 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10729 { ac_try='test -z "$ac_cxx_werror_flag"
10730 || test ! -s conftest.err'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5 10732 (eval $ac_try) 2>&5
10873 ac_status=$? 10733 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } && 10735 (exit $ac_status); }; } &&
10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10878 (eval $ac_try) 2>&5 10738 (eval $ac_try) 2>&5
10879 ac_status=$? 10739 ac_status=$?
10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); }; }; then 10741 (exit $ac_status); }; }; then
10882 rxvt_cv_struct_lastlog=yes 10742 struct_lastlog=yes
10883else 10743else
10884 echo "$as_me: failed program was:" >&5 10744 echo "$as_me: failed program was:" >&5
10885sed 's/^/| /' conftest.$ac_ext >&5 10745sed 's/^/| /' conftest.$ac_ext >&5
10886 10746
10887rxvt_cv_struct_lastlog=no 10747struct_lastlog=no
10888fi 10748fi
10889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10890fi 10750fi
10891echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10751echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10892echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10752echo "${ECHO_T}$struct_lastlog" >&6
10893if test x$rxvt_cv_struct_lastlog = xyes; then 10753if test x$struct_lastlog = xyes; then
10894 10754
10895cat >>confdefs.h <<\_ACEOF 10755cat >>confdefs.h <<\_ACEOF
10896#define HAVE_STRUCT_LASTLOG 1 10756#define HAVE_STRUCT_LASTLOG 1
10897_ACEOF 10757_ACEOF
10898 10758
10899fi 10759fi
10900 10760
10901echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10761echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10902echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10762echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10903if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10763if test "${struct_lastlogx+set}" = set; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6 10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10905else 10765else
10906 cat >conftest.$ac_ext <<_ACEOF 10766 cat >conftest.$ac_ext <<_ACEOF
10907/* confdefs.h. */ 10767/* confdefs.h. */
10908_ACEOF 10768_ACEOF
10930 grep -v '^ *+' conftest.er1 >conftest.err 10790 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1 10791 rm -f conftest.er1
10932 cat conftest.err >&5 10792 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && 10794 (exit $ac_status); } &&
10935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10795 { ac_try='test -z "$ac_cxx_werror_flag"
10796 || test ! -s conftest.err'
10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937 (eval $ac_try) 2>&5 10798 (eval $ac_try) 2>&5
10938 ac_status=$? 10799 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } && 10801 (exit $ac_status); }; } &&
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5 10804 (eval $ac_try) 2>&5
10944 ac_status=$? 10805 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; }; then 10807 (exit $ac_status); }; }; then
10947 rxvt_cv_struct_lastlogx=yes 10808 struct_lastlogx=yes
10948else 10809else
10949 echo "$as_me: failed program was:" >&5 10810 echo "$as_me: failed program was:" >&5
10950sed 's/^/| /' conftest.$ac_ext >&5 10811sed 's/^/| /' conftest.$ac_ext >&5
10951 10812
10952rxvt_cv_struct_lastlogx=no 10813struct_lastlogx=no
10953fi 10814fi
10954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10955fi 10816fi
10956echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10817echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10957echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10818echo "${ECHO_T}$struct_lastlogx" >&6
10958if test x$rxvt_cv_struct_lastlogx = xyes; then 10819if test x$struct_lastlogx = xyes; then
10959 10820
10960cat >>confdefs.h <<\_ACEOF 10821cat >>confdefs.h <<\_ACEOF
10961#define HAVE_STRUCT_LASTLOGX 1 10822#define HAVE_STRUCT_LASTLOGX 1
10962_ACEOF 10823_ACEOF
10963 10824
10964fi 10825fi
10965 10826
10966 10827
10967echo "$as_me:$LINENO: checking where utmp is located" >&5 10828echo "$as_me:$LINENO: checking where utmp is located" >&5
10968echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10829echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
10969if test "${rxvt_cv_path_utmp+set}" = set; then 10830if test "${path_utmp+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6 10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else 10832else
10972 if test "$cross_compiling" = yes; then 10833 if test "$cross_compiling" = yes; then
10973 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10834 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10974echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10835echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10975else 10836else
10976 cat >conftest.$ac_ext <<_ACEOF 10837 cat >conftest.$ac_ext <<_ACEOF
10977/* confdefs.h. */ 10838/* confdefs.h. */
10978_ACEOF 10839_ACEOF
10979cat confdefs.h >>conftest.$ac_ext 10840cat confdefs.h >>conftest.$ac_ext
10980cat >>conftest.$ac_ext <<_ACEOF 10841cat >>conftest.$ac_ext <<_ACEOF
10981/* end confdefs.h. */ 10842/* end confdefs.h. */
10982#include <stdio.h> 10843#include <stdio.h>
10844#include <stdlib.h>
10983#include <sys/types.h> 10845#include <sys/types.h>
10984#include <utmp.h> 10846#include <utmp.h>
10985#include <errno.h> 10847#include <errno.h>
10986main() 10848main()
10987{ 10849{
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5 10878 (eval $ac_try) 2>&5
11017 ac_status=$? 10879 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then 10881 (exit $ac_status); }; }; then
11020 rxvt_cv_path_utmp=`cat conftestval` 10882 path_utmp=`cat conftestval`
11021else 10883else
11022 echo "$as_me: program exited with status $ac_status" >&5 10884 echo "$as_me: program exited with status $ac_status" >&5
11023echo "$as_me: failed program was:" >&5 10885echo "$as_me: failed program was:" >&5
11024sed 's/^/| /' conftest.$ac_ext >&5 10886sed 's/^/| /' conftest.$ac_ext >&5
11025 10887
11026( exit $ac_status ) 10888( exit $ac_status )
11027rxvt_cv_path_utmp= 10889path_utmp=
11028fi 10890fi
11029rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10891rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11030fi 10892fi
11031fi 10893fi
11032echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 10894echo "$as_me:$LINENO: result: $path_utmp" >&5
11033echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 10895echo "${ECHO_T}$path_utmp" >&6
11034if test x$rxvt_cv_path_utmp != x; then 10896if test x$path_utmp != x; then
11035 10897
11036cat >>confdefs.h <<_ACEOF 10898cat >>confdefs.h <<_ACEOF
11037#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 10899#define UTMP_FILE "$path_utmp"
11038_ACEOF 10900_ACEOF
11039 10901
11040fi 10902fi
11041 10903
11042 10904
11043echo "$as_me:$LINENO: checking where utmpx is located" >&5 10905echo "$as_me:$LINENO: checking where utmpx is located" >&5
11044echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 10906echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11045if test "${rxvt_cv_path_utmpx+set}" = set; then 10907if test "${path_utmpx+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6 10908 echo $ECHO_N "(cached) $ECHO_C" >&6
11047else 10909else
11048 if test "$cross_compiling" = yes; then 10910 if test "$cross_compiling" = yes; then
11049 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 10911 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
11050echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 10912echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
11051else 10913else
11052 cat >conftest.$ac_ext <<_ACEOF 10914 cat >conftest.$ac_ext <<_ACEOF
11053/* confdefs.h. */ 10915/* confdefs.h. */
11054_ACEOF 10916_ACEOF
11055cat confdefs.h >>conftest.$ac_ext 10917cat confdefs.h >>conftest.$ac_ext
11056cat >>conftest.$ac_ext <<_ACEOF 10918cat >>conftest.$ac_ext <<_ACEOF
11057/* end confdefs.h. */ 10919/* end confdefs.h. */
11058#include <stdio.h> 10920#include <stdio.h>
10921#include <stdlib.h>
11059#include <sys/types.h> 10922#include <sys/types.h>
11060#include <utmpx.h> 10923#include <utmpx.h>
11061#include <errno.h> 10924#include <errno.h>
11062#include <sys/stat.h> 10925#include <sys/stat.h>
11063#ifdef HAVE_STRING_H 10926#ifdef HAVE_STRING_H
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5 10965 (eval $ac_try) 2>&5
11103 ac_status=$? 10966 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then 10968 (exit $ac_status); }; }; then
11106 rxvt_cv_path_utmpx=`cat conftestval` 10969 path_utmpx=`cat conftestval`
11107else 10970else
11108 echo "$as_me: program exited with status $ac_status" >&5 10971 echo "$as_me: program exited with status $ac_status" >&5
11109echo "$as_me: failed program was:" >&5 10972echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5 10973sed 's/^/| /' conftest.$ac_ext >&5
11111 10974
11112( exit $ac_status ) 10975( exit $ac_status )
11113rxvt_cv_path_utmpx= 10976path_utmpx=
11114fi 10977fi
11115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10978rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11116fi 10979fi
11117fi 10980fi
11118echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 10981echo "$as_me:$LINENO: result: $path_utmpx" >&5
11119echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 10982echo "${ECHO_T}$path_utmpx" >&6
11120if test x$rxvt_cv_path_utmpx != x; then 10983if test x$path_utmpx != x; then
11121 10984
11122cat >>confdefs.h <<_ACEOF 10985cat >>confdefs.h <<_ACEOF
11123#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 10986#define UTMPX_FILE "$path_utmpx"
11124_ACEOF 10987_ACEOF
11125 10988
11126fi 10989fi
11127 10990
11128 10991
11129echo "$as_me:$LINENO: checking where wtmp is located" >&5 10992echo "$as_me:$LINENO: checking where wtmp is located" >&5
11130echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 10993echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11131if test "${rxvt_cv_path_wtmp+set}" = set; then 10994if test "${path_wtmp+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6 10995 echo $ECHO_N "(cached) $ECHO_C" >&6
11133else 10996else
11134 if test "$cross_compiling" = yes; then 10997 if test "$cross_compiling" = yes; then
11135 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 10998 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11136echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 10999echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11137else 11000else
11138 cat >conftest.$ac_ext <<_ACEOF 11001 cat >conftest.$ac_ext <<_ACEOF
11139/* confdefs.h. */ 11002/* confdefs.h. */
11140_ACEOF 11003_ACEOF
11141cat confdefs.h >>conftest.$ac_ext 11004cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF 11005cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */ 11006/* end confdefs.h. */
11144#include <stdio.h> 11007#include <stdio.h>
11008#include <stdlib.h>
11145#include <sys/types.h> 11009#include <sys/types.h>
11146#ifdef HAVE_UTMP_H 11010#ifdef HAVE_UTMP_H
11147#include <utmp.h> 11011#include <utmp.h>
11148#endif 11012#endif
11149#include <errno.h> 11013#include <errno.h>
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5 11044 (eval $ac_try) 2>&5
11181 ac_status=$? 11045 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; }; then 11047 (exit $ac_status); }; }; then
11184 rxvt_cv_path_wtmp=`cat conftestval` 11048 path_wtmp=`cat conftestval`
11185else 11049else
11186 echo "$as_me: program exited with status $ac_status" >&5 11050 echo "$as_me: program exited with status $ac_status" >&5
11187echo "$as_me: failed program was:" >&5 11051echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5 11052sed 's/^/| /' conftest.$ac_ext >&5
11189 11053
11190( exit $ac_status ) 11054( exit $ac_status )
11191rxvt_cv_path_wtmp= 11055path_wtmp=
11192fi 11056fi
11193rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11057rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11194fi 11058fi
11195fi 11059fi
11196echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11060echo "$as_me:$LINENO: result: $path_wtmp" >&5
11197echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11061echo "${ECHO_T}$path_wtmp" >&6
11198if test x$rxvt_cv_path_wtmp != x; then 11062if test x$path_wtmp != x; then
11199 11063
11200cat >>confdefs.h <<_ACEOF 11064cat >>confdefs.h <<_ACEOF
11201#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11065#define WTMP_FILE "$path_wtmp"
11202_ACEOF 11066_ACEOF
11203 11067
11204fi 11068fi
11205 11069
11206echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11070echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11207echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11071echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11208if test "${rxvt_cv_path_wtmpx+set}" = set; then 11072if test "${path_wtmpx+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6 11073 echo $ECHO_N "(cached) $ECHO_C" >&6
11210else 11074else
11211 if test "$cross_compiling" = yes; then 11075 if test "$cross_compiling" = yes; then
11212 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11076 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11213echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11077echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11214else 11078else
11215 cat >conftest.$ac_ext <<_ACEOF 11079 cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */ 11080/* confdefs.h. */
11217_ACEOF 11081_ACEOF
11218cat confdefs.h >>conftest.$ac_ext 11082cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF 11083cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */ 11084/* end confdefs.h. */
11221#include <stdio.h> 11085#include <stdio.h>
11086#include <stdlib.h>
11222#ifdef HAVE_UTMPX_H 11087#ifdef HAVE_UTMPX_H
11223#include <utmpx.h> 11088#include <utmpx.h>
11224#endif 11089#endif
11225#include <errno.h> 11090#include <errno.h>
11226main() 11091main()
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5 11121 (eval $ac_try) 2>&5
11257 ac_status=$? 11122 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then 11124 (exit $ac_status); }; }; then
11260 rxvt_cv_path_wtmpx=`cat conftestval` 11125 path_wtmpx=`cat conftestval`
11261else 11126else
11262 echo "$as_me: program exited with status $ac_status" >&5 11127 echo "$as_me: program exited with status $ac_status" >&5
11263echo "$as_me: failed program was:" >&5 11128echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5 11129sed 's/^/| /' conftest.$ac_ext >&5
11265 11130
11266( exit $ac_status ) 11131( exit $ac_status )
11267rxvt_cv_path_wtmpx= 11132path_wtmpx=
11268fi 11133fi
11269rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11270fi 11135fi
11271fi 11136fi
11272echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11137echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11273echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11138echo "${ECHO_T}$path_wtmpx" >&6
11274if test x$rxvt_cv_path_wtmpx != x; then 11139if test x$path_wtmpx != x; then
11275 11140
11276cat >>confdefs.h <<_ACEOF 11141cat >>confdefs.h <<_ACEOF
11277#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11142#define WTMPX_FILE "$path_wtmpx"
11278_ACEOF 11143_ACEOF
11279 11144
11280fi 11145fi
11281 11146
11282echo "$as_me:$LINENO: checking where lastlog is located" >&5 11147echo "$as_me:$LINENO: checking where lastlog is located" >&5
11283echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11148echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11284if test "${rxvt_cv_path_lastlog+set}" = set; then 11149if test "${path_lastlog+set}" = set; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6 11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11286else 11151else
11287 if test "$cross_compiling" = yes; then 11152 if test "$cross_compiling" = yes; then
11288 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11153 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11289echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11154echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11290else 11155else
11291 cat >conftest.$ac_ext <<_ACEOF 11156 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */ 11157/* confdefs.h. */
11293_ACEOF 11158_ACEOF
11294cat confdefs.h >>conftest.$ac_ext 11159cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF 11160cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */ 11161/* end confdefs.h. */
11297#include <stdio.h> 11162#include <stdio.h>
11163#include <stdlib.h>
11298#include <sys/types.h> 11164#include <sys/types.h>
11299#ifdef HAVE_UTMPX_H 11165#ifdef HAVE_UTMPX_H
11300#include <utmpx.h> 11166#include <utmpx.h>
11301#elif defined(HAVE_UTMP_H) 11167#elif defined(HAVE_UTMP_H)
11302#include <utmp.h> 11168#include <utmp.h>
11336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11337 (eval $ac_try) 2>&5 11203 (eval $ac_try) 2>&5
11338 ac_status=$? 11204 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then 11206 (exit $ac_status); }; }; then
11341 rxvt_cv_path_lastlog=`cat conftestval` 11207 path_lastlog=`cat conftestval`
11342else 11208else
11343 echo "$as_me: program exited with status $ac_status" >&5 11209 echo "$as_me: program exited with status $ac_status" >&5
11344echo "$as_me: failed program was:" >&5 11210echo "$as_me: failed program was:" >&5
11345sed 's/^/| /' conftest.$ac_ext >&5 11211sed 's/^/| /' conftest.$ac_ext >&5
11346 11212
11347( exit $ac_status ) 11213( exit $ac_status )
11348rxvt_cv_path_lastlog= 11214path_lastlog=
11349fi 11215fi
11350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11216rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11351fi 11217fi
11352fi 11218fi
11353echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11219echo "$as_me:$LINENO: result: $path_lastlog" >&5
11354echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11220echo "${ECHO_T}$path_lastlog" >&6
11355if test x$rxvt_cv_path_lastlog != x; then 11221if test x$path_lastlog != x; then
11356 11222
11357cat >>confdefs.h <<_ACEOF 11223cat >>confdefs.h <<_ACEOF
11358#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11224#define LASTLOG_FILE "$path_lastlog"
11359_ACEOF 11225_ACEOF
11360 11226
11361 if test -d "$rxvt_cv_path_lastlog"; then 11227 if test -d "$path_lastlog"; then
11362 11228
11363cat >>confdefs.h <<\_ACEOF 11229cat >>confdefs.h <<\_ACEOF
11364#define LASTLOG_IS_DIR 1 11230#define LASTLOG_IS_DIR 1
11365_ACEOF 11231_ACEOF
11366 11232
11367 fi 11233 fi
11368fi 11234fi
11369 11235
11370echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11236echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11371echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11237echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11372if test "${rxvt_cv_path_lastlogx+set}" = set; then 11238if test "${path_lastlogx+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6 11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11374else 11240else
11375 if test "$cross_compiling" = yes; then 11241 if test "$cross_compiling" = yes; then
11376 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11242 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11377echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11243echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11378else 11244else
11379 cat >conftest.$ac_ext <<_ACEOF 11245 cat >conftest.$ac_ext <<_ACEOF
11380/* confdefs.h. */ 11246/* confdefs.h. */
11381_ACEOF 11247_ACEOF
11382cat confdefs.h >>conftest.$ac_ext 11248cat confdefs.h >>conftest.$ac_ext
11383cat >>conftest.$ac_ext <<_ACEOF 11249cat >>conftest.$ac_ext <<_ACEOF
11384/* end confdefs.h. */ 11250/* end confdefs.h. */
11385#include <stdio.h> 11251#include <stdio.h>
11252#include <stdlib.h>
11386#ifdef HAVE_UTMPX_H 11253#ifdef HAVE_UTMPX_H
11387#include <utmpx.h> 11254#include <utmpx.h>
11388#endif 11255#endif
11389#include <errno.h> 11256#include <errno.h>
11390main() 11257main()
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5 11286 (eval $ac_try) 2>&5
11420 ac_status=$? 11287 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then 11289 (exit $ac_status); }; }; then
11423 rxvt_cv_path_lastlogx=`cat conftestval` 11290 path_lastlogx=`cat conftestval`
11424else 11291else
11425 echo "$as_me: program exited with status $ac_status" >&5 11292 echo "$as_me: program exited with status $ac_status" >&5
11426echo "$as_me: failed program was:" >&5 11293echo "$as_me: failed program was:" >&5
11427sed 's/^/| /' conftest.$ac_ext >&5 11294sed 's/^/| /' conftest.$ac_ext >&5
11428 11295
11429( exit $ac_status ) 11296( exit $ac_status )
11430rxvt_cv_path_lastlogx= 11297path_lastlogx=
11431fi 11298fi
11432rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11299rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11433fi 11300fi
11434fi 11301fi
11435echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11302echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11436echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11303echo "${ECHO_T}$path_lastlogx" >&6
11437if test x$rxvt_cv_path_lastlogx != x; then 11304if test x$path_lastlogx != x; then
11438 11305
11439cat >>confdefs.h <<_ACEOF 11306cat >>confdefs.h <<_ACEOF
11440#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11307#define LASTLOGX_FILE "$path_lastlogx"
11441_ACEOF 11308_ACEOF
11442 11309
11443fi 11310fi
11311
11444 11312
11445 11313
11446echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11314echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11447echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11315echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11448if test "${rxvt_cv_path_ttytab+set}" = set; then 11316if test "${rxvt_cv_path_ttytab+set}" = set; then
11470 11338
11471ac_save_LIBS=$LIBS 11339ac_save_LIBS=$LIBS
11472ac_save_CFLAGS=$CFLAGS 11340ac_save_CFLAGS=$CFLAGS
11473CFLAGS="$CFLAGS $X_CFLAGS" 11341CFLAGS="$CFLAGS $X_CFLAGS"
11474LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11342LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11475if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11476 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11477fi
11478echo "$as_me:$LINENO: checking for working Xlocale" >&5 11343echo "$as_me:$LINENO: checking for working Xlocale" >&5
11479echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6 11344echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11480if test "${rxvt_cv_func_xlocale+set}" = set; then 11345if test "${rxvt_cv_func_xlocale+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6 11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11482else 11347else
11483 if test "$cross_compiling" = yes; then 11348 if test "$cross_compiling" = yes; then
11484 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 11349 :
11485echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11486else 11350else
11487 cat >conftest.$ac_ext <<_ACEOF 11351 cat >conftest.$ac_ext <<_ACEOF
11488/* confdefs.h. */ 11352/* confdefs.h. */
11489_ACEOF 11353_ACEOF
11490cat confdefs.h >>conftest.$ac_ext 11354cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF 11355cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h. */ 11356/* end confdefs.h. */
11493#include <X11/Xlib.h> 11357#include <X11/Xlib.h>
11358#include <stdlib.h>
11494main() { 11359main() {
11495char *p; 11360char *p;
11496if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11361if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11497exit (XSupportsLocale() ? 0 : 1); 11362exit (XSupportsLocale() ? 0 : 1);
11498else 11363else
11521rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11386rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11522fi 11387fi
11523fi 11388fi
11524echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11389echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11525echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6 11390echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11391if test x$support_xim = xyes; then
11526if test x$rxvt_cv_func_xlocale = xyes; then 11392 if test x$rxvt_cv_func_xlocale = xyes; then
11527 11393
11528cat >>confdefs.h <<\_ACEOF 11394cat >>confdefs.h <<\_ACEOF
11529#define HAVE_XLOCALE 1 11395#define USE_XIM 1
11530_ACEOF 11396_ACEOF
11531 11397
11398 fi
11532fi 11399fi
11533 11400
11534echo "$as_me:$LINENO: checking for working X setlocale" >&5 11401echo "$as_me:$LINENO: checking for working X setlocale" >&5
11535echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 11402echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11536if test "${rxvt_cv_func_xsetlocale+set}" = set; then 11403if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11559 grep -v '^ *+' conftest.er1 >conftest.err 11426 grep -v '^ *+' conftest.er1 >conftest.err
11560 rm -f conftest.er1 11427 rm -f conftest.er1
11561 cat conftest.err >&5 11428 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } && 11430 (exit $ac_status); } &&
11564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11431 { ac_try='test -z "$ac_cxx_werror_flag"
11432 || test ! -s conftest.err'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5 11434 (eval $ac_try) 2>&5
11567 ac_status=$? 11435 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; } && 11437 (exit $ac_status); }; } &&
11622 grep -v '^ *+' conftest.er1 >conftest.err 11490 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1 11491 rm -f conftest.er1
11624 cat conftest.err >&5 11492 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } && 11494 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11495 { ac_try='test -z "$ac_cxx_werror_flag"
11496 || test ! -s conftest.err'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5 11498 (eval $ac_try) 2>&5
11630 ac_status=$? 11499 ac_status=$?
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } && 11501 (exit $ac_status); }; } &&
11683 grep -v '^ *+' conftest.er1 >conftest.err 11552 grep -v '^ *+' conftest.er1 >conftest.err
11684 rm -f conftest.er1 11553 rm -f conftest.er1
11685 cat conftest.err >&5 11554 cat conftest.err >&5
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); } && 11556 (exit $ac_status); } &&
11688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11557 { ac_try='test -z "$ac_cxx_werror_flag"
11558 || test ! -s conftest.err'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5 11560 (eval $ac_try) 2>&5
11691 ac_status=$? 11561 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; } && 11563 (exit $ac_status); }; } &&
11715#define HAVE_NL_LANGINFO 1 11585#define HAVE_NL_LANGINFO 1
11716_ACEOF 11586_ACEOF
11717 11587
11718fi 11588fi
11719 11589
11590
11720echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 11591echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11721echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 11592echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11722if test "${rxvt_can_pass_fds+set}" = set; then 11593if test "${can_pass_fds+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6 11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11724else 11595else
11725 cat >conftest.$ac_ext <<_ACEOF 11596 cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */ 11597/* confdefs.h. */
11727_ACEOF 11598_ACEOF
11728cat confdefs.h >>conftest.$ac_ext 11599cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF 11600cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */ 11601/* end confdefs.h. */
11731 11602
11603#include <cstddef> // broken bsds (is that redundant?) need this
11732#include <sys/types.h> 11604#include <sys/types.h>
11733#include <sys/socket.h> 11605#include <sys/socket.h>
11606#include <sys/uio.h>
11734 11607
11735int 11608int
11736main () 11609main ()
11737{ 11610{
11738 11611
11771 grep -v '^ *+' conftest.er1 >conftest.err 11644 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1 11645 rm -f conftest.er1
11773 cat conftest.err >&5 11646 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && 11648 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11649 { ac_try='test -z "$ac_cxx_werror_flag"
11650 || test ! -s conftest.err'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5 11652 (eval $ac_try) 2>&5
11779 ac_status=$? 11653 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; } && 11655 (exit $ac_status); }; } &&
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5 11658 (eval $ac_try) 2>&5
11785 ac_status=$? 11659 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; }; then 11661 (exit $ac_status); }; }; then
11788 rxvt_can_pass_fds=yes 11662 can_pass_fds=yes
11789else 11663else
11790 echo "$as_me: failed program was:" >&5 11664 echo "$as_me: failed program was:" >&5
11791sed 's/^/| /' conftest.$ac_ext >&5 11665sed 's/^/| /' conftest.$ac_ext >&5
11792 11666
11793rxvt_can_pass_fds=no 11667can_pass_fds=no
11794fi 11668fi
11795rm -f conftest.err conftest.$ac_objext \ 11669rm -f conftest.err conftest.$ac_objext \
11796 conftest$ac_exeext conftest.$ac_ext 11670 conftest$ac_exeext conftest.$ac_ext
11797fi 11671fi
11798echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 11672echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11799echo "${ECHO_T}$rxvt_can_pass_fds" >&6 11673echo "${ECHO_T}$can_pass_fds" >&6
11800if test x$rxvt_can_pass_fds = xyes; then 11674if test x$can_pass_fds = xyes; then
11801 11675
11802cat >>confdefs.h <<\_ACEOF 11676cat >>confdefs.h <<\_ACEOF
11803#define HAVE_UNIX_FDPASS 1 11677#define HAVE_UNIX_FDPASS 1
11804_ACEOF 11678_ACEOF
11805 11679
11806else 11680else
11807 { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 11681 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11808echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} 11682echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11809 { (exit 1); exit 1; }; } 11683 { (exit 1); exit 1; }; }
11810fi 11684fi
11685
11811 11686
11812echo "$as_me:$LINENO: checking for broken XIM callback" >&5 11687echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11813echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 11688echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11814if test "${rxvt_broken_ximcb+set}" = set; then 11689if test "${rxvt_broken_ximcb+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6 11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 grep -v '^ *+' conftest.er1 >conftest.err 11708 grep -v '^ *+' conftest.er1 >conftest.err
11834 rm -f conftest.er1 11709 rm -f conftest.er1
11835 cat conftest.err >&5 11710 cat conftest.err >&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && 11712 (exit $ac_status); } &&
11838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11713 { ac_try='test -z "$ac_cxx_werror_flag"
11714 || test ! -s conftest.err'
11839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11840 (eval $ac_try) 2>&5 11716 (eval $ac_try) 2>&5
11841 ac_status=$? 11717 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } && 11719 (exit $ac_status); }; } &&
11865#define XIMCB_PROTO_BROKEN 1 11741#define XIMCB_PROTO_BROKEN 1
11866_ACEOF 11742_ACEOF
11867 11743
11868fi 11744fi
11869 11745
11870if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
11871 echo "$as_me:$LINENO: checking for openpty" >&5
11872echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11873if test "${ac_cv_func_openpty+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875else
11876 cat >conftest.$ac_ext <<_ACEOF
11877/* confdefs.h. */
11878_ACEOF
11879cat confdefs.h >>conftest.$ac_ext
11880cat >>conftest.$ac_ext <<_ACEOF
11881/* end confdefs.h. */
11882/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11884#define openpty innocuous_openpty
11885 11746
11886/* System header to define __stub macros and hopefully few prototypes,
11887 which can conflict with char openpty (); below.
11888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11889 <limits.h> exists even on freestanding compilers. */
11890 11747
11891#ifdef __STDC__
11892# include <limits.h>
11893#else
11894# include <assert.h>
11895#endif
11896 11748
11897#undef openpty
11898 11749
11899/* Override any gcc2 internal prototype to avoid an error. */
11900#ifdef __cplusplus
11901extern "C"
11902{
11903#endif
11904/* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */
11906char openpty ();
11907/* The GNU C library defines this for functions which it implements
11908 to always fail with ENOSYS. Some functions are actually named
11909 something starting with __ and the normal name is an alias. */
11910#if defined (__stub_openpty) || defined (__stub___openpty)
11911choke me
11912#else
11913char (*f) () = openpty;
11914#endif
11915#ifdef __cplusplus
11916}
11917#endif
11918 11750
11919int
11920main ()
11921{
11922return f != openpty;
11923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext conftest$ac_exeext
11928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929 (eval $ac_link) 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; } &&
11942 { ac_try='test -s conftest$ac_exeext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_func_openpty=yes
11949else
11950 echo "$as_me: failed program was:" >&5
11951sed 's/^/| /' conftest.$ac_ext >&5
11952 11751
11953ac_cv_func_openpty=no 11752for ac_header in \
11954fi 11753 pty.h \
11955rm -f conftest.err conftest.$ac_objext \ 11754 util.h \
11956 conftest$ac_exeext conftest.$ac_ext 11755 libutil.h \
11957fi 11756 sys/ioctl.h \
11958echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 11757 sys/stropts.h \
11959echo "${ECHO_T}$ac_cv_func_openpty" >&6
11960if test $ac_cv_func_openpty = yes; then
11961 :
11962else
11963 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
11964echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
11965if test "${ac_cv_lib_util_openpty+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968 ac_check_lib_save_LIBS=$LIBS
11969LIBS="-lutil $LIBS"
11970cat >conftest.$ac_ext <<_ACEOF
11971/* confdefs.h. */
11972_ACEOF
11973cat confdefs.h >>conftest.$ac_ext
11974cat >>conftest.$ac_ext <<_ACEOF
11975/* end confdefs.h. */
11976 11758
11977/* Override any gcc2 internal prototype to avoid an error. */
11978#ifdef __cplusplus
11979extern "C"
11980#endif
11981/* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11983char openpty ();
11984int
11985main ()
11986{
11987openpty ();
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext conftest$ac_exeext
11993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11995 ac_status=$?
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest$ac_exeext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 ac_cv_lib_util_openpty=yes
12014else
12015 echo "$as_me: failed program was:" >&5
12016sed 's/^/| /' conftest.$ac_ext >&5
12017
12018ac_cv_lib_util_openpty=no
12019fi
12020rm -f conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022LIBS=$ac_check_lib_save_LIBS
12023fi
12024echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12025echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12026if test $ac_cv_lib_util_openpty = yes; then
12027 LIBS="$LIBS -lutil"
12028fi
12029
12030fi
12031
12032fi
12033
12034echo "$as_me:$LINENO: checking for pty/tty type" >&5
12035echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12036if test "${rxvt_cv_ptys+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12040 rxvt_cv_ptys=OPENPTY
12041 else if test x$ac_cv_func_getpt = xyes; then
12042 rxvt_cv_ptys=GLIBC
12043 else if test x$ac_cv_func_posix_openpt = xyes; then
12044 rxvt_cv_ptys=POSIX
12045 else if test x$ac_cv_func__getpty = xyes; then
12046 rxvt_cv_ptys=SGI4
12047 else if test -c /dev/ttyp20; then
12048 rxvt_cv_ptys=SCO
12049 else if test -c /dev/ptym/clone; then
12050 rxvt_cv_ptys=HPUX
12051 else if test -c /dev/ptc -a -c /dev/pts; then
12052 rxvt_cv_ptys=PTC
12053 else if test -c /dev/ptc -a -d /dev/pts; then
12054 rxvt_cv_ptys=PTC
12055 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12056 rxvt_cv_ptys=STREAMS
12057 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12058 rxvt_cv_ptys=STREAMS
12059 else
12060 rxvt_cv_ptys=BSD
12061fi
12062fi
12063fi
12064fi
12065fi
12066fi
12067fi
12068fi
12069fi
12070fi
12071
12072fi
12073echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12074echo "${ECHO_T}$rxvt_cv_ptys" >&6
12075
12076if test x$rxvt_cv_ptys = xGLIBC; then
12077
12078cat >>confdefs.h <<\_ACEOF
12079#define PTYS_ARE_GETPT 1
12080_ACEOF
12081
12082fi
12083if test x$rxvt_cv_ptys = xPOSIX; then
12084
12085cat >>confdefs.h <<\_ACEOF
12086#define PTYS_ARE_POSIX 1
12087_ACEOF
12088
12089fi
12090if test x$rxvt_cv_ptys = xOPENPTY; then
12091
12092cat >>confdefs.h <<\_ACEOF
12093#define PTYS_ARE_OPENPTY 1
12094_ACEOF
12095
12096fi
12097if test x$rxvt_cv_ptys = xSCO; then
12098
12099cat >>confdefs.h <<\_ACEOF
12100#define PTYS_ARE_NUMERIC 1
12101_ACEOF
12102
12103fi
12104if test x$rxvt_cv_ptys = xSTREAMS; then
12105
12106cat >>confdefs.h <<\_ACEOF
12107#define PTYS_ARE_PTMX 1
12108_ACEOF
12109
12110fi
12111if test x$rxvt_cv_ptys = xPTC; then
12112
12113cat >>confdefs.h <<\_ACEOF
12114#define PTYS_ARE_PTC 1
12115_ACEOF
12116
12117fi
12118if test x$rxvt_cv_ptys = xSGI4; then
12119
12120cat >>confdefs.h <<\_ACEOF
12121#define PTYS_ARE__GETPTY 1
12122_ACEOF
12123
12124fi
12125if test x$rxvt_cv_ptys = xHPUX; then
12126
12127cat >>confdefs.h <<\_ACEOF
12128#define PTYS_ARE_CLONE 1
12129_ACEOF
12130
12131fi
12132if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12133
12134cat >>confdefs.h <<\_ACEOF
12135#define PTYS_ARE_SEARCHED 1
12136_ACEOF
12137
12138fi
12139
12140
12141{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
12142echo "$as_me: checking for pty ranges..." >&6;}
12143ptys=`echo /dev/pty??`
12144pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12145pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12146if test x$pch1 != x; then
12147
12148cat >>confdefs.h <<_ACEOF
12149#define PTYCHAR1 "$pch1"
12150_ACEOF
12151
12152fi
12153if test x$pch2 != x; then
12154
12155cat >>confdefs.h <<_ACEOF
12156#define PTYCHAR2 "$pch2"
12157_ACEOF
12158
12159fi
12160
12161if test x$support_xft = xyes; then
12162 LIBS="$LIBS `pkg-config xft --libs`"
12163 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12164
12165
12166for ac_header in X11/Xft/Xft.h
12167do 11759do
12168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12169if eval "test \"\${$as_ac_Header+set}\" = set"; then 11761if eval "test \"\${$as_ac_Header+set}\" = set"; then
12170 echo "$as_me:$LINENO: checking for $ac_header" >&5 11762 echo "$as_me:$LINENO: checking for $ac_header" >&5
12171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12194 grep -v '^ *+' conftest.er1 >conftest.err 11786 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1 11787 rm -f conftest.er1
12196 cat conftest.err >&5 11788 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && 11790 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11791 { ac_try='test -z "$ac_cxx_werror_flag"
11792 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5 11794 (eval $ac_try) 2>&5
12202 ac_status=$? 11795 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } && 11797 (exit $ac_status); }; } &&
12305if test `eval echo '${'$as_ac_Header'}'` = yes; then 11898if test `eval echo '${'$as_ac_Header'}'` = yes; then
12306 cat >>confdefs.h <<_ACEOF 11899 cat >>confdefs.h <<_ACEOF
12307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12308_ACEOF 11901_ACEOF
12309 11902
11903fi
11904
11905done
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917for ac_func in \
11918 revoke \
11919 _getpty \
11920 getpt \
11921 posix_openpt \
11922 isastream \
11923 setuid \
11924 seteuid \
11925 setreuid \
11926 setresuid \
11927
11928do
11929as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11930echo "$as_me:$LINENO: checking for $ac_func" >&5
11931echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11932if eval "test \"\${$as_ac_var+set}\" = set"; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934else
11935 cat >conftest.$ac_ext <<_ACEOF
11936/* confdefs.h. */
11937_ACEOF
11938cat confdefs.h >>conftest.$ac_ext
11939cat >>conftest.$ac_ext <<_ACEOF
11940/* end confdefs.h. */
11941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943#define $ac_func innocuous_$ac_func
11944
11945/* System header to define __stub macros and hopefully few prototypes,
11946 which can conflict with char $ac_func (); below.
11947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948 <limits.h> exists even on freestanding compilers. */
11949
11950#ifdef __STDC__
11951# include <limits.h>
11952#else
11953# include <assert.h>
11954#endif
11955
11956#undef $ac_func
11957
11958/* Override any gcc2 internal prototype to avoid an error. */
11959#ifdef __cplusplus
11960extern "C"
11961{
11962#endif
11963/* We use char because int might match the return type of a gcc2
11964 builtin and then its argument prototype would still apply. */
11965char $ac_func ();
11966/* The GNU C library defines this for functions which it implements
11967 to always fail with ENOSYS. Some functions are actually named
11968 something starting with __ and the normal name is an alias. */
11969#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11970choke me
11971#else
11972char (*f) () = $ac_func;
11973#endif
11974#ifdef __cplusplus
11975}
11976#endif
11977
11978int
11979main ()
11980{
11981return f != $ac_func;
11982 ;
11983 return 0;
11984}
11985_ACEOF
11986rm -f conftest.$ac_objext conftest$ac_exeext
11987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988 (eval $ac_link) 2>conftest.er1
11989 ac_status=$?
11990 grep -v '^ *+' conftest.er1 >conftest.err
11991 rm -f conftest.er1
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -z "$ac_cxx_werror_flag"
11996 || test ! -s conftest.err'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; } &&
12002 { ac_try='test -s conftest$ac_exeext'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; }; then
12008 eval "$as_ac_var=yes"
12009else
12010 echo "$as_me: failed program was:" >&5
12011sed 's/^/| /' conftest.$ac_ext >&5
12012
12013eval "$as_ac_var=no"
12014fi
12015rm -f conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017fi
12018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12020if test `eval echo '${'$as_ac_var'}'` = yes; then
12021 cat >>confdefs.h <<_ACEOF
12022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12023_ACEOF
12024
12025fi
12026done
12027
12028
12029have_clone=no
12030
12031echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12032echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12033if test -e /dev/ptym/clone; then
12034 echo "$as_me:$LINENO: result: yes" >&5
12035echo "${ECHO_T}yes" >&6
12036
12037cat >>confdefs.h <<\_ACEOF
12038#define HAVE_DEV_CLONE 1
12039_ACEOF
12040
12041
12042cat >>confdefs.h <<\_ACEOF
12043#define CLONE_DEVICE "/dev/ptym/clone"
12044_ACEOF
12045
12046 have_clone=yes
12047else
12048 echo "$as_me:$LINENO: result: no" >&5
12049echo "${ECHO_T}no" >&6
12050fi
12051
12052echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12053echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12054if test -e /dev/ptc; then
12055 echo "$as_me:$LINENO: result: yes" >&5
12056echo "${ECHO_T}yes" >&6
12057
12058cat >>confdefs.h <<\_ACEOF
12059#define HAVE_DEV_PTC 1
12060_ACEOF
12061
12062
12063cat >>confdefs.h <<\_ACEOF
12064#define CLONE_DEVICE "/dev/ptc"
12065_ACEOF
12066
12067 have_clone=yes
12068else
12069 echo "$as_me:$LINENO: result: no" >&5
12070echo "${ECHO_T}no" >&6
12071fi
12072
12073case $host in
12074 *-*-cygwin*)
12075 have_clone=yes
12076
12077cat >>confdefs.h <<\_ACEOF
12078#define CLONE_DEVICE "/dev/ptmx"
12079_ACEOF
12080
12081 ;;
12082 *)
12083 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12084echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12085 if test -e /dev/ptmx; then
12086 echo "$as_me:$LINENO: result: yes" >&5
12087echo "${ECHO_T}yes" >&6
12088
12089cat >>confdefs.h <<\_ACEOF
12090#define HAVE_DEV_PTMX 1
12091_ACEOF
12092
12093
12094cat >>confdefs.h <<\_ACEOF
12095#define CLONE_DEVICE "/dev/ptmx"
12096_ACEOF
12097
12098 have_clone=yes
12099 else
12100 echo "$as_me:$LINENO: result: no" >&5
12101echo "${ECHO_T}no" >&6
12102 fi
12103 ;;
12104esac
12105
12106if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12107 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12108echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
12115#include <stdlib.h>
12116int
12117main ()
12118{
12119grantpt(0);unlockpt(0);ptsname(0);
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext conftest$ac_exeext
12125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12126 (eval $ac_link) 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
12133 { ac_try='test -z "$ac_cxx_werror_flag"
12134 || test ! -s conftest.err'
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); }; } &&
12140 { ac_try='test -s conftest$ac_exeext'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 unix98_pty=yes
12147
12148cat >>confdefs.h <<\_ACEOF
12149#define UNIX98_PTY 1
12150_ACEOF
12151
12152 echo "$as_me:$LINENO: result: yes" >&5
12153echo "${ECHO_T}yes" >&6
12154else
12155 echo "$as_me: failed program was:" >&5
12156sed 's/^/| /' conftest.$ac_ext >&5
12157
12158echo "$as_me:$LINENO: result: no" >&5
12159echo "${ECHO_T}no" >&6
12160fi
12161rm -f conftest.err conftest.$ac_objext \
12162 conftest$ac_exeext conftest.$ac_ext
12163fi
12164
12165if test -z "$unix98_pty"; then
12166
12167for ac_func in openpty
12168do
12169as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12170echo "$as_me:$LINENO: checking for $ac_func" >&5
12171echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12172if eval "test \"\${$as_ac_var+set}\" = set"; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174else
12175 cat >conftest.$ac_ext <<_ACEOF
12176/* confdefs.h. */
12177_ACEOF
12178cat confdefs.h >>conftest.$ac_ext
12179cat >>conftest.$ac_ext <<_ACEOF
12180/* end confdefs.h. */
12181/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12183#define $ac_func innocuous_$ac_func
12184
12185/* System header to define __stub macros and hopefully few prototypes,
12186 which can conflict with char $ac_func (); below.
12187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12188 <limits.h> exists even on freestanding compilers. */
12189
12190#ifdef __STDC__
12191# include <limits.h>
12192#else
12193# include <assert.h>
12194#endif
12195
12196#undef $ac_func
12197
12198/* Override any gcc2 internal prototype to avoid an error. */
12199#ifdef __cplusplus
12200extern "C"
12201{
12202#endif
12203/* We use char because int might match the return type of a gcc2
12204 builtin and then its argument prototype would still apply. */
12205char $ac_func ();
12206/* The GNU C library defines this for functions which it implements
12207 to always fail with ENOSYS. Some functions are actually named
12208 something starting with __ and the normal name is an alias. */
12209#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12210choke me
12211#else
12212char (*f) () = $ac_func;
12213#endif
12214#ifdef __cplusplus
12215}
12216#endif
12217
12218int
12219main ()
12220{
12221return f != $ac_func;
12222 ;
12223 return 0;
12224}
12225_ACEOF
12226rm -f conftest.$ac_objext conftest$ac_exeext
12227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_cxx_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest$ac_exeext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 eval "$as_ac_var=yes"
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
12253eval "$as_ac_var=no"
12254fi
12255rm -f conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257fi
12258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12259echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12260if test `eval echo '${'$as_ac_var'}'` = yes; then
12261 cat >>confdefs.h <<_ACEOF
12262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12263_ACEOF
12264
12265else
12266 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12267echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12268if test "${ac_cv_lib_util_openpty+set}" = set; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 ac_check_lib_save_LIBS=$LIBS
12272LIBS="-lutil $LIBS"
12273cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
12279
12280/* Override any gcc2 internal prototype to avoid an error. */
12281#ifdef __cplusplus
12282extern "C"
12283#endif
12284/* We use char because int might match the return type of a gcc2
12285 builtin and then its argument prototype would still apply. */
12286char openpty ();
12287int
12288main ()
12289{
12290openpty ();
12291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
12296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12297 (eval $ac_link) 2>conftest.er1
12298 ac_status=$?
12299 grep -v '^ *+' conftest.er1 >conftest.err
12300 rm -f conftest.er1
12301 cat conftest.err >&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -z "$ac_cxx_werror_flag"
12305 || test ! -s conftest.err'
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest$ac_exeext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_lib_util_openpty=yes
12318else
12319 echo "$as_me: failed program was:" >&5
12320sed 's/^/| /' conftest.$ac_ext >&5
12321
12322ac_cv_lib_util_openpty=no
12323fi
12324rm -f conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326LIBS=$ac_check_lib_save_LIBS
12327fi
12328echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12329echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12330if test $ac_cv_lib_util_openpty = yes; then
12331 cat >>confdefs.h <<\_ACEOF
12332#define HAVE_OPENPTY 1
12333_ACEOF
12334 LIBS="$LIBS -lutil"
12335fi
12336
12337fi
12338done
12339
12340fi
12341
12342
12343
12344echo "$as_me:$LINENO: checking for tty group" >&5
12345echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12346if test "${tty_group+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12348else
12349 if test "$cross_compiling" = yes; then
12350 tty_group=no
12351else
12352 cat >conftest.$ac_ext <<_ACEOF
12353/* confdefs.h. */
12354_ACEOF
12355cat confdefs.h >>conftest.$ac_ext
12356cat >>conftest.$ac_ext <<_ACEOF
12357/* end confdefs.h. */
12358
12359#include <sys/types.h>
12360#include <sys/stat.h>
12361#include <unistd.h>
12362#include <grp.h>
12363
12364main()
12365{
12366 struct stat st;
12367 struct group *gr;
12368 char *tty;
12369 gr = getgrnam("tty");
12370 tty = ttyname(0);
12371 if (gr != 0
12372 && tty != 0
12373 && (stat(tty, &st)) == 0
12374 && st.st_gid == gr->gr_gid)
12375 return 0;
12376 else
12377 return 1;
12378}
12379_ACEOF
12380rm -f conftest$ac_exeext
12381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382 (eval $ac_link) 2>&5
12383 ac_status=$?
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 tty_group=yes
12392else
12393 echo "$as_me: program exited with status $ac_status" >&5
12394echo "$as_me: failed program was:" >&5
12395sed 's/^/| /' conftest.$ac_ext >&5
12396
12397( exit $ac_status )
12398tty_group=no
12399fi
12400rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12401fi
12402fi
12403echo "$as_me:$LINENO: result: $tty_group" >&5
12404echo "${ECHO_T}$tty_group" >&6
12405if test x$tty_group = xyes; then
12406
12407cat >>confdefs.h <<\_ACEOF
12408#define TTY_GID_SUPPORT 1
12409_ACEOF
12410
12411fi
12412
12413if test x$support_xft = xyes; then
12414 # Extract the first word of "pkg-config", so it can be a program name with args.
12415set dummy pkg-config; ac_word=$2
12416echo "$as_me:$LINENO: checking for $ac_word" >&5
12417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12418if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421 case $PKG_CONFIG in
12422 [\\/]* | ?:[\\/]*)
12423 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12424 ;;
12425 *)
12426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427for as_dir in $PATH
12428do
12429 IFS=$as_save_IFS
12430 test -z "$as_dir" && as_dir=.
12431 for ac_exec_ext in '' $ac_executable_extensions; do
12432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12433 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12435 break 2
12436 fi
12437done
12438done
12439
12440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12441 ;;
12442esac
12443fi
12444PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12445
12446if test -n "$PKG_CONFIG"; then
12447 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12448echo "${ECHO_T}$PKG_CONFIG" >&6
12449else
12450 echo "$as_me:$LINENO: result: no" >&5
12451echo "${ECHO_T}no" >&6
12452fi
12453
12454 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12455 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12456 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12457 else
12458 # Extract the first word of "xft-config", so it can be a program name with args.
12459set dummy xft-config; ac_word=$2
12460echo "$as_me:$LINENO: checking for $ac_word" >&5
12461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12462if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12464else
12465 case $XFT_CONFIG in
12466 [\\/]* | ?:[\\/]*)
12467 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12468 ;;
12469 *)
12470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in $PATH
12472do
12473 IFS=$as_save_IFS
12474 test -z "$as_dir" && as_dir=.
12475 for ac_exec_ext in '' $ac_executable_extensions; do
12476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12479 break 2
12480 fi
12481done
12482done
12483
12484 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12485 ;;
12486esac
12487fi
12488XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12489
12490if test -n "$XFT_CONFIG"; then
12491 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12492echo "${ECHO_T}$XFT_CONFIG" >&6
12493else
12494 echo "$as_me:$LINENO: result: no" >&5
12495echo "${ECHO_T}no" >&6
12496fi
12497
12498 if test $XFT_CONFIG != no; then
12499 LIBS="$LIBS `$XFT_CONFIG --libs`"
12500 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12501 fi
12502 fi
12503
12504
12505for ac_header in X11/Xft/Xft.h
12506do
12507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12508if eval "test \"\${$as_ac_Header+set}\" = set"; then
12509 echo "$as_me:$LINENO: checking for $ac_header" >&5
12510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12511if eval "test \"\${$as_ac_Header+set}\" = set"; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513fi
12514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12516else
12517 # Is the header compilable?
12518echo "$as_me:$LINENO: checking $ac_header usability" >&5
12519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12520cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526$ac_includes_default
12527#include <$ac_header>
12528_ACEOF
12529rm -f conftest.$ac_objext
12530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12531 (eval $ac_compile) 2>conftest.er1
12532 ac_status=$?
12533 grep -v '^ *+' conftest.er1 >conftest.err
12534 rm -f conftest.er1
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_cxx_werror_flag"
12539 || test ! -s conftest.err'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; } &&
12545 { ac_try='test -s conftest.$ac_objext'
12546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547 (eval $ac_try) 2>&5
12548 ac_status=$?
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; }; then
12551 ac_header_compiler=yes
12552else
12553 echo "$as_me: failed program was:" >&5
12554sed 's/^/| /' conftest.$ac_ext >&5
12555
12556ac_header_compiler=no
12557fi
12558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12560echo "${ECHO_T}$ac_header_compiler" >&6
12561
12562# Is the header present?
12563echo "$as_me:$LINENO: checking $ac_header presence" >&5
12564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12565cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571#include <$ac_header>
12572_ACEOF
12573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12575 ac_status=$?
12576 grep -v '^ *+' conftest.er1 >conftest.err
12577 rm -f conftest.er1
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } >/dev/null; then
12581 if test -s conftest.err; then
12582 ac_cpp_err=$ac_cxx_preproc_warn_flag
12583 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12584 else
12585 ac_cpp_err=
12586 fi
12587else
12588 ac_cpp_err=yes
12589fi
12590if test -z "$ac_cpp_err"; then
12591 ac_header_preproc=yes
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_header_preproc=no
12597fi
12598rm -f conftest.err conftest.$ac_ext
12599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12600echo "${ECHO_T}$ac_header_preproc" >&6
12601
12602# So? What about this header?
12603case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12604 yes:no: )
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12609 ac_header_preproc=yes
12610 ;;
12611 no:yes:* )
12612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12624 (
12625 cat <<\_ASBOX
12626## ------------------------------------------ ##
12627## Report this to the AC_PACKAGE_NAME lists. ##
12628## ------------------------------------------ ##
12629_ASBOX
12630 ) |
12631 sed "s/^/$as_me: WARNING: /" >&2
12632 ;;
12633esac
12634echo "$as_me:$LINENO: checking for $ac_header" >&5
12635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12636if eval "test \"\${$as_ac_Header+set}\" = set"; then
12637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638else
12639 eval "$as_ac_Header=\$ac_header_preproc"
12640fi
12641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12643
12644fi
12645if test `eval echo '${'$as_ac_Header'}'` = yes; then
12646 cat >>confdefs.h <<_ACEOF
12647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12648_ACEOF
12649
12310else 12650else
12311 support_xft=no 12651 support_xft=no
12312fi 12652fi
12313 12653
12314done 12654done
12350 grep -v '^ *+' conftest.er1 >conftest.err 12690 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1 12691 rm -f conftest.er1
12352 cat conftest.err >&5 12692 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } && 12694 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12695 { ac_try='test -z "$ac_cxx_werror_flag"
12696 || test ! -s conftest.err'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5 12698 (eval $ac_try) 2>&5
12358 ac_status=$? 12699 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; } && 12701 (exit $ac_status); }; } &&
12433 12774
12434fi 12775fi
12435if test x$support_inheritpixmap = xyes; then 12776if test x$support_inheritpixmap = xyes; then
12436 12777
12437cat >>confdefs.h <<\_ACEOF 12778cat >>confdefs.h <<\_ACEOF
12438#define TRANSPARENT 1 12779#define ENABLE_TRANSPARENCY 1
12439_ACEOF 12780_ACEOF
12440 12781
12441fi 12782fi
12442if test x$support_keepscrolling = xno; then 12783if test x$support_keepscrolling = xno; then
12443 12784
12451cat >>confdefs.h <<\_ACEOF 12792cat >>confdefs.h <<\_ACEOF
12452#define SELECTION_SCROLLING 1 12793#define SELECTION_SCROLLING 1
12453_ACEOF 12794_ACEOF
12454 12795
12455fi 12796fi
12456if test x$support_frills = xyes; then
12457
12458cat >>confdefs.h <<\_ACEOF
12459#define ENABLE_FRILLS 1
12460_ACEOF
12461
12462fi
12463if test x$support_24bit = xyes; then
12464
12465cat >>confdefs.h <<\_ACEOF
12466#define PREFER_24BIT 1
12467_ACEOF
12468
12469fi
12470if test x$support_mousewheel = xyes; then 12797if test x$support_mousewheel = xyes; then
12471 12798
12472cat >>confdefs.h <<\_ACEOF 12799cat >>confdefs.h <<\_ACEOF
12473#define MOUSE_WHEEL 1 12800#define MOUSE_WHEEL 1
12474_ACEOF 12801_ACEOF
12479cat >>confdefs.h <<\_ACEOF 12806cat >>confdefs.h <<\_ACEOF
12480#define MOUSE_SLIP_WHEELING 1 12807#define MOUSE_SLIP_WHEELING 1
12481_ACEOF 12808_ACEOF
12482 12809
12483fi 12810fi
12484if test x$support_utmp = xyes; then
12485
12486cat >>confdefs.h <<\_ACEOF
12487#define UTMP_SUPPORT 1
12488_ACEOF
12489
12490fi
12491if test x$support_wtmp = xyes; then
12492
12493cat >>confdefs.h <<\_ACEOF
12494#define WTMP_SUPPORT 1
12495_ACEOF
12496
12497fi
12498if test x$support_lastlog = xyes; then
12499
12500cat >>confdefs.h <<\_ACEOF
12501#define LASTLOG_SUPPORT 1
12502_ACEOF
12503
12504fi
12505if test x$support_xim = xyes -o x$multichar_set = xyes; then 12811if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12506 if test x$rxvt_cv_func_xlocale = xyes; then
12507
12508cat >>confdefs.h <<\_ACEOF
12509#define USE_XIM 1
12510_ACEOF
12511
12512 fi
12513fi
12514if test x$support_xpm = xyes; then
12515 12812
12516cat >>confdefs.h <<\_ACEOF 12813cat >>confdefs.h <<\_ACEOF
12517#define XPM_BACKGROUND 1 12814#define XPM_BACKGROUND 1
12518_ACEOF 12815_ACEOF
12519 12816
12520fi 12817fi
12818
12819if test x$support_afterimage = xyes; then
12820
12821cat >>confdefs.h <<\_ACEOF
12822#define HAVE_AFTERIMAGE 1
12823_ACEOF
12824
12825fi
12826
12827if test x$support_afterstep = xyes; then
12828
12829cat >>confdefs.h <<\_ACEOF
12830#define AFTERSTEP_INTEGRATION 1
12831_ACEOF
12832
12833fi
12834
12521if test x$support_scroll_rxvt = xyes; then 12835if test x$support_scroll_rxvt = xyes; then
12522 12836
12523cat >>confdefs.h <<\_ACEOF 12837cat >>confdefs.h <<\_ACEOF
12524#define RXVT_SCROLLBAR 1 12838#define RXVT_SCROLLBAR 1
12525_ACEOF 12839_ACEOF
12738 grep -v '^ *+' conftest.er1 >conftest.err 13052 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1 13053 rm -f conftest.er1
12740 cat conftest.err >&5 13054 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && 13056 (exit $ac_status); } &&
12743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13057 { ac_try='test -z "$ac_cxx_werror_flag"
13058 || test ! -s conftest.err'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5 13060 (eval $ac_try) 2>&5
12746 ac_status=$? 13061 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } && 13063 (exit $ac_status); }; } &&
12797 13112
12798if test x$support_perl = xyes; then 13113if test x$support_perl = xyes; then
12799 support_frills=yes 13114 support_frills=yes
12800fi 13115fi
12801 13116
13117if test x$support_frills = xyes; then
12802 13118
12803CFLAGS=${CFLAGS--O} 13119cat >>confdefs.h <<\_ACEOF
12804LDFLAGS=${LDFLAGS--O} 13120#define ENABLE_FRILLS 1
13121_ACEOF
12805 13122
12806CPPFLAGS="$CPPFLAGS"
12807
12808
12809
12810
12811
12812
12813
12814if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12815 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12816 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12817 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12818 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12819 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12820fi 13123fi
13124
13125
13126
13127
13128
13129
13130
13131
12821 13132
12822 13133
12823 13134
12824 13135
12825 13136
13546s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13857s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13547s,@CPP@,$CPP,;t t 13858s,@CPP@,$CPP,;t t
13548s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13859s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13549s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13860s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13550s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13861s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13862s,@EGREP@,$EGREP,;t t
13551s,@LINKER@,$LINKER,;t t 13863s,@LINKER@,$LINKER,;t t
13552s,@CXXCPP@,$CXXCPP,;t t
13553s,@EGREP@,$EGREP,;t t
13554s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13864s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13555s,@RXVTNAME@,$RXVTNAME,;t t 13865s,@RXVTNAME@,$RXVTNAME,;t t
13556s,@MV@,$MV,;t t
13557s,@RM@,$RM,;t t
13558s,@CP@,$CP,;t t
13559s,@LN@,$LN,;t t
13560s,@SED@,$SED,;t t
13561s,@ECHO@,$ECHO,;t t
13562s,@CMP@,$CMP,;t t
13563s,@TIC@,$TIC,;t t 13866s,@TIC@,$TIC,;t t
13867s,@CXXCPP@,$CXXCPP,;t t
13564s,@X_CFLAGS@,$X_CFLAGS,;t t 13868s,@X_CFLAGS@,$X_CFLAGS,;t t
13565s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13869s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13566s,@X_LIBS@,$X_LIBS,;t t 13870s,@X_LIBS@,$X_LIBS,;t t
13567s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13871s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13872s,@afterimage_config@,$afterimage_config,;t t
13568s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13873s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13569s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t 13874s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13570s,@XPM_LIBS@,$XPM_LIBS,;t t 13875s,@XPM_LIBS@,$XPM_LIBS,;t t
13571s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t 13876s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13572s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 13877s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13573s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 13878s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13574s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 13879s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13575s,@rxvt_intp_define@,$rxvt_intp_define,;t t 13880s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13576s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 13881s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13882s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13883s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13577s,@PERL@,$PERL,;t t 13884s,@PERL@,$PERL,;t t
13578s,@PERLLIB@,$PERLLIB,;t t 13885s,@PERLLIB@,$PERLLIB,;t t
13579s,@PERLFLAGS@,$PERLFLAGS,;t t 13886s,@PERLFLAGS@,$PERLFLAGS,;t t
13580s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t 13887s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13581s,@IF_PERL@,$IF_PERL,;t t 13888s,@IF_PERL@,$IF_PERL,;t t
13582s,@PERL_O@,$PERL_O,;t t 13889s,@PERL_O@,$PERL_O,;t t
13583s,@DEBUG@,$DEBUG,;t t 13890s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
13584s,@DINCLUDE@,$DINCLUDE,;t t 13891s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
13585s,@DLIB@,$DLIB,;t t
13586s,@include_stdint_h@,$include_stdint_h,;t t 13892s,@include_stdint_h@,$include_stdint_h,;t t
13587s,@include_stdarg_h@,$include_stdarg_h,;t t 13893s,@include_stdarg_h@,$include_stdarg_h,;t t
13588s,@include_stdlib_h@,$include_stdlib_h,;t t 13894s,@include_stdlib_h@,$include_stdlib_h,;t t
13589s,@include_unistd_h@,$include_unistd_h,;t t 13895s,@include_unistd_h@,$include_unistd_h,;t t
13590s,@include_string_h@,$include_string_h,;t t 13896s,@include_string_h@,$include_string_h,;t t
13762 case $INSTALL in 14068 case $INSTALL in
13763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13764 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14070 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13765 esac 14071 esac
13766 14072
14073 if test x"$ac_file" != x-; then
14074 { echo "$as_me:$LINENO: creating $ac_file" >&5
14075echo "$as_me: creating $ac_file" >&6;}
14076 rm -f "$ac_file"
14077 fi
13767 # Let's still pretend it is `configure' which instantiates (i.e., don't 14078 # Let's still pretend it is `configure' which instantiates (i.e., don't
13768 # use $as_me), people would be surprised to read: 14079 # use $as_me), people would be surprised to read:
13769 # /* config.h. Generated by config.status. */ 14080 # /* config.h. Generated by config.status. */
13770 if test x"$ac_file" = x-; then 14081 if test x"$ac_file" = x-; then
13771 configure_input= 14082 configure_input=
13800echo "$as_me: error: cannot find input file: $f" >&2;} 14111echo "$as_me: error: cannot find input file: $f" >&2;}
13801 { (exit 1); exit 1; }; } 14112 { (exit 1); exit 1; }; }
13802 fi;; 14113 fi;;
13803 esac 14114 esac
13804 done` || { (exit 1); exit 1; } 14115 done` || { (exit 1); exit 1; }
13805
13806 if test x"$ac_file" != x-; then
13807 { echo "$as_me:$LINENO: creating $ac_file" >&5
13808echo "$as_me: creating $ac_file" >&6;}
13809 rm -f "$ac_file"
13810 fi
13811_ACEOF 14116_ACEOF
13812cat >>$CONFIG_STATUS <<_ACEOF 14117cat >>$CONFIG_STATUS <<_ACEOF
13813 sed "$ac_vpsub 14118 sed "$ac_vpsub
13814$extrasub 14119$extrasub
13815_ACEOF 14120_ACEOF
14095 14400
14096 Rxvt version: $VERSION : $DATE 14401 Rxvt version: $VERSION : $DATE
14097 Source code location: $srcdir 14402 Source code location: $srcdir
14098 Install path: ${prefix}/bin 14403 Install path: ${prefix}/bin
14099 Compiler: $CXX 14404 Compiler: $CXX
14100 Compiler flags: $CFLAGS 14405 Compiler flags: $CXXFLAGS
14101 Linker: $LINKER" 14406 Linker: $LINKER"
14102
14103if test "$MALLOC_TYPE" = S; then
14104 echo " malloc support: system default"
14105fi
14106if test "$MALLOC_TYPE" = G; then
14107 echo " malloc support: Gray Watson's dmalloc"
14108fi
14109if test "$MALLOC_TYPE" = D; then
14110 echo " malloc support: Doug Lea's malloc"
14111fi
14112 14407
14113if test x$support_xpm = xyes; then 14408if test x$support_xpm = xyes; then
14114 echo " Xpm library: $XPM_LIBS" 14409 echo " Xpm library: $XPM_LIBS"
14115fi 14410fi
14116 14411
14117echo " 14412if test x$support_afterimage = xyes; then
14118The following are set in config.h 14413 echo " AfterImage support: yes"
14119" 14414fi
14120echo " pty/tty type: "$rxvt_cv_ptys 14415
14121if test x$support_utmp != xyes; then 14416if test x$support_afterstep = xyes; then
14122 echo " utmp support: disabled" 14417 echo " AfterStep integration: yes"
14123 echo
14124else
14125 echo " utmp support: enabled
14126 utmp file: $rxvt_cv_path_utmp
14127 utmpx file: $rxvt_cv_path_utmpx
14128 wtmp file: $rxvt_cv_path_wtmp
14129 wtmpx file: $rxvt_cv_path_wtmpx
14130 lastlog file: $rxvt_cv_path_lastlog
14131 ttys/ttytab file: $rxvt_cv_path_ttytab
14132 embedded perl: $support_perl"
14133 echo
14134fi 14418fi
14419
14135if test x$term != x; then 14420if test x$term != x; then
14136 echo " set TERM to: $term" 14421 echo " set TERM to: $term"
14137fi 14422fi
14138if test x$terminfo != x; then 14423if test x$terminfo != x; then
14139 echo " set TERMINFO to: $terminfo" 14424 echo " set TERMINFO to: $terminfo"
14142echo " resource class: $RESCLASS" 14427echo " resource class: $RESCLASS"
14143if test x$RESFALLBACK != x; then 14428if test x$RESFALLBACK != x; then
14144 echo " resource class fallback: $RESFALLBACK" 14429 echo " resource class fallback: $RESFALLBACK"
14145fi 14430fi
14146echo 14431echo
14147if test x$rxvt_cv_ptys = xUNKNOWN; then 14432echo " embedded perl: $support_perl"
14148 echo ".----------------------------------------------------------------." 14433echo
14149 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14150 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14151 echo ".----------------------------------------------------------------."
14152fi
14153if test x$support_xpm = xneedsmanualspecification; then 14434if test x$support_xpm = xneedsmanualspecification; then
14154 echo ".----------------------------------------------------------------." 14435 echo ".----------------------------------------------------------------."
14155 echo ". WARNING: --enable-xpm-background was specified however the ." 14436 echo ". WARNING: --enable-xpm-background was specified however the ."
14156 echo ". XPM includes files and libraries could not be found. ." 14437 echo ". XPM includes files and libraries could not be found. ."
14157 echo ". XPM backgrounds are now being DISABLED! If you want ." 14438 echo ". XPM backgrounds are now being DISABLED! If you want ."
14166 echo ". functions could not be found. ." 14447 echo ". functions could not be found. ."
14167 echo ". XIM is now being DISABLED! ." 14448 echo ". XIM is now being DISABLED! ."
14168 echo ".----------------------------------------------------------------." 14449 echo ".----------------------------------------------------------------."
14169fi 14450fi
14170 14451
14171echo " *** Optionally check src/feature.h for further options ***" 14452echo "*** Optionally check src/feature.h for further, rarely used options ***"
14172echo 14453echo
14173 14454
14174echo ".----------------------------------------------------------------."
14175echo ". NOTE: some features are disabled by default, try ."
14176echo ". configure --help to get an idea of the optional features, ."
14177echo ". or read ./README.configure ."
14178echo ". ."
14179echo ". The script ./reconf gives a reasonable baseline, try it if ."
14180echo ". you do not want to read documentation and still want some ."
14181echo ". useful features. ."
14182echo ".----------------------------------------------------------------."
14183echo
14184

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines