… | |
… | |
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 | |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
312 | ac_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' |
313 | ac_subst_files='' |
313 | ac_subst_files='' |
314 | |
314 | |
315 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
316 | ac_init_help= |
316 | ac_init_help= |
317 | ac_init_version=false |
317 | ac_init_version=false |
… | |
… | |
3221 | if test "$ac_cv_search_strerror" != no; then |
3221 | if test "$ac_cv_search_strerror" != no; then |
3222 | 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" |
3223 | |
3223 | |
3224 | fi |
3224 | fi |
3225 | |
3225 | |
3226 | |
|
|
3227 | ac_ext=c |
|
|
3228 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | LINKER="$CXX" |
|
|
3235 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3236 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3237 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3238 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3240 | else |
|
|
3241 | ac_check_lib_save_LIBS=$LIBS |
|
|
3242 | LIBS="-lsupc++ $LIBS" |
|
|
3243 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3244 | /* confdefs.h. */ |
|
|
3245 | _ACEOF |
|
|
3246 | cat confdefs.h >>conftest.$ac_ext |
|
|
3247 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3248 | /* end confdefs.h. */ |
|
|
3249 | |
|
|
3250 | |
|
|
3251 | int |
|
|
3252 | main () |
|
|
3253 | { |
|
|
3254 | main (); |
|
|
3255 | ; |
|
|
3256 | return 0; |
|
|
3257 | } |
|
|
3258 | _ACEOF |
|
|
3259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3261 | (eval $ac_link) 2>conftest.er1 |
|
|
3262 | ac_status=$? |
|
|
3263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3264 | rm -f conftest.er1 |
|
|
3265 | cat conftest.err >&5 |
|
|
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3267 | (exit $ac_status); } && |
|
|
3268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3270 | (eval $ac_try) 2>&5 |
|
|
3271 | ac_status=$? |
|
|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3273 | (exit $ac_status); }; } && |
|
|
3274 | { ac_try='test -s conftest$ac_exeext' |
|
|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3276 | (eval $ac_try) 2>&5 |
|
|
3277 | ac_status=$? |
|
|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3279 | (exit $ac_status); }; }; then |
|
|
3280 | ac_cv_lib_supcpp_main=yes |
|
|
3281 | else |
|
|
3282 | echo "$as_me: failed program was:" >&5 |
|
|
3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3284 | |
|
|
3285 | ac_cv_lib_supcpp_main=no |
|
|
3286 | fi |
|
|
3287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3288 | conftest$ac_exeext conftest.$ac_ext |
|
|
3289 | LIBS=$ac_check_lib_save_LIBS |
|
|
3290 | fi |
|
|
3291 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3292 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3293 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3294 | |
|
|
3295 | LINKER="$CC" |
|
|
3296 | LIBS="$LIBS -lsupc++" |
|
|
3297 | |
|
|
3298 | fi |
|
|
3299 | |
|
|
3300 | fi |
|
|
3301 | LINKER=$LINKER |
|
|
3302 | |
|
|
3303 | |
|
|
3304 | ac_ext=cc |
3226 | ac_ext=cc |
3305 | ac_cpp='$CXXCPP $CPPFLAGS' |
3227 | ac_cpp='$CXXCPP $CPPFLAGS' |
3306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3309 | |
3231 | |
|
|
3232 | |
|
|
3233 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3234 | echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
|
|
3235 | echo $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 | |
|
|
3242 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3243 | /* confdefs.h. */ |
|
|
3244 | _ACEOF |
|
|
3245 | cat confdefs.h >>conftest.$ac_ext |
|
|
3246 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3247 | /* end confdefs.h. */ |
|
|
3248 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
3249 | int |
|
|
3250 | main () |
|
|
3251 | { |
|
|
3252 | |
|
|
3253 | ; |
|
|
3254 | return 0; |
|
|
3255 | } |
|
|
3256 | _ACEOF |
|
|
3257 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3258 | if { (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 |
|
|
3279 | echo "${ECHO_T}ok" >&6 |
|
|
3280 | else |
|
|
3281 | echo "$as_me: failed program was:" >&5 |
|
|
3282 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3283 | |
|
|
3284 | |
|
|
3285 | echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
|
|
3286 | echo "${ECHO_T}no, making everything bigger and slower" >&6 |
|
|
3287 | LIBS="$save_LIBS" |
|
|
3288 | LINKER="$save_CXX" |
|
|
3289 | |
|
|
3290 | |
|
|
3291 | fi |
|
|
3292 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3293 | conftest$ac_exeext conftest.$ac_ext |
|
|
3294 | CXX="$save_CXX" |
|
|
3295 | fi |
|
|
3296 | LINKER=$LINKER |
|
|
3297 | |
|
|
3298 | |
|
|
3299 | ac_ext=cc |
|
|
3300 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3301 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3302 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3303 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3304 | |
3310 | if test -z "$orig_CXXFLAGS"; then |
3305 | if test -z "$orig_CXXFLAGS"; then |
3311 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3306 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3312 | CXXFLAGS="-g -O3 -Os -fno-threadsafe-statics -fno-enforce-eh-specs" |
3307 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3313 | |
3308 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3309 | /* confdefs.h. */ |
|
|
3310 | _ACEOF |
|
|
3311 | cat confdefs.h >>conftest.$ac_ext |
3314 | cat >conftest.$ac_ext <<_ACEOF |
3312 | cat >>conftest.$ac_ext <<_ACEOF |
3315 | int i; |
3313 | /* end confdefs.h. */ |
|
|
3314 | |
|
|
3315 | int |
|
|
3316 | main () |
|
|
3317 | { |
|
|
3318 | |
|
|
3319 | ; |
|
|
3320 | return 0; |
|
|
3321 | } |
3316 | _ACEOF |
3322 | _ACEOF |
3317 | rm -f conftest.$ac_objext |
3323 | rm -f conftest.$ac_objext |
3318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3319 | (eval $ac_compile) 2>conftest.er1 |
3325 | (eval $ac_compile) 2>conftest.er1 |
3320 | ac_status=$? |
3326 | ac_status=$? |
… | |
… | |
3333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3334 | (eval $ac_try) 2>&5 |
3340 | (eval $ac_try) 2>&5 |
3335 | ac_status=$? |
3341 | ac_status=$? |
3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3337 | (exit $ac_status); }; }; then |
3343 | (exit $ac_status); }; }; then |
3338 | echo didididid |
3344 | : |
3339 | else |
3345 | else |
3340 | echo "$as_me: failed program was:" >&5 |
3346 | echo "$as_me: failed program was:" >&5 |
3341 | sed 's/^/| /' conftest.$ac_ext >&5 |
3347 | sed 's/^/| /' conftest.$ac_ext >&5 |
3342 | |
3348 | |
3343 | CXXFLAGS="-g -O3" |
3349 | CXXFLAGS="-g -O3" |
… | |
… | |
7205 | |
7211 | |
7206 | |
7212 | |
7207 | |
7213 | |
7208 | |
7214 | |
7209 | |
7215 | |
7210 | |
|
|
7211 | |
|
|
7212 | |
|
|
7213 | |
|
|
7214 | |
|
|
7215 | |
|
|
7216 | |
|
|
7217 | |
|
|
7218 | |
|
|
7219 | for ac_header in \ |
7216 | for ac_header in \ |
7220 | assert.h \ |
7217 | assert.h \ |
7221 | fcntl.h \ |
7218 | fcntl.h \ |
7222 | grp.h \ |
|
|
7223 | libc.h \ |
|
|
7224 | lastlog.h \ |
|
|
7225 | stdarg.h \ |
7219 | stdarg.h \ |
7226 | stdlib.h \ |
7220 | stdlib.h \ |
7227 | string.h \ |
7221 | string.h \ |
7228 | termios.h \ |
7222 | termios.h \ |
7229 | unistd.h \ |
7223 | unistd.h \ |
7230 | sys/byteorder.h \ |
7224 | sys/byteorder.h \ |
7231 | sys/ioctl.h \ |
7225 | sys/ioctl.h \ |
7232 | sys/select.h \ |
7226 | sys/select.h \ |
7233 | sys/sockio.h \ |
7227 | sys/sockio.h \ |
7234 | sys/strredir.h \ |
7228 | sys/strredir.h \ |
7235 | sys/stropts.h \ |
|
|
7236 | sys/time.h \ |
7229 | sys/time.h \ |
7237 | utmp.h \ |
7230 | stdint.h \ |
7238 | utmpx.h \ |
7231 | wchar.h \ |
7239 | stdint.h \ |
7232 | cwchar \ |
7240 | pty.h \ |
7233 | clocale \ |
7241 | util.h \ |
|
|
7242 | libutil.h \ |
|
|
7243 | wchar.h \ |
|
|
7244 | cwchar \ |
|
|
7245 | clocale \ |
|
|
7246 | |
7234 | |
7247 | do |
7235 | do |
7248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7236 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
10084 | |
10072 | |
10085 | |
10073 | |
10086 | |
10074 | |
10087 | |
10075 | |
10088 | |
10076 | |
10089 | |
|
|
10090 | |
|
|
10091 | |
|
|
10092 | |
|
|
10093 | |
|
|
10094 | |
|
|
10095 | |
|
|
10096 | |
|
|
10097 | |
|
|
10098 | |
|
|
10099 | for ac_func in \ |
10077 | for ac_func in \ |
10100 | revoke \ |
|
|
10101 | unsetenv \ |
10078 | unsetenv \ |
10102 | setutent \ |
10079 | setutent \ |
10103 | seteuid \ |
10080 | seteuid \ |
10104 | setresuid \ |
10081 | setresuid \ |
10105 | setreuid \ |
10082 | setreuid \ |
10106 | _getpty \ |
|
|
10107 | getpt \ |
|
|
10108 | posix_openpt \ |
|
|
10109 | grantpt \ |
|
|
10110 | unlockpt \ |
|
|
10111 | isastream \ |
|
|
10112 | on_exit \ |
10083 | on_exit \ |
10113 | nanosleep \ |
10084 | nanosleep \ |
10114 | updwtmp \ |
|
|
10115 | updwtmpx \ |
|
|
10116 | ttyslot \ |
|
|
10117 | |
10085 | |
10118 | do |
10086 | do |
10119 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10120 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10121 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
10213 | |
10181 | |
10214 | fi |
10182 | fi |
10215 | done |
10183 | done |
10216 | |
10184 | |
10217 | |
10185 | |
10218 | |
10186 | UTMP_CHECK |
10219 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10220 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10221 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10222 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10224 | fi |
|
|
10225 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10226 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10227 | else |
|
|
10228 | # Is the header compilable? |
|
|
10229 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10230 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10231 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10232 | /* confdefs.h. */ |
|
|
10233 | _ACEOF |
|
|
10234 | cat confdefs.h >>conftest.$ac_ext |
|
|
10235 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10236 | /* end confdefs.h. */ |
|
|
10237 | $ac_includes_default |
|
|
10238 | #include <utmp.h> |
|
|
10239 | _ACEOF |
|
|
10240 | rm -f conftest.$ac_objext |
|
|
10241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10242 | (eval $ac_compile) 2>conftest.er1 |
|
|
10243 | ac_status=$? |
|
|
10244 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10245 | rm -f conftest.er1 |
|
|
10246 | cat conftest.err >&5 |
|
|
10247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10248 | (exit $ac_status); } && |
|
|
10249 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10251 | (eval $ac_try) 2>&5 |
|
|
10252 | ac_status=$? |
|
|
10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10254 | (exit $ac_status); }; } && |
|
|
10255 | { ac_try='test -s conftest.$ac_objext' |
|
|
10256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10257 | (eval $ac_try) 2>&5 |
|
|
10258 | ac_status=$? |
|
|
10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10260 | (exit $ac_status); }; }; then |
|
|
10261 | ac_header_compiler=yes |
|
|
10262 | else |
|
|
10263 | echo "$as_me: failed program was:" >&5 |
|
|
10264 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10265 | |
|
|
10266 | ac_header_compiler=no |
|
|
10267 | fi |
|
|
10268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10270 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10271 | |
|
|
10272 | # Is the header present? |
|
|
10273 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10274 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
10275 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10276 | /* confdefs.h. */ |
|
|
10277 | _ACEOF |
|
|
10278 | cat confdefs.h >>conftest.$ac_ext |
|
|
10279 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10280 | /* end confdefs.h. */ |
|
|
10281 | #include <utmp.h> |
|
|
10282 | _ACEOF |
|
|
10283 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10284 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10285 | ac_status=$? |
|
|
10286 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10287 | rm -f conftest.er1 |
|
|
10288 | cat conftest.err >&5 |
|
|
10289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10290 | (exit $ac_status); } >/dev/null; then |
|
|
10291 | if test -s conftest.err; then |
|
|
10292 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10293 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10294 | else |
|
|
10295 | ac_cpp_err= |
|
|
10296 | fi |
|
|
10297 | else |
|
|
10298 | ac_cpp_err=yes |
|
|
10299 | fi |
|
|
10300 | if test -z "$ac_cpp_err"; then |
|
|
10301 | ac_header_preproc=yes |
|
|
10302 | else |
|
|
10303 | echo "$as_me: failed program was:" >&5 |
|
|
10304 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10305 | |
|
|
10306 | ac_header_preproc=no |
|
|
10307 | fi |
|
|
10308 | rm -f conftest.err conftest.$ac_ext |
|
|
10309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10310 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10311 | |
|
|
10312 | # So? What about this header? |
|
|
10313 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10314 | yes:no: ) |
|
|
10315 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10316 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10317 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10318 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10319 | ac_header_preproc=yes |
|
|
10320 | ;; |
|
|
10321 | no:yes:* ) |
|
|
10322 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10323 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10324 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10325 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10326 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10327 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10328 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10329 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10330 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10331 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10332 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10333 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10334 | ( |
|
|
10335 | cat <<\_ASBOX |
|
|
10336 | ## ------------------------------------------ ## |
|
|
10337 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10338 | ## ------------------------------------------ ## |
|
|
10339 | _ASBOX |
|
|
10340 | ) | |
|
|
10341 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10342 | ;; |
|
|
10343 | esac |
|
|
10344 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10345 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10346 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10348 | else |
|
|
10349 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10350 | fi |
|
|
10351 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10352 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10353 | |
|
|
10354 | fi |
|
|
10355 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10356 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10357 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
10358 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
|
|
10359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10360 | else |
|
|
10361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10362 | /* confdefs.h. */ |
|
|
10363 | _ACEOF |
|
|
10364 | cat confdefs.h >>conftest.$ac_ext |
|
|
10365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10366 | /* end confdefs.h. */ |
|
|
10367 | #include <sys/types.h> |
|
|
10368 | #include <utmp.h> |
|
|
10369 | int |
|
|
10370 | main () |
|
|
10371 | { |
|
|
10372 | struct utmp ut; |
|
|
10373 | ; |
|
|
10374 | return 0; |
|
|
10375 | } |
|
|
10376 | _ACEOF |
|
|
10377 | rm -f conftest.$ac_objext |
|
|
10378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10379 | (eval $ac_compile) 2>conftest.er1 |
|
|
10380 | ac_status=$? |
|
|
10381 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10382 | rm -f conftest.er1 |
|
|
10383 | cat conftest.err >&5 |
|
|
10384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10385 | (exit $ac_status); } && |
|
|
10386 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10388 | (eval $ac_try) 2>&5 |
|
|
10389 | ac_status=$? |
|
|
10390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10391 | (exit $ac_status); }; } && |
|
|
10392 | { ac_try='test -s conftest.$ac_objext' |
|
|
10393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10394 | (eval $ac_try) 2>&5 |
|
|
10395 | ac_status=$? |
|
|
10396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10397 | (exit $ac_status); }; }; then |
|
|
10398 | rxvt_cv_struct_utmp=yes |
|
|
10399 | else |
|
|
10400 | echo "$as_me: failed program was:" >&5 |
|
|
10401 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10402 | |
|
|
10403 | rxvt_cv_struct_utmp=no |
|
|
10404 | fi |
|
|
10405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10406 | fi |
|
|
10407 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
|
|
10408 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
|
|
10409 | if test x$rxvt_cv_struct_utmp = xyes; then |
|
|
10410 | |
|
|
10411 | cat >>confdefs.h <<\_ACEOF |
|
|
10412 | #define HAVE_STRUCT_UTMP 1 |
|
|
10413 | _ACEOF |
|
|
10414 | |
|
|
10415 | fi |
|
|
10416 | |
|
|
10417 | |
|
|
10418 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10419 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
10420 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
|
|
10421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10422 | else |
|
|
10423 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10424 | /* confdefs.h. */ |
|
|
10425 | _ACEOF |
|
|
10426 | cat confdefs.h >>conftest.$ac_ext |
|
|
10427 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10428 | /* end confdefs.h. */ |
|
|
10429 | #include <sys/types.h> |
|
|
10430 | #include <utmp.h> |
|
|
10431 | int |
|
|
10432 | main () |
|
|
10433 | { |
|
|
10434 | struct utmp ut; ut.ut_host; |
|
|
10435 | ; |
|
|
10436 | return 0; |
|
|
10437 | } |
|
|
10438 | _ACEOF |
|
|
10439 | rm -f conftest.$ac_objext |
|
|
10440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10441 | (eval $ac_compile) 2>conftest.er1 |
|
|
10442 | ac_status=$? |
|
|
10443 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10444 | rm -f conftest.er1 |
|
|
10445 | cat conftest.err >&5 |
|
|
10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10447 | (exit $ac_status); } && |
|
|
10448 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10450 | (eval $ac_try) 2>&5 |
|
|
10451 | ac_status=$? |
|
|
10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10453 | (exit $ac_status); }; } && |
|
|
10454 | { ac_try='test -s conftest.$ac_objext' |
|
|
10455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10456 | (eval $ac_try) 2>&5 |
|
|
10457 | ac_status=$? |
|
|
10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10459 | (exit $ac_status); }; }; then |
|
|
10460 | rxvt_cv_struct_utmp_host=yes |
|
|
10461 | else |
|
|
10462 | echo "$as_me: failed program was:" >&5 |
|
|
10463 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10464 | |
|
|
10465 | rxvt_cv_struct_utmp_host=no |
|
|
10466 | fi |
|
|
10467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10468 | fi |
|
|
10469 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
|
|
10470 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
|
|
10471 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
|
|
10472 | |
|
|
10473 | cat >>confdefs.h <<\_ACEOF |
|
|
10474 | #define HAVE_UTMP_HOST 1 |
|
|
10475 | _ACEOF |
|
|
10476 | |
|
|
10477 | fi |
|
|
10478 | |
|
|
10479 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10480 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
10481 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
|
|
10482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10483 | else |
|
|
10484 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10485 | /* confdefs.h. */ |
|
|
10486 | _ACEOF |
|
|
10487 | cat confdefs.h >>conftest.$ac_ext |
|
|
10488 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10489 | /* end confdefs.h. */ |
|
|
10490 | #include <sys/types.h> |
|
|
10491 | #include <utmp.h> |
|
|
10492 | int |
|
|
10493 | main () |
|
|
10494 | { |
|
|
10495 | struct utmp ut; ut.ut_pid; |
|
|
10496 | ; |
|
|
10497 | return 0; |
|
|
10498 | } |
|
|
10499 | _ACEOF |
|
|
10500 | rm -f conftest.$ac_objext |
|
|
10501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10502 | (eval $ac_compile) 2>conftest.er1 |
|
|
10503 | ac_status=$? |
|
|
10504 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10505 | rm -f conftest.er1 |
|
|
10506 | cat conftest.err >&5 |
|
|
10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10508 | (exit $ac_status); } && |
|
|
10509 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10511 | (eval $ac_try) 2>&5 |
|
|
10512 | ac_status=$? |
|
|
10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10514 | (exit $ac_status); }; } && |
|
|
10515 | { ac_try='test -s conftest.$ac_objext' |
|
|
10516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10517 | (eval $ac_try) 2>&5 |
|
|
10518 | ac_status=$? |
|
|
10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10520 | (exit $ac_status); }; }; then |
|
|
10521 | rxvt_cv_struct_utmp_pid=yes |
|
|
10522 | else |
|
|
10523 | echo "$as_me: failed program was:" >&5 |
|
|
10524 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10525 | |
|
|
10526 | rxvt_cv_struct_utmp_pid=no |
|
|
10527 | fi |
|
|
10528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10529 | fi |
|
|
10530 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
|
|
10531 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
|
|
10532 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
|
|
10533 | |
|
|
10534 | cat >>confdefs.h <<\_ACEOF |
|
|
10535 | #define HAVE_UTMP_PID 1 |
|
|
10536 | _ACEOF |
|
|
10537 | |
|
|
10538 | fi |
|
|
10539 | |
|
|
10540 | fi |
|
|
10541 | |
|
|
10542 | |
|
|
10543 | |
|
|
10544 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10545 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10546 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10547 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10549 | fi |
|
|
10550 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10551 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10552 | else |
|
|
10553 | # Is the header compilable? |
|
|
10554 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10555 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
10556 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10557 | /* confdefs.h. */ |
|
|
10558 | _ACEOF |
|
|
10559 | cat confdefs.h >>conftest.$ac_ext |
|
|
10560 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10561 | /* end confdefs.h. */ |
|
|
10562 | $ac_includes_default |
|
|
10563 | #include <utmpx.h> |
|
|
10564 | _ACEOF |
|
|
10565 | rm -f conftest.$ac_objext |
|
|
10566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10567 | (eval $ac_compile) 2>conftest.er1 |
|
|
10568 | ac_status=$? |
|
|
10569 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10570 | rm -f conftest.er1 |
|
|
10571 | cat conftest.err >&5 |
|
|
10572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10573 | (exit $ac_status); } && |
|
|
10574 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10576 | (eval $ac_try) 2>&5 |
|
|
10577 | ac_status=$? |
|
|
10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10579 | (exit $ac_status); }; } && |
|
|
10580 | { ac_try='test -s conftest.$ac_objext' |
|
|
10581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10582 | (eval $ac_try) 2>&5 |
|
|
10583 | ac_status=$? |
|
|
10584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10585 | (exit $ac_status); }; }; then |
|
|
10586 | ac_header_compiler=yes |
|
|
10587 | else |
|
|
10588 | echo "$as_me: failed program was:" >&5 |
|
|
10589 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10590 | |
|
|
10591 | ac_header_compiler=no |
|
|
10592 | fi |
|
|
10593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10594 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10595 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10596 | |
|
|
10597 | # Is the header present? |
|
|
10598 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10599 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
10600 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10601 | /* confdefs.h. */ |
|
|
10602 | _ACEOF |
|
|
10603 | cat confdefs.h >>conftest.$ac_ext |
|
|
10604 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10605 | /* end confdefs.h. */ |
|
|
10606 | #include <utmpx.h> |
|
|
10607 | _ACEOF |
|
|
10608 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10609 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10610 | ac_status=$? |
|
|
10611 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10612 | rm -f conftest.er1 |
|
|
10613 | cat conftest.err >&5 |
|
|
10614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10615 | (exit $ac_status); } >/dev/null; then |
|
|
10616 | if test -s conftest.err; then |
|
|
10617 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10618 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10619 | else |
|
|
10620 | ac_cpp_err= |
|
|
10621 | fi |
|
|
10622 | else |
|
|
10623 | ac_cpp_err=yes |
|
|
10624 | fi |
|
|
10625 | if test -z "$ac_cpp_err"; then |
|
|
10626 | ac_header_preproc=yes |
|
|
10627 | else |
|
|
10628 | echo "$as_me: failed program was:" >&5 |
|
|
10629 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10630 | |
|
|
10631 | ac_header_preproc=no |
|
|
10632 | fi |
|
|
10633 | rm -f conftest.err conftest.$ac_ext |
|
|
10634 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10635 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10636 | |
|
|
10637 | # So? What about this header? |
|
|
10638 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10639 | yes:no: ) |
|
|
10640 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10641 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10642 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10643 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10644 | ac_header_preproc=yes |
|
|
10645 | ;; |
|
|
10646 | no:yes:* ) |
|
|
10647 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10648 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10649 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10650 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10651 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10652 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10653 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10654 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10655 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10656 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10657 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10658 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10659 | ( |
|
|
10660 | cat <<\_ASBOX |
|
|
10661 | ## ------------------------------------------ ## |
|
|
10662 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10663 | ## ------------------------------------------ ## |
|
|
10664 | _ASBOX |
|
|
10665 | ) | |
|
|
10666 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10667 | ;; |
|
|
10668 | esac |
|
|
10669 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10670 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10671 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10673 | else |
|
|
10674 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10675 | fi |
|
|
10676 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10677 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10678 | |
|
|
10679 | fi |
|
|
10680 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10681 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10682 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
10683 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
|
|
10684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10685 | else |
|
|
10686 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10687 | /* confdefs.h. */ |
|
|
10688 | _ACEOF |
|
|
10689 | cat confdefs.h >>conftest.$ac_ext |
|
|
10690 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10691 | /* end confdefs.h. */ |
|
|
10692 | #include <sys/types.h> |
|
|
10693 | #include <utmpx.h> |
|
|
10694 | int |
|
|
10695 | main () |
|
|
10696 | { |
|
|
10697 | struct utmpx ut; |
|
|
10698 | ; |
|
|
10699 | return 0; |
|
|
10700 | } |
|
|
10701 | _ACEOF |
|
|
10702 | rm -f conftest.$ac_objext |
|
|
10703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10704 | (eval $ac_compile) 2>conftest.er1 |
|
|
10705 | ac_status=$? |
|
|
10706 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10707 | rm -f conftest.er1 |
|
|
10708 | cat conftest.err >&5 |
|
|
10709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10710 | (exit $ac_status); } && |
|
|
10711 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10713 | (eval $ac_try) 2>&5 |
|
|
10714 | ac_status=$? |
|
|
10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10716 | (exit $ac_status); }; } && |
|
|
10717 | { ac_try='test -s conftest.$ac_objext' |
|
|
10718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10719 | (eval $ac_try) 2>&5 |
|
|
10720 | ac_status=$? |
|
|
10721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10722 | (exit $ac_status); }; }; then |
|
|
10723 | rxvt_cv_struct_utmpx=yes |
|
|
10724 | else |
|
|
10725 | echo "$as_me: failed program was:" >&5 |
|
|
10726 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10727 | |
|
|
10728 | rxvt_cv_struct_utmpx=no |
|
|
10729 | fi |
|
|
10730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10731 | fi |
|
|
10732 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
|
|
10733 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
|
|
10734 | if test x$rxvt_cv_struct_utmpx = xyes; then |
|
|
10735 | |
|
|
10736 | cat >>confdefs.h <<\_ACEOF |
|
|
10737 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10738 | _ACEOF |
|
|
10739 | |
|
|
10740 | fi |
|
|
10741 | |
|
|
10742 | |
|
|
10743 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10744 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
10745 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
|
|
10746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10747 | else |
|
|
10748 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10749 | /* confdefs.h. */ |
|
|
10750 | _ACEOF |
|
|
10751 | cat confdefs.h >>conftest.$ac_ext |
|
|
10752 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10753 | /* end confdefs.h. */ |
|
|
10754 | #include <sys/types.h> |
|
|
10755 | #include <utmpx.h> |
|
|
10756 | int |
|
|
10757 | main () |
|
|
10758 | { |
|
|
10759 | struct utmpx utx; utx.ut_host; |
|
|
10760 | ; |
|
|
10761 | return 0; |
|
|
10762 | } |
|
|
10763 | _ACEOF |
|
|
10764 | rm -f conftest.$ac_objext |
|
|
10765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10766 | (eval $ac_compile) 2>conftest.er1 |
|
|
10767 | ac_status=$? |
|
|
10768 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10769 | rm -f conftest.er1 |
|
|
10770 | cat conftest.err >&5 |
|
|
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10772 | (exit $ac_status); } && |
|
|
10773 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10775 | (eval $ac_try) 2>&5 |
|
|
10776 | ac_status=$? |
|
|
10777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10778 | (exit $ac_status); }; } && |
|
|
10779 | { ac_try='test -s conftest.$ac_objext' |
|
|
10780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10781 | (eval $ac_try) 2>&5 |
|
|
10782 | ac_status=$? |
|
|
10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10784 | (exit $ac_status); }; }; then |
|
|
10785 | rxvt_cv_struct_utmpx_host=yes |
|
|
10786 | else |
|
|
10787 | echo "$as_me: failed program was:" >&5 |
|
|
10788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10789 | |
|
|
10790 | rxvt_cv_struct_utmpx_host=no |
|
|
10791 | fi |
|
|
10792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10793 | fi |
|
|
10794 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
|
|
10795 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
|
|
10796 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
|
|
10797 | |
|
|
10798 | cat >>confdefs.h <<\_ACEOF |
|
|
10799 | #define HAVE_UTMPX_HOST 1 |
|
|
10800 | _ACEOF |
|
|
10801 | |
|
|
10802 | fi |
|
|
10803 | |
|
|
10804 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10805 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10806 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
|
|
10807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10808 | else |
|
|
10809 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10810 | /* confdefs.h. */ |
|
|
10811 | _ACEOF |
|
|
10812 | cat confdefs.h >>conftest.$ac_ext |
|
|
10813 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10814 | /* end confdefs.h. */ |
|
|
10815 | #include <sys/types.h> |
|
|
10816 | #include <utmpx.h> |
|
|
10817 | int |
|
|
10818 | main () |
|
|
10819 | { |
|
|
10820 | struct utmpx utx; utx.ut_session; |
|
|
10821 | ; |
|
|
10822 | return 0; |
|
|
10823 | } |
|
|
10824 | _ACEOF |
|
|
10825 | rm -f conftest.$ac_objext |
|
|
10826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10827 | (eval $ac_compile) 2>conftest.er1 |
|
|
10828 | ac_status=$? |
|
|
10829 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10830 | rm -f conftest.er1 |
|
|
10831 | cat conftest.err >&5 |
|
|
10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10833 | (exit $ac_status); } && |
|
|
10834 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10836 | (eval $ac_try) 2>&5 |
|
|
10837 | ac_status=$? |
|
|
10838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10839 | (exit $ac_status); }; } && |
|
|
10840 | { ac_try='test -s conftest.$ac_objext' |
|
|
10841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10842 | (eval $ac_try) 2>&5 |
|
|
10843 | ac_status=$? |
|
|
10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10845 | (exit $ac_status); }; }; then |
|
|
10846 | rxvt_cv_struct_utmpx_session=yes |
|
|
10847 | else |
|
|
10848 | echo "$as_me: failed program was:" >&5 |
|
|
10849 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10850 | |
|
|
10851 | rxvt_cv_struct_utmpx_session=no |
|
|
10852 | fi |
|
|
10853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10854 | fi |
|
|
10855 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
|
|
10856 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
|
|
10857 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
10858 | |
|
|
10859 | cat >>confdefs.h <<\_ACEOF |
|
|
10860 | #define HAVE_UTMPX_SESSION 1 |
|
|
10861 | _ACEOF |
|
|
10862 | |
|
|
10863 | fi |
|
|
10864 | |
|
|
10865 | fi |
|
|
10866 | |
|
|
10867 | |
|
|
10868 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
10869 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
10870 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
|
|
10871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10872 | else |
|
|
10873 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10874 | /* confdefs.h. */ |
|
|
10875 | _ACEOF |
|
|
10876 | cat confdefs.h >>conftest.$ac_ext |
|
|
10877 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10878 | /* end confdefs.h. */ |
|
|
10879 | #include <sys/types.h> |
|
|
10880 | #include <utmp.h> |
|
|
10881 | #ifdef HAVE_LASTLOG_H |
|
|
10882 | #include <lastlog.h> |
|
|
10883 | #endif |
|
|
10884 | |
|
|
10885 | int |
|
|
10886 | main () |
|
|
10887 | { |
|
|
10888 | struct lastlog ll; |
|
|
10889 | ; |
|
|
10890 | return 0; |
|
|
10891 | } |
|
|
10892 | _ACEOF |
|
|
10893 | rm -f conftest.$ac_objext |
|
|
10894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10895 | (eval $ac_compile) 2>conftest.er1 |
|
|
10896 | ac_status=$? |
|
|
10897 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10898 | rm -f conftest.er1 |
|
|
10899 | cat conftest.err >&5 |
|
|
10900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10901 | (exit $ac_status); } && |
|
|
10902 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10904 | (eval $ac_try) 2>&5 |
|
|
10905 | ac_status=$? |
|
|
10906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10907 | (exit $ac_status); }; } && |
|
|
10908 | { ac_try='test -s conftest.$ac_objext' |
|
|
10909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10910 | (eval $ac_try) 2>&5 |
|
|
10911 | ac_status=$? |
|
|
10912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10913 | (exit $ac_status); }; }; then |
|
|
10914 | rxvt_cv_struct_lastlog=yes |
|
|
10915 | else |
|
|
10916 | echo "$as_me: failed program was:" >&5 |
|
|
10917 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10918 | |
|
|
10919 | rxvt_cv_struct_lastlog=no |
|
|
10920 | fi |
|
|
10921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10922 | fi |
|
|
10923 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
|
|
10924 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
|
|
10925 | if test x$rxvt_cv_struct_lastlog = xyes; then |
|
|
10926 | |
|
|
10927 | cat >>confdefs.h <<\_ACEOF |
|
|
10928 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
10929 | _ACEOF |
|
|
10930 | |
|
|
10931 | fi |
|
|
10932 | |
|
|
10933 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
10934 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
10935 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
|
|
10936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10937 | else |
|
|
10938 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10939 | /* confdefs.h. */ |
|
|
10940 | _ACEOF |
|
|
10941 | cat confdefs.h >>conftest.$ac_ext |
|
|
10942 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10943 | /* end confdefs.h. */ |
|
|
10944 | #include <sys/types.h> |
|
|
10945 | #include <utmpx.h> |
|
|
10946 | #ifdef HAVE_LASTLOG_H |
|
|
10947 | #include <lastlog.h> |
|
|
10948 | #endif |
|
|
10949 | |
|
|
10950 | int |
|
|
10951 | main () |
|
|
10952 | { |
|
|
10953 | struct lastlogx ll; |
|
|
10954 | ; |
|
|
10955 | return 0; |
|
|
10956 | } |
|
|
10957 | _ACEOF |
|
|
10958 | rm -f conftest.$ac_objext |
|
|
10959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10960 | (eval $ac_compile) 2>conftest.er1 |
|
|
10961 | ac_status=$? |
|
|
10962 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10963 | rm -f conftest.er1 |
|
|
10964 | cat conftest.err >&5 |
|
|
10965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10966 | (exit $ac_status); } && |
|
|
10967 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10969 | (eval $ac_try) 2>&5 |
|
|
10970 | ac_status=$? |
|
|
10971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10972 | (exit $ac_status); }; } && |
|
|
10973 | { ac_try='test -s conftest.$ac_objext' |
|
|
10974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10975 | (eval $ac_try) 2>&5 |
|
|
10976 | ac_status=$? |
|
|
10977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10978 | (exit $ac_status); }; }; then |
|
|
10979 | rxvt_cv_struct_lastlogx=yes |
|
|
10980 | else |
|
|
10981 | echo "$as_me: failed program was:" >&5 |
|
|
10982 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10983 | |
|
|
10984 | rxvt_cv_struct_lastlogx=no |
|
|
10985 | fi |
|
|
10986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10987 | fi |
|
|
10988 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
|
|
10989 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
|
|
10990 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
|
|
10991 | |
|
|
10992 | cat >>confdefs.h <<\_ACEOF |
|
|
10993 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
10994 | _ACEOF |
|
|
10995 | |
|
|
10996 | fi |
|
|
10997 | |
|
|
10998 | |
|
|
10999 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
11000 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
11001 | if test "${rxvt_cv_path_utmp+set}" = set; then |
|
|
11002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11003 | else |
|
|
11004 | if test "$cross_compiling" = yes; then |
|
|
11005 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
|
|
11006 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
|
|
11007 | else |
|
|
11008 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11009 | /* confdefs.h. */ |
|
|
11010 | _ACEOF |
|
|
11011 | cat confdefs.h >>conftest.$ac_ext |
|
|
11012 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11013 | /* end confdefs.h. */ |
|
|
11014 | #include <stdio.h> |
|
|
11015 | #include <sys/types.h> |
|
|
11016 | #include <utmp.h> |
|
|
11017 | #include <errno.h> |
|
|
11018 | main() |
|
|
11019 | { |
|
|
11020 | char **u, *utmplist[] = { |
|
|
11021 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
11022 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11023 | if (!f) exit(1); |
|
|
11024 | #ifdef UTMP_FILE |
|
|
11025 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
11026 | exit(0); |
|
|
11027 | #endif |
|
|
11028 | #ifdef _PATH_UTMP |
|
|
11029 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
11030 | exit(0); |
|
|
11031 | #endif |
|
|
11032 | for (u = utmplist; *u; u++) { |
|
|
11033 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11034 | fprintf(f, "%s\n", *u); |
|
|
11035 | exit(0); |
|
|
11036 | } |
|
|
11037 | } |
|
|
11038 | exit(0); |
|
|
11039 | } |
|
|
11040 | _ACEOF |
|
|
11041 | rm -f conftest$ac_exeext |
|
|
11042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11043 | (eval $ac_link) 2>&5 |
|
|
11044 | ac_status=$? |
|
|
11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11046 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11048 | (eval $ac_try) 2>&5 |
|
|
11049 | ac_status=$? |
|
|
11050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11051 | (exit $ac_status); }; }; then |
|
|
11052 | rxvt_cv_path_utmp=`cat conftestval` |
|
|
11053 | else |
|
|
11054 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11055 | echo "$as_me: failed program was:" >&5 |
|
|
11056 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11057 | |
|
|
11058 | ( exit $ac_status ) |
|
|
11059 | rxvt_cv_path_utmp= |
|
|
11060 | fi |
|
|
11061 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11062 | fi |
|
|
11063 | fi |
|
|
11064 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
|
|
11065 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
|
|
11066 | if test x$rxvt_cv_path_utmp != x; then |
|
|
11067 | |
|
|
11068 | cat >>confdefs.h <<_ACEOF |
|
|
11069 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
|
|
11070 | _ACEOF |
|
|
11071 | |
|
|
11072 | fi |
|
|
11073 | |
|
|
11074 | |
|
|
11075 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11076 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
11077 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
|
|
11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11079 | else |
|
|
11080 | if test "$cross_compiling" = yes; then |
|
|
11081 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
|
|
11082 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
|
|
11083 | else |
|
|
11084 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11085 | /* confdefs.h. */ |
|
|
11086 | _ACEOF |
|
|
11087 | cat confdefs.h >>conftest.$ac_ext |
|
|
11088 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11089 | /* end confdefs.h. */ |
|
|
11090 | #include <stdio.h> |
|
|
11091 | #include <sys/types.h> |
|
|
11092 | #include <utmpx.h> |
|
|
11093 | #include <errno.h> |
|
|
11094 | #include <sys/stat.h> |
|
|
11095 | #ifdef HAVE_STRING_H |
|
|
11096 | #include <string.h> |
|
|
11097 | #endif |
|
|
11098 | main() |
|
|
11099 | { |
|
|
11100 | char **u, *p, *utmplist[] = { |
|
|
11101 | #ifdef UTMPX_FILE |
|
|
11102 | UTMPX_FILE, |
|
|
11103 | #endif |
|
|
11104 | #ifdef _PATH_UTMPX |
|
|
11105 | _PATH_UTMPX, |
|
|
11106 | #endif |
|
|
11107 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11108 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11109 | struct stat statu, statux; |
|
|
11110 | if (!f) exit(1); |
|
|
11111 | for (u = utmplist; *u; u++) { |
|
|
11112 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11113 | if (stat(*u, &statux) < 0) |
|
|
11114 | continue; |
|
|
11115 | p = strdup(*u); |
|
|
11116 | p[strlen(p) - 1] = '\0'; |
|
|
11117 | if (stat(p, &statu) >= 0 |
|
|
11118 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11119 | continue; |
|
|
11120 | fprintf(f, "%s\n", *u); |
|
|
11121 | exit(0); |
|
|
11122 | } |
|
|
11123 | } |
|
|
11124 | exit(0); |
|
|
11125 | } |
|
|
11126 | _ACEOF |
|
|
11127 | rm -f conftest$ac_exeext |
|
|
11128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11129 | (eval $ac_link) 2>&5 |
|
|
11130 | ac_status=$? |
|
|
11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11132 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11134 | (eval $ac_try) 2>&5 |
|
|
11135 | ac_status=$? |
|
|
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11137 | (exit $ac_status); }; }; then |
|
|
11138 | rxvt_cv_path_utmpx=`cat conftestval` |
|
|
11139 | else |
|
|
11140 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11141 | echo "$as_me: failed program was:" >&5 |
|
|
11142 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11143 | |
|
|
11144 | ( exit $ac_status ) |
|
|
11145 | rxvt_cv_path_utmpx= |
|
|
11146 | fi |
|
|
11147 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11148 | fi |
|
|
11149 | fi |
|
|
11150 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
|
|
11151 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
|
|
11152 | if test x$rxvt_cv_path_utmpx != x; then |
|
|
11153 | |
|
|
11154 | cat >>confdefs.h <<_ACEOF |
|
|
11155 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
|
|
11156 | _ACEOF |
|
|
11157 | |
|
|
11158 | fi |
|
|
11159 | |
|
|
11160 | |
|
|
11161 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11162 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
11163 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
|
|
11164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11165 | else |
|
|
11166 | if test "$cross_compiling" = yes; then |
|
|
11167 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
|
|
11168 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
|
|
11169 | else |
|
|
11170 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11171 | /* confdefs.h. */ |
|
|
11172 | _ACEOF |
|
|
11173 | cat confdefs.h >>conftest.$ac_ext |
|
|
11174 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11175 | /* end confdefs.h. */ |
|
|
11176 | #include <stdio.h> |
|
|
11177 | #include <sys/types.h> |
|
|
11178 | #ifdef HAVE_UTMP_H |
|
|
11179 | #include <utmp.h> |
|
|
11180 | #endif |
|
|
11181 | #include <errno.h> |
|
|
11182 | main() |
|
|
11183 | { |
|
|
11184 | char **w, *wtmplist[] = { |
|
|
11185 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11186 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11187 | if (!f) exit(1); |
|
|
11188 | #ifdef WTMP_FILE |
|
|
11189 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11190 | exit(0); |
|
|
11191 | #endif |
|
|
11192 | #ifdef _PATH_WTMP |
|
|
11193 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11194 | exit(0); |
|
|
11195 | #endif |
|
|
11196 | for (w = wtmplist; *w; w++) { |
|
|
11197 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11198 | fprintf(f, "%s\n", *w); |
|
|
11199 | exit(0); |
|
|
11200 | } |
|
|
11201 | } |
|
|
11202 | exit(0); |
|
|
11203 | } |
|
|
11204 | _ACEOF |
|
|
11205 | rm -f conftest$ac_exeext |
|
|
11206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11207 | (eval $ac_link) 2>&5 |
|
|
11208 | ac_status=$? |
|
|
11209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11210 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11212 | (eval $ac_try) 2>&5 |
|
|
11213 | ac_status=$? |
|
|
11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11215 | (exit $ac_status); }; }; then |
|
|
11216 | rxvt_cv_path_wtmp=`cat conftestval` |
|
|
11217 | else |
|
|
11218 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11219 | echo "$as_me: failed program was:" >&5 |
|
|
11220 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11221 | |
|
|
11222 | ( exit $ac_status ) |
|
|
11223 | rxvt_cv_path_wtmp= |
|
|
11224 | fi |
|
|
11225 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11226 | fi |
|
|
11227 | fi |
|
|
11228 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
|
|
11229 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
|
|
11230 | if test x$rxvt_cv_path_wtmp != x; then |
|
|
11231 | |
|
|
11232 | cat >>confdefs.h <<_ACEOF |
|
|
11233 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
|
|
11234 | _ACEOF |
|
|
11235 | |
|
|
11236 | fi |
|
|
11237 | |
|
|
11238 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11239 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
11240 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
|
|
11241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11242 | else |
|
|
11243 | if test "$cross_compiling" = yes; then |
|
|
11244 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
|
|
11245 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
|
|
11246 | else |
|
|
11247 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11248 | /* confdefs.h. */ |
|
|
11249 | _ACEOF |
|
|
11250 | cat confdefs.h >>conftest.$ac_ext |
|
|
11251 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11252 | /* end confdefs.h. */ |
|
|
11253 | #include <stdio.h> |
|
|
11254 | #ifdef HAVE_UTMPX_H |
|
|
11255 | #include <utmpx.h> |
|
|
11256 | #endif |
|
|
11257 | #include <errno.h> |
|
|
11258 | main() |
|
|
11259 | { |
|
|
11260 | char **w, *wtmplist[] = { |
|
|
11261 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11262 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11263 | if (!f) exit(1); |
|
|
11264 | #ifdef WTMPX_FILE |
|
|
11265 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11266 | exit(0); |
|
|
11267 | #endif |
|
|
11268 | #ifdef _PATH_WTMPX |
|
|
11269 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11270 | exit(0); |
|
|
11271 | #endif |
|
|
11272 | for (w = wtmplist; *w; w++) { |
|
|
11273 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11274 | fprintf(f, "%s\n", *w); |
|
|
11275 | exit(0); |
|
|
11276 | } |
|
|
11277 | } |
|
|
11278 | exit(0); |
|
|
11279 | } |
|
|
11280 | _ACEOF |
|
|
11281 | rm -f conftest$ac_exeext |
|
|
11282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11283 | (eval $ac_link) 2>&5 |
|
|
11284 | ac_status=$? |
|
|
11285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11286 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11288 | (eval $ac_try) 2>&5 |
|
|
11289 | ac_status=$? |
|
|
11290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11291 | (exit $ac_status); }; }; then |
|
|
11292 | rxvt_cv_path_wtmpx=`cat conftestval` |
|
|
11293 | else |
|
|
11294 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11295 | echo "$as_me: failed program was:" >&5 |
|
|
11296 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11297 | |
|
|
11298 | ( exit $ac_status ) |
|
|
11299 | rxvt_cv_path_wtmpx= |
|
|
11300 | fi |
|
|
11301 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11302 | fi |
|
|
11303 | fi |
|
|
11304 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
|
|
11305 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
|
|
11306 | if test x$rxvt_cv_path_wtmpx != x; then |
|
|
11307 | |
|
|
11308 | cat >>confdefs.h <<_ACEOF |
|
|
11309 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
|
|
11310 | _ACEOF |
|
|
11311 | |
|
|
11312 | fi |
|
|
11313 | |
|
|
11314 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11315 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
11316 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
|
|
11317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11318 | else |
|
|
11319 | if test "$cross_compiling" = yes; then |
|
|
11320 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
|
|
11321 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
11322 | else |
|
|
11323 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11324 | /* confdefs.h. */ |
|
|
11325 | _ACEOF |
|
|
11326 | cat confdefs.h >>conftest.$ac_ext |
|
|
11327 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11328 | /* end confdefs.h. */ |
|
|
11329 | #include <stdio.h> |
|
|
11330 | #include <sys/types.h> |
|
|
11331 | #ifdef HAVE_UTMPX_H |
|
|
11332 | #include <utmpx.h> |
|
|
11333 | #elif defined(HAVE_UTMP_H) |
|
|
11334 | #include <utmp.h> |
|
|
11335 | #endif |
|
|
11336 | #ifdef HAVE_LASTLOG_H |
|
|
11337 | #include <lastlog.h> |
|
|
11338 | #endif |
|
|
11339 | #include <errno.h> |
|
|
11340 | main() |
|
|
11341 | { |
|
|
11342 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11343 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11344 | if (!f) exit(1); |
|
|
11345 | #ifdef LASTLOG_FILE |
|
|
11346 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11347 | exit(0); |
|
|
11348 | #endif |
|
|
11349 | #ifdef _PATH_LASTLOG |
|
|
11350 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11351 | exit(0); |
|
|
11352 | #endif |
|
|
11353 | for (w = lastloglist; *w; w++) { |
|
|
11354 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11355 | fprintf(f, "%s\n", *w); |
|
|
11356 | exit(0); |
|
|
11357 | } |
|
|
11358 | } |
|
|
11359 | exit(0); |
|
|
11360 | } |
|
|
11361 | _ACEOF |
|
|
11362 | rm -f conftest$ac_exeext |
|
|
11363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11364 | (eval $ac_link) 2>&5 |
|
|
11365 | ac_status=$? |
|
|
11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11369 | (eval $ac_try) 2>&5 |
|
|
11370 | ac_status=$? |
|
|
11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11372 | (exit $ac_status); }; }; then |
|
|
11373 | rxvt_cv_path_lastlog=`cat conftestval` |
|
|
11374 | else |
|
|
11375 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11376 | echo "$as_me: failed program was:" >&5 |
|
|
11377 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11378 | |
|
|
11379 | ( exit $ac_status ) |
|
|
11380 | rxvt_cv_path_lastlog= |
|
|
11381 | fi |
|
|
11382 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11383 | fi |
|
|
11384 | fi |
|
|
11385 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
|
|
11386 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
|
|
11387 | if test x$rxvt_cv_path_lastlog != x; then |
|
|
11388 | |
|
|
11389 | cat >>confdefs.h <<_ACEOF |
|
|
11390 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
|
|
11391 | _ACEOF |
|
|
11392 | |
|
|
11393 | if test -d "$rxvt_cv_path_lastlog"; then |
|
|
11394 | |
|
|
11395 | cat >>confdefs.h <<\_ACEOF |
|
|
11396 | #define LASTLOG_IS_DIR 1 |
|
|
11397 | _ACEOF |
|
|
11398 | |
|
|
11399 | fi |
|
|
11400 | fi |
|
|
11401 | |
|
|
11402 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11403 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
11404 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
|
|
11405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11406 | else |
|
|
11407 | if test "$cross_compiling" = yes; then |
|
|
11408 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
11409 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11410 | else |
|
|
11411 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11412 | /* confdefs.h. */ |
|
|
11413 | _ACEOF |
|
|
11414 | cat confdefs.h >>conftest.$ac_ext |
|
|
11415 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11416 | /* end confdefs.h. */ |
|
|
11417 | #include <stdio.h> |
|
|
11418 | #ifdef HAVE_UTMPX_H |
|
|
11419 | #include <utmpx.h> |
|
|
11420 | #endif |
|
|
11421 | #include <errno.h> |
|
|
11422 | main() |
|
|
11423 | { |
|
|
11424 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11425 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11426 | if (!f) exit(1); |
|
|
11427 | #ifdef LASTLOGX_FILE |
|
|
11428 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11429 | exit(0); |
|
|
11430 | #endif |
|
|
11431 | #ifdef _PATH_LASTLOGX |
|
|
11432 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11433 | exit(0); |
|
|
11434 | #endif |
|
|
11435 | for (w = wtmplist; *w; w++) { |
|
|
11436 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11437 | fprintf(f, "%s\n", *w); |
|
|
11438 | exit(0); |
|
|
11439 | } |
|
|
11440 | } |
|
|
11441 | exit(0); |
|
|
11442 | } |
|
|
11443 | _ACEOF |
|
|
11444 | rm -f conftest$ac_exeext |
|
|
11445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11446 | (eval $ac_link) 2>&5 |
|
|
11447 | ac_status=$? |
|
|
11448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11449 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11451 | (eval $ac_try) 2>&5 |
|
|
11452 | ac_status=$? |
|
|
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11454 | (exit $ac_status); }; }; then |
|
|
11455 | rxvt_cv_path_lastlogx=`cat conftestval` |
|
|
11456 | else |
|
|
11457 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11458 | echo "$as_me: failed program was:" >&5 |
|
|
11459 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11460 | |
|
|
11461 | ( exit $ac_status ) |
|
|
11462 | rxvt_cv_path_lastlogx= |
|
|
11463 | fi |
|
|
11464 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11465 | fi |
|
|
11466 | fi |
|
|
11467 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
|
|
11468 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
|
|
11469 | if test x$rxvt_cv_path_lastlogx != x; then |
|
|
11470 | |
|
|
11471 | cat >>confdefs.h <<_ACEOF |
|
|
11472 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
|
|
11473 | _ACEOF |
|
|
11474 | |
|
|
11475 | fi |
|
|
11476 | |
10187 | |
11477 | |
10188 | |
11478 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
10189 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11479 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
10190 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11480 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
10191 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
11747 | #define HAVE_NL_LANGINFO 1 |
10458 | #define HAVE_NL_LANGINFO 1 |
11748 | _ACEOF |
10459 | _ACEOF |
11749 | |
10460 | |
11750 | fi |
10461 | fi |
11751 | |
10462 | |
11752 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
10463 | SCM_RIGHTS_CHECK |
11753 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11754 | if test "${rxvt_can_pass_fds+set}" = set; then |
|
|
11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11756 | else |
|
|
11757 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11758 | /* confdefs.h. */ |
|
|
11759 | _ACEOF |
|
|
11760 | cat confdefs.h >>conftest.$ac_ext |
|
|
11761 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11762 | /* end confdefs.h. */ |
|
|
11763 | |
|
|
11764 | #include <sys/types.h> |
|
|
11765 | #include <sys/socket.h> |
|
|
11766 | |
|
|
11767 | int |
|
|
11768 | main () |
|
|
11769 | { |
|
|
11770 | |
|
|
11771 | { |
|
|
11772 | msghdr msg; |
|
|
11773 | iovec iov; |
|
|
11774 | char buf [100]; |
|
|
11775 | char data = 0; |
|
|
11776 | |
|
|
11777 | iov.iov_base = &data; |
|
|
11778 | iov.iov_len = 1; |
|
|
11779 | |
|
|
11780 | msg.msg_iov = &iov; |
|
|
11781 | msg.msg_iovlen = 1; |
|
|
11782 | msg.msg_control = buf; |
|
|
11783 | msg.msg_controllen = sizeof buf; |
|
|
11784 | |
|
|
11785 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11786 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11787 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11788 | cmsg->cmsg_len = 100; |
|
|
11789 | |
|
|
11790 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11791 | |
|
|
11792 | return sendmsg (3, &msg, 0); |
|
|
11793 | } |
|
|
11794 | |
|
|
11795 | ; |
|
|
11796 | return 0; |
|
|
11797 | } |
|
|
11798 | _ACEOF |
|
|
11799 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11801 | (eval $ac_link) 2>conftest.er1 |
|
|
11802 | ac_status=$? |
|
|
11803 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11804 | rm -f conftest.er1 |
|
|
11805 | cat conftest.err >&5 |
|
|
11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11807 | (exit $ac_status); } && |
|
|
11808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11810 | (eval $ac_try) 2>&5 |
|
|
11811 | ac_status=$? |
|
|
11812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11813 | (exit $ac_status); }; } && |
|
|
11814 | { ac_try='test -s conftest$ac_exeext' |
|
|
11815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11816 | (eval $ac_try) 2>&5 |
|
|
11817 | ac_status=$? |
|
|
11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11819 | (exit $ac_status); }; }; then |
|
|
11820 | rxvt_can_pass_fds=yes |
|
|
11821 | else |
|
|
11822 | echo "$as_me: failed program was:" >&5 |
|
|
11823 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11824 | |
|
|
11825 | rxvt_can_pass_fds=no |
|
|
11826 | fi |
|
|
11827 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11828 | conftest$ac_exeext conftest.$ac_ext |
|
|
11829 | fi |
|
|
11830 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
|
|
11831 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
|
|
11832 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
11833 | |
|
|
11834 | cat >>confdefs.h <<\_ACEOF |
|
|
11835 | #define HAVE_UNIX_FDPASS 1 |
|
|
11836 | _ACEOF |
|
|
11837 | |
|
|
11838 | else |
|
|
11839 | { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 |
|
|
11840 | echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} |
|
|
11841 | { (exit 1); exit 1; }; } |
|
|
11842 | fi |
|
|
11843 | |
10464 | |
11844 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
10465 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
11845 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
10466 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
11846 | if test "${rxvt_broken_ximcb+set}" = set; then |
10467 | if test "${rxvt_broken_ximcb+set}" = set; then |
11847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11897 | #define XIMCB_PROTO_BROKEN 1 |
10518 | #define XIMCB_PROTO_BROKEN 1 |
11898 | _ACEOF |
10519 | _ACEOF |
11899 | |
10520 | |
11900 | fi |
10521 | fi |
11901 | |
10522 | |
11902 | if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then |
10523 | PTY_CHECK |
|
|
10524 | |
|
|
10525 | if test x$support_xft = xyes; then |
|
|
10526 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
10527 | set dummy pkg-config; ac_word=$2 |
11903 | echo "$as_me:$LINENO: checking for openpty" >&5 |
10528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11904 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
10529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11905 | if test "${ac_cv_func_openpty+set}" = set; then |
10530 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11907 | else |
10532 | else |
11908 | cat >conftest.$ac_ext <<_ACEOF |
10533 | case $PKG_CONFIG in |
11909 | /* confdefs.h. */ |
10534 | [\\/]* | ?:[\\/]*) |
11910 | _ACEOF |
10535 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11911 | cat confdefs.h >>conftest.$ac_ext |
10536 | ;; |
11912 | cat >>conftest.$ac_ext <<_ACEOF |
10537 | *) |
11913 | /* end confdefs.h. */ |
10538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11914 | /* Define openpty to an innocuous variant, in case <limits.h> declares openpty. |
10539 | for as_dir in $PATH |
11915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10540 | do |
11916 | #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 |
|
|
10549 | done |
|
|
10550 | done |
11917 | |
10551 | |
11918 | /* System header to define __stub macros and hopefully few prototypes, |
10552 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11919 | which can conflict with char openpty (); below. |
10553 | ;; |
11920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10554 | esac |
11921 | <limits.h> exists even on freestanding compilers. */ |
10555 | fi |
|
|
10556 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11922 | |
10557 | |
11923 | #ifdef __STDC__ |
10558 | if test -n "$PKG_CONFIG"; then |
11924 | # include <limits.h> |
10559 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
10560 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
11925 | #else |
10561 | else |
11926 | # include <assert.h> |
|
|
11927 | #endif |
|
|
11928 | |
|
|
11929 | #undef openpty |
|
|
11930 | |
|
|
11931 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11932 | #ifdef __cplusplus |
|
|
11933 | extern "C" |
|
|
11934 | { |
|
|
11935 | #endif |
|
|
11936 | /* We use char because int might match the return type of a gcc2 |
|
|
11937 | builtin and then its argument prototype would still apply. */ |
|
|
11938 | char openpty (); |
|
|
11939 | /* The GNU C library defines this for functions which it implements |
|
|
11940 | to always fail with ENOSYS. Some functions are actually named |
|
|
11941 | something starting with __ and the normal name is an alias. */ |
|
|
11942 | #if defined (__stub_openpty) || defined (__stub___openpty) |
|
|
11943 | choke me |
|
|
11944 | #else |
|
|
11945 | char (*f) () = openpty; |
|
|
11946 | #endif |
|
|
11947 | #ifdef __cplusplus |
|
|
11948 | } |
|
|
11949 | #endif |
|
|
11950 | |
|
|
11951 | int |
|
|
11952 | main () |
|
|
11953 | { |
|
|
11954 | return f != openpty; |
|
|
11955 | ; |
|
|
11956 | return 0; |
|
|
11957 | } |
|
|
11958 | _ACEOF |
|
|
11959 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11961 | (eval $ac_link) 2>conftest.er1 |
|
|
11962 | ac_status=$? |
|
|
11963 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11964 | rm -f conftest.er1 |
|
|
11965 | cat conftest.err >&5 |
|
|
11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11967 | (exit $ac_status); } && |
|
|
11968 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11970 | (eval $ac_try) 2>&5 |
|
|
11971 | ac_status=$? |
|
|
11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11973 | (exit $ac_status); }; } && |
|
|
11974 | { ac_try='test -s conftest$ac_exeext' |
|
|
11975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11976 | (eval $ac_try) 2>&5 |
|
|
11977 | ac_status=$? |
|
|
11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11979 | (exit $ac_status); }; }; then |
|
|
11980 | ac_cv_func_openpty=yes |
|
|
11981 | else |
|
|
11982 | echo "$as_me: failed program was:" >&5 |
|
|
11983 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11984 | |
|
|
11985 | ac_cv_func_openpty=no |
|
|
11986 | fi |
|
|
11987 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11988 | conftest$ac_exeext conftest.$ac_ext |
|
|
11989 | fi |
|
|
11990 | echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 |
10562 | echo "$as_me:$LINENO: result: no" >&5 |
11991 | echo "${ECHO_T}$ac_cv_func_openpty" >&6 |
10563 | echo "${ECHO_T}no" >&6 |
11992 | if test $ac_cv_func_openpty = yes; then |
10564 | fi |
11993 | : |
10565 | |
11994 | else |
10566 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
10567 | set dummy xft-config; ac_word=$2 |
11995 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
10568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11996 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
10569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11997 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
10570 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
11998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11999 | else |
10572 | else |
12000 | ac_check_lib_save_LIBS=$LIBS |
10573 | case $XFT_CONFIG in |
12001 | LIBS="-lutil $LIBS" |
10574 | [\\/]* | ?:[\\/]*) |
12002 | cat >conftest.$ac_ext <<_ACEOF |
10575 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
12003 | /* confdefs.h. */ |
|
|
12004 | _ACEOF |
|
|
12005 | cat confdefs.h >>conftest.$ac_ext |
|
|
12006 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12007 | /* end confdefs.h. */ |
|
|
12008 | |
|
|
12009 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12010 | #ifdef __cplusplus |
|
|
12011 | extern "C" |
|
|
12012 | #endif |
|
|
12013 | /* We use char because int might match the return type of a gcc2 |
|
|
12014 | builtin and then its argument prototype would still apply. */ |
|
|
12015 | char openpty (); |
|
|
12016 | int |
|
|
12017 | main () |
|
|
12018 | { |
|
|
12019 | openpty (); |
|
|
12020 | ; |
10576 | ;; |
12021 | return 0; |
10577 | *) |
12022 | } |
10578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12023 | _ACEOF |
10579 | for as_dir in $PATH |
12024 | rm -f conftest.$ac_objext conftest$ac_exeext |
10580 | do |
12025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10581 | IFS=$as_save_IFS |
12026 | (eval $ac_link) 2>conftest.er1 |
10582 | test -z "$as_dir" && as_dir=. |
12027 | ac_status=$? |
10583 | for ac_exec_ext in '' $ac_executable_extensions; do |
12028 | grep -v '^ *+' conftest.er1 >conftest.err |
10584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12029 | rm -f conftest.er1 |
10585 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12030 | cat conftest.err >&5 |
10586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10587 | break 2 |
12032 | (exit $ac_status); } && |
10588 | fi |
12033 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10589 | done |
12034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10590 | done |
12035 | (eval $ac_try) 2>&5 |
|
|
12036 | ac_status=$? |
|
|
12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12038 | (exit $ac_status); }; } && |
|
|
12039 | { ac_try='test -s conftest$ac_exeext' |
|
|
12040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12041 | (eval $ac_try) 2>&5 |
|
|
12042 | ac_status=$? |
|
|
12043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12044 | (exit $ac_status); }; }; then |
|
|
12045 | ac_cv_lib_util_openpty=yes |
|
|
12046 | else |
|
|
12047 | echo "$as_me: failed program was:" >&5 |
|
|
12048 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12049 | |
10591 | |
12050 | ac_cv_lib_util_openpty=no |
10592 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
10593 | ;; |
|
|
10594 | esac |
12051 | fi |
10595 | fi |
12052 | rm -f conftest.err conftest.$ac_objext \ |
10596 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
12053 | conftest$ac_exeext conftest.$ac_ext |
|
|
12054 | LIBS=$ac_check_lib_save_LIBS |
|
|
12055 | fi |
|
|
12056 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12057 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12058 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12059 | LIBS="$LIBS -lutil" |
|
|
12060 | fi |
|
|
12061 | |
10597 | |
12062 | fi |
10598 | if test -n "$XFT_CONFIG"; then |
12063 | |
10599 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
12064 | fi |
10600 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
12065 | |
|
|
12066 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
|
|
12067 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
|
|
12068 | if test "${rxvt_cv_ptys+set}" = set; then |
|
|
12069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12070 | else |
10601 | else |
12071 | 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 |
12072 | rxvt_cv_ptys=OPENPTY |
10603 | echo "${ECHO_T}no" >&6 |
12073 | else if test x$ac_cv_func_getpt = xyes; then |
10604 | fi |
12074 | rxvt_cv_ptys=GLIBC |
10605 | |
12075 | else if test x$ac_cv_func_posix_openpt = xyes; then |
10606 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12076 | rxvt_cv_ptys=POSIX |
10607 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
12077 | else if test x$ac_cv_func__getpty = xyes; then |
10608 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12078 | rxvt_cv_ptys=SGI4 |
|
|
12079 | else if test -c /dev/ttyp20; then |
|
|
12080 | rxvt_cv_ptys=SCO |
|
|
12081 | else if test -c /dev/ptym/clone; then |
|
|
12082 | rxvt_cv_ptys=HPUX |
|
|
12083 | else if test -c /dev/ptc -a -c /dev/pts; then |
|
|
12084 | rxvt_cv_ptys=PTC |
|
|
12085 | else if test -c /dev/ptc -a -d /dev/pts; then |
|
|
12086 | rxvt_cv_ptys=PTC |
|
|
12087 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
|
|
12088 | rxvt_cv_ptys=STREAMS |
|
|
12089 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
|
|
12090 | rxvt_cv_ptys=STREAMS |
|
|
12091 | else |
10609 | else |
12092 | rxvt_cv_ptys=BSD |
10610 | if test $XFT_CONFIG != no; then |
12093 | fi |
10611 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
12094 | fi |
10612 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12095 | fi |
10613 | fi |
12096 | fi |
10614 | fi |
12097 | fi |
|
|
12098 | fi |
|
|
12099 | fi |
|
|
12100 | fi |
|
|
12101 | fi |
|
|
12102 | fi |
|
|
12103 | |
|
|
12104 | fi |
|
|
12105 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
12106 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
12107 | |
|
|
12108 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
12109 | |
|
|
12110 | cat >>confdefs.h <<\_ACEOF |
|
|
12111 | #define PTYS_ARE_GETPT 1 |
|
|
12112 | _ACEOF |
|
|
12113 | |
|
|
12114 | fi |
|
|
12115 | if test x$rxvt_cv_ptys = xPOSIX; then |
|
|
12116 | |
|
|
12117 | cat >>confdefs.h <<\_ACEOF |
|
|
12118 | #define PTYS_ARE_POSIX 1 |
|
|
12119 | _ACEOF |
|
|
12120 | |
|
|
12121 | fi |
|
|
12122 | if test x$rxvt_cv_ptys = xOPENPTY; then |
|
|
12123 | |
|
|
12124 | cat >>confdefs.h <<\_ACEOF |
|
|
12125 | #define PTYS_ARE_OPENPTY 1 |
|
|
12126 | _ACEOF |
|
|
12127 | |
|
|
12128 | fi |
|
|
12129 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
12130 | |
|
|
12131 | cat >>confdefs.h <<\_ACEOF |
|
|
12132 | #define PTYS_ARE_NUMERIC 1 |
|
|
12133 | _ACEOF |
|
|
12134 | |
|
|
12135 | fi |
|
|
12136 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
12137 | |
|
|
12138 | cat >>confdefs.h <<\_ACEOF |
|
|
12139 | #define PTYS_ARE_PTMX 1 |
|
|
12140 | _ACEOF |
|
|
12141 | |
|
|
12142 | fi |
|
|
12143 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
12144 | |
|
|
12145 | cat >>confdefs.h <<\_ACEOF |
|
|
12146 | #define PTYS_ARE_PTC 1 |
|
|
12147 | _ACEOF |
|
|
12148 | |
|
|
12149 | fi |
|
|
12150 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
12151 | |
|
|
12152 | cat >>confdefs.h <<\_ACEOF |
|
|
12153 | #define PTYS_ARE__GETPTY 1 |
|
|
12154 | _ACEOF |
|
|
12155 | |
|
|
12156 | fi |
|
|
12157 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
12158 | |
|
|
12159 | cat >>confdefs.h <<\_ACEOF |
|
|
12160 | #define PTYS_ARE_CLONE 1 |
|
|
12161 | _ACEOF |
|
|
12162 | |
|
|
12163 | fi |
|
|
12164 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then |
|
|
12165 | |
|
|
12166 | cat >>confdefs.h <<\_ACEOF |
|
|
12167 | #define PTYS_ARE_SEARCHED 1 |
|
|
12168 | _ACEOF |
|
|
12169 | |
|
|
12170 | fi |
|
|
12171 | |
|
|
12172 | |
|
|
12173 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
12174 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
12175 | ptys=`echo /dev/pty??` |
|
|
12176 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
12177 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
12178 | if test x$pch1 != x; then |
|
|
12179 | |
|
|
12180 | cat >>confdefs.h <<_ACEOF |
|
|
12181 | #define PTYCHAR1 "$pch1" |
|
|
12182 | _ACEOF |
|
|
12183 | |
|
|
12184 | fi |
|
|
12185 | if test x$pch2 != x; then |
|
|
12186 | |
|
|
12187 | cat >>confdefs.h <<_ACEOF |
|
|
12188 | #define PTYCHAR2 "$pch2" |
|
|
12189 | _ACEOF |
|
|
12190 | |
|
|
12191 | fi |
|
|
12192 | |
|
|
12193 | if test x$support_xft = xyes; then |
|
|
12194 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
12195 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
12196 | |
10615 | |
12197 | |
10616 | |
12198 | for ac_header in X11/Xft/Xft.h |
10617 | for ac_header in X11/Xft/Xft.h |
12199 | do |
10618 | do |
12200 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
… | |
… | |
13604 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
12023 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
13605 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
12024 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
13606 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
12025 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
13607 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
12026 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
13608 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
12027 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
12028 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
|
|
12029 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
13609 | s,@PERL@,$PERL,;t t |
12030 | s,@PERL@,$PERL,;t t |
13610 | s,@PERLLIB@,$PERLLIB,;t t |
12031 | s,@PERLLIB@,$PERLLIB,;t t |
13611 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
12032 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
13612 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
12033 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
13613 | s,@IF_PERL@,$IF_PERL,;t t |
12034 | s,@IF_PERL@,$IF_PERL,;t t |
… | |
… | |
14147 | fi |
12568 | fi |
14148 | |
12569 | |
14149 | echo " |
12570 | echo " |
14150 | The following are set in config.h |
12571 | The following are set in config.h |
14151 | " |
12572 | " |
14152 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
14153 | if test x$support_utmp != xyes; then |
12573 | if test x$support_utmp != xyes; then |
14154 | echo " utmp support: disabled" |
12574 | echo " utmp support: disabled" |
14155 | echo |
12575 | echo |
14156 | else |
12576 | else |
14157 | echo " utmp support: enabled |
12577 | echo " utmp support: enabled |
… | |
… | |
14174 | echo " resource class: $RESCLASS" |
12594 | echo " resource class: $RESCLASS" |
14175 | if test x$RESFALLBACK != x; then |
12595 | if test x$RESFALLBACK != x; then |
14176 | echo " resource class fallback: $RESFALLBACK" |
12596 | echo " resource class fallback: $RESFALLBACK" |
14177 | fi |
12597 | fi |
14178 | echo |
12598 | echo |
14179 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
|
|
14180 | echo ".----------------------------------------------------------------." |
|
|
14181 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
14182 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
14183 | echo ".----------------------------------------------------------------." |
|
|
14184 | fi |
|
|
14185 | if test x$support_xpm = xneedsmanualspecification; then |
12599 | if test x$support_xpm = xneedsmanualspecification; then |
14186 | echo ".----------------------------------------------------------------." |
12600 | echo ".----------------------------------------------------------------." |
14187 | echo ". WARNING: --enable-xpm-background was specified however the ." |
12601 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14188 | echo ". XPM includes files and libraries could not be found. ." |
12602 | echo ". XPM includes files and libraries could not be found. ." |
14189 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
12603 | echo ". XPM backgrounds are now being DISABLED! If you want ." |