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

Comparing rxvt-unicode/configure (file contents):
Revision 1.62 by root, Wed Jan 4 05:12:04 2006 UTC vs.
Revision 1.82 by root, Fri Jan 20 16:02:20 2006 UTC

307#endif 307#endif
308#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
309# include <unistd.h> 309# include <unistd.h>
310#endif" 310#endif"
311 311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define 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 MV RM CP LN SED ECHO CMP TIC CXXCPP 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'
313ac_subst_files='MCOMMON' 313ac_subst_files=''
314 314
315# Initialize some variables set by options. 315# Initialize some variables set by options.
316ac_init_help= 316ac_init_help=
317ac_init_version=false 317ac_init_version=false
318# The variables have the same names as the options, with 318# The variables have the same names as the options, with
877 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
878 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
879 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus 881 --enable-fading enable colors fading when off focus
882 --enable-menubar enable menubar
883 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
884 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
885 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
886 --enable-perl enable embedded perl interpreter 885 --enable-perl enable embedded perl interpreter
887 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
888 --enable-half-shadow use half width/height shadow on rxvt scrollbar
889 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
890 --enable-ttygid enable tty setting to group named "tty" 888 --enable-ttygid enable tty setting to group named "tty"
891 --disable-backspace-key disable handling of the backspace key 889 --disable-backspace-key disable handling of the backspace key
892 --disable-delete-key disable handling of the delete key 890 --disable-delete-key disable handling of the delete key
893 --disable-resources disable all resource checking 891 --disable-resources disable all resource checking
894 --enable-xgetdefault enable resources via X instead of our small version
895 --enable-8bitctrls enable 8 bit control sequences (not recommended) 892 --enable-8bitctrls enable 8 bit control sequences (not recommended)
896 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
897 --enable-strings enable some replacement system functions
898 --disable-swapscreen disable swap screen support 894 --disable-swapscreen disable swap screen support
899 --enable-iso14755 enable support for extended ISO 14755 modes 895 --enable-iso14755 enable support for extended ISO 14755 modes
900 --enable-frills enable support for rarely used features 896 --enable-frills enable support for rarely used features
901 --enable-24bit enable support for using 24bit visuals if available 897 --enable-24bit enable support for using 24bit visuals if available
902 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1373 1369
1374 1370
1375 1371
1376 1372
1377 1373
1374
1375 ac_config_headers="$ac_config_headers config.h:config.h.in"
1376
1377
1378ac_aux_dir= 1378ac_aux_dir=
1379for ac_dir in autoconf $srcdir/autoconf; do 1379for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1380 if test -f $ac_dir/install-sh; then 1380 if test -f $ac_dir/install-sh; then
1381 ac_aux_dir=$ac_dir 1381 ac_aux_dir=$ac_dir
1382 ac_install_sh="$ac_aux_dir/install-sh -c" 1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1383 break 1383 break
1384 elif test -f $ac_dir/install.sh; then 1384 elif test -f $ac_dir/install.sh; then
1390 ac_install_sh="$ac_aux_dir/shtool install -c" 1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1391 break 1391 break
1392 fi 1392 fi
1393done 1393done
1394if test -z "$ac_aux_dir"; then 1394if test -z "$ac_aux_dir"; then
1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1396echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1396echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1397 { (exit 1); exit 1; }; } 1397 { (exit 1); exit 1; }; }
1398fi 1398fi
1399ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1399ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1400ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1400ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1401ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1401ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1402
1403 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1404
1405 1402
1406# Make sure we can run config.sub. 1403# Make sure we can run config.sub.
1407$ac_config_sub sun4 >/dev/null 2>&1 || 1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1408 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1409echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1461VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463echo "" 1460echo ""
1464echo "configuring for rxvt $VERSION" 1461echo "configuring for rxvt $VERSION"
1465echo "" 1462echo ""
1463
1464orig_CXXFLAGS="$CXXFLAGS"
1466 1465
1467 1466
1468ac_ext=c 1467ac_ext=c
1469ac_cpp='$CPP $CPPFLAGS' 1468ac_cpp='$CPP $CPPFLAGS'
1470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 3050
3052test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3053 3052
3054test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3055 3054
3056for ac_prog in gawk mawk nawk awk
3057do
3058 # Extract the first word of "$ac_prog", so it can be a program name with args.
3059set dummy $ac_prog; ac_word=$2
3060echo "$as_me:$LINENO: checking for $ac_word" >&5
3061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062if test "${ac_cv_prog_AWK+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 if test -n "$AWK"; then
3066 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3067else
3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069for as_dir in $PATH
3070do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075 ac_cv_prog_AWK="$ac_prog"
3076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079done
3080done
3081 3055
3082fi
3083fi
3084AWK=$ac_cv_prog_AWK
3085if test -n "$AWK"; then
3086 echo "$as_me:$LINENO: result: $AWK" >&5
3087echo "${ECHO_T}$AWK" >&6
3088else
3089 echo "$as_me:$LINENO: result: no" >&5
3090echo "${ECHO_T}no" >&6
3091fi
3092
3093 test -n "$AWK" && break
3094done
3095
3096
3097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
3103
3104if test -z "$orig_CXXFLAGS"; then
3105 CXXFLAGS='-O'
3106 if test x$GCC = xyes && test "x$GXX" = xyes; then
3107 CXXFLAGS="-g -O3"
3108 fi
3109 CFLAGS="$CXXFLAGS"
3110fi
3111
3112LINKER="$CXX"
3113if test x$GCC = xyes && test x$GXX = xyes; then
3114
3115echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3116echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3117if test "${ac_cv_lib_supcpp_main+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120 ac_check_lib_save_LIBS=$LIBS
3121LIBS="-lsupc++ $LIBS"
3122cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128
3129
3130int
3131main ()
3132{
3133main ();
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext conftest$ac_exeext
3139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140 (eval $ac_link) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest$ac_exeext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_lib_supcpp_main=yes
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164ac_cv_lib_supcpp_main=no
3165fi
3166rm -f conftest.err conftest.$ac_objext \
3167 conftest$ac_exeext conftest.$ac_ext
3168LIBS=$ac_check_lib_save_LIBS
3169fi
3170echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3171echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3172if test $ac_cv_lib_supcpp_main = yes; then
3173
3174 LINKER="$CC"
3175 LIBS="$LIBS -lsupc++"
3176
3177fi
3178
3179fi
3180LINKER=$LINKER
3181
3182
3183
3184cat >>confdefs.h <<\_ACEOF
3185#define _GNU_SOURCE 1
3186_ACEOF
3187
3188
3189case $host in
3190 *-*-solaris* )
3191
3192cat >>confdefs.h <<\_ACEOF
3193#define _XOPEN_SOURCE_EXTENDED 1
3194_ACEOF
3195
3196
3197cat >>confdefs.h <<\_ACEOF
3198#define _XOPEN_SOURCE 2
3199_ACEOF
3200
3201
3202cat >>confdefs.h <<\_ACEOF
3203#define __EXTENSIONS__ 1
3204_ACEOF
3205
3206 ;;
3207esac
3208
3209
3210ac_ext=cc
3211ac_cpp='$CXXCPP $CPPFLAGS'
3212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215
3216
3217
3218ac_ext=cc
3219ac_cpp='$CXXCPP $CPPFLAGS'
3220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3223echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3224echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3225if test -z "$CXXCPP"; then
3226 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229 # Double quotes because CXXCPP needs to be expanded
3230 for CXXCPP in "$CXX -E" "/lib/cpp"
3231 do
3232 ac_preproc_ok=false
3233for ac_cxx_preproc_warn_flag in '' yes
3234do
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247#ifdef __STDC__
3248# include <limits.h>
3249#else
3250# include <assert.h>
3251#endif
3252 Syntax error
3253_ACEOF
3254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_cxx_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3265 else
3266 ac_cpp_err=
3267 fi
3268else
3269 ac_cpp_err=yes
3270fi
3271if test -z "$ac_cpp_err"; then
3272 :
3273else
3274 echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 # Broken: fails on valid input.
3278continue
3279fi
3280rm -f conftest.err conftest.$ac_ext
3281
3282 # OK, works on sane cases. Now check whether non-existent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290#include <ac_nonexistent.h>
3291_ACEOF
3292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_cxx_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306else
3307 ac_cpp_err=yes
3308fi
3309if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3311continue
3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 # Passes both tests.
3317ac_preproc_ok=:
3318break
3319fi
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 break
3327fi
3328
3329 done
3330 ac_cv_prog_CXXCPP=$CXXCPP
3331
3332fi
3333 CXXCPP=$ac_cv_prog_CXXCPP
3334else
3335 ac_cv_prog_CXXCPP=$CXXCPP
3336fi
3337echo "$as_me:$LINENO: result: $CXXCPP" >&5
3338echo "${ECHO_T}$CXXCPP" >&6
3339ac_preproc_ok=false
3340for ac_cxx_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359 Syntax error
3360_ACEOF
3361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_cxx_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3372 else
3373 ac_cpp_err=
3374 fi
3375else
3376 ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
3379 :
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 # Broken: fails on valid input.
3385continue
3386fi
3387rm -f conftest.err conftest.$ac_ext
3388
3389 # OK, works on sane cases. Now check whether non-existent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397#include <ac_nonexistent.h>
3398_ACEOF
3399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_cxx_preproc_warn_flag
3409 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3410 else
3411 ac_cpp_err=
3412 fi
3413else
3414 ac_cpp_err=yes
3415fi
3416if test -z "$ac_cpp_err"; then
3417 # Broken: success on invalid input.
3418continue
3419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 # Passes both tests.
3424ac_preproc_ok=:
3425break
3426fi
3427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
3432if $ac_preproc_ok; then
3433 :
3434else
3435 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3440fi
3441
3442ac_ext=cc
3443ac_cpp='$CXXCPP $CPPFLAGS'
3444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3447 3056
3448 3057
3449echo "$as_me:$LINENO: checking for egrep" >&5 3058echo "$as_me:$LINENO: checking for egrep" >&5
3450echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3059echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451if test "${ac_cv_prog_egrep+set}" = set; then 3060if test "${ac_cv_prog_egrep+set}" = set; then
3526 grep -v '^ *+' conftest.er1 >conftest.err 3135 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1 3136 rm -f conftest.er1
3528 cat conftest.err >&5 3137 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } && 3139 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5 3142 (eval $ac_try) 2>&5
3534 ac_status=$? 3143 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } && 3145 (exit $ac_status); }; } &&
3580 grep -v '^ *+' conftest.er1 >conftest.err 3189 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1 3190 rm -f conftest.er1
3582 cat conftest.err >&5 3191 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } && 3193 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5 3196 (eval $ac_try) 2>&5
3588 ac_status=$? 3197 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } && 3199 (exit $ac_status); }; } &&
3611echo "${ECHO_T}$ac_cv_search_strerror" >&6 3220echo "${ECHO_T}$ac_cv_search_strerror" >&6
3612if test "$ac_cv_search_strerror" != no; then 3221if test "$ac_cv_search_strerror" != no; then
3613 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3222 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3614 3223
3615fi 3224fi
3225
3226
3227ac_ext=c
3228ac_cpp='$CPP $CPPFLAGS'
3229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232
3233
3234LINKER="$CXX"
3235if test x$GCC = xyes && test x$GXX = xyes; then
3236 echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3237echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3238if test "${ac_cv_lib_supcpp_main+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241 ac_check_lib_save_LIBS=$LIBS
3242LIBS="-lsupc++ $LIBS"
3243cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249
3250
3251int
3252main ()
3253{
3254main ();
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259rm -f conftest.$ac_objext conftest$ac_exeext
3260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3261 (eval $ac_link) 2>conftest.er1
3262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest$ac_exeext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 ac_cv_lib_supcpp_main=yes
3281else
3282 echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285ac_cv_lib_supcpp_main=no
3286fi
3287rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289LIBS=$ac_check_lib_save_LIBS
3290fi
3291echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3292echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3293if test $ac_cv_lib_supcpp_main = yes; then
3294
3295 LINKER="$CC"
3296 LIBS="$LIBS -lsupc++"
3297
3298fi
3299
3300fi
3301LINKER=$LINKER
3302
3303
3304ac_ext=cc
3305ac_cpp='$CXXCPP $CPPFLAGS'
3306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
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
3314cat >conftest.$ac_ext <<_ACEOF
3315int i;
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 :
3339else
3340 echo "$as_me: failed program was:" >&5
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
3343CXXFLAGS="-g -O3"
3344fi
3345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3346 else
3347 CXXFLAGS="-O"
3348 fi
3349 CFLAGS="$CXXFLAGS"
3350fi
3351
3352
3353cat >>confdefs.h <<\_ACEOF
3354#define _GNU_SOURCE 1
3355_ACEOF
3356
3357
3358case $host in
3359 *-*-solaris* )
3360
3361cat >>confdefs.h <<\_ACEOF
3362#define _XOPEN_SOURCE_EXTENDED 1
3363_ACEOF
3364
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define _XOPEN_SOURCE 2
3368_ACEOF
3369
3370
3371cat >>confdefs.h <<\_ACEOF
3372#define __EXTENSIONS__ 1
3373_ACEOF
3374
3375 ;;
3376esac
3616 3377
3617 3378
3618echo "$as_me:$LINENO: checking for setlocale" >&5 3379echo "$as_me:$LINENO: checking for setlocale" >&5
3619echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 3380echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3620if test "${ac_cv_func_setlocale+set}" = set; then 3381if test "${ac_cv_func_setlocale+set}" = set; then
4318 conftest$ac_exeext conftest.$ac_ext 4079 conftest$ac_exeext conftest.$ac_ext
4319 4080
4320 4081
4321MALLOC_TYPE=S 4082MALLOC_TYPE=S
4322 4083
4323support_addstrings=no
4324support_frills=yes 4084support_frills=yes
4325support_inheritpixmap=yes 4085support_inheritpixmap=yes
4326support_tinting=yes 4086support_tinting=yes
4327support_fading=yes 4087support_fading=yes
4328support_keepscrolling=yes 4088support_keepscrolling=yes
4329support_selectionscrolling=yes 4089support_selectionscrolling=yes
4330support_menubar=no
4331support_mousewheel=yes 4090support_mousewheel=yes
4332support_mouseslipwheel=yes 4091support_mouseslipwheel=yes
4333support_utmp=yes 4092support_utmp=yes
4334support_wtmp=yes 4093support_wtmp=yes
4335support_lastlog=yes 4094support_lastlog=yes
4372 support_tinting=no 4131 support_tinting=no
4373 support_fading=no 4132 support_fading=no
4374 support_keepscrolling=no 4133 support_keepscrolling=no
4375 support_selectionscrolling=no 4134 support_selectionscrolling=no
4376 support_lastlog=no 4135 support_lastlog=no
4377 support_menubar=no
4378 support_mousewheel=no 4136 support_mousewheel=no
4379 support_mouseslipwheel=no 4137 support_mouseslipwheel=no
4380 support_text_blink=no 4138 support_text_blink=no
4381 support_pointer_blank=no 4139 support_pointer_blank=no
4382 support_scroll_rxvt=no 4140 support_scroll_rxvt=no
4403 support_tinting=yes 4161 support_tinting=yes
4404 support_fading=yes 4162 support_fading=yes
4405 support_keepscrolling=yes 4163 support_keepscrolling=yes
4406 support_selectionscrolling=yes 4164 support_selectionscrolling=yes
4407 support_lastlog=yes 4165 support_lastlog=yes
4408 support_menubar=yes
4409 support_mousewheel=yes 4166 support_mousewheel=yes
4410 support_mouseslipwheel=yes 4167 support_mouseslipwheel=yes
4411 support_text_blink=yes 4168 support_text_blink=yes
4412 support_pointer_blank=yes 4169 support_pointer_blank=yes
4413 support_scroll_rxvt=yes 4170 support_scroll_rxvt=yes
4516 if test x$enableval = xyes -o x$enableval = xno; then 4273 if test x$enableval = xyes -o x$enableval = xno; then
4517 support_fading=$enableval 4274 support_fading=$enableval
4518 fi 4275 fi
4519fi; 4276fi;
4520 4277
4521# Check whether --enable-menubar or --disable-menubar was given.
4522if test "${enable_menubar+set}" = set; then
4523 enableval="$enable_menubar"
4524 if test x$enableval = xyes -o x$enableval = xno; then
4525 support_menubar=$enableval
4526 fi
4527fi;
4528
4529# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4278# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4530if test "${enable_rxvt_scroll+set}" = set; then 4279if test "${enable_rxvt_scroll+set}" = set; then
4531 enableval="$enable_rxvt_scroll" 4280 enableval="$enable_rxvt_scroll"
4532 if test x$enableval = xyes -o x$enableval = xno; then 4281 if test x$enableval = xyes -o x$enableval = xno; then
4533 support_scroll_rxvt=$enableval 4282 support_scroll_rxvt=$enableval
4564 if test x$enableval = xyes -o x$enableval = xno; then 4313 if test x$enableval = xyes -o x$enableval = xno; then
4565 support_scroll_plain=$enableval 4314 support_scroll_plain=$enableval
4566 fi 4315 fi
4567fi; 4316fi;
4568 4317
4569# Check whether --enable-half-shadow or --disable-half-shadow was given.
4570if test "${enable_half_shadow+set}" = set; then
4571 enableval="$enable_half_shadow"
4572 if test x$enableval = xyes; then
4573
4574cat >>confdefs.h <<\_ACEOF
4575#define HALFSHADOW 1
4576_ACEOF
4577
4578 fi
4579fi;
4580 4318
4581 4319
4582# Check whether --with-codesets or --without-codesets was given. 4320# Check whether --with-codesets or --without-codesets was given.
4583if test "${with_codesets+set}" = set; then 4321if test "${with_codesets+set}" = set; then
4584 withval="$with_codesets" 4322 withval="$with_codesets"
4639_ACEOF 4377_ACEOF
4640 4378
4641 fi 4379 fi
4642fi; 4380fi;
4643 4381
4644# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
4645if test "${enable_xgetdefault+set}" = set; then
4646 enableval="$enable_xgetdefault"
4647 if test x$enableval = xyes; then
4648
4649cat >>confdefs.h <<\_ACEOF
4650#define USE_XGETDEFAULT 1
4651_ACEOF
4652
4653 fi
4654fi;
4655
4656# Check whether --enable-8bitctrls or --disable-8bitctrls was given. 4382# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4657if test "${enable_8bitctrls+set}" = set; then 4383if test "${enable_8bitctrls+set}" = set; then
4658 enableval="$enable_8bitctrls" 4384 enableval="$enable_8bitctrls"
4659 if test x$enableval = xyes -o x$enableval = xno; then 4385 if test x$enableval = xyes -o x$enableval = xno; then
4660 support_8bitctrls=$enableval 4386 support_8bitctrls=$enableval
4719_ACEOF 4445_ACEOF
4720 4446
4721 4447
4722RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4448RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4723 4449
4724
4725# Check whether --enable-strings or --disable-strings was given.
4726if test "${enable_strings+set}" = set; then
4727 enableval="$enable_strings"
4728 if test x$enableval = xyes -o x$enableval = xno; then
4729 support_addstrings=$enableval
4730 fi
4731fi;
4732 4450
4733# Check whether --enable-swapscreen or --disable-swapscreen was given. 4451# Check whether --enable-swapscreen or --disable-swapscreen was given.
4734if test "${enable_swapscreen+set}" = set; then 4452if test "${enable_swapscreen+set}" = set; then
4735 enableval="$enable_swapscreen" 4453 enableval="$enable_swapscreen"
4736 if test x$enableval = xno; then 4454 if test x$enableval = xno; then
4871#define RXVT_TERMINFO "$withval" 4589#define RXVT_TERMINFO "$withval"
4872_ACEOF 4590_ACEOF
4873 terminfo="$withval" 4591 terminfo="$withval"
4874 fi 4592 fi
4875fi; 4593fi;
4876
4877
4878
4879cat >>confdefs.h <<\_ACEOF
4880#define PROTOTYPES 1
4881_ACEOF
4882 4594
4883 4595
4884# Extract the first word of "mv", so it can be a program name with args. 4596# Extract the first word of "mv", so it can be a program name with args.
4885set dummy mv; ac_word=$2 4597set dummy mv; ac_word=$2
4886echo "$as_me:$LINENO: checking for $ac_word" >&5 4598echo "$as_me:$LINENO: checking for $ac_word" >&5
5159else 4871else
5160 echo "$as_me:$LINENO: result: no" >&5 4872 echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6 4873echo "${ECHO_T}no" >&6
5162fi 4874fi
5163 4875
5164# Extract the first word of "tbl", so it can be a program name with args.
5165set dummy tbl; ac_word=$2
5166echo "$as_me:$LINENO: checking for $ac_word" >&5
5167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168if test "${ac_cv_path_TBL+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5170else
5171 case $TBL in
5172 [\\/]* | ?:[\\/]*)
5173 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5174 ;;
5175 *)
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5186 fi
5187done
5188done
5189
5190 ;;
5191esac
5192fi
5193TBL=$ac_cv_path_TBL
5194
5195if test -n "$TBL"; then
5196 echo "$as_me:$LINENO: result: $TBL" >&5
5197echo "${ECHO_T}$TBL" >&6
5198else
5199 echo "$as_me:$LINENO: result: no" >&5
5200echo "${ECHO_T}no" >&6
5201fi
5202
5203# Extract the first word of "tic", so it can be a program name with args. 4876# Extract the first word of "tic", so it can be a program name with args.
5204set dummy tic; ac_word=$2 4877set dummy tic; ac_word=$2
5205echo "$as_me:$LINENO: checking for $ac_word" >&5 4878echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207if test "${ac_cv_path_TIC+set}" = set; then 4880if test "${ac_cv_path_TIC+set}" = set; then
5238 echo "$as_me:$LINENO: result: no" >&5 4911 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6 4912echo "${ECHO_T}no" >&6
5240fi 4913fi
5241 4914
5242 4915
4916
4917
4918ac_ext=cc
4919ac_cpp='$CXXCPP $CPPFLAGS'
4920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4923echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4924echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4925if test -z "$CXXCPP"; then
4926 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 # Double quotes because CXXCPP needs to be expanded
4930 for CXXCPP in "$CXX -E" "/lib/cpp"
4931 do
4932 ac_preproc_ok=false
4933for ac_cxx_preproc_warn_flag in '' yes
4934do
4935 # Use a header file that comes with gcc, so configuring glibc
4936 # with a fresh cross-compiler works.
4937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938 # <limits.h> exists even on freestanding compilers.
4939 # On the NeXT, cc -E runs the code through the compiler's parser,
4940 # not just through cpp. "Syntax error" is here to catch this case.
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947#ifdef __STDC__
4948# include <limits.h>
4949#else
4950# include <assert.h>
4951#endif
4952 Syntax error
4953_ACEOF
4954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); } >/dev/null; then
4962 if test -s conftest.err; then
4963 ac_cpp_err=$ac_cxx_preproc_warn_flag
4964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4965 else
4966 ac_cpp_err=
4967 fi
4968else
4969 ac_cpp_err=yes
4970fi
4971if test -z "$ac_cpp_err"; then
4972 :
4973else
4974 echo "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 # Broken: fails on valid input.
4978continue
4979fi
4980rm -f conftest.err conftest.$ac_ext
4981
4982 # OK, works on sane cases. Now check whether non-existent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h. */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h. */
4990#include <ac_nonexistent.h>
4991_ACEOF
4992if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4993 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4994 ac_status=$?
4995 grep -v '^ *+' conftest.er1 >conftest.err
4996 rm -f conftest.er1
4997 cat conftest.err >&5
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } >/dev/null; then
5000 if test -s conftest.err; then
5001 ac_cpp_err=$ac_cxx_preproc_warn_flag
5002 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5003 else
5004 ac_cpp_err=
5005 fi
5006else
5007 ac_cpp_err=yes
5008fi
5009if test -z "$ac_cpp_err"; then
5010 # Broken: success on invalid input.
5011continue
5012else
5013 echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016 # Passes both tests.
5017ac_preproc_ok=:
5018break
5019fi
5020rm -f conftest.err conftest.$ac_ext
5021
5022done
5023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024rm -f conftest.err conftest.$ac_ext
5025if $ac_preproc_ok; then
5026 break
5027fi
5028
5029 done
5030 ac_cv_prog_CXXCPP=$CXXCPP
5031
5032fi
5033 CXXCPP=$ac_cv_prog_CXXCPP
5034else
5035 ac_cv_prog_CXXCPP=$CXXCPP
5036fi
5037echo "$as_me:$LINENO: result: $CXXCPP" >&5
5038echo "${ECHO_T}$CXXCPP" >&6
5039ac_preproc_ok=false
5040for ac_cxx_preproc_warn_flag in '' yes
5041do
5042 # Use a header file that comes with gcc, so configuring glibc
5043 # with a fresh cross-compiler works.
5044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5045 # <limits.h> exists even on freestanding compilers.
5046 # On the NeXT, cc -E runs the code through the compiler's parser,
5047 # not just through cpp. "Syntax error" is here to catch this case.
5048 cat >conftest.$ac_ext <<_ACEOF
5049/* confdefs.h. */
5050_ACEOF
5051cat confdefs.h >>conftest.$ac_ext
5052cat >>conftest.$ac_ext <<_ACEOF
5053/* end confdefs.h. */
5054#ifdef __STDC__
5055# include <limits.h>
5056#else
5057# include <assert.h>
5058#endif
5059 Syntax error
5060_ACEOF
5061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } >/dev/null; then
5069 if test -s conftest.err; then
5070 ac_cpp_err=$ac_cxx_preproc_warn_flag
5071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5072 else
5073 ac_cpp_err=
5074 fi
5075else
5076 ac_cpp_err=yes
5077fi
5078if test -z "$ac_cpp_err"; then
5079 :
5080else
5081 echo "$as_me: failed program was:" >&5
5082sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 # Broken: fails on valid input.
5085continue
5086fi
5087rm -f conftest.err conftest.$ac_ext
5088
5089 # OK, works on sane cases. Now check whether non-existent headers
5090 # can be detected and how.
5091 cat >conftest.$ac_ext <<_ACEOF
5092/* confdefs.h. */
5093_ACEOF
5094cat confdefs.h >>conftest.$ac_ext
5095cat >>conftest.$ac_ext <<_ACEOF
5096/* end confdefs.h. */
5097#include <ac_nonexistent.h>
5098_ACEOF
5099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } >/dev/null; then
5107 if test -s conftest.err; then
5108 ac_cpp_err=$ac_cxx_preproc_warn_flag
5109 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5110 else
5111 ac_cpp_err=
5112 fi
5113else
5114 ac_cpp_err=yes
5115fi
5116if test -z "$ac_cpp_err"; then
5117 # Broken: success on invalid input.
5118continue
5119else
5120 echo "$as_me: failed program was:" >&5
5121sed 's/^/| /' conftest.$ac_ext >&5
5122
5123 # Passes both tests.
5124ac_preproc_ok=:
5125break
5126fi
5127rm -f conftest.err conftest.$ac_ext
5128
5129done
5130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5131rm -f conftest.err conftest.$ac_ext
5132if $ac_preproc_ok; then
5133 :
5134else
5135 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5136See \`config.log' for more details." >&5
5137echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5138See \`config.log' for more details." >&2;}
5139 { (exit 1); exit 1; }; }
5140fi
5141
5142ac_ext=cc
5143ac_cpp='$CXXCPP $CPPFLAGS'
5144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243 5147
5244 5148
5245 5149
5246if test "x$ac_path_x_has_been_run" != xyes; then 5150if test "x$ac_path_x_has_been_run" != xyes; then
5247 echo "$as_me:$LINENO: checking for X" >&5 5151 echo "$as_me:$LINENO: checking for X" >&5
7308 7212
7309 7213
7310 7214
7311 7215
7312 7216
7217
7218
7313for ac_header in \ 7219for ac_header in \
7314 assert.h \ 7220 assert.h \
7315 fcntl.h \ 7221 fcntl.h \
7316 grp.h \ 7222 grp.h \
7317 libc.h \ 7223 libc.h \
7330 sys/time.h \ 7236 sys/time.h \
7331 utmp.h \ 7237 utmp.h \
7332 utmpx.h \ 7238 utmpx.h \
7333 stdint.h \ 7239 stdint.h \
7334 pty.h \ 7240 pty.h \
7241 util.h \
7242 libutil.h \
7335 wchar.h \ 7243 wchar.h \
7336 cwchar \ 7244 cwchar \
7337 clocale \ 7245 clocale \
7338 7246
7339do 7247do
10169#define RETSIGTYPE $ac_cv_type_signal 10077#define RETSIGTYPE $ac_cv_type_signal
10170_ACEOF 10078_ACEOF
10171 10079
10172 10080
10173 10081
10174case "$host_alias" in
10175 *ultrix) ac_cv_func_setsid='no' ;;
10176 *) break;;
10177esac
10178
10179
10180
10181 10082
10182 10083
10183 10084
10184 10085
10185 10086
10194 10095
10195 10096
10196 10097
10197 10098
10198for ac_func in \ 10099for ac_func in \
10199 atexit \
10200 revoke \ 10100 revoke \
10201 unsetenv \ 10101 unsetenv \
10202 setutent \ 10102 setutent \
10203 seteuid \ 10103 seteuid \
10104 setresuid \
10204 setreuid \ 10105 setreuid \
10205 setsid \
10206 setpgrp \
10207 setpgid \
10208 openpty \
10209 _getpty \ 10106 _getpty \
10107 getpt \
10108 posix_openpt \
10210 grantpt \ 10109 grantpt \
10211 unlockpt \ 10110 unlockpt \
10212 isastream \ 10111 isastream \
10213 on_exit \ 10112 on_exit \
10214 nanosleep \ 10113 nanosleep \
10464_ACEOF 10363_ACEOF
10465cat confdefs.h >>conftest.$ac_ext 10364cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF 10365cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */ 10366/* end confdefs.h. */
10468#include <sys/types.h> 10367#include <sys/types.h>
10469#include <stdint.h>
10470#include <utmp.h> 10368#include <utmp.h>
10471int 10369int
10472main () 10370main ()
10473{ 10371{
10474struct utmp ut; 10372struct utmp ut;
11935 11833
11936cat >>confdefs.h <<\_ACEOF 11834cat >>confdefs.h <<\_ACEOF
11937#define HAVE_UNIX_FDPASS 1 11835#define HAVE_UNIX_FDPASS 1
11938_ACEOF 11836_ACEOF
11939 11837
11838else
11839 { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5
11840echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;}
11841 { (exit 1); exit 1; }; }
11940fi 11842fi
11941 11843
11942echo "$as_me:$LINENO: checking for broken XIM callback" >&5 11844echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11943echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 11845echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11944if test "${rxvt_broken_ximcb+set}" = set; then 11846if test "${rxvt_broken_ximcb+set}" = set; then
11995#define XIMCB_PROTO_BROKEN 1 11897#define XIMCB_PROTO_BROKEN 1
11996_ACEOF 11898_ACEOF
11997 11899
11998fi 11900fi
11999 11901
11902if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
12000echo "$as_me:$LINENO: checking for getpt" >&5 11903 echo "$as_me:$LINENO: checking for openpty" >&5
12001echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11904echo $ECHO_N "checking for openpty... $ECHO_C" >&6
12002if test "${rxvt_cv_func_getpt+set}" = set; then 11905if test "${ac_cv_func_openpty+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6 11906 echo $ECHO_N "(cached) $ECHO_C" >&6
12004else 11907else
12005 cat >conftest.$ac_ext <<_ACEOF 11908 cat >conftest.$ac_ext <<_ACEOF
12006/* confdefs.h. */ 11909/* confdefs.h. */
12007_ACEOF 11910_ACEOF
12008cat confdefs.h >>conftest.$ac_ext 11911cat confdefs.h >>conftest.$ac_ext
12009cat >>conftest.$ac_ext <<_ACEOF 11912cat >>conftest.$ac_ext <<_ACEOF
12010/* end confdefs.h. */ 11913/* end confdefs.h. */
12011#define _GNU_SOURCE 11914/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
12012#ifdef HAVE_STDLIB_H 11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12013# include <cstdlib> 11916#define openpty innocuous_openpty
11917
11918/* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char openpty (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923#ifdef __STDC__
11924# include <limits.h>
11925#else
11926# include <assert.h>
12014#endif 11927#endif
11928
11929#undef openpty
11930
11931/* Override any gcc2 internal prototype to avoid an error. */
11932#ifdef __cplusplus
11933extern "C"
11934{
11935#endif
11936/* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11938char openpty ();
11939/* The GNU C library defines this for functions which it implements
11940 to always fail with ENOSYS. Some functions are actually named
11941 something starting with __ and the normal name is an alias. */
11942#if defined (__stub_openpty) || defined (__stub___openpty)
11943choke me
11944#else
11945char (*f) () = openpty;
11946#endif
11947#ifdef __cplusplus
11948}
11949#endif
11950
12015int 11951int
12016main () 11952main ()
12017{ 11953{
12018(void)getpt(); 11954return f != openpty;
12019 ; 11955 ;
12020 return 0; 11956 return 0;
12021} 11957}
12022_ACEOF 11958_ACEOF
12023rm -f conftest.$ac_objext conftest$ac_exeext 11959rm -f conftest.$ac_objext conftest$ac_exeext
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5 11976 (eval $ac_try) 2>&5
12041 ac_status=$? 11977 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then 11979 (exit $ac_status); }; }; then
12044 rxvt_cv_func_getpt=yes 11980 ac_cv_func_openpty=yes
12045else 11981else
12046 echo "$as_me: failed program was:" >&5 11982 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5 11983sed 's/^/| /' conftest.$ac_ext >&5
12048 11984
12049rxvt_cv_func_getpt=no 11985ac_cv_func_openpty=no
12050fi 11986fi
12051rm -f conftest.err conftest.$ac_objext \ 11987rm -f conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext 11988 conftest$ac_exeext conftest.$ac_ext
12053fi 11989fi
12054echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11990echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
12055echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11991echo "${ECHO_T}$ac_cv_func_openpty" >&6
12056if test x$rxvt_cv_func_getpt = xyes; then 11992if test $ac_cv_func_openpty = yes; then
12057 11993 :
11994else
11995 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
11996echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
11997if test "${ac_cv_lib_util_openpty+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
12000 ac_check_lib_save_LIBS=$LIBS
12001LIBS="-lutil $LIBS"
12002cat >conftest.$ac_ext <<_ACEOF
12003/* confdefs.h. */
12004_ACEOF
12005cat confdefs.h >>conftest.$ac_ext
12058cat >>confdefs.h <<\_ACEOF 12006cat >>conftest.$ac_ext <<_ACEOF
12059#define HAVE_GETPT 1 12007/* end confdefs.h. */
12008
12009/* Override any gcc2 internal prototype to avoid an error. */
12010#ifdef __cplusplus
12011extern "C"
12012#endif
12013/* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015char openpty ();
12016int
12017main ()
12018{
12019openpty ();
12020 ;
12021 return 0;
12022}
12060_ACEOF 12023_ACEOF
12024rm -f conftest.$ac_objext conftest$ac_exeext
12025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>conftest.er1
12027 ac_status=$?
12028 grep -v '^ *+' conftest.er1 >conftest.err
12029 rm -f conftest.er1
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 ac_cv_lib_util_openpty=yes
12046else
12047 echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050ac_cv_lib_util_openpty=no
12051fi
12052rm -f conftest.err conftest.$ac_objext \
12053 conftest$ac_exeext conftest.$ac_ext
12054LIBS=$ac_check_lib_save_LIBS
12055fi
12056echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12057echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12058if test $ac_cv_lib_util_openpty = yes; then
12059 LIBS="$LIBS -lutil"
12060fi
12061
12062fi
12061 12063
12062fi 12064fi
12063 12065
12064echo "$as_me:$LINENO: checking for pty/tty type" >&5 12066echo "$as_me:$LINENO: checking for pty/tty type" >&5
12065echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12067echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12066if test "${rxvt_cv_ptys+set}" = set; then 12068if test "${rxvt_cv_ptys+set}" = set; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6 12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12068else 12070else
12069 if test x$ac_cv_func_openpty = xyes; then 12071 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12070 rxvt_cv_ptys=OPENPTY 12072 rxvt_cv_ptys=OPENPTY
12073 else if test x$ac_cv_func_getpt = xyes; then
12074 rxvt_cv_ptys=GLIBC
12075 else if test x$ac_cv_func_posix_openpt = xyes; then
12076 rxvt_cv_ptys=POSIX
12071 else if test x$ac_cv_func__getpty = xyes; then 12077 else if test x$ac_cv_func__getpty = xyes; then
12072 rxvt_cv_ptys=SGI4 12078 rxvt_cv_ptys=SGI4
12073 else if test -c /dev/ttyp20; then 12079 else if test -c /dev/ttyp20; then
12074 rxvt_cv_ptys=SCO 12080 rxvt_cv_ptys=SCO
12075 else if test -c /dev/ptym/clone; then 12081 else if test -c /dev/ptym/clone; then
12076 rxvt_cv_ptys=HPUX 12082 rxvt_cv_ptys=HPUX
12077 else if test x$rxvt_cv_func_getpt = xyes; then
12078 rxvt_cv_ptys=GLIBC
12079 else if test -c /dev/ptc -a -c /dev/pts; then 12083 else if test -c /dev/ptc -a -c /dev/pts; then
12080 rxvt_cv_ptys=PTC 12084 rxvt_cv_ptys=PTC
12081 else if test -c /dev/ptc -a -d /dev/pts; then 12085 else if test -c /dev/ptc -a -d /dev/pts; then
12082 rxvt_cv_ptys=PTC 12086 rxvt_cv_ptys=PTC
12083 else if test -c /dev/ptmx -a -c /dev/pts/0; then 12087 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12093fi 12097fi
12094fi 12098fi
12095fi 12099fi
12096fi 12100fi
12097fi 12101fi
12102fi
12098 12103
12099fi 12104fi
12100echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 12105echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12101echo "${ECHO_T}$rxvt_cv_ptys" >&6 12106echo "${ECHO_T}$rxvt_cv_ptys" >&6
12102 12107
12108if test x$rxvt_cv_ptys = xGLIBC; then
12109
12110cat >>confdefs.h <<\_ACEOF
12111#define PTYS_ARE_GETPT 1
12112_ACEOF
12113
12114fi
12115if test x$rxvt_cv_ptys = xPOSIX; then
12116
12117cat >>confdefs.h <<\_ACEOF
12118#define PTYS_ARE_POSIX 1
12119_ACEOF
12120
12121fi
12103if test x$rxvt_cv_ptys = xOPENPTY; then 12122if test x$rxvt_cv_ptys = xOPENPTY; then
12104 12123
12105cat >>confdefs.h <<\_ACEOF 12124cat >>confdefs.h <<\_ACEOF
12106#define PTYS_ARE_OPENPTY 1 12125#define PTYS_ARE_OPENPTY 1
12107_ACEOF 12126_ACEOF
12133cat >>confdefs.h <<\_ACEOF 12152cat >>confdefs.h <<\_ACEOF
12134#define PTYS_ARE__GETPTY 1 12153#define PTYS_ARE__GETPTY 1
12135_ACEOF 12154_ACEOF
12136 12155
12137fi 12156fi
12138if test x$rxvt_cv_ptys = xCONVEX; then
12139
12140cat >>confdefs.h <<\_ACEOF
12141#define PTYS_ARE_GETPTY 1
12142_ACEOF
12143
12144fi
12145if test x$rxvt_cv_ptys = xGLIBC; then
12146
12147cat >>confdefs.h <<\_ACEOF
12148#define PTYS_ARE_GETPT 1
12149_ACEOF
12150
12151fi
12152if test x$rxvt_cv_ptys = xHPUX; then 12157if test x$rxvt_cv_ptys = xHPUX; then
12153 12158
12154cat >>confdefs.h <<\_ACEOF 12159cat >>confdefs.h <<\_ACEOF
12155#define PTYS_ARE_CLONE 1 12160#define PTYS_ARE_CLONE 1
12156_ACEOF 12161_ACEOF
12157 12162
12158fi 12163fi
12159if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 12164if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12160 12165
12161cat >>confdefs.h <<\_ACEOF 12166cat >>confdefs.h <<\_ACEOF
12162#define PTYS_ARE_SEARCHED 1 12167#define PTYS_ARE_SEARCHED 1
12163_ACEOF 12168_ACEOF
12164 12169
12185 12190
12186fi 12191fi
12187 12192
12188if test x$support_xft = xyes; then 12193if test x$support_xft = xyes; then
12189 LIBS="$LIBS `pkg-config xft --libs`" 12194 LIBS="$LIBS `pkg-config xft --libs`"
12190 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
12191 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 12195 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12192 12196
12193 12197
12194for ac_header in X11/Xft/Xft.h 12198for ac_header in X11/Xft/Xft.h
12195do 12199do
12479cat >>confdefs.h <<\_ACEOF 12483cat >>confdefs.h <<\_ACEOF
12480#define SELECTION_SCROLLING 1 12484#define SELECTION_SCROLLING 1
12481_ACEOF 12485_ACEOF
12482 12486
12483fi 12487fi
12484if test x$support_menubar = xyes; then
12485
12486cat >>confdefs.h <<\_ACEOF
12487#define MENUBAR 1
12488_ACEOF
12489
12490fi
12491if test x$support_frills = xyes; then 12488if test x$support_frills = xyes; then
12492 12489
12493cat >>confdefs.h <<\_ACEOF 12490cat >>confdefs.h <<\_ACEOF
12494#define ENABLE_FRILLS 1 12491#define ENABLE_FRILLS 1
12495_ACEOF 12492_ACEOF
12811 PERL_O=rxvtperl.o 12808 PERL_O=rxvtperl.o
12812 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 12809 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12813 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 12810 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12814 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 12811 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12815 else 12812 else
12816 support_perl=no
12817 echo "$as_me:$LINENO: result: no, unable to link" >&5 12813 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
12818echo "${ECHO_T}no, unable to link" >&6 12814echo "$as_me: error: no, unable to link" >&2;}
12815 { (exit 1); exit 1; }; }
12819 fi 12816 fi
12820 else 12817 else
12821 { { echo "$as_me:$LINENO: error: no working perl found" >&5 12818 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
12822echo "$as_me: error: no working perl found" >&2;} 12819echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
12823 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; } 12820 { (exit 1); exit 1; }; }
12824 support_perl=no
12825 fi 12821 fi
12826fi 12822fi
12827 12823
12828 12824
12829 12825
12830 12826
12831 12827
12832 12828
12829
12830if test x$support_perl = xyes; then
12831 support_frills=yes
12832fi
12833 12833
12834 12834
12835CFLAGS=${CFLAGS--O} 12835CFLAGS=${CFLAGS--O}
12836LDFLAGS=${LDFLAGS--O} 12836LDFLAGS=${LDFLAGS--O}
12837 12837
12851 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` 12851 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12852fi 12852fi
12853 12853
12854 12854
12855 12855
12856
12857
12858if test x$support_addstrings = xno; then
12859
12860cat >>confdefs.h <<\_ACEOF
12861#define NO_STRINGS 1
12862_ACEOF
12863
12864fi
12865
12866MCOMMON=./autoconf/Make.common
12867 12856
12868 12857
12869test "$program_prefix" != NONE && 12858test "$program_prefix" != NONE &&
12870 program_transform_name="s,^,$program_prefix,;$program_transform_name" 12859 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12871# Use a double $ so make ignores it. 12860# Use a double $ so make ignores it.
12947 include_time_h="#include <time.h>" 12936 include_time_h="#include <time.h>"
12948else 12937else
12949 include_time_h="/* #include <time.h> */" 12938 include_time_h="/* #include <time.h> */"
12950fi 12939fi
12951 12940
12952 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h" 12941 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12953 12942
12954cat >confcache <<\_ACEOF 12943cat >confcache <<\_ACEOF
12955# This file is a shell script that caches the results of configure 12944# This file is a shell script that caches the results of configure
12956# tests run on this system so they can be shared between configure 12945# tests run on this system so they can be shared between configure
12957# scripts and configure runs, see configure's option --config-cache. 12946# scripts and configure runs, see configure's option --config-cache.
13474cat >>$CONFIG_STATUS <<\_ACEOF 13463cat >>$CONFIG_STATUS <<\_ACEOF
13475for ac_config_target in $ac_config_targets 13464for ac_config_target in $ac_config_targets
13476do 13465do
13477 case "$ac_config_target" in 13466 case "$ac_config_target" in
13478 # Handling of arguments. 13467 # Handling of arguments.
13479 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13480 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13468 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13481 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13469 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13482 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13470 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13483 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13471 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13484 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13472 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13485 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13473 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13486echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13474echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13487 { (exit 1); exit 1; }; };; 13475 { (exit 1); exit 1; }; };;
13488 esac 13476 esac
13489done 13477done
13590s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13578s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13591s,@CPP@,$CPP,;t t 13579s,@CPP@,$CPP,;t t
13592s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13580s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13593s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13581s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13594s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13582s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13595s,@AWK@,$AWK,;t t 13583s,@EGREP@,$EGREP,;t t
13596s,@LINKER@,$LINKER,;t t 13584s,@LINKER@,$LINKER,;t t
13597s,@CXXCPP@,$CXXCPP,;t t
13598s,@EGREP@,$EGREP,;t t
13599s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13585s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13600s,@RXVTNAME@,$RXVTNAME,;t t 13586s,@RXVTNAME@,$RXVTNAME,;t t
13601s,@MV@,$MV,;t t 13587s,@MV@,$MV,;t t
13602s,@RM@,$RM,;t t 13588s,@RM@,$RM,;t t
13603s,@CP@,$CP,;t t 13589s,@CP@,$CP,;t t
13604s,@LN@,$LN,;t t 13590s,@LN@,$LN,;t t
13605s,@SED@,$SED,;t t 13591s,@SED@,$SED,;t t
13606s,@ECHO@,$ECHO,;t t 13592s,@ECHO@,$ECHO,;t t
13607s,@CMP@,$CMP,;t t 13593s,@CMP@,$CMP,;t t
13608s,@TBL@,$TBL,;t t
13609s,@TIC@,$TIC,;t t 13594s,@TIC@,$TIC,;t t
13595s,@CXXCPP@,$CXXCPP,;t t
13610s,@X_CFLAGS@,$X_CFLAGS,;t t 13596s,@X_CFLAGS@,$X_CFLAGS,;t t
13611s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13597s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13612s,@X_LIBS@,$X_LIBS,;t t 13598s,@X_LIBS@,$X_LIBS,;t t
13613s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13599s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13614s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13600s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13642s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 13628s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13643s,@include_sys_time_h@,$include_sys_time_h,;t t 13629s,@include_sys_time_h@,$include_sys_time_h,;t t
13644s,@include_time_h@,$include_time_h,;t t 13630s,@include_time_h@,$include_time_h,;t t
13645s,@LIBOBJS@,$LIBOBJS,;t t 13631s,@LIBOBJS@,$LIBOBJS,;t t
13646s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13632s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13647/@MCOMMON@/r $MCOMMON
13648s,@MCOMMON@,,;t t
13649CEOF 13633CEOF
13650 13634
13651_ACEOF 13635_ACEOF
13652 13636
13653 cat >>$CONFIG_STATUS <<\_ACEOF 13637 cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines