| 1 | #! /bin/sh |
| 2 | # From configure.in for Readline 4.3, version 2.45, from autoconf version AC_ACVERSION. |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated by GNU Autoconf 2.57 for readline 4.3. |
| 5 | # |
| 6 | # Report bugs to <bug-readline@gnu.org>. |
| 7 | # |
| 8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 9 | # Free Software Foundation, Inc. |
| 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
| 12 | ## --------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## --------------------- ## |
| 15 | |
| 16 | # Be Bourne compatible |
| 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 18 | emulate sh |
| 19 | NULLCMD=: |
| 20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 21 | # is contrary to our usage. Disable this feature. |
| 22 | alias -g '${1+"$@"}'='"$@"' |
| 23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 24 | set -o posix |
| 25 | fi |
| 26 | |
| 27 | # Support unset when possible. |
| 28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 29 | as_unset=unset |
| 30 | else |
| 31 | as_unset=false |
| 32 | fi |
| 33 | |
| 34 | |
| 35 | # Work around bugs in pre-3.0 UWIN ksh. |
| 36 | $as_unset ENV MAIL MAILPATH |
| 37 | PS1='$ ' |
| 38 | PS2='> ' |
| 39 | PS4='+ ' |
| 40 | |
| 41 | # NLS nuisances. |
| 42 | for as_var in \ |
| 43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 45 | LC_TELEPHONE LC_TIME |
| 46 | do |
| 47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 48 | eval $as_var=C; export $as_var |
| 49 | else |
| 50 | $as_unset $as_var |
| 51 | fi |
| 52 | done |
| 53 | |
| 54 | # Required to use basename. |
| 55 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 56 | as_expr=expr |
| 57 | else |
| 58 | as_expr=false |
| 59 | fi |
| 60 | |
| 61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 62 | as_basename=basename |
| 63 | else |
| 64 | as_basename=false |
| 65 | fi |
| 66 | |
| 67 | |
| 68 | # Name of the executable. |
| 69 | as_me=`$as_basename "$0" || |
| 70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 71 | X"$0" : 'X\(//\)$' \| \ |
| 72 | X"$0" : 'X\(/\)$' \| \ |
| 73 | . : '\(.\)' 2>/dev/null || |
| 74 | echo X/"$0" | |
| 75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 77 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 78 | s/.*/./; q'` |
| 79 | |
| 80 | |
| 81 | # PATH needs CR, and LINENO needs CR and PATH. |
| 82 | # Avoid depending upon Character Ranges. |
| 83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 86 | as_cr_digits='0123456789' |
| 87 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 88 | |
| 89 | # The user is always right. |
| 90 | if test "${PATH_SEPARATOR+set}" != set; then |
| 91 | echo "#! /bin/sh" >conf$$.sh |
| 92 | echo "exit 0" >>conf$$.sh |
| 93 | chmod +x conf$$.sh |
| 94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 95 | PATH_SEPARATOR=';' |
| 96 | else |
| 97 | PATH_SEPARATOR=: |
| 98 | fi |
| 99 | rm -f conf$$.sh |
| 100 | fi |
| 101 | |
| 102 | |
| 103 | as_lineno_1=$LINENO |
| 104 | as_lineno_2=$LINENO |
| 105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 106 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 107 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 108 | # Find who we are. Look in the path if we contain no path at all |
| 109 | # relative or not. |
| 110 | case $0 in |
| 111 | *[\\/]* ) as_myself=$0 ;; |
| 112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 113 | for as_dir in $PATH |
| 114 | do |
| 115 | IFS=$as_save_IFS |
| 116 | test -z "$as_dir" && as_dir=. |
| 117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 118 | done |
| 119 | |
| 120 | ;; |
| 121 | esac |
| 122 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 123 | # in which case we are not to be found in the path. |
| 124 | if test "x$as_myself" = x; then |
| 125 | as_myself=$0 |
| 126 | fi |
| 127 | if test ! -f "$as_myself"; then |
| 128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 129 | { (exit 1); exit 1; }; } |
| 130 | fi |
| 131 | case $CONFIG_SHELL in |
| 132 | '') |
| 133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 135 | do |
| 136 | IFS=$as_save_IFS |
| 137 | test -z "$as_dir" && as_dir=. |
| 138 | for as_base in sh bash ksh sh5; do |
| 139 | case $as_dir in |
| 140 | /*) |
| 141 | if ("$as_dir/$as_base" -c ' |
| 142 | as_lineno_1=$LINENO |
| 143 | as_lineno_2=$LINENO |
| 144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 145 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 149 | CONFIG_SHELL=$as_dir/$as_base |
| 150 | export CONFIG_SHELL |
| 151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 152 | fi;; |
| 153 | esac |
| 154 | done |
| 155 | done |
| 156 | ;; |
| 157 | esac |
| 158 | |
| 159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 160 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 161 | # line-number line before each line; the second 'sed' does the real |
| 162 | # work. The second script uses 'N' to pair each line-number line |
| 163 | # with the numbered line, and appends trailing '-' during |
| 164 | # substitution so that $LINENO is not a special case at line end. |
| 165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 167 | sed '=' <$as_myself | |
| 168 | sed ' |
| 169 | N |
| 170 | s,$,-, |
| 171 | : loop |
| 172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 173 | t loop |
| 174 | s,-$,, |
| 175 | s,^['$as_cr_digits']*\n,, |
| 176 | ' >$as_me.lineno && |
| 177 | chmod +x $as_me.lineno || |
| 178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 179 | { (exit 1); exit 1; }; } |
| 180 | |
| 181 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 182 | # (the dirname of $[0] is not the place where we might find the |
| 183 | # original and so on. Autoconf is especially sensible to this). |
| 184 | . ./$as_me.lineno |
| 185 | # Exit status is that of the last command. |
| 186 | exit |
| 187 | } |
| 188 | |
| 189 | |
| 190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 191 | *c*,-n*) ECHO_N= ECHO_C=' |
| 192 | ' ECHO_T=' ' ;; |
| 193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 195 | esac |
| 196 | |
| 197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 198 | as_expr=expr |
| 199 | else |
| 200 | as_expr=false |
| 201 | fi |
| 202 | |
| 203 | rm -f conf$$ conf$$.exe conf$$.file |
| 204 | echo >conf$$.file |
| 205 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 206 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 208 | if test -f conf$$.exe; then |
| 209 | # Don't use ln at all; we don't have any links |
| 210 | as_ln_s='cp -p' |
| 211 | else |
| 212 | as_ln_s='ln -s' |
| 213 | fi |
| 214 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 215 | as_ln_s=ln |
| 216 | else |
| 217 | as_ln_s='cp -p' |
| 218 | fi |
| 219 | rm -f conf$$ conf$$.exe conf$$.file |
| 220 | |
| 221 | if mkdir -p . 2>/dev/null; then |
| 222 | as_mkdir_p=: |
| 223 | else |
| 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
| 227 | as_executable_p="test -f" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid CPP name. |
| 230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 231 | |
| 232 | # Sed expression to map a string onto a valid variable name. |
| 233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 234 | |
| 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
| 243 | $as_unset CDPATH |
| 244 | |
| 245 | |
| 246 | # Name of the host. |
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 248 | # so uname gets run too. |
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 250 | |
| 251 | exec 6>&1 |
| 252 | |
| 253 | # |
| 254 | # Initializations. |
| 255 | # |
| 256 | ac_default_prefix=/usr/local |
| 257 | ac_config_libobj_dir=. |
| 258 | cross_compiling=no |
| 259 | subdirs= |
| 260 | MFLAGS= |
| 261 | MAKEFLAGS= |
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 263 | |
| 264 | # Maximum number of lines to put in a shell here document. |
| 265 | # This variable seems obsolete. It should probably be removed, and |
| 266 | # only ac_max_sed_lines should be used. |
| 267 | : ${ac_max_here_lines=38} |
| 268 | |
| 269 | # Identity of this package. |
| 270 | PACKAGE_NAME='readline' |
| 271 | PACKAGE_TARNAME='readline' |
| 272 | PACKAGE_VERSION='4.3' |
| 273 | PACKAGE_STRING='readline 4.3' |
| 274 | PACKAGE_BUGREPORT='bug-readline@gnu.org' |
| 275 | |
| 276 | ac_unique_file="readline.h" |
| 277 | # Factoring default headers for most tests. |
| 278 | ac_includes_default="\ |
| 279 | #include <stdio.h> |
| 280 | #if HAVE_SYS_TYPES_H |
| 281 | # include <sys/types.h> |
| 282 | #endif |
| 283 | #if HAVE_SYS_STAT_H |
| 284 | # include <sys/stat.h> |
| 285 | #endif |
| 286 | #if STDC_HEADERS |
| 287 | # include <stdlib.h> |
| 288 | # include <stddef.h> |
| 289 | #else |
| 290 | # if HAVE_STDLIB_H |
| 291 | # include <stdlib.h> |
| 292 | # endif |
| 293 | #endif |
| 294 | #if HAVE_STRING_H |
| 295 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 296 | # include <memory.h> |
| 297 | # endif |
| 298 | # include <string.h> |
| 299 | #endif |
| 300 | #if HAVE_STRINGS_H |
| 301 | # include <strings.h> |
| 302 | #endif |
| 303 | #if HAVE_INTTYPES_H |
| 304 | # include <inttypes.h> |
| 305 | #else |
| 306 | # if HAVE_STDINT_H |
| 307 | # include <stdint.h> |
| 308 | # endif |
| 309 | #endif |
| 310 | #if HAVE_UNISTD_H |
| 311 | # include <unistd.h> |
| 312 | #endif" |
| 313 | |
| 314 | 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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILING_FLAG CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS' |
| 315 | ac_subst_files='' |
| 316 | |
| 317 | # Initialize some variables set by options. |
| 318 | ac_init_help= |
| 319 | ac_init_version=false |
| 320 | # The variables have the same names as the options, with |
| 321 | # dashes changed to underlines. |
| 322 | cache_file=/dev/null |
| 323 | exec_prefix=NONE |
| 324 | no_create= |
| 325 | no_recursion= |
| 326 | prefix=NONE |
| 327 | program_prefix=NONE |
| 328 | program_suffix=NONE |
| 329 | program_transform_name=s,x,x, |
| 330 | silent= |
| 331 | site= |
| 332 | srcdir= |
| 333 | verbose= |
| 334 | x_includes=NONE |
| 335 | x_libraries=NONE |
| 336 | |
| 337 | # Installation directory options. |
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 339 | # and all the variables that are supposed to be based on exec_prefix |
| 340 | # by default will actually change. |
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 342 | bindir='${exec_prefix}/bin' |
| 343 | sbindir='${exec_prefix}/sbin' |
| 344 | libexecdir='${exec_prefix}/libexec' |
| 345 | datadir='${prefix}/share' |
| 346 | sysconfdir='${prefix}/etc' |
| 347 | sharedstatedir='${prefix}/com' |
| 348 | localstatedir='${prefix}/var' |
| 349 | libdir='${exec_prefix}/lib' |
| 350 | includedir='${prefix}/include' |
| 351 | oldincludedir='/usr/include' |
| 352 | infodir='${prefix}/info' |
| 353 | mandir='${prefix}/man' |
| 354 | |
| 355 | ac_prev= |
| 356 | for ac_option |
| 357 | do |
| 358 | # If the previous option needs an argument, assign it. |
| 359 | if test -n "$ac_prev"; then |
| 360 | eval "$ac_prev=\$ac_option" |
| 361 | ac_prev= |
| 362 | continue |
| 363 | fi |
| 364 | |
| 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 366 | |
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 368 | |
| 369 | case $ac_option in |
| 370 | |
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 372 | ac_prev=bindir ;; |
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 374 | bindir=$ac_optarg ;; |
| 375 | |
| 376 | -build | --build | --buil | --bui | --bu) |
| 377 | ac_prev=build_alias ;; |
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 379 | build_alias=$ac_optarg ;; |
| 380 | |
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 383 | ac_prev=cache_file ;; |
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 386 | cache_file=$ac_optarg ;; |
| 387 | |
| 388 | --config-cache | -C) |
| 389 | cache_file=config.cache ;; |
| 390 | |
| 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 392 | ac_prev=datadir ;; |
| 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 394 | | --da=*) |
| 395 | datadir=$ac_optarg ;; |
| 396 | |
| 397 | -disable-* | --disable-*) |
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 399 | # Reject names that are not valid shell variable names. |
| 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 402 | { (exit 1); exit 1; }; } |
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 404 | eval "enable_$ac_feature=no" ;; |
| 405 | |
| 406 | -enable-* | --enable-*) |
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 408 | # Reject names that are not valid shell variable names. |
| 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 411 | { (exit 1); exit 1; }; } |
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 413 | case $ac_option in |
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 415 | *) ac_optarg=yes ;; |
| 416 | esac |
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 418 | |
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 421 | | --exec | --exe | --ex) |
| 422 | ac_prev=exec_prefix ;; |
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 425 | | --exec=* | --exe=* | --ex=*) |
| 426 | exec_prefix=$ac_optarg ;; |
| 427 | |
| 428 | -gas | --gas | --ga | --g) |
| 429 | # Obsolete; use --with-gas. |
| 430 | with_gas=yes ;; |
| 431 | |
| 432 | -help | --help | --hel | --he | -h) |
| 433 | ac_init_help=long ;; |
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 435 | ac_init_help=recursive ;; |
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 437 | ac_init_help=short ;; |
| 438 | |
| 439 | -host | --host | --hos | --ho) |
| 440 | ac_prev=host_alias ;; |
| 441 | -host=* | --host=* | --hos=* | --ho=*) |
| 442 | host_alias=$ac_optarg ;; |
| 443 | |
| 444 | -includedir | --includedir | --includedi | --included | --include \ |
| 445 | | --includ | --inclu | --incl | --inc) |
| 446 | ac_prev=includedir ;; |
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 449 | includedir=$ac_optarg ;; |
| 450 | |
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 452 | ac_prev=infodir ;; |
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 454 | infodir=$ac_optarg ;; |
| 455 | |
| 456 | -libdir | --libdir | --libdi | --libd) |
| 457 | ac_prev=libdir ;; |
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 459 | libdir=$ac_optarg ;; |
| 460 | |
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 462 | | --libexe | --libex | --libe) |
| 463 | ac_prev=libexecdir ;; |
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 465 | | --libexe=* | --libex=* | --libe=*) |
| 466 | libexecdir=$ac_optarg ;; |
| 467 | |
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 469 | | --localstate | --localstat | --localsta | --localst \ |
| 470 | | --locals | --local | --loca | --loc | --lo) |
| 471 | ac_prev=localstatedir ;; |
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 475 | localstatedir=$ac_optarg ;; |
| 476 | |
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 478 | ac_prev=mandir ;; |
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 480 | mandir=$ac_optarg ;; |
| 481 | |
| 482 | -nfp | --nfp | --nf) |
| 483 | # Obsolete; use --without-fp. |
| 484 | with_fp=no ;; |
| 485 | |
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 487 | | --no-cr | --no-c | -n) |
| 488 | no_create=yes ;; |
| 489 | |
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 492 | no_recursion=yes ;; |
| 493 | |
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 496 | | --oldin | --oldi | --old | --ol | --o) |
| 497 | ac_prev=oldincludedir ;; |
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 501 | oldincludedir=$ac_optarg ;; |
| 502 | |
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 504 | ac_prev=prefix ;; |
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 506 | prefix=$ac_optarg ;; |
| 507 | |
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 509 | | --program-pre | --program-pr | --program-p) |
| 510 | ac_prev=program_prefix ;; |
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 513 | program_prefix=$ac_optarg ;; |
| 514 | |
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 516 | | --program-suf | --program-su | --program-s) |
| 517 | ac_prev=program_suffix ;; |
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 520 | program_suffix=$ac_optarg ;; |
| 521 | |
| 522 | -program-transform-name | --program-transform-name \ |
| 523 | | --program-transform-nam | --program-transform-na \ |
| 524 | | --program-transform-n | --program-transform- \ |
| 525 | | --program-transform | --program-transfor \ |
| 526 | | --program-transfo | --program-transf \ |
| 527 | | --program-trans | --program-tran \ |
| 528 | | --progr-tra | --program-tr | --program-t) |
| 529 | ac_prev=program_transform_name ;; |
| 530 | -program-transform-name=* | --program-transform-name=* \ |
| 531 | | --program-transform-nam=* | --program-transform-na=* \ |
| 532 | | --program-transform-n=* | --program-transform-=* \ |
| 533 | | --program-transform=* | --program-transfor=* \ |
| 534 | | --program-transfo=* | --program-transf=* \ |
| 535 | | --program-trans=* | --program-tran=* \ |
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 537 | program_transform_name=$ac_optarg ;; |
| 538 | |
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 540 | | -silent | --silent | --silen | --sile | --sil) |
| 541 | silent=yes ;; |
| 542 | |
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 544 | ac_prev=sbindir ;; |
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 546 | | --sbi=* | --sb=*) |
| 547 | sbindir=$ac_optarg ;; |
| 548 | |
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 551 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 552 | | --sha | --sh) |
| 553 | ac_prev=sharedstatedir ;; |
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 557 | | --sha=* | --sh=*) |
| 558 | sharedstatedir=$ac_optarg ;; |
| 559 | |
| 560 | -site | --site | --sit) |
| 561 | ac_prev=site ;; |
| 562 | -site=* | --site=* | --sit=*) |
| 563 | site=$ac_optarg ;; |
| 564 | |
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 566 | ac_prev=srcdir ;; |
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 568 | srcdir=$ac_optarg ;; |
| 569 | |
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 571 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 572 | ac_prev=sysconfdir ;; |
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 575 | sysconfdir=$ac_optarg ;; |
| 576 | |
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 578 | ac_prev=target_alias ;; |
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 580 | target_alias=$ac_optarg ;; |
| 581 | |
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 583 | verbose=yes ;; |
| 584 | |
| 585 | -version | --version | --versio | --versi | --vers | -V) |
| 586 | ac_init_version=: ;; |
| 587 | |
| 588 | -with-* | --with-*) |
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 590 | # Reject names that are not valid shell variable names. |
| 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 593 | { (exit 1); exit 1; }; } |
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 595 | case $ac_option in |
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 597 | *) ac_optarg=yes ;; |
| 598 | esac |
| 599 | eval "with_$ac_package='$ac_optarg'" ;; |
| 600 | |
| 601 | -without-* | --without-*) |
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 603 | # Reject names that are not valid shell variable names. |
| 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 606 | { (exit 1); exit 1; }; } |
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 608 | eval "with_$ac_package=no" ;; |
| 609 | |
| 610 | --x) |
| 611 | # Obsolete; use --with-x. |
| 612 | with_x=yes ;; |
| 613 | |
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 615 | | --x-incl | --x-inc | --x-in | --x-i) |
| 616 | ac_prev=x_includes ;; |
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 619 | x_includes=$ac_optarg ;; |
| 620 | |
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 623 | ac_prev=x_libraries ;; |
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 626 | x_libraries=$ac_optarg ;; |
| 627 | |
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 629 | Try \`$0 --help' for more information." >&2 |
| 630 | { (exit 1); exit 1; }; } |
| 631 | ;; |
| 632 | |
| 633 | *=*) |
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 635 | # Reject names that are not valid shell variable names. |
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 638 | { (exit 1); exit 1; }; } |
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 640 | eval "$ac_envvar='$ac_optarg'" |
| 641 | export $ac_envvar ;; |
| 642 | |
| 643 | *) |
| 644 | # FIXME: should be removed in autoconf 3.0. |
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 649 | ;; |
| 650 | |
| 651 | esac |
| 652 | done |
| 653 | |
| 654 | if test -n "$ac_prev"; then |
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 657 | { (exit 1); exit 1; }; } |
| 658 | fi |
| 659 | |
| 660 | # Be sure to have absolute paths. |
| 661 | for ac_var in exec_prefix prefix |
| 662 | do |
| 663 | eval ac_val=$`echo $ac_var` |
| 664 | case $ac_val in |
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 667 | { (exit 1); exit 1; }; };; |
| 668 | esac |
| 669 | done |
| 670 | |
| 671 | # Be sure to have absolute paths. |
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 673 | localstatedir libdir includedir oldincludedir infodir mandir |
| 674 | do |
| 675 | eval ac_val=$`echo $ac_var` |
| 676 | case $ac_val in |
| 677 | [\\/$]* | ?:[\\/]* ) ;; |
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 679 | { (exit 1); exit 1; }; };; |
| 680 | esac |
| 681 | done |
| 682 | |
| 683 | # There might be people who depend on the old broken behavior: `$host' |
| 684 | # used to hold the argument of --host etc. |
| 685 | # FIXME: To remove some day. |
| 686 | build=$build_alias |
| 687 | host=$host_alias |
| 688 | target=$target_alias |
| 689 | |
| 690 | # FIXME: To remove some day. |
| 691 | if test "x$host_alias" != x; then |
| 692 | if test "x$build_alias" = x; then |
| 693 | cross_compiling=maybe |
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 696 | elif test "x$build_alias" != "x$host_alias"; then |
| 697 | cross_compiling=yes |
| 698 | fi |
| 699 | fi |
| 700 | |
| 701 | ac_tool_prefix= |
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 703 | |
| 704 | test "$silent" = yes && exec 6>/dev/null |
| 705 | |
| 706 | |
| 707 | # Find the source files, if location was not specified. |
| 708 | if test -z "$srcdir"; then |
| 709 | ac_srcdir_defaulted=yes |
| 710 | # Try the directory containing this script, then its parent. |
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 713 | X"$0" : 'X\(//\)[^/]' \| \ |
| 714 | X"$0" : 'X\(//\)$' \| \ |
| 715 | X"$0" : 'X\(/\)' \| \ |
| 716 | . : '\(.\)' 2>/dev/null || |
| 717 | echo X"$0" | |
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 720 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 721 | /^X\(\/\).*/{ s//\1/; q; } |
| 722 | s/.*/./; q'` |
| 723 | srcdir=$ac_confdir |
| 724 | if test ! -r $srcdir/$ac_unique_file; then |
| 725 | srcdir=.. |
| 726 | fi |
| 727 | else |
| 728 | ac_srcdir_defaulted=no |
| 729 | fi |
| 730 | if test ! -r $srcdir/$ac_unique_file; then |
| 731 | if test "$ac_srcdir_defaulted" = yes; then |
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 733 | { (exit 1); exit 1; }; } |
| 734 | else |
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 736 | { (exit 1); exit 1; }; } |
| 737 | fi |
| 738 | fi |
| 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 741 | { (exit 1); exit 1; }; } |
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 743 | ac_env_build_alias_set=${build_alias+set} |
| 744 | ac_env_build_alias_value=$build_alias |
| 745 | ac_cv_env_build_alias_set=${build_alias+set} |
| 746 | ac_cv_env_build_alias_value=$build_alias |
| 747 | ac_env_host_alias_set=${host_alias+set} |
| 748 | ac_env_host_alias_value=$host_alias |
| 749 | ac_cv_env_host_alias_set=${host_alias+set} |
| 750 | ac_cv_env_host_alias_value=$host_alias |
| 751 | ac_env_target_alias_set=${target_alias+set} |
| 752 | ac_env_target_alias_value=$target_alias |
| 753 | ac_cv_env_target_alias_set=${target_alias+set} |
| 754 | ac_cv_env_target_alias_value=$target_alias |
| 755 | ac_env_CC_set=${CC+set} |
| 756 | ac_env_CC_value=$CC |
| 757 | ac_cv_env_CC_set=${CC+set} |
| 758 | ac_cv_env_CC_value=$CC |
| 759 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_env_CFLAGS_value=$CFLAGS |
| 761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 762 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 771 | ac_env_CPP_set=${CPP+set} |
| 772 | ac_env_CPP_value=$CPP |
| 773 | ac_cv_env_CPP_set=${CPP+set} |
| 774 | ac_cv_env_CPP_value=$CPP |
| 775 | |
| 776 | # |
| 777 | # Report the --help message. |
| 778 | # |
| 779 | if test "$ac_init_help" = "long"; then |
| 780 | # Omit some internal or obsolete options to make the list less imposing. |
| 781 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 782 | cat <<_ACEOF |
| 783 | \`configure' configures readline 4.3 to adapt to many kinds of systems. |
| 784 | |
| 785 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 786 | |
| 787 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 788 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 789 | |
| 790 | Defaults for the options are specified in brackets. |
| 791 | |
| 792 | Configuration: |
| 793 | -h, --help display this help and exit |
| 794 | --help=short display options specific to this package |
| 795 | --help=recursive display the short help of all the included packages |
| 796 | -V, --version display version information and exit |
| 797 | -q, --quiet, --silent do not print \`checking...' messages |
| 798 | --cache-file=FILE cache test results in FILE [disabled] |
| 799 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 800 | -n, --no-create do not create output files |
| 801 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 802 | |
| 803 | _ACEOF |
| 804 | |
| 805 | cat <<_ACEOF |
| 806 | Installation directories: |
| 807 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 808 | [$ac_default_prefix] |
| 809 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 810 | [PREFIX] |
| 811 | |
| 812 | By default, \`make install' will install all the files in |
| 813 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 814 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 815 | for instance \`--prefix=\$HOME'. |
| 816 | |
| 817 | For better control, use the options below. |
| 818 | |
| 819 | Fine tuning of the installation directories: |
| 820 | --bindir=DIR user executables [EPREFIX/bin] |
| 821 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 822 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 823 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 824 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 825 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 826 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 827 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 828 | --includedir=DIR C header files [PREFIX/include] |
| 829 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 830 | --infodir=DIR info documentation [PREFIX/info] |
| 831 | --mandir=DIR man documentation [PREFIX/man] |
| 832 | _ACEOF |
| 833 | |
| 834 | cat <<\_ACEOF |
| 835 | |
| 836 | System types: |
| 837 | --build=BUILD configure for building on BUILD [guessed] |
| 838 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 839 | _ACEOF |
| 840 | fi |
| 841 | |
| 842 | if test -n "$ac_init_help"; then |
| 843 | case $ac_init_help in |
| 844 | short | recursive ) echo "Configuration of readline 4.3:";; |
| 845 | esac |
| 846 | cat <<\_ACEOF |
| 847 | |
| 848 | Optional Features: |
| 849 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 850 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 851 | --enable-static build static libraries [default=YES] |
| 852 | |
| 853 | Optional Packages: |
| 854 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 855 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 856 | --with-curses use the curses library instead of the termcap |
| 857 | library |
| 858 | |
| 859 | Some influential environment variables: |
| 860 | CC C compiler command |
| 861 | CFLAGS C compiler flags |
| 862 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 863 | nonstandard directory <lib dir> |
| 864 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 865 | headers in a nonstandard directory <include dir> |
| 866 | CPP C preprocessor |
| 867 | |
| 868 | Use these variables to override the choices made by `configure' or to help |
| 869 | it to find libraries and programs with nonstandard names/locations. |
| 870 | |
| 871 | Report bugs to <bug-readline@gnu.org>. |
| 872 | _ACEOF |
| 873 | fi |
| 874 | |
| 875 | if test "$ac_init_help" = "recursive"; then |
| 876 | # If there are subdirs, report their specific --help. |
| 877 | ac_popdir=`pwd` |
| 878 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 879 | test -d $ac_dir || continue |
| 880 | ac_builddir=. |
| 881 | |
| 882 | if test "$ac_dir" != .; then |
| 883 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 884 | # A "../" for each directory in $ac_dir_suffix. |
| 885 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 886 | else |
| 887 | ac_dir_suffix= ac_top_builddir= |
| 888 | fi |
| 889 | |
| 890 | case $srcdir in |
| 891 | .) # No --srcdir option. We are building in place. |
| 892 | ac_srcdir=. |
| 893 | if test -z "$ac_top_builddir"; then |
| 894 | ac_top_srcdir=. |
| 895 | else |
| 896 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 897 | fi ;; |
| 898 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 899 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 900 | ac_top_srcdir=$srcdir ;; |
| 901 | *) # Relative path. |
| 902 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 903 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 904 | esac |
| 905 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 906 | # absolute. |
| 907 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 908 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 909 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 910 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 911 | |
| 912 | cd $ac_dir |
| 913 | # Check for guested configure; otherwise get Cygnus style configure. |
| 914 | if test -f $ac_srcdir/configure.gnu; then |
| 915 | echo |
| 916 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 917 | elif test -f $ac_srcdir/configure; then |
| 918 | echo |
| 919 | $SHELL $ac_srcdir/configure --help=recursive |
| 920 | elif test -f $ac_srcdir/configure.ac || |
| 921 | test -f $ac_srcdir/configure.in; then |
| 922 | echo |
| 923 | $ac_configure --help |
| 924 | else |
| 925 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 926 | fi |
| 927 | cd $ac_popdir |
| 928 | done |
| 929 | fi |
| 930 | |
| 931 | test -n "$ac_init_help" && exit 0 |
| 932 | if $ac_init_version; then |
| 933 | cat <<\_ACEOF |
| 934 | readline configure 4.3 |
| 935 | generated by GNU Autoconf 2.57 |
| 936 | |
| 937 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 938 | Free Software Foundation, Inc. |
| 939 | This configure script is free software; the Free Software Foundation |
| 940 | gives unlimited permission to copy, distribute and modify it. |
| 941 | _ACEOF |
| 942 | exit 0 |
| 943 | fi |
| 944 | exec 5>config.log |
| 945 | cat >&5 <<_ACEOF |
| 946 | This file contains any messages produced by compilers while |
| 947 | running configure, to aid debugging if configure makes a mistake. |
| 948 | |
| 949 | It was created by readline $as_me 4.3, which was |
| 950 | generated by GNU Autoconf 2.57. Invocation command line was |
| 951 | |
| 952 | $ $0 $@ |
| 953 | |
| 954 | _ACEOF |
| 955 | { |
| 956 | cat <<_ASUNAME |
| 957 | ## --------- ## |
| 958 | ## Platform. ## |
| 959 | ## --------- ## |
| 960 | |
| 961 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 962 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 963 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 964 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 965 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 966 | |
| 967 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 968 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 969 | |
| 970 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 971 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 972 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 973 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 974 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 975 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 976 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 977 | |
| 978 | _ASUNAME |
| 979 | |
| 980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 981 | for as_dir in $PATH |
| 982 | do |
| 983 | IFS=$as_save_IFS |
| 984 | test -z "$as_dir" && as_dir=. |
| 985 | echo "PATH: $as_dir" |
| 986 | done |
| 987 | |
| 988 | } >&5 |
| 989 | |
| 990 | cat >&5 <<_ACEOF |
| 991 | |
| 992 | |
| 993 | ## ----------- ## |
| 994 | ## Core tests. ## |
| 995 | ## ----------- ## |
| 996 | |
| 997 | _ACEOF |
| 998 | |
| 999 | |
| 1000 | # Keep a trace of the command line. |
| 1001 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1002 | # Strip out --silent because we don't want to record it for future runs. |
| 1003 | # Also quote any args containing shell meta-characters. |
| 1004 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1005 | ac_configure_args= |
| 1006 | ac_configure_args0= |
| 1007 | ac_configure_args1= |
| 1008 | ac_sep= |
| 1009 | ac_must_keep_next=false |
| 1010 | for ac_pass in 1 2 |
| 1011 | do |
| 1012 | for ac_arg |
| 1013 | do |
| 1014 | case $ac_arg in |
| 1015 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1016 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1017 | | -silent | --silent | --silen | --sile | --sil) |
| 1018 | continue ;; |
| 1019 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1020 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1021 | esac |
| 1022 | case $ac_pass in |
| 1023 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1024 | 2) |
| 1025 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1026 | if test $ac_must_keep_next = true; then |
| 1027 | ac_must_keep_next=false # Got value, back to normal. |
| 1028 | else |
| 1029 | case $ac_arg in |
| 1030 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1031 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1032 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1033 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1034 | case "$ac_configure_args0 " in |
| 1035 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1036 | esac |
| 1037 | ;; |
| 1038 | -* ) ac_must_keep_next=true ;; |
| 1039 | esac |
| 1040 | fi |
| 1041 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1042 | # Get rid of the leading space. |
| 1043 | ac_sep=" " |
| 1044 | ;; |
| 1045 | esac |
| 1046 | done |
| 1047 | done |
| 1048 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1049 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1050 | |
| 1051 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1052 | # config.log. We remove comments because anyway the quotes in there |
| 1053 | # would cause problems or look ugly. |
| 1054 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1055 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1056 | trap 'exit_status=$? |
| 1057 | # Save into config.log some information that might help in debugging. |
| 1058 | { |
| 1059 | echo |
| 1060 | |
| 1061 | cat <<\_ASBOX |
| 1062 | ## ---------------- ## |
| 1063 | ## Cache variables. ## |
| 1064 | ## ---------------- ## |
| 1065 | _ASBOX |
| 1066 | echo |
| 1067 | # The following way of writing the cache mishandles newlines in values, |
| 1068 | { |
| 1069 | (set) 2>&1 | |
| 1070 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1071 | *ac_space=\ *) |
| 1072 | sed -n \ |
| 1073 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1074 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1075 | ;; |
| 1076 | *) |
| 1077 | sed -n \ |
| 1078 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1079 | ;; |
| 1080 | esac; |
| 1081 | } |
| 1082 | echo |
| 1083 | |
| 1084 | cat <<\_ASBOX |
| 1085 | ## ----------------- ## |
| 1086 | ## Output variables. ## |
| 1087 | ## ----------------- ## |
| 1088 | _ASBOX |
| 1089 | echo |
| 1090 | for ac_var in $ac_subst_vars |
| 1091 | do |
| 1092 | eval ac_val=$`echo $ac_var` |
| 1093 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1094 | done | sort |
| 1095 | echo |
| 1096 | |
| 1097 | if test -n "$ac_subst_files"; then |
| 1098 | cat <<\_ASBOX |
| 1099 | ## ------------- ## |
| 1100 | ## Output files. ## |
| 1101 | ## ------------- ## |
| 1102 | _ASBOX |
| 1103 | echo |
| 1104 | for ac_var in $ac_subst_files |
| 1105 | do |
| 1106 | eval ac_val=$`echo $ac_var` |
| 1107 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1108 | done | sort |
| 1109 | echo |
| 1110 | fi |
| 1111 | |
| 1112 | if test -s confdefs.h; then |
| 1113 | cat <<\_ASBOX |
| 1114 | ## ----------- ## |
| 1115 | ## confdefs.h. ## |
| 1116 | ## ----------- ## |
| 1117 | _ASBOX |
| 1118 | echo |
| 1119 | sed "/^$/d" confdefs.h | sort |
| 1120 | echo |
| 1121 | fi |
| 1122 | test "$ac_signal" != 0 && |
| 1123 | echo "$as_me: caught signal $ac_signal" |
| 1124 | echo "$as_me: exit $exit_status" |
| 1125 | } >&5 |
| 1126 | rm -f core core.* *.core && |
| 1127 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1128 | exit $exit_status |
| 1129 | ' 0 |
| 1130 | for ac_signal in 1 2 13 15; do |
| 1131 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1132 | done |
| 1133 | ac_signal=0 |
| 1134 | |
| 1135 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1136 | rm -rf conftest* confdefs.h |
| 1137 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1138 | echo >confdefs.h |
| 1139 | |
| 1140 | # Predefined preprocessor variables. |
| 1141 | |
| 1142 | cat >>confdefs.h <<_ACEOF |
| 1143 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1144 | _ACEOF |
| 1145 | |
| 1146 | |
| 1147 | cat >>confdefs.h <<_ACEOF |
| 1148 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1149 | _ACEOF |
| 1150 | |
| 1151 | |
| 1152 | cat >>confdefs.h <<_ACEOF |
| 1153 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1154 | _ACEOF |
| 1155 | |
| 1156 | |
| 1157 | cat >>confdefs.h <<_ACEOF |
| 1158 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1159 | _ACEOF |
| 1160 | |
| 1161 | |
| 1162 | cat >>confdefs.h <<_ACEOF |
| 1163 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1164 | _ACEOF |
| 1165 | |
| 1166 | |
| 1167 | # Let the site file select an alternate cache file if it wants to. |
| 1168 | # Prefer explicitly selected file to automatically selected ones. |
| 1169 | if test -z "$CONFIG_SITE"; then |
| 1170 | if test "x$prefix" != xNONE; then |
| 1171 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1172 | else |
| 1173 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1174 | fi |
| 1175 | fi |
| 1176 | for ac_site_file in $CONFIG_SITE; do |
| 1177 | if test -r "$ac_site_file"; then |
| 1178 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1179 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1180 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1181 | . "$ac_site_file" |
| 1182 | fi |
| 1183 | done |
| 1184 | |
| 1185 | if test -r "$cache_file"; then |
| 1186 | # Some versions of bash will fail to source /dev/null (special |
| 1187 | # files actually), so we avoid doing that. |
| 1188 | if test -f "$cache_file"; then |
| 1189 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1190 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1191 | case $cache_file in |
| 1192 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1193 | *) . ./$cache_file;; |
| 1194 | esac |
| 1195 | fi |
| 1196 | else |
| 1197 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1198 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1199 | >$cache_file |
| 1200 | fi |
| 1201 | |
| 1202 | # Check that the precious variables saved in the cache have kept the same |
| 1203 | # value. |
| 1204 | ac_cache_corrupted=false |
| 1205 | for ac_var in `(set) 2>&1 | |
| 1206 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1207 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1208 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1209 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1210 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1211 | case $ac_old_set,$ac_new_set in |
| 1212 | set,) |
| 1213 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1214 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1215 | ac_cache_corrupted=: ;; |
| 1216 | ,set) |
| 1217 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1218 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1219 | ac_cache_corrupted=: ;; |
| 1220 | ,);; |
| 1221 | *) |
| 1222 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1223 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1224 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1225 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1226 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1227 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1228 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1229 | ac_cache_corrupted=: |
| 1230 | fi;; |
| 1231 | esac |
| 1232 | # Pass precious variables to config.status. |
| 1233 | if test "$ac_new_set" = set; then |
| 1234 | case $ac_new_val in |
| 1235 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1236 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1237 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1238 | esac |
| 1239 | case " $ac_configure_args " in |
| 1240 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1241 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1242 | esac |
| 1243 | fi |
| 1244 | done |
| 1245 | if $ac_cache_corrupted; then |
| 1246 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1247 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1248 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1249 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1250 | { (exit 1); exit 1; }; } |
| 1251 | fi |
| 1252 | |
| 1253 | ac_ext=c |
| 1254 | ac_cpp='$CPP $CPPFLAGS' |
| 1255 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1256 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1257 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1258 | |
| 1259 | |
| 1260 | |
| 1261 | |
| 1262 | |
| 1263 | |
| 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | |
| 1279 | |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | |
| 1284 | |
| 1285 | |
| 1286 | |
| 1287 | |
| 1288 | |
| 1289 | ac_config_headers="$ac_config_headers config.h" |
| 1290 | |
| 1291 | |
| 1292 | LIBVERSION=4.3 |
| 1293 | |
| 1294 | ac_aux_dir= |
| 1295 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1296 | if test -f $ac_dir/install-sh; then |
| 1297 | ac_aux_dir=$ac_dir |
| 1298 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1299 | break |
| 1300 | elif test -f $ac_dir/install.sh; then |
| 1301 | ac_aux_dir=$ac_dir |
| 1302 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1303 | break |
| 1304 | elif test -f $ac_dir/shtool; then |
| 1305 | ac_aux_dir=$ac_dir |
| 1306 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1307 | break |
| 1308 | fi |
| 1309 | done |
| 1310 | if test -z "$ac_aux_dir"; then |
| 1311 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1312 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1313 | { (exit 1); exit 1; }; } |
| 1314 | fi |
| 1315 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1316 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1317 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1318 | |
| 1319 | # Make sure we can run config.sub. |
| 1320 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1321 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1322 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1323 | { (exit 1); exit 1; }; } |
| 1324 | |
| 1325 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1326 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1327 | if test "${ac_cv_build+set}" = set; then |
| 1328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1329 | else |
| 1330 | ac_cv_build_alias=$build_alias |
| 1331 | test -z "$ac_cv_build_alias" && |
| 1332 | ac_cv_build_alias=`$ac_config_guess` |
| 1333 | test -z "$ac_cv_build_alias" && |
| 1334 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1335 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1336 | { (exit 1); exit 1; }; } |
| 1337 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1338 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1339 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1340 | { (exit 1); exit 1; }; } |
| 1341 | |
| 1342 | fi |
| 1343 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1344 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1345 | build=$ac_cv_build |
| 1346 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1347 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1348 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1349 | |
| 1350 | |
| 1351 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1352 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1353 | if test "${ac_cv_host+set}" = set; then |
| 1354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1355 | else |
| 1356 | ac_cv_host_alias=$host_alias |
| 1357 | test -z "$ac_cv_host_alias" && |
| 1358 | ac_cv_host_alias=$ac_cv_build_alias |
| 1359 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1360 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1361 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1362 | { (exit 1); exit 1; }; } |
| 1363 | |
| 1364 | fi |
| 1365 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1366 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1367 | host=$ac_cv_host |
| 1368 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1369 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1370 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1371 | |
| 1372 | |
| 1373 | |
| 1374 | opt_curses=no |
| 1375 | |
| 1376 | |
| 1377 | # Check whether --with-curses or --without-curses was given. |
| 1378 | if test "${with_curses+set}" = set; then |
| 1379 | withval="$with_curses" |
| 1380 | opt_curses=$withval |
| 1381 | fi; |
| 1382 | |
| 1383 | if test "$opt_curses" = "yes"; then |
| 1384 | prefer_curses=yes |
| 1385 | fi |
| 1386 | |
| 1387 | opt_static_libs=yes |
| 1388 | opt_shared_libs=no |
| 1389 | |
| 1390 | # Check whether --enable-static or --disable-static was given. |
| 1391 | if test "${enable_static+set}" = set; then |
| 1392 | enableval="$enable_static" |
| 1393 | opt_static_libs=$enableval |
| 1394 | fi; |
| 1395 | |
| 1396 | echo "" |
| 1397 | echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" |
| 1398 | echo "" |
| 1399 | |
| 1400 | # We want these before the checks, so the checks can modify their values. |
| 1401 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 |
| 1402 | |
| 1403 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1404 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1405 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1406 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1408 | else |
| 1409 | cat >conftest.make <<\_ACEOF |
| 1410 | all: |
| 1411 | @echo 'ac_maketemp="$(MAKE)"' |
| 1412 | _ACEOF |
| 1413 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1414 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1415 | if test -n "$ac_maketemp"; then |
| 1416 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1417 | else |
| 1418 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1419 | fi |
| 1420 | rm -f conftest.make |
| 1421 | fi |
| 1422 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1423 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1424 | echo "${ECHO_T}yes" >&6 |
| 1425 | SET_MAKE= |
| 1426 | else |
| 1427 | echo "$as_me:$LINENO: result: no" >&5 |
| 1428 | echo "${ECHO_T}no" >&6 |
| 1429 | SET_MAKE="MAKE=${MAKE-make}" |
| 1430 | fi |
| 1431 | |
| 1432 | ac_ext=c |
| 1433 | ac_cpp='$CPP $CPPFLAGS' |
| 1434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1437 | if test -n "$ac_tool_prefix"; then |
| 1438 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1439 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1442 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1443 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1444 | else |
| 1445 | if test -n "$CC"; then |
| 1446 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1447 | else |
| 1448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1449 | for as_dir in $PATH |
| 1450 | do |
| 1451 | IFS=$as_save_IFS |
| 1452 | test -z "$as_dir" && as_dir=. |
| 1453 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1455 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1457 | break 2 |
| 1458 | fi |
| 1459 | done |
| 1460 | done |
| 1461 | |
| 1462 | fi |
| 1463 | fi |
| 1464 | CC=$ac_cv_prog_CC |
| 1465 | if test -n "$CC"; then |
| 1466 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1467 | echo "${ECHO_T}$CC" >&6 |
| 1468 | else |
| 1469 | echo "$as_me:$LINENO: result: no" >&5 |
| 1470 | echo "${ECHO_T}no" >&6 |
| 1471 | fi |
| 1472 | |
| 1473 | fi |
| 1474 | if test -z "$ac_cv_prog_CC"; then |
| 1475 | ac_ct_CC=$CC |
| 1476 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1477 | set dummy gcc; ac_word=$2 |
| 1478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1480 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1482 | else |
| 1483 | if test -n "$ac_ct_CC"; then |
| 1484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1485 | else |
| 1486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1487 | for as_dir in $PATH |
| 1488 | do |
| 1489 | IFS=$as_save_IFS |
| 1490 | test -z "$as_dir" && as_dir=. |
| 1491 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1493 | ac_cv_prog_ac_ct_CC="gcc" |
| 1494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1495 | break 2 |
| 1496 | fi |
| 1497 | done |
| 1498 | done |
| 1499 | |
| 1500 | fi |
| 1501 | fi |
| 1502 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1503 | if test -n "$ac_ct_CC"; then |
| 1504 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1505 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1506 | else |
| 1507 | echo "$as_me:$LINENO: result: no" >&5 |
| 1508 | echo "${ECHO_T}no" >&6 |
| 1509 | fi |
| 1510 | |
| 1511 | CC=$ac_ct_CC |
| 1512 | else |
| 1513 | CC="$ac_cv_prog_CC" |
| 1514 | fi |
| 1515 | |
| 1516 | if test -z "$CC"; then |
| 1517 | if test -n "$ac_tool_prefix"; then |
| 1518 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1519 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1522 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1524 | else |
| 1525 | if test -n "$CC"; then |
| 1526 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1527 | else |
| 1528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1529 | for as_dir in $PATH |
| 1530 | do |
| 1531 | IFS=$as_save_IFS |
| 1532 | test -z "$as_dir" && as_dir=. |
| 1533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1535 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1537 | break 2 |
| 1538 | fi |
| 1539 | done |
| 1540 | done |
| 1541 | |
| 1542 | fi |
| 1543 | fi |
| 1544 | CC=$ac_cv_prog_CC |
| 1545 | if test -n "$CC"; then |
| 1546 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1547 | echo "${ECHO_T}$CC" >&6 |
| 1548 | else |
| 1549 | echo "$as_me:$LINENO: result: no" >&5 |
| 1550 | echo "${ECHO_T}no" >&6 |
| 1551 | fi |
| 1552 | |
| 1553 | fi |
| 1554 | if test -z "$ac_cv_prog_CC"; then |
| 1555 | ac_ct_CC=$CC |
| 1556 | # Extract the first word of "cc", so it can be a program name with args. |
| 1557 | set dummy cc; ac_word=$2 |
| 1558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1560 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1562 | else |
| 1563 | if test -n "$ac_ct_CC"; then |
| 1564 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1565 | else |
| 1566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1567 | for as_dir in $PATH |
| 1568 | do |
| 1569 | IFS=$as_save_IFS |
| 1570 | test -z "$as_dir" && as_dir=. |
| 1571 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1573 | ac_cv_prog_ac_ct_CC="cc" |
| 1574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1575 | break 2 |
| 1576 | fi |
| 1577 | done |
| 1578 | done |
| 1579 | |
| 1580 | fi |
| 1581 | fi |
| 1582 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1583 | if test -n "$ac_ct_CC"; then |
| 1584 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1585 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1586 | else |
| 1587 | echo "$as_me:$LINENO: result: no" >&5 |
| 1588 | echo "${ECHO_T}no" >&6 |
| 1589 | fi |
| 1590 | |
| 1591 | CC=$ac_ct_CC |
| 1592 | else |
| 1593 | CC="$ac_cv_prog_CC" |
| 1594 | fi |
| 1595 | |
| 1596 | fi |
| 1597 | if test -z "$CC"; then |
| 1598 | # Extract the first word of "cc", so it can be a program name with args. |
| 1599 | set dummy cc; ac_word=$2 |
| 1600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1602 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1604 | else |
| 1605 | if test -n "$CC"; then |
| 1606 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1607 | else |
| 1608 | ac_prog_rejected=no |
| 1609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1610 | for as_dir in $PATH |
| 1611 | do |
| 1612 | IFS=$as_save_IFS |
| 1613 | test -z "$as_dir" && as_dir=. |
| 1614 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1616 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1617 | ac_prog_rejected=yes |
| 1618 | continue |
| 1619 | fi |
| 1620 | ac_cv_prog_CC="cc" |
| 1621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1622 | break 2 |
| 1623 | fi |
| 1624 | done |
| 1625 | done |
| 1626 | |
| 1627 | if test $ac_prog_rejected = yes; then |
| 1628 | # We found a bogon in the path, so make sure we never use it. |
| 1629 | set dummy $ac_cv_prog_CC |
| 1630 | shift |
| 1631 | if test $# != 0; then |
| 1632 | # We chose a different compiler from the bogus one. |
| 1633 | # However, it has the same basename, so the bogon will be chosen |
| 1634 | # first if we set CC to just the basename; use the full file name. |
| 1635 | shift |
| 1636 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1637 | fi |
| 1638 | fi |
| 1639 | fi |
| 1640 | fi |
| 1641 | CC=$ac_cv_prog_CC |
| 1642 | if test -n "$CC"; then |
| 1643 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1644 | echo "${ECHO_T}$CC" >&6 |
| 1645 | else |
| 1646 | echo "$as_me:$LINENO: result: no" >&5 |
| 1647 | echo "${ECHO_T}no" >&6 |
| 1648 | fi |
| 1649 | |
| 1650 | fi |
| 1651 | if test -z "$CC"; then |
| 1652 | if test -n "$ac_tool_prefix"; then |
| 1653 | for ac_prog in cl |
| 1654 | do |
| 1655 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1656 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1659 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1661 | else |
| 1662 | if test -n "$CC"; then |
| 1663 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1664 | else |
| 1665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1666 | for as_dir in $PATH |
| 1667 | do |
| 1668 | IFS=$as_save_IFS |
| 1669 | test -z "$as_dir" && as_dir=. |
| 1670 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1672 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1674 | break 2 |
| 1675 | fi |
| 1676 | done |
| 1677 | done |
| 1678 | |
| 1679 | fi |
| 1680 | fi |
| 1681 | CC=$ac_cv_prog_CC |
| 1682 | if test -n "$CC"; then |
| 1683 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1684 | echo "${ECHO_T}$CC" >&6 |
| 1685 | else |
| 1686 | echo "$as_me:$LINENO: result: no" >&5 |
| 1687 | echo "${ECHO_T}no" >&6 |
| 1688 | fi |
| 1689 | |
| 1690 | test -n "$CC" && break |
| 1691 | done |
| 1692 | fi |
| 1693 | if test -z "$CC"; then |
| 1694 | ac_ct_CC=$CC |
| 1695 | for ac_prog in cl |
| 1696 | do |
| 1697 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1698 | set dummy $ac_prog; ac_word=$2 |
| 1699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1701 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1703 | else |
| 1704 | if test -n "$ac_ct_CC"; then |
| 1705 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1706 | else |
| 1707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1708 | for as_dir in $PATH |
| 1709 | do |
| 1710 | IFS=$as_save_IFS |
| 1711 | test -z "$as_dir" && as_dir=. |
| 1712 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1713 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1714 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1716 | break 2 |
| 1717 | fi |
| 1718 | done |
| 1719 | done |
| 1720 | |
| 1721 | fi |
| 1722 | fi |
| 1723 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1724 | if test -n "$ac_ct_CC"; then |
| 1725 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1726 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1727 | else |
| 1728 | echo "$as_me:$LINENO: result: no" >&5 |
| 1729 | echo "${ECHO_T}no" >&6 |
| 1730 | fi |
| 1731 | |
| 1732 | test -n "$ac_ct_CC" && break |
| 1733 | done |
| 1734 | |
| 1735 | CC=$ac_ct_CC |
| 1736 | fi |
| 1737 | |
| 1738 | fi |
| 1739 | |
| 1740 | |
| 1741 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1742 | See \`config.log' for more details." >&5 |
| 1743 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1744 | See \`config.log' for more details." >&2;} |
| 1745 | { (exit 1); exit 1; }; } |
| 1746 | |
| 1747 | # Provide some information about the compiler. |
| 1748 | echo "$as_me:$LINENO:" \ |
| 1749 | "checking for C compiler version" >&5 |
| 1750 | ac_compiler=`set X $ac_compile; echo $2` |
| 1751 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1752 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1753 | ac_status=$? |
| 1754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1755 | (exit $ac_status); } |
| 1756 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1757 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1758 | ac_status=$? |
| 1759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1760 | (exit $ac_status); } |
| 1761 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1762 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1763 | ac_status=$? |
| 1764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1765 | (exit $ac_status); } |
| 1766 | |
| 1767 | cat >conftest.$ac_ext <<_ACEOF |
| 1768 | #line $LINENO "configure" |
| 1769 | /* confdefs.h. */ |
| 1770 | _ACEOF |
| 1771 | cat confdefs.h >>conftest.$ac_ext |
| 1772 | cat >>conftest.$ac_ext <<_ACEOF |
| 1773 | /* end confdefs.h. */ |
| 1774 | |
| 1775 | int |
| 1776 | main () |
| 1777 | { |
| 1778 | |
| 1779 | ; |
| 1780 | return 0; |
| 1781 | } |
| 1782 | _ACEOF |
| 1783 | ac_clean_files_save=$ac_clean_files |
| 1784 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1785 | # Try to create an executable without -o first, disregard a.out. |
| 1786 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1787 | # of exeext. |
| 1788 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1789 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1790 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1791 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1792 | (eval $ac_link_default) 2>&5 |
| 1793 | ac_status=$? |
| 1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1795 | (exit $ac_status); }; then |
| 1796 | # Find the output, starting from the most likely. This scheme is |
| 1797 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1798 | # resort. |
| 1799 | |
| 1800 | # Be careful to initialize this variable, since it used to be cached. |
| 1801 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1802 | ac_cv_exeext= |
| 1803 | # b.out is created by i960 compilers. |
| 1804 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1805 | do |
| 1806 | test -f "$ac_file" || continue |
| 1807 | case $ac_file in |
| 1808 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1809 | ;; |
| 1810 | conftest.$ac_ext ) |
| 1811 | # This is the source file. |
| 1812 | ;; |
| 1813 | [ab].out ) |
| 1814 | # We found the default executable, but exeext='' is most |
| 1815 | # certainly right. |
| 1816 | break;; |
| 1817 | *.* ) |
| 1818 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1819 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1820 | # but it would be cool to find out if it's true. Does anybody |
| 1821 | # maintain Libtool? --akim. |
| 1822 | export ac_cv_exeext |
| 1823 | break;; |
| 1824 | * ) |
| 1825 | break;; |
| 1826 | esac |
| 1827 | done |
| 1828 | else |
| 1829 | echo "$as_me: failed program was:" >&5 |
| 1830 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1831 | |
| 1832 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1833 | See \`config.log' for more details." >&5 |
| 1834 | echo "$as_me: error: C compiler cannot create executables |
| 1835 | See \`config.log' for more details." >&2;} |
| 1836 | { (exit 77); exit 77; }; } |
| 1837 | fi |
| 1838 | |
| 1839 | ac_exeext=$ac_cv_exeext |
| 1840 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1841 | echo "${ECHO_T}$ac_file" >&6 |
| 1842 | |
| 1843 | # Check the compiler produces executables we can run. If not, either |
| 1844 | # the compiler is broken, or we cross compile. |
| 1845 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1846 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1847 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1848 | # If not cross compiling, check that we can run a simple program. |
| 1849 | if test "$cross_compiling" != yes; then |
| 1850 | if { ac_try='./$ac_file' |
| 1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1852 | (eval $ac_try) 2>&5 |
| 1853 | ac_status=$? |
| 1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1855 | (exit $ac_status); }; }; then |
| 1856 | cross_compiling=no |
| 1857 | else |
| 1858 | if test "$cross_compiling" = maybe; then |
| 1859 | cross_compiling=yes |
| 1860 | else |
| 1861 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1862 | If you meant to cross compile, use \`--host'. |
| 1863 | See \`config.log' for more details." >&5 |
| 1864 | echo "$as_me: error: cannot run C compiled programs. |
| 1865 | If you meant to cross compile, use \`--host'. |
| 1866 | See \`config.log' for more details." >&2;} |
| 1867 | { (exit 1); exit 1; }; } |
| 1868 | fi |
| 1869 | fi |
| 1870 | fi |
| 1871 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1872 | echo "${ECHO_T}yes" >&6 |
| 1873 | |
| 1874 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1875 | ac_clean_files=$ac_clean_files_save |
| 1876 | # Check the compiler produces executables we can run. If not, either |
| 1877 | # the compiler is broken, or we cross compile. |
| 1878 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1879 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1880 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1881 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1882 | |
| 1883 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1884 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1886 | (eval $ac_link) 2>&5 |
| 1887 | ac_status=$? |
| 1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1889 | (exit $ac_status); }; then |
| 1890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1892 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1893 | # `rm'. |
| 1894 | for ac_file in conftest.exe conftest conftest.*; do |
| 1895 | test -f "$ac_file" || continue |
| 1896 | case $ac_file in |
| 1897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1899 | export ac_cv_exeext |
| 1900 | break;; |
| 1901 | * ) break;; |
| 1902 | esac |
| 1903 | done |
| 1904 | else |
| 1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1906 | See \`config.log' for more details." >&5 |
| 1907 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1908 | See \`config.log' for more details." >&2;} |
| 1909 | { (exit 1); exit 1; }; } |
| 1910 | fi |
| 1911 | |
| 1912 | rm -f conftest$ac_cv_exeext |
| 1913 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1914 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1915 | |
| 1916 | rm -f conftest.$ac_ext |
| 1917 | EXEEXT=$ac_cv_exeext |
| 1918 | ac_exeext=$EXEEXT |
| 1919 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1920 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1921 | if test "${ac_cv_objext+set}" = set; then |
| 1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1923 | else |
| 1924 | cat >conftest.$ac_ext <<_ACEOF |
| 1925 | #line $LINENO "configure" |
| 1926 | /* confdefs.h. */ |
| 1927 | _ACEOF |
| 1928 | cat confdefs.h >>conftest.$ac_ext |
| 1929 | cat >>conftest.$ac_ext <<_ACEOF |
| 1930 | /* end confdefs.h. */ |
| 1931 | |
| 1932 | int |
| 1933 | main () |
| 1934 | { |
| 1935 | |
| 1936 | ; |
| 1937 | return 0; |
| 1938 | } |
| 1939 | _ACEOF |
| 1940 | rm -f conftest.o conftest.obj |
| 1941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1942 | (eval $ac_compile) 2>&5 |
| 1943 | ac_status=$? |
| 1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1945 | (exit $ac_status); }; then |
| 1946 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1947 | case $ac_file in |
| 1948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1949 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1950 | break;; |
| 1951 | esac |
| 1952 | done |
| 1953 | else |
| 1954 | echo "$as_me: failed program was:" >&5 |
| 1955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1956 | |
| 1957 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1958 | See \`config.log' for more details." >&5 |
| 1959 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1960 | See \`config.log' for more details." >&2;} |
| 1961 | { (exit 1); exit 1; }; } |
| 1962 | fi |
| 1963 | |
| 1964 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1965 | fi |
| 1966 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1967 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1968 | OBJEXT=$ac_cv_objext |
| 1969 | ac_objext=$OBJEXT |
| 1970 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1971 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1972 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1974 | else |
| 1975 | cat >conftest.$ac_ext <<_ACEOF |
| 1976 | #line $LINENO "configure" |
| 1977 | /* confdefs.h. */ |
| 1978 | _ACEOF |
| 1979 | cat confdefs.h >>conftest.$ac_ext |
| 1980 | cat >>conftest.$ac_ext <<_ACEOF |
| 1981 | /* end confdefs.h. */ |
| 1982 | |
| 1983 | int |
| 1984 | main () |
| 1985 | { |
| 1986 | #ifndef __GNUC__ |
| 1987 | choke me |
| 1988 | #endif |
| 1989 | |
| 1990 | ; |
| 1991 | return 0; |
| 1992 | } |
| 1993 | _ACEOF |
| 1994 | rm -f conftest.$ac_objext |
| 1995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1996 | (eval $ac_compile) 2>&5 |
| 1997 | ac_status=$? |
| 1998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1999 | (exit $ac_status); } && |
| 2000 | { ac_try='test -s conftest.$ac_objext' |
| 2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2002 | (eval $ac_try) 2>&5 |
| 2003 | ac_status=$? |
| 2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2005 | (exit $ac_status); }; }; then |
| 2006 | ac_compiler_gnu=yes |
| 2007 | else |
| 2008 | echo "$as_me: failed program was:" >&5 |
| 2009 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2010 | |
| 2011 | ac_compiler_gnu=no |
| 2012 | fi |
| 2013 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2014 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2015 | |
| 2016 | fi |
| 2017 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2018 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2019 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2020 | ac_test_CFLAGS=${CFLAGS+set} |
| 2021 | ac_save_CFLAGS=$CFLAGS |
| 2022 | CFLAGS="-g" |
| 2023 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2024 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2025 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2027 | else |
| 2028 | cat >conftest.$ac_ext <<_ACEOF |
| 2029 | #line $LINENO "configure" |
| 2030 | /* confdefs.h. */ |
| 2031 | _ACEOF |
| 2032 | cat confdefs.h >>conftest.$ac_ext |
| 2033 | cat >>conftest.$ac_ext <<_ACEOF |
| 2034 | /* end confdefs.h. */ |
| 2035 | |
| 2036 | int |
| 2037 | main () |
| 2038 | { |
| 2039 | |
| 2040 | ; |
| 2041 | return 0; |
| 2042 | } |
| 2043 | _ACEOF |
| 2044 | rm -f conftest.$ac_objext |
| 2045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2046 | (eval $ac_compile) 2>&5 |
| 2047 | ac_status=$? |
| 2048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2049 | (exit $ac_status); } && |
| 2050 | { ac_try='test -s conftest.$ac_objext' |
| 2051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2052 | (eval $ac_try) 2>&5 |
| 2053 | ac_status=$? |
| 2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2055 | (exit $ac_status); }; }; then |
| 2056 | ac_cv_prog_cc_g=yes |
| 2057 | else |
| 2058 | echo "$as_me: failed program was:" >&5 |
| 2059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2060 | |
| 2061 | ac_cv_prog_cc_g=no |
| 2062 | fi |
| 2063 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2064 | fi |
| 2065 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2066 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2067 | if test "$ac_test_CFLAGS" = set; then |
| 2068 | CFLAGS=$ac_save_CFLAGS |
| 2069 | elif test $ac_cv_prog_cc_g = yes; then |
| 2070 | if test "$GCC" = yes; then |
| 2071 | CFLAGS="-g -O2" |
| 2072 | else |
| 2073 | CFLAGS="-g" |
| 2074 | fi |
| 2075 | else |
| 2076 | if test "$GCC" = yes; then |
| 2077 | CFLAGS="-O2" |
| 2078 | else |
| 2079 | CFLAGS= |
| 2080 | fi |
| 2081 | fi |
| 2082 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2083 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2084 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2086 | else |
| 2087 | ac_cv_prog_cc_stdc=no |
| 2088 | ac_save_CC=$CC |
| 2089 | cat >conftest.$ac_ext <<_ACEOF |
| 2090 | #line $LINENO "configure" |
| 2091 | /* confdefs.h. */ |
| 2092 | _ACEOF |
| 2093 | cat confdefs.h >>conftest.$ac_ext |
| 2094 | cat >>conftest.$ac_ext <<_ACEOF |
| 2095 | /* end confdefs.h. */ |
| 2096 | #include <stdarg.h> |
| 2097 | #include <stdio.h> |
| 2098 | #include <sys/types.h> |
| 2099 | #include <sys/stat.h> |
| 2100 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2101 | struct buf { int x; }; |
| 2102 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2103 | static char *e (p, i) |
| 2104 | char **p; |
| 2105 | int i; |
| 2106 | { |
| 2107 | return p[i]; |
| 2108 | } |
| 2109 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2110 | { |
| 2111 | char *s; |
| 2112 | va_list v; |
| 2113 | va_start (v,p); |
| 2114 | s = g (p, va_arg (v,int)); |
| 2115 | va_end (v); |
| 2116 | return s; |
| 2117 | } |
| 2118 | int test (int i, double x); |
| 2119 | struct s1 {int (*f) (int a);}; |
| 2120 | struct s2 {int (*f) (double a);}; |
| 2121 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2122 | int argc; |
| 2123 | char **argv; |
| 2124 | int |
| 2125 | main () |
| 2126 | { |
| 2127 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2128 | ; |
| 2129 | return 0; |
| 2130 | } |
| 2131 | _ACEOF |
| 2132 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2133 | # breaks some systems' header files. |
| 2134 | # AIX -qlanglvl=ansi |
| 2135 | # Ultrix and OSF/1 -std1 |
| 2136 | # HP-UX 10.20 and later -Ae |
| 2137 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2138 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2139 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2140 | do |
| 2141 | CC="$ac_save_CC $ac_arg" |
| 2142 | rm -f conftest.$ac_objext |
| 2143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2144 | (eval $ac_compile) 2>&5 |
| 2145 | ac_status=$? |
| 2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2147 | (exit $ac_status); } && |
| 2148 | { ac_try='test -s conftest.$ac_objext' |
| 2149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2150 | (eval $ac_try) 2>&5 |
| 2151 | ac_status=$? |
| 2152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2153 | (exit $ac_status); }; }; then |
| 2154 | ac_cv_prog_cc_stdc=$ac_arg |
| 2155 | break |
| 2156 | else |
| 2157 | echo "$as_me: failed program was:" >&5 |
| 2158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2159 | |
| 2160 | fi |
| 2161 | rm -f conftest.$ac_objext |
| 2162 | done |
| 2163 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2164 | CC=$ac_save_CC |
| 2165 | |
| 2166 | fi |
| 2167 | |
| 2168 | case "x$ac_cv_prog_cc_stdc" in |
| 2169 | x|xno) |
| 2170 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2171 | echo "${ECHO_T}none needed" >&6 ;; |
| 2172 | *) |
| 2173 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2174 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2175 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2176 | esac |
| 2177 | |
| 2178 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2179 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2180 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2181 | # the declaration of exit, since it's the most demanding environment. |
| 2182 | cat >conftest.$ac_ext <<_ACEOF |
| 2183 | #ifndef __cplusplus |
| 2184 | choke me |
| 2185 | #endif |
| 2186 | _ACEOF |
| 2187 | rm -f conftest.$ac_objext |
| 2188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2189 | (eval $ac_compile) 2>&5 |
| 2190 | ac_status=$? |
| 2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2192 | (exit $ac_status); } && |
| 2193 | { ac_try='test -s conftest.$ac_objext' |
| 2194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2195 | (eval $ac_try) 2>&5 |
| 2196 | ac_status=$? |
| 2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2198 | (exit $ac_status); }; }; then |
| 2199 | for ac_declaration in \ |
| 2200 | ''\ |
| 2201 | '#include <stdlib.h>' \ |
| 2202 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2203 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2204 | 'extern "C" void exit (int) throw ();' \ |
| 2205 | 'extern "C" void exit (int);' \ |
| 2206 | 'void exit (int);' |
| 2207 | do |
| 2208 | cat >conftest.$ac_ext <<_ACEOF |
| 2209 | #line $LINENO "configure" |
| 2210 | /* confdefs.h. */ |
| 2211 | _ACEOF |
| 2212 | cat confdefs.h >>conftest.$ac_ext |
| 2213 | cat >>conftest.$ac_ext <<_ACEOF |
| 2214 | /* end confdefs.h. */ |
| 2215 | #include <stdlib.h> |
| 2216 | $ac_declaration |
| 2217 | int |
| 2218 | main () |
| 2219 | { |
| 2220 | exit (42); |
| 2221 | ; |
| 2222 | return 0; |
| 2223 | } |
| 2224 | _ACEOF |
| 2225 | rm -f conftest.$ac_objext |
| 2226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2227 | (eval $ac_compile) 2>&5 |
| 2228 | ac_status=$? |
| 2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2230 | (exit $ac_status); } && |
| 2231 | { ac_try='test -s conftest.$ac_objext' |
| 2232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2233 | (eval $ac_try) 2>&5 |
| 2234 | ac_status=$? |
| 2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2236 | (exit $ac_status); }; }; then |
| 2237 | : |
| 2238 | else |
| 2239 | echo "$as_me: failed program was:" >&5 |
| 2240 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2241 | |
| 2242 | continue |
| 2243 | fi |
| 2244 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2245 | cat >conftest.$ac_ext <<_ACEOF |
| 2246 | #line $LINENO "configure" |
| 2247 | /* confdefs.h. */ |
| 2248 | _ACEOF |
| 2249 | cat confdefs.h >>conftest.$ac_ext |
| 2250 | cat >>conftest.$ac_ext <<_ACEOF |
| 2251 | /* end confdefs.h. */ |
| 2252 | $ac_declaration |
| 2253 | int |
| 2254 | main () |
| 2255 | { |
| 2256 | exit (42); |
| 2257 | ; |
| 2258 | return 0; |
| 2259 | } |
| 2260 | _ACEOF |
| 2261 | rm -f conftest.$ac_objext |
| 2262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2263 | (eval $ac_compile) 2>&5 |
| 2264 | ac_status=$? |
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2266 | (exit $ac_status); } && |
| 2267 | { ac_try='test -s conftest.$ac_objext' |
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2269 | (eval $ac_try) 2>&5 |
| 2270 | ac_status=$? |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); }; }; then |
| 2273 | break |
| 2274 | else |
| 2275 | echo "$as_me: failed program was:" >&5 |
| 2276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2277 | |
| 2278 | fi |
| 2279 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2280 | done |
| 2281 | rm -f conftest* |
| 2282 | if test -n "$ac_declaration"; then |
| 2283 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2284 | echo $ac_declaration >>confdefs.h |
| 2285 | echo '#endif' >>confdefs.h |
| 2286 | fi |
| 2287 | |
| 2288 | else |
| 2289 | echo "$as_me: failed program was:" >&5 |
| 2290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2291 | |
| 2292 | fi |
| 2293 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2294 | ac_ext=c |
| 2295 | ac_cpp='$CPP $CPPFLAGS' |
| 2296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2299 | |
| 2300 | |
| 2301 | ac_ext=c |
| 2302 | ac_cpp='$CPP $CPPFLAGS' |
| 2303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2306 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2307 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 2308 | # On Suns, sometimes $CPP names a directory. |
| 2309 | if test -n "$CPP" && test -d "$CPP"; then |
| 2310 | CPP= |
| 2311 | fi |
| 2312 | if test -z "$CPP"; then |
| 2313 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2315 | else |
| 2316 | # Double quotes because CPP needs to be expanded |
| 2317 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2318 | do |
| 2319 | ac_preproc_ok=false |
| 2320 | for ac_c_preproc_warn_flag in '' yes |
| 2321 | do |
| 2322 | # Use a header file that comes with gcc, so configuring glibc |
| 2323 | # with a fresh cross-compiler works. |
| 2324 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2325 | # <limits.h> exists even on freestanding compilers. |
| 2326 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2327 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2328 | cat >conftest.$ac_ext <<_ACEOF |
| 2329 | #line $LINENO "configure" |
| 2330 | /* confdefs.h. */ |
| 2331 | _ACEOF |
| 2332 | cat confdefs.h >>conftest.$ac_ext |
| 2333 | cat >>conftest.$ac_ext <<_ACEOF |
| 2334 | /* end confdefs.h. */ |
| 2335 | #ifdef __STDC__ |
| 2336 | # include <limits.h> |
| 2337 | #else |
| 2338 | # include <assert.h> |
| 2339 | #endif |
| 2340 | Syntax error |
| 2341 | _ACEOF |
| 2342 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2343 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2344 | ac_status=$? |
| 2345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2346 | rm -f conftest.er1 |
| 2347 | cat conftest.err >&5 |
| 2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2349 | (exit $ac_status); } >/dev/null; then |
| 2350 | if test -s conftest.err; then |
| 2351 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2352 | else |
| 2353 | ac_cpp_err= |
| 2354 | fi |
| 2355 | else |
| 2356 | ac_cpp_err=yes |
| 2357 | fi |
| 2358 | if test -z "$ac_cpp_err"; then |
| 2359 | : |
| 2360 | else |
| 2361 | echo "$as_me: failed program was:" >&5 |
| 2362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2363 | |
| 2364 | # Broken: fails on valid input. |
| 2365 | continue |
| 2366 | fi |
| 2367 | rm -f conftest.err conftest.$ac_ext |
| 2368 | |
| 2369 | # OK, works on sane cases. Now check whether non-existent headers |
| 2370 | # can be detected and how. |
| 2371 | cat >conftest.$ac_ext <<_ACEOF |
| 2372 | #line $LINENO "configure" |
| 2373 | /* confdefs.h. */ |
| 2374 | _ACEOF |
| 2375 | cat confdefs.h >>conftest.$ac_ext |
| 2376 | cat >>conftest.$ac_ext <<_ACEOF |
| 2377 | /* end confdefs.h. */ |
| 2378 | #include <ac_nonexistent.h> |
| 2379 | _ACEOF |
| 2380 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2381 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2382 | ac_status=$? |
| 2383 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2384 | rm -f conftest.er1 |
| 2385 | cat conftest.err >&5 |
| 2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2387 | (exit $ac_status); } >/dev/null; then |
| 2388 | if test -s conftest.err; then |
| 2389 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2390 | else |
| 2391 | ac_cpp_err= |
| 2392 | fi |
| 2393 | else |
| 2394 | ac_cpp_err=yes |
| 2395 | fi |
| 2396 | if test -z "$ac_cpp_err"; then |
| 2397 | # Broken: success on invalid input. |
| 2398 | continue |
| 2399 | else |
| 2400 | echo "$as_me: failed program was:" >&5 |
| 2401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2402 | |
| 2403 | # Passes both tests. |
| 2404 | ac_preproc_ok=: |
| 2405 | break |
| 2406 | fi |
| 2407 | rm -f conftest.err conftest.$ac_ext |
| 2408 | |
| 2409 | done |
| 2410 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2411 | rm -f conftest.err conftest.$ac_ext |
| 2412 | if $ac_preproc_ok; then |
| 2413 | break |
| 2414 | fi |
| 2415 | |
| 2416 | done |
| 2417 | ac_cv_prog_CPP=$CPP |
| 2418 | |
| 2419 | fi |
| 2420 | CPP=$ac_cv_prog_CPP |
| 2421 | else |
| 2422 | ac_cv_prog_CPP=$CPP |
| 2423 | fi |
| 2424 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2425 | echo "${ECHO_T}$CPP" >&6 |
| 2426 | ac_preproc_ok=false |
| 2427 | for ac_c_preproc_warn_flag in '' yes |
| 2428 | do |
| 2429 | # Use a header file that comes with gcc, so configuring glibc |
| 2430 | # with a fresh cross-compiler works. |
| 2431 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2432 | # <limits.h> exists even on freestanding compilers. |
| 2433 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2434 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2435 | cat >conftest.$ac_ext <<_ACEOF |
| 2436 | #line $LINENO "configure" |
| 2437 | /* confdefs.h. */ |
| 2438 | _ACEOF |
| 2439 | cat confdefs.h >>conftest.$ac_ext |
| 2440 | cat >>conftest.$ac_ext <<_ACEOF |
| 2441 | /* end confdefs.h. */ |
| 2442 | #ifdef __STDC__ |
| 2443 | # include <limits.h> |
| 2444 | #else |
| 2445 | # include <assert.h> |
| 2446 | #endif |
| 2447 | Syntax error |
| 2448 | _ACEOF |
| 2449 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2450 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2451 | ac_status=$? |
| 2452 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2453 | rm -f conftest.er1 |
| 2454 | cat conftest.err >&5 |
| 2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2456 | (exit $ac_status); } >/dev/null; then |
| 2457 | if test -s conftest.err; then |
| 2458 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2459 | else |
| 2460 | ac_cpp_err= |
| 2461 | fi |
| 2462 | else |
| 2463 | ac_cpp_err=yes |
| 2464 | fi |
| 2465 | if test -z "$ac_cpp_err"; then |
| 2466 | : |
| 2467 | else |
| 2468 | echo "$as_me: failed program was:" >&5 |
| 2469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2470 | |
| 2471 | # Broken: fails on valid input. |
| 2472 | continue |
| 2473 | fi |
| 2474 | rm -f conftest.err conftest.$ac_ext |
| 2475 | |
| 2476 | # OK, works on sane cases. Now check whether non-existent headers |
| 2477 | # can be detected and how. |
| 2478 | cat >conftest.$ac_ext <<_ACEOF |
| 2479 | #line $LINENO "configure" |
| 2480 | /* confdefs.h. */ |
| 2481 | _ACEOF |
| 2482 | cat confdefs.h >>conftest.$ac_ext |
| 2483 | cat >>conftest.$ac_ext <<_ACEOF |
| 2484 | /* end confdefs.h. */ |
| 2485 | #include <ac_nonexistent.h> |
| 2486 | _ACEOF |
| 2487 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2488 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2489 | ac_status=$? |
| 2490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2491 | rm -f conftest.er1 |
| 2492 | cat conftest.err >&5 |
| 2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2494 | (exit $ac_status); } >/dev/null; then |
| 2495 | if test -s conftest.err; then |
| 2496 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2497 | else |
| 2498 | ac_cpp_err= |
| 2499 | fi |
| 2500 | else |
| 2501 | ac_cpp_err=yes |
| 2502 | fi |
| 2503 | if test -z "$ac_cpp_err"; then |
| 2504 | # Broken: success on invalid input. |
| 2505 | continue |
| 2506 | else |
| 2507 | echo "$as_me: failed program was:" >&5 |
| 2508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2509 | |
| 2510 | # Passes both tests. |
| 2511 | ac_preproc_ok=: |
| 2512 | break |
| 2513 | fi |
| 2514 | rm -f conftest.err conftest.$ac_ext |
| 2515 | |
| 2516 | done |
| 2517 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2518 | rm -f conftest.err conftest.$ac_ext |
| 2519 | if $ac_preproc_ok; then |
| 2520 | : |
| 2521 | else |
| 2522 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2523 | See \`config.log' for more details." >&5 |
| 2524 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2525 | See \`config.log' for more details." >&2;} |
| 2526 | { (exit 1); exit 1; }; } |
| 2527 | fi |
| 2528 | |
| 2529 | ac_ext=c |
| 2530 | ac_cpp='$CPP $CPPFLAGS' |
| 2531 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2532 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2533 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2534 | |
| 2535 | |
| 2536 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2537 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2538 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2540 | else |
| 2541 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2542 | then ac_cv_prog_egrep='grep -E' |
| 2543 | else ac_cv_prog_egrep='egrep' |
| 2544 | fi |
| 2545 | fi |
| 2546 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2547 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2548 | EGREP=$ac_cv_prog_egrep |
| 2549 | |
| 2550 | |
| 2551 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2552 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2553 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2555 | else |
| 2556 | cat >conftest.$ac_ext <<_ACEOF |
| 2557 | #line $LINENO "configure" |
| 2558 | /* confdefs.h. */ |
| 2559 | _ACEOF |
| 2560 | cat confdefs.h >>conftest.$ac_ext |
| 2561 | cat >>conftest.$ac_ext <<_ACEOF |
| 2562 | /* end confdefs.h. */ |
| 2563 | #include <stdlib.h> |
| 2564 | #include <stdarg.h> |
| 2565 | #include <string.h> |
| 2566 | #include <float.h> |
| 2567 | |
| 2568 | int |
| 2569 | main () |
| 2570 | { |
| 2571 | |
| 2572 | ; |
| 2573 | return 0; |
| 2574 | } |
| 2575 | _ACEOF |
| 2576 | rm -f conftest.$ac_objext |
| 2577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2578 | (eval $ac_compile) 2>&5 |
| 2579 | ac_status=$? |
| 2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2581 | (exit $ac_status); } && |
| 2582 | { ac_try='test -s conftest.$ac_objext' |
| 2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2584 | (eval $ac_try) 2>&5 |
| 2585 | ac_status=$? |
| 2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2587 | (exit $ac_status); }; }; then |
| 2588 | ac_cv_header_stdc=yes |
| 2589 | else |
| 2590 | echo "$as_me: failed program was:" >&5 |
| 2591 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2592 | |
| 2593 | ac_cv_header_stdc=no |
| 2594 | fi |
| 2595 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2596 | |
| 2597 | if test $ac_cv_header_stdc = yes; then |
| 2598 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2599 | cat >conftest.$ac_ext <<_ACEOF |
| 2600 | #line $LINENO "configure" |
| 2601 | /* confdefs.h. */ |
| 2602 | _ACEOF |
| 2603 | cat confdefs.h >>conftest.$ac_ext |
| 2604 | cat >>conftest.$ac_ext <<_ACEOF |
| 2605 | /* end confdefs.h. */ |
| 2606 | #include <string.h> |
| 2607 | |
| 2608 | _ACEOF |
| 2609 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2610 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2611 | : |
| 2612 | else |
| 2613 | ac_cv_header_stdc=no |
| 2614 | fi |
| 2615 | rm -f conftest* |
| 2616 | |
| 2617 | fi |
| 2618 | |
| 2619 | if test $ac_cv_header_stdc = yes; then |
| 2620 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2621 | cat >conftest.$ac_ext <<_ACEOF |
| 2622 | #line $LINENO "configure" |
| 2623 | /* confdefs.h. */ |
| 2624 | _ACEOF |
| 2625 | cat confdefs.h >>conftest.$ac_ext |
| 2626 | cat >>conftest.$ac_ext <<_ACEOF |
| 2627 | /* end confdefs.h. */ |
| 2628 | #include <stdlib.h> |
| 2629 | |
| 2630 | _ACEOF |
| 2631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2632 | $EGREP "free" >/dev/null 2>&1; then |
| 2633 | : |
| 2634 | else |
| 2635 | ac_cv_header_stdc=no |
| 2636 | fi |
| 2637 | rm -f conftest* |
| 2638 | |
| 2639 | fi |
| 2640 | |
| 2641 | if test $ac_cv_header_stdc = yes; then |
| 2642 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2643 | if test "$cross_compiling" = yes; then |
| 2644 | : |
| 2645 | else |
| 2646 | cat >conftest.$ac_ext <<_ACEOF |
| 2647 | #line $LINENO "configure" |
| 2648 | /* confdefs.h. */ |
| 2649 | _ACEOF |
| 2650 | cat confdefs.h >>conftest.$ac_ext |
| 2651 | cat >>conftest.$ac_ext <<_ACEOF |
| 2652 | /* end confdefs.h. */ |
| 2653 | #include <ctype.h> |
| 2654 | #if ((' ' & 0x0FF) == 0x020) |
| 2655 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2656 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2657 | #else |
| 2658 | # define ISLOWER(c) \ |
| 2659 | (('a' <= (c) && (c) <= 'i') \ |
| 2660 | || ('j' <= (c) && (c) <= 'r') \ |
| 2661 | || ('s' <= (c) && (c) <= 'z')) |
| 2662 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2663 | #endif |
| 2664 | |
| 2665 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2666 | int |
| 2667 | main () |
| 2668 | { |
| 2669 | int i; |
| 2670 | for (i = 0; i < 256; i++) |
| 2671 | if (XOR (islower (i), ISLOWER (i)) |
| 2672 | || toupper (i) != TOUPPER (i)) |
| 2673 | exit(2); |
| 2674 | exit (0); |
| 2675 | } |
| 2676 | _ACEOF |
| 2677 | rm -f conftest$ac_exeext |
| 2678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2679 | (eval $ac_link) 2>&5 |
| 2680 | ac_status=$? |
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2682 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2684 | (eval $ac_try) 2>&5 |
| 2685 | ac_status=$? |
| 2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2687 | (exit $ac_status); }; }; then |
| 2688 | : |
| 2689 | else |
| 2690 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2691 | echo "$as_me: failed program was:" >&5 |
| 2692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2693 | |
| 2694 | ( exit $ac_status ) |
| 2695 | ac_cv_header_stdc=no |
| 2696 | fi |
| 2697 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2698 | fi |
| 2699 | fi |
| 2700 | fi |
| 2701 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2702 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2703 | if test $ac_cv_header_stdc = yes; then |
| 2704 | |
| 2705 | cat >>confdefs.h <<\_ACEOF |
| 2706 | #define STDC_HEADERS 1 |
| 2707 | _ACEOF |
| 2708 | |
| 2709 | fi |
| 2710 | |
| 2711 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2712 | |
| 2713 | |
| 2714 | |
| 2715 | |
| 2716 | |
| 2717 | |
| 2718 | |
| 2719 | |
| 2720 | |
| 2721 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2722 | inttypes.h stdint.h unistd.h |
| 2723 | do |
| 2724 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2729 | else |
| 2730 | cat >conftest.$ac_ext <<_ACEOF |
| 2731 | #line $LINENO "configure" |
| 2732 | /* confdefs.h. */ |
| 2733 | _ACEOF |
| 2734 | cat confdefs.h >>conftest.$ac_ext |
| 2735 | cat >>conftest.$ac_ext <<_ACEOF |
| 2736 | /* end confdefs.h. */ |
| 2737 | $ac_includes_default |
| 2738 | |
| 2739 | #include <$ac_header> |
| 2740 | _ACEOF |
| 2741 | rm -f conftest.$ac_objext |
| 2742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2743 | (eval $ac_compile) 2>&5 |
| 2744 | ac_status=$? |
| 2745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2746 | (exit $ac_status); } && |
| 2747 | { ac_try='test -s conftest.$ac_objext' |
| 2748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2749 | (eval $ac_try) 2>&5 |
| 2750 | ac_status=$? |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); }; }; then |
| 2753 | eval "$as_ac_Header=yes" |
| 2754 | else |
| 2755 | echo "$as_me: failed program was:" >&5 |
| 2756 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2757 | |
| 2758 | eval "$as_ac_Header=no" |
| 2759 | fi |
| 2760 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2761 | fi |
| 2762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2765 | cat >>confdefs.h <<_ACEOF |
| 2766 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2767 | _ACEOF |
| 2768 | |
| 2769 | fi |
| 2770 | |
| 2771 | done |
| 2772 | |
| 2773 | |
| 2774 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2775 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2776 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2777 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2779 | fi |
| 2780 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2781 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2782 | else |
| 2783 | # Is the header compilable? |
| 2784 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2785 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2786 | cat >conftest.$ac_ext <<_ACEOF |
| 2787 | #line $LINENO "configure" |
| 2788 | /* confdefs.h. */ |
| 2789 | _ACEOF |
| 2790 | cat confdefs.h >>conftest.$ac_ext |
| 2791 | cat >>conftest.$ac_ext <<_ACEOF |
| 2792 | /* end confdefs.h. */ |
| 2793 | $ac_includes_default |
| 2794 | #include <minix/config.h> |
| 2795 | _ACEOF |
| 2796 | rm -f conftest.$ac_objext |
| 2797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2798 | (eval $ac_compile) 2>&5 |
| 2799 | ac_status=$? |
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2801 | (exit $ac_status); } && |
| 2802 | { ac_try='test -s conftest.$ac_objext' |
| 2803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2804 | (eval $ac_try) 2>&5 |
| 2805 | ac_status=$? |
| 2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2807 | (exit $ac_status); }; }; then |
| 2808 | ac_header_compiler=yes |
| 2809 | else |
| 2810 | echo "$as_me: failed program was:" >&5 |
| 2811 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2812 | |
| 2813 | ac_header_compiler=no |
| 2814 | fi |
| 2815 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2816 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2817 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2818 | |
| 2819 | # Is the header present? |
| 2820 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2821 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2822 | cat >conftest.$ac_ext <<_ACEOF |
| 2823 | #line $LINENO "configure" |
| 2824 | /* confdefs.h. */ |
| 2825 | _ACEOF |
| 2826 | cat confdefs.h >>conftest.$ac_ext |
| 2827 | cat >>conftest.$ac_ext <<_ACEOF |
| 2828 | /* end confdefs.h. */ |
| 2829 | #include <minix/config.h> |
| 2830 | _ACEOF |
| 2831 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2832 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2833 | ac_status=$? |
| 2834 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2835 | rm -f conftest.er1 |
| 2836 | cat conftest.err >&5 |
| 2837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2838 | (exit $ac_status); } >/dev/null; then |
| 2839 | if test -s conftest.err; then |
| 2840 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2841 | else |
| 2842 | ac_cpp_err= |
| 2843 | fi |
| 2844 | else |
| 2845 | ac_cpp_err=yes |
| 2846 | fi |
| 2847 | if test -z "$ac_cpp_err"; then |
| 2848 | ac_header_preproc=yes |
| 2849 | else |
| 2850 | echo "$as_me: failed program was:" >&5 |
| 2851 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2852 | |
| 2853 | ac_header_preproc=no |
| 2854 | fi |
| 2855 | rm -f conftest.err conftest.$ac_ext |
| 2856 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2857 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2858 | |
| 2859 | # So? What about this header? |
| 2860 | case $ac_header_compiler:$ac_header_preproc in |
| 2861 | yes:no ) |
| 2862 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2863 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2864 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2865 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 2866 | ( |
| 2867 | cat <<\_ASBOX |
| 2868 | ## ------------------------------------ ## |
| 2869 | ## Report this to bug-autoconf@gnu.org. ## |
| 2870 | ## ------------------------------------ ## |
| 2871 | _ASBOX |
| 2872 | ) | |
| 2873 | sed "s/^/$as_me: WARNING: /" >&2 |
| 2874 | ;; |
| 2875 | no:yes ) |
| 2876 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2877 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2878 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2879 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2880 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2881 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} |
| 2882 | ( |
| 2883 | cat <<\_ASBOX |
| 2884 | ## ------------------------------------ ## |
| 2885 | ## Report this to bug-autoconf@gnu.org. ## |
| 2886 | ## ------------------------------------ ## |
| 2887 | _ASBOX |
| 2888 | ) | |
| 2889 | sed "s/^/$as_me: WARNING: /" >&2 |
| 2890 | ;; |
| 2891 | esac |
| 2892 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2893 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2894 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2896 | else |
| 2897 | ac_cv_header_minix_config_h=$ac_header_preproc |
| 2898 | fi |
| 2899 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2900 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2901 | |
| 2902 | fi |
| 2903 | if test $ac_cv_header_minix_config_h = yes; then |
| 2904 | MINIX=yes |
| 2905 | else |
| 2906 | MINIX= |
| 2907 | fi |
| 2908 | |
| 2909 | |
| 2910 | if test "$MINIX" = yes; then |
| 2911 | |
| 2912 | cat >>confdefs.h <<\_ACEOF |
| 2913 | #define _POSIX_SOURCE 1 |
| 2914 | _ACEOF |
| 2915 | |
| 2916 | |
| 2917 | cat >>confdefs.h <<\_ACEOF |
| 2918 | #define _POSIX_1_SOURCE 2 |
| 2919 | _ACEOF |
| 2920 | |
| 2921 | |
| 2922 | cat >>confdefs.h <<\_ACEOF |
| 2923 | #define _MINIX 1 |
| 2924 | _ACEOF |
| 2925 | |
| 2926 | fi |
| 2927 | |
| 2928 | |
| 2929 | |
| 2930 | if test "x$cross_compiling" = "xyes"; then |
| 2931 | case "${host}" in |
| 2932 | *-cygwin*) |
| 2933 | cross_cache=${srcdir}/cross-build/cygwin.cache |
| 2934 | if test -r "${cross_cache}"; then |
| 2935 | echo "loading cross-build cache file ${cross_cache}" |
| 2936 | . ${cross_cache} |
| 2937 | fi |
| 2938 | LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap" |
| 2939 | unset cross_cache |
| 2940 | ;; |
| 2941 | *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2 |
| 2942 | ;; |
| 2943 | esac |
| 2944 | fi |
| 2945 | |
| 2946 | if test "x$cross_compiling" = "xyes"; then |
| 2947 | CROSS_COMPILING_FLAG=-DCROSS_COMPILING |
| 2948 | else |
| 2949 | CROSS_COMPILING_FLAG= |
| 2950 | fi |
| 2951 | |
| 2952 | |
| 2953 | if test -z "$CC_FOR_BUILD"; then |
| 2954 | if test "x$cross_compiling" = "xno"; then |
| 2955 | CC_FOR_BUILD='$(CC)' |
| 2956 | else |
| 2957 | CC_FOR_BUILD=gcc |
| 2958 | fi |
| 2959 | fi |
| 2960 | |
| 2961 | |
| 2962 | |
| 2963 | # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. |
| 2964 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" |
| 2965 | |
| 2966 | if test $ac_cv_c_compiler_gnu = yes; then |
| 2967 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 2968 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 2969 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 2970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2971 | else |
| 2972 | ac_pattern="Autoconf.*'x'" |
| 2973 | cat >conftest.$ac_ext <<_ACEOF |
| 2974 | #line $LINENO "configure" |
| 2975 | /* confdefs.h. */ |
| 2976 | _ACEOF |
| 2977 | cat confdefs.h >>conftest.$ac_ext |
| 2978 | cat >>conftest.$ac_ext <<_ACEOF |
| 2979 | /* end confdefs.h. */ |
| 2980 | #include <sgtty.h> |
| 2981 | Autoconf TIOCGETP |
| 2982 | _ACEOF |
| 2983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2984 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
| 2985 | ac_cv_prog_gcc_traditional=yes |
| 2986 | else |
| 2987 | ac_cv_prog_gcc_traditional=no |
| 2988 | fi |
| 2989 | rm -f conftest* |
| 2990 | |
| 2991 | |
| 2992 | if test $ac_cv_prog_gcc_traditional = no; then |
| 2993 | cat >conftest.$ac_ext <<_ACEOF |
| 2994 | #line $LINENO "configure" |
| 2995 | /* confdefs.h. */ |
| 2996 | _ACEOF |
| 2997 | cat confdefs.h >>conftest.$ac_ext |
| 2998 | cat >>conftest.$ac_ext <<_ACEOF |
| 2999 | /* end confdefs.h. */ |
| 3000 | #include <termio.h> |
| 3001 | Autoconf TCGETA |
| 3002 | _ACEOF |
| 3003 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3004 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
| 3005 | ac_cv_prog_gcc_traditional=yes |
| 3006 | fi |
| 3007 | rm -f conftest* |
| 3008 | |
| 3009 | fi |
| 3010 | fi |
| 3011 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 3012 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
| 3013 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 3014 | CC="$CC -traditional" |
| 3015 | fi |
| 3016 | fi |
| 3017 | |
| 3018 | # Find a good install program. We prefer a C program (faster), |
| 3019 | # so one script is as good as another. But avoid the broken or |
| 3020 | # incompatible versions: |
| 3021 | # SysV /etc/install, /usr/sbin/install |
| 3022 | # SunOS /usr/etc/install |
| 3023 | # IRIX /sbin/install |
| 3024 | # AIX /bin/install |
| 3025 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3026 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3027 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3028 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3029 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3030 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3031 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 3032 | if test -z "$INSTALL"; then |
| 3033 | if test "${ac_cv_path_install+set}" = set; then |
| 3034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3035 | else |
| 3036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3037 | for as_dir in $PATH |
| 3038 | do |
| 3039 | IFS=$as_save_IFS |
| 3040 | test -z "$as_dir" && as_dir=. |
| 3041 | # Account for people who put trailing slashes in PATH elements. |
| 3042 | case $as_dir/ in |
| 3043 | ./ | .// | /cC/* | \ |
| 3044 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3045 | /usr/ucb/* ) ;; |
| 3046 | *) |
| 3047 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3048 | # Don't use installbsd from OSF since it installs stuff as root |
| 3049 | # by default. |
| 3050 | for ac_prog in ginstall scoinst install; do |
| 3051 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3052 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3053 | if test $ac_prog = install && |
| 3054 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3055 | # AIX install. It has an incompatible calling convention. |
| 3056 | : |
| 3057 | elif test $ac_prog = install && |
| 3058 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3059 | # program-specific install script used by HP pwplus--don't use. |
| 3060 | : |
| 3061 | else |
| 3062 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3063 | break 3 |
| 3064 | fi |
| 3065 | fi |
| 3066 | done |
| 3067 | done |
| 3068 | ;; |
| 3069 | esac |
| 3070 | done |
| 3071 | |
| 3072 | |
| 3073 | fi |
| 3074 | if test "${ac_cv_path_install+set}" = set; then |
| 3075 | INSTALL=$ac_cv_path_install |
| 3076 | else |
| 3077 | # As a last resort, use the slow shell script. We don't cache a |
| 3078 | # path for INSTALL within a source directory, because that will |
| 3079 | # break other packages using the cache if that directory is |
| 3080 | # removed, or if the path is relative. |
| 3081 | INSTALL=$ac_install_sh |
| 3082 | fi |
| 3083 | fi |
| 3084 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3085 | echo "${ECHO_T}$INSTALL" >&6 |
| 3086 | |
| 3087 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3088 | # It thinks the first close brace ends the variable substitution. |
| 3089 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3090 | |
| 3091 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3092 | |
| 3093 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3094 | |
| 3095 | # Extract the first word of "ar", so it can be a program name with args. |
| 3096 | set dummy ar; ac_word=$2 |
| 3097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3099 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3101 | else |
| 3102 | if test -n "$AR"; then |
| 3103 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3104 | else |
| 3105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3106 | for as_dir in $PATH |
| 3107 | do |
| 3108 | IFS=$as_save_IFS |
| 3109 | test -z "$as_dir" && as_dir=. |
| 3110 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3112 | ac_cv_prog_AR="" |
| 3113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3114 | break 2 |
| 3115 | fi |
| 3116 | done |
| 3117 | done |
| 3118 | |
| 3119 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
| 3120 | fi |
| 3121 | fi |
| 3122 | AR=$ac_cv_prog_AR |
| 3123 | if test -n "$AR"; then |
| 3124 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3125 | echo "${ECHO_T}$AR" >&6 |
| 3126 | else |
| 3127 | echo "$as_me:$LINENO: result: no" >&5 |
| 3128 | echo "${ECHO_T}no" >&6 |
| 3129 | fi |
| 3130 | |
| 3131 | test -n "$ARFLAGS" || ARFLAGS="cr" |
| 3132 | if test -n "$ac_tool_prefix"; then |
| 3133 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3134 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3135 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3137 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3139 | else |
| 3140 | if test -n "$RANLIB"; then |
| 3141 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3142 | else |
| 3143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3144 | for as_dir in $PATH |
| 3145 | do |
| 3146 | IFS=$as_save_IFS |
| 3147 | test -z "$as_dir" && as_dir=. |
| 3148 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3150 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3152 | break 2 |
| 3153 | fi |
| 3154 | done |
| 3155 | done |
| 3156 | |
| 3157 | fi |
| 3158 | fi |
| 3159 | RANLIB=$ac_cv_prog_RANLIB |
| 3160 | if test -n "$RANLIB"; then |
| 3161 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3162 | echo "${ECHO_T}$RANLIB" >&6 |
| 3163 | else |
| 3164 | echo "$as_me:$LINENO: result: no" >&5 |
| 3165 | echo "${ECHO_T}no" >&6 |
| 3166 | fi |
| 3167 | |
| 3168 | fi |
| 3169 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3170 | ac_ct_RANLIB=$RANLIB |
| 3171 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3172 | set dummy ranlib; ac_word=$2 |
| 3173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3175 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3177 | else |
| 3178 | if test -n "$ac_ct_RANLIB"; then |
| 3179 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3180 | else |
| 3181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3182 | for as_dir in $PATH |
| 3183 | do |
| 3184 | IFS=$as_save_IFS |
| 3185 | test -z "$as_dir" && as_dir=. |
| 3186 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3187 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3188 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3190 | break 2 |
| 3191 | fi |
| 3192 | done |
| 3193 | done |
| 3194 | |
| 3195 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3196 | fi |
| 3197 | fi |
| 3198 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3199 | if test -n "$ac_ct_RANLIB"; then |
| 3200 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3201 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3202 | else |
| 3203 | echo "$as_me:$LINENO: result: no" >&5 |
| 3204 | echo "${ECHO_T}no" >&6 |
| 3205 | fi |
| 3206 | |
| 3207 | RANLIB=$ac_ct_RANLIB |
| 3208 | else |
| 3209 | RANLIB="$ac_cv_prog_RANLIB" |
| 3210 | fi |
| 3211 | |
| 3212 | |
| 3213 | MAKE_SHELL=/bin/sh |
| 3214 | |
| 3215 | |
| 3216 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 3217 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 3218 | if test "${ac_cv_c_const+set}" = set; then |
| 3219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3220 | else |
| 3221 | cat >conftest.$ac_ext <<_ACEOF |
| 3222 | #line $LINENO "configure" |
| 3223 | /* confdefs.h. */ |
| 3224 | _ACEOF |
| 3225 | cat confdefs.h >>conftest.$ac_ext |
| 3226 | cat >>conftest.$ac_ext <<_ACEOF |
| 3227 | /* end confdefs.h. */ |
| 3228 | |
| 3229 | int |
| 3230 | main () |
| 3231 | { |
| 3232 | /* FIXME: Include the comments suggested by Paul. */ |
| 3233 | #ifndef __cplusplus |
| 3234 | /* Ultrix mips cc rejects this. */ |
| 3235 | typedef int charset[2]; |
| 3236 | const charset x; |
| 3237 | /* SunOS 4.1.1 cc rejects this. */ |
| 3238 | char const *const *ccp; |
| 3239 | char **p; |
| 3240 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 3241 | struct point {int x, y;}; |
| 3242 | static struct point const zero = {0,0}; |
| 3243 | /* AIX XL C 1.02.0.0 rejects this. |
| 3244 | It does not let you subtract one const X* pointer from another in |
| 3245 | an arm of an if-expression whose if-part is not a constant |
| 3246 | expression */ |
| 3247 | const char *g = "string"; |
| 3248 | ccp = &g + (g ? g-g : 0); |
| 3249 | /* HPUX 7.0 cc rejects these. */ |
| 3250 | ++ccp; |
| 3251 | p = (char**) ccp; |
| 3252 | ccp = (char const *const *) p; |
| 3253 | { /* SCO 3.2v4 cc rejects this. */ |
| 3254 | char *t; |
| 3255 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 3256 | |
| 3257 | *t++ = 0; |
| 3258 | } |
| 3259 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 3260 | int x[] = {25, 17}; |
| 3261 | const int *foo = &x[0]; |
| 3262 | ++foo; |
| 3263 | } |
| 3264 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 3265 | typedef const int *iptr; |
| 3266 | iptr p = 0; |
| 3267 | ++p; |
| 3268 | } |
| 3269 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 3270 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 3271 | struct s { int j; const int *ap[3]; }; |
| 3272 | struct s *b; b->j = 5; |
| 3273 | } |
| 3274 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 3275 | const int foo = 10; |
| 3276 | } |
| 3277 | #endif |
| 3278 | |
| 3279 | ; |
| 3280 | return 0; |
| 3281 | } |
| 3282 | _ACEOF |
| 3283 | rm -f conftest.$ac_objext |
| 3284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3285 | (eval $ac_compile) 2>&5 |
| 3286 | ac_status=$? |
| 3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3288 | (exit $ac_status); } && |
| 3289 | { ac_try='test -s conftest.$ac_objext' |
| 3290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3291 | (eval $ac_try) 2>&5 |
| 3292 | ac_status=$? |
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3294 | (exit $ac_status); }; }; then |
| 3295 | ac_cv_c_const=yes |
| 3296 | else |
| 3297 | echo "$as_me: failed program was:" >&5 |
| 3298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3299 | |
| 3300 | ac_cv_c_const=no |
| 3301 | fi |
| 3302 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3303 | fi |
| 3304 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 3305 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 3306 | if test $ac_cv_c_const = no; then |
| 3307 | |
| 3308 | cat >>confdefs.h <<\_ACEOF |
| 3309 | #define const |
| 3310 | _ACEOF |
| 3311 | |
| 3312 | fi |
| 3313 | |
| 3314 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
| 3315 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
| 3316 | if test "$ac_cv_prog_cc_stdc" != no; then |
| 3317 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3318 | echo "${ECHO_T}yes" >&6 |
| 3319 | |
| 3320 | cat >>confdefs.h <<\_ACEOF |
| 3321 | #define PROTOTYPES 1 |
| 3322 | _ACEOF |
| 3323 | |
| 3324 | |
| 3325 | cat >>confdefs.h <<\_ACEOF |
| 3326 | #define __PROTOTYPES 1 |
| 3327 | _ACEOF |
| 3328 | |
| 3329 | else |
| 3330 | echo "$as_me:$LINENO: result: no" >&5 |
| 3331 | echo "${ECHO_T}no" >&6 |
| 3332 | fi |
| 3333 | |
| 3334 | |
| 3335 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 3336 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 3337 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 3338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3339 | else |
| 3340 | cat >conftest.$ac_ext <<_ACEOF |
| 3341 | #line $LINENO "configure" |
| 3342 | /* confdefs.h. */ |
| 3343 | _ACEOF |
| 3344 | cat confdefs.h >>conftest.$ac_ext |
| 3345 | cat >>conftest.$ac_ext <<_ACEOF |
| 3346 | /* end confdefs.h. */ |
| 3347 | $ac_includes_default |
| 3348 | int |
| 3349 | main () |
| 3350 | { |
| 3351 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 3352 | test_array [0] = 0 |
| 3353 | |
| 3354 | ; |
| 3355 | return 0; |
| 3356 | } |
| 3357 | _ACEOF |
| 3358 | rm -f conftest.$ac_objext |
| 3359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3360 | (eval $ac_compile) 2>&5 |
| 3361 | ac_status=$? |
| 3362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3363 | (exit $ac_status); } && |
| 3364 | { ac_try='test -s conftest.$ac_objext' |
| 3365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3366 | (eval $ac_try) 2>&5 |
| 3367 | ac_status=$? |
| 3368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3369 | (exit $ac_status); }; }; then |
| 3370 | ac_cv_c_char_unsigned=no |
| 3371 | else |
| 3372 | echo "$as_me: failed program was:" >&5 |
| 3373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3374 | |
| 3375 | ac_cv_c_char_unsigned=yes |
| 3376 | fi |
| 3377 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3378 | fi |
| 3379 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 3380 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
| 3381 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 3382 | cat >>confdefs.h <<\_ACEOF |
| 3383 | #define __CHAR_UNSIGNED__ 1 |
| 3384 | _ACEOF |
| 3385 | |
| 3386 | fi |
| 3387 | |
| 3388 | |
| 3389 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 3390 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 3391 | if test "${ac_cv_type_signal+set}" = set; then |
| 3392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3393 | else |
| 3394 | cat >conftest.$ac_ext <<_ACEOF |
| 3395 | #line $LINENO "configure" |
| 3396 | /* confdefs.h. */ |
| 3397 | _ACEOF |
| 3398 | cat confdefs.h >>conftest.$ac_ext |
| 3399 | cat >>conftest.$ac_ext <<_ACEOF |
| 3400 | /* end confdefs.h. */ |
| 3401 | #include <sys/types.h> |
| 3402 | #include <signal.h> |
| 3403 | #ifdef signal |
| 3404 | # undef signal |
| 3405 | #endif |
| 3406 | #ifdef __cplusplus |
| 3407 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 3408 | #else |
| 3409 | void (*signal ()) (); |
| 3410 | #endif |
| 3411 | |
| 3412 | int |
| 3413 | main () |
| 3414 | { |
| 3415 | int i; |
| 3416 | ; |
| 3417 | return 0; |
| 3418 | } |
| 3419 | _ACEOF |
| 3420 | rm -f conftest.$ac_objext |
| 3421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3422 | (eval $ac_compile) 2>&5 |
| 3423 | ac_status=$? |
| 3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3425 | (exit $ac_status); } && |
| 3426 | { ac_try='test -s conftest.$ac_objext' |
| 3427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3428 | (eval $ac_try) 2>&5 |
| 3429 | ac_status=$? |
| 3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3431 | (exit $ac_status); }; }; then |
| 3432 | ac_cv_type_signal=void |
| 3433 | else |
| 3434 | echo "$as_me: failed program was:" >&5 |
| 3435 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3436 | |
| 3437 | ac_cv_type_signal=int |
| 3438 | fi |
| 3439 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3440 | fi |
| 3441 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 3442 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 3443 | |
| 3444 | cat >>confdefs.h <<_ACEOF |
| 3445 | #define RETSIGTYPE $ac_cv_type_signal |
| 3446 | _ACEOF |
| 3447 | |
| 3448 | |
| 3449 | |
| 3450 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 3451 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 3452 | if test "${ac_cv_type_size_t+set}" = set; then |
| 3453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3454 | else |
| 3455 | cat >conftest.$ac_ext <<_ACEOF |
| 3456 | #line $LINENO "configure" |
| 3457 | /* confdefs.h. */ |
| 3458 | _ACEOF |
| 3459 | cat confdefs.h >>conftest.$ac_ext |
| 3460 | cat >>conftest.$ac_ext <<_ACEOF |
| 3461 | /* end confdefs.h. */ |
| 3462 | $ac_includes_default |
| 3463 | int |
| 3464 | main () |
| 3465 | { |
| 3466 | if ((size_t *) 0) |
| 3467 | return 0; |
| 3468 | if (sizeof (size_t)) |
| 3469 | return 0; |
| 3470 | ; |
| 3471 | return 0; |
| 3472 | } |
| 3473 | _ACEOF |
| 3474 | rm -f conftest.$ac_objext |
| 3475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3476 | (eval $ac_compile) 2>&5 |
| 3477 | ac_status=$? |
| 3478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3479 | (exit $ac_status); } && |
| 3480 | { ac_try='test -s conftest.$ac_objext' |
| 3481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3482 | (eval $ac_try) 2>&5 |
| 3483 | ac_status=$? |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3485 | (exit $ac_status); }; }; then |
| 3486 | ac_cv_type_size_t=yes |
| 3487 | else |
| 3488 | echo "$as_me: failed program was:" >&5 |
| 3489 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3490 | |
| 3491 | ac_cv_type_size_t=no |
| 3492 | fi |
| 3493 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3494 | fi |
| 3495 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 3496 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 3497 | if test $ac_cv_type_size_t = yes; then |
| 3498 | : |
| 3499 | else |
| 3500 | |
| 3501 | cat >>confdefs.h <<_ACEOF |
| 3502 | #define size_t unsigned |
| 3503 | _ACEOF |
| 3504 | |
| 3505 | fi |
| 3506 | |
| 3507 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 3508 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
| 3509 | if test "${ac_cv_type_ssize_t+set}" = set; then |
| 3510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3511 | else |
| 3512 | cat >conftest.$ac_ext <<_ACEOF |
| 3513 | #line $LINENO "configure" |
| 3514 | /* confdefs.h. */ |
| 3515 | _ACEOF |
| 3516 | cat confdefs.h >>conftest.$ac_ext |
| 3517 | cat >>conftest.$ac_ext <<_ACEOF |
| 3518 | /* end confdefs.h. */ |
| 3519 | $ac_includes_default |
| 3520 | int |
| 3521 | main () |
| 3522 | { |
| 3523 | if ((ssize_t *) 0) |
| 3524 | return 0; |
| 3525 | if (sizeof (ssize_t)) |
| 3526 | return 0; |
| 3527 | ; |
| 3528 | return 0; |
| 3529 | } |
| 3530 | _ACEOF |
| 3531 | rm -f conftest.$ac_objext |
| 3532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3533 | (eval $ac_compile) 2>&5 |
| 3534 | ac_status=$? |
| 3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3536 | (exit $ac_status); } && |
| 3537 | { ac_try='test -s conftest.$ac_objext' |
| 3538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3539 | (eval $ac_try) 2>&5 |
| 3540 | ac_status=$? |
| 3541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3542 | (exit $ac_status); }; }; then |
| 3543 | ac_cv_type_ssize_t=yes |
| 3544 | else |
| 3545 | echo "$as_me: failed program was:" >&5 |
| 3546 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3547 | |
| 3548 | ac_cv_type_ssize_t=no |
| 3549 | fi |
| 3550 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3551 | fi |
| 3552 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 3553 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
| 3554 | if test $ac_cv_type_ssize_t = yes; then |
| 3555 | : |
| 3556 | else |
| 3557 | |
| 3558 | cat >>confdefs.h <<_ACEOF |
| 3559 | #define ssize_t int |
| 3560 | _ACEOF |
| 3561 | |
| 3562 | fi |
| 3563 | |
| 3564 | |
| 3565 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
| 3566 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
| 3567 | if test "${ac_cv_header_stat_broken+set}" = set; then |
| 3568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3569 | else |
| 3570 | cat >conftest.$ac_ext <<_ACEOF |
| 3571 | #line $LINENO "configure" |
| 3572 | /* confdefs.h. */ |
| 3573 | _ACEOF |
| 3574 | cat confdefs.h >>conftest.$ac_ext |
| 3575 | cat >>conftest.$ac_ext <<_ACEOF |
| 3576 | /* end confdefs.h. */ |
| 3577 | #include <sys/types.h> |
| 3578 | #include <sys/stat.h> |
| 3579 | |
| 3580 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 3581 | # if S_ISBLK (S_IFDIR) |
| 3582 | You lose. |
| 3583 | # endif |
| 3584 | #endif |
| 3585 | |
| 3586 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 3587 | # if S_ISBLK (S_IFCHR) |
| 3588 | You lose. |
| 3589 | # endif |
| 3590 | #endif |
| 3591 | |
| 3592 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 3593 | # if S_ISLNK (S_IFREG) |
| 3594 | You lose. |
| 3595 | # endif |
| 3596 | #endif |
| 3597 | |
| 3598 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 3599 | # if S_ISSOCK (S_IFREG) |
| 3600 | You lose. |
| 3601 | # endif |
| 3602 | #endif |
| 3603 | |
| 3604 | _ACEOF |
| 3605 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3606 | $EGREP "You lose" >/dev/null 2>&1; then |
| 3607 | ac_cv_header_stat_broken=yes |
| 3608 | else |
| 3609 | ac_cv_header_stat_broken=no |
| 3610 | fi |
| 3611 | rm -f conftest* |
| 3612 | |
| 3613 | fi |
| 3614 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
| 3615 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
| 3616 | if test $ac_cv_header_stat_broken = yes; then |
| 3617 | |
| 3618 | cat >>confdefs.h <<\_ACEOF |
| 3619 | #define STAT_MACROS_BROKEN 1 |
| 3620 | _ACEOF |
| 3621 | |
| 3622 | fi |
| 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | |
| 3629 | ac_header_dirent=no |
| 3630 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 3631 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 3632 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 3633 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 3634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3636 | else |
| 3637 | cat >conftest.$ac_ext <<_ACEOF |
| 3638 | #line $LINENO "configure" |
| 3639 | /* confdefs.h. */ |
| 3640 | _ACEOF |
| 3641 | cat confdefs.h >>conftest.$ac_ext |
| 3642 | cat >>conftest.$ac_ext <<_ACEOF |
| 3643 | /* end confdefs.h. */ |
| 3644 | #include <sys/types.h> |
| 3645 | #include <$ac_hdr> |
| 3646 | |
| 3647 | int |
| 3648 | main () |
| 3649 | { |
| 3650 | if ((DIR *) 0) |
| 3651 | return 0; |
| 3652 | ; |
| 3653 | return 0; |
| 3654 | } |
| 3655 | _ACEOF |
| 3656 | rm -f conftest.$ac_objext |
| 3657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3658 | (eval $ac_compile) 2>&5 |
| 3659 | ac_status=$? |
| 3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3661 | (exit $ac_status); } && |
| 3662 | { ac_try='test -s conftest.$ac_objext' |
| 3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3664 | (eval $ac_try) 2>&5 |
| 3665 | ac_status=$? |
| 3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3667 | (exit $ac_status); }; }; then |
| 3668 | eval "$as_ac_Header=yes" |
| 3669 | else |
| 3670 | echo "$as_me: failed program was:" >&5 |
| 3671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3672 | |
| 3673 | eval "$as_ac_Header=no" |
| 3674 | fi |
| 3675 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3676 | fi |
| 3677 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3678 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3679 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3680 | cat >>confdefs.h <<_ACEOF |
| 3681 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 3682 | _ACEOF |
| 3683 | |
| 3684 | ac_header_dirent=$ac_hdr; break |
| 3685 | fi |
| 3686 | |
| 3687 | done |
| 3688 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 3689 | if test $ac_header_dirent = dirent.h; then |
| 3690 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 3691 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 3692 | if test "${ac_cv_search_opendir+set}" = set; then |
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3694 | else |
| 3695 | ac_func_search_save_LIBS=$LIBS |
| 3696 | ac_cv_search_opendir=no |
| 3697 | cat >conftest.$ac_ext <<_ACEOF |
| 3698 | #line $LINENO "configure" |
| 3699 | /* confdefs.h. */ |
| 3700 | _ACEOF |
| 3701 | cat confdefs.h >>conftest.$ac_ext |
| 3702 | cat >>conftest.$ac_ext <<_ACEOF |
| 3703 | /* end confdefs.h. */ |
| 3704 | |
| 3705 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3706 | #ifdef __cplusplus |
| 3707 | extern "C" |
| 3708 | #endif |
| 3709 | /* We use char because int might match the return type of a gcc2 |
| 3710 | builtin and then its argument prototype would still apply. */ |
| 3711 | char opendir (); |
| 3712 | int |
| 3713 | main () |
| 3714 | { |
| 3715 | opendir (); |
| 3716 | ; |
| 3717 | return 0; |
| 3718 | } |
| 3719 | _ACEOF |
| 3720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3722 | (eval $ac_link) 2>&5 |
| 3723 | ac_status=$? |
| 3724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3725 | (exit $ac_status); } && |
| 3726 | { ac_try='test -s conftest$ac_exeext' |
| 3727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3728 | (eval $ac_try) 2>&5 |
| 3729 | ac_status=$? |
| 3730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3731 | (exit $ac_status); }; }; then |
| 3732 | ac_cv_search_opendir="none required" |
| 3733 | else |
| 3734 | echo "$as_me: failed program was:" >&5 |
| 3735 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3736 | |
| 3737 | fi |
| 3738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3739 | if test "$ac_cv_search_opendir" = no; then |
| 3740 | for ac_lib in dir; do |
| 3741 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 3742 | cat >conftest.$ac_ext <<_ACEOF |
| 3743 | #line $LINENO "configure" |
| 3744 | /* confdefs.h. */ |
| 3745 | _ACEOF |
| 3746 | cat confdefs.h >>conftest.$ac_ext |
| 3747 | cat >>conftest.$ac_ext <<_ACEOF |
| 3748 | /* end confdefs.h. */ |
| 3749 | |
| 3750 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3751 | #ifdef __cplusplus |
| 3752 | extern "C" |
| 3753 | #endif |
| 3754 | /* We use char because int might match the return type of a gcc2 |
| 3755 | builtin and then its argument prototype would still apply. */ |
| 3756 | char opendir (); |
| 3757 | int |
| 3758 | main () |
| 3759 | { |
| 3760 | opendir (); |
| 3761 | ; |
| 3762 | return 0; |
| 3763 | } |
| 3764 | _ACEOF |
| 3765 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3767 | (eval $ac_link) 2>&5 |
| 3768 | ac_status=$? |
| 3769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3770 | (exit $ac_status); } && |
| 3771 | { ac_try='test -s conftest$ac_exeext' |
| 3772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3773 | (eval $ac_try) 2>&5 |
| 3774 | ac_status=$? |
| 3775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3776 | (exit $ac_status); }; }; then |
| 3777 | ac_cv_search_opendir="-l$ac_lib" |
| 3778 | break |
| 3779 | else |
| 3780 | echo "$as_me: failed program was:" >&5 |
| 3781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3782 | |
| 3783 | fi |
| 3784 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3785 | done |
| 3786 | fi |
| 3787 | LIBS=$ac_func_search_save_LIBS |
| 3788 | fi |
| 3789 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 3790 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 3791 | if test "$ac_cv_search_opendir" != no; then |
| 3792 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 3793 | |
| 3794 | fi |
| 3795 | |
| 3796 | else |
| 3797 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 3798 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 3799 | if test "${ac_cv_search_opendir+set}" = set; then |
| 3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3801 | else |
| 3802 | ac_func_search_save_LIBS=$LIBS |
| 3803 | ac_cv_search_opendir=no |
| 3804 | cat >conftest.$ac_ext <<_ACEOF |
| 3805 | #line $LINENO "configure" |
| 3806 | /* confdefs.h. */ |
| 3807 | _ACEOF |
| 3808 | cat confdefs.h >>conftest.$ac_ext |
| 3809 | cat >>conftest.$ac_ext <<_ACEOF |
| 3810 | /* end confdefs.h. */ |
| 3811 | |
| 3812 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3813 | #ifdef __cplusplus |
| 3814 | extern "C" |
| 3815 | #endif |
| 3816 | /* We use char because int might match the return type of a gcc2 |
| 3817 | builtin and then its argument prototype would still apply. */ |
| 3818 | char opendir (); |
| 3819 | int |
| 3820 | main () |
| 3821 | { |
| 3822 | opendir (); |
| 3823 | ; |
| 3824 | return 0; |
| 3825 | } |
| 3826 | _ACEOF |
| 3827 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3829 | (eval $ac_link) 2>&5 |
| 3830 | ac_status=$? |
| 3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3832 | (exit $ac_status); } && |
| 3833 | { ac_try='test -s conftest$ac_exeext' |
| 3834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3835 | (eval $ac_try) 2>&5 |
| 3836 | ac_status=$? |
| 3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3838 | (exit $ac_status); }; }; then |
| 3839 | ac_cv_search_opendir="none required" |
| 3840 | else |
| 3841 | echo "$as_me: failed program was:" >&5 |
| 3842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3843 | |
| 3844 | fi |
| 3845 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3846 | if test "$ac_cv_search_opendir" = no; then |
| 3847 | for ac_lib in x; do |
| 3848 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 3849 | cat >conftest.$ac_ext <<_ACEOF |
| 3850 | #line $LINENO "configure" |
| 3851 | /* confdefs.h. */ |
| 3852 | _ACEOF |
| 3853 | cat confdefs.h >>conftest.$ac_ext |
| 3854 | cat >>conftest.$ac_ext <<_ACEOF |
| 3855 | /* end confdefs.h. */ |
| 3856 | |
| 3857 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3858 | #ifdef __cplusplus |
| 3859 | extern "C" |
| 3860 | #endif |
| 3861 | /* We use char because int might match the return type of a gcc2 |
| 3862 | builtin and then its argument prototype would still apply. */ |
| 3863 | char opendir (); |
| 3864 | int |
| 3865 | main () |
| 3866 | { |
| 3867 | opendir (); |
| 3868 | ; |
| 3869 | return 0; |
| 3870 | } |
| 3871 | _ACEOF |
| 3872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3874 | (eval $ac_link) 2>&5 |
| 3875 | ac_status=$? |
| 3876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3877 | (exit $ac_status); } && |
| 3878 | { ac_try='test -s conftest$ac_exeext' |
| 3879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3880 | (eval $ac_try) 2>&5 |
| 3881 | ac_status=$? |
| 3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3883 | (exit $ac_status); }; }; then |
| 3884 | ac_cv_search_opendir="-l$ac_lib" |
| 3885 | break |
| 3886 | else |
| 3887 | echo "$as_me: failed program was:" >&5 |
| 3888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3889 | |
| 3890 | fi |
| 3891 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3892 | done |
| 3893 | fi |
| 3894 | LIBS=$ac_func_search_save_LIBS |
| 3895 | fi |
| 3896 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 3897 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 3898 | if test "$ac_cv_search_opendir" != no; then |
| 3899 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 3900 | |
| 3901 | fi |
| 3902 | |
| 3903 | fi |
| 3904 | |
| 3905 | |
| 3906 | |
| 3907 | |
| 3908 | |
| 3909 | |
| 3910 | |
| 3911 | |
| 3912 | |
| 3913 | |
| 3914 | |
| 3915 | |
| 3916 | |
| 3917 | |
| 3918 | for ac_func in lstat memmove putenv select setenv setlocale \ |
| 3919 | strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit |
| 3920 | do |
| 3921 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 3922 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 3923 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 3924 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3926 | else |
| 3927 | cat >conftest.$ac_ext <<_ACEOF |
| 3928 | #line $LINENO "configure" |
| 3929 | /* confdefs.h. */ |
| 3930 | _ACEOF |
| 3931 | cat confdefs.h >>conftest.$ac_ext |
| 3932 | cat >>conftest.$ac_ext <<_ACEOF |
| 3933 | /* end confdefs.h. */ |
| 3934 | /* System header to define __stub macros and hopefully few prototypes, |
| 3935 | which can conflict with char $ac_func (); below. |
| 3936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3937 | <limits.h> exists even on freestanding compilers. */ |
| 3938 | #ifdef __STDC__ |
| 3939 | # include <limits.h> |
| 3940 | #else |
| 3941 | # include <assert.h> |
| 3942 | #endif |
| 3943 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3944 | #ifdef __cplusplus |
| 3945 | extern "C" |
| 3946 | { |
| 3947 | #endif |
| 3948 | /* We use char because int might match the return type of a gcc2 |
| 3949 | builtin and then its argument prototype would still apply. */ |
| 3950 | char $ac_func (); |
| 3951 | /* The GNU C library defines this for functions which it implements |
| 3952 | to always fail with ENOSYS. Some functions are actually named |
| 3953 | something starting with __ and the normal name is an alias. */ |
| 3954 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3955 | choke me |
| 3956 | #else |
| 3957 | char (*f) () = $ac_func; |
| 3958 | #endif |
| 3959 | #ifdef __cplusplus |
| 3960 | } |
| 3961 | #endif |
| 3962 | |
| 3963 | int |
| 3964 | main () |
| 3965 | { |
| 3966 | return f != $ac_func; |
| 3967 | ; |
| 3968 | return 0; |
| 3969 | } |
| 3970 | _ACEOF |
| 3971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3973 | (eval $ac_link) 2>&5 |
| 3974 | ac_status=$? |
| 3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3976 | (exit $ac_status); } && |
| 3977 | { ac_try='test -s conftest$ac_exeext' |
| 3978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3979 | (eval $ac_try) 2>&5 |
| 3980 | ac_status=$? |
| 3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3982 | (exit $ac_status); }; }; then |
| 3983 | eval "$as_ac_var=yes" |
| 3984 | else |
| 3985 | echo "$as_me: failed program was:" >&5 |
| 3986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3987 | |
| 3988 | eval "$as_ac_var=no" |
| 3989 | fi |
| 3990 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3991 | fi |
| 3992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 3993 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 3994 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 3995 | cat >>confdefs.h <<_ACEOF |
| 3996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 3997 | _ACEOF |
| 3998 | |
| 3999 | fi |
| 4000 | done |
| 4001 | |
| 4002 | |
| 4003 | echo "$as_me:$LINENO: checking for working strcoll" >&5 |
| 4004 | echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 |
| 4005 | if test "${ac_cv_func_strcoll_works+set}" = set; then |
| 4006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4007 | else |
| 4008 | if test "$cross_compiling" = yes; then |
| 4009 | ac_cv_func_strcoll_works=no |
| 4010 | else |
| 4011 | cat >conftest.$ac_ext <<_ACEOF |
| 4012 | #line $LINENO "configure" |
| 4013 | /* confdefs.h. */ |
| 4014 | _ACEOF |
| 4015 | cat confdefs.h >>conftest.$ac_ext |
| 4016 | cat >>conftest.$ac_ext <<_ACEOF |
| 4017 | /* end confdefs.h. */ |
| 4018 | $ac_includes_default |
| 4019 | int |
| 4020 | main () |
| 4021 | { |
| 4022 | exit (strcoll ("abc", "def") >= 0 || |
| 4023 | strcoll ("ABC", "DEF") >= 0 || |
| 4024 | strcoll ("123", "456") >= 0) |
| 4025 | ; |
| 4026 | return 0; |
| 4027 | } |
| 4028 | _ACEOF |
| 4029 | rm -f conftest$ac_exeext |
| 4030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4031 | (eval $ac_link) 2>&5 |
| 4032 | ac_status=$? |
| 4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4034 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4036 | (eval $ac_try) 2>&5 |
| 4037 | ac_status=$? |
| 4038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4039 | (exit $ac_status); }; }; then |
| 4040 | ac_cv_func_strcoll_works=yes |
| 4041 | else |
| 4042 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4043 | echo "$as_me: failed program was:" >&5 |
| 4044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4045 | |
| 4046 | ( exit $ac_status ) |
| 4047 | ac_cv_func_strcoll_works=no |
| 4048 | fi |
| 4049 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4050 | fi |
| 4051 | fi |
| 4052 | echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
| 4053 | echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 |
| 4054 | if test $ac_cv_func_strcoll_works = yes; then |
| 4055 | |
| 4056 | cat >>confdefs.h <<\_ACEOF |
| 4057 | #define HAVE_STRCOLL 1 |
| 4058 | _ACEOF |
| 4059 | |
| 4060 | fi |
| 4061 | |
| 4062 | |
| 4063 | |
| 4064 | |
| 4065 | |
| 4066 | |
| 4067 | |
| 4068 | |
| 4069 | |
| 4070 | |
| 4071 | |
| 4072 | |
| 4073 | |
| 4074 | |
| 4075 | |
| 4076 | |
| 4077 | |
| 4078 | |
| 4079 | |
| 4080 | for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ |
| 4081 | limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \ |
| 4082 | termcap.h termios.h termio.h sys/file.h locale.h memory.h |
| 4083 | do |
| 4084 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4085 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4086 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4087 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4090 | fi |
| 4091 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4092 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4093 | else |
| 4094 | # Is the header compilable? |
| 4095 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4096 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4097 | cat >conftest.$ac_ext <<_ACEOF |
| 4098 | #line $LINENO "configure" |
| 4099 | /* confdefs.h. */ |
| 4100 | _ACEOF |
| 4101 | cat confdefs.h >>conftest.$ac_ext |
| 4102 | cat >>conftest.$ac_ext <<_ACEOF |
| 4103 | /* end confdefs.h. */ |
| 4104 | $ac_includes_default |
| 4105 | #include <$ac_header> |
| 4106 | _ACEOF |
| 4107 | rm -f conftest.$ac_objext |
| 4108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4109 | (eval $ac_compile) 2>&5 |
| 4110 | ac_status=$? |
| 4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4112 | (exit $ac_status); } && |
| 4113 | { ac_try='test -s conftest.$ac_objext' |
| 4114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4115 | (eval $ac_try) 2>&5 |
| 4116 | ac_status=$? |
| 4117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4118 | (exit $ac_status); }; }; then |
| 4119 | ac_header_compiler=yes |
| 4120 | else |
| 4121 | echo "$as_me: failed program was:" >&5 |
| 4122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4123 | |
| 4124 | ac_header_compiler=no |
| 4125 | fi |
| 4126 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4127 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4128 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4129 | |
| 4130 | # Is the header present? |
| 4131 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4132 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4133 | cat >conftest.$ac_ext <<_ACEOF |
| 4134 | #line $LINENO "configure" |
| 4135 | /* confdefs.h. */ |
| 4136 | _ACEOF |
| 4137 | cat confdefs.h >>conftest.$ac_ext |
| 4138 | cat >>conftest.$ac_ext <<_ACEOF |
| 4139 | /* end confdefs.h. */ |
| 4140 | #include <$ac_header> |
| 4141 | _ACEOF |
| 4142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4144 | ac_status=$? |
| 4145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4146 | rm -f conftest.er1 |
| 4147 | cat conftest.err >&5 |
| 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4149 | (exit $ac_status); } >/dev/null; then |
| 4150 | if test -s conftest.err; then |
| 4151 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4152 | else |
| 4153 | ac_cpp_err= |
| 4154 | fi |
| 4155 | else |
| 4156 | ac_cpp_err=yes |
| 4157 | fi |
| 4158 | if test -z "$ac_cpp_err"; then |
| 4159 | ac_header_preproc=yes |
| 4160 | else |
| 4161 | echo "$as_me: failed program was:" >&5 |
| 4162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4163 | |
| 4164 | ac_header_preproc=no |
| 4165 | fi |
| 4166 | rm -f conftest.err conftest.$ac_ext |
| 4167 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4168 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4169 | |
| 4170 | # So? What about this header? |
| 4171 | case $ac_header_compiler:$ac_header_preproc in |
| 4172 | yes:no ) |
| 4173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4177 | ( |
| 4178 | cat <<\_ASBOX |
| 4179 | ## ------------------------------------ ## |
| 4180 | ## Report this to bug-autoconf@gnu.org. ## |
| 4181 | ## ------------------------------------ ## |
| 4182 | _ASBOX |
| 4183 | ) | |
| 4184 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4185 | ;; |
| 4186 | no:yes ) |
| 4187 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4188 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4189 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4190 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4192 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 4193 | ( |
| 4194 | cat <<\_ASBOX |
| 4195 | ## ------------------------------------ ## |
| 4196 | ## Report this to bug-autoconf@gnu.org. ## |
| 4197 | ## ------------------------------------ ## |
| 4198 | _ASBOX |
| 4199 | ) | |
| 4200 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4201 | ;; |
| 4202 | esac |
| 4203 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4204 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4205 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4207 | else |
| 4208 | eval "$as_ac_Header=$ac_header_preproc" |
| 4209 | fi |
| 4210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4212 | |
| 4213 | fi |
| 4214 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4215 | cat >>confdefs.h <<_ACEOF |
| 4216 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4217 | _ACEOF |
| 4218 | |
| 4219 | fi |
| 4220 | |
| 4221 | done |
| 4222 | |
| 4223 | |
| 4224 | |
| 4225 | echo "$as_me:$LINENO: checking for type of signal functions" >&5 |
| 4226 | echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6 |
| 4227 | if test "${bash_cv_signal_vintage+set}" = set; then |
| 4228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4229 | else |
| 4230 | |
| 4231 | cat >conftest.$ac_ext <<_ACEOF |
| 4232 | #line $LINENO "configure" |
| 4233 | /* confdefs.h. */ |
| 4234 | _ACEOF |
| 4235 | cat confdefs.h >>conftest.$ac_ext |
| 4236 | cat >>conftest.$ac_ext <<_ACEOF |
| 4237 | /* end confdefs.h. */ |
| 4238 | #include <signal.h> |
| 4239 | int |
| 4240 | main () |
| 4241 | { |
| 4242 | |
| 4243 | sigset_t ss; |
| 4244 | struct sigaction sa; |
| 4245 | sigemptyset(&ss); sigsuspend(&ss); |
| 4246 | sigaction(SIGINT, &sa, (struct sigaction *) 0); |
| 4247 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); |
| 4248 | |
| 4249 | ; |
| 4250 | return 0; |
| 4251 | } |
| 4252 | _ACEOF |
| 4253 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4255 | (eval $ac_link) 2>&5 |
| 4256 | ac_status=$? |
| 4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4258 | (exit $ac_status); } && |
| 4259 | { ac_try='test -s conftest$ac_exeext' |
| 4260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4261 | (eval $ac_try) 2>&5 |
| 4262 | ac_status=$? |
| 4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4264 | (exit $ac_status); }; }; then |
| 4265 | bash_cv_signal_vintage=posix |
| 4266 | else |
| 4267 | echo "$as_me: failed program was:" >&5 |
| 4268 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4269 | |
| 4270 | |
| 4271 | cat >conftest.$ac_ext <<_ACEOF |
| 4272 | #line $LINENO "configure" |
| 4273 | /* confdefs.h. */ |
| 4274 | _ACEOF |
| 4275 | cat confdefs.h >>conftest.$ac_ext |
| 4276 | cat >>conftest.$ac_ext <<_ACEOF |
| 4277 | /* end confdefs.h. */ |
| 4278 | #include <signal.h> |
| 4279 | int |
| 4280 | main () |
| 4281 | { |
| 4282 | |
| 4283 | int mask = sigmask(SIGINT); |
| 4284 | sigsetmask(mask); sigblock(mask); sigpause(mask); |
| 4285 | |
| 4286 | ; |
| 4287 | return 0; |
| 4288 | } |
| 4289 | _ACEOF |
| 4290 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4292 | (eval $ac_link) 2>&5 |
| 4293 | ac_status=$? |
| 4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4295 | (exit $ac_status); } && |
| 4296 | { ac_try='test -s conftest$ac_exeext' |
| 4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4298 | (eval $ac_try) 2>&5 |
| 4299 | ac_status=$? |
| 4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4301 | (exit $ac_status); }; }; then |
| 4302 | bash_cv_signal_vintage=4.2bsd |
| 4303 | else |
| 4304 | echo "$as_me: failed program was:" >&5 |
| 4305 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4306 | |
| 4307 | |
| 4308 | cat >conftest.$ac_ext <<_ACEOF |
| 4309 | #line $LINENO "configure" |
| 4310 | /* confdefs.h. */ |
| 4311 | _ACEOF |
| 4312 | cat confdefs.h >>conftest.$ac_ext |
| 4313 | cat >>conftest.$ac_ext <<_ACEOF |
| 4314 | /* end confdefs.h. */ |
| 4315 | |
| 4316 | #include <signal.h> |
| 4317 | RETSIGTYPE foo() { } |
| 4318 | int |
| 4319 | main () |
| 4320 | { |
| 4321 | |
| 4322 | int mask = sigmask(SIGINT); |
| 4323 | sigset(SIGINT, foo); sigrelse(SIGINT); |
| 4324 | sighold(SIGINT); sigpause(SIGINT); |
| 4325 | |
| 4326 | ; |
| 4327 | return 0; |
| 4328 | } |
| 4329 | _ACEOF |
| 4330 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4332 | (eval $ac_link) 2>&5 |
| 4333 | ac_status=$? |
| 4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4335 | (exit $ac_status); } && |
| 4336 | { ac_try='test -s conftest$ac_exeext' |
| 4337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4338 | (eval $ac_try) 2>&5 |
| 4339 | ac_status=$? |
| 4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4341 | (exit $ac_status); }; }; then |
| 4342 | bash_cv_signal_vintage=svr3 |
| 4343 | else |
| 4344 | echo "$as_me: failed program was:" >&5 |
| 4345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4346 | |
| 4347 | bash_cv_signal_vintage=v7 |
| 4348 | |
| 4349 | fi |
| 4350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4351 | |
| 4352 | fi |
| 4353 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4354 | |
| 4355 | fi |
| 4356 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4357 | |
| 4358 | fi |
| 4359 | |
| 4360 | echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 |
| 4361 | echo "${ECHO_T}$bash_cv_signal_vintage" >&6 |
| 4362 | if test "$bash_cv_signal_vintage" = posix; then |
| 4363 | cat >>confdefs.h <<\_ACEOF |
| 4364 | #define HAVE_POSIX_SIGNALS 1 |
| 4365 | _ACEOF |
| 4366 | |
| 4367 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then |
| 4368 | cat >>confdefs.h <<\_ACEOF |
| 4369 | #define HAVE_BSD_SIGNALS 1 |
| 4370 | _ACEOF |
| 4371 | |
| 4372 | elif test "$bash_cv_signal_vintage" = svr3; then |
| 4373 | cat >>confdefs.h <<\_ACEOF |
| 4374 | #define HAVE_USG_SIGHOLD 1 |
| 4375 | _ACEOF |
| 4376 | |
| 4377 | fi |
| 4378 | |
| 4379 | |
| 4380 | |
| 4381 | echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 |
| 4382 | echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6 |
| 4383 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then |
| 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4385 | else |
| 4386 | if test "$cross_compiling" = yes; then |
| 4387 | { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
| 4388 | echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} |
| 4389 | bash_cv_must_reinstall_sighandlers=no |
| 4390 | |
| 4391 | else |
| 4392 | cat >conftest.$ac_ext <<_ACEOF |
| 4393 | #line $LINENO "configure" |
| 4394 | /* confdefs.h. */ |
| 4395 | _ACEOF |
| 4396 | cat confdefs.h >>conftest.$ac_ext |
| 4397 | cat >>conftest.$ac_ext <<_ACEOF |
| 4398 | /* end confdefs.h. */ |
| 4399 | |
| 4400 | #include <signal.h> |
| 4401 | #ifdef HAVE_UNISTD_H |
| 4402 | #include <unistd.h> |
| 4403 | #endif |
| 4404 | |
| 4405 | typedef RETSIGTYPE sigfunc(); |
| 4406 | |
| 4407 | int nsigint; |
| 4408 | |
| 4409 | #ifdef HAVE_POSIX_SIGNALS |
| 4410 | sigfunc * |
| 4411 | set_signal_handler(sig, handler) |
| 4412 | int sig; |
| 4413 | sigfunc *handler; |
| 4414 | { |
| 4415 | struct sigaction act, oact; |
| 4416 | act.sa_handler = handler; |
| 4417 | act.sa_flags = 0; |
| 4418 | sigemptyset (&act.sa_mask); |
| 4419 | sigemptyset (&oact.sa_mask); |
| 4420 | sigaction (sig, &act, &oact); |
| 4421 | return (oact.sa_handler); |
| 4422 | } |
| 4423 | #else |
| 4424 | #define set_signal_handler(s, h) signal(s, h) |
| 4425 | #endif |
| 4426 | |
| 4427 | RETSIGTYPE |
| 4428 | sigint(s) |
| 4429 | int s; |
| 4430 | { |
| 4431 | nsigint++; |
| 4432 | } |
| 4433 | |
| 4434 | main() |
| 4435 | { |
| 4436 | nsigint = 0; |
| 4437 | set_signal_handler(SIGINT, sigint); |
| 4438 | kill((int)getpid(), SIGINT); |
| 4439 | kill((int)getpid(), SIGINT); |
| 4440 | exit(nsigint != 2); |
| 4441 | } |
| 4442 | |
| 4443 | _ACEOF |
| 4444 | rm -f conftest$ac_exeext |
| 4445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4446 | (eval $ac_link) 2>&5 |
| 4447 | ac_status=$? |
| 4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4449 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4451 | (eval $ac_try) 2>&5 |
| 4452 | ac_status=$? |
| 4453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4454 | (exit $ac_status); }; }; then |
| 4455 | bash_cv_must_reinstall_sighandlers=no |
| 4456 | else |
| 4457 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4458 | echo "$as_me: failed program was:" >&5 |
| 4459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4460 | |
| 4461 | ( exit $ac_status ) |
| 4462 | bash_cv_must_reinstall_sighandlers=yes |
| 4463 | fi |
| 4464 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4465 | fi |
| 4466 | fi |
| 4467 | |
| 4468 | echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 |
| 4469 | echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6 |
| 4470 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
| 4471 | cat >>confdefs.h <<\_ACEOF |
| 4472 | #define MUST_REINSTALL_SIGHANDLERS 1 |
| 4473 | _ACEOF |
| 4474 | |
| 4475 | fi |
| 4476 | |
| 4477 | |
| 4478 | |
| 4479 | echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 |
| 4480 | echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6 |
| 4481 | if test "${bash_cv_func_sigsetjmp+set}" = set; then |
| 4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4483 | else |
| 4484 | if test "$cross_compiling" = yes; then |
| 4485 | { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
| 4486 | echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} |
| 4487 | bash_cv_func_sigsetjmp=missing |
| 4488 | |
| 4489 | else |
| 4490 | cat >conftest.$ac_ext <<_ACEOF |
| 4491 | #line $LINENO "configure" |
| 4492 | /* confdefs.h. */ |
| 4493 | _ACEOF |
| 4494 | cat confdefs.h >>conftest.$ac_ext |
| 4495 | cat >>conftest.$ac_ext <<_ACEOF |
| 4496 | /* end confdefs.h. */ |
| 4497 | |
| 4498 | #ifdef HAVE_UNISTD_H |
| 4499 | #include <unistd.h> |
| 4500 | #endif |
| 4501 | #include <sys/types.h> |
| 4502 | #include <signal.h> |
| 4503 | #include <setjmp.h> |
| 4504 | |
| 4505 | main() |
| 4506 | { |
| 4507 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) |
| 4508 | exit (1); |
| 4509 | #else |
| 4510 | |
| 4511 | int code; |
| 4512 | sigset_t set, oset; |
| 4513 | sigjmp_buf xx; |
| 4514 | |
| 4515 | /* get the mask */ |
| 4516 | sigemptyset(&set); |
| 4517 | sigemptyset(&oset); |
| 4518 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); |
| 4519 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); |
| 4520 | |
| 4521 | /* save it */ |
| 4522 | code = sigsetjmp(xx, 1); |
| 4523 | if (code) |
| 4524 | exit(0); /* could get sigmask and compare to oset here. */ |
| 4525 | |
| 4526 | /* change it */ |
| 4527 | sigaddset(&set, SIGINT); |
| 4528 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); |
| 4529 | |
| 4530 | /* and siglongjmp */ |
| 4531 | siglongjmp(xx, 10); |
| 4532 | exit(1); |
| 4533 | #endif |
| 4534 | } |
| 4535 | _ACEOF |
| 4536 | rm -f conftest$ac_exeext |
| 4537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4538 | (eval $ac_link) 2>&5 |
| 4539 | ac_status=$? |
| 4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4543 | (eval $ac_try) 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); }; }; then |
| 4547 | bash_cv_func_sigsetjmp=present |
| 4548 | else |
| 4549 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4550 | echo "$as_me: failed program was:" >&5 |
| 4551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4552 | |
| 4553 | ( exit $ac_status ) |
| 4554 | bash_cv_func_sigsetjmp=missing |
| 4555 | fi |
| 4556 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4557 | fi |
| 4558 | fi |
| 4559 | |
| 4560 | echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 |
| 4561 | echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6 |
| 4562 | if test $bash_cv_func_sigsetjmp = present; then |
| 4563 | cat >>confdefs.h <<\_ACEOF |
| 4564 | #define HAVE_POSIX_SIGSETJMP 1 |
| 4565 | _ACEOF |
| 4566 | |
| 4567 | fi |
| 4568 | |
| 4569 | echo "$as_me:$LINENO: checking for lstat" >&5 |
| 4570 | echo $ECHO_N "checking for lstat... $ECHO_C" >&6 |
| 4571 | if test "${bash_cv_func_lstat+set}" = set; then |
| 4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4573 | else |
| 4574 | cat >conftest.$ac_ext <<_ACEOF |
| 4575 | #line $LINENO "configure" |
| 4576 | /* confdefs.h. */ |
| 4577 | _ACEOF |
| 4578 | cat confdefs.h >>conftest.$ac_ext |
| 4579 | cat >>conftest.$ac_ext <<_ACEOF |
| 4580 | /* end confdefs.h. */ |
| 4581 | |
| 4582 | #include <sys/types.h> |
| 4583 | #include <sys/stat.h> |
| 4584 | |
| 4585 | int |
| 4586 | main () |
| 4587 | { |
| 4588 | lstat(".",(struct stat *)0); |
| 4589 | ; |
| 4590 | return 0; |
| 4591 | } |
| 4592 | _ACEOF |
| 4593 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4595 | (eval $ac_link) 2>&5 |
| 4596 | ac_status=$? |
| 4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4598 | (exit $ac_status); } && |
| 4599 | { ac_try='test -s conftest$ac_exeext' |
| 4600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4601 | (eval $ac_try) 2>&5 |
| 4602 | ac_status=$? |
| 4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4604 | (exit $ac_status); }; }; then |
| 4605 | bash_cv_func_lstat=yes |
| 4606 | else |
| 4607 | echo "$as_me: failed program was:" >&5 |
| 4608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4609 | |
| 4610 | bash_cv_func_lstat=no |
| 4611 | fi |
| 4612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4613 | fi |
| 4614 | echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 |
| 4615 | echo "${ECHO_T}$bash_cv_func_lstat" >&6 |
| 4616 | if test $bash_cv_func_lstat = yes; then |
| 4617 | cat >>confdefs.h <<\_ACEOF |
| 4618 | #define HAVE_LSTAT 1 |
| 4619 | _ACEOF |
| 4620 | |
| 4621 | fi |
| 4622 | |
| 4623 | |
| 4624 | echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 |
| 4625 | echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6 |
| 4626 | if test "${bash_cv_func_strcoll_broken+set}" = set; then |
| 4627 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4628 | else |
| 4629 | if test "$cross_compiling" = yes; then |
| 4630 | { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
| 4631 | echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} |
| 4632 | bash_cv_func_strcoll_broken=no |
| 4633 | |
| 4634 | else |
| 4635 | cat >conftest.$ac_ext <<_ACEOF |
| 4636 | #line $LINENO "configure" |
| 4637 | /* confdefs.h. */ |
| 4638 | _ACEOF |
| 4639 | cat confdefs.h >>conftest.$ac_ext |
| 4640 | cat >>conftest.$ac_ext <<_ACEOF |
| 4641 | /* end confdefs.h. */ |
| 4642 | |
| 4643 | #include <stdio.h> |
| 4644 | #if defined (HAVE_LOCALE_H) |
| 4645 | #include <locale.h> |
| 4646 | #endif |
| 4647 | |
| 4648 | main(c, v) |
| 4649 | int c; |
| 4650 | char *v[]; |
| 4651 | { |
| 4652 | int r1, r2; |
| 4653 | char *deflocale, *defcoll; |
| 4654 | |
| 4655 | #ifdef HAVE_SETLOCALE |
| 4656 | deflocale = setlocale(LC_ALL, ""); |
| 4657 | defcoll = setlocale(LC_COLLATE, ""); |
| 4658 | #endif |
| 4659 | |
| 4660 | #ifdef HAVE_STRCOLL |
| 4661 | /* These two values are taken from tests/glob-test. */ |
| 4662 | r1 = strcoll("abd", "aXd"); |
| 4663 | #else |
| 4664 | r1 = 0; |
| 4665 | #endif |
| 4666 | r2 = strcmp("abd", "aXd"); |
| 4667 | |
| 4668 | /* These two should both be greater than 0. It is permissible for |
| 4669 | a system to return different values, as long as the sign is the |
| 4670 | same. */ |
| 4671 | |
| 4672 | /* Exit with 1 (failure) if these two values are both > 0, since |
| 4673 | this tests whether strcoll(3) is broken with respect to strcmp(3) |
| 4674 | in the default locale. */ |
| 4675 | exit (r1 > 0 && r2 > 0); |
| 4676 | } |
| 4677 | |
| 4678 | _ACEOF |
| 4679 | rm -f conftest$ac_exeext |
| 4680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4681 | (eval $ac_link) 2>&5 |
| 4682 | ac_status=$? |
| 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4684 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4686 | (eval $ac_try) 2>&5 |
| 4687 | ac_status=$? |
| 4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4689 | (exit $ac_status); }; }; then |
| 4690 | bash_cv_func_strcoll_broken=yes |
| 4691 | else |
| 4692 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4693 | echo "$as_me: failed program was:" >&5 |
| 4694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4695 | |
| 4696 | ( exit $ac_status ) |
| 4697 | bash_cv_func_strcoll_broken=no |
| 4698 | fi |
| 4699 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4700 | fi |
| 4701 | fi |
| 4702 | |
| 4703 | echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 |
| 4704 | echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6 |
| 4705 | if test $bash_cv_func_strcoll_broken = yes; then |
| 4706 | cat >>confdefs.h <<\_ACEOF |
| 4707 | #define STRCOLL_BROKEN 1 |
| 4708 | _ACEOF |
| 4709 | |
| 4710 | fi |
| 4711 | |
| 4712 | |
| 4713 | echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 |
| 4714 | echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6 |
| 4715 | if test "${bash_cv_getpw_declared+set}" = set; then |
| 4716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4717 | else |
| 4718 | cat >conftest.$ac_ext <<_ACEOF |
| 4719 | #line $LINENO "configure" |
| 4720 | /* confdefs.h. */ |
| 4721 | _ACEOF |
| 4722 | cat confdefs.h >>conftest.$ac_ext |
| 4723 | cat >>conftest.$ac_ext <<_ACEOF |
| 4724 | /* end confdefs.h. */ |
| 4725 | |
| 4726 | #include <sys/types.h> |
| 4727 | #ifdef HAVE_UNISTD_H |
| 4728 | # include <unistd.h> |
| 4729 | #endif |
| 4730 | #include <pwd.h> |
| 4731 | |
| 4732 | _ACEOF |
| 4733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4734 | $EGREP "getpwuid" >/dev/null 2>&1; then |
| 4735 | bash_cv_getpw_declared=yes |
| 4736 | else |
| 4737 | bash_cv_getpw_declared=no |
| 4738 | fi |
| 4739 | rm -f conftest* |
| 4740 | |
| 4741 | fi |
| 4742 | |
| 4743 | echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 |
| 4744 | echo "${ECHO_T}$bash_cv_getpw_declared" >&6 |
| 4745 | if test $bash_cv_getpw_declared = yes; then |
| 4746 | cat >>confdefs.h <<\_ACEOF |
| 4747 | #define HAVE_GETPW_DECLS 1 |
| 4748 | _ACEOF |
| 4749 | |
| 4750 | fi |
| 4751 | |
| 4752 | |
| 4753 | echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
| 4754 | echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 |
| 4755 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then |
| 4756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4757 | else |
| 4758 | cat >conftest.$ac_ext <<_ACEOF |
| 4759 | #line $LINENO "configure" |
| 4760 | /* confdefs.h. */ |
| 4761 | _ACEOF |
| 4762 | cat confdefs.h >>conftest.$ac_ext |
| 4763 | cat >>conftest.$ac_ext <<_ACEOF |
| 4764 | /* end confdefs.h. */ |
| 4765 | #include <sys/types.h> |
| 4766 | #include <termios.h> |
| 4767 | #ifdef TIOCGWINSZ |
| 4768 | yes |
| 4769 | #endif |
| 4770 | |
| 4771 | _ACEOF |
| 4772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4773 | $EGREP "yes" >/dev/null 2>&1; then |
| 4774 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
| 4775 | else |
| 4776 | ac_cv_sys_tiocgwinsz_in_termios_h=no |
| 4777 | fi |
| 4778 | rm -f conftest* |
| 4779 | |
| 4780 | fi |
| 4781 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
| 4782 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 |
| 4783 | |
| 4784 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
| 4785 | echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
| 4786 | echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 |
| 4787 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then |
| 4788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4789 | else |
| 4790 | cat >conftest.$ac_ext <<_ACEOF |
| 4791 | #line $LINENO "configure" |
| 4792 | /* confdefs.h. */ |
| 4793 | _ACEOF |
| 4794 | cat confdefs.h >>conftest.$ac_ext |
| 4795 | cat >>conftest.$ac_ext <<_ACEOF |
| 4796 | /* end confdefs.h. */ |
| 4797 | #include <sys/types.h> |
| 4798 | #include <sys/ioctl.h> |
| 4799 | #ifdef TIOCGWINSZ |
| 4800 | yes |
| 4801 | #endif |
| 4802 | |
| 4803 | _ACEOF |
| 4804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4805 | $EGREP "yes" >/dev/null 2>&1; then |
| 4806 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
| 4807 | else |
| 4808 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no |
| 4809 | fi |
| 4810 | rm -f conftest* |
| 4811 | |
| 4812 | fi |
| 4813 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
| 4814 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 |
| 4815 | |
| 4816 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
| 4817 | |
| 4818 | cat >>confdefs.h <<\_ACEOF |
| 4819 | #define GWINSZ_IN_SYS_IOCTL 1 |
| 4820 | _ACEOF |
| 4821 | |
| 4822 | fi |
| 4823 | fi |
| 4824 | |
| 4825 | |
| 4826 | echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 |
| 4827 | echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6 |
| 4828 | if test "${bash_cv_void_sighandler+set}" = set; then |
| 4829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4830 | else |
| 4831 | cat >conftest.$ac_ext <<_ACEOF |
| 4832 | #line $LINENO "configure" |
| 4833 | /* confdefs.h. */ |
| 4834 | _ACEOF |
| 4835 | cat confdefs.h >>conftest.$ac_ext |
| 4836 | cat >>conftest.$ac_ext <<_ACEOF |
| 4837 | /* end confdefs.h. */ |
| 4838 | #include <sys/types.h> |
| 4839 | #include <signal.h> |
| 4840 | #ifdef signal |
| 4841 | #undef signal |
| 4842 | #endif |
| 4843 | #ifdef __cplusplus |
| 4844 | extern "C" |
| 4845 | #endif |
| 4846 | void (*signal ()) (); |
| 4847 | int |
| 4848 | main () |
| 4849 | { |
| 4850 | int i; |
| 4851 | ; |
| 4852 | return 0; |
| 4853 | } |
| 4854 | _ACEOF |
| 4855 | rm -f conftest.$ac_objext |
| 4856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4857 | (eval $ac_compile) 2>&5 |
| 4858 | ac_status=$? |
| 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4860 | (exit $ac_status); } && |
| 4861 | { ac_try='test -s conftest.$ac_objext' |
| 4862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4863 | (eval $ac_try) 2>&5 |
| 4864 | ac_status=$? |
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4866 | (exit $ac_status); }; }; then |
| 4867 | bash_cv_void_sighandler=yes |
| 4868 | else |
| 4869 | echo "$as_me: failed program was:" >&5 |
| 4870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4871 | |
| 4872 | bash_cv_void_sighandler=no |
| 4873 | fi |
| 4874 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4875 | fi |
| 4876 | echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 |
| 4877 | echo "${ECHO_T}$bash_cv_void_sighandler" >&6 |
| 4878 | if test $bash_cv_void_sighandler = yes; then |
| 4879 | cat >>confdefs.h <<\_ACEOF |
| 4880 | #define VOID_SIGHANDLER 1 |
| 4881 | _ACEOF |
| 4882 | |
| 4883 | fi |
| 4884 | |
| 4885 | echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 |
| 4886 | echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6 |
| 4887 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then |
| 4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4889 | else |
| 4890 | cat >conftest.$ac_ext <<_ACEOF |
| 4891 | #line $LINENO "configure" |
| 4892 | /* confdefs.h. */ |
| 4893 | _ACEOF |
| 4894 | cat confdefs.h >>conftest.$ac_ext |
| 4895 | cat >>conftest.$ac_ext <<_ACEOF |
| 4896 | /* end confdefs.h. */ |
| 4897 | #include <sys/types.h> |
| 4898 | #include <sys/ioctl.h> |
| 4899 | int |
| 4900 | main () |
| 4901 | { |
| 4902 | int x = TIOCSTAT; |
| 4903 | ; |
| 4904 | return 0; |
| 4905 | } |
| 4906 | _ACEOF |
| 4907 | rm -f conftest.$ac_objext |
| 4908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4909 | (eval $ac_compile) 2>&5 |
| 4910 | ac_status=$? |
| 4911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4912 | (exit $ac_status); } && |
| 4913 | { ac_try='test -s conftest.$ac_objext' |
| 4914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4915 | (eval $ac_try) 2>&5 |
| 4916 | ac_status=$? |
| 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4918 | (exit $ac_status); }; }; then |
| 4919 | bash_cv_tiocstat_in_ioctl=yes |
| 4920 | else |
| 4921 | echo "$as_me: failed program was:" >&5 |
| 4922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4923 | |
| 4924 | bash_cv_tiocstat_in_ioctl=no |
| 4925 | fi |
| 4926 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4927 | fi |
| 4928 | |
| 4929 | echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 |
| 4930 | echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6 |
| 4931 | if test $bash_cv_tiocstat_in_ioctl = yes; then |
| 4932 | cat >>confdefs.h <<\_ACEOF |
| 4933 | #define TIOCSTAT_IN_SYS_IOCTL 1 |
| 4934 | _ACEOF |
| 4935 | |
| 4936 | fi |
| 4937 | |
| 4938 | echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 |
| 4939 | echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6 |
| 4940 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then |
| 4941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4942 | else |
| 4943 | cat >conftest.$ac_ext <<_ACEOF |
| 4944 | #line $LINENO "configure" |
| 4945 | /* confdefs.h. */ |
| 4946 | _ACEOF |
| 4947 | cat confdefs.h >>conftest.$ac_ext |
| 4948 | cat >>conftest.$ac_ext <<_ACEOF |
| 4949 | /* end confdefs.h. */ |
| 4950 | #include <sys/types.h> |
| 4951 | #include <sys/ioctl.h> |
| 4952 | int |
| 4953 | main () |
| 4954 | { |
| 4955 | int x = FIONREAD; |
| 4956 | ; |
| 4957 | return 0; |
| 4958 | } |
| 4959 | _ACEOF |
| 4960 | rm -f conftest.$ac_objext |
| 4961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4962 | (eval $ac_compile) 2>&5 |
| 4963 | ac_status=$? |
| 4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4965 | (exit $ac_status); } && |
| 4966 | { ac_try='test -s conftest.$ac_objext' |
| 4967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4968 | (eval $ac_try) 2>&5 |
| 4969 | ac_status=$? |
| 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4971 | (exit $ac_status); }; }; then |
| 4972 | bash_cv_fionread_in_ioctl=yes |
| 4973 | else |
| 4974 | echo "$as_me: failed program was:" >&5 |
| 4975 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4976 | |
| 4977 | bash_cv_fionread_in_ioctl=no |
| 4978 | fi |
| 4979 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4980 | fi |
| 4981 | |
| 4982 | echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 |
| 4983 | echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6 |
| 4984 | if test $bash_cv_fionread_in_ioctl = yes; then |
| 4985 | cat >>confdefs.h <<\_ACEOF |
| 4986 | #define FIONREAD_IN_SYS_IOCTL 1 |
| 4987 | _ACEOF |
| 4988 | |
| 4989 | fi |
| 4990 | |
| 4991 | echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 |
| 4992 | echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6 |
| 4993 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then |
| 4994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4995 | else |
| 4996 | cat >conftest.$ac_ext <<_ACEOF |
| 4997 | #line $LINENO "configure" |
| 4998 | /* confdefs.h. */ |
| 4999 | _ACEOF |
| 5000 | cat confdefs.h >>conftest.$ac_ext |
| 5001 | cat >>conftest.$ac_ext <<_ACEOF |
| 5002 | /* end confdefs.h. */ |
| 5003 | #include <sys/types.h> |
| 5004 | int |
| 5005 | main () |
| 5006 | { |
| 5007 | speed_t x; |
| 5008 | ; |
| 5009 | return 0; |
| 5010 | } |
| 5011 | _ACEOF |
| 5012 | rm -f conftest.$ac_objext |
| 5013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5014 | (eval $ac_compile) 2>&5 |
| 5015 | ac_status=$? |
| 5016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5017 | (exit $ac_status); } && |
| 5018 | { ac_try='test -s conftest.$ac_objext' |
| 5019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5020 | (eval $ac_try) 2>&5 |
| 5021 | ac_status=$? |
| 5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5023 | (exit $ac_status); }; }; then |
| 5024 | bash_cv_speed_t_in_sys_types=yes |
| 5025 | else |
| 5026 | echo "$as_me: failed program was:" >&5 |
| 5027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5028 | |
| 5029 | bash_cv_speed_t_in_sys_types=no |
| 5030 | fi |
| 5031 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5032 | fi |
| 5033 | |
| 5034 | echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 |
| 5035 | echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6 |
| 5036 | if test $bash_cv_speed_t_in_sys_types = yes; then |
| 5037 | cat >>confdefs.h <<\_ACEOF |
| 5038 | #define SPEED_T_IN_SYS_TYPES 1 |
| 5039 | _ACEOF |
| 5040 | |
| 5041 | fi |
| 5042 | |
| 5043 | echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
| 5044 | echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6 |
| 5045 | if test "${bash_cv_struct_winsize_header+set}" = set; then |
| 5046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5047 | else |
| 5048 | cat >conftest.$ac_ext <<_ACEOF |
| 5049 | #line $LINENO "configure" |
| 5050 | /* confdefs.h. */ |
| 5051 | _ACEOF |
| 5052 | cat confdefs.h >>conftest.$ac_ext |
| 5053 | cat >>conftest.$ac_ext <<_ACEOF |
| 5054 | /* end confdefs.h. */ |
| 5055 | #include <sys/types.h> |
| 5056 | #include <sys/ioctl.h> |
| 5057 | int |
| 5058 | main () |
| 5059 | { |
| 5060 | struct winsize x; |
| 5061 | ; |
| 5062 | return 0; |
| 5063 | } |
| 5064 | _ACEOF |
| 5065 | rm -f conftest.$ac_objext |
| 5066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5067 | (eval $ac_compile) 2>&5 |
| 5068 | ac_status=$? |
| 5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5070 | (exit $ac_status); } && |
| 5071 | { ac_try='test -s conftest.$ac_objext' |
| 5072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5073 | (eval $ac_try) 2>&5 |
| 5074 | ac_status=$? |
| 5075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5076 | (exit $ac_status); }; }; then |
| 5077 | bash_cv_struct_winsize_header=ioctl_h |
| 5078 | else |
| 5079 | echo "$as_me: failed program was:" >&5 |
| 5080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5081 | |
| 5082 | cat >conftest.$ac_ext <<_ACEOF |
| 5083 | #line $LINENO "configure" |
| 5084 | /* confdefs.h. */ |
| 5085 | _ACEOF |
| 5086 | cat confdefs.h >>conftest.$ac_ext |
| 5087 | cat >>conftest.$ac_ext <<_ACEOF |
| 5088 | /* end confdefs.h. */ |
| 5089 | #include <sys/types.h> |
| 5090 | #include <termios.h> |
| 5091 | int |
| 5092 | main () |
| 5093 | { |
| 5094 | struct winsize x; |
| 5095 | ; |
| 5096 | return 0; |
| 5097 | } |
| 5098 | _ACEOF |
| 5099 | rm -f conftest.$ac_objext |
| 5100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5101 | (eval $ac_compile) 2>&5 |
| 5102 | ac_status=$? |
| 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5104 | (exit $ac_status); } && |
| 5105 | { ac_try='test -s conftest.$ac_objext' |
| 5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5107 | (eval $ac_try) 2>&5 |
| 5108 | ac_status=$? |
| 5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5110 | (exit $ac_status); }; }; then |
| 5111 | bash_cv_struct_winsize_header=termios_h |
| 5112 | else |
| 5113 | echo "$as_me: failed program was:" >&5 |
| 5114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5115 | |
| 5116 | bash_cv_struct_winsize_header=other |
| 5117 | fi |
| 5118 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5119 | |
| 5120 | fi |
| 5121 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5122 | fi |
| 5123 | |
| 5124 | if test $bash_cv_struct_winsize_header = ioctl_h; then |
| 5125 | echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 |
| 5126 | echo "${ECHO_T}sys/ioctl.h" >&6 |
| 5127 | cat >>confdefs.h <<\_ACEOF |
| 5128 | #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 |
| 5129 | _ACEOF |
| 5130 | |
| 5131 | elif test $bash_cv_struct_winsize_header = termios_h; then |
| 5132 | echo "$as_me:$LINENO: result: termios.h" >&5 |
| 5133 | echo "${ECHO_T}termios.h" >&6 |
| 5134 | cat >>confdefs.h <<\_ACEOF |
| 5135 | #define STRUCT_WINSIZE_IN_TERMIOS 1 |
| 5136 | _ACEOF |
| 5137 | |
| 5138 | else |
| 5139 | echo "$as_me:$LINENO: result: not found" >&5 |
| 5140 | echo "${ECHO_T}not found" >&6 |
| 5141 | fi |
| 5142 | |
| 5143 | |
| 5144 | echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5 |
| 5145 | echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6 |
| 5146 | if test "${bash_cv_dirent_has_dino+set}" = set; then |
| 5147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5148 | else |
| 5149 | cat >conftest.$ac_ext <<_ACEOF |
| 5150 | #line $LINENO "configure" |
| 5151 | /* confdefs.h. */ |
| 5152 | _ACEOF |
| 5153 | cat confdefs.h >>conftest.$ac_ext |
| 5154 | cat >>conftest.$ac_ext <<_ACEOF |
| 5155 | /* end confdefs.h. */ |
| 5156 | |
| 5157 | #include <stdio.h> |
| 5158 | #include <sys/types.h> |
| 5159 | #ifdef HAVE_UNISTD_H |
| 5160 | # include <unistd.h> |
| 5161 | #endif /* HAVE_UNISTD_H */ |
| 5162 | #if defined(HAVE_DIRENT_H) |
| 5163 | # include <dirent.h> |
| 5164 | #else |
| 5165 | # define dirent direct |
| 5166 | # ifdef HAVE_SYS_NDIR_H |
| 5167 | # include <sys/ndir.h> |
| 5168 | # endif /* SYSNDIR */ |
| 5169 | # ifdef HAVE_SYS_DIR_H |
| 5170 | # include <sys/dir.h> |
| 5171 | # endif /* SYSDIR */ |
| 5172 | # ifdef HAVE_NDIR_H |
| 5173 | # include <ndir.h> |
| 5174 | # endif |
| 5175 | #endif /* HAVE_DIRENT_H */ |
| 5176 | |
| 5177 | int |
| 5178 | main () |
| 5179 | { |
| 5180 | |
| 5181 | struct dirent d; int z; z = d.d_ino; |
| 5182 | |
| 5183 | ; |
| 5184 | return 0; |
| 5185 | } |
| 5186 | _ACEOF |
| 5187 | rm -f conftest.$ac_objext |
| 5188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5189 | (eval $ac_compile) 2>&5 |
| 5190 | ac_status=$? |
| 5191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5192 | (exit $ac_status); } && |
| 5193 | { ac_try='test -s conftest.$ac_objext' |
| 5194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5195 | (eval $ac_try) 2>&5 |
| 5196 | ac_status=$? |
| 5197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5198 | (exit $ac_status); }; }; then |
| 5199 | bash_cv_dirent_has_dino=yes |
| 5200 | else |
| 5201 | echo "$as_me: failed program was:" >&5 |
| 5202 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5203 | |
| 5204 | bash_cv_dirent_has_dino=no |
| 5205 | fi |
| 5206 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5207 | fi |
| 5208 | |
| 5209 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 |
| 5210 | echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6 |
| 5211 | if test $bash_cv_dirent_has_dino = yes; then |
| 5212 | cat >>confdefs.h <<\_ACEOF |
| 5213 | #define STRUCT_DIRENT_HAS_D_INO 1 |
| 5214 | _ACEOF |
| 5215 | |
| 5216 | fi |
| 5217 | |
| 5218 | |
| 5219 | echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5 |
| 5220 | echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6 |
| 5221 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then |
| 5222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5223 | else |
| 5224 | cat >conftest.$ac_ext <<_ACEOF |
| 5225 | #line $LINENO "configure" |
| 5226 | /* confdefs.h. */ |
| 5227 | _ACEOF |
| 5228 | cat confdefs.h >>conftest.$ac_ext |
| 5229 | cat >>conftest.$ac_ext <<_ACEOF |
| 5230 | /* end confdefs.h. */ |
| 5231 | |
| 5232 | #include <stdio.h> |
| 5233 | #include <sys/types.h> |
| 5234 | #ifdef HAVE_UNISTD_H |
| 5235 | # include <unistd.h> |
| 5236 | #endif /* HAVE_UNISTD_H */ |
| 5237 | #if defined(HAVE_DIRENT_H) |
| 5238 | # include <dirent.h> |
| 5239 | #else |
| 5240 | # define dirent direct |
| 5241 | # ifdef HAVE_SYS_NDIR_H |
| 5242 | # include <sys/ndir.h> |
| 5243 | # endif /* SYSNDIR */ |
| 5244 | # ifdef HAVE_SYS_DIR_H |
| 5245 | # include <sys/dir.h> |
| 5246 | # endif /* SYSDIR */ |
| 5247 | # ifdef HAVE_NDIR_H |
| 5248 | # include <ndir.h> |
| 5249 | # endif |
| 5250 | #endif /* HAVE_DIRENT_H */ |
| 5251 | |
| 5252 | int |
| 5253 | main () |
| 5254 | { |
| 5255 | |
| 5256 | struct dirent d; int z; z = d.d_fileno; |
| 5257 | |
| 5258 | ; |
| 5259 | return 0; |
| 5260 | } |
| 5261 | _ACEOF |
| 5262 | rm -f conftest.$ac_objext |
| 5263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5264 | (eval $ac_compile) 2>&5 |
| 5265 | ac_status=$? |
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5267 | (exit $ac_status); } && |
| 5268 | { ac_try='test -s conftest.$ac_objext' |
| 5269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5270 | (eval $ac_try) 2>&5 |
| 5271 | ac_status=$? |
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 | (exit $ac_status); }; }; then |
| 5274 | bash_cv_dirent_has_d_fileno=yes |
| 5275 | else |
| 5276 | echo "$as_me: failed program was:" >&5 |
| 5277 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5278 | |
| 5279 | bash_cv_dirent_has_d_fileno=no |
| 5280 | fi |
| 5281 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5282 | fi |
| 5283 | |
| 5284 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 |
| 5285 | echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6 |
| 5286 | if test $bash_cv_dirent_has_d_fileno = yes; then |
| 5287 | cat >>confdefs.h <<\_ACEOF |
| 5288 | #define STRUCT_DIRENT_HAS_D_FILENO 1 |
| 5289 | _ACEOF |
| 5290 | |
| 5291 | fi |
| 5292 | |
| 5293 | |
| 5294 | case "$host_os" in |
| 5295 | aix*) prefer_curses=yes ;; |
| 5296 | esac |
| 5297 | |
| 5298 | if test "X$bash_cv_termcap_lib" = "X"; then |
| 5299 | _bash_needmsg=yes |
| 5300 | else |
| 5301 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
| 5302 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
| 5303 | _bash_needmsg= |
| 5304 | fi |
| 5305 | if test "${bash_cv_termcap_lib+set}" = set; then |
| 5306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5307 | else |
| 5308 | echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
| 5309 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 |
| 5310 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then |
| 5311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5312 | else |
| 5313 | ac_check_lib_save_LIBS=$LIBS |
| 5314 | LIBS="-ltermcap $LIBS" |
| 5315 | cat >conftest.$ac_ext <<_ACEOF |
| 5316 | #line $LINENO "configure" |
| 5317 | /* confdefs.h. */ |
| 5318 | _ACEOF |
| 5319 | cat confdefs.h >>conftest.$ac_ext |
| 5320 | cat >>conftest.$ac_ext <<_ACEOF |
| 5321 | /* end confdefs.h. */ |
| 5322 | |
| 5323 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5324 | #ifdef __cplusplus |
| 5325 | extern "C" |
| 5326 | #endif |
| 5327 | /* We use char because int might match the return type of a gcc2 |
| 5328 | builtin and then its argument prototype would still apply. */ |
| 5329 | char tgetent (); |
| 5330 | int |
| 5331 | main () |
| 5332 | { |
| 5333 | tgetent (); |
| 5334 | ; |
| 5335 | return 0; |
| 5336 | } |
| 5337 | _ACEOF |
| 5338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5340 | (eval $ac_link) 2>&5 |
| 5341 | ac_status=$? |
| 5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5343 | (exit $ac_status); } && |
| 5344 | { ac_try='test -s conftest$ac_exeext' |
| 5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5346 | (eval $ac_try) 2>&5 |
| 5347 | ac_status=$? |
| 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5349 | (exit $ac_status); }; }; then |
| 5350 | ac_cv_lib_termcap_tgetent=yes |
| 5351 | else |
| 5352 | echo "$as_me: failed program was:" >&5 |
| 5353 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5354 | |
| 5355 | ac_cv_lib_termcap_tgetent=no |
| 5356 | fi |
| 5357 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5358 | LIBS=$ac_check_lib_save_LIBS |
| 5359 | fi |
| 5360 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
| 5361 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 |
| 5362 | if test $ac_cv_lib_termcap_tgetent = yes; then |
| 5363 | bash_cv_termcap_lib=libtermcap |
| 5364 | else |
| 5365 | echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
| 5366 | echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6 |
| 5367 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then |
| 5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5369 | else |
| 5370 | ac_check_lib_save_LIBS=$LIBS |
| 5371 | LIBS="-ltinfo $LIBS" |
| 5372 | cat >conftest.$ac_ext <<_ACEOF |
| 5373 | #line $LINENO "configure" |
| 5374 | /* confdefs.h. */ |
| 5375 | _ACEOF |
| 5376 | cat confdefs.h >>conftest.$ac_ext |
| 5377 | cat >>conftest.$ac_ext <<_ACEOF |
| 5378 | /* end confdefs.h. */ |
| 5379 | |
| 5380 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5381 | #ifdef __cplusplus |
| 5382 | extern "C" |
| 5383 | #endif |
| 5384 | /* We use char because int might match the return type of a gcc2 |
| 5385 | builtin and then its argument prototype would still apply. */ |
| 5386 | char tgetent (); |
| 5387 | int |
| 5388 | main () |
| 5389 | { |
| 5390 | tgetent (); |
| 5391 | ; |
| 5392 | return 0; |
| 5393 | } |
| 5394 | _ACEOF |
| 5395 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5397 | (eval $ac_link) 2>&5 |
| 5398 | ac_status=$? |
| 5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5400 | (exit $ac_status); } && |
| 5401 | { ac_try='test -s conftest$ac_exeext' |
| 5402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5403 | (eval $ac_try) 2>&5 |
| 5404 | ac_status=$? |
| 5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5406 | (exit $ac_status); }; }; then |
| 5407 | ac_cv_lib_tinfo_tgetent=yes |
| 5408 | else |
| 5409 | echo "$as_me: failed program was:" >&5 |
| 5410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5411 | |
| 5412 | ac_cv_lib_tinfo_tgetent=no |
| 5413 | fi |
| 5414 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5415 | LIBS=$ac_check_lib_save_LIBS |
| 5416 | fi |
| 5417 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
| 5418 | echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6 |
| 5419 | if test $ac_cv_lib_tinfo_tgetent = yes; then |
| 5420 | bash_cv_termcap_lib=libtinfo |
| 5421 | else |
| 5422 | echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
| 5423 | echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 |
| 5424 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then |
| 5425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5426 | else |
| 5427 | ac_check_lib_save_LIBS=$LIBS |
| 5428 | LIBS="-lcurses $LIBS" |
| 5429 | cat >conftest.$ac_ext <<_ACEOF |
| 5430 | #line $LINENO "configure" |
| 5431 | /* confdefs.h. */ |
| 5432 | _ACEOF |
| 5433 | cat confdefs.h >>conftest.$ac_ext |
| 5434 | cat >>conftest.$ac_ext <<_ACEOF |
| 5435 | /* end confdefs.h. */ |
| 5436 | |
| 5437 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5438 | #ifdef __cplusplus |
| 5439 | extern "C" |
| 5440 | #endif |
| 5441 | /* We use char because int might match the return type of a gcc2 |
| 5442 | builtin and then its argument prototype would still apply. */ |
| 5443 | char tgetent (); |
| 5444 | int |
| 5445 | main () |
| 5446 | { |
| 5447 | tgetent (); |
| 5448 | ; |
| 5449 | return 0; |
| 5450 | } |
| 5451 | _ACEOF |
| 5452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5454 | (eval $ac_link) 2>&5 |
| 5455 | ac_status=$? |
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5457 | (exit $ac_status); } && |
| 5458 | { ac_try='test -s conftest$ac_exeext' |
| 5459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5460 | (eval $ac_try) 2>&5 |
| 5461 | ac_status=$? |
| 5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5463 | (exit $ac_status); }; }; then |
| 5464 | ac_cv_lib_curses_tgetent=yes |
| 5465 | else |
| 5466 | echo "$as_me: failed program was:" >&5 |
| 5467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5468 | |
| 5469 | ac_cv_lib_curses_tgetent=no |
| 5470 | fi |
| 5471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5472 | LIBS=$ac_check_lib_save_LIBS |
| 5473 | fi |
| 5474 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
| 5475 | echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 |
| 5476 | if test $ac_cv_lib_curses_tgetent = yes; then |
| 5477 | bash_cv_termcap_lib=libcurses |
| 5478 | else |
| 5479 | echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
| 5480 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 |
| 5481 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then |
| 5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5483 | else |
| 5484 | ac_check_lib_save_LIBS=$LIBS |
| 5485 | LIBS="-lncurses $LIBS" |
| 5486 | cat >conftest.$ac_ext <<_ACEOF |
| 5487 | #line $LINENO "configure" |
| 5488 | /* confdefs.h. */ |
| 5489 | _ACEOF |
| 5490 | cat confdefs.h >>conftest.$ac_ext |
| 5491 | cat >>conftest.$ac_ext <<_ACEOF |
| 5492 | /* end confdefs.h. */ |
| 5493 | |
| 5494 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5495 | #ifdef __cplusplus |
| 5496 | extern "C" |
| 5497 | #endif |
| 5498 | /* We use char because int might match the return type of a gcc2 |
| 5499 | builtin and then its argument prototype would still apply. */ |
| 5500 | char tgetent (); |
| 5501 | int |
| 5502 | main () |
| 5503 | { |
| 5504 | tgetent (); |
| 5505 | ; |
| 5506 | return 0; |
| 5507 | } |
| 5508 | _ACEOF |
| 5509 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5511 | (eval $ac_link) 2>&5 |
| 5512 | ac_status=$? |
| 5513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5514 | (exit $ac_status); } && |
| 5515 | { ac_try='test -s conftest$ac_exeext' |
| 5516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5517 | (eval $ac_try) 2>&5 |
| 5518 | ac_status=$? |
| 5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5520 | (exit $ac_status); }; }; then |
| 5521 | ac_cv_lib_ncurses_tgetent=yes |
| 5522 | else |
| 5523 | echo "$as_me: failed program was:" >&5 |
| 5524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5525 | |
| 5526 | ac_cv_lib_ncurses_tgetent=no |
| 5527 | fi |
| 5528 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5529 | LIBS=$ac_check_lib_save_LIBS |
| 5530 | fi |
| 5531 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
| 5532 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 |
| 5533 | if test $ac_cv_lib_ncurses_tgetent = yes; then |
| 5534 | bash_cv_termcap_lib=libncurses |
| 5535 | else |
| 5536 | bash_cv_termcap_lib=gnutermcap |
| 5537 | fi |
| 5538 | |
| 5539 | fi |
| 5540 | |
| 5541 | fi |
| 5542 | |
| 5543 | fi |
| 5544 | |
| 5545 | fi |
| 5546 | |
| 5547 | if test "X$_bash_needmsg" = "Xyes"; then |
| 5548 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
| 5549 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
| 5550 | fi |
| 5551 | echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
| 5552 | echo "${ECHO_T}using $bash_cv_termcap_lib" >&6 |
| 5553 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then |
| 5554 | LDFLAGS="$LDFLAGS -L./lib/termcap" |
| 5555 | TERMCAP_LIB="./lib/termcap/libtermcap.a" |
| 5556 | TERMCAP_DEP="./lib/termcap/libtermcap.a" |
| 5557 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then |
| 5558 | TERMCAP_LIB=-ltermcap |
| 5559 | TERMCAP_DEP= |
| 5560 | elif test $bash_cv_termcap_lib = libtinfo; then |
| 5561 | TERMCAP_LIB=-ltinfo |
| 5562 | TERMCAP_DEP= |
| 5563 | elif test $bash_cv_termcap_lib = libncurses; then |
| 5564 | TERMCAP_LIB=-lncurses |
| 5565 | TERMCAP_DEP= |
| 5566 | else |
| 5567 | TERMCAP_LIB=-lcurses |
| 5568 | TERMCAP_DEP= |
| 5569 | fi |
| 5570 | |
| 5571 | if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then |
| 5572 | if test "$prefer_curses" = yes; then |
| 5573 | TERMCAP_LIB=-lcurses |
| 5574 | else |
| 5575 | TERMCAP_LIB=-ltermcap #default |
| 5576 | fi |
| 5577 | fi |
| 5578 | |
| 5579 | |
| 5580 | |
| 5581 | for ac_header in wctype.h |
| 5582 | do |
| 5583 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5584 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5585 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5587 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5589 | fi |
| 5590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5592 | else |
| 5593 | # Is the header compilable? |
| 5594 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5595 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5596 | cat >conftest.$ac_ext <<_ACEOF |
| 5597 | #line $LINENO "configure" |
| 5598 | /* confdefs.h. */ |
| 5599 | _ACEOF |
| 5600 | cat confdefs.h >>conftest.$ac_ext |
| 5601 | cat >>conftest.$ac_ext <<_ACEOF |
| 5602 | /* end confdefs.h. */ |
| 5603 | $ac_includes_default |
| 5604 | #include <$ac_header> |
| 5605 | _ACEOF |
| 5606 | rm -f conftest.$ac_objext |
| 5607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5608 | (eval $ac_compile) 2>&5 |
| 5609 | ac_status=$? |
| 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5611 | (exit $ac_status); } && |
| 5612 | { ac_try='test -s conftest.$ac_objext' |
| 5613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5614 | (eval $ac_try) 2>&5 |
| 5615 | ac_status=$? |
| 5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5617 | (exit $ac_status); }; }; then |
| 5618 | ac_header_compiler=yes |
| 5619 | else |
| 5620 | echo "$as_me: failed program was:" >&5 |
| 5621 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5622 | |
| 5623 | ac_header_compiler=no |
| 5624 | fi |
| 5625 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5626 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5627 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5628 | |
| 5629 | # Is the header present? |
| 5630 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5631 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5632 | cat >conftest.$ac_ext <<_ACEOF |
| 5633 | #line $LINENO "configure" |
| 5634 | /* confdefs.h. */ |
| 5635 | _ACEOF |
| 5636 | cat confdefs.h >>conftest.$ac_ext |
| 5637 | cat >>conftest.$ac_ext <<_ACEOF |
| 5638 | /* end confdefs.h. */ |
| 5639 | #include <$ac_header> |
| 5640 | _ACEOF |
| 5641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5643 | ac_status=$? |
| 5644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5645 | rm -f conftest.er1 |
| 5646 | cat conftest.err >&5 |
| 5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5648 | (exit $ac_status); } >/dev/null; then |
| 5649 | if test -s conftest.err; then |
| 5650 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5651 | else |
| 5652 | ac_cpp_err= |
| 5653 | fi |
| 5654 | else |
| 5655 | ac_cpp_err=yes |
| 5656 | fi |
| 5657 | if test -z "$ac_cpp_err"; then |
| 5658 | ac_header_preproc=yes |
| 5659 | else |
| 5660 | echo "$as_me: failed program was:" >&5 |
| 5661 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5662 | |
| 5663 | ac_header_preproc=no |
| 5664 | fi |
| 5665 | rm -f conftest.err conftest.$ac_ext |
| 5666 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5667 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5668 | |
| 5669 | # So? What about this header? |
| 5670 | case $ac_header_compiler:$ac_header_preproc in |
| 5671 | yes:no ) |
| 5672 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5673 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5675 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5676 | ( |
| 5677 | cat <<\_ASBOX |
| 5678 | ## ------------------------------------ ## |
| 5679 | ## Report this to bug-autoconf@gnu.org. ## |
| 5680 | ## ------------------------------------ ## |
| 5681 | _ASBOX |
| 5682 | ) | |
| 5683 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5684 | ;; |
| 5685 | no:yes ) |
| 5686 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5687 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5688 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5689 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5690 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5691 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5692 | ( |
| 5693 | cat <<\_ASBOX |
| 5694 | ## ------------------------------------ ## |
| 5695 | ## Report this to bug-autoconf@gnu.org. ## |
| 5696 | ## ------------------------------------ ## |
| 5697 | _ASBOX |
| 5698 | ) | |
| 5699 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5700 | ;; |
| 5701 | esac |
| 5702 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5703 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5704 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5706 | else |
| 5707 | eval "$as_ac_Header=$ac_header_preproc" |
| 5708 | fi |
| 5709 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5710 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5711 | |
| 5712 | fi |
| 5713 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5714 | cat >>confdefs.h <<_ACEOF |
| 5715 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5716 | _ACEOF |
| 5717 | |
| 5718 | fi |
| 5719 | |
| 5720 | done |
| 5721 | |
| 5722 | |
| 5723 | for ac_header in wchar.h |
| 5724 | do |
| 5725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5731 | fi |
| 5732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5734 | else |
| 5735 | # Is the header compilable? |
| 5736 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5737 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5738 | cat >conftest.$ac_ext <<_ACEOF |
| 5739 | #line $LINENO "configure" |
| 5740 | /* confdefs.h. */ |
| 5741 | _ACEOF |
| 5742 | cat confdefs.h >>conftest.$ac_ext |
| 5743 | cat >>conftest.$ac_ext <<_ACEOF |
| 5744 | /* end confdefs.h. */ |
| 5745 | $ac_includes_default |
| 5746 | #include <$ac_header> |
| 5747 | _ACEOF |
| 5748 | rm -f conftest.$ac_objext |
| 5749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5750 | (eval $ac_compile) 2>&5 |
| 5751 | ac_status=$? |
| 5752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5753 | (exit $ac_status); } && |
| 5754 | { ac_try='test -s conftest.$ac_objext' |
| 5755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5756 | (eval $ac_try) 2>&5 |
| 5757 | ac_status=$? |
| 5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5759 | (exit $ac_status); }; }; then |
| 5760 | ac_header_compiler=yes |
| 5761 | else |
| 5762 | echo "$as_me: failed program was:" >&5 |
| 5763 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5764 | |
| 5765 | ac_header_compiler=no |
| 5766 | fi |
| 5767 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5768 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5769 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5770 | |
| 5771 | # Is the header present? |
| 5772 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5773 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5774 | cat >conftest.$ac_ext <<_ACEOF |
| 5775 | #line $LINENO "configure" |
| 5776 | /* confdefs.h. */ |
| 5777 | _ACEOF |
| 5778 | cat confdefs.h >>conftest.$ac_ext |
| 5779 | cat >>conftest.$ac_ext <<_ACEOF |
| 5780 | /* end confdefs.h. */ |
| 5781 | #include <$ac_header> |
| 5782 | _ACEOF |
| 5783 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5784 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5785 | ac_status=$? |
| 5786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5787 | rm -f conftest.er1 |
| 5788 | cat conftest.err >&5 |
| 5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5790 | (exit $ac_status); } >/dev/null; then |
| 5791 | if test -s conftest.err; then |
| 5792 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5793 | else |
| 5794 | ac_cpp_err= |
| 5795 | fi |
| 5796 | else |
| 5797 | ac_cpp_err=yes |
| 5798 | fi |
| 5799 | if test -z "$ac_cpp_err"; then |
| 5800 | ac_header_preproc=yes |
| 5801 | else |
| 5802 | echo "$as_me: failed program was:" >&5 |
| 5803 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5804 | |
| 5805 | ac_header_preproc=no |
| 5806 | fi |
| 5807 | rm -f conftest.err conftest.$ac_ext |
| 5808 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5809 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5810 | |
| 5811 | # So? What about this header? |
| 5812 | case $ac_header_compiler:$ac_header_preproc in |
| 5813 | yes:no ) |
| 5814 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5815 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5818 | ( |
| 5819 | cat <<\_ASBOX |
| 5820 | ## ------------------------------------ ## |
| 5821 | ## Report this to bug-autoconf@gnu.org. ## |
| 5822 | ## ------------------------------------ ## |
| 5823 | _ASBOX |
| 5824 | ) | |
| 5825 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5826 | ;; |
| 5827 | no:yes ) |
| 5828 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5829 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5830 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5831 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5833 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5834 | ( |
| 5835 | cat <<\_ASBOX |
| 5836 | ## ------------------------------------ ## |
| 5837 | ## Report this to bug-autoconf@gnu.org. ## |
| 5838 | ## ------------------------------------ ## |
| 5839 | _ASBOX |
| 5840 | ) | |
| 5841 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5842 | ;; |
| 5843 | esac |
| 5844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5848 | else |
| 5849 | eval "$as_ac_Header=$ac_header_preproc" |
| 5850 | fi |
| 5851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5852 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5853 | |
| 5854 | fi |
| 5855 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5856 | cat >>confdefs.h <<_ACEOF |
| 5857 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5858 | _ACEOF |
| 5859 | |
| 5860 | fi |
| 5861 | |
| 5862 | done |
| 5863 | |
| 5864 | |
| 5865 | for ac_header in langinfo.h |
| 5866 | do |
| 5867 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5873 | fi |
| 5874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5876 | else |
| 5877 | # Is the header compilable? |
| 5878 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5879 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5880 | cat >conftest.$ac_ext <<_ACEOF |
| 5881 | #line $LINENO "configure" |
| 5882 | /* confdefs.h. */ |
| 5883 | _ACEOF |
| 5884 | cat confdefs.h >>conftest.$ac_ext |
| 5885 | cat >>conftest.$ac_ext <<_ACEOF |
| 5886 | /* end confdefs.h. */ |
| 5887 | $ac_includes_default |
| 5888 | #include <$ac_header> |
| 5889 | _ACEOF |
| 5890 | rm -f conftest.$ac_objext |
| 5891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5892 | (eval $ac_compile) 2>&5 |
| 5893 | ac_status=$? |
| 5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5895 | (exit $ac_status); } && |
| 5896 | { ac_try='test -s conftest.$ac_objext' |
| 5897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5898 | (eval $ac_try) 2>&5 |
| 5899 | ac_status=$? |
| 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5901 | (exit $ac_status); }; }; then |
| 5902 | ac_header_compiler=yes |
| 5903 | else |
| 5904 | echo "$as_me: failed program was:" >&5 |
| 5905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5906 | |
| 5907 | ac_header_compiler=no |
| 5908 | fi |
| 5909 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5910 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5911 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5912 | |
| 5913 | # Is the header present? |
| 5914 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5915 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5916 | cat >conftest.$ac_ext <<_ACEOF |
| 5917 | #line $LINENO "configure" |
| 5918 | /* confdefs.h. */ |
| 5919 | _ACEOF |
| 5920 | cat confdefs.h >>conftest.$ac_ext |
| 5921 | cat >>conftest.$ac_ext <<_ACEOF |
| 5922 | /* end confdefs.h. */ |
| 5923 | #include <$ac_header> |
| 5924 | _ACEOF |
| 5925 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5926 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5927 | ac_status=$? |
| 5928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5929 | rm -f conftest.er1 |
| 5930 | cat conftest.err >&5 |
| 5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5932 | (exit $ac_status); } >/dev/null; then |
| 5933 | if test -s conftest.err; then |
| 5934 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5935 | else |
| 5936 | ac_cpp_err= |
| 5937 | fi |
| 5938 | else |
| 5939 | ac_cpp_err=yes |
| 5940 | fi |
| 5941 | if test -z "$ac_cpp_err"; then |
| 5942 | ac_header_preproc=yes |
| 5943 | else |
| 5944 | echo "$as_me: failed program was:" >&5 |
| 5945 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5946 | |
| 5947 | ac_header_preproc=no |
| 5948 | fi |
| 5949 | rm -f conftest.err conftest.$ac_ext |
| 5950 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5951 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5952 | |
| 5953 | # So? What about this header? |
| 5954 | case $ac_header_compiler:$ac_header_preproc in |
| 5955 | yes:no ) |
| 5956 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5957 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5960 | ( |
| 5961 | cat <<\_ASBOX |
| 5962 | ## ------------------------------------ ## |
| 5963 | ## Report this to bug-autoconf@gnu.org. ## |
| 5964 | ## ------------------------------------ ## |
| 5965 | _ASBOX |
| 5966 | ) | |
| 5967 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5968 | ;; |
| 5969 | no:yes ) |
| 5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5971 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5972 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5973 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5975 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5976 | ( |
| 5977 | cat <<\_ASBOX |
| 5978 | ## ------------------------------------ ## |
| 5979 | ## Report this to bug-autoconf@gnu.org. ## |
| 5980 | ## ------------------------------------ ## |
| 5981 | _ASBOX |
| 5982 | ) | |
| 5983 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5984 | ;; |
| 5985 | esac |
| 5986 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5990 | else |
| 5991 | eval "$as_ac_Header=$ac_header_preproc" |
| 5992 | fi |
| 5993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5994 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5995 | |
| 5996 | fi |
| 5997 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5998 | cat >>confdefs.h <<_ACEOF |
| 5999 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6000 | _ACEOF |
| 6001 | |
| 6002 | fi |
| 6003 | |
| 6004 | done |
| 6005 | |
| 6006 | |
| 6007 | echo "$as_me:$LINENO: checking for mbrtowc" >&5 |
| 6008 | echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6 |
| 6009 | if test "${ac_cv_func_mbrtowc+set}" = set; then |
| 6010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6011 | else |
| 6012 | cat >conftest.$ac_ext <<_ACEOF |
| 6013 | #line $LINENO "configure" |
| 6014 | /* confdefs.h. */ |
| 6015 | _ACEOF |
| 6016 | cat confdefs.h >>conftest.$ac_ext |
| 6017 | cat >>conftest.$ac_ext <<_ACEOF |
| 6018 | /* end confdefs.h. */ |
| 6019 | /* System header to define __stub macros and hopefully few prototypes, |
| 6020 | which can conflict with char mbrtowc (); below. |
| 6021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6022 | <limits.h> exists even on freestanding compilers. */ |
| 6023 | #ifdef __STDC__ |
| 6024 | # include <limits.h> |
| 6025 | #else |
| 6026 | # include <assert.h> |
| 6027 | #endif |
| 6028 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6029 | #ifdef __cplusplus |
| 6030 | extern "C" |
| 6031 | { |
| 6032 | #endif |
| 6033 | /* We use char because int might match the return type of a gcc2 |
| 6034 | builtin and then its argument prototype would still apply. */ |
| 6035 | char mbrtowc (); |
| 6036 | /* The GNU C library defines this for functions which it implements |
| 6037 | to always fail with ENOSYS. Some functions are actually named |
| 6038 | something starting with __ and the normal name is an alias. */ |
| 6039 | #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc) |
| 6040 | choke me |
| 6041 | #else |
| 6042 | char (*f) () = mbrtowc; |
| 6043 | #endif |
| 6044 | #ifdef __cplusplus |
| 6045 | } |
| 6046 | #endif |
| 6047 | |
| 6048 | int |
| 6049 | main () |
| 6050 | { |
| 6051 | return f != mbrtowc; |
| 6052 | ; |
| 6053 | return 0; |
| 6054 | } |
| 6055 | _ACEOF |
| 6056 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6058 | (eval $ac_link) 2>&5 |
| 6059 | ac_status=$? |
| 6060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6061 | (exit $ac_status); } && |
| 6062 | { ac_try='test -s conftest$ac_exeext' |
| 6063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6064 | (eval $ac_try) 2>&5 |
| 6065 | ac_status=$? |
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6067 | (exit $ac_status); }; }; then |
| 6068 | ac_cv_func_mbrtowc=yes |
| 6069 | else |
| 6070 | echo "$as_me: failed program was:" >&5 |
| 6071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6072 | |
| 6073 | ac_cv_func_mbrtowc=no |
| 6074 | fi |
| 6075 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6076 | fi |
| 6077 | echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 |
| 6078 | echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6 |
| 6079 | if test $ac_cv_func_mbrtowc = yes; then |
| 6080 | cat >>confdefs.h <<\_ACEOF |
| 6081 | #define HAVE_MBRTOWC 1 |
| 6082 | _ACEOF |
| 6083 | |
| 6084 | fi |
| 6085 | |
| 6086 | echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 |
| 6087 | echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6 |
| 6088 | if test "${ac_cv_func_mbsrtowcs+set}" = set; then |
| 6089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6090 | else |
| 6091 | cat >conftest.$ac_ext <<_ACEOF |
| 6092 | #line $LINENO "configure" |
| 6093 | /* confdefs.h. */ |
| 6094 | _ACEOF |
| 6095 | cat confdefs.h >>conftest.$ac_ext |
| 6096 | cat >>conftest.$ac_ext <<_ACEOF |
| 6097 | /* end confdefs.h. */ |
| 6098 | /* System header to define __stub macros and hopefully few prototypes, |
| 6099 | which can conflict with char mbsrtowcs (); below. |
| 6100 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6101 | <limits.h> exists even on freestanding compilers. */ |
| 6102 | #ifdef __STDC__ |
| 6103 | # include <limits.h> |
| 6104 | #else |
| 6105 | # include <assert.h> |
| 6106 | #endif |
| 6107 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6108 | #ifdef __cplusplus |
| 6109 | extern "C" |
| 6110 | { |
| 6111 | #endif |
| 6112 | /* We use char because int might match the return type of a gcc2 |
| 6113 | builtin and then its argument prototype would still apply. */ |
| 6114 | char mbsrtowcs (); |
| 6115 | /* The GNU C library defines this for functions which it implements |
| 6116 | to always fail with ENOSYS. Some functions are actually named |
| 6117 | something starting with __ and the normal name is an alias. */ |
| 6118 | #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs) |
| 6119 | choke me |
| 6120 | #else |
| 6121 | char (*f) () = mbsrtowcs; |
| 6122 | #endif |
| 6123 | #ifdef __cplusplus |
| 6124 | } |
| 6125 | #endif |
| 6126 | |
| 6127 | int |
| 6128 | main () |
| 6129 | { |
| 6130 | return f != mbsrtowcs; |
| 6131 | ; |
| 6132 | return 0; |
| 6133 | } |
| 6134 | _ACEOF |
| 6135 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6137 | (eval $ac_link) 2>&5 |
| 6138 | ac_status=$? |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); } && |
| 6141 | { ac_try='test -s conftest$ac_exeext' |
| 6142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6143 | (eval $ac_try) 2>&5 |
| 6144 | ac_status=$? |
| 6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6146 | (exit $ac_status); }; }; then |
| 6147 | ac_cv_func_mbsrtowcs=yes |
| 6148 | else |
| 6149 | echo "$as_me: failed program was:" >&5 |
| 6150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6151 | |
| 6152 | ac_cv_func_mbsrtowcs=no |
| 6153 | fi |
| 6154 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6155 | fi |
| 6156 | echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 |
| 6157 | echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6 |
| 6158 | if test $ac_cv_func_mbsrtowcs = yes; then |
| 6159 | cat >>confdefs.h <<\_ACEOF |
| 6160 | #define HAVE_MBSRTOWCS 1 |
| 6161 | _ACEOF |
| 6162 | |
| 6163 | fi |
| 6164 | |
| 6165 | echo "$as_me:$LINENO: checking for wcwidth" >&5 |
| 6166 | echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6 |
| 6167 | if test "${ac_cv_func_wcwidth+set}" = set; then |
| 6168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6169 | else |
| 6170 | cat >conftest.$ac_ext <<_ACEOF |
| 6171 | #line $LINENO "configure" |
| 6172 | /* confdefs.h. */ |
| 6173 | _ACEOF |
| 6174 | cat confdefs.h >>conftest.$ac_ext |
| 6175 | cat >>conftest.$ac_ext <<_ACEOF |
| 6176 | /* end confdefs.h. */ |
| 6177 | /* System header to define __stub macros and hopefully few prototypes, |
| 6178 | which can conflict with char wcwidth (); below. |
| 6179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6180 | <limits.h> exists even on freestanding compilers. */ |
| 6181 | #ifdef __STDC__ |
| 6182 | # include <limits.h> |
| 6183 | #else |
| 6184 | # include <assert.h> |
| 6185 | #endif |
| 6186 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6187 | #ifdef __cplusplus |
| 6188 | extern "C" |
| 6189 | { |
| 6190 | #endif |
| 6191 | /* We use char because int might match the return type of a gcc2 |
| 6192 | builtin and then its argument prototype would still apply. */ |
| 6193 | char wcwidth (); |
| 6194 | /* The GNU C library defines this for functions which it implements |
| 6195 | to always fail with ENOSYS. Some functions are actually named |
| 6196 | something starting with __ and the normal name is an alias. */ |
| 6197 | #if defined (__stub_wcwidth) || defined (__stub___wcwidth) |
| 6198 | choke me |
| 6199 | #else |
| 6200 | char (*f) () = wcwidth; |
| 6201 | #endif |
| 6202 | #ifdef __cplusplus |
| 6203 | } |
| 6204 | #endif |
| 6205 | |
| 6206 | int |
| 6207 | main () |
| 6208 | { |
| 6209 | return f != wcwidth; |
| 6210 | ; |
| 6211 | return 0; |
| 6212 | } |
| 6213 | _ACEOF |
| 6214 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6216 | (eval $ac_link) 2>&5 |
| 6217 | ac_status=$? |
| 6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6219 | (exit $ac_status); } && |
| 6220 | { ac_try='test -s conftest$ac_exeext' |
| 6221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6222 | (eval $ac_try) 2>&5 |
| 6223 | ac_status=$? |
| 6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6225 | (exit $ac_status); }; }; then |
| 6226 | ac_cv_func_wcwidth=yes |
| 6227 | else |
| 6228 | echo "$as_me: failed program was:" >&5 |
| 6229 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6230 | |
| 6231 | ac_cv_func_wcwidth=no |
| 6232 | fi |
| 6233 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6234 | fi |
| 6235 | echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 |
| 6236 | echo "${ECHO_T}$ac_cv_func_wcwidth" >&6 |
| 6237 | if test $ac_cv_func_wcwidth = yes; then |
| 6238 | cat >>confdefs.h <<\_ACEOF |
| 6239 | #define HAVE_WCWIDTH 1 |
| 6240 | _ACEOF |
| 6241 | |
| 6242 | fi |
| 6243 | |
| 6244 | if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then |
| 6245 | WCWIDTH_OBJ=wcwidth.o |
| 6246 | else |
| 6247 | WCWIDTH_OBJ= |
| 6248 | fi |
| 6249 | |
| 6250 | |
| 6251 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
| 6252 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
| 6253 | if test "${bash_cv_have_mbstate_t+set}" = set; then |
| 6254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6255 | else |
| 6256 | if test "$cross_compiling" = yes; then |
| 6257 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 6258 | See \`config.log' for more details." >&5 |
| 6259 | echo "$as_me: error: cannot run test program while cross compiling |
| 6260 | See \`config.log' for more details." >&2;} |
| 6261 | { (exit 1); exit 1; }; } |
| 6262 | else |
| 6263 | cat >conftest.$ac_ext <<_ACEOF |
| 6264 | #line $LINENO "configure" |
| 6265 | /* confdefs.h. */ |
| 6266 | _ACEOF |
| 6267 | cat confdefs.h >>conftest.$ac_ext |
| 6268 | cat >>conftest.$ac_ext <<_ACEOF |
| 6269 | /* end confdefs.h. */ |
| 6270 | |
| 6271 | #include <wchar.h> |
| 6272 | int |
| 6273 | main () |
| 6274 | { |
| 6275 | mbstate_t ps; |
| 6276 | return 0; |
| 6277 | } |
| 6278 | _ACEOF |
| 6279 | rm -f conftest$ac_exeext |
| 6280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6281 | (eval $ac_link) 2>&5 |
| 6282 | ac_status=$? |
| 6283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6284 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6286 | (eval $ac_try) 2>&5 |
| 6287 | ac_status=$? |
| 6288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6289 | (exit $ac_status); }; }; then |
| 6290 | bash_cv_have_mbstate_t=yes |
| 6291 | else |
| 6292 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6293 | echo "$as_me: failed program was:" >&5 |
| 6294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6295 | |
| 6296 | ( exit $ac_status ) |
| 6297 | bash_cv_have_mbstate_t=no |
| 6298 | fi |
| 6299 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6300 | fi |
| 6301 | fi |
| 6302 | echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5 |
| 6303 | echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6 |
| 6304 | if test $bash_cv_have_mbstate_t = yes; then |
| 6305 | cat >>confdefs.h <<\_ACEOF |
| 6306 | #define HAVE_MBSTATE_T 1 |
| 6307 | _ACEOF |
| 6308 | |
| 6309 | fi |
| 6310 | |
| 6311 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 6312 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
| 6313 | if test "${bash_cv_langinfo_codeset+set}" = set; then |
| 6314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6315 | else |
| 6316 | cat >conftest.$ac_ext <<_ACEOF |
| 6317 | #line $LINENO "configure" |
| 6318 | /* confdefs.h. */ |
| 6319 | _ACEOF |
| 6320 | cat confdefs.h >>conftest.$ac_ext |
| 6321 | cat >>conftest.$ac_ext <<_ACEOF |
| 6322 | /* end confdefs.h. */ |
| 6323 | #include <langinfo.h> |
| 6324 | int |
| 6325 | main () |
| 6326 | { |
| 6327 | char* cs = nl_langinfo(CODESET); |
| 6328 | ; |
| 6329 | return 0; |
| 6330 | } |
| 6331 | _ACEOF |
| 6332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6334 | (eval $ac_link) 2>&5 |
| 6335 | ac_status=$? |
| 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6337 | (exit $ac_status); } && |
| 6338 | { ac_try='test -s conftest$ac_exeext' |
| 6339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6340 | (eval $ac_try) 2>&5 |
| 6341 | ac_status=$? |
| 6342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6343 | (exit $ac_status); }; }; then |
| 6344 | bash_cv_langinfo_codeset=yes |
| 6345 | else |
| 6346 | echo "$as_me: failed program was:" >&5 |
| 6347 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6348 | |
| 6349 | bash_cv_langinfo_codeset=no |
| 6350 | fi |
| 6351 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 6352 | fi |
| 6353 | echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 |
| 6354 | echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6 |
| 6355 | if test $bash_cv_langinfo_codeset = yes; then |
| 6356 | cat >>confdefs.h <<\_ACEOF |
| 6357 | #define HAVE_LANGINFO_CODESET 1 |
| 6358 | _ACEOF |
| 6359 | |
| 6360 | fi |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | case "$host_cpu" in |
| 6365 | *cray*) LOCAL_CFLAGS=-DCRAY ;; |
| 6366 | *s390*) LOCAL_CFLAGS=-fsigned-char ;; |
| 6367 | esac |
| 6368 | |
| 6369 | case "$host_os" in |
| 6370 | isc*) LOCAL_CFLAGS=-Disc386 ;; |
| 6371 | esac |
| 6372 | |
| 6373 | # shared library configuration section |
| 6374 | # |
| 6375 | # Shared object configuration section. These values are generated by |
| 6376 | # ${srcdir}/support/shobj-conf |
| 6377 | # |
| 6378 | if test -f ${srcdir}/support/shobj-conf; then |
| 6379 | echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5 |
| 6380 | echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6 |
| 6381 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` |
| 6382 | |
| 6383 | |
| 6384 | |
| 6385 | |
| 6386 | |
| 6387 | |
| 6388 | |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | |
| 6393 | |
| 6394 | echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5 |
| 6395 | echo "${ECHO_T}$SHLIB_STATUS" >&6 |
| 6396 | |
| 6397 | # SHLIB_STATUS is either `supported' or `unsupported'. If it's |
| 6398 | # `unsupported', turn off any default shared library building |
| 6399 | if test "$SHLIB_STATUS" = 'unsupported'; then |
| 6400 | opt_shared_libs=no |
| 6401 | fi |
| 6402 | |
| 6403 | # shared library versioning |
| 6404 | # quoted for m4 so I can use character classes |
| 6405 | SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` |
| 6406 | SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` |
| 6407 | |
| 6408 | |
| 6409 | fi |
| 6410 | |
| 6411 | if test "$opt_static_libs" = "yes"; then |
| 6412 | STATIC_TARGET=static |
| 6413 | STATIC_INSTALL_TARGET=install-static |
| 6414 | fi |
| 6415 | if test "$opt_shared_libs" = "yes"; then |
| 6416 | SHARED_TARGET=shared |
| 6417 | SHARED_INSTALL_TARGET=install-shared |
| 6418 | fi |
| 6419 | |
| 6420 | |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 | |
| 6425 | case "$host_os" in |
| 6426 | msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file |
| 6427 | *) BUILD_DIR=`pwd` ;; |
| 6428 | esac |
| 6429 | |
| 6430 | |
| 6431 | |
| 6432 | |
| 6433 | |
| 6434 | |
| 6435 | |
| 6436 | |
| 6437 | |
| 6438 | |
| 6439 | |
| 6440 | |
| 6441 | |
| 6442 | |
| 6443 | |
| 6444 | |
| 6445 | |
| 6446 | |
| 6447 | ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile" |
| 6448 | ac_config_commands="$ac_config_commands default" |
| 6449 | cat >confcache <<\_ACEOF |
| 6450 | # This file is a shell script that caches the results of configure |
| 6451 | # tests run on this system so they can be shared between configure |
| 6452 | # scripts and configure runs, see configure's option --config-cache. |
| 6453 | # It is not useful on other systems. If it contains results you don't |
| 6454 | # want to keep, you may remove or edit it. |
| 6455 | # |
| 6456 | # config.status only pays attention to the cache file if you give it |
| 6457 | # the --recheck option to rerun configure. |
| 6458 | # |
| 6459 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 6460 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 6461 | # following values. |
| 6462 | |
| 6463 | _ACEOF |
| 6464 | |
| 6465 | # The following way of writing the cache mishandles newlines in values, |
| 6466 | # but we know of no workaround that is simple, portable, and efficient. |
| 6467 | # So, don't put newlines in cache variables' values. |
| 6468 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6469 | # and sets the high bit in the cache file unless we assign to the vars. |
| 6470 | { |
| 6471 | (set) 2>&1 | |
| 6472 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6473 | *ac_space=\ *) |
| 6474 | # `set' does not quote correctly, so add quotes (double-quote |
| 6475 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 6476 | sed -n \ |
| 6477 | "s/'/'\\\\''/g; |
| 6478 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 6479 | ;; |
| 6480 | *) |
| 6481 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6482 | sed -n \ |
| 6483 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 6484 | ;; |
| 6485 | esac; |
| 6486 | } | |
| 6487 | sed ' |
| 6488 | t clear |
| 6489 | : clear |
| 6490 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 6491 | t end |
| 6492 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 6493 | : end' >>confcache |
| 6494 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 6495 | if test -w $cache_file; then |
| 6496 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 6497 | cat confcache >$cache_file |
| 6498 | else |
| 6499 | echo "not updating unwritable cache $cache_file" |
| 6500 | fi |
| 6501 | fi |
| 6502 | rm -f confcache |
| 6503 | |
| 6504 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6505 | # Let make expand exec_prefix. |
| 6506 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6507 | |
| 6508 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 6509 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 6510 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 6511 | # (actually we leave an empty line to preserve line numbers). |
| 6512 | if test "x$srcdir" = x.; then |
| 6513 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 6514 | s/:*\$(srcdir):*/:/; |
| 6515 | s/:*\${srcdir}:*/:/; |
| 6516 | s/:*@srcdir@:*/:/; |
| 6517 | s/^\([^=]*=[ ]*\):*/\1/; |
| 6518 | s/:*$//; |
| 6519 | s/^[^=]*=[ ]*$//; |
| 6520 | }' |
| 6521 | fi |
| 6522 | |
| 6523 | DEFS=-DHAVE_CONFIG_H |
| 6524 | |
| 6525 | ac_libobjs= |
| 6526 | ac_ltlibobjs= |
| 6527 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 6528 | # 1. Remove the extension, and $U if already installed. |
| 6529 | ac_i=`echo "$ac_i" | |
| 6530 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 6531 | # 2. Add them. |
| 6532 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 6533 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 6534 | done |
| 6535 | LIBOBJS=$ac_libobjs |
| 6536 | |
| 6537 | LTLIBOBJS=$ac_ltlibobjs |
| 6538 | |
| 6539 | |
| 6540 | |
| 6541 | : ${CONFIG_STATUS=./config.status} |
| 6542 | ac_clean_files_save=$ac_clean_files |
| 6543 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 6544 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 6545 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 6546 | cat >$CONFIG_STATUS <<_ACEOF |
| 6547 | #! $SHELL |
| 6548 | # Generated by $as_me. |
| 6549 | # Run this file to recreate the current configuration. |
| 6550 | # Compiler output produced by configure, useful for debugging |
| 6551 | # configure, is in config.log if it exists. |
| 6552 | |
| 6553 | debug=false |
| 6554 | ac_cs_recheck=false |
| 6555 | ac_cs_silent=false |
| 6556 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 6557 | _ACEOF |
| 6558 | |
| 6559 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6560 | ## --------------------- ## |
| 6561 | ## M4sh Initialization. ## |
| 6562 | ## --------------------- ## |
| 6563 | |
| 6564 | # Be Bourne compatible |
| 6565 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 6566 | emulate sh |
| 6567 | NULLCMD=: |
| 6568 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 6569 | # is contrary to our usage. Disable this feature. |
| 6570 | alias -g '${1+"$@"}'='"$@"' |
| 6571 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 6572 | set -o posix |
| 6573 | fi |
| 6574 | |
| 6575 | # Support unset when possible. |
| 6576 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 6577 | as_unset=unset |
| 6578 | else |
| 6579 | as_unset=false |
| 6580 | fi |
| 6581 | |
| 6582 | |
| 6583 | # Work around bugs in pre-3.0 UWIN ksh. |
| 6584 | $as_unset ENV MAIL MAILPATH |
| 6585 | PS1='$ ' |
| 6586 | PS2='> ' |
| 6587 | PS4='+ ' |
| 6588 | |
| 6589 | # NLS nuisances. |
| 6590 | for as_var in \ |
| 6591 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 6592 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 6593 | LC_TELEPHONE LC_TIME |
| 6594 | do |
| 6595 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 6596 | eval $as_var=C; export $as_var |
| 6597 | else |
| 6598 | $as_unset $as_var |
| 6599 | fi |
| 6600 | done |
| 6601 | |
| 6602 | # Required to use basename. |
| 6603 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 6604 | as_expr=expr |
| 6605 | else |
| 6606 | as_expr=false |
| 6607 | fi |
| 6608 | |
| 6609 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 6610 | as_basename=basename |
| 6611 | else |
| 6612 | as_basename=false |
| 6613 | fi |
| 6614 | |
| 6615 | |
| 6616 | # Name of the executable. |
| 6617 | as_me=`$as_basename "$0" || |
| 6618 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 6619 | X"$0" : 'X\(//\)$' \| \ |
| 6620 | X"$0" : 'X\(/\)$' \| \ |
| 6621 | . : '\(.\)' 2>/dev/null || |
| 6622 | echo X/"$0" | |
| 6623 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 6624 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 6625 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 6626 | s/.*/./; q'` |
| 6627 | |
| 6628 | |
| 6629 | # PATH needs CR, and LINENO needs CR and PATH. |
| 6630 | # Avoid depending upon Character Ranges. |
| 6631 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 6632 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 6633 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 6634 | as_cr_digits='0123456789' |
| 6635 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 6636 | |
| 6637 | # The user is always right. |
| 6638 | if test "${PATH_SEPARATOR+set}" != set; then |
| 6639 | echo "#! /bin/sh" >conf$$.sh |
| 6640 | echo "exit 0" >>conf$$.sh |
| 6641 | chmod +x conf$$.sh |
| 6642 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 6643 | PATH_SEPARATOR=';' |
| 6644 | else |
| 6645 | PATH_SEPARATOR=: |
| 6646 | fi |
| 6647 | rm -f conf$$.sh |
| 6648 | fi |
| 6649 | |
| 6650 | |
| 6651 | as_lineno_1=$LINENO |
| 6652 | as_lineno_2=$LINENO |
| 6653 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 6654 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 6655 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 6656 | # Find who we are. Look in the path if we contain no path at all |
| 6657 | # relative or not. |
| 6658 | case $0 in |
| 6659 | *[\\/]* ) as_myself=$0 ;; |
| 6660 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6661 | for as_dir in $PATH |
| 6662 | do |
| 6663 | IFS=$as_save_IFS |
| 6664 | test -z "$as_dir" && as_dir=. |
| 6665 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 6666 | done |
| 6667 | |
| 6668 | ;; |
| 6669 | esac |
| 6670 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 6671 | # in which case we are not to be found in the path. |
| 6672 | if test "x$as_myself" = x; then |
| 6673 | as_myself=$0 |
| 6674 | fi |
| 6675 | if test ! -f "$as_myself"; then |
| 6676 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 6677 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 6678 | { (exit 1); exit 1; }; } |
| 6679 | fi |
| 6680 | case $CONFIG_SHELL in |
| 6681 | '') |
| 6682 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6683 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 6684 | do |
| 6685 | IFS=$as_save_IFS |
| 6686 | test -z "$as_dir" && as_dir=. |
| 6687 | for as_base in sh bash ksh sh5; do |
| 6688 | case $as_dir in |
| 6689 | /*) |
| 6690 | if ("$as_dir/$as_base" -c ' |
| 6691 | as_lineno_1=$LINENO |
| 6692 | as_lineno_2=$LINENO |
| 6693 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 6694 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 6695 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 6696 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 6697 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 6698 | CONFIG_SHELL=$as_dir/$as_base |
| 6699 | export CONFIG_SHELL |
| 6700 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 6701 | fi;; |
| 6702 | esac |
| 6703 | done |
| 6704 | done |
| 6705 | ;; |
| 6706 | esac |
| 6707 | |
| 6708 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 6709 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 6710 | # line-number line before each line; the second 'sed' does the real |
| 6711 | # work. The second script uses 'N' to pair each line-number line |
| 6712 | # with the numbered line, and appends trailing '-' during |
| 6713 | # substitution so that $LINENO is not a special case at line end. |
| 6714 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 6715 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 6716 | sed '=' <$as_myself | |
| 6717 | sed ' |
| 6718 | N |
| 6719 | s,$,-, |
| 6720 | : loop |
| 6721 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 6722 | t loop |
| 6723 | s,-$,, |
| 6724 | s,^['$as_cr_digits']*\n,, |
| 6725 | ' >$as_me.lineno && |
| 6726 | chmod +x $as_me.lineno || |
| 6727 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 6728 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 6729 | { (exit 1); exit 1; }; } |
| 6730 | |
| 6731 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 6732 | # (the dirname of $[0] is not the place where we might find the |
| 6733 | # original and so on. Autoconf is especially sensible to this). |
| 6734 | . ./$as_me.lineno |
| 6735 | # Exit status is that of the last command. |
| 6736 | exit |
| 6737 | } |
| 6738 | |
| 6739 | |
| 6740 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 6741 | *c*,-n*) ECHO_N= ECHO_C=' |
| 6742 | ' ECHO_T=' ' ;; |
| 6743 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 6744 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 6745 | esac |
| 6746 | |
| 6747 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 6748 | as_expr=expr |
| 6749 | else |
| 6750 | as_expr=false |
| 6751 | fi |
| 6752 | |
| 6753 | rm -f conf$$ conf$$.exe conf$$.file |
| 6754 | echo >conf$$.file |
| 6755 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 6756 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 6757 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 6758 | if test -f conf$$.exe; then |
| 6759 | # Don't use ln at all; we don't have any links |
| 6760 | as_ln_s='cp -p' |
| 6761 | else |
| 6762 | as_ln_s='ln -s' |
| 6763 | fi |
| 6764 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 6765 | as_ln_s=ln |
| 6766 | else |
| 6767 | as_ln_s='cp -p' |
| 6768 | fi |
| 6769 | rm -f conf$$ conf$$.exe conf$$.file |
| 6770 | |
| 6771 | if mkdir -p . 2>/dev/null; then |
| 6772 | as_mkdir_p=: |
| 6773 | else |
| 6774 | as_mkdir_p=false |
| 6775 | fi |
| 6776 | |
| 6777 | as_executable_p="test -f" |
| 6778 | |
| 6779 | # Sed expression to map a string onto a valid CPP name. |
| 6780 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 6781 | |
| 6782 | # Sed expression to map a string onto a valid variable name. |
| 6783 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 6784 | |
| 6785 | |
| 6786 | # IFS |
| 6787 | # We need space, tab and new line, in precisely that order. |
| 6788 | as_nl=' |
| 6789 | ' |
| 6790 | IFS=" $as_nl" |
| 6791 | |
| 6792 | # CDPATH. |
| 6793 | $as_unset CDPATH |
| 6794 | |
| 6795 | exec 6>&1 |
| 6796 | |
| 6797 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 6798 | # report actual input values of CONFIG_FILES etc. instead of their |
| 6799 | # values after options handling. Logging --version etc. is OK. |
| 6800 | exec 5>>config.log |
| 6801 | { |
| 6802 | echo |
| 6803 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6804 | ## Running $as_me. ## |
| 6805 | _ASBOX |
| 6806 | } >&5 |
| 6807 | cat >&5 <<_CSEOF |
| 6808 | |
| 6809 | This file was extended by readline $as_me 4.3, which was |
| 6810 | generated by GNU Autoconf 2.57. Invocation command line was |
| 6811 | |
| 6812 | CONFIG_FILES = $CONFIG_FILES |
| 6813 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6814 | CONFIG_LINKS = $CONFIG_LINKS |
| 6815 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6816 | $ $0 $@ |
| 6817 | |
| 6818 | _CSEOF |
| 6819 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 6820 | echo >&5 |
| 6821 | _ACEOF |
| 6822 | |
| 6823 | # Files that config.status was made for. |
| 6824 | if test -n "$ac_config_files"; then |
| 6825 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 6826 | fi |
| 6827 | |
| 6828 | if test -n "$ac_config_headers"; then |
| 6829 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 6830 | fi |
| 6831 | |
| 6832 | if test -n "$ac_config_links"; then |
| 6833 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 6834 | fi |
| 6835 | |
| 6836 | if test -n "$ac_config_commands"; then |
| 6837 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 6838 | fi |
| 6839 | |
| 6840 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6841 | |
| 6842 | ac_cs_usage="\ |
| 6843 | \`$as_me' instantiates files from templates according to the |
| 6844 | current configuration. |
| 6845 | |
| 6846 | Usage: $0 [OPTIONS] [FILE]... |
| 6847 | |
| 6848 | -h, --help print this help, then exit |
| 6849 | -V, --version print version number, then exit |
| 6850 | -q, --quiet do not print progress messages |
| 6851 | -d, --debug don't remove temporary files |
| 6852 | --recheck update $as_me by reconfiguring in the same conditions |
| 6853 | --file=FILE[:TEMPLATE] |
| 6854 | instantiate the configuration file FILE |
| 6855 | --header=FILE[:TEMPLATE] |
| 6856 | instantiate the configuration header FILE |
| 6857 | |
| 6858 | Configuration files: |
| 6859 | $config_files |
| 6860 | |
| 6861 | Configuration headers: |
| 6862 | $config_headers |
| 6863 | |
| 6864 | Configuration commands: |
| 6865 | $config_commands |
| 6866 | |
| 6867 | Report bugs to <bug-autoconf@gnu.org>." |
| 6868 | _ACEOF |
| 6869 | |
| 6870 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6871 | ac_cs_version="\\ |
| 6872 | readline config.status 4.3 |
| 6873 | configured by $0, generated by GNU Autoconf 2.57, |
| 6874 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 6875 | |
| 6876 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6877 | Free Software Foundation, Inc. |
| 6878 | This config.status script is free software; the Free Software Foundation |
| 6879 | gives unlimited permission to copy, distribute and modify it." |
| 6880 | srcdir=$srcdir |
| 6881 | INSTALL="$INSTALL" |
| 6882 | _ACEOF |
| 6883 | |
| 6884 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6885 | # If no file are specified by the user, then we need to provide default |
| 6886 | # value. By we need to know if files were specified by the user. |
| 6887 | ac_need_defaults=: |
| 6888 | while test $# != 0 |
| 6889 | do |
| 6890 | case $1 in |
| 6891 | --*=*) |
| 6892 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 6893 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 6894 | ac_shift=: |
| 6895 | ;; |
| 6896 | -*) |
| 6897 | ac_option=$1 |
| 6898 | ac_optarg=$2 |
| 6899 | ac_shift=shift |
| 6900 | ;; |
| 6901 | *) # This is not an option, so the user has probably given explicit |
| 6902 | # arguments. |
| 6903 | ac_option=$1 |
| 6904 | ac_need_defaults=false;; |
| 6905 | esac |
| 6906 | |
| 6907 | case $ac_option in |
| 6908 | # Handling of the options. |
| 6909 | _ACEOF |
| 6910 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6911 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6912 | ac_cs_recheck=: ;; |
| 6913 | --version | --vers* | -V ) |
| 6914 | echo "$ac_cs_version"; exit 0 ;; |
| 6915 | --he | --h) |
| 6916 | # Conflict between --help and --header |
| 6917 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 6918 | Try \`$0 --help' for more information." >&5 |
| 6919 | echo "$as_me: error: ambiguous option: $1 |
| 6920 | Try \`$0 --help' for more information." >&2;} |
| 6921 | { (exit 1); exit 1; }; };; |
| 6922 | --help | --hel | -h ) |
| 6923 | echo "$ac_cs_usage"; exit 0 ;; |
| 6924 | --debug | --d* | -d ) |
| 6925 | debug=: ;; |
| 6926 | --file | --fil | --fi | --f ) |
| 6927 | $ac_shift |
| 6928 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 6929 | ac_need_defaults=false;; |
| 6930 | --header | --heade | --head | --hea ) |
| 6931 | $ac_shift |
| 6932 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 6933 | ac_need_defaults=false;; |
| 6934 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6935 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6936 | ac_cs_silent=: ;; |
| 6937 | |
| 6938 | # This is an error. |
| 6939 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 6940 | Try \`$0 --help' for more information." >&5 |
| 6941 | echo "$as_me: error: unrecognized option: $1 |
| 6942 | Try \`$0 --help' for more information." >&2;} |
| 6943 | { (exit 1); exit 1; }; } ;; |
| 6944 | |
| 6945 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 6946 | |
| 6947 | esac |
| 6948 | shift |
| 6949 | done |
| 6950 | |
| 6951 | ac_configure_extra_args= |
| 6952 | |
| 6953 | if $ac_cs_silent; then |
| 6954 | exec 6>/dev/null |
| 6955 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6956 | fi |
| 6957 | |
| 6958 | _ACEOF |
| 6959 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6960 | if \$ac_cs_recheck; then |
| 6961 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 6962 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6963 | fi |
| 6964 | |
| 6965 | _ACEOF |
| 6966 | |
| 6967 | |
| 6968 | |
| 6969 | |
| 6970 | |
| 6971 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6972 | for ac_config_target in $ac_config_targets |
| 6973 | do |
| 6974 | case "$ac_config_target" in |
| 6975 | # Handling of arguments. |
| 6976 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6977 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 6978 | "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 6979 | "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; |
| 6980 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 6981 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 6982 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 6983 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 6984 | { (exit 1); exit 1; }; };; |
| 6985 | esac |
| 6986 | done |
| 6987 | |
| 6988 | # If the user did not use the arguments to specify the items to instantiate, |
| 6989 | # then the envvar interface is used. Set only those that are not. |
| 6990 | # We use the long form for the default assignment because of an extremely |
| 6991 | # bizarre bug on SunOS 4.1.3. |
| 6992 | if $ac_need_defaults; then |
| 6993 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6994 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6995 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 6996 | fi |
| 6997 | |
| 6998 | # Have a temporary directory for convenience. Make it in the build tree |
| 6999 | # simply because there is no reason to put it here, and in addition, |
| 7000 | # creating and moving files from /tmp can sometimes cause problems. |
| 7001 | # Create a temporary directory, and hook for its removal unless debugging. |
| 7002 | $debug || |
| 7003 | { |
| 7004 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 7005 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 7006 | } |
| 7007 | |
| 7008 | # Create a (secure) tmp directory for tmp files. |
| 7009 | |
| 7010 | { |
| 7011 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 7012 | test -n "$tmp" && test -d "$tmp" |
| 7013 | } || |
| 7014 | { |
| 7015 | tmp=./confstat$$-$RANDOM |
| 7016 | (umask 077 && mkdir $tmp) |
| 7017 | } || |
| 7018 | { |
| 7019 | echo "$me: cannot create a temporary directory in ." >&2 |
| 7020 | { (exit 1); exit 1; } |
| 7021 | } |
| 7022 | |
| 7023 | _ACEOF |
| 7024 | |
| 7025 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7026 | |
| 7027 | # |
| 7028 | # CONFIG_FILES section. |
| 7029 | # |
| 7030 | |
| 7031 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 7032 | # This happens for instance when ./config.status config.h |
| 7033 | if test -n "\$CONFIG_FILES"; then |
| 7034 | # Protect against being on the right side of a sed subst in config.status. |
| 7035 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 7036 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 7037 | s,@SHELL@,$SHELL,;t t |
| 7038 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 7039 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 7040 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 7041 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 7042 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 7043 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 7044 | s,@exec_prefix@,$exec_prefix,;t t |
| 7045 | s,@prefix@,$prefix,;t t |
| 7046 | s,@program_transform_name@,$program_transform_name,;t t |
| 7047 | s,@bindir@,$bindir,;t t |
| 7048 | s,@sbindir@,$sbindir,;t t |
| 7049 | s,@libexecdir@,$libexecdir,;t t |
| 7050 | s,@datadir@,$datadir,;t t |
| 7051 | s,@sysconfdir@,$sysconfdir,;t t |
| 7052 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 7053 | s,@localstatedir@,$localstatedir,;t t |
| 7054 | s,@libdir@,$libdir,;t t |
| 7055 | s,@includedir@,$includedir,;t t |
| 7056 | s,@oldincludedir@,$oldincludedir,;t t |
| 7057 | s,@infodir@,$infodir,;t t |
| 7058 | s,@mandir@,$mandir,;t t |
| 7059 | s,@build_alias@,$build_alias,;t t |
| 7060 | s,@host_alias@,$host_alias,;t t |
| 7061 | s,@target_alias@,$target_alias,;t t |
| 7062 | s,@DEFS@,$DEFS,;t t |
| 7063 | s,@ECHO_C@,$ECHO_C,;t t |
| 7064 | s,@ECHO_N@,$ECHO_N,;t t |
| 7065 | s,@ECHO_T@,$ECHO_T,;t t |
| 7066 | s,@LIBS@,$LIBS,;t t |
| 7067 | s,@build@,$build,;t t |
| 7068 | s,@build_cpu@,$build_cpu,;t t |
| 7069 | s,@build_vendor@,$build_vendor,;t t |
| 7070 | s,@build_os@,$build_os,;t t |
| 7071 | s,@host@,$host,;t t |
| 7072 | s,@host_cpu@,$host_cpu,;t t |
| 7073 | s,@host_vendor@,$host_vendor,;t t |
| 7074 | s,@host_os@,$host_os,;t t |
| 7075 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 7076 | s,@CC@,$CC,;t t |
| 7077 | s,@CFLAGS@,$CFLAGS,;t t |
| 7078 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 7079 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 7080 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 7081 | s,@EXEEXT@,$EXEEXT,;t t |
| 7082 | s,@OBJEXT@,$OBJEXT,;t t |
| 7083 | s,@CPP@,$CPP,;t t |
| 7084 | s,@EGREP@,$EGREP,;t t |
| 7085 | s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t |
| 7086 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
| 7087 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 7088 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 7089 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 7090 | s,@AR@,$AR,;t t |
| 7091 | s,@RANLIB@,$RANLIB,;t t |
| 7092 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 7093 | s,@MAKE_SHELL@,$MAKE_SHELL,;t t |
| 7094 | s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t |
| 7095 | s,@SHOBJ_CC@,$SHOBJ_CC,;t t |
| 7096 | s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t |
| 7097 | s,@SHOBJ_LD@,$SHOBJ_LD,;t t |
| 7098 | s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t |
| 7099 | s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t |
| 7100 | s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t |
| 7101 | s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t |
| 7102 | s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t |
| 7103 | s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t |
| 7104 | s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t |
| 7105 | s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t |
| 7106 | s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t |
| 7107 | s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t |
| 7108 | s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t |
| 7109 | s,@STATIC_TARGET@,$STATIC_TARGET,;t t |
| 7110 | s,@SHARED_TARGET@,$SHARED_TARGET,;t t |
| 7111 | s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t |
| 7112 | s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t |
| 7113 | s,@BUILD_DIR@,$BUILD_DIR,;t t |
| 7114 | s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t |
| 7115 | s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t |
| 7116 | s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t |
| 7117 | s,@ARFLAGS@,$ARFLAGS,;t t |
| 7118 | s,@LIBVERSION@,$LIBVERSION,;t t |
| 7119 | s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t |
| 7120 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 7121 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 7122 | CEOF |
| 7123 | |
| 7124 | _ACEOF |
| 7125 | |
| 7126 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7127 | # Split the substitutions into bite-sized pieces for seds with |
| 7128 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 7129 | ac_max_sed_lines=48 |
| 7130 | ac_sed_frag=1 # Number of current file. |
| 7131 | ac_beg=1 # First line for current file. |
| 7132 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 7133 | ac_more_lines=: |
| 7134 | ac_sed_cmds= |
| 7135 | while $ac_more_lines; do |
| 7136 | if test $ac_beg -gt 1; then |
| 7137 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7138 | else |
| 7139 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 7140 | fi |
| 7141 | if test ! -s $tmp/subs.frag; then |
| 7142 | ac_more_lines=false |
| 7143 | else |
| 7144 | # The purpose of the label and of the branching condition is to |
| 7145 | # speed up the sed processing (if there are no `@' at all, there |
| 7146 | # is no need to browse any of the substitutions). |
| 7147 | # These are the two extra sed commands mentioned above. |
| 7148 | (echo ':t |
| 7149 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 7150 | if test -z "$ac_sed_cmds"; then |
| 7151 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7152 | else |
| 7153 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 7154 | fi |
| 7155 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 7156 | ac_beg=$ac_end |
| 7157 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 7158 | fi |
| 7159 | done |
| 7160 | if test -z "$ac_sed_cmds"; then |
| 7161 | ac_sed_cmds=cat |
| 7162 | fi |
| 7163 | fi # test -n "$CONFIG_FILES" |
| 7164 | |
| 7165 | _ACEOF |
| 7166 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7167 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 7168 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7169 | case $ac_file in |
| 7170 | - | *:- | *:-:* ) # input from stdin |
| 7171 | cat >$tmp/stdin |
| 7172 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7173 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7174 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7175 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7176 | * ) ac_file_in=$ac_file.in ;; |
| 7177 | esac |
| 7178 | |
| 7179 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 7180 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 7181 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7182 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7183 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7184 | X"$ac_file" : 'X\(/\)' \| \ |
| 7185 | . : '\(.\)' 2>/dev/null || |
| 7186 | echo X"$ac_file" | |
| 7187 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7188 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7189 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7190 | /^X\(\/\).*/{ s//\1/; q; } |
| 7191 | s/.*/./; q'` |
| 7192 | { if $as_mkdir_p; then |
| 7193 | mkdir -p "$ac_dir" |
| 7194 | else |
| 7195 | as_dir="$ac_dir" |
| 7196 | as_dirs= |
| 7197 | while test ! -d "$as_dir"; do |
| 7198 | as_dirs="$as_dir $as_dirs" |
| 7199 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 7200 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7201 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7202 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7203 | X"$as_dir" : 'X\(/\)' \| \ |
| 7204 | . : '\(.\)' 2>/dev/null || |
| 7205 | echo X"$as_dir" | |
| 7206 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7207 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7208 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7209 | /^X\(\/\).*/{ s//\1/; q; } |
| 7210 | s/.*/./; q'` |
| 7211 | done |
| 7212 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 7213 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 7214 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 7215 | { (exit 1); exit 1; }; }; } |
| 7216 | |
| 7217 | ac_builddir=. |
| 7218 | |
| 7219 | if test "$ac_dir" != .; then |
| 7220 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 7221 | # A "../" for each directory in $ac_dir_suffix. |
| 7222 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 7223 | else |
| 7224 | ac_dir_suffix= ac_top_builddir= |
| 7225 | fi |
| 7226 | |
| 7227 | case $srcdir in |
| 7228 | .) # No --srcdir option. We are building in place. |
| 7229 | ac_srcdir=. |
| 7230 | if test -z "$ac_top_builddir"; then |
| 7231 | ac_top_srcdir=. |
| 7232 | else |
| 7233 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7234 | fi ;; |
| 7235 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7236 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7237 | ac_top_srcdir=$srcdir ;; |
| 7238 | *) # Relative path. |
| 7239 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7240 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7241 | esac |
| 7242 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 7243 | # absolute. |
| 7244 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 7245 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 7246 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 7247 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 7248 | |
| 7249 | |
| 7250 | case $INSTALL in |
| 7251 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 7252 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 7253 | esac |
| 7254 | |
| 7255 | if test x"$ac_file" != x-; then |
| 7256 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7257 | echo "$as_me: creating $ac_file" >&6;} |
| 7258 | rm -f "$ac_file" |
| 7259 | fi |
| 7260 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7261 | # use $as_me), people would be surprised to read: |
| 7262 | # /* config.h. Generated by config.status. */ |
| 7263 | if test x"$ac_file" = x-; then |
| 7264 | configure_input= |
| 7265 | else |
| 7266 | configure_input="$ac_file. " |
| 7267 | fi |
| 7268 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 7269 | sed 's,.*/,,'` by configure." |
| 7270 | |
| 7271 | # First look for the input files in the build tree, otherwise in the |
| 7272 | # src tree. |
| 7273 | ac_file_inputs=`IFS=: |
| 7274 | for f in $ac_file_in; do |
| 7275 | case $f in |
| 7276 | -) echo $tmp/stdin ;; |
| 7277 | [\\/$]*) |
| 7278 | # Absolute (can't be DOS-style, as IFS=:) |
| 7279 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7280 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7281 | { (exit 1); exit 1; }; } |
| 7282 | echo $f;; |
| 7283 | *) # Relative |
| 7284 | if test -f "$f"; then |
| 7285 | # Build tree |
| 7286 | echo $f |
| 7287 | elif test -f "$srcdir/$f"; then |
| 7288 | # Source tree |
| 7289 | echo $srcdir/$f |
| 7290 | else |
| 7291 | # /dev/null tree |
| 7292 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7293 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7294 | { (exit 1); exit 1; }; } |
| 7295 | fi;; |
| 7296 | esac |
| 7297 | done` || { (exit 1); exit 1; } |
| 7298 | _ACEOF |
| 7299 | cat >>$CONFIG_STATUS <<_ACEOF |
| 7300 | sed "$ac_vpsub |
| 7301 | $extrasub |
| 7302 | _ACEOF |
| 7303 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7304 | :t |
| 7305 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 7306 | s,@configure_input@,$configure_input,;t t |
| 7307 | s,@srcdir@,$ac_srcdir,;t t |
| 7308 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 7309 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 7310 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 7311 | s,@builddir@,$ac_builddir,;t t |
| 7312 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 7313 | s,@top_builddir@,$ac_top_builddir,;t t |
| 7314 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 7315 | s,@INSTALL@,$ac_INSTALL,;t t |
| 7316 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 7317 | rm -f $tmp/stdin |
| 7318 | if test x"$ac_file" != x-; then |
| 7319 | mv $tmp/out $ac_file |
| 7320 | else |
| 7321 | cat $tmp/out |
| 7322 | rm -f $tmp/out |
| 7323 | fi |
| 7324 | |
| 7325 | done |
| 7326 | _ACEOF |
| 7327 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7328 | |
| 7329 | # |
| 7330 | # CONFIG_HEADER section. |
| 7331 | # |
| 7332 | |
| 7333 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 7334 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 7335 | # |
| 7336 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 7337 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 7338 | ac_dB='[ ].*$,\1#\2' |
| 7339 | ac_dC=' ' |
| 7340 | ac_dD=',;t' |
| 7341 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 7342 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 7343 | ac_uB='$,\1#\2define\3' |
| 7344 | ac_uC=' ' |
| 7345 | ac_uD=',;t' |
| 7346 | |
| 7347 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 7348 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 7349 | case $ac_file in |
| 7350 | - | *:- | *:-:* ) # input from stdin |
| 7351 | cat >$tmp/stdin |
| 7352 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7353 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7354 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7355 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 7356 | * ) ac_file_in=$ac_file.in ;; |
| 7357 | esac |
| 7358 | |
| 7359 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 7360 | echo "$as_me: creating $ac_file" >&6;} |
| 7361 | |
| 7362 | # First look for the input files in the build tree, otherwise in the |
| 7363 | # src tree. |
| 7364 | ac_file_inputs=`IFS=: |
| 7365 | for f in $ac_file_in; do |
| 7366 | case $f in |
| 7367 | -) echo $tmp/stdin ;; |
| 7368 | [\\/$]*) |
| 7369 | # Absolute (can't be DOS-style, as IFS=:) |
| 7370 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7371 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7372 | { (exit 1); exit 1; }; } |
| 7373 | echo $f;; |
| 7374 | *) # Relative |
| 7375 | if test -f "$f"; then |
| 7376 | # Build tree |
| 7377 | echo $f |
| 7378 | elif test -f "$srcdir/$f"; then |
| 7379 | # Source tree |
| 7380 | echo $srcdir/$f |
| 7381 | else |
| 7382 | # /dev/null tree |
| 7383 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 7384 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 7385 | { (exit 1); exit 1; }; } |
| 7386 | fi;; |
| 7387 | esac |
| 7388 | done` || { (exit 1); exit 1; } |
| 7389 | # Remove the trailing spaces. |
| 7390 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 7391 | |
| 7392 | _ACEOF |
| 7393 | |
| 7394 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 7395 | # `conftest.undefs', that substitutes the proper values into |
| 7396 | # config.h.in to produce config.h. The first handles `#define' |
| 7397 | # templates, and the second `#undef' templates. |
| 7398 | # And first: Protect against being on the right side of a sed subst in |
| 7399 | # config.status. Protect against being in an unquoted here document |
| 7400 | # in config.status. |
| 7401 | rm -f conftest.defines conftest.undefs |
| 7402 | # Using a here document instead of a string reduces the quoting nightmare. |
| 7403 | # Putting comments in sed scripts is not portable. |
| 7404 | # |
| 7405 | # `end' is used to avoid that the second main sed command (meant for |
| 7406 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 7407 | # See the Autoconf documentation for `clear'. |
| 7408 | cat >confdef2sed.sed <<\_ACEOF |
| 7409 | s/[\\&,]/\\&/g |
| 7410 | s,[\\$`],\\&,g |
| 7411 | t clear |
| 7412 | : clear |
| 7413 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 7414 | t end |
| 7415 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 7416 | : end |
| 7417 | _ACEOF |
| 7418 | # If some macros were called several times there might be several times |
| 7419 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 7420 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 7421 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 7422 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 7423 | rm -f confdef2sed.sed |
| 7424 | |
| 7425 | # This sed command replaces #undef with comments. This is necessary, for |
| 7426 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 7427 | # on some systems where configure will not decide to define it. |
| 7428 | cat >>conftest.undefs <<\_ACEOF |
| 7429 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 7430 | _ACEOF |
| 7431 | |
| 7432 | # Break up conftest.defines because some shells have a limit on the size |
| 7433 | # of here documents, and old seds have small limits too (100 cmds). |
| 7434 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 7435 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 7436 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 7437 | echo ' :' >>$CONFIG_STATUS |
| 7438 | rm -f conftest.tail |
| 7439 | while grep . conftest.defines >/dev/null |
| 7440 | do |
| 7441 | # Write a limited-size here document to $tmp/defines.sed. |
| 7442 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 7443 | # Speed up: don't consider the non `#define' lines. |
| 7444 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 7445 | # Work around the forget-to-reset-the-flag bug. |
| 7446 | echo 't clr' >>$CONFIG_STATUS |
| 7447 | echo ': clr' >>$CONFIG_STATUS |
| 7448 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 7449 | echo 'CEOF |
| 7450 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 7451 | rm -f $tmp/in |
| 7452 | mv $tmp/out $tmp/in |
| 7453 | ' >>$CONFIG_STATUS |
| 7454 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 7455 | rm -f conftest.defines |
| 7456 | mv conftest.tail conftest.defines |
| 7457 | done |
| 7458 | rm -f conftest.defines |
| 7459 | echo ' fi # grep' >>$CONFIG_STATUS |
| 7460 | echo >>$CONFIG_STATUS |
| 7461 | |
| 7462 | # Break up conftest.undefs because some shells have a limit on the size |
| 7463 | # of here documents, and old seds have small limits too (100 cmds). |
| 7464 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 7465 | rm -f conftest.tail |
| 7466 | while grep . conftest.undefs >/dev/null |
| 7467 | do |
| 7468 | # Write a limited-size here document to $tmp/undefs.sed. |
| 7469 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 7470 | # Speed up: don't consider the non `#undef' |
| 7471 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 7472 | # Work around the forget-to-reset-the-flag bug. |
| 7473 | echo 't clr' >>$CONFIG_STATUS |
| 7474 | echo ': clr' >>$CONFIG_STATUS |
| 7475 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 7476 | echo 'CEOF |
| 7477 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 7478 | rm -f $tmp/in |
| 7479 | mv $tmp/out $tmp/in |
| 7480 | ' >>$CONFIG_STATUS |
| 7481 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 7482 | rm -f conftest.undefs |
| 7483 | mv conftest.tail conftest.undefs |
| 7484 | done |
| 7485 | rm -f conftest.undefs |
| 7486 | |
| 7487 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7488 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 7489 | # use $as_me), people would be surprised to read: |
| 7490 | # /* config.h. Generated by config.status. */ |
| 7491 | if test x"$ac_file" = x-; then |
| 7492 | echo "/* Generated by configure. */" >$tmp/config.h |
| 7493 | else |
| 7494 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 7495 | fi |
| 7496 | cat $tmp/in >>$tmp/config.h |
| 7497 | rm -f $tmp/in |
| 7498 | if test x"$ac_file" != x-; then |
| 7499 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 7500 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 7501 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 7502 | else |
| 7503 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 7504 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7505 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 7506 | X"$ac_file" : 'X\(//\)$' \| \ |
| 7507 | X"$ac_file" : 'X\(/\)' \| \ |
| 7508 | . : '\(.\)' 2>/dev/null || |
| 7509 | echo X"$ac_file" | |
| 7510 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7511 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7512 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7513 | /^X\(\/\).*/{ s//\1/; q; } |
| 7514 | s/.*/./; q'` |
| 7515 | { if $as_mkdir_p; then |
| 7516 | mkdir -p "$ac_dir" |
| 7517 | else |
| 7518 | as_dir="$ac_dir" |
| 7519 | as_dirs= |
| 7520 | while test ! -d "$as_dir"; do |
| 7521 | as_dirs="$as_dir $as_dirs" |
| 7522 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 7523 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7524 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 7525 | X"$as_dir" : 'X\(//\)$' \| \ |
| 7526 | X"$as_dir" : 'X\(/\)' \| \ |
| 7527 | . : '\(.\)' 2>/dev/null || |
| 7528 | echo X"$as_dir" | |
| 7529 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7530 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7531 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7532 | /^X\(\/\).*/{ s//\1/; q; } |
| 7533 | s/.*/./; q'` |
| 7534 | done |
| 7535 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 7536 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 7537 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 7538 | { (exit 1); exit 1; }; }; } |
| 7539 | |
| 7540 | rm -f $ac_file |
| 7541 | mv $tmp/config.h $ac_file |
| 7542 | fi |
| 7543 | else |
| 7544 | cat $tmp/config.h |
| 7545 | rm -f $tmp/config.h |
| 7546 | fi |
| 7547 | done |
| 7548 | _ACEOF |
| 7549 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7550 | |
| 7551 | # |
| 7552 | # CONFIG_COMMANDS section. |
| 7553 | # |
| 7554 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 7555 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 7556 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 7557 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 7558 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 7559 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 7560 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 7561 | X"$ac_dest" : 'X\(/\)' \| \ |
| 7562 | . : '\(.\)' 2>/dev/null || |
| 7563 | echo X"$ac_dest" | |
| 7564 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 7565 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 7566 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 7567 | /^X\(\/\).*/{ s//\1/; q; } |
| 7568 | s/.*/./; q'` |
| 7569 | ac_builddir=. |
| 7570 | |
| 7571 | if test "$ac_dir" != .; then |
| 7572 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 7573 | # A "../" for each directory in $ac_dir_suffix. |
| 7574 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 7575 | else |
| 7576 | ac_dir_suffix= ac_top_builddir= |
| 7577 | fi |
| 7578 | |
| 7579 | case $srcdir in |
| 7580 | .) # No --srcdir option. We are building in place. |
| 7581 | ac_srcdir=. |
| 7582 | if test -z "$ac_top_builddir"; then |
| 7583 | ac_top_srcdir=. |
| 7584 | else |
| 7585 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 7586 | fi ;; |
| 7587 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 7588 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 7589 | ac_top_srcdir=$srcdir ;; |
| 7590 | *) # Relative path. |
| 7591 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 7592 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 7593 | esac |
| 7594 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 7595 | # absolute. |
| 7596 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 7597 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 7598 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 7599 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 7600 | |
| 7601 | |
| 7602 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 7603 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 7604 | case $ac_dest in |
| 7605 | default ) |
| 7606 | # Makefile uses this timestamp file to record whether config.h is up to date. |
| 7607 | echo > stamp-h |
| 7608 | ;; |
| 7609 | esac |
| 7610 | done |
| 7611 | _ACEOF |
| 7612 | |
| 7613 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 7614 | |
| 7615 | { (exit 0); exit 0; } |
| 7616 | _ACEOF |
| 7617 | chmod +x $CONFIG_STATUS |
| 7618 | ac_clean_files=$ac_clean_files_save |
| 7619 | |
| 7620 | |
| 7621 | # configure is writing to config.log, and then calls config.status. |
| 7622 | # config.status does its own redirection, appending to config.log. |
| 7623 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 7624 | # by configure, so config.status won't be able to write to it; its |
| 7625 | # output is simply discarded. So we exec the FD to /dev/null, |
| 7626 | # effectively closing config.log, so it can be properly (re)opened and |
| 7627 | # appended to by config.status. When coming back to configure, we |
| 7628 | # need to make the FD available again. |
| 7629 | if test "$no_create" != yes; then |
| 7630 | ac_cs_success=: |
| 7631 | ac_config_status_args= |
| 7632 | test "$silent" = yes && |
| 7633 | ac_config_status_args="$ac_config_status_args --quiet" |
| 7634 | exec 5>/dev/null |
| 7635 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 7636 | exec 5>>config.log |
| 7637 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 7638 | # would make configure fail if this is the last instruction. |
| 7639 | $ac_cs_success || { (exit 1); exit 1; } |
| 7640 | fi |
| 7641 | |