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

Comparing rxvt-unicode/configure (file contents):
Revision 1.75 by root, Tue Jan 17 11:53:07 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
10137 10072
10138 10073
10139 10074
10140 10075
10141 10076
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151for ac_func in \ 10077for ac_func in \
10152 revoke \
10153 unsetenv \ 10078 unsetenv \
10154 setutent \ 10079 setutent \
10155 seteuid \ 10080 seteuid \
10081 setresuid \
10156 setreuid \ 10082 setreuid \
10157 _getpty \
10158 getpt \
10159 posix_openpt \
10160 grantpt \
10161 unlockpt \
10162 isastream \
10163 on_exit \ 10083 on_exit \
10164 nanosleep \ 10084 nanosleep \
10165 updwtmp \
10166 updwtmpx \
10167 ttyslot \
10168 10085
10169do 10086do
10170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10171echo "$as_me:$LINENO: checking for $ac_func" >&5 10088echo "$as_me:$LINENO: checking for $ac_func" >&5
10172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10264 10181
10265fi 10182fi
10266done 10183done
10267 10184
10268 10185
10269 10186UTMP_CHECK
10270if test "${ac_cv_header_utmp_h+set}" = set; then
10271 echo "$as_me:$LINENO: checking for utmp.h" >&5
10272echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10273if test "${ac_cv_header_utmp_h+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275fi
10276echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10277echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10278else
10279 # Is the header compilable?
10280echo "$as_me:$LINENO: checking utmp.h usability" >&5
10281echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10282cat >conftest.$ac_ext <<_ACEOF
10283/* confdefs.h. */
10284_ACEOF
10285cat confdefs.h >>conftest.$ac_ext
10286cat >>conftest.$ac_ext <<_ACEOF
10287/* end confdefs.h. */
10288$ac_includes_default
10289#include <utmp.h>
10290_ACEOF
10291rm -f conftest.$ac_objext
10292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10293 (eval $ac_compile) 2>conftest.er1
10294 ac_status=$?
10295 grep -v '^ *+' conftest.er1 >conftest.err
10296 rm -f conftest.er1
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } &&
10300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_header_compiler=yes
10313else
10314 echo "$as_me: failed program was:" >&5
10315sed 's/^/| /' conftest.$ac_ext >&5
10316
10317ac_header_compiler=no
10318fi
10319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10321echo "${ECHO_T}$ac_header_compiler" >&6
10322
10323# Is the header present?
10324echo "$as_me:$LINENO: checking utmp.h presence" >&5
10325echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10326cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h. */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
10332#include <utmp.h>
10333_ACEOF
10334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } >/dev/null; then
10342 if test -s conftest.err; then
10343 ac_cpp_err=$ac_cxx_preproc_warn_flag
10344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10345 else
10346 ac_cpp_err=
10347 fi
10348else
10349 ac_cpp_err=yes
10350fi
10351if test -z "$ac_cpp_err"; then
10352 ac_header_preproc=yes
10353else
10354 echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_header_preproc=no
10358fi
10359rm -f conftest.err conftest.$ac_ext
10360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361echo "${ECHO_T}$ac_header_preproc" >&6
10362
10363# So? What about this header?
10364case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10365 yes:no: )
10366 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10367echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10368 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10369echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10370 ac_header_preproc=yes
10371 ;;
10372 no:yes:* )
10373 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10374echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10376echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10378echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10380echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10382echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10384echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10385 (
10386 cat <<\_ASBOX
10387## ------------------------------------------ ##
10388## Report this to the AC_PACKAGE_NAME lists. ##
10389## ------------------------------------------ ##
10390_ASBOX
10391 ) |
10392 sed "s/^/$as_me: WARNING: /" >&2
10393 ;;
10394esac
10395echo "$as_me:$LINENO: checking for utmp.h" >&5
10396echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10397if test "${ac_cv_header_utmp_h+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
10400 ac_cv_header_utmp_h=$ac_header_preproc
10401fi
10402echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10403echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10404
10405fi
10406if test $ac_cv_header_utmp_h = yes; then
10407 echo "$as_me:$LINENO: checking for struct utmp" >&5
10408echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10409if test "${rxvt_cv_struct_utmp+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411else
10412 cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
10418#include <sys/types.h>
10419#include <stdint.h>
10420#include <utmp.h>
10421int
10422main ()
10423{
10424struct utmp ut;
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429rm -f conftest.$ac_objext
10430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } &&
10438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 rxvt_cv_struct_utmp=yes
10451else
10452 echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
10455rxvt_cv_struct_utmp=no
10456fi
10457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10458fi
10459echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10460echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10461if test x$rxvt_cv_struct_utmp = xyes; then
10462
10463cat >>confdefs.h <<\_ACEOF
10464#define HAVE_STRUCT_UTMP 1
10465_ACEOF
10466
10467fi
10468
10469
10470echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10471echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10472if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
10481#include <sys/types.h>
10482#include <utmp.h>
10483int
10484main ()
10485{
10486struct utmp ut; ut.ut_host;
10487 ;
10488 return 0;
10489}
10490_ACEOF
10491rm -f conftest.$ac_objext
10492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 rxvt_cv_struct_utmp_host=yes
10513else
10514 echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516
10517rxvt_cv_struct_utmp_host=no
10518fi
10519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520fi
10521echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10522echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10523if test x$rxvt_cv_struct_utmp_host = xyes; then
10524
10525cat >>confdefs.h <<\_ACEOF
10526#define HAVE_UTMP_HOST 1
10527_ACEOF
10528
10529fi
10530
10531echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10532echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10533if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536 cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
10542#include <sys/types.h>
10543#include <utmp.h>
10544int
10545main ()
10546{
10547struct utmp ut; ut.ut_pid;
10548 ;
10549 return 0;
10550}
10551_ACEOF
10552rm -f conftest.$ac_objext
10553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10554 (eval $ac_compile) 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 rxvt_cv_struct_utmp_pid=yes
10574else
10575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578rxvt_cv_struct_utmp_pid=no
10579fi
10580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10581fi
10582echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10583echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10584if test x$rxvt_cv_struct_utmp_pid = xyes; then
10585
10586cat >>confdefs.h <<\_ACEOF
10587#define HAVE_UTMP_PID 1
10588_ACEOF
10589
10590fi
10591
10592fi
10593
10594
10595
10596if test "${ac_cv_header_utmpx_h+set}" = set; then
10597 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10598echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10599if test "${ac_cv_header_utmpx_h+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601fi
10602echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10603echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10604else
10605 # Is the header compilable?
10606echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10607echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10608cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
10614$ac_includes_default
10615#include <utmpx.h>
10616_ACEOF
10617rm -f conftest.$ac_objext
10618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_header_compiler=yes
10639else
10640 echo "$as_me: failed program was:" >&5
10641sed 's/^/| /' conftest.$ac_ext >&5
10642
10643ac_header_compiler=no
10644fi
10645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10647echo "${ECHO_T}$ac_header_compiler" >&6
10648
10649# Is the header present?
10650echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10651echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10652cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h. */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h. */
10658#include <utmpx.h>
10659_ACEOF
10660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null; then
10668 if test -s conftest.err; then
10669 ac_cpp_err=$ac_cxx_preproc_warn_flag
10670 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10671 else
10672 ac_cpp_err=
10673 fi
10674else
10675 ac_cpp_err=yes
10676fi
10677if test -z "$ac_cpp_err"; then
10678 ac_header_preproc=yes
10679else
10680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683 ac_header_preproc=no
10684fi
10685rm -f conftest.err conftest.$ac_ext
10686echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10687echo "${ECHO_T}$ac_header_preproc" >&6
10688
10689# So? What about this header?
10690case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10691 yes:no: )
10692 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10693echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10695echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10696 ac_header_preproc=yes
10697 ;;
10698 no:yes:* )
10699 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10700echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10702echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10704echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10706echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10708echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10710echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10711 (
10712 cat <<\_ASBOX
10713## ------------------------------------------ ##
10714## Report this to the AC_PACKAGE_NAME lists. ##
10715## ------------------------------------------ ##
10716_ASBOX
10717 ) |
10718 sed "s/^/$as_me: WARNING: /" >&2
10719 ;;
10720esac
10721echo "$as_me:$LINENO: checking for utmpx.h" >&5
10722echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10723if test "${ac_cv_header_utmpx_h+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725else
10726 ac_cv_header_utmpx_h=$ac_header_preproc
10727fi
10728echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10729echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10730
10731fi
10732if test $ac_cv_header_utmpx_h = yes; then
10733 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10734echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10735if test "${rxvt_cv_struct_utmpx+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737else
10738 cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h. */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h. */
10744#include <sys/types.h>
10745#include <utmpx.h>
10746int
10747main ()
10748{
10749struct utmpx ut;
10750 ;
10751 return 0;
10752}
10753_ACEOF
10754rm -f conftest.$ac_objext
10755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10756 (eval $ac_compile) 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 rxvt_cv_struct_utmpx=yes
10776else
10777 echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779
10780rxvt_cv_struct_utmpx=no
10781fi
10782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10783fi
10784echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10785echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10786if test x$rxvt_cv_struct_utmpx = xyes; then
10787
10788cat >>confdefs.h <<\_ACEOF
10789#define HAVE_STRUCT_UTMPX 1
10790_ACEOF
10791
10792fi
10793
10794
10795echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10796echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10797if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 cat >conftest.$ac_ext <<_ACEOF
10801/* confdefs.h. */
10802_ACEOF
10803cat confdefs.h >>conftest.$ac_ext
10804cat >>conftest.$ac_ext <<_ACEOF
10805/* end confdefs.h. */
10806#include <sys/types.h>
10807#include <utmpx.h>
10808int
10809main ()
10810{
10811struct utmpx utx; utx.ut_host;
10812 ;
10813 return 0;
10814}
10815_ACEOF
10816rm -f conftest.$ac_objext
10817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest.$ac_objext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 rxvt_cv_struct_utmpx_host=yes
10838else
10839 echo "$as_me: failed program was:" >&5
10840sed 's/^/| /' conftest.$ac_ext >&5
10841
10842rxvt_cv_struct_utmpx_host=no
10843fi
10844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10845fi
10846echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10847echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10848if test x$rxvt_cv_struct_utmpx_host = xyes; then
10849
10850cat >>confdefs.h <<\_ACEOF
10851#define HAVE_UTMPX_HOST 1
10852_ACEOF
10853
10854fi
10855
10856echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10857echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10858if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860else
10861 cat >conftest.$ac_ext <<_ACEOF
10862/* confdefs.h. */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h. */
10867#include <sys/types.h>
10868#include <utmpx.h>
10869int
10870main ()
10871{
10872struct utmpx utx; utx.ut_session;
10873 ;
10874 return 0;
10875}
10876_ACEOF
10877rm -f conftest.$ac_objext
10878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest.$ac_objext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 rxvt_cv_struct_utmpx_session=yes
10899else
10900 echo "$as_me: failed program was:" >&5
10901sed 's/^/| /' conftest.$ac_ext >&5
10902
10903rxvt_cv_struct_utmpx_session=no
10904fi
10905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906fi
10907echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10908echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10909if test x$rxvt_cv_struct_utmpx_session = xyes; then
10910
10911cat >>confdefs.h <<\_ACEOF
10912#define HAVE_UTMPX_SESSION 1
10913_ACEOF
10914
10915fi
10916
10917fi
10918
10919
10920echo "$as_me:$LINENO: checking for struct lastlog" >&5
10921echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10922if test "${rxvt_cv_struct_lastlog+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
10931#include <sys/types.h>
10932#include <utmp.h>
10933#ifdef HAVE_LASTLOG_H
10934#include <lastlog.h>
10935#endif
10936
10937int
10938main ()
10939{
10940struct lastlog ll;
10941 ;
10942 return 0;
10943}
10944_ACEOF
10945rm -f conftest.$ac_objext
10946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10947 (eval $ac_compile) 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 rxvt_cv_struct_lastlog=yes
10967else
10968 echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971rxvt_cv_struct_lastlog=no
10972fi
10973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974fi
10975echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10976echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10977if test x$rxvt_cv_struct_lastlog = xyes; then
10978
10979cat >>confdefs.h <<\_ACEOF
10980#define HAVE_STRUCT_LASTLOG 1
10981_ACEOF
10982
10983fi
10984
10985echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10986echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10987if test "${rxvt_cv_struct_lastlogx+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989else
10990 cat >conftest.$ac_ext <<_ACEOF
10991/* confdefs.h. */
10992_ACEOF
10993cat confdefs.h >>conftest.$ac_ext
10994cat >>conftest.$ac_ext <<_ACEOF
10995/* end confdefs.h. */
10996#include <sys/types.h>
10997#include <utmpx.h>
10998#ifdef HAVE_LASTLOG_H
10999#include <lastlog.h>
11000#endif
11001
11002int
11003main ()
11004{
11005struct lastlogx ll;
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext
11011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11012 (eval $ac_compile) 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 rxvt_cv_struct_lastlogx=yes
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036rxvt_cv_struct_lastlogx=no
11037fi
11038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11039fi
11040echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11041echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11042if test x$rxvt_cv_struct_lastlogx = xyes; then
11043
11044cat >>confdefs.h <<\_ACEOF
11045#define HAVE_STRUCT_LASTLOGX 1
11046_ACEOF
11047
11048fi
11049
11050
11051echo "$as_me:$LINENO: checking where utmp is located" >&5
11052echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11053if test "${rxvt_cv_path_utmp+set}" = set; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055else
11056 if test "$cross_compiling" = yes; then
11057 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
11058echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11059else
11060 cat >conftest.$ac_ext <<_ACEOF
11061/* confdefs.h. */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h. */
11066#include <stdio.h>
11067#include <sys/types.h>
11068#include <utmp.h>
11069#include <errno.h>
11070main()
11071{
11072 char **u, *utmplist[] = {
11073 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11074 FILE *a, *f=fopen("conftestval", "w");
11075 if (!f) exit(1);
11076#ifdef UTMP_FILE
11077 fprintf(f, "%s\n", UTMP_FILE);
11078 exit(0);
11079#endif
11080#ifdef _PATH_UTMP
11081 fprintf(f, "%s\n", _PATH_UTMP);
11082 exit(0);
11083#endif
11084 for (u = utmplist; *u; u++) {
11085 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11086 fprintf(f, "%s\n", *u);
11087 exit(0);
11088 }
11089 }
11090 exit(0);
11091}
11092_ACEOF
11093rm -f conftest$ac_exeext
11094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 rxvt_cv_path_utmp=`cat conftestval`
11105else
11106 echo "$as_me: program exited with status $ac_status" >&5
11107echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109
11110( exit $ac_status )
11111rxvt_cv_path_utmp=
11112fi
11113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11114fi
11115fi
11116echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
11117echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11118if test x$rxvt_cv_path_utmp != x; then
11119
11120cat >>confdefs.h <<_ACEOF
11121#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11122_ACEOF
11123
11124fi
11125
11126
11127echo "$as_me:$LINENO: checking where utmpx is located" >&5
11128echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11129if test "${rxvt_cv_path_utmpx+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131else
11132 if test "$cross_compiling" = yes; then
11133 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11134echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11135else
11136 cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142#include <stdio.h>
11143#include <sys/types.h>
11144#include <utmpx.h>
11145#include <errno.h>
11146#include <sys/stat.h>
11147#ifdef HAVE_STRING_H
11148#include <string.h>
11149#endif
11150main()
11151{
11152 char **u, *p, *utmplist[] = {
11153#ifdef UTMPX_FILE
11154 UTMPX_FILE,
11155#endif
11156#ifdef _PATH_UTMPX
11157 _PATH_UTMPX,
11158#endif
11159 "/var/adm/utmpx", "/etc/utmpx", NULL };
11160 FILE *a, *f=fopen("conftestval", "w");
11161 struct stat statu, statux;
11162 if (!f) exit(1);
11163 for (u = utmplist; *u; u++) {
11164 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11165 if (stat(*u, &statux) < 0)
11166 continue;
11167 p = strdup(*u);
11168 p[strlen(p) - 1] = '\0';
11169 if (stat(p, &statu) >= 0
11170 && (statu.st_mtime - statux.st_mtime > 86400))
11171 continue;
11172 fprintf(f, "%s\n", *u);
11173 exit(0);
11174 }
11175 }
11176 exit(0);
11177}
11178_ACEOF
11179rm -f conftest$ac_exeext
11180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11181 (eval $ac_link) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 rxvt_cv_path_utmpx=`cat conftestval`
11191else
11192 echo "$as_me: program exited with status $ac_status" >&5
11193echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196( exit $ac_status )
11197rxvt_cv_path_utmpx=
11198fi
11199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11200fi
11201fi
11202echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11203echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11204if test x$rxvt_cv_path_utmpx != x; then
11205
11206cat >>confdefs.h <<_ACEOF
11207#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11208_ACEOF
11209
11210fi
11211
11212
11213echo "$as_me:$LINENO: checking where wtmp is located" >&5
11214echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11215if test "${rxvt_cv_path_wtmp+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 if test "$cross_compiling" = yes; then
11219 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11220echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11221else
11222 cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h. */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h. */
11228#include <stdio.h>
11229#include <sys/types.h>
11230#ifdef HAVE_UTMP_H
11231#include <utmp.h>
11232#endif
11233#include <errno.h>
11234main()
11235{
11236 char **w, *wtmplist[] = {
11237 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11238 FILE *a, *f=fopen("conftestval", "w");
11239 if (!f) exit(1);
11240#ifdef WTMP_FILE
11241 fprintf(f, "%s\n", WTMP_FILE);
11242 exit(0);
11243#endif
11244#ifdef _PATH_WTMP
11245 fprintf(f, "%s\n", _PATH_WTMP);
11246 exit(0);
11247#endif
11248 for (w = wtmplist; *w; w++) {
11249 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11250 fprintf(f, "%s\n", *w);
11251 exit(0);
11252 }
11253 }
11254 exit(0);
11255}
11256_ACEOF
11257rm -f conftest$ac_exeext
11258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11265 ac_status=$?
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }; then
11268 rxvt_cv_path_wtmp=`cat conftestval`
11269else
11270 echo "$as_me: program exited with status $ac_status" >&5
11271echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274( exit $ac_status )
11275rxvt_cv_path_wtmp=
11276fi
11277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11278fi
11279fi
11280echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11281echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11282if test x$rxvt_cv_path_wtmp != x; then
11283
11284cat >>confdefs.h <<_ACEOF
11285#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11286_ACEOF
11287
11288fi
11289
11290echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11291echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11292if test "${rxvt_cv_path_wtmpx+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
11295 if test "$cross_compiling" = yes; then
11296 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11297echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11298else
11299 cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305#include <stdio.h>
11306#ifdef HAVE_UTMPX_H
11307#include <utmpx.h>
11308#endif
11309#include <errno.h>
11310main()
11311{
11312 char **w, *wtmplist[] = {
11313 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11314 FILE *a, *f=fopen("conftestval", "w");
11315 if (!f) exit(1);
11316#ifdef WTMPX_FILE
11317 fprintf(f, "%s\n", WTMPX_FILE);
11318 exit(0);
11319#endif
11320#ifdef _PATH_WTMPX
11321 fprintf(f, "%s\n", _PATH_WTMPX);
11322 exit(0);
11323#endif
11324 for (w = wtmplist; *w; w++) {
11325 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11326 fprintf(f, "%s\n", *w);
11327 exit(0);
11328 }
11329 }
11330 exit(0);
11331}
11332_ACEOF
11333rm -f conftest$ac_exeext
11334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335 (eval $ac_link) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 rxvt_cv_path_wtmpx=`cat conftestval`
11345else
11346 echo "$as_me: program exited with status $ac_status" >&5
11347echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350( exit $ac_status )
11351rxvt_cv_path_wtmpx=
11352fi
11353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11354fi
11355fi
11356echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11357echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11358if test x$rxvt_cv_path_wtmpx != x; then
11359
11360cat >>confdefs.h <<_ACEOF
11361#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11362_ACEOF
11363
11364fi
11365
11366echo "$as_me:$LINENO: checking where lastlog is located" >&5
11367echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11368if test "${rxvt_cv_path_lastlog+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 if test "$cross_compiling" = yes; then
11372 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11373echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11374else
11375 cat >conftest.$ac_ext <<_ACEOF
11376/* confdefs.h. */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h. */
11381#include <stdio.h>
11382#include <sys/types.h>
11383#ifdef HAVE_UTMPX_H
11384#include <utmpx.h>
11385#elif defined(HAVE_UTMP_H)
11386#include <utmp.h>
11387#endif
11388#ifdef HAVE_LASTLOG_H
11389#include <lastlog.h>
11390#endif
11391#include <errno.h>
11392main()
11393{
11394 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11395 FILE *a, *f=fopen("conftestval", "w");
11396 if (!f) exit(1);
11397#ifdef LASTLOG_FILE
11398 fprintf(f, "%s\n", LASTLOG_FILE);
11399 exit(0);
11400#endif
11401#ifdef _PATH_LASTLOG
11402 fprintf(f, "%s\n", _PATH_LASTLOG);
11403 exit(0);
11404#endif
11405 for (w = lastloglist; *w; w++) {
11406 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11407 fprintf(f, "%s\n", *w);
11408 exit(0);
11409 }
11410 }
11411 exit(0);
11412}
11413_ACEOF
11414rm -f conftest$ac_exeext
11415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 rxvt_cv_path_lastlog=`cat conftestval`
11426else
11427 echo "$as_me: program exited with status $ac_status" >&5
11428echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431( exit $ac_status )
11432rxvt_cv_path_lastlog=
11433fi
11434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11435fi
11436fi
11437echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11438echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11439if test x$rxvt_cv_path_lastlog != x; then
11440
11441cat >>confdefs.h <<_ACEOF
11442#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11443_ACEOF
11444
11445 if test -d "$rxvt_cv_path_lastlog"; then
11446
11447cat >>confdefs.h <<\_ACEOF
11448#define LASTLOG_IS_DIR 1
11449_ACEOF
11450
11451 fi
11452fi
11453
11454echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11455echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11456if test "${rxvt_cv_path_lastlogx+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458else
11459 if test "$cross_compiling" = yes; then
11460 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11461echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11462else
11463 cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469#include <stdio.h>
11470#ifdef HAVE_UTMPX_H
11471#include <utmpx.h>
11472#endif
11473#include <errno.h>
11474main()
11475{
11476 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11477 FILE *a, *f=fopen("conftestval", "w");
11478 if (!f) exit(1);
11479#ifdef LASTLOGX_FILE
11480 fprintf(f, "%s\n", LASTLOGX_FILE);
11481 exit(0);
11482#endif
11483#ifdef _PATH_LASTLOGX
11484 fprintf(f, "%s\n", _PATH_LASTLOGX);
11485 exit(0);
11486#endif
11487 for (w = wtmplist; *w; w++) {
11488 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11489 fprintf(f, "%s\n", *w);
11490 exit(0);
11491 }
11492 }
11493 exit(0);
11494}
11495_ACEOF
11496rm -f conftest$ac_exeext
11497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 rxvt_cv_path_lastlogx=`cat conftestval`
11508else
11509 echo "$as_me: program exited with status $ac_status" >&5
11510echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513( exit $ac_status )
11514rxvt_cv_path_lastlogx=
11515fi
11516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11517fi
11518fi
11519echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11520echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11521if test x$rxvt_cv_path_lastlogx != x; then
11522
11523cat >>confdefs.h <<_ACEOF
11524#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11525_ACEOF
11526
11527fi
11528 10187
11529 10188
11530echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 10189echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11531echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 10190echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11532if test "${rxvt_cv_path_ttytab+set}" = set; then 10191if test "${rxvt_cv_path_ttytab+set}" = set; then
11799#define HAVE_NL_LANGINFO 1 10458#define HAVE_NL_LANGINFO 1
11800_ACEOF 10459_ACEOF
11801 10460
11802fi 10461fi
11803 10462
11804echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 10463SCM_RIGHTS_CHECK
11805echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11806if test "${rxvt_can_pass_fds+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816#include <sys/types.h>
11817#include <sys/socket.h>
11818
11819int
11820main ()
11821{
11822
11823{
11824 msghdr msg;
11825 iovec iov;
11826 char buf [100];
11827 char data = 0;
11828
11829 iov.iov_base = &data;
11830 iov.iov_len = 1;
11831
11832 msg.msg_iov = &iov;
11833 msg.msg_iovlen = 1;
11834 msg.msg_control = buf;
11835 msg.msg_controllen = sizeof buf;
11836
11837 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11838 cmsg->cmsg_level = SOL_SOCKET;
11839 cmsg->cmsg_type = SCM_RIGHTS;
11840 cmsg->cmsg_len = 100;
11841
11842 *(int *)CMSG_DATA (cmsg) = 5;
11843
11844 return sendmsg (3, &msg, 0);
11845}
11846
11847 ;
11848 return 0;
11849}
11850_ACEOF
11851rm -f conftest.$ac_objext conftest$ac_exeext
11852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 rxvt_can_pass_fds=yes
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877rxvt_can_pass_fds=no
11878fi
11879rm -f conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext
11881fi
11882echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11883echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11884if test x$rxvt_can_pass_fds = xyes; then
11885
11886cat >>confdefs.h <<\_ACEOF
11887#define HAVE_UNIX_FDPASS 1
11888_ACEOF
11889
11890fi
11891 10464
11892echo "$as_me:$LINENO: checking for broken XIM callback" >&5 10465echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11893echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 10466echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11894if test "${rxvt_broken_ximcb+set}" = set; then 10467if test "${rxvt_broken_ximcb+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6 10468 echo $ECHO_N "(cached) $ECHO_C" >&6
11945#define XIMCB_PROTO_BROKEN 1 10518#define XIMCB_PROTO_BROKEN 1
11946_ACEOF 10519_ACEOF
11947 10520
11948fi 10521fi
11949 10522
11950if 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
11951 echo "$as_me:$LINENO: checking for openpty" >&5 10528echo "$as_me:$LINENO: checking for $ac_word" >&5
11952echo $ECHO_N "checking for openpty... $ECHO_C" >&6 10529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11953if test "${ac_cv_func_openpty+set}" = set; then 10530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6 10531 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else 10532else
11956 cat >conftest.$ac_ext <<_ACEOF 10533 case $PKG_CONFIG in
11957/* confdefs.h. */ 10534 [\\/]* | ?:[\\/]*)
11958_ACEOF 10535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11959cat confdefs.h >>conftest.$ac_ext 10536 ;;
11960cat >>conftest.$ac_ext <<_ACEOF 10537 *)
11961/* end confdefs.h. */ 10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11962/* Define openpty to an innocuous variant, in case <limits.h> declares openpty. 10539for as_dir in $PATH
11963 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10540do
11964#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
11965 10551
11966/* System header to define __stub macros and hopefully few prototypes, 10552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11967 which can conflict with char openpty (); below. 10553 ;;
11968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10554esac
11969 <limits.h> exists even on freestanding compilers. */ 10555fi
10556PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11970 10557
11971#ifdef __STDC__ 10558if test -n "$PKG_CONFIG"; then
11972# include <limits.h> 10559 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10560echo "${ECHO_T}$PKG_CONFIG" >&6
11973#else 10561else
11974# include <assert.h>
11975#endif
11976
11977#undef openpty
11978
11979/* Override any gcc2 internal prototype to avoid an error. */
11980#ifdef __cplusplus
11981extern "C"
11982{
11983#endif
11984/* We use char because int might match the return type of a gcc2
11985 builtin and then its argument prototype would still apply. */
11986char openpty ();
11987/* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990#if defined (__stub_openpty) || defined (__stub___openpty)
11991choke me
11992#else
11993char (*f) () = openpty;
11994#endif
11995#ifdef __cplusplus
11996}
11997#endif
11998
11999int
12000main ()
12001{
12002return f != openpty;
12003 ;
12004 return 0;
12005}
12006_ACEOF
12007rm -f conftest.$ac_objext conftest$ac_exeext
12008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12009 (eval $ac_link) 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_func_openpty=yes
12029else
12030 echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032
12033ac_cv_func_openpty=no
12034fi
12035rm -f conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext
12037fi
12038echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 10562 echo "$as_me:$LINENO: result: no" >&5
12039echo "${ECHO_T}$ac_cv_func_openpty" >&6 10563echo "${ECHO_T}no" >&6
12040if test $ac_cv_func_openpty = yes; then 10564fi
12041 : 10565
12042else 10566 # Extract the first word of "xft-config", so it can be a program name with args.
10567set dummy xft-config; ac_word=$2
12043 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 10568echo "$as_me:$LINENO: checking for $ac_word" >&5
12044echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 10569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12045if test "${ac_cv_lib_util_openpty+set}" = set; then 10570if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6 10571 echo $ECHO_N "(cached) $ECHO_C" >&6
12047else 10572else
12048 ac_check_lib_save_LIBS=$LIBS 10573 case $XFT_CONFIG in
12049LIBS="-lutil $LIBS" 10574 [\\/]* | ?:[\\/]*)
12050cat >conftest.$ac_ext <<_ACEOF 10575 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
12056
12057/* Override any gcc2 internal prototype to avoid an error. */
12058#ifdef __cplusplus
12059extern "C"
12060#endif
12061/* We use char because int might match the return type of a gcc2
12062 builtin and then its argument prototype would still apply. */
12063char openpty ();
12064int
12065main ()
12066{
12067openpty ();
12068 ; 10576 ;;
12069 return 0; 10577 *)
12070} 10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071_ACEOF 10579for as_dir in $PATH
12072rm -f conftest.$ac_objext conftest$ac_exeext 10580do
12073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10581 IFS=$as_save_IFS
12074 (eval $ac_link) 2>conftest.er1 10582 test -z "$as_dir" && as_dir=.
12075 ac_status=$? 10583 for ac_exec_ext in '' $ac_executable_extensions; do
12076 grep -v '^ *+' conftest.er1 >conftest.err 10584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077 rm -f conftest.er1 10585 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12078 cat conftest.err >&5 10586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10587 break 2
12080 (exit $ac_status); } && 10588 fi
12081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10589done
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10590done
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_util_openpty=yes
12094else
12095 echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097 10591
12098ac_cv_lib_util_openpty=no 10592 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
10593 ;;
10594esac
12099fi 10595fi
12100rm -f conftest.err conftest.$ac_objext \ 10596XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12101 conftest$ac_exeext conftest.$ac_ext
12102LIBS=$ac_check_lib_save_LIBS
12103fi
12104echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12105echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12106if test $ac_cv_lib_util_openpty = yes; then
12107 LIBS="$LIBS -lutil"
12108fi
12109 10597
12110fi 10598if test -n "$XFT_CONFIG"; then
12111 10599 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12112fi 10600echo "${ECHO_T}$XFT_CONFIG" >&6
12113
12114echo "$as_me:$LINENO: checking for pty/tty type" >&5
12115echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12116if test "${rxvt_cv_ptys+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else 10601else
12119 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
12120 rxvt_cv_ptys=OPENPTY 10603echo "${ECHO_T}no" >&6
12121 else if test x$ac_cv_func_getpt = xyes; then 10604fi
12122 rxvt_cv_ptys=GLIBC 10605
12123 else if test x$ac_cv_func_posix_openpt = xyes; then 10606 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12124 rxvt_cv_ptys=POSIX 10607 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12125 else if test x$ac_cv_func__getpty = xyes; then 10608 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12126 rxvt_cv_ptys=SGI4
12127 else if test -c /dev/ttyp20; then
12128 rxvt_cv_ptys=SCO
12129 else if test -c /dev/ptym/clone; then
12130 rxvt_cv_ptys=HPUX
12131 else if test -c /dev/ptc -a -c /dev/pts; then
12132 rxvt_cv_ptys=PTC
12133 else if test -c /dev/ptc -a -d /dev/pts; then
12134 rxvt_cv_ptys=PTC
12135 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12136 rxvt_cv_ptys=STREAMS
12137 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12138 rxvt_cv_ptys=STREAMS
12139 else 10609 else
12140 rxvt_cv_ptys=BSD 10610 if test $XFT_CONFIG != no; then
12141fi 10611 LIBS="$LIBS `$XFT_CONFIG --libs`"
12142fi 10612 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12143fi 10613 fi
12144fi 10614 fi
12145fi
12146fi
12147fi
12148fi
12149fi
12150fi
12151
12152fi
12153echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12154echo "${ECHO_T}$rxvt_cv_ptys" >&6
12155
12156if test x$rxvt_cv_ptys = xGLIBC; then
12157
12158cat >>confdefs.h <<\_ACEOF
12159#define PTYS_ARE_GETPT 1
12160_ACEOF
12161
12162fi
12163if test x$rxvt_cv_ptys = xPOSIX; then
12164
12165cat >>confdefs.h <<\_ACEOF
12166#define PTYS_ARE_POSIX 1
12167_ACEOF
12168
12169fi
12170if test x$rxvt_cv_ptys = xOPENPTY; then
12171
12172cat >>confdefs.h <<\_ACEOF
12173#define PTYS_ARE_OPENPTY 1
12174_ACEOF
12175
12176fi
12177if test x$rxvt_cv_ptys = xSCO; then
12178
12179cat >>confdefs.h <<\_ACEOF
12180#define PTYS_ARE_NUMERIC 1
12181_ACEOF
12182
12183fi
12184if test x$rxvt_cv_ptys = xSTREAMS; then
12185
12186cat >>confdefs.h <<\_ACEOF
12187#define PTYS_ARE_PTMX 1
12188_ACEOF
12189
12190fi
12191if test x$rxvt_cv_ptys = xPTC; then
12192
12193cat >>confdefs.h <<\_ACEOF
12194#define PTYS_ARE_PTC 1
12195_ACEOF
12196
12197fi
12198if test x$rxvt_cv_ptys = xSGI4; then
12199
12200cat >>confdefs.h <<\_ACEOF
12201#define PTYS_ARE__GETPTY 1
12202_ACEOF
12203
12204fi
12205if test x$rxvt_cv_ptys = xHPUX; then
12206
12207cat >>confdefs.h <<\_ACEOF
12208#define PTYS_ARE_CLONE 1
12209_ACEOF
12210
12211fi
12212if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12213
12214cat >>confdefs.h <<\_ACEOF
12215#define PTYS_ARE_SEARCHED 1
12216_ACEOF
12217
12218fi
12219
12220
12221{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
12222echo "$as_me: checking for pty ranges..." >&6;}
12223ptys=`echo /dev/pty??`
12224pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12225pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12226if test x$pch1 != x; then
12227
12228cat >>confdefs.h <<_ACEOF
12229#define PTYCHAR1 "$pch1"
12230_ACEOF
12231
12232fi
12233if test x$pch2 != x; then
12234
12235cat >>confdefs.h <<_ACEOF
12236#define PTYCHAR2 "$pch2"
12237_ACEOF
12238
12239fi
12240
12241if test x$support_xft = xyes; then
12242 LIBS="$LIBS `pkg-config xft --libs`"
12243 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12244 10615
12245 10616
12246for ac_header in X11/Xft/Xft.h 10617for ac_header in X11/Xft/Xft.h
12247do 10618do
12248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12856 PERL_O=rxvtperl.o 11227 PERL_O=rxvtperl.o
12857 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 11228 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12858 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 11229 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12859 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 11230 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12860 else 11231 else
12861 support_perl=no
12862 echo "$as_me:$LINENO: result: no, unable to link" >&5 11232 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
12863echo "${ECHO_T}no, unable to link" >&6 11233echo "$as_me: error: no, unable to link" >&2;}
11234 { (exit 1); exit 1; }; }
12864 fi 11235 fi
12865 else 11236 else
12866 { { 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
12867echo "$as_me: error: no working perl found" >&2;} 11238echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
12868 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; } 11239 { (exit 1); exit 1; }; }
12869 support_perl=no
12870 fi 11240 fi
12871fi 11241fi
12872 11242
12873 11243
12874 11244
13516 # Handling of arguments. 11886 # Handling of arguments.
13517 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11887 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13518 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 11888 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13519 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11889 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13520 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 11890 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13521 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 11891 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13522 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13523echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13524 { (exit 1); exit 1; }; };; 11894 { (exit 1); exit 1; }; };;
13525 esac 11895 esac
13526done 11896done
13627s,@ac_ct_CXX@,$ac_ct_CXX,;t t 11997s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13628s,@CPP@,$CPP,;t t 11998s,@CPP@,$CPP,;t t
13629s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11999s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13630s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12000s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13631s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12001s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13632s,@AWK@,$AWK,;t t 12002s,@EGREP@,$EGREP,;t t
13633s,@LINKER@,$LINKER,;t t 12003s,@LINKER@,$LINKER,;t t
13634s,@CXXCPP@,$CXXCPP,;t t
13635s,@EGREP@,$EGREP,;t t
13636s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 12004s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13637s,@RXVTNAME@,$RXVTNAME,;t t 12005s,@RXVTNAME@,$RXVTNAME,;t t
13638s,@MV@,$MV,;t t 12006s,@MV@,$MV,;t t
13639s,@RM@,$RM,;t t 12007s,@RM@,$RM,;t t
13640s,@CP@,$CP,;t t 12008s,@CP@,$CP,;t t
13641s,@LN@,$LN,;t t 12009s,@LN@,$LN,;t t
13642s,@SED@,$SED,;t t 12010s,@SED@,$SED,;t t
13643s,@ECHO@,$ECHO,;t t 12011s,@ECHO@,$ECHO,;t t
13644s,@CMP@,$CMP,;t t 12012s,@CMP@,$CMP,;t t
13645s,@TBL@,$TBL,;t t
13646s,@TIC@,$TIC,;t t 12013s,@TIC@,$TIC,;t t
12014s,@CXXCPP@,$CXXCPP,;t t
13647s,@X_CFLAGS@,$X_CFLAGS,;t t 12015s,@X_CFLAGS@,$X_CFLAGS,;t t
13648s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 12016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13649s,@X_LIBS@,$X_LIBS,;t t 12017s,@X_LIBS@,$X_LIBS,;t t
13650s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 12018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13651s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 12019s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13655s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 12023s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13656s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 12024s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13657s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 12025s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13658s,@rxvt_intp_define@,$rxvt_intp_define,;t t 12026s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13659s,@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
13660s,@PERL@,$PERL,;t t 12030s,@PERL@,$PERL,;t t
13661s,@PERLLIB@,$PERLLIB,;t t 12031s,@PERLLIB@,$PERLLIB,;t t
13662s,@PERLFLAGS@,$PERLFLAGS,;t t 12032s,@PERLFLAGS@,$PERLFLAGS,;t t
13663s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t 12033s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13664s,@IF_PERL@,$IF_PERL,;t t 12034s,@IF_PERL@,$IF_PERL,;t t
14198fi 12568fi
14199 12569
14200echo " 12570echo "
14201The following are set in config.h 12571The following are set in config.h
14202" 12572"
14203echo " pty/tty type: "$rxvt_cv_ptys
14204if test x$support_utmp != xyes; then 12573if test x$support_utmp != xyes; then
14205 echo " utmp support: disabled" 12574 echo " utmp support: disabled"
14206 echo 12575 echo
14207else 12576else
14208 echo " utmp support: enabled 12577 echo " utmp support: enabled
14225echo " resource class: $RESCLASS" 12594echo " resource class: $RESCLASS"
14226if test x$RESFALLBACK != x; then 12595if test x$RESFALLBACK != x; then
14227 echo " resource class fallback: $RESFALLBACK" 12596 echo " resource class fallback: $RESFALLBACK"
14228fi 12597fi
14229echo 12598echo
14230if test x$rxvt_cv_ptys = xUNKNOWN; then
14231 echo ".----------------------------------------------------------------."
14232 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14233 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14234 echo ".----------------------------------------------------------------."
14235fi
14236if test x$support_xpm = xneedsmanualspecification; then 12599if test x$support_xpm = xneedsmanualspecification; then
14237 echo ".----------------------------------------------------------------." 12600 echo ".----------------------------------------------------------------."
14238 echo ". WARNING: --enable-xpm-background was specified however the ." 12601 echo ". WARNING: --enable-xpm-background was specified however the ."
14239 echo ". XPM includes files and libraries could not be found. ." 12602 echo ". XPM includes files and libraries could not be found. ."
14240 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