… | |
… | |
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 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 |
… | |
… | |
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 | |
|
|
3227 | ac_ext=c |
|
|
3228 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | LINKER="$CXX" |
|
|
3235 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3236 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3237 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3238 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3240 | else |
|
|
3241 | ac_check_lib_save_LIBS=$LIBS |
|
|
3242 | LIBS="-lsupc++ $LIBS" |
|
|
3243 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3244 | /* confdefs.h. */ |
|
|
3245 | _ACEOF |
|
|
3246 | cat confdefs.h >>conftest.$ac_ext |
|
|
3247 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3248 | /* end confdefs.h. */ |
|
|
3249 | |
|
|
3250 | |
|
|
3251 | int |
|
|
3252 | main () |
|
|
3253 | { |
|
|
3254 | main (); |
|
|
3255 | ; |
|
|
3256 | return 0; |
|
|
3257 | } |
|
|
3258 | _ACEOF |
|
|
3259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3261 | (eval $ac_link) 2>conftest.er1 |
|
|
3262 | ac_status=$? |
|
|
3263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3264 | rm -f conftest.er1 |
|
|
3265 | cat conftest.err >&5 |
|
|
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3267 | (exit $ac_status); } && |
|
|
3268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3270 | (eval $ac_try) 2>&5 |
|
|
3271 | ac_status=$? |
|
|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3273 | (exit $ac_status); }; } && |
|
|
3274 | { ac_try='test -s conftest$ac_exeext' |
|
|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3276 | (eval $ac_try) 2>&5 |
|
|
3277 | ac_status=$? |
|
|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3279 | (exit $ac_status); }; }; then |
|
|
3280 | ac_cv_lib_supcpp_main=yes |
|
|
3281 | else |
|
|
3282 | echo "$as_me: failed program was:" >&5 |
|
|
3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3284 | |
|
|
3285 | ac_cv_lib_supcpp_main=no |
|
|
3286 | fi |
|
|
3287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3288 | conftest$ac_exeext conftest.$ac_ext |
|
|
3289 | LIBS=$ac_check_lib_save_LIBS |
|
|
3290 | fi |
|
|
3291 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3292 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3293 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3294 | |
|
|
3295 | LINKER="$CC" |
|
|
3296 | LIBS="$LIBS -lsupc++" |
|
|
3297 | |
|
|
3298 | fi |
|
|
3299 | |
|
|
3300 | fi |
|
|
3301 | LINKER=$LINKER |
|
|
3302 | |
|
|
3303 | |
|
|
3304 | ac_ext=cc |
|
|
3305 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3309 | |
|
|
3310 | if test -z "$orig_CXXFLAGS"; then |
|
|
3311 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3312 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3313 | |
|
|
3314 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3315 | int i; |
|
|
3316 | _ACEOF |
|
|
3317 | rm -f conftest.$ac_objext |
|
|
3318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3319 | (eval $ac_compile) 2>conftest.er1 |
|
|
3320 | ac_status=$? |
|
|
3321 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3322 | rm -f conftest.er1 |
|
|
3323 | cat conftest.err >&5 |
|
|
3324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3325 | (exit $ac_status); } && |
|
|
3326 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3328 | (eval $ac_try) 2>&5 |
|
|
3329 | ac_status=$? |
|
|
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3331 | (exit $ac_status); }; } && |
|
|
3332 | { ac_try='test -s conftest.$ac_objext' |
|
|
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); }; }; then |
|
|
3338 | : |
|
|
3339 | else |
|
|
3340 | echo "$as_me: failed program was:" >&5 |
|
|
3341 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3342 | |
|
|
3343 | CXXFLAGS="-g -O3" |
|
|
3344 | fi |
|
|
3345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3346 | else |
|
|
3347 | CXXFLAGS="-O" |
|
|
3348 | fi |
|
|
3349 | CFLAGS="$CXXFLAGS" |
|
|
3350 | fi |
|
|
3351 | |
|
|
3352 | |
|
|
3353 | cat >>confdefs.h <<\_ACEOF |
|
|
3354 | #define _GNU_SOURCE 1 |
|
|
3355 | _ACEOF |
|
|
3356 | |
|
|
3357 | |
|
|
3358 | case $host in |
|
|
3359 | *-*-solaris* ) |
|
|
3360 | |
|
|
3361 | cat >>confdefs.h <<\_ACEOF |
|
|
3362 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3363 | _ACEOF |
|
|
3364 | |
|
|
3365 | |
|
|
3366 | cat >>confdefs.h <<\_ACEOF |
|
|
3367 | #define _XOPEN_SOURCE 2 |
|
|
3368 | _ACEOF |
|
|
3369 | |
|
|
3370 | |
|
|
3371 | cat >>confdefs.h <<\_ACEOF |
|
|
3372 | #define __EXTENSIONS__ 1 |
|
|
3373 | _ACEOF |
|
|
3374 | |
|
|
3375 | ;; |
|
|
3376 | esac |
3616 | |
3377 | |
3617 | |
3378 | |
3618 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3379 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3619 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3380 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3620 | if test "${ac_cv_func_setlocale+set}" = set; then |
3381 | if test "${ac_cv_func_setlocale+set}" = set; then |
… | |
… | |
4830 | terminfo="$withval" |
4591 | terminfo="$withval" |
4831 | fi |
4592 | fi |
4832 | fi; |
4593 | fi; |
4833 | |
4594 | |
4834 | |
4595 | |
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. |
4596 | # Extract the first word of "mv", so it can be a program name with args. |
4842 | set dummy mv; ac_word=$2 |
4597 | set dummy mv; ac_word=$2 |
4843 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4844 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4845 | if test "${ac_cv_path_MV+set}" = set; then |
4600 | if test "${ac_cv_path_MV+set}" = set; then |
… | |
… | |
5116 | else |
4871 | else |
5117 | echo "$as_me:$LINENO: result: no" >&5 |
4872 | echo "$as_me:$LINENO: result: no" >&5 |
5118 | echo "${ECHO_T}no" >&6 |
4873 | echo "${ECHO_T}no" >&6 |
5119 | fi |
4874 | fi |
5120 | |
4875 | |
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. |
4876 | # Extract the first word of "tic", so it can be a program name with args. |
5161 | set dummy tic; ac_word=$2 |
4877 | set dummy tic; ac_word=$2 |
5162 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5163 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5164 | if test "${ac_cv_path_TIC+set}" = set; then |
4880 | if test "${ac_cv_path_TIC+set}" = set; then |
… | |
… | |
5195 | echo "$as_me:$LINENO: result: no" >&5 |
4911 | echo "$as_me:$LINENO: result: no" >&5 |
5196 | echo "${ECHO_T}no" >&6 |
4912 | echo "${ECHO_T}no" >&6 |
5197 | fi |
4913 | fi |
5198 | |
4914 | |
5199 | |
4915 | |
|
|
4916 | |
|
|
4917 | |
|
|
4918 | ac_ext=cc |
|
|
4919 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4920 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4921 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4922 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4923 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4924 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4925 | if test -z "$CXXCPP"; then |
|
|
4926 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4928 | else |
|
|
4929 | # Double quotes because CXXCPP needs to be expanded |
|
|
4930 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4931 | do |
|
|
4932 | ac_preproc_ok=false |
|
|
4933 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4934 | do |
|
|
4935 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4936 | # with a fresh cross-compiler works. |
|
|
4937 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4938 | # <limits.h> exists even on freestanding compilers. |
|
|
4939 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4940 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4941 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4942 | /* confdefs.h. */ |
|
|
4943 | _ACEOF |
|
|
4944 | cat confdefs.h >>conftest.$ac_ext |
|
|
4945 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4946 | /* end confdefs.h. */ |
|
|
4947 | #ifdef __STDC__ |
|
|
4948 | # include <limits.h> |
|
|
4949 | #else |
|
|
4950 | # include <assert.h> |
|
|
4951 | #endif |
|
|
4952 | Syntax error |
|
|
4953 | _ACEOF |
|
|
4954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4956 | ac_status=$? |
|
|
4957 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4958 | rm -f conftest.er1 |
|
|
4959 | cat conftest.err >&5 |
|
|
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4961 | (exit $ac_status); } >/dev/null; then |
|
|
4962 | if test -s conftest.err; then |
|
|
4963 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4964 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4965 | else |
|
|
4966 | ac_cpp_err= |
|
|
4967 | fi |
|
|
4968 | else |
|
|
4969 | ac_cpp_err=yes |
|
|
4970 | fi |
|
|
4971 | if test -z "$ac_cpp_err"; then |
|
|
4972 | : |
|
|
4973 | else |
|
|
4974 | echo "$as_me: failed program was:" >&5 |
|
|
4975 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4976 | |
|
|
4977 | # Broken: fails on valid input. |
|
|
4978 | continue |
|
|
4979 | fi |
|
|
4980 | rm -f conftest.err conftest.$ac_ext |
|
|
4981 | |
|
|
4982 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4983 | # can be detected and how. |
|
|
4984 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4985 | /* confdefs.h. */ |
|
|
4986 | _ACEOF |
|
|
4987 | cat confdefs.h >>conftest.$ac_ext |
|
|
4988 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4989 | /* end confdefs.h. */ |
|
|
4990 | #include <ac_nonexistent.h> |
|
|
4991 | _ACEOF |
|
|
4992 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4993 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4994 | ac_status=$? |
|
|
4995 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4996 | rm -f conftest.er1 |
|
|
4997 | cat conftest.err >&5 |
|
|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4999 | (exit $ac_status); } >/dev/null; then |
|
|
5000 | if test -s conftest.err; then |
|
|
5001 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5002 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5003 | else |
|
|
5004 | ac_cpp_err= |
|
|
5005 | fi |
|
|
5006 | else |
|
|
5007 | ac_cpp_err=yes |
|
|
5008 | fi |
|
|
5009 | if test -z "$ac_cpp_err"; then |
|
|
5010 | # Broken: success on invalid input. |
|
|
5011 | continue |
|
|
5012 | else |
|
|
5013 | echo "$as_me: failed program was:" >&5 |
|
|
5014 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5015 | |
|
|
5016 | # Passes both tests. |
|
|
5017 | ac_preproc_ok=: |
|
|
5018 | break |
|
|
5019 | fi |
|
|
5020 | rm -f conftest.err conftest.$ac_ext |
|
|
5021 | |
|
|
5022 | done |
|
|
5023 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5024 | rm -f conftest.err conftest.$ac_ext |
|
|
5025 | if $ac_preproc_ok; then |
|
|
5026 | break |
|
|
5027 | fi |
|
|
5028 | |
|
|
5029 | done |
|
|
5030 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5031 | |
|
|
5032 | fi |
|
|
5033 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5034 | else |
|
|
5035 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5036 | fi |
|
|
5037 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5038 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
5039 | ac_preproc_ok=false |
|
|
5040 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5041 | do |
|
|
5042 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5043 | # with a fresh cross-compiler works. |
|
|
5044 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5045 | # <limits.h> exists even on freestanding compilers. |
|
|
5046 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5047 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5049 | /* confdefs.h. */ |
|
|
5050 | _ACEOF |
|
|
5051 | cat confdefs.h >>conftest.$ac_ext |
|
|
5052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5053 | /* end confdefs.h. */ |
|
|
5054 | #ifdef __STDC__ |
|
|
5055 | # include <limits.h> |
|
|
5056 | #else |
|
|
5057 | # include <assert.h> |
|
|
5058 | #endif |
|
|
5059 | Syntax error |
|
|
5060 | _ACEOF |
|
|
5061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5063 | ac_status=$? |
|
|
5064 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5065 | rm -f conftest.er1 |
|
|
5066 | cat conftest.err >&5 |
|
|
5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5068 | (exit $ac_status); } >/dev/null; then |
|
|
5069 | if test -s conftest.err; then |
|
|
5070 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5071 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5072 | else |
|
|
5073 | ac_cpp_err= |
|
|
5074 | fi |
|
|
5075 | else |
|
|
5076 | ac_cpp_err=yes |
|
|
5077 | fi |
|
|
5078 | if test -z "$ac_cpp_err"; then |
|
|
5079 | : |
|
|
5080 | else |
|
|
5081 | echo "$as_me: failed program was:" >&5 |
|
|
5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5083 | |
|
|
5084 | # Broken: fails on valid input. |
|
|
5085 | continue |
|
|
5086 | fi |
|
|
5087 | rm -f conftest.err conftest.$ac_ext |
|
|
5088 | |
|
|
5089 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
5090 | # can be detected and how. |
|
|
5091 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5092 | /* confdefs.h. */ |
|
|
5093 | _ACEOF |
|
|
5094 | cat confdefs.h >>conftest.$ac_ext |
|
|
5095 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5096 | /* end confdefs.h. */ |
|
|
5097 | #include <ac_nonexistent.h> |
|
|
5098 | _ACEOF |
|
|
5099 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5100 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5101 | ac_status=$? |
|
|
5102 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5103 | rm -f conftest.er1 |
|
|
5104 | cat conftest.err >&5 |
|
|
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5106 | (exit $ac_status); } >/dev/null; then |
|
|
5107 | if test -s conftest.err; then |
|
|
5108 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5109 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5110 | else |
|
|
5111 | ac_cpp_err= |
|
|
5112 | fi |
|
|
5113 | else |
|
|
5114 | ac_cpp_err=yes |
|
|
5115 | fi |
|
|
5116 | if test -z "$ac_cpp_err"; then |
|
|
5117 | # Broken: success on invalid input. |
|
|
5118 | continue |
|
|
5119 | else |
|
|
5120 | echo "$as_me: failed program was:" >&5 |
|
|
5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5122 | |
|
|
5123 | # Passes both tests. |
|
|
5124 | ac_preproc_ok=: |
|
|
5125 | break |
|
|
5126 | fi |
|
|
5127 | rm -f conftest.err conftest.$ac_ext |
|
|
5128 | |
|
|
5129 | done |
|
|
5130 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5131 | rm -f conftest.err conftest.$ac_ext |
|
|
5132 | if $ac_preproc_ok; then |
|
|
5133 | : |
|
|
5134 | else |
|
|
5135 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5136 | See \`config.log' for more details." >&5 |
|
|
5137 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5138 | See \`config.log' for more details." >&2;} |
|
|
5139 | { (exit 1); exit 1; }; } |
|
|
5140 | fi |
|
|
5141 | |
|
|
5142 | ac_ext=cc |
|
|
5143 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5144 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5145 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5146 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5200 | |
5147 | |
5201 | |
5148 | |
5202 | |
5149 | |
5203 | if test "x$ac_path_x_has_been_run" != xyes; then |
5150 | if test "x$ac_path_x_has_been_run" != xyes; then |
5204 | echo "$as_me:$LINENO: checking for X" >&5 |
5151 | echo "$as_me:$LINENO: checking for X" >&5 |
… | |
… | |
10152 | for ac_func in \ |
10099 | for ac_func in \ |
10153 | revoke \ |
10100 | revoke \ |
10154 | unsetenv \ |
10101 | unsetenv \ |
10155 | setutent \ |
10102 | setutent \ |
10156 | seteuid \ |
10103 | seteuid \ |
10157 | setresuid \ |
10104 | setresuid \ |
10158 | setreuid \ |
10105 | setreuid \ |
10159 | _getpty \ |
10106 | _getpty \ |
10160 | getpt \ |
10107 | getpt \ |
10161 | posix_openpt \ |
10108 | posix_openpt \ |
10162 | grantpt \ |
10109 | grantpt \ |
… | |
… | |
10416 | _ACEOF |
10363 | _ACEOF |
10417 | cat confdefs.h >>conftest.$ac_ext |
10364 | cat confdefs.h >>conftest.$ac_ext |
10418 | cat >>conftest.$ac_ext <<_ACEOF |
10365 | cat >>conftest.$ac_ext <<_ACEOF |
10419 | /* end confdefs.h. */ |
10366 | /* end confdefs.h. */ |
10420 | #include <sys/types.h> |
10367 | #include <sys/types.h> |
10421 | #include <stdint.h> |
|
|
10422 | #include <utmp.h> |
10368 | #include <utmp.h> |
10423 | int |
10369 | int |
10424 | main () |
10370 | main () |
10425 | { |
10371 | { |
10426 | struct utmp ut; |
10372 | struct utmp ut; |
… | |
… | |
13632 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
13578 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
13633 | s,@CPP@,$CPP,;t t |
13579 | s,@CPP@,$CPP,;t t |
13634 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13580 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13635 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
13581 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
13636 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
13582 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
13637 | s,@AWK@,$AWK,;t t |
13583 | s,@EGREP@,$EGREP,;t t |
13638 | s,@LINKER@,$LINKER,;t t |
13584 | s,@LINKER@,$LINKER,;t t |
13639 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
13640 | s,@EGREP@,$EGREP,;t t |
|
|
13641 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13585 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13642 | s,@RXVTNAME@,$RXVTNAME,;t t |
13586 | s,@RXVTNAME@,$RXVTNAME,;t t |
13643 | s,@MV@,$MV,;t t |
13587 | s,@MV@,$MV,;t t |
13644 | s,@RM@,$RM,;t t |
13588 | s,@RM@,$RM,;t t |
13645 | s,@CP@,$CP,;t t |
13589 | s,@CP@,$CP,;t t |
13646 | s,@LN@,$LN,;t t |
13590 | s,@LN@,$LN,;t t |
13647 | s,@SED@,$SED,;t t |
13591 | s,@SED@,$SED,;t t |
13648 | s,@ECHO@,$ECHO,;t t |
13592 | s,@ECHO@,$ECHO,;t t |
13649 | s,@CMP@,$CMP,;t t |
13593 | s,@CMP@,$CMP,;t t |
13650 | s,@TBL@,$TBL,;t t |
|
|
13651 | s,@TIC@,$TIC,;t t |
13594 | s,@TIC@,$TIC,;t t |
|
|
13595 | s,@CXXCPP@,$CXXCPP,;t t |
13652 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13596 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13653 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
13597 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
13654 | s,@X_LIBS@,$X_LIBS,;t t |
13598 | s,@X_LIBS@,$X_LIBS,;t t |
13655 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
13599 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
13656 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
13600 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |