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

Comparing rxvt-unicode/configure (file contents):
Revision 1.74 by root, Tue Jan 17 09:07:40 2006 UTC vs.
Revision 1.87 by root, Sat Jan 21 23:50:33 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 PKG_CONFIG XFT_CONFIG 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='' 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
1370 1370
1371 1371
1372 1372
1373 1373
1374 1374
1375 ac_config_headers="$ac_config_headers config.h:config.h.in"
1376
1377
1375ac_aux_dir= 1378ac_aux_dir=
1376for ac_dir in autoconf $srcdir/autoconf; do 1379for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377 if test -f $ac_dir/install-sh; then 1380 if test -f $ac_dir/install-sh; then
1378 ac_aux_dir=$ac_dir 1381 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install-sh -c" 1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1380 break 1383 break
1381 elif test -f $ac_dir/install.sh; then 1384 elif test -f $ac_dir/install.sh; then
1387 ac_install_sh="$ac_aux_dir/shtool install -c" 1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1388 break 1391 break
1389 fi 1392 fi
1390done 1393done
1391if test -z "$ac_aux_dir"; then 1394if test -z "$ac_aux_dir"; then
1392 { { 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
1393echo "$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;}
1394 { (exit 1); exit 1; }; } 1397 { (exit 1); exit 1; }; }
1395fi 1398fi
1396ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1399ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1400ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1401ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399
1400 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1401
1402 1402
1403# Make sure we can run config.sub. 1403# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 || 1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3050 3050
3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 3052
3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054 3054
3055for ac_prog in gawk mawk nawk awk
3056do
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058set dummy $ac_prog; ac_word=$2
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061if test "${ac_cv_prog_AWK+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AWK="$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
3080 3055
3081fi
3082fi
3083AWK=$ac_cv_prog_AWK
3084if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086echo "${ECHO_T}$AWK" >&6
3087else
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090fi
3091
3092 test -n "$AWK" && break
3093done
3094
3095
3096ac_ext=c
3097ac_cpp='$CPP $CPPFLAGS'
3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
3102
3103if test -z "$orig_CXXFLAGS"; then
3104 if test x$GCC = xyes && test "x$GXX" = xyes; then
3105 CXXFLAGS="-g -O3"
3106 else
3107 CXXFLAGS="-O"
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
3226ac_ext=cc
3227ac_cpp='$CXXCPP $CPPFLAGS'
3228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3231
3232
3233if test x$GCC = xyes && test x$GXX = xyes; then
3234 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3235echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3236 save_CXX="$CXX"
3237 save_LIBS="$LIBS"
3238 CXX="$CC"
3239 LIBS="$LIBS -lsupc++"
3240 LINKER="$CC"
3241
3242cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h. */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h. */
3248struct test { }; void f() try { throw new test; } catch (...) { throw; }
3249int
3250main ()
3251{
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257rm -f conftest.$ac_objext conftest$ac_exeext
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest$ac_exeext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 echo "$as_me:$LINENO: result: ok" >&5
3279echo "${ECHO_T}ok" >&6
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284
3285 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3286echo "${ECHO_T}no, making everything bigger and slower" >&6
3287 LIBS="$save_LIBS"
3288 LINKER="$save_CXX"
3289
3290
3291fi
3292rm -f conftest.err conftest.$ac_objext \
3293 conftest$ac_exeext conftest.$ac_ext
3294 CXX="$save_CXX"
3295fi
3296LINKER=$LINKER
3297
3298
3299ac_ext=cc
3300ac_cpp='$CXXCPP $CPPFLAGS'
3301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3304
3305if test -z "$orig_CXXFLAGS"; then
3306 if test x$GCC = xyes && test "x$GXX" = xyes; then
3307 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
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
3315int
3316main ()
3317{
3318
3319 ;
3320 return 0;
3321}
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3344 :
3345else
3346 echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349CXXFLAGS="-g -O3"
3350fi
3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352 else
3353 CXXFLAGS="-O"
3354 fi
3355 CFLAGS="$CXXFLAGS"
3356fi
3357
3358
3359cat >>confdefs.h <<\_ACEOF
3360#define _GNU_SOURCE 1
3361_ACEOF
3362
3363
3364case $host in
3365 *-*-solaris* )
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define _XOPEN_SOURCE_EXTENDED 1
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define _XOPEN_SOURCE 2
3374_ACEOF
3375
3376
3377cat >>confdefs.h <<\_ACEOF
3378#define __EXTENSIONS__ 1
3379_ACEOF
3380
3381 ;;
3382esac
3616 3383
3617 3384
3618echo "$as_me:$LINENO: checking for setlocale" >&5 3385echo "$as_me:$LINENO: checking for setlocale" >&5
3619echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 3386echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3620if test "${ac_cv_func_setlocale+set}" = set; then 3387if test "${ac_cv_func_setlocale+set}" = set; then
4830 terminfo="$withval" 4597 terminfo="$withval"
4831 fi 4598 fi
4832fi; 4599fi;
4833 4600
4834 4601
4835
4836cat >>confdefs.h <<\_ACEOF
4837#define PROTOTYPES 1
4838_ACEOF
4839
4840
4841# Extract the first word of "mv", so it can be a program name with args. 4602# Extract the first word of "mv", so it can be a program name with args.
4842set dummy mv; ac_word=$2 4603set dummy mv; ac_word=$2
4843echo "$as_me:$LINENO: checking for $ac_word" >&5 4604echo "$as_me:$LINENO: checking for $ac_word" >&5
4844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845if test "${ac_cv_path_MV+set}" = set; then 4606if test "${ac_cv_path_MV+set}" = set; then
5116else 4877else
5117 echo "$as_me:$LINENO: result: no" >&5 4878 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6 4879echo "${ECHO_T}no" >&6
5119fi 4880fi
5120 4881
5121# Extract the first word of "tbl", so it can be a program name with args.
5122set dummy tbl; ac_word=$2
5123echo "$as_me:$LINENO: checking for $ac_word" >&5
5124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5125if test "${ac_cv_path_TBL+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 case $TBL in
5129 [\\/]* | ?:[\\/]*)
5130 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5131 ;;
5132 *)
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145done
5146
5147 ;;
5148esac
5149fi
5150TBL=$ac_cv_path_TBL
5151
5152if test -n "$TBL"; then
5153 echo "$as_me:$LINENO: result: $TBL" >&5
5154echo "${ECHO_T}$TBL" >&6
5155else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158fi
5159
5160# Extract the first word of "tic", so it can be a program name with args. 4882# Extract the first word of "tic", so it can be a program name with args.
5161set dummy tic; ac_word=$2 4883set dummy tic; ac_word=$2
5162echo "$as_me:$LINENO: checking for $ac_word" >&5 4884echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164if test "${ac_cv_path_TIC+set}" = set; then 4886if test "${ac_cv_path_TIC+set}" = set; then
5195 echo "$as_me:$LINENO: result: no" >&5 4917 echo "$as_me:$LINENO: result: no" >&5
5196echo "${ECHO_T}no" >&6 4918echo "${ECHO_T}no" >&6
5197fi 4919fi
5198 4920
5199 4921
4922
4923
4924ac_ext=cc
4925ac_cpp='$CXXCPP $CPPFLAGS'
4926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4930echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4931if test -z "$CXXCPP"; then
4932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 # Double quotes because CXXCPP needs to be expanded
4936 for CXXCPP in "$CXX -E" "/lib/cpp"
4937 do
4938 ac_preproc_ok=false
4939for ac_cxx_preproc_warn_flag in '' yes
4940do
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.$ac_ext <<_ACEOF
4948/* confdefs.h. */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h. */
4953#ifdef __STDC__
4954# include <limits.h>
4955#else
4956# include <assert.h>
4957#endif
4958 Syntax error
4959_ACEOF
4960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_cxx_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4971 else
4972 ac_cpp_err=
4973 fi
4974else
4975 ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
4978 :
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 # Broken: fails on valid input.
4984continue
4985fi
4986rm -f conftest.err conftest.$ac_ext
4987
4988 # OK, works on sane cases. Now check whether non-existent headers
4989 # can be detected and how.
4990 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */
4996#include <ac_nonexistent.h>
4997_ACEOF
4998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_cxx_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5009 else
5010 ac_cpp_err=
5011 fi
5012else
5013 ac_cpp_err=yes
5014fi
5015if test -z "$ac_cpp_err"; then
5016 # Broken: success on invalid input.
5017continue
5018else
5019 echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 # Passes both tests.
5023ac_preproc_ok=:
5024break
5025fi
5026rm -f conftest.err conftest.$ac_ext
5027
5028done
5029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030rm -f conftest.err conftest.$ac_ext
5031if $ac_preproc_ok; then
5032 break
5033fi
5034
5035 done
5036 ac_cv_prog_CXXCPP=$CXXCPP
5037
5038fi
5039 CXXCPP=$ac_cv_prog_CXXCPP
5040else
5041 ac_cv_prog_CXXCPP=$CXXCPP
5042fi
5043echo "$as_me:$LINENO: result: $CXXCPP" >&5
5044echo "${ECHO_T}$CXXCPP" >&6
5045ac_preproc_ok=false
5046for ac_cxx_preproc_warn_flag in '' yes
5047do
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#ifdef __STDC__
5061# include <limits.h>
5062#else
5063# include <assert.h>
5064#endif
5065 Syntax error
5066_ACEOF
5067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null; then
5075 if test -s conftest.err; then
5076 ac_cpp_err=$ac_cxx_preproc_warn_flag
5077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5078 else
5079 ac_cpp_err=
5080 fi
5081else
5082 ac_cpp_err=yes
5083fi
5084if test -z "$ac_cpp_err"; then
5085 :
5086else
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 # Broken: fails on valid input.
5091continue
5092fi
5093rm -f conftest.err conftest.$ac_ext
5094
5095 # OK, works on sane cases. Now check whether non-existent headers
5096 # can be detected and how.
5097 cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h. */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h. */
5103#include <ac_nonexistent.h>
5104_ACEOF
5105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116 else
5117 ac_cpp_err=
5118 fi
5119else
5120 ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
5123 # Broken: success on invalid input.
5124continue
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 # Passes both tests.
5130ac_preproc_ok=:
5131break
5132fi
5133rm -f conftest.err conftest.$ac_ext
5134
5135done
5136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137rm -f conftest.err conftest.$ac_ext
5138if $ac_preproc_ok; then
5139 :
5140else
5141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142See \`config.log' for more details." >&5
5143echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5144See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5146fi
5147
5148ac_ext=cc
5149ac_cpp='$CXXCPP $CPPFLAGS'
5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200 5153
5201 5154
5202 5155
5203if test "x$ac_path_x_has_been_run" != xyes; then 5156if test "x$ac_path_x_has_been_run" != xyes; then
5204 echo "$as_me:$LINENO: checking for X" >&5 5157 echo "$as_me:$LINENO: checking for X" >&5
7258 7211
7259 7212
7260 7213
7261 7214
7262 7215
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272for ac_header in \ 7216for ac_header in \
7273 assert.h \ 7217 assert.h \
7274 fcntl.h \ 7218 fcntl.h \
7275 grp.h \
7276 libc.h \
7277 lastlog.h \
7278 stdarg.h \ 7219 stdarg.h \
7279 stdlib.h \ 7220 stdlib.h \
7280 string.h \ 7221 string.h \
7281 termios.h \ 7222 termios.h \
7282 unistd.h \ 7223 unistd.h \
7283 sys/byteorder.h \ 7224 sys/byteorder.h \
7284 sys/ioctl.h \ 7225 sys/ioctl.h \
7285 sys/select.h \ 7226 sys/select.h \
7286 sys/sockio.h \ 7227 sys/sockio.h \
7287 sys/strredir.h \ 7228 sys/strredir.h \
7288 sys/stropts.h \
7289 sys/time.h \ 7229 sys/time.h \
7290 utmp.h \ 7230 stdint.h \
7291 utmpx.h \ 7231 wchar.h \
7292 stdint.h \ 7232 cwchar \
7293 pty.h \ 7233 clocale \
7294 util.h \
7295 libutil.h \
7296 wchar.h \
7297 cwchar \
7298 clocale \
7299 7234
7300do 7235do
7301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7302if eval "test \"\${$as_ac_Header+set}\" = set"; then 7237if eval "test \"\${$as_ac_Header+set}\" = set"; then
7303 echo "$as_me:$LINENO: checking for $ac_header" >&5 7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
10130#define RETSIGTYPE $ac_cv_type_signal 10065#define RETSIGTYPE $ac_cv_type_signal
10131_ACEOF 10066_ACEOF
10132 10067
10133 10068
10134 10069
10135case "$host_alias" in
10136 *ultrix) ac_cv_func_setsid='no' ;;
10137 *) break;;
10138esac
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 10070
10154 10071
10155 10072
10156 10073
10157 10074
10158 10075
10159 10076
10160for ac_func in \ 10077for ac_func in \
10161 atexit \
10162 revoke \
10163 unsetenv \ 10078 unsetenv \
10164 setutent \ 10079 setutent \
10165 seteuid \ 10080 seteuid \
10081 setresuid \
10166 setreuid \ 10082 setreuid \
10167 setsid \
10168 setpgrp \
10169 setpgid \
10170 _getpty \
10171 getpt \
10172 posix_openpt \
10173 grantpt \
10174 unlockpt \
10175 isastream \
10176 on_exit \ 10083 on_exit \
10177 nanosleep \ 10084 nanosleep \
10178 updwtmp \
10179 updwtmpx \
10180 ttyslot \
10181 10085
10182do 10086do
10183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10184echo "$as_me:$LINENO: checking for $ac_func" >&5 10088echo "$as_me:$LINENO: checking for $ac_func" >&5
10185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10277 10181
10278fi 10182fi
10279done 10183done
10280 10184
10281 10185
10282 10186UTMP_CHECK
10283if test "${ac_cv_header_utmp_h+set}" = set; then
10284 echo "$as_me:$LINENO: checking for utmp.h" >&5
10285echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10286if test "${ac_cv_header_utmp_h+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288fi
10289echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10290echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10291else
10292 # Is the header compilable?
10293echo "$as_me:$LINENO: checking utmp.h usability" >&5
10294echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10295cat >conftest.$ac_ext <<_ACEOF
10296/* confdefs.h. */
10297_ACEOF
10298cat confdefs.h >>conftest.$ac_ext
10299cat >>conftest.$ac_ext <<_ACEOF
10300/* end confdefs.h. */
10301$ac_includes_default
10302#include <utmp.h>
10303_ACEOF
10304rm -f conftest.$ac_objext
10305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10306 (eval $ac_compile) 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest.$ac_objext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_header_compiler=yes
10326else
10327 echo "$as_me: failed program was:" >&5
10328sed 's/^/| /' conftest.$ac_ext >&5
10329
10330ac_header_compiler=no
10331fi
10332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334echo "${ECHO_T}$ac_header_compiler" >&6
10335
10336# Is the header present?
10337echo "$as_me:$LINENO: checking utmp.h presence" >&5
10338echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10339cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h. */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h. */
10345#include <utmp.h>
10346_ACEOF
10347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10349 ac_status=$?
10350 grep -v '^ *+' conftest.er1 >conftest.err
10351 rm -f conftest.er1
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } >/dev/null; then
10355 if test -s conftest.err; then
10356 ac_cpp_err=$ac_cxx_preproc_warn_flag
10357 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10358 else
10359 ac_cpp_err=
10360 fi
10361else
10362 ac_cpp_err=yes
10363fi
10364if test -z "$ac_cpp_err"; then
10365 ac_header_preproc=yes
10366else
10367 echo "$as_me: failed program was:" >&5
10368sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 ac_header_preproc=no
10371fi
10372rm -f conftest.err conftest.$ac_ext
10373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374echo "${ECHO_T}$ac_header_preproc" >&6
10375
10376# So? What about this header?
10377case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10378 yes:no: )
10379 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10380echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10382echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc=yes
10384 ;;
10385 no:yes:* )
10386 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10387echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10389echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10391echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10393echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10395echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10397echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10398 (
10399 cat <<\_ASBOX
10400## ------------------------------------------ ##
10401## Report this to the AC_PACKAGE_NAME lists. ##
10402## ------------------------------------------ ##
10403_ASBOX
10404 ) |
10405 sed "s/^/$as_me: WARNING: /" >&2
10406 ;;
10407esac
10408echo "$as_me:$LINENO: checking for utmp.h" >&5
10409echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10410if test "${ac_cv_header_utmp_h+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413 ac_cv_header_utmp_h=$ac_header_preproc
10414fi
10415echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10416echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10417
10418fi
10419if test $ac_cv_header_utmp_h = yes; then
10420 echo "$as_me:$LINENO: checking for struct utmp" >&5
10421echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10422if test "${rxvt_cv_struct_utmp+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425 cat >conftest.$ac_ext <<_ACEOF
10426/* confdefs.h. */
10427_ACEOF
10428cat confdefs.h >>conftest.$ac_ext
10429cat >>conftest.$ac_ext <<_ACEOF
10430/* end confdefs.h. */
10431#include <sys/types.h>
10432#include <stdint.h>
10433#include <utmp.h>
10434int
10435main ()
10436{
10437struct utmp ut;
10438 ;
10439 return 0;
10440}
10441_ACEOF
10442rm -f conftest.$ac_objext
10443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>conftest.er1
10445 ac_status=$?
10446 grep -v '^ *+' conftest.er1 >conftest.err
10447 rm -f conftest.er1
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; } &&
10457 { ac_try='test -s conftest.$ac_objext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10460 ac_status=$?
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 rxvt_cv_struct_utmp=yes
10464else
10465 echo "$as_me: failed program was:" >&5
10466sed 's/^/| /' conftest.$ac_ext >&5
10467
10468rxvt_cv_struct_utmp=no
10469fi
10470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10471fi
10472echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10473echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10474if test x$rxvt_cv_struct_utmp = xyes; then
10475
10476cat >>confdefs.h <<\_ACEOF
10477#define HAVE_STRUCT_UTMP 1
10478_ACEOF
10479
10480fi
10481
10482
10483echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10484echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10485if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 cat >conftest.$ac_ext <<_ACEOF
10489/* confdefs.h. */
10490_ACEOF
10491cat confdefs.h >>conftest.$ac_ext
10492cat >>conftest.$ac_ext <<_ACEOF
10493/* end confdefs.h. */
10494#include <sys/types.h>
10495#include <utmp.h>
10496int
10497main ()
10498{
10499struct utmp ut; ut.ut_host;
10500 ;
10501 return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext
10505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>conftest.er1
10507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
10513 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest.$ac_objext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10522 ac_status=$?
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 rxvt_cv_struct_utmp_host=yes
10526else
10527 echo "$as_me: failed program was:" >&5
10528sed 's/^/| /' conftest.$ac_ext >&5
10529
10530rxvt_cv_struct_utmp_host=no
10531fi
10532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533fi
10534echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10535echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10536if test x$rxvt_cv_struct_utmp_host = xyes; then
10537
10538cat >>confdefs.h <<\_ACEOF
10539#define HAVE_UTMP_HOST 1
10540_ACEOF
10541
10542fi
10543
10544echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10545echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10546if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549 cat >conftest.$ac_ext <<_ACEOF
10550/* confdefs.h. */
10551_ACEOF
10552cat confdefs.h >>conftest.$ac_ext
10553cat >>conftest.$ac_ext <<_ACEOF
10554/* end confdefs.h. */
10555#include <sys/types.h>
10556#include <utmp.h>
10557int
10558main ()
10559{
10560struct utmp ut; ut.ut_pid;
10561 ;
10562 return 0;
10563}
10564_ACEOF
10565rm -f conftest.$ac_objext
10566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 rxvt_cv_struct_utmp_pid=yes
10587else
10588 echo "$as_me: failed program was:" >&5
10589sed 's/^/| /' conftest.$ac_ext >&5
10590
10591rxvt_cv_struct_utmp_pid=no
10592fi
10593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594fi
10595echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10596echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10597if test x$rxvt_cv_struct_utmp_pid = xyes; then
10598
10599cat >>confdefs.h <<\_ACEOF
10600#define HAVE_UTMP_PID 1
10601_ACEOF
10602
10603fi
10604
10605fi
10606
10607
10608
10609if test "${ac_cv_header_utmpx_h+set}" = set; then
10610 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10611echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10612if test "${ac_cv_header_utmpx_h+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10614fi
10615echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10616echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10617else
10618 # Is the header compilable?
10619echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10620echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10621cat >conftest.$ac_ext <<_ACEOF
10622/* confdefs.h. */
10623_ACEOF
10624cat confdefs.h >>conftest.$ac_ext
10625cat >>conftest.$ac_ext <<_ACEOF
10626/* end confdefs.h. */
10627$ac_includes_default
10628#include <utmpx.h>
10629_ACEOF
10630rm -f conftest.$ac_objext
10631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632 (eval $ac_compile) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10642 ac_status=$?
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10648 ac_status=$?
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 ac_header_compiler=yes
10652else
10653 echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656ac_header_compiler=no
10657fi
10658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10660echo "${ECHO_T}$ac_header_compiler" >&6
10661
10662# Is the header present?
10663echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10664echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10665cat >conftest.$ac_ext <<_ACEOF
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
10671#include <utmpx.h>
10672_ACEOF
10673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10675 ac_status=$?
10676 grep -v '^ *+' conftest.er1 >conftest.err
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } >/dev/null; then
10681 if test -s conftest.err; then
10682 ac_cpp_err=$ac_cxx_preproc_warn_flag
10683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10684 else
10685 ac_cpp_err=
10686 fi
10687else
10688 ac_cpp_err=yes
10689fi
10690if test -z "$ac_cpp_err"; then
10691 ac_header_preproc=yes
10692else
10693 echo "$as_me: failed program was:" >&5
10694sed 's/^/| /' conftest.$ac_ext >&5
10695
10696 ac_header_preproc=no
10697fi
10698rm -f conftest.err conftest.$ac_ext
10699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10700echo "${ECHO_T}$ac_header_preproc" >&6
10701
10702# So? What about this header?
10703case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10704 yes:no: )
10705 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10706echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10708echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10709 ac_header_preproc=yes
10710 ;;
10711 no:yes:* )
10712 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10713echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10714 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10715echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10716 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10717echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10719echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10721echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10723echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10724 (
10725 cat <<\_ASBOX
10726## ------------------------------------------ ##
10727## Report this to the AC_PACKAGE_NAME lists. ##
10728## ------------------------------------------ ##
10729_ASBOX
10730 ) |
10731 sed "s/^/$as_me: WARNING: /" >&2
10732 ;;
10733esac
10734echo "$as_me:$LINENO: checking for utmpx.h" >&5
10735echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10736if test "${ac_cv_header_utmpx_h+set}" = set; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738else
10739 ac_cv_header_utmpx_h=$ac_header_preproc
10740fi
10741echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10742echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10743
10744fi
10745if test $ac_cv_header_utmpx_h = yes; then
10746 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10747echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10748if test "${rxvt_cv_struct_utmpx+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 cat >conftest.$ac_ext <<_ACEOF
10752/* confdefs.h. */
10753_ACEOF
10754cat confdefs.h >>conftest.$ac_ext
10755cat >>conftest.$ac_ext <<_ACEOF
10756/* end confdefs.h. */
10757#include <sys/types.h>
10758#include <utmpx.h>
10759int
10760main ()
10761{
10762struct utmpx ut;
10763 ;
10764 return 0;
10765}
10766_ACEOF
10767rm -f conftest.$ac_objext
10768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769 (eval $ac_compile) 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 rxvt_cv_struct_utmpx=yes
10789else
10790 echo "$as_me: failed program was:" >&5
10791sed 's/^/| /' conftest.$ac_ext >&5
10792
10793rxvt_cv_struct_utmpx=no
10794fi
10795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796fi
10797echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10798echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10799if test x$rxvt_cv_struct_utmpx = xyes; then
10800
10801cat >>confdefs.h <<\_ACEOF
10802#define HAVE_STRUCT_UTMPX 1
10803_ACEOF
10804
10805fi
10806
10807
10808echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10809echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10810if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 cat >conftest.$ac_ext <<_ACEOF
10814/* confdefs.h. */
10815_ACEOF
10816cat confdefs.h >>conftest.$ac_ext
10817cat >>conftest.$ac_ext <<_ACEOF
10818/* end confdefs.h. */
10819#include <sys/types.h>
10820#include <utmpx.h>
10821int
10822main ()
10823{
10824struct utmpx utx; utx.ut_host;
10825 ;
10826 return 0;
10827}
10828_ACEOF
10829rm -f conftest.$ac_objext
10830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10831 (eval $ac_compile) 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest.$ac_objext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 rxvt_cv_struct_utmpx_host=yes
10851else
10852 echo "$as_me: failed program was:" >&5
10853sed 's/^/| /' conftest.$ac_ext >&5
10854
10855rxvt_cv_struct_utmpx_host=no
10856fi
10857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10858fi
10859echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10860echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10861if test x$rxvt_cv_struct_utmpx_host = xyes; then
10862
10863cat >>confdefs.h <<\_ACEOF
10864#define HAVE_UTMPX_HOST 1
10865_ACEOF
10866
10867fi
10868
10869echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10870echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10871if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 cat >conftest.$ac_ext <<_ACEOF
10875/* confdefs.h. */
10876_ACEOF
10877cat confdefs.h >>conftest.$ac_ext
10878cat >>conftest.$ac_ext <<_ACEOF
10879/* end confdefs.h. */
10880#include <sys/types.h>
10881#include <utmpx.h>
10882int
10883main ()
10884{
10885struct utmpx utx; utx.ut_session;
10886 ;
10887 return 0;
10888}
10889_ACEOF
10890rm -f conftest.$ac_objext
10891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 rxvt_cv_struct_utmpx_session=yes
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916rxvt_cv_struct_utmpx_session=no
10917fi
10918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919fi
10920echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10921echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10922if test x$rxvt_cv_struct_utmpx_session = xyes; then
10923
10924cat >>confdefs.h <<\_ACEOF
10925#define HAVE_UTMPX_SESSION 1
10926_ACEOF
10927
10928fi
10929
10930fi
10931
10932
10933echo "$as_me:$LINENO: checking for struct lastlog" >&5
10934echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10935if test "${rxvt_cv_struct_lastlog+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 cat >conftest.$ac_ext <<_ACEOF
10939/* confdefs.h. */
10940_ACEOF
10941cat confdefs.h >>conftest.$ac_ext
10942cat >>conftest.$ac_ext <<_ACEOF
10943/* end confdefs.h. */
10944#include <sys/types.h>
10945#include <utmp.h>
10946#ifdef HAVE_LASTLOG_H
10947#include <lastlog.h>
10948#endif
10949
10950int
10951main ()
10952{
10953struct lastlog ll;
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958rm -f conftest.$ac_objext
10959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10960 (eval $ac_compile) 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
10967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest.$ac_objext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 rxvt_cv_struct_lastlog=yes
10980else
10981 echo "$as_me: failed program was:" >&5
10982sed 's/^/| /' conftest.$ac_ext >&5
10983
10984rxvt_cv_struct_lastlog=no
10985fi
10986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10987fi
10988echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10989echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10990if test x$rxvt_cv_struct_lastlog = xyes; then
10991
10992cat >>confdefs.h <<\_ACEOF
10993#define HAVE_STRUCT_LASTLOG 1
10994_ACEOF
10995
10996fi
10997
10998echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10999echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
11000if test "${rxvt_cv_struct_lastlogx+set}" = set; then
11001 echo $ECHO_N "(cached) $ECHO_C" >&6
11002else
11003 cat >conftest.$ac_ext <<_ACEOF
11004/* confdefs.h. */
11005_ACEOF
11006cat confdefs.h >>conftest.$ac_ext
11007cat >>conftest.$ac_ext <<_ACEOF
11008/* end confdefs.h. */
11009#include <sys/types.h>
11010#include <utmpx.h>
11011#ifdef HAVE_LASTLOG_H
11012#include <lastlog.h>
11013#endif
11014
11015int
11016main ()
11017{
11018struct lastlogx ll;
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11025 (eval $ac_compile) 2>conftest.er1
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11034 (eval $ac_try) 2>&5
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 rxvt_cv_struct_lastlogx=yes
11045else
11046 echo "$as_me: failed program was:" >&5
11047sed 's/^/| /' conftest.$ac_ext >&5
11048
11049rxvt_cv_struct_lastlogx=no
11050fi
11051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11052fi
11053echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11054echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11055if test x$rxvt_cv_struct_lastlogx = xyes; then
11056
11057cat >>confdefs.h <<\_ACEOF
11058#define HAVE_STRUCT_LASTLOGX 1
11059_ACEOF
11060
11061fi
11062
11063
11064echo "$as_me:$LINENO: checking where utmp is located" >&5
11065echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11066if test "${rxvt_cv_path_utmp+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11068else
11069 if test "$cross_compiling" = yes; then
11070 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
11071echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11072else
11073 cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
11079#include <stdio.h>
11080#include <sys/types.h>
11081#include <utmp.h>
11082#include <errno.h>
11083main()
11084{
11085 char **u, *utmplist[] = {
11086 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11087 FILE *a, *f=fopen("conftestval", "w");
11088 if (!f) exit(1);
11089#ifdef UTMP_FILE
11090 fprintf(f, "%s\n", UTMP_FILE);
11091 exit(0);
11092#endif
11093#ifdef _PATH_UTMP
11094 fprintf(f, "%s\n", _PATH_UTMP);
11095 exit(0);
11096#endif
11097 for (u = utmplist; *u; u++) {
11098 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11099 fprintf(f, "%s\n", *u);
11100 exit(0);
11101 }
11102 }
11103 exit(0);
11104}
11105_ACEOF
11106rm -f conftest$ac_exeext
11107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108 (eval $ac_link) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
11117 rxvt_cv_path_utmp=`cat conftestval`
11118else
11119 echo "$as_me: program exited with status $ac_status" >&5
11120echo "$as_me: failed program was:" >&5
11121sed 's/^/| /' conftest.$ac_ext >&5
11122
11123( exit $ac_status )
11124rxvt_cv_path_utmp=
11125fi
11126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11127fi
11128fi
11129echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
11130echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11131if test x$rxvt_cv_path_utmp != x; then
11132
11133cat >>confdefs.h <<_ACEOF
11134#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11135_ACEOF
11136
11137fi
11138
11139
11140echo "$as_me:$LINENO: checking where utmpx is located" >&5
11141echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11142if test "${rxvt_cv_path_utmpx+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144else
11145 if test "$cross_compiling" = yes; then
11146 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11147echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11148else
11149 cat >conftest.$ac_ext <<_ACEOF
11150/* confdefs.h. */
11151_ACEOF
11152cat confdefs.h >>conftest.$ac_ext
11153cat >>conftest.$ac_ext <<_ACEOF
11154/* end confdefs.h. */
11155#include <stdio.h>
11156#include <sys/types.h>
11157#include <utmpx.h>
11158#include <errno.h>
11159#include <sys/stat.h>
11160#ifdef HAVE_STRING_H
11161#include <string.h>
11162#endif
11163main()
11164{
11165 char **u, *p, *utmplist[] = {
11166#ifdef UTMPX_FILE
11167 UTMPX_FILE,
11168#endif
11169#ifdef _PATH_UTMPX
11170 _PATH_UTMPX,
11171#endif
11172 "/var/adm/utmpx", "/etc/utmpx", NULL };
11173 FILE *a, *f=fopen("conftestval", "w");
11174 struct stat statu, statux;
11175 if (!f) exit(1);
11176 for (u = utmplist; *u; u++) {
11177 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11178 if (stat(*u, &statux) < 0)
11179 continue;
11180 p = strdup(*u);
11181 p[strlen(p) - 1] = '\0';
11182 if (stat(p, &statu) >= 0
11183 && (statu.st_mtime - statux.st_mtime > 86400))
11184 continue;
11185 fprintf(f, "%s\n", *u);
11186 exit(0);
11187 }
11188 }
11189 exit(0);
11190}
11191_ACEOF
11192rm -f conftest$ac_exeext
11193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 rxvt_cv_path_utmpx=`cat conftestval`
11204else
11205 echo "$as_me: program exited with status $ac_status" >&5
11206echo "$as_me: failed program was:" >&5
11207sed 's/^/| /' conftest.$ac_ext >&5
11208
11209( exit $ac_status )
11210rxvt_cv_path_utmpx=
11211fi
11212rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11213fi
11214fi
11215echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11216echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11217if test x$rxvt_cv_path_utmpx != x; then
11218
11219cat >>confdefs.h <<_ACEOF
11220#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11221_ACEOF
11222
11223fi
11224
11225
11226echo "$as_me:$LINENO: checking where wtmp is located" >&5
11227echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11228if test "${rxvt_cv_path_wtmp+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230else
11231 if test "$cross_compiling" = yes; then
11232 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11233echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11234else
11235 cat >conftest.$ac_ext <<_ACEOF
11236/* confdefs.h. */
11237_ACEOF
11238cat confdefs.h >>conftest.$ac_ext
11239cat >>conftest.$ac_ext <<_ACEOF
11240/* end confdefs.h. */
11241#include <stdio.h>
11242#include <sys/types.h>
11243#ifdef HAVE_UTMP_H
11244#include <utmp.h>
11245#endif
11246#include <errno.h>
11247main()
11248{
11249 char **w, *wtmplist[] = {
11250 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11251 FILE *a, *f=fopen("conftestval", "w");
11252 if (!f) exit(1);
11253#ifdef WTMP_FILE
11254 fprintf(f, "%s\n", WTMP_FILE);
11255 exit(0);
11256#endif
11257#ifdef _PATH_WTMP
11258 fprintf(f, "%s\n", _PATH_WTMP);
11259 exit(0);
11260#endif
11261 for (w = wtmplist; *w; w++) {
11262 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11263 fprintf(f, "%s\n", *w);
11264 exit(0);
11265 }
11266 }
11267 exit(0);
11268}
11269_ACEOF
11270rm -f conftest$ac_exeext
11271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272 (eval $ac_link) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 rxvt_cv_path_wtmp=`cat conftestval`
11282else
11283 echo "$as_me: program exited with status $ac_status" >&5
11284echo "$as_me: failed program was:" >&5
11285sed 's/^/| /' conftest.$ac_ext >&5
11286
11287( exit $ac_status )
11288rxvt_cv_path_wtmp=
11289fi
11290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11291fi
11292fi
11293echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11294echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11295if test x$rxvt_cv_path_wtmp != x; then
11296
11297cat >>confdefs.h <<_ACEOF
11298#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11299_ACEOF
11300
11301fi
11302
11303echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11304echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11305if test "${rxvt_cv_path_wtmpx+set}" = set; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11307else
11308 if test "$cross_compiling" = yes; then
11309 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11310echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11311else
11312 cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
11318#include <stdio.h>
11319#ifdef HAVE_UTMPX_H
11320#include <utmpx.h>
11321#endif
11322#include <errno.h>
11323main()
11324{
11325 char **w, *wtmplist[] = {
11326 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11327 FILE *a, *f=fopen("conftestval", "w");
11328 if (!f) exit(1);
11329#ifdef WTMPX_FILE
11330 fprintf(f, "%s\n", WTMPX_FILE);
11331 exit(0);
11332#endif
11333#ifdef _PATH_WTMPX
11334 fprintf(f, "%s\n", _PATH_WTMPX);
11335 exit(0);
11336#endif
11337 for (w = wtmplist; *w; w++) {
11338 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11339 fprintf(f, "%s\n", *w);
11340 exit(0);
11341 }
11342 }
11343 exit(0);
11344}
11345_ACEOF
11346rm -f conftest$ac_exeext
11347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348 (eval $ac_link) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353 (eval $ac_try) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 rxvt_cv_path_wtmpx=`cat conftestval`
11358else
11359 echo "$as_me: program exited with status $ac_status" >&5
11360echo "$as_me: failed program was:" >&5
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
11363( exit $ac_status )
11364rxvt_cv_path_wtmpx=
11365fi
11366rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11367fi
11368fi
11369echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11370echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11371if test x$rxvt_cv_path_wtmpx != x; then
11372
11373cat >>confdefs.h <<_ACEOF
11374#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11375_ACEOF
11376
11377fi
11378
11379echo "$as_me:$LINENO: checking where lastlog is located" >&5
11380echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11381if test "${rxvt_cv_path_lastlog+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383else
11384 if test "$cross_compiling" = yes; then
11385 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11386echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11387else
11388 cat >conftest.$ac_ext <<_ACEOF
11389/* confdefs.h. */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h. */
11394#include <stdio.h>
11395#include <sys/types.h>
11396#ifdef HAVE_UTMPX_H
11397#include <utmpx.h>
11398#elif defined(HAVE_UTMP_H)
11399#include <utmp.h>
11400#endif
11401#ifdef HAVE_LASTLOG_H
11402#include <lastlog.h>
11403#endif
11404#include <errno.h>
11405main()
11406{
11407 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11408 FILE *a, *f=fopen("conftestval", "w");
11409 if (!f) exit(1);
11410#ifdef LASTLOG_FILE
11411 fprintf(f, "%s\n", LASTLOG_FILE);
11412 exit(0);
11413#endif
11414#ifdef _PATH_LASTLOG
11415 fprintf(f, "%s\n", _PATH_LASTLOG);
11416 exit(0);
11417#endif
11418 for (w = lastloglist; *w; w++) {
11419 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11420 fprintf(f, "%s\n", *w);
11421 exit(0);
11422 }
11423 }
11424 exit(0);
11425}
11426_ACEOF
11427rm -f conftest$ac_exeext
11428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429 (eval $ac_link) 2>&5
11430 ac_status=$?
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; }; then
11438 rxvt_cv_path_lastlog=`cat conftestval`
11439else
11440 echo "$as_me: program exited with status $ac_status" >&5
11441echo "$as_me: failed program was:" >&5
11442sed 's/^/| /' conftest.$ac_ext >&5
11443
11444( exit $ac_status )
11445rxvt_cv_path_lastlog=
11446fi
11447rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11448fi
11449fi
11450echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11451echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11452if test x$rxvt_cv_path_lastlog != x; then
11453
11454cat >>confdefs.h <<_ACEOF
11455#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11456_ACEOF
11457
11458 if test -d "$rxvt_cv_path_lastlog"; then
11459
11460cat >>confdefs.h <<\_ACEOF
11461#define LASTLOG_IS_DIR 1
11462_ACEOF
11463
11464 fi
11465fi
11466
11467echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11468echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11469if test "${rxvt_cv_path_lastlogx+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471else
11472 if test "$cross_compiling" = yes; then
11473 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11474echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11475else
11476 cat >conftest.$ac_ext <<_ACEOF
11477/* confdefs.h. */
11478_ACEOF
11479cat confdefs.h >>conftest.$ac_ext
11480cat >>conftest.$ac_ext <<_ACEOF
11481/* end confdefs.h. */
11482#include <stdio.h>
11483#ifdef HAVE_UTMPX_H
11484#include <utmpx.h>
11485#endif
11486#include <errno.h>
11487main()
11488{
11489 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11490 FILE *a, *f=fopen("conftestval", "w");
11491 if (!f) exit(1);
11492#ifdef LASTLOGX_FILE
11493 fprintf(f, "%s\n", LASTLOGX_FILE);
11494 exit(0);
11495#endif
11496#ifdef _PATH_LASTLOGX
11497 fprintf(f, "%s\n", _PATH_LASTLOGX);
11498 exit(0);
11499#endif
11500 for (w = wtmplist; *w; w++) {
11501 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11502 fprintf(f, "%s\n", *w);
11503 exit(0);
11504 }
11505 }
11506 exit(0);
11507}
11508_ACEOF
11509rm -f conftest$ac_exeext
11510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11511 (eval $ac_link) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; }; then
11520 rxvt_cv_path_lastlogx=`cat conftestval`
11521else
11522 echo "$as_me: program exited with status $ac_status" >&5
11523echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
11526( exit $ac_status )
11527rxvt_cv_path_lastlogx=
11528fi
11529rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11530fi
11531fi
11532echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11533echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11534if test x$rxvt_cv_path_lastlogx != x; then
11535
11536cat >>confdefs.h <<_ACEOF
11537#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11538_ACEOF
11539
11540fi
11541 10187
11542 10188
11543echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 10189echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11544echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 10190echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11545if test "${rxvt_cv_path_ttytab+set}" = set; then 10191if test "${rxvt_cv_path_ttytab+set}" = set; then
11812#define HAVE_NL_LANGINFO 1 10458#define HAVE_NL_LANGINFO 1
11813_ACEOF 10459_ACEOF
11814 10460
11815fi 10461fi
11816 10462
11817echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 10463SCM_RIGHTS_CHECK
11818echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11819if test "${rxvt_can_pass_fds+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828
11829#include <sys/types.h>
11830#include <sys/socket.h>
11831
11832int
11833main ()
11834{
11835
11836{
11837 msghdr msg;
11838 iovec iov;
11839 char buf [100];
11840 char data = 0;
11841
11842 iov.iov_base = &data;
11843 iov.iov_len = 1;
11844
11845 msg.msg_iov = &iov;
11846 msg.msg_iovlen = 1;
11847 msg.msg_control = buf;
11848 msg.msg_controllen = sizeof buf;
11849
11850 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11851 cmsg->cmsg_level = SOL_SOCKET;
11852 cmsg->cmsg_type = SCM_RIGHTS;
11853 cmsg->cmsg_len = 100;
11854
11855 *(int *)CMSG_DATA (cmsg) = 5;
11856
11857 return sendmsg (3, &msg, 0);
11858}
11859
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864rm -f conftest.$ac_objext conftest$ac_exeext
11865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866 (eval $ac_link) 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 rxvt_can_pass_fds=yes
11886else
11887 echo "$as_me: failed program was:" >&5
11888sed 's/^/| /' conftest.$ac_ext >&5
11889
11890rxvt_can_pass_fds=no
11891fi
11892rm -f conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894fi
11895echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11896echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11897if test x$rxvt_can_pass_fds = xyes; then
11898
11899cat >>confdefs.h <<\_ACEOF
11900#define HAVE_UNIX_FDPASS 1
11901_ACEOF
11902
11903fi
11904 10464
11905echo "$as_me:$LINENO: checking for broken XIM callback" >&5 10465echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11906echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 10466echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11907if test "${rxvt_broken_ximcb+set}" = set; then 10467if test "${rxvt_broken_ximcb+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6 10468 echo $ECHO_N "(cached) $ECHO_C" >&6
11958#define XIMCB_PROTO_BROKEN 1 10518#define XIMCB_PROTO_BROKEN 1
11959_ACEOF 10519_ACEOF
11960 10520
11961fi 10521fi
11962 10522
11963if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then 10523PTY_CHECK
10524
10525if test x$support_xft = xyes; then
10526 # Extract the first word of "pkg-config", so it can be a program name with args.
10527set dummy pkg-config; ac_word=$2
11964 echo "$as_me:$LINENO: checking for openpty" >&5 10528echo "$as_me:$LINENO: checking for $ac_word" >&5
11965echo $ECHO_N "checking for openpty... $ECHO_C" >&6 10529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11966if test "${ac_cv_func_openpty+set}" = set; then 10530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6 10531 echo $ECHO_N "(cached) $ECHO_C" >&6
11968else 10532else
11969 cat >conftest.$ac_ext <<_ACEOF 10533 case $PKG_CONFIG in
11970/* confdefs.h. */ 10534 [\\/]* | ?:[\\/]*)
11971_ACEOF 10535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11972cat confdefs.h >>conftest.$ac_ext 10536 ;;
11973cat >>conftest.$ac_ext <<_ACEOF 10537 *)
11974/* end confdefs.h. */ 10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975/* Define openpty to an innocuous variant, in case <limits.h> declares openpty. 10539for as_dir in $PATH
11976 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10540do
11977#define openpty innocuous_openpty 10541 IFS=$as_save_IFS
10542 test -z "$as_dir" && as_dir=.
10543 for ac_exec_ext in '' $ac_executable_extensions; do
10544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 break 2
10548 fi
10549done
10550done
11978 10551
11979/* System header to define __stub macros and hopefully few prototypes, 10552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11980 which can conflict with char openpty (); below. 10553 ;;
11981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10554esac
11982 <limits.h> exists even on freestanding compilers. */ 10555fi
10556PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11983 10557
11984#ifdef __STDC__ 10558if test -n "$PKG_CONFIG"; then
11985# include <limits.h> 10559 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10560echo "${ECHO_T}$PKG_CONFIG" >&6
11986#else 10561else
11987# include <assert.h>
11988#endif
11989
11990#undef openpty
11991
11992/* Override any gcc2 internal prototype to avoid an error. */
11993#ifdef __cplusplus
11994extern "C"
11995{
11996#endif
11997/* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999char openpty ();
12000/* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003#if defined (__stub_openpty) || defined (__stub___openpty)
12004choke me
12005#else
12006char (*f) () = openpty;
12007#endif
12008#ifdef __cplusplus
12009}
12010#endif
12011
12012int
12013main ()
12014{
12015return f != openpty;
12016 ;
12017 return 0;
12018}
12019_ACEOF
12020rm -f conftest.$ac_objext conftest$ac_exeext
12021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022 (eval $ac_link) 2>conftest.er1
12023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 ac_cv_func_openpty=yes
12042else
12043 echo "$as_me: failed program was:" >&5
12044sed 's/^/| /' conftest.$ac_ext >&5
12045
12046ac_cv_func_openpty=no
12047fi
12048rm -f conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext conftest.$ac_ext
12050fi
12051echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 10562 echo "$as_me:$LINENO: result: no" >&5
12052echo "${ECHO_T}$ac_cv_func_openpty" >&6 10563echo "${ECHO_T}no" >&6
12053if test $ac_cv_func_openpty = yes; then 10564fi
12054 : 10565
12055else 10566 # Extract the first word of "xft-config", so it can be a program name with args.
10567set dummy xft-config; ac_word=$2
12056 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 10568echo "$as_me:$LINENO: checking for $ac_word" >&5
12057echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 10569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12058if test "${ac_cv_lib_util_openpty+set}" = set; then 10570if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6 10571 echo $ECHO_N "(cached) $ECHO_C" >&6
12060else 10572else
12061 ac_check_lib_save_LIBS=$LIBS 10573 case $XFT_CONFIG in
12062LIBS="-lutil $LIBS" 10574 [\\/]* | ?:[\\/]*)
12063cat >conftest.$ac_ext <<_ACEOF 10575 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
12067cat >>conftest.$ac_ext <<_ACEOF
12068/* end confdefs.h. */
12069
12070/* Override any gcc2 internal prototype to avoid an error. */
12071#ifdef __cplusplus
12072extern "C"
12073#endif
12074/* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076char openpty ();
12077int
12078main ()
12079{
12080openpty ();
12081 ; 10576 ;;
12082 return 0; 10577 *)
12083} 10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084_ACEOF 10579for as_dir in $PATH
12085rm -f conftest.$ac_objext conftest$ac_exeext 10580do
12086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10581 IFS=$as_save_IFS
12087 (eval $ac_link) 2>conftest.er1 10582 test -z "$as_dir" && as_dir=.
12088 ac_status=$? 10583 for ac_exec_ext in '' $ac_executable_extensions; do
12089 grep -v '^ *+' conftest.er1 >conftest.err 10584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090 rm -f conftest.er1 10585 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12091 cat conftest.err >&5 10586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10587 break 2
12093 (exit $ac_status); } && 10588 fi
12094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10589done
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10590done
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 ac_cv_lib_util_openpty=yes
12107else
12108 echo "$as_me: failed program was:" >&5
12109sed 's/^/| /' conftest.$ac_ext >&5
12110 10591
12111ac_cv_lib_util_openpty=no 10592 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
10593 ;;
10594esac
12112fi 10595fi
12113rm -f conftest.err conftest.$ac_objext \ 10596XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12114 conftest$ac_exeext conftest.$ac_ext
12115LIBS=$ac_check_lib_save_LIBS
12116fi
12117echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12118echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12119if test $ac_cv_lib_util_openpty = yes; then
12120 LIBS="$LIBS -lutil"
12121fi
12122 10597
12123fi 10598if test -n "$XFT_CONFIG"; then
12124 10599 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12125fi 10600echo "${ECHO_T}$XFT_CONFIG" >&6
12126
12127echo "$as_me:$LINENO: checking for pty/tty type" >&5
12128echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12129if test "${rxvt_cv_ptys+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131else 10601else
12132 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then 10602 echo "$as_me:$LINENO: result: no" >&5
12133 rxvt_cv_ptys=OPENPTY 10603echo "${ECHO_T}no" >&6
12134 else if test x$ac_cv_func_getpt = xyes; then 10604fi
12135 rxvt_cv_ptys=GLIBC 10605
12136 else if test x$ac_cv_func_posix_openpt = xyes; then 10606 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12137 rxvt_cv_ptys=POSIX 10607 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12138 else if test x$ac_cv_func__getpty = xyes; then 10608 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12139 rxvt_cv_ptys=SGI4
12140 else if test -c /dev/ttyp20; then
12141 rxvt_cv_ptys=SCO
12142 else if test -c /dev/ptym/clone; then
12143 rxvt_cv_ptys=HPUX
12144 else if test -c /dev/ptc -a -c /dev/pts; then
12145 rxvt_cv_ptys=PTC
12146 else if test -c /dev/ptc -a -d /dev/pts; then
12147 rxvt_cv_ptys=PTC
12148 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12149 rxvt_cv_ptys=STREAMS
12150 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12151 rxvt_cv_ptys=STREAMS
12152 else 10609 else
12153 rxvt_cv_ptys=BSD 10610 if test $XFT_CONFIG != no; then
12154fi 10611 LIBS="$LIBS `$XFT_CONFIG --libs`"
12155fi 10612 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12156fi 10613 fi
12157fi 10614 fi
12158fi
12159fi
12160fi
12161fi
12162fi
12163fi
12164
12165fi
12166echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12167echo "${ECHO_T}$rxvt_cv_ptys" >&6
12168
12169if test x$rxvt_cv_ptys = xGLIBC; then
12170
12171cat >>confdefs.h <<\_ACEOF
12172#define PTYS_ARE_GETPT 1
12173_ACEOF
12174
12175fi
12176if test x$rxvt_cv_ptys = xPOSIX; then
12177
12178cat >>confdefs.h <<\_ACEOF
12179#define PTYS_ARE_POSIX 1
12180_ACEOF
12181
12182fi
12183if test x$rxvt_cv_ptys = xOPENPTY; then
12184
12185cat >>confdefs.h <<\_ACEOF
12186#define PTYS_ARE_OPENPTY 1
12187_ACEOF
12188
12189fi
12190if test x$rxvt_cv_ptys = xSCO; then
12191
12192cat >>confdefs.h <<\_ACEOF
12193#define PTYS_ARE_NUMERIC 1
12194_ACEOF
12195
12196fi
12197if test x$rxvt_cv_ptys = xSTREAMS; then
12198
12199cat >>confdefs.h <<\_ACEOF
12200#define PTYS_ARE_PTMX 1
12201_ACEOF
12202
12203fi
12204if test x$rxvt_cv_ptys = xPTC; then
12205
12206cat >>confdefs.h <<\_ACEOF
12207#define PTYS_ARE_PTC 1
12208_ACEOF
12209
12210fi
12211if test x$rxvt_cv_ptys = xSGI4; then
12212
12213cat >>confdefs.h <<\_ACEOF
12214#define PTYS_ARE__GETPTY 1
12215_ACEOF
12216
12217fi
12218if test x$rxvt_cv_ptys = xHPUX; then
12219
12220cat >>confdefs.h <<\_ACEOF
12221#define PTYS_ARE_CLONE 1
12222_ACEOF
12223
12224fi
12225if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12226
12227cat >>confdefs.h <<\_ACEOF
12228#define PTYS_ARE_SEARCHED 1
12229_ACEOF
12230
12231fi
12232
12233
12234{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
12235echo "$as_me: checking for pty ranges..." >&6;}
12236ptys=`echo /dev/pty??`
12237pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12238pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12239if test x$pch1 != x; then
12240
12241cat >>confdefs.h <<_ACEOF
12242#define PTYCHAR1 "$pch1"
12243_ACEOF
12244
12245fi
12246if test x$pch2 != x; then
12247
12248cat >>confdefs.h <<_ACEOF
12249#define PTYCHAR2 "$pch2"
12250_ACEOF
12251
12252fi
12253
12254if test x$support_xft = xyes; then
12255 LIBS="$LIBS `pkg-config xft --libs`"
12256 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12257 10615
12258 10616
12259for ac_header in X11/Xft/Xft.h 10617for ac_header in X11/Xft/Xft.h
12260do 10618do
12261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12869 PERL_O=rxvtperl.o 11227 PERL_O=rxvtperl.o
12870 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 11228 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12871 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 11229 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12872 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 11230 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12873 else 11231 else
12874 support_perl=no
12875 echo "$as_me:$LINENO: result: no, unable to link" >&5 11232 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
12876echo "${ECHO_T}no, unable to link" >&6 11233echo "$as_me: error: no, unable to link" >&2;}
11234 { (exit 1); exit 1; }; }
12877 fi 11235 fi
12878 else 11236 else
12879 { { echo "$as_me:$LINENO: error: no working perl found" >&5 11237 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
12880echo "$as_me: error: no working perl found" >&2;} 11238echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
12881 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; } 11239 { (exit 1); exit 1; }; }
12882 support_perl=no
12883 fi 11240 fi
12884fi 11241fi
12885 11242
12886 11243
12887 11244
13529 # Handling of arguments. 11886 # Handling of arguments.
13530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11887 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13531 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 11888 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13532 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11889 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13533 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 11890 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13534 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 11891 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13536echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13537 { (exit 1); exit 1; }; };; 11894 { (exit 1); exit 1; }; };;
13538 esac 11895 esac
13539done 11896done
13640s,@ac_ct_CXX@,$ac_ct_CXX,;t t 11997s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13641s,@CPP@,$CPP,;t t 11998s,@CPP@,$CPP,;t t
13642s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11999s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13643s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12000s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13644s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12001s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13645s,@AWK@,$AWK,;t t 12002s,@EGREP@,$EGREP,;t t
13646s,@LINKER@,$LINKER,;t t 12003s,@LINKER@,$LINKER,;t t
13647s,@CXXCPP@,$CXXCPP,;t t
13648s,@EGREP@,$EGREP,;t t
13649s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 12004s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13650s,@RXVTNAME@,$RXVTNAME,;t t 12005s,@RXVTNAME@,$RXVTNAME,;t t
13651s,@MV@,$MV,;t t 12006s,@MV@,$MV,;t t
13652s,@RM@,$RM,;t t 12007s,@RM@,$RM,;t t
13653s,@CP@,$CP,;t t 12008s,@CP@,$CP,;t t
13654s,@LN@,$LN,;t t 12009s,@LN@,$LN,;t t
13655s,@SED@,$SED,;t t 12010s,@SED@,$SED,;t t
13656s,@ECHO@,$ECHO,;t t 12011s,@ECHO@,$ECHO,;t t
13657s,@CMP@,$CMP,;t t 12012s,@CMP@,$CMP,;t t
13658s,@TBL@,$TBL,;t t
13659s,@TIC@,$TIC,;t t 12013s,@TIC@,$TIC,;t t
12014s,@CXXCPP@,$CXXCPP,;t t
13660s,@X_CFLAGS@,$X_CFLAGS,;t t 12015s,@X_CFLAGS@,$X_CFLAGS,;t t
13661s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 12016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13662s,@X_LIBS@,$X_LIBS,;t t 12017s,@X_LIBS@,$X_LIBS,;t t
13663s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 12018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13664s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 12019s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13668s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 12023s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13669s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 12024s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13670s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 12025s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13671s,@rxvt_intp_define@,$rxvt_intp_define,;t t 12026s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13672s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 12027s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
12028s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12029s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13673s,@PERL@,$PERL,;t t 12030s,@PERL@,$PERL,;t t
13674s,@PERLLIB@,$PERLLIB,;t t 12031s,@PERLLIB@,$PERLLIB,;t t
13675s,@PERLFLAGS@,$PERLFLAGS,;t t 12032s,@PERLFLAGS@,$PERLFLAGS,;t t
13676s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t 12033s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13677s,@IF_PERL@,$IF_PERL,;t t 12034s,@IF_PERL@,$IF_PERL,;t t
14211fi 12568fi
14212 12569
14213echo " 12570echo "
14214The following are set in config.h 12571The following are set in config.h
14215" 12572"
14216echo " pty/tty type: "$rxvt_cv_ptys
14217if test x$support_utmp != xyes; then 12573if test x$support_utmp != xyes; then
14218 echo " utmp support: disabled" 12574 echo " utmp support: disabled"
14219 echo 12575 echo
14220else 12576else
14221 echo " utmp support: enabled 12577 echo " utmp support: enabled
14238echo " resource class: $RESCLASS" 12594echo " resource class: $RESCLASS"
14239if test x$RESFALLBACK != x; then 12595if test x$RESFALLBACK != x; then
14240 echo " resource class fallback: $RESFALLBACK" 12596 echo " resource class fallback: $RESFALLBACK"
14241fi 12597fi
14242echo 12598echo
14243if test x$rxvt_cv_ptys = xUNKNOWN; then
14244 echo ".----------------------------------------------------------------."
14245 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14246 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14247 echo ".----------------------------------------------------------------."
14248fi
14249if test x$support_xpm = xneedsmanualspecification; then 12599if test x$support_xpm = xneedsmanualspecification; then
14250 echo ".----------------------------------------------------------------." 12600 echo ".----------------------------------------------------------------."
14251 echo ". WARNING: --enable-xpm-background was specified however the ." 12601 echo ". WARNING: --enable-xpm-background was specified however the ."
14252 echo ". XPM includes files and libraries could not be found. ." 12602 echo ". XPM includes files and libraries could not be found. ."
14253 echo ". XPM backgrounds are now being DISABLED! If you want ." 12603 echo ". XPM backgrounds are now being DISABLED! If you want ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines