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