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