[5951] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[7724] | 3 | # Generated by GNU Autoconf 2.58.
|
---|
[5951] | 4 | #
|
---|
[7724] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[5951] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[7724] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[5951] | 11 |
|
---|
| 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
[7724] | 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 17 | # is contrary to our usage. Disable this feature.
|
---|
| 18 | alias -g '${1+"$@"}'='"$@"'
|
---|
[5951] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
[7724] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[5951] | 23 |
|
---|
[7724] | 24 | # Support unset when possible.
|
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 26 | as_unset=unset
|
---|
| 27 | else
|
---|
| 28 | as_unset=false
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
| 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
| 39 | for as_var in \
|
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 42 | LC_TELEPHONE LC_TIME
|
---|
| 43 | do
|
---|
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
| 46 | else
|
---|
| 47 | $as_unset $as_var
|
---|
| 48 | fi
|
---|
| 49 | done
|
---|
| 50 |
|
---|
| 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
[5951] | 65 | # Name of the executable.
|
---|
[7724] | 66 | as_me=`$as_basename "$0" ||
|
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
| 69 | X"$0" : 'X\(/\)$' \| \
|
---|
| 70 | . : '\(.\)' 2>/dev/null ||
|
---|
| 71 | echo X/"$0" |
|
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 75 | s/.*/./; q'`
|
---|
[5951] | 76 |
|
---|
[7724] | 77 |
|
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 79 | # Avoid depending upon Character Ranges.
|
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 83 | as_cr_digits='0123456789'
|
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 85 |
|
---|
| 86 | # The user is always right.
|
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 88 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 89 | echo "exit 0" >>conf$$.sh
|
---|
| 90 | chmod +x conf$$.sh
|
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 92 | PATH_SEPARATOR=';'
|
---|
| 93 | else
|
---|
| 94 | PATH_SEPARATOR=:
|
---|
| 95 | fi
|
---|
| 96 | rm -f conf$$.sh
|
---|
| 97 | fi
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 | as_lineno_1=$LINENO
|
---|
| 101 | as_lineno_2=$LINENO
|
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 105 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 106 | # relative or not.
|
---|
| 107 | case $0 in
|
---|
| 108 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 110 | for as_dir in $PATH
|
---|
| 111 | do
|
---|
| 112 | IFS=$as_save_IFS
|
---|
| 113 | test -z "$as_dir" && as_dir=.
|
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 115 | done
|
---|
| 116 |
|
---|
| 117 | ;;
|
---|
| 118 | esac
|
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 120 | # in which case we are not to be found in the path.
|
---|
| 121 | if test "x$as_myself" = x; then
|
---|
| 122 | as_myself=$0
|
---|
| 123 | fi
|
---|
| 124 | if test ! -f "$as_myself"; then
|
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
| 126 | { (exit 1); exit 1; }; }
|
---|
| 127 | fi
|
---|
| 128 | case $CONFIG_SHELL in
|
---|
| 129 | '')
|
---|
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 132 | do
|
---|
| 133 | IFS=$as_save_IFS
|
---|
| 134 | test -z "$as_dir" && as_dir=.
|
---|
| 135 | for as_base in sh bash ksh sh5; do
|
---|
| 136 | case $as_dir in
|
---|
| 137 | /*)
|
---|
| 138 | if ("$as_dir/$as_base" -c '
|
---|
| 139 | as_lineno_1=$LINENO
|
---|
| 140 | as_lineno_2=$LINENO
|
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 147 | export CONFIG_SHELL
|
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 149 | fi;;
|
---|
| 150 | esac
|
---|
| 151 | done
|
---|
| 152 | done
|
---|
| 153 | ;;
|
---|
| 154 | esac
|
---|
| 155 |
|
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 158 | # line-number line before each line; the second 'sed' does the real
|
---|
| 159 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 160 | # with the numbered line, and appends trailing '-' during
|
---|
| 161 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 164 | sed '=' <$as_myself |
|
---|
| 165 | sed '
|
---|
| 166 | N
|
---|
| 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 170 | t loop
|
---|
| 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
| 173 | ' >$as_me.lineno &&
|
---|
| 174 | chmod +x $as_me.lineno ||
|
---|
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 176 | { (exit 1); exit 1; }; }
|
---|
| 177 |
|
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 179 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
| 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 |
|
---|
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 189 | ' ECHO_T=' ' ;;
|
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 192 | esac
|
---|
| 193 |
|
---|
[5951] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 195 | as_expr=expr
|
---|
| 196 | else
|
---|
| 197 | as_expr=false
|
---|
| 198 | fi
|
---|
| 199 |
|
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 201 | echo >conf$$.file
|
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 205 | if test -f conf$$.exe; then
|
---|
| 206 | # Don't use ln at all; we don't have any links
|
---|
| 207 | as_ln_s='cp -p'
|
---|
| 208 | else
|
---|
| 209 | as_ln_s='ln -s'
|
---|
| 210 | fi
|
---|
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
| 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 217 |
|
---|
[7724] | 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
[5951] | 220 | else
|
---|
[7724] | 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
[5951] | 223 | fi
|
---|
| 224 |
|
---|
[7724] | 225 | as_executable_p="test -f"
|
---|
[5951] | 226 |
|
---|
[7724] | 227 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 229 |
|
---|
| 230 | # Sed expression to map a string onto a valid variable name.
|
---|
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 232 |
|
---|
| 233 |
|
---|
[5951] | 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
| 239 |
|
---|
| 240 | # CDPATH.
|
---|
[7724] | 241 | $as_unset CDPATH
|
---|
[5951] | 242 |
|
---|
[7724] | 243 |
|
---|
[5951] | 244 | # Name of the host.
|
---|
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
| 249 | exec 6>&1
|
---|
| 250 |
|
---|
| 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
| 254 | ac_default_prefix=/usr/local
|
---|
[7724] | 255 | ac_config_libobj_dir=.
|
---|
[5951] | 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
[7724] | 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
[5951] | 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 261 |
|
---|
| 262 | # Maximum number of lines to put in a shell here document.
|
---|
| 263 | # This variable seems obsolete. It should probably be removed, and
|
---|
| 264 | # only ac_max_sed_lines should be used.
|
---|
| 265 | : ${ac_max_here_lines=38}
|
---|
| 266 |
|
---|
[7724] | 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
[5951] | 273 |
|
---|
| 274 | ac_unique_file="src/java/org/greenstone/gsdl3/Library1.java"
|
---|
| 275 | # Factoring default headers for most tests.
|
---|
| 276 | ac_includes_default="\
|
---|
| 277 | #include <stdio.h>
|
---|
[7724] | 278 | #if HAVE_SYS_TYPES_H
|
---|
| 279 | # include <sys/types.h>
|
---|
| 280 | #endif
|
---|
| 281 | #if HAVE_SYS_STAT_H
|
---|
| 282 | # include <sys/stat.h>
|
---|
| 283 | #endif
|
---|
[5951] | 284 | #if STDC_HEADERS
|
---|
| 285 | # include <stdlib.h>
|
---|
| 286 | # include <stddef.h>
|
---|
| 287 | #else
|
---|
| 288 | # if HAVE_STDLIB_H
|
---|
| 289 | # include <stdlib.h>
|
---|
| 290 | # endif
|
---|
| 291 | #endif
|
---|
| 292 | #if HAVE_STRING_H
|
---|
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
| 294 | # include <memory.h>
|
---|
| 295 | # endif
|
---|
| 296 | # include <string.h>
|
---|
| 297 | #endif
|
---|
[7724] | 298 | #if HAVE_STRINGS_H
|
---|
| 299 | # include <strings.h>
|
---|
| 300 | #endif
|
---|
[5951] | 301 | #if HAVE_INTTYPES_H
|
---|
| 302 | # include <inttypes.h>
|
---|
[7724] | 303 | #else
|
---|
| 304 | # if HAVE_STDINT_H
|
---|
| 305 | # include <stdint.h>
|
---|
| 306 | # endif
|
---|
[5951] | 307 | #endif
|
---|
| 308 | #if HAVE_UNISTD_H
|
---|
| 309 | # include <unistd.h>
|
---|
| 310 | #endif"
|
---|
| 311 |
|
---|
| 312 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
[7724] | 313 | 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 PACKAGE VERSION CFLAGS CC LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS gsdlos subdirs LTLIBOBJS'
|
---|
| 314 | ac_subst_files=''
|
---|
[5951] | 315 |
|
---|
| 316 | # Initialize some variables set by options.
|
---|
| 317 | ac_init_help=
|
---|
| 318 | ac_init_version=false
|
---|
| 319 | # The variables have the same names as the options, with
|
---|
| 320 | # dashes changed to underlines.
|
---|
| 321 | cache_file=/dev/null
|
---|
| 322 | exec_prefix=NONE
|
---|
| 323 | no_create=
|
---|
| 324 | no_recursion=
|
---|
| 325 | prefix=NONE
|
---|
| 326 | program_prefix=NONE
|
---|
| 327 | program_suffix=NONE
|
---|
| 328 | program_transform_name=s,x,x,
|
---|
| 329 | silent=
|
---|
| 330 | site=
|
---|
| 331 | srcdir=
|
---|
| 332 | verbose=
|
---|
| 333 | x_includes=NONE
|
---|
| 334 | x_libraries=NONE
|
---|
| 335 |
|
---|
| 336 | # Installation directory options.
|
---|
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 338 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 339 | # by default will actually change.
|
---|
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
| 341 | bindir='${exec_prefix}/bin'
|
---|
| 342 | sbindir='${exec_prefix}/sbin'
|
---|
| 343 | libexecdir='${exec_prefix}/libexec'
|
---|
| 344 | datadir='${prefix}/share'
|
---|
| 345 | sysconfdir='${prefix}/etc'
|
---|
| 346 | sharedstatedir='${prefix}/com'
|
---|
| 347 | localstatedir='${prefix}/var'
|
---|
| 348 | libdir='${exec_prefix}/lib'
|
---|
| 349 | includedir='${prefix}/include'
|
---|
| 350 | oldincludedir='/usr/include'
|
---|
| 351 | infodir='${prefix}/info'
|
---|
| 352 | mandir='${prefix}/man'
|
---|
| 353 |
|
---|
| 354 | ac_prev=
|
---|
| 355 | for ac_option
|
---|
| 356 | do
|
---|
| 357 | # If the previous option needs an argument, assign it.
|
---|
| 358 | if test -n "$ac_prev"; then
|
---|
| 359 | eval "$ac_prev=\$ac_option"
|
---|
| 360 | ac_prev=
|
---|
| 361 | continue
|
---|
| 362 | fi
|
---|
| 363 |
|
---|
| 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
| 365 |
|
---|
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 367 |
|
---|
| 368 | case $ac_option in
|
---|
| 369 |
|
---|
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 371 | ac_prev=bindir ;;
|
---|
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 373 | bindir=$ac_optarg ;;
|
---|
| 374 |
|
---|
| 375 | -build | --build | --buil | --bui | --bu)
|
---|
| 376 | ac_prev=build_alias ;;
|
---|
| 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 378 | build_alias=$ac_optarg ;;
|
---|
| 379 |
|
---|
| 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 382 | ac_prev=cache_file ;;
|
---|
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 385 | cache_file=$ac_optarg ;;
|
---|
| 386 |
|
---|
| 387 | --config-cache | -C)
|
---|
| 388 | cache_file=config.cache ;;
|
---|
| 389 |
|
---|
| 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 391 | ac_prev=datadir ;;
|
---|
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 393 | | --da=*)
|
---|
| 394 | datadir=$ac_optarg ;;
|
---|
| 395 |
|
---|
| 396 | -disable-* | --disable-*)
|
---|
| 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
| 398 | # Reject names that are not valid shell variable names.
|
---|
[7724] | 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[5951] | 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 401 | { (exit 1); exit 1; }; }
|
---|
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 403 | eval "enable_$ac_feature=no" ;;
|
---|
| 404 |
|
---|
| 405 | -enable-* | --enable-*)
|
---|
| 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
| 407 | # Reject names that are not valid shell variable names.
|
---|
[7724] | 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[5951] | 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 410 | { (exit 1); exit 1; }; }
|
---|
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 412 | case $ac_option in
|
---|
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 414 | *) ac_optarg=yes ;;
|
---|
| 415 | esac
|
---|
| 416 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
| 417 |
|
---|
| 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 420 | | --exec | --exe | --ex)
|
---|
| 421 | ac_prev=exec_prefix ;;
|
---|
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 424 | | --exec=* | --exe=* | --ex=*)
|
---|
| 425 | exec_prefix=$ac_optarg ;;
|
---|
| 426 |
|
---|
| 427 | -gas | --gas | --ga | --g)
|
---|
| 428 | # Obsolete; use --with-gas.
|
---|
| 429 | with_gas=yes ;;
|
---|
| 430 |
|
---|
| 431 | -help | --help | --hel | --he | -h)
|
---|
| 432 | ac_init_help=long ;;
|
---|
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 434 | ac_init_help=recursive ;;
|
---|
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 436 | ac_init_help=short ;;
|
---|
| 437 |
|
---|
| 438 | -host | --host | --hos | --ho)
|
---|
| 439 | ac_prev=host_alias ;;
|
---|
| 440 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 441 | host_alias=$ac_optarg ;;
|
---|
| 442 |
|
---|
| 443 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 444 | | --includ | --inclu | --incl | --inc)
|
---|
| 445 | ac_prev=includedir ;;
|
---|
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 448 | includedir=$ac_optarg ;;
|
---|
| 449 |
|
---|
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 451 | ac_prev=infodir ;;
|
---|
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 453 | infodir=$ac_optarg ;;
|
---|
| 454 |
|
---|
| 455 | -libdir | --libdir | --libdi | --libd)
|
---|
| 456 | ac_prev=libdir ;;
|
---|
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 458 | libdir=$ac_optarg ;;
|
---|
| 459 |
|
---|
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 461 | | --libexe | --libex | --libe)
|
---|
| 462 | ac_prev=libexecdir ;;
|
---|
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 464 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 465 | libexecdir=$ac_optarg ;;
|
---|
| 466 |
|
---|
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 468 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 469 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 470 | ac_prev=localstatedir ;;
|
---|
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
| 474 | localstatedir=$ac_optarg ;;
|
---|
| 475 |
|
---|
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 477 | ac_prev=mandir ;;
|
---|
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 479 | mandir=$ac_optarg ;;
|
---|
| 480 |
|
---|
| 481 | -nfp | --nfp | --nf)
|
---|
| 482 | # Obsolete; use --without-fp.
|
---|
| 483 | with_fp=no ;;
|
---|
| 484 |
|
---|
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[7724] | 486 | | --no-cr | --no-c | -n)
|
---|
[5951] | 487 | no_create=yes ;;
|
---|
| 488 |
|
---|
| 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 491 | no_recursion=yes ;;
|
---|
| 492 |
|
---|
| 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 495 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 496 | ac_prev=oldincludedir ;;
|
---|
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 500 | oldincludedir=$ac_optarg ;;
|
---|
| 501 |
|
---|
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 503 | ac_prev=prefix ;;
|
---|
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 505 | prefix=$ac_optarg ;;
|
---|
| 506 |
|
---|
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 508 | | --program-pre | --program-pr | --program-p)
|
---|
| 509 | ac_prev=program_prefix ;;
|
---|
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 512 | program_prefix=$ac_optarg ;;
|
---|
| 513 |
|
---|
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 515 | | --program-suf | --program-su | --program-s)
|
---|
| 516 | ac_prev=program_suffix ;;
|
---|
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 519 | program_suffix=$ac_optarg ;;
|
---|
| 520 |
|
---|
| 521 | -program-transform-name | --program-transform-name \
|
---|
| 522 | | --program-transform-nam | --program-transform-na \
|
---|
| 523 | | --program-transform-n | --program-transform- \
|
---|
| 524 | | --program-transform | --program-transfor \
|
---|
| 525 | | --program-transfo | --program-transf \
|
---|
| 526 | | --program-trans | --program-tran \
|
---|
| 527 | | --progr-tra | --program-tr | --program-t)
|
---|
| 528 | ac_prev=program_transform_name ;;
|
---|
| 529 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 530 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 531 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 532 | | --program-transform=* | --program-transfor=* \
|
---|
| 533 | | --program-transfo=* | --program-transf=* \
|
---|
| 534 | | --program-trans=* | --program-tran=* \
|
---|
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 536 | program_transform_name=$ac_optarg ;;
|
---|
| 537 |
|
---|
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 539 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 540 | silent=yes ;;
|
---|
| 541 |
|
---|
| 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 543 | ac_prev=sbindir ;;
|
---|
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 545 | | --sbi=* | --sb=*)
|
---|
| 546 | sbindir=$ac_optarg ;;
|
---|
| 547 |
|
---|
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 550 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 551 | | --sha | --sh)
|
---|
| 552 | ac_prev=sharedstatedir ;;
|
---|
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 556 | | --sha=* | --sh=*)
|
---|
| 557 | sharedstatedir=$ac_optarg ;;
|
---|
| 558 |
|
---|
| 559 | -site | --site | --sit)
|
---|
| 560 | ac_prev=site ;;
|
---|
| 561 | -site=* | --site=* | --sit=*)
|
---|
| 562 | site=$ac_optarg ;;
|
---|
| 563 |
|
---|
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 565 | ac_prev=srcdir ;;
|
---|
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 567 | srcdir=$ac_optarg ;;
|
---|
| 568 |
|
---|
| 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 570 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 571 | ac_prev=sysconfdir ;;
|
---|
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 574 | sysconfdir=$ac_optarg ;;
|
---|
| 575 |
|
---|
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 577 | ac_prev=target_alias ;;
|
---|
| 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 579 | target_alias=$ac_optarg ;;
|
---|
| 580 |
|
---|
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 582 | verbose=yes ;;
|
---|
| 583 |
|
---|
| 584 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 585 | ac_init_version=: ;;
|
---|
| 586 |
|
---|
| 587 | -with-* | --with-*)
|
---|
| 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
| 589 | # Reject names that are not valid shell variable names.
|
---|
[7724] | 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[5951] | 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 592 | { (exit 1); exit 1; }; }
|
---|
| 593 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 594 | case $ac_option in
|
---|
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 596 | *) ac_optarg=yes ;;
|
---|
| 597 | esac
|
---|
| 598 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
| 599 |
|
---|
| 600 | -without-* | --without-*)
|
---|
| 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
| 602 | # Reject names that are not valid shell variable names.
|
---|
[7724] | 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[5951] | 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 605 | { (exit 1); exit 1; }; }
|
---|
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 607 | eval "with_$ac_package=no" ;;
|
---|
| 608 |
|
---|
| 609 | --x)
|
---|
| 610 | # Obsolete; use --with-x.
|
---|
| 611 | with_x=yes ;;
|
---|
| 612 |
|
---|
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 614 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 615 | ac_prev=x_includes ;;
|
---|
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 618 | x_includes=$ac_optarg ;;
|
---|
| 619 |
|
---|
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 622 | ac_prev=x_libraries ;;
|
---|
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 625 | x_libraries=$ac_optarg ;;
|
---|
| 626 |
|
---|
| 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 628 | Try \`$0 --help' for more information." >&2
|
---|
| 629 | { (exit 1); exit 1; }; }
|
---|
| 630 | ;;
|
---|
| 631 |
|
---|
| 632 | *=*)
|
---|
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 634 | # Reject names that are not valid shell variable names.
|
---|
[7724] | 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
[5951] | 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 637 | { (exit 1); exit 1; }; }
|
---|
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 639 | eval "$ac_envvar='$ac_optarg'"
|
---|
| 640 | export $ac_envvar ;;
|
---|
| 641 |
|
---|
| 642 | *)
|
---|
| 643 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[7724] | 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[5951] | 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
| 648 | ;;
|
---|
| 649 |
|
---|
| 650 | esac
|
---|
| 651 | done
|
---|
| 652 |
|
---|
| 653 | if test -n "$ac_prev"; then
|
---|
| 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 656 | { (exit 1); exit 1; }; }
|
---|
| 657 | fi
|
---|
| 658 |
|
---|
| 659 | # Be sure to have absolute paths.
|
---|
[7724] | 660 | for ac_var in exec_prefix prefix
|
---|
| 661 | do
|
---|
| 662 | eval ac_val=$`echo $ac_var`
|
---|
| 663 | case $ac_val in
|
---|
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 666 | { (exit 1); exit 1; }; };;
|
---|
| 667 | esac
|
---|
| 668 | done
|
---|
| 669 |
|
---|
| 670 | # Be sure to have absolute paths.
|
---|
[5951] | 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
[7724] | 672 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[5951] | 673 | do
|
---|
| 674 | eval ac_val=$`echo $ac_var`
|
---|
| 675 | case $ac_val in
|
---|
| 676 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
[7724] | 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
[5951] | 678 | { (exit 1); exit 1; }; };;
|
---|
| 679 | esac
|
---|
| 680 | done
|
---|
| 681 |
|
---|
| 682 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 683 | # used to hold the argument of --host etc.
|
---|
[7724] | 684 | # FIXME: To remove some day.
|
---|
[5951] | 685 | build=$build_alias
|
---|
| 686 | host=$host_alias
|
---|
| 687 | target=$target_alias
|
---|
| 688 |
|
---|
[7724] | 689 | # FIXME: To remove some day.
|
---|
[5951] | 690 | if test "x$host_alias" != x; then
|
---|
| 691 | if test "x$build_alias" = x; then
|
---|
| 692 | cross_compiling=maybe
|
---|
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 695 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 696 | cross_compiling=yes
|
---|
| 697 | fi
|
---|
| 698 | fi
|
---|
| 699 |
|
---|
| 700 | ac_tool_prefix=
|
---|
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 702 |
|
---|
| 703 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 704 |
|
---|
[7724] | 705 |
|
---|
[5951] | 706 | # Find the source files, if location was not specified.
|
---|
| 707 | if test -z "$srcdir"; then
|
---|
| 708 | ac_srcdir_defaulted=yes
|
---|
| 709 | # Try the directory containing this script, then its parent.
|
---|
[7724] | 710 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 712 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 713 | X"$0" : 'X\(//\)$' \| \
|
---|
| 714 | X"$0" : 'X\(/\)' \| \
|
---|
| 715 | . : '\(.\)' 2>/dev/null ||
|
---|
| 716 | echo X"$0" |
|
---|
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 720 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 721 | s/.*/./; q'`
|
---|
[5951] | 722 | srcdir=$ac_confdir
|
---|
| 723 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 724 | srcdir=..
|
---|
| 725 | fi
|
---|
| 726 | else
|
---|
| 727 | ac_srcdir_defaulted=no
|
---|
| 728 | fi
|
---|
| 729 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 730 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
[7724] | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
[5951] | 732 | { (exit 1); exit 1; }; }
|
---|
| 733 | else
|
---|
[7724] | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
[5951] | 735 | { (exit 1); exit 1; }; }
|
---|
| 736 | fi
|
---|
| 737 | fi
|
---|
[7724] | 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 740 | { (exit 1); exit 1; }; }
|
---|
[5951] | 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 742 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 743 | ac_env_build_alias_value=$build_alias
|
---|
| 744 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 745 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 746 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 747 | ac_env_host_alias_value=$host_alias
|
---|
| 748 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 749 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 750 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 751 | ac_env_target_alias_value=$target_alias
|
---|
| 752 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 753 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 754 | ac_env_CC_set=${CC+set}
|
---|
| 755 | ac_env_CC_value=$CC
|
---|
| 756 | ac_cv_env_CC_set=${CC+set}
|
---|
| 757 | ac_cv_env_CC_value=$CC
|
---|
| 758 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 759 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 763 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 770 | ac_env_CXX_set=${CXX+set}
|
---|
| 771 | ac_env_CXX_value=$CXX
|
---|
| 772 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 773 | ac_cv_env_CXX_value=$CXX
|
---|
| 774 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 775 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 776 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 777 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 778 | ac_env_CPP_set=${CPP+set}
|
---|
| 779 | ac_env_CPP_value=$CPP
|
---|
| 780 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 781 | ac_cv_env_CPP_value=$CPP
|
---|
| 782 |
|
---|
| 783 | #
|
---|
| 784 | # Report the --help message.
|
---|
| 785 | #
|
---|
| 786 | if test "$ac_init_help" = "long"; then
|
---|
| 787 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 788 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
[7724] | 789 | cat <<_ACEOF
|
---|
[5951] | 790 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 791 |
|
---|
| 792 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 793 |
|
---|
| 794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 795 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 796 |
|
---|
| 797 | Defaults for the options are specified in brackets.
|
---|
| 798 |
|
---|
| 799 | Configuration:
|
---|
| 800 | -h, --help display this help and exit
|
---|
| 801 | --help=short display options specific to this package
|
---|
| 802 | --help=recursive display the short help of all the included packages
|
---|
| 803 | -V, --version display version information and exit
|
---|
| 804 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 805 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 806 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 807 | -n, --no-create do not create output files
|
---|
| 808 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 809 |
|
---|
[7724] | 810 | _ACEOF
|
---|
[5951] | 811 |
|
---|
[7724] | 812 | cat <<_ACEOF
|
---|
[5951] | 813 | Installation directories:
|
---|
| 814 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[7724] | 815 | [$ac_default_prefix]
|
---|
[5951] | 816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[7724] | 817 | [PREFIX]
|
---|
[5951] | 818 |
|
---|
| 819 | By default, \`make install' will install all the files in
|
---|
| 820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 822 | for instance \`--prefix=\$HOME'.
|
---|
| 823 |
|
---|
| 824 | For better control, use the options below.
|
---|
| 825 |
|
---|
| 826 | Fine tuning of the installation directories:
|
---|
| 827 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 828 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 829 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 830 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 834 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 835 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 836 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 837 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 838 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[7724] | 839 | _ACEOF
|
---|
[5951] | 840 |
|
---|
[7724] | 841 | cat <<\_ACEOF
|
---|
[5951] | 842 |
|
---|
| 843 | System types:
|
---|
| 844 | --build=BUILD configure for building on BUILD [guessed]
|
---|
[7724] | 845 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
[5951] | 846 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
[7724] | 847 | _ACEOF
|
---|
[5951] | 848 | fi
|
---|
| 849 |
|
---|
| 850 | if test -n "$ac_init_help"; then
|
---|
| 851 |
|
---|
[7724] | 852 | cat <<\_ACEOF
|
---|
[5951] | 853 |
|
---|
| 854 | Some influential environment variables:
|
---|
| 855 | CC C compiler command
|
---|
| 856 | CFLAGS C compiler flags
|
---|
| 857 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 858 | nonstandard directory <lib dir>
|
---|
| 859 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 860 | headers in a nonstandard directory <include dir>
|
---|
| 861 | CXX C++ compiler command
|
---|
| 862 | CXXFLAGS C++ compiler flags
|
---|
| 863 | CPP C preprocessor
|
---|
| 864 |
|
---|
| 865 | Use these variables to override the choices made by `configure' or to help
|
---|
| 866 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 867 |
|
---|
[7724] | 868 | _ACEOF
|
---|
[5951] | 869 | fi
|
---|
| 870 |
|
---|
| 871 | if test "$ac_init_help" = "recursive"; then
|
---|
| 872 | # If there are subdirs, report their specific --help.
|
---|
| 873 | ac_popdir=`pwd`
|
---|
[7724] | 874 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 875 | test -d $ac_dir || continue
|
---|
| 876 | ac_builddir=.
|
---|
[5951] | 877 |
|
---|
[7724] | 878 | if test "$ac_dir" != .; then
|
---|
| 879 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 880 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 881 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 882 | else
|
---|
| 883 | ac_dir_suffix= ac_top_builddir=
|
---|
| 884 | fi
|
---|
[5951] | 885 |
|
---|
[7724] | 886 | case $srcdir in
|
---|
| 887 | .) # No --srcdir option. We are building in place.
|
---|
| 888 | ac_srcdir=.
|
---|
| 889 | if test -z "$ac_top_builddir"; then
|
---|
| 890 | ac_top_srcdir=.
|
---|
| 891 | else
|
---|
| 892 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 893 | fi ;;
|
---|
| 894 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 895 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 896 | ac_top_srcdir=$srcdir ;;
|
---|
| 897 | *) # Relative path.
|
---|
| 898 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 899 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 900 | esac
|
---|
| 901 | case "$ac_dir" in
|
---|
| 902 | .) ac_abs_builddir=$ac_builddir;;
|
---|
| 903 | *)
|
---|
| 904 | case $ac_builddir in
|
---|
| 905 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 906 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
|
---|
| 907 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
|
---|
| 908 | esac;;
|
---|
| 909 | esac
|
---|
| 910 | case "$ac_dir" in
|
---|
| 911 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 912 | *)
|
---|
| 913 | case ${ac_top_builddir}. in
|
---|
| 914 | .) ac_abs_top_builddir="$ac_dir";;
|
---|
| 915 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 916 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
|
---|
| 917 | esac;;
|
---|
| 918 | esac
|
---|
| 919 | case "$ac_dir" in
|
---|
| 920 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 921 | *)
|
---|
| 922 | case $ac_srcdir in
|
---|
| 923 | .) ac_abs_srcdir="$ac_dir";;
|
---|
| 924 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 925 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
|
---|
| 926 | esac;;
|
---|
| 927 | esac
|
---|
| 928 | case "$ac_dir" in
|
---|
| 929 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 930 | *)
|
---|
| 931 | case $ac_top_srcdir in
|
---|
| 932 | .) ac_abs_top_srcdir="$ac_dir";;
|
---|
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 934 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
|
---|
| 935 | esac;;
|
---|
| 936 | esac
|
---|
| 937 |
|
---|
| 938 | cd $ac_dir
|
---|
[5951] | 939 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[7724] | 940 | if test -f $ac_srcdir/configure.gnu; then
|
---|
[5951] | 941 | echo
|
---|
[7724] | 942 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 943 | elif test -f $ac_srcdir/configure; then
|
---|
[5951] | 944 | echo
|
---|
[7724] | 945 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 946 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 947 | test -f $ac_srcdir/configure.in; then
|
---|
[5951] | 948 | echo
|
---|
| 949 | $ac_configure --help
|
---|
| 950 | else
|
---|
[7724] | 951 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[5951] | 952 | fi
|
---|
| 953 | cd $ac_popdir
|
---|
| 954 | done
|
---|
| 955 | fi
|
---|
| 956 |
|
---|
| 957 | test -n "$ac_init_help" && exit 0
|
---|
| 958 | if $ac_init_version; then
|
---|
[7724] | 959 | cat <<\_ACEOF
|
---|
[5951] | 960 |
|
---|
[7724] | 961 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[5951] | 962 | This configure script is free software; the Free Software Foundation
|
---|
| 963 | gives unlimited permission to copy, distribute and modify it.
|
---|
[7724] | 964 | _ACEOF
|
---|
[5951] | 965 | exit 0
|
---|
| 966 | fi
|
---|
| 967 | exec 5>config.log
|
---|
[7724] | 968 | cat >&5 <<_ACEOF
|
---|
[5951] | 969 | This file contains any messages produced by compilers while
|
---|
| 970 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 971 |
|
---|
| 972 | It was created by $as_me, which was
|
---|
[7724] | 973 | generated by GNU Autoconf 2.58. Invocation command line was
|
---|
[5951] | 974 |
|
---|
| 975 | $ $0 $@
|
---|
| 976 |
|
---|
[7724] | 977 | _ACEOF
|
---|
[5951] | 978 | {
|
---|
| 979 | cat <<_ASUNAME
|
---|
[7724] | 980 | ## --------- ##
|
---|
| 981 | ## Platform. ##
|
---|
| 982 | ## --------- ##
|
---|
[5951] | 983 |
|
---|
| 984 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 985 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 986 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 987 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 988 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 989 |
|
---|
| 990 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 991 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 992 |
|
---|
| 993 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 994 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 995 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 996 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 997 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 998 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 999 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1000 |
|
---|
[7724] | 1001 | _ASUNAME
|
---|
[5951] | 1002 |
|
---|
[7724] | 1003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1004 | for as_dir in $PATH
|
---|
| 1005 | do
|
---|
| 1006 | IFS=$as_save_IFS
|
---|
| 1007 | test -z "$as_dir" && as_dir=.
|
---|
| 1008 | echo "PATH: $as_dir"
|
---|
| 1009 | done
|
---|
| 1010 |
|
---|
[5951] | 1011 | } >&5
|
---|
| 1012 |
|
---|
[7724] | 1013 | cat >&5 <<_ACEOF
|
---|
[5951] | 1014 |
|
---|
| 1015 |
|
---|
[7724] | 1016 | ## ----------- ##
|
---|
| 1017 | ## Core tests. ##
|
---|
| 1018 | ## ----------- ##
|
---|
| 1019 |
|
---|
| 1020 | _ACEOF
|
---|
| 1021 |
|
---|
| 1022 |
|
---|
[5951] | 1023 | # Keep a trace of the command line.
|
---|
| 1024 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[7724] | 1025 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[5951] | 1026 | # Also quote any args containing shell meta-characters.
|
---|
[7724] | 1027 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[5951] | 1028 | ac_configure_args=
|
---|
[7724] | 1029 | ac_configure_args0=
|
---|
| 1030 | ac_configure_args1=
|
---|
[5951] | 1031 | ac_sep=
|
---|
[7724] | 1032 | ac_must_keep_next=false
|
---|
| 1033 | for ac_pass in 1 2
|
---|
[5951] | 1034 | do
|
---|
[7724] | 1035 | for ac_arg
|
---|
| 1036 | do
|
---|
| 1037 | case $ac_arg in
|
---|
| 1038 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1039 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1040 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1041 | continue ;;
|
---|
| 1042 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1043 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1044 | esac
|
---|
| 1045 | case $ac_pass in
|
---|
| 1046 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1047 | 2)
|
---|
| 1048 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1049 | if test $ac_must_keep_next = true; then
|
---|
| 1050 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1051 | else
|
---|
| 1052 | case $ac_arg in
|
---|
| 1053 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1054 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1055 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1056 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1057 | case "$ac_configure_args0 " in
|
---|
| 1058 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1059 | esac
|
---|
| 1060 | ;;
|
---|
| 1061 | -* ) ac_must_keep_next=true ;;
|
---|
| 1062 | esac
|
---|
| 1063 | fi
|
---|
| 1064 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1065 | # Get rid of the leading space.
|
---|
| 1066 | ac_sep=" "
|
---|
| 1067 | ;;
|
---|
| 1068 | esac
|
---|
| 1069 | done
|
---|
[5951] | 1070 | done
|
---|
[7724] | 1071 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1072 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[5951] | 1073 |
|
---|
| 1074 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1075 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1076 | # would cause problems or look ugly.
|
---|
[7724] | 1077 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1078 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[5951] | 1079 | trap 'exit_status=$?
|
---|
| 1080 | # Save into config.log some information that might help in debugging.
|
---|
[7724] | 1081 | {
|
---|
| 1082 | echo
|
---|
| 1083 |
|
---|
| 1084 | cat <<\_ASBOX
|
---|
| 1085 | ## ---------------- ##
|
---|
| 1086 | ## Cache variables. ##
|
---|
| 1087 | ## ---------------- ##
|
---|
| 1088 | _ASBOX
|
---|
| 1089 | echo
|
---|
| 1090 | # The following way of writing the cache mishandles newlines in values,
|
---|
[5951] | 1091 | {
|
---|
| 1092 | (set) 2>&1 |
|
---|
| 1093 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1094 | *ac_space=\ *)
|
---|
| 1095 | sed -n \
|
---|
[7724] | 1096 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1097 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
[5951] | 1098 | ;;
|
---|
| 1099 | *)
|
---|
| 1100 | sed -n \
|
---|
[7724] | 1101 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[5951] | 1102 | ;;
|
---|
| 1103 | esac;
|
---|
[7724] | 1104 | }
|
---|
| 1105 | echo
|
---|
| 1106 |
|
---|
| 1107 | cat <<\_ASBOX
|
---|
| 1108 | ## ----------------- ##
|
---|
| 1109 | ## Output variables. ##
|
---|
| 1110 | ## ----------------- ##
|
---|
| 1111 | _ASBOX
|
---|
| 1112 | echo
|
---|
| 1113 | for ac_var in $ac_subst_vars
|
---|
| 1114 | do
|
---|
| 1115 | eval ac_val=$`echo $ac_var`
|
---|
| 1116 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1117 | done | sort
|
---|
| 1118 | echo
|
---|
| 1119 |
|
---|
| 1120 | if test -n "$ac_subst_files"; then
|
---|
| 1121 | cat <<\_ASBOX
|
---|
| 1122 | ## ------------- ##
|
---|
| 1123 | ## Output files. ##
|
---|
| 1124 | ## ------------- ##
|
---|
| 1125 | _ASBOX
|
---|
| 1126 | echo
|
---|
| 1127 | for ac_var in $ac_subst_files
|
---|
| 1128 | do
|
---|
| 1129 | eval ac_val=$`echo $ac_var`
|
---|
| 1130 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1131 | done | sort
|
---|
| 1132 | echo
|
---|
| 1133 | fi
|
---|
| 1134 |
|
---|
| 1135 | if test -s confdefs.h; then
|
---|
| 1136 | cat <<\_ASBOX
|
---|
| 1137 | ## ----------- ##
|
---|
| 1138 | ## confdefs.h. ##
|
---|
| 1139 | ## ----------- ##
|
---|
| 1140 | _ASBOX
|
---|
| 1141 | echo
|
---|
| 1142 | sed "/^$/d" confdefs.h | sort
|
---|
| 1143 | echo
|
---|
| 1144 | fi
|
---|
| 1145 | test "$ac_signal" != 0 &&
|
---|
| 1146 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1147 | echo "$as_me: exit $exit_status"
|
---|
| 1148 | } >&5
|
---|
| 1149 | rm -f core *.core &&
|
---|
| 1150 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[5951] | 1151 | exit $exit_status
|
---|
| 1152 | ' 0
|
---|
| 1153 | for ac_signal in 1 2 13 15; do
|
---|
[7724] | 1154 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[5951] | 1155 | done
|
---|
| 1156 | ac_signal=0
|
---|
| 1157 |
|
---|
| 1158 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1159 | rm -rf conftest* confdefs.h
|
---|
| 1160 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1161 | echo >confdefs.h
|
---|
| 1162 |
|
---|
[7724] | 1163 | # Predefined preprocessor variables.
|
---|
| 1164 |
|
---|
| 1165 | cat >>confdefs.h <<_ACEOF
|
---|
| 1166 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1167 | _ACEOF
|
---|
| 1168 |
|
---|
| 1169 |
|
---|
| 1170 | cat >>confdefs.h <<_ACEOF
|
---|
| 1171 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1172 | _ACEOF
|
---|
| 1173 |
|
---|
| 1174 |
|
---|
| 1175 | cat >>confdefs.h <<_ACEOF
|
---|
| 1176 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1177 | _ACEOF
|
---|
| 1178 |
|
---|
| 1179 |
|
---|
| 1180 | cat >>confdefs.h <<_ACEOF
|
---|
| 1181 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1182 | _ACEOF
|
---|
| 1183 |
|
---|
| 1184 |
|
---|
| 1185 | cat >>confdefs.h <<_ACEOF
|
---|
| 1186 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1187 | _ACEOF
|
---|
| 1188 |
|
---|
| 1189 |
|
---|
[5951] | 1190 | # Let the site file select an alternate cache file if it wants to.
|
---|
| 1191 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1192 | if test -z "$CONFIG_SITE"; then
|
---|
| 1193 | if test "x$prefix" != xNONE; then
|
---|
| 1194 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1195 | else
|
---|
| 1196 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1197 | fi
|
---|
| 1198 | fi
|
---|
| 1199 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1200 | if test -r "$ac_site_file"; then
|
---|
[7724] | 1201 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
[5951] | 1202 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[7724] | 1203 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[5951] | 1204 | . "$ac_site_file"
|
---|
| 1205 | fi
|
---|
| 1206 | done
|
---|
| 1207 |
|
---|
| 1208 | if test -r "$cache_file"; then
|
---|
| 1209 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1210 | # files actually), so we avoid doing that.
|
---|
| 1211 | if test -f "$cache_file"; then
|
---|
[7724] | 1212 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
[5951] | 1213 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1214 | case $cache_file in
|
---|
| 1215 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1216 | *) . ./$cache_file;;
|
---|
| 1217 | esac
|
---|
| 1218 | fi
|
---|
| 1219 | else
|
---|
[7724] | 1220 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
[5951] | 1221 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1222 | >$cache_file
|
---|
| 1223 | fi
|
---|
| 1224 |
|
---|
| 1225 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1226 | # value.
|
---|
[7724] | 1227 | ac_cache_corrupted=false
|
---|
[5951] | 1228 | for ac_var in `(set) 2>&1 |
|
---|
[7724] | 1229 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[5951] | 1230 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1231 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1232 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1233 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1234 | case $ac_old_set,$ac_new_set in
|
---|
| 1235 | set,)
|
---|
[7724] | 1236 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1237 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1238 | ac_cache_corrupted=: ;;
|
---|
[5951] | 1239 | ,set)
|
---|
[7724] | 1240 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1241 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1242 | ac_cache_corrupted=: ;;
|
---|
[5951] | 1243 | ,);;
|
---|
| 1244 | *)
|
---|
| 1245 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[7724] | 1246 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1247 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1248 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1249 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1250 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1251 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1252 | ac_cache_corrupted=:
|
---|
[5951] | 1253 | fi;;
|
---|
| 1254 | esac
|
---|
[7724] | 1255 | # Pass precious variables to config.status.
|
---|
| 1256 | if test "$ac_new_set" = set; then
|
---|
| 1257 | case $ac_new_val in
|
---|
| 1258 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1259 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1260 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1261 | esac
|
---|
| 1262 | case " $ac_configure_args " in
|
---|
| 1263 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1264 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1265 | esac
|
---|
| 1266 | fi
|
---|
[5951] | 1267 | done
|
---|
[7724] | 1268 | if $ac_cache_corrupted; then
|
---|
| 1269 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1270 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1271 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1272 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1273 | { (exit 1); exit 1; }; }
|
---|
[5951] | 1274 | fi
|
---|
| 1275 |
|
---|
| 1276 | ac_ext=c
|
---|
| 1277 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1281 |
|
---|
| 1282 |
|
---|
| 1283 |
|
---|
[7724] | 1284 |
|
---|
| 1285 |
|
---|
| 1286 |
|
---|
| 1287 |
|
---|
| 1288 |
|
---|
| 1289 |
|
---|
| 1290 |
|
---|
| 1291 |
|
---|
| 1292 |
|
---|
| 1293 |
|
---|
| 1294 |
|
---|
| 1295 |
|
---|
| 1296 |
|
---|
| 1297 |
|
---|
| 1298 |
|
---|
| 1299 |
|
---|
| 1300 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1301 |
|
---|
| 1302 |
|
---|
[5951] | 1303 | PACKAGE=gsdl3
|
---|
| 1304 | VERSION=0.1
|
---|
[7724] | 1305 |
|
---|
| 1306 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 1307 | #define PACKAGE "$PACKAGE"
|
---|
[7724] | 1308 | _ACEOF
|
---|
[5951] | 1309 |
|
---|
[7724] | 1310 |
|
---|
| 1311 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 1312 | #define VERSION "$VERSION"
|
---|
[7724] | 1313 | _ACEOF
|
---|
[5951] | 1314 |
|
---|
[7724] | 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1320 | #define PROTOTYPES 1
|
---|
| 1321 | _ACEOF
|
---|
| 1322 |
|
---|
| 1323 |
|
---|
[5951] | 1324 | LDFLAGS=
|
---|
| 1325 | if test -z "$CFLAGS"; then
|
---|
| 1326 | CFLAGS=-O2
|
---|
| 1327 | fi
|
---|
| 1328 |
|
---|
[7724] | 1329 |
|
---|
[5951] | 1330 | ac_ext=c
|
---|
| 1331 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1335 | if test -n "$ac_tool_prefix"; then
|
---|
| 1336 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1337 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[7724] | 1338 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 1339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1340 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1341 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1342 | else
|
---|
| 1343 | if test -n "$CC"; then
|
---|
| 1344 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1345 | else
|
---|
[7724] | 1346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1347 | for as_dir in $PATH
|
---|
| 1348 | do
|
---|
| 1349 | IFS=$as_save_IFS
|
---|
| 1350 | test -z "$as_dir" && as_dir=.
|
---|
| 1351 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1353 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1355 | break 2
|
---|
| 1356 | fi
|
---|
[5951] | 1357 | done
|
---|
[7724] | 1358 | done
|
---|
[5951] | 1359 |
|
---|
| 1360 | fi
|
---|
| 1361 | fi
|
---|
| 1362 | CC=$ac_cv_prog_CC
|
---|
| 1363 | if test -n "$CC"; then
|
---|
[7724] | 1364 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[5951] | 1365 | echo "${ECHO_T}$CC" >&6
|
---|
| 1366 | else
|
---|
[7724] | 1367 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 1368 | echo "${ECHO_T}no" >&6
|
---|
| 1369 | fi
|
---|
| 1370 |
|
---|
| 1371 | fi
|
---|
| 1372 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1373 | ac_ct_CC=$CC
|
---|
| 1374 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 1375 | set dummy gcc; ac_word=$2
|
---|
[7724] | 1376 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 1377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1378 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1379 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1380 | else
|
---|
| 1381 | if test -n "$ac_ct_CC"; then
|
---|
| 1382 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1383 | else
|
---|
[7724] | 1384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1385 | for as_dir in $PATH
|
---|
| 1386 | do
|
---|
| 1387 | IFS=$as_save_IFS
|
---|
| 1388 | test -z "$as_dir" && as_dir=.
|
---|
| 1389 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1390 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1391 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1393 | break 2
|
---|
| 1394 | fi
|
---|
[5951] | 1395 | done
|
---|
[7724] | 1396 | done
|
---|
[5951] | 1397 |
|
---|
| 1398 | fi
|
---|
| 1399 | fi
|
---|
| 1400 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1401 | if test -n "$ac_ct_CC"; then
|
---|
[7724] | 1402 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[5951] | 1403 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1404 | else
|
---|
[7724] | 1405 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 1406 | echo "${ECHO_T}no" >&6
|
---|
| 1407 | fi
|
---|
| 1408 |
|
---|
| 1409 | CC=$ac_ct_CC
|
---|
| 1410 | else
|
---|
| 1411 | CC="$ac_cv_prog_CC"
|
---|
| 1412 | fi
|
---|
| 1413 |
|
---|
| 1414 | if test -z "$CC"; then
|
---|
| 1415 | if test -n "$ac_tool_prefix"; then
|
---|
| 1416 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 1417 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[7724] | 1418 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 1419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1420 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1421 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1422 | else
|
---|
| 1423 | if test -n "$CC"; then
|
---|
| 1424 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1425 | else
|
---|
[7724] | 1426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1427 | for as_dir in $PATH
|
---|
| 1428 | do
|
---|
| 1429 | IFS=$as_save_IFS
|
---|
| 1430 | test -z "$as_dir" && as_dir=.
|
---|
| 1431 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1433 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1435 | break 2
|
---|
| 1436 | fi
|
---|
[5951] | 1437 | done
|
---|
[7724] | 1438 | done
|
---|
[5951] | 1439 |
|
---|
| 1440 | fi
|
---|
| 1441 | fi
|
---|
| 1442 | CC=$ac_cv_prog_CC
|
---|
| 1443 | if test -n "$CC"; then
|
---|
[7724] | 1444 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[5951] | 1445 | echo "${ECHO_T}$CC" >&6
|
---|
| 1446 | else
|
---|
[7724] | 1447 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 1448 | echo "${ECHO_T}no" >&6
|
---|
| 1449 | fi
|
---|
| 1450 |
|
---|
| 1451 | fi
|
---|
| 1452 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1453 | ac_ct_CC=$CC
|
---|
| 1454 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1455 | set dummy cc; ac_word=$2
|
---|
[7724] | 1456 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 1457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1458 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1459 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1460 | else
|
---|
| 1461 | if test -n "$ac_ct_CC"; then
|
---|
| 1462 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1463 | else
|
---|
[7724] | 1464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1465 | for as_dir in $PATH
|
---|
| 1466 | do
|
---|
| 1467 | IFS=$as_save_IFS
|
---|
| 1468 | test -z "$as_dir" && as_dir=.
|
---|
| 1469 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1471 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1473 | break 2
|
---|
| 1474 | fi
|
---|
[5951] | 1475 | done
|
---|
[7724] | 1476 | done
|
---|
[5951] | 1477 |
|
---|
| 1478 | fi
|
---|
| 1479 | fi
|
---|
| 1480 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1481 | if test -n "$ac_ct_CC"; then
|
---|
[7724] | 1482 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[5951] | 1483 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1484 | else
|
---|
[7724] | 1485 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 1486 | echo "${ECHO_T}no" >&6
|
---|
| 1487 | fi
|
---|
| 1488 |
|
---|
| 1489 | CC=$ac_ct_CC
|
---|
| 1490 | else
|
---|
| 1491 | CC="$ac_cv_prog_CC"
|
---|
| 1492 | fi
|
---|
| 1493 |
|
---|
| 1494 | fi
|
---|
| 1495 | if test -z "$CC"; then
|
---|
| 1496 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1497 | set dummy cc; ac_word=$2
|
---|
[7724] | 1498 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 1499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1500 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1501 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1502 | else
|
---|
| 1503 | if test -n "$CC"; then
|
---|
| 1504 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1505 | else
|
---|
| 1506 | ac_prog_rejected=no
|
---|
[7724] | 1507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1508 | for as_dir in $PATH
|
---|
| 1509 | do
|
---|
| 1510 | IFS=$as_save_IFS
|
---|
| 1511 | test -z "$as_dir" && as_dir=.
|
---|
| 1512 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1514 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1515 | ac_prog_rejected=yes
|
---|
| 1516 | continue
|
---|
| 1517 | fi
|
---|
| 1518 | ac_cv_prog_CC="cc"
|
---|
| 1519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1520 | break 2
|
---|
| 1521 | fi
|
---|
[5951] | 1522 | done
|
---|
[7724] | 1523 | done
|
---|
[5951] | 1524 |
|
---|
| 1525 | if test $ac_prog_rejected = yes; then
|
---|
| 1526 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1527 | set dummy $ac_cv_prog_CC
|
---|
| 1528 | shift
|
---|
| 1529 | if test $# != 0; then
|
---|
| 1530 | # We chose a different compiler from the bogus one.
|
---|
| 1531 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1532 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1533 | shift
|
---|
[7724] | 1534 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[5951] | 1535 | fi
|
---|
| 1536 | fi
|
---|
| 1537 | fi
|
---|
| 1538 | fi
|
---|
| 1539 | CC=$ac_cv_prog_CC
|
---|
| 1540 | if test -n "$CC"; then
|
---|
[7724] | 1541 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[5951] | 1542 | echo "${ECHO_T}$CC" >&6
|
---|
| 1543 | else
|
---|
[7724] | 1544 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 1545 | echo "${ECHO_T}no" >&6
|
---|
| 1546 | fi
|
---|
| 1547 |
|
---|
| 1548 | fi
|
---|
| 1549 | if test -z "$CC"; then
|
---|
| 1550 | if test -n "$ac_tool_prefix"; then
|
---|
| 1551 | for ac_prog in cl
|
---|
| 1552 | do
|
---|
| 1553 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1554 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[7724] | 1555 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 1556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1557 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1558 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1559 | else
|
---|
| 1560 | if test -n "$CC"; then
|
---|
| 1561 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1562 | else
|
---|
[7724] | 1563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1564 | for as_dir in $PATH
|
---|
| 1565 | do
|
---|
| 1566 | IFS=$as_save_IFS
|
---|
| 1567 | test -z "$as_dir" && as_dir=.
|
---|
| 1568 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1570 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1572 | break 2
|
---|
| 1573 | fi
|
---|
[5951] | 1574 | done
|
---|
[7724] | 1575 | done
|
---|
[5951] | 1576 |
|
---|
| 1577 | fi
|
---|
| 1578 | fi
|
---|
| 1579 | CC=$ac_cv_prog_CC
|
---|
| 1580 | if test -n "$CC"; then
|
---|
[7724] | 1581 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[5951] | 1582 | echo "${ECHO_T}$CC" >&6
|
---|
| 1583 | else
|
---|
[7724] | 1584 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 1585 | echo "${ECHO_T}no" >&6
|
---|
| 1586 | fi
|
---|
| 1587 |
|
---|
| 1588 | test -n "$CC" && break
|
---|
| 1589 | done
|
---|
| 1590 | fi
|
---|
| 1591 | if test -z "$CC"; then
|
---|
| 1592 | ac_ct_CC=$CC
|
---|
| 1593 | for ac_prog in cl
|
---|
| 1594 | do
|
---|
| 1595 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1596 | set dummy $ac_prog; ac_word=$2
|
---|
[7724] | 1597 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 1598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1599 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1600 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1601 | else
|
---|
| 1602 | if test -n "$ac_ct_CC"; then
|
---|
| 1603 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1604 | else
|
---|
[7724] | 1605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1606 | for as_dir in $PATH
|
---|
| 1607 | do
|
---|
| 1608 | IFS=$as_save_IFS
|
---|
| 1609 | test -z "$as_dir" && as_dir=.
|
---|
| 1610 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1612 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1614 | break 2
|
---|
| 1615 | fi
|
---|
[5951] | 1616 | done
|
---|
[7724] | 1617 | done
|
---|
[5951] | 1618 |
|
---|
| 1619 | fi
|
---|
| 1620 | fi
|
---|
| 1621 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1622 | if test -n "$ac_ct_CC"; then
|
---|
[7724] | 1623 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[5951] | 1624 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1625 | else
|
---|
[7724] | 1626 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 1627 | echo "${ECHO_T}no" >&6
|
---|
| 1628 | fi
|
---|
| 1629 |
|
---|
| 1630 | test -n "$ac_ct_CC" && break
|
---|
| 1631 | done
|
---|
| 1632 |
|
---|
| 1633 | CC=$ac_ct_CC
|
---|
| 1634 | fi
|
---|
| 1635 |
|
---|
| 1636 | fi
|
---|
| 1637 |
|
---|
[7724] | 1638 |
|
---|
| 1639 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1640 | See \`config.log' for more details." >&5
|
---|
| 1641 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1642 | See \`config.log' for more details." >&2;}
|
---|
[5951] | 1643 | { (exit 1); exit 1; }; }
|
---|
| 1644 |
|
---|
[7724] | 1645 | # Provide some information about the compiler.
|
---|
| 1646 | echo "$as_me:$LINENO:" \
|
---|
| 1647 | "checking for C compiler version" >&5
|
---|
| 1648 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1649 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1650 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1651 | ac_status=$?
|
---|
| 1652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1653 | (exit $ac_status); }
|
---|
| 1654 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1655 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1656 | ac_status=$?
|
---|
| 1657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1658 | (exit $ac_status); }
|
---|
| 1659 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1660 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1661 | ac_status=$?
|
---|
| 1662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1663 | (exit $ac_status); }
|
---|
| 1664 |
|
---|
[5951] | 1665 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 1666 | /* confdefs.h. */
|
---|
| 1667 | _ACEOF
|
---|
| 1668 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1669 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1670 | /* end confdefs.h. */
|
---|
[5951] | 1671 |
|
---|
| 1672 | int
|
---|
| 1673 | main ()
|
---|
| 1674 | {
|
---|
| 1675 |
|
---|
| 1676 | ;
|
---|
| 1677 | return 0;
|
---|
| 1678 | }
|
---|
| 1679 | _ACEOF
|
---|
| 1680 | ac_clean_files_save=$ac_clean_files
|
---|
[7724] | 1681 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[5951] | 1682 | # Try to create an executable without -o first, disregard a.out.
|
---|
[7724] | 1683 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[5951] | 1684 | # of exeext.
|
---|
[7724] | 1685 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1686 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
[5951] | 1687 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[7724] | 1688 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
[5951] | 1689 | (eval $ac_link_default) 2>&5
|
---|
| 1690 | ac_status=$?
|
---|
[7724] | 1691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1692 | (exit $ac_status); }; then
|
---|
[7724] | 1693 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1694 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1695 | # resort.
|
---|
| 1696 |
|
---|
| 1697 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1698 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1699 | ac_cv_exeext=
|
---|
| 1700 | # b.out is created by i960 compilers.
|
---|
| 1701 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1702 | do
|
---|
| 1703 | test -f "$ac_file" || continue
|
---|
[5951] | 1704 | case $ac_file in
|
---|
[7724] | 1705 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1706 | ;;
|
---|
| 1707 | conftest.$ac_ext )
|
---|
| 1708 | # This is the source file.
|
---|
| 1709 | ;;
|
---|
| 1710 | [ab].out )
|
---|
| 1711 | # We found the default executable, but exeext='' is most
|
---|
| 1712 | # certainly right.
|
---|
| 1713 | break;;
|
---|
| 1714 | *.* )
|
---|
| 1715 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1716 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1717 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1718 | # maintain Libtool? --akim.
|
---|
| 1719 | export ac_cv_exeext
|
---|
| 1720 | break;;
|
---|
| 1721 | * )
|
---|
| 1722 | break;;
|
---|
[5951] | 1723 | esac
|
---|
| 1724 | done
|
---|
| 1725 | else
|
---|
| 1726 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 1727 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1728 |
|
---|
| 1729 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1730 | See \`config.log' for more details." >&5
|
---|
| 1731 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1732 | See \`config.log' for more details." >&2;}
|
---|
[5951] | 1733 | { (exit 77); exit 77; }; }
|
---|
| 1734 | fi
|
---|
| 1735 |
|
---|
| 1736 | ac_exeext=$ac_cv_exeext
|
---|
[7724] | 1737 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
[5951] | 1738 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1739 |
|
---|
| 1740 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1741 | # the compiler is broken, or we cross compile.
|
---|
[7724] | 1742 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
[5951] | 1743 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 1744 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1745 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1746 | if test "$cross_compiling" != yes; then
|
---|
| 1747 | if { ac_try='./$ac_file'
|
---|
[7724] | 1748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 1749 | (eval $ac_try) 2>&5
|
---|
| 1750 | ac_status=$?
|
---|
[7724] | 1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1752 | (exit $ac_status); }; }; then
|
---|
| 1753 | cross_compiling=no
|
---|
| 1754 | else
|
---|
| 1755 | if test "$cross_compiling" = maybe; then
|
---|
| 1756 | cross_compiling=yes
|
---|
| 1757 | else
|
---|
[7724] | 1758 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1759 | If you meant to cross compile, use \`--host'.
|
---|
| 1760 | See \`config.log' for more details." >&5
|
---|
[5951] | 1761 | echo "$as_me: error: cannot run C compiled programs.
|
---|
[7724] | 1762 | If you meant to cross compile, use \`--host'.
|
---|
| 1763 | See \`config.log' for more details." >&2;}
|
---|
[5951] | 1764 | { (exit 1); exit 1; }; }
|
---|
| 1765 | fi
|
---|
| 1766 | fi
|
---|
| 1767 | fi
|
---|
[7724] | 1768 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[5951] | 1769 | echo "${ECHO_T}yes" >&6
|
---|
| 1770 |
|
---|
[7724] | 1771 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[5951] | 1772 | ac_clean_files=$ac_clean_files_save
|
---|
| 1773 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1774 | # the compiler is broken, or we cross compile.
|
---|
[7724] | 1775 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
[5951] | 1776 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
[7724] | 1777 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
[5951] | 1778 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1779 |
|
---|
[7724] | 1780 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1781 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[5951] | 1783 | (eval $ac_link) 2>&5
|
---|
| 1784 | ac_status=$?
|
---|
[7724] | 1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1786 | (exit $ac_status); }; then
|
---|
| 1787 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1788 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1789 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1790 | # `rm'.
|
---|
[7724] | 1791 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1792 | test -f "$ac_file" || continue
|
---|
[5951] | 1793 | case $ac_file in
|
---|
[7724] | 1794 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[5951] | 1795 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[7724] | 1796 | export ac_cv_exeext
|
---|
| 1797 | break;;
|
---|
[5951] | 1798 | * ) break;;
|
---|
| 1799 | esac
|
---|
| 1800 | done
|
---|
| 1801 | else
|
---|
[7724] | 1802 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1803 | See \`config.log' for more details." >&5
|
---|
| 1804 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1805 | See \`config.log' for more details." >&2;}
|
---|
[5951] | 1806 | { (exit 1); exit 1; }; }
|
---|
| 1807 | fi
|
---|
| 1808 |
|
---|
| 1809 | rm -f conftest$ac_cv_exeext
|
---|
[7724] | 1810 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
[5951] | 1811 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1812 |
|
---|
| 1813 | rm -f conftest.$ac_ext
|
---|
| 1814 | EXEEXT=$ac_cv_exeext
|
---|
| 1815 | ac_exeext=$EXEEXT
|
---|
[7724] | 1816 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1817 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[5951] | 1818 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1819 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1820 | else
|
---|
| 1821 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 1822 | /* confdefs.h. */
|
---|
| 1823 | _ACEOF
|
---|
| 1824 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1825 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1826 | /* end confdefs.h. */
|
---|
[5951] | 1827 |
|
---|
| 1828 | int
|
---|
| 1829 | main ()
|
---|
| 1830 | {
|
---|
| 1831 |
|
---|
| 1832 | ;
|
---|
| 1833 | return 0;
|
---|
| 1834 | }
|
---|
| 1835 | _ACEOF
|
---|
| 1836 | rm -f conftest.o conftest.obj
|
---|
[7724] | 1837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
[5951] | 1838 | (eval $ac_compile) 2>&5
|
---|
| 1839 | ac_status=$?
|
---|
[7724] | 1840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1841 | (exit $ac_status); }; then
|
---|
| 1842 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1843 | case $ac_file in
|
---|
[7724] | 1844 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[5951] | 1845 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1846 | break;;
|
---|
| 1847 | esac
|
---|
| 1848 | done
|
---|
| 1849 | else
|
---|
| 1850 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 1851 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1852 |
|
---|
| 1853 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1854 | See \`config.log' for more details." >&5
|
---|
| 1855 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1856 | See \`config.log' for more details." >&2;}
|
---|
[5951] | 1857 | { (exit 1); exit 1; }; }
|
---|
| 1858 | fi
|
---|
| 1859 |
|
---|
| 1860 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 1861 | fi
|
---|
[7724] | 1862 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
[5951] | 1863 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1864 | OBJEXT=$ac_cv_objext
|
---|
| 1865 | ac_objext=$OBJEXT
|
---|
[7724] | 1866 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
[5951] | 1867 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 1868 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 1869 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1870 | else
|
---|
| 1871 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 1872 | /* confdefs.h. */
|
---|
| 1873 | _ACEOF
|
---|
| 1874 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1875 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1876 | /* end confdefs.h. */
|
---|
[5951] | 1877 |
|
---|
| 1878 | int
|
---|
| 1879 | main ()
|
---|
| 1880 | {
|
---|
| 1881 | #ifndef __GNUC__
|
---|
| 1882 | choke me
|
---|
| 1883 | #endif
|
---|
| 1884 |
|
---|
| 1885 | ;
|
---|
| 1886 | return 0;
|
---|
| 1887 | }
|
---|
| 1888 | _ACEOF
|
---|
| 1889 | rm -f conftest.$ac_objext
|
---|
[7724] | 1890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1891 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 1892 | ac_status=$?
|
---|
[7724] | 1893 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1894 | rm -f conftest.er1
|
---|
| 1895 | cat conftest.err >&5
|
---|
| 1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1897 | (exit $ac_status); } &&
|
---|
[7724] | 1898 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 1899 | || test ! -s conftest.err'
|
---|
| 1900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 1901 | (eval $ac_try) 2>&5
|
---|
| 1902 | ac_status=$?
|
---|
[7724] | 1903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1904 | (exit $ac_status); }; } &&
|
---|
| 1905 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1907 | (eval $ac_try) 2>&5
|
---|
| 1908 | ac_status=$?
|
---|
| 1909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1910 | (exit $ac_status); }; }; then
|
---|
| 1911 | ac_compiler_gnu=yes
|
---|
| 1912 | else
|
---|
| 1913 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 1914 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1915 |
|
---|
[5951] | 1916 | ac_compiler_gnu=no
|
---|
| 1917 | fi
|
---|
[7724] | 1918 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 1919 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 1920 |
|
---|
| 1921 | fi
|
---|
[7724] | 1922 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[5951] | 1923 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 1924 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 1925 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 1926 | ac_save_CFLAGS=$CFLAGS
|
---|
| 1927 | CFLAGS="-g"
|
---|
[7724] | 1928 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
[5951] | 1929 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 1930 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 1931 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1932 | else
|
---|
| 1933 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 1934 | /* confdefs.h. */
|
---|
| 1935 | _ACEOF
|
---|
| 1936 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1937 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1938 | /* end confdefs.h. */
|
---|
[5951] | 1939 |
|
---|
| 1940 | int
|
---|
| 1941 | main ()
|
---|
| 1942 | {
|
---|
| 1943 |
|
---|
| 1944 | ;
|
---|
| 1945 | return 0;
|
---|
| 1946 | }
|
---|
| 1947 | _ACEOF
|
---|
| 1948 | rm -f conftest.$ac_objext
|
---|
[7724] | 1949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1950 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 1951 | ac_status=$?
|
---|
[7724] | 1952 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1953 | rm -f conftest.er1
|
---|
| 1954 | cat conftest.err >&5
|
---|
| 1955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1956 | (exit $ac_status); } &&
|
---|
[7724] | 1957 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 1958 | || test ! -s conftest.err'
|
---|
| 1959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 1960 | (eval $ac_try) 2>&5
|
---|
| 1961 | ac_status=$?
|
---|
[7724] | 1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1963 | (exit $ac_status); }; } &&
|
---|
| 1964 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1966 | (eval $ac_try) 2>&5
|
---|
| 1967 | ac_status=$?
|
---|
| 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 1969 | (exit $ac_status); }; }; then
|
---|
| 1970 | ac_cv_prog_cc_g=yes
|
---|
| 1971 | else
|
---|
| 1972 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 1973 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1974 |
|
---|
[5951] | 1975 | ac_cv_prog_cc_g=no
|
---|
| 1976 | fi
|
---|
[7724] | 1977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 1978 | fi
|
---|
[7724] | 1979 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
[5951] | 1980 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
| 1981 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 1982 | CFLAGS=$ac_save_CFLAGS
|
---|
| 1983 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 1984 | if test "$GCC" = yes; then
|
---|
| 1985 | CFLAGS="-g -O2"
|
---|
| 1986 | else
|
---|
| 1987 | CFLAGS="-g"
|
---|
| 1988 | fi
|
---|
| 1989 | else
|
---|
| 1990 | if test "$GCC" = yes; then
|
---|
| 1991 | CFLAGS="-O2"
|
---|
| 1992 | else
|
---|
| 1993 | CFLAGS=
|
---|
| 1994 | fi
|
---|
| 1995 | fi
|
---|
[7724] | 1996 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 1997 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 1998 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 1999 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2000 | else
|
---|
| 2001 | ac_cv_prog_cc_stdc=no
|
---|
| 2002 | ac_save_CC=$CC
|
---|
| 2003 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2004 | /* confdefs.h. */
|
---|
| 2005 | _ACEOF
|
---|
| 2006 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2007 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2008 | /* end confdefs.h. */
|
---|
| 2009 | #include <stdarg.h>
|
---|
| 2010 | #include <stdio.h>
|
---|
| 2011 | #include <sys/types.h>
|
---|
| 2012 | #include <sys/stat.h>
|
---|
| 2013 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2014 | struct buf { int x; };
|
---|
| 2015 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2016 | static char *e (p, i)
|
---|
| 2017 | char **p;
|
---|
| 2018 | int i;
|
---|
| 2019 | {
|
---|
| 2020 | return p[i];
|
---|
| 2021 | }
|
---|
| 2022 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2023 | {
|
---|
| 2024 | char *s;
|
---|
| 2025 | va_list v;
|
---|
| 2026 | va_start (v,p);
|
---|
| 2027 | s = g (p, va_arg (v,int));
|
---|
| 2028 | va_end (v);
|
---|
| 2029 | return s;
|
---|
| 2030 | }
|
---|
| 2031 |
|
---|
| 2032 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2033 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2034 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2035 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2036 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2037 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2038 | that's true only with -std1. */
|
---|
| 2039 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2040 |
|
---|
| 2041 | int test (int i, double x);
|
---|
| 2042 | struct s1 {int (*f) (int a);};
|
---|
| 2043 | struct s2 {int (*f) (double a);};
|
---|
| 2044 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2045 | int argc;
|
---|
| 2046 | char **argv;
|
---|
| 2047 | int
|
---|
| 2048 | main ()
|
---|
| 2049 | {
|
---|
| 2050 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2051 | ;
|
---|
| 2052 | return 0;
|
---|
| 2053 | }
|
---|
| 2054 | _ACEOF
|
---|
| 2055 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2056 | # breaks some systems' header files.
|
---|
| 2057 | # AIX -qlanglvl=ansi
|
---|
| 2058 | # Ultrix and OSF/1 -std1
|
---|
| 2059 | # HP-UX 10.20 and later -Ae
|
---|
| 2060 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2061 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2062 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 2063 | do
|
---|
| 2064 | CC="$ac_save_CC $ac_arg"
|
---|
| 2065 | rm -f conftest.$ac_objext
|
---|
| 2066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2067 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2068 | ac_status=$?
|
---|
| 2069 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2070 | rm -f conftest.er1
|
---|
| 2071 | cat conftest.err >&5
|
---|
| 2072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2073 | (exit $ac_status); } &&
|
---|
| 2074 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2075 | || test ! -s conftest.err'
|
---|
| 2076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2077 | (eval $ac_try) 2>&5
|
---|
| 2078 | ac_status=$?
|
---|
| 2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2080 | (exit $ac_status); }; } &&
|
---|
| 2081 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2083 | (eval $ac_try) 2>&5
|
---|
| 2084 | ac_status=$?
|
---|
| 2085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2086 | (exit $ac_status); }; }; then
|
---|
| 2087 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2088 | break
|
---|
| 2089 | else
|
---|
| 2090 | echo "$as_me: failed program was:" >&5
|
---|
| 2091 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2092 |
|
---|
| 2093 | fi
|
---|
| 2094 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2095 | done
|
---|
| 2096 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2097 | CC=$ac_save_CC
|
---|
| 2098 |
|
---|
| 2099 | fi
|
---|
| 2100 |
|
---|
| 2101 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2102 | x|xno)
|
---|
| 2103 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2104 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2105 | *)
|
---|
| 2106 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2107 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2108 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2109 | esac
|
---|
| 2110 |
|
---|
[5951] | 2111 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2112 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2113 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2114 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2115 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2116 | #ifndef __cplusplus
|
---|
| 2117 | choke me
|
---|
| 2118 | #endif
|
---|
| 2119 | _ACEOF
|
---|
| 2120 | rm -f conftest.$ac_objext
|
---|
[7724] | 2121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2122 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 2123 | ac_status=$?
|
---|
[7724] | 2124 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2125 | rm -f conftest.er1
|
---|
| 2126 | cat conftest.err >&5
|
---|
| 2127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2128 | (exit $ac_status); } &&
|
---|
[7724] | 2129 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2130 | || test ! -s conftest.err'
|
---|
| 2131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 2132 | (eval $ac_try) 2>&5
|
---|
| 2133 | ac_status=$?
|
---|
[7724] | 2134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2135 | (exit $ac_status); }; } &&
|
---|
| 2136 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2138 | (eval $ac_try) 2>&5
|
---|
| 2139 | ac_status=$?
|
---|
| 2140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2141 | (exit $ac_status); }; }; then
|
---|
| 2142 | for ac_declaration in \
|
---|
[7724] | 2143 | '' \
|
---|
[5951] | 2144 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2145 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2146 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2147 | 'extern "C" void exit (int);' \
|
---|
| 2148 | 'void exit (int);'
|
---|
| 2149 | do
|
---|
| 2150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 2151 | /* confdefs.h. */
|
---|
| 2152 | _ACEOF
|
---|
| 2153 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2154 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2155 | /* end confdefs.h. */
|
---|
| 2156 | $ac_declaration
|
---|
[5951] | 2157 | #include <stdlib.h>
|
---|
| 2158 | int
|
---|
| 2159 | main ()
|
---|
| 2160 | {
|
---|
| 2161 | exit (42);
|
---|
| 2162 | ;
|
---|
| 2163 | return 0;
|
---|
| 2164 | }
|
---|
| 2165 | _ACEOF
|
---|
| 2166 | rm -f conftest.$ac_objext
|
---|
[7724] | 2167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2168 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 2169 | ac_status=$?
|
---|
[7724] | 2170 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2171 | rm -f conftest.er1
|
---|
| 2172 | cat conftest.err >&5
|
---|
| 2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2174 | (exit $ac_status); } &&
|
---|
[7724] | 2175 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2176 | || test ! -s conftest.err'
|
---|
| 2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 2178 | (eval $ac_try) 2>&5
|
---|
| 2179 | ac_status=$?
|
---|
[7724] | 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2181 | (exit $ac_status); }; } &&
|
---|
| 2182 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2184 | (eval $ac_try) 2>&5
|
---|
| 2185 | ac_status=$?
|
---|
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2187 | (exit $ac_status); }; }; then
|
---|
| 2188 | :
|
---|
| 2189 | else
|
---|
| 2190 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 2191 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2192 |
|
---|
[5951] | 2193 | continue
|
---|
| 2194 | fi
|
---|
[7724] | 2195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 2196 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 2197 | /* confdefs.h. */
|
---|
| 2198 | _ACEOF
|
---|
| 2199 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2200 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2201 | /* end confdefs.h. */
|
---|
[5951] | 2202 | $ac_declaration
|
---|
| 2203 | int
|
---|
| 2204 | main ()
|
---|
| 2205 | {
|
---|
| 2206 | exit (42);
|
---|
| 2207 | ;
|
---|
| 2208 | return 0;
|
---|
| 2209 | }
|
---|
| 2210 | _ACEOF
|
---|
| 2211 | rm -f conftest.$ac_objext
|
---|
[7724] | 2212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2213 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 2214 | ac_status=$?
|
---|
[7724] | 2215 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2216 | rm -f conftest.er1
|
---|
| 2217 | cat conftest.err >&5
|
---|
| 2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2219 | (exit $ac_status); } &&
|
---|
[7724] | 2220 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2221 | || test ! -s conftest.err'
|
---|
| 2222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 2223 | (eval $ac_try) 2>&5
|
---|
| 2224 | ac_status=$?
|
---|
[7724] | 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2226 | (exit $ac_status); }; } &&
|
---|
| 2227 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2229 | (eval $ac_try) 2>&5
|
---|
| 2230 | ac_status=$?
|
---|
| 2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2232 | (exit $ac_status); }; }; then
|
---|
| 2233 | break
|
---|
| 2234 | else
|
---|
| 2235 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 2236 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2237 |
|
---|
[5951] | 2238 | fi
|
---|
[7724] | 2239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 2240 | done
|
---|
[7724] | 2241 | rm -f conftest*
|
---|
| 2242 | if test -n "$ac_declaration"; then
|
---|
| 2243 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2244 | echo $ac_declaration >>confdefs.h
|
---|
| 2245 | echo '#endif' >>confdefs.h
|
---|
| 2246 | fi
|
---|
[5951] | 2247 |
|
---|
| 2248 | else
|
---|
| 2249 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 2250 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2251 |
|
---|
[5951] | 2252 | fi
|
---|
[7724] | 2253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 2254 | ac_ext=c
|
---|
| 2255 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2256 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2257 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2258 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2259 |
|
---|
| 2260 | ac_ext=cc
|
---|
| 2261 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 2265 | if test -n "$ac_tool_prefix"; then
|
---|
[7724] | 2266 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[5951] | 2267 | do
|
---|
| 2268 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2269 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[7724] | 2270 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 2271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2272 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2273 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2274 | else
|
---|
| 2275 | if test -n "$CXX"; then
|
---|
| 2276 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2277 | else
|
---|
[7724] | 2278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2279 | for as_dir in $PATH
|
---|
| 2280 | do
|
---|
| 2281 | IFS=$as_save_IFS
|
---|
| 2282 | test -z "$as_dir" && as_dir=.
|
---|
| 2283 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2285 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2287 | break 2
|
---|
| 2288 | fi
|
---|
[5951] | 2289 | done
|
---|
[7724] | 2290 | done
|
---|
[5951] | 2291 |
|
---|
| 2292 | fi
|
---|
| 2293 | fi
|
---|
| 2294 | CXX=$ac_cv_prog_CXX
|
---|
| 2295 | if test -n "$CXX"; then
|
---|
[7724] | 2296 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
[5951] | 2297 | echo "${ECHO_T}$CXX" >&6
|
---|
| 2298 | else
|
---|
[7724] | 2299 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 2300 | echo "${ECHO_T}no" >&6
|
---|
| 2301 | fi
|
---|
| 2302 |
|
---|
| 2303 | test -n "$CXX" && break
|
---|
| 2304 | done
|
---|
| 2305 | fi
|
---|
| 2306 | if test -z "$CXX"; then
|
---|
| 2307 | ac_ct_CXX=$CXX
|
---|
[7724] | 2308 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[5951] | 2309 | do
|
---|
| 2310 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2311 | set dummy $ac_prog; ac_word=$2
|
---|
[7724] | 2312 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 2313 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2314 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2315 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2316 | else
|
---|
| 2317 | if test -n "$ac_ct_CXX"; then
|
---|
| 2318 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2319 | else
|
---|
[7724] | 2320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2321 | for as_dir in $PATH
|
---|
| 2322 | do
|
---|
| 2323 | IFS=$as_save_IFS
|
---|
| 2324 | test -z "$as_dir" && as_dir=.
|
---|
| 2325 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2326 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2327 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2328 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2329 | break 2
|
---|
| 2330 | fi
|
---|
[5951] | 2331 | done
|
---|
[7724] | 2332 | done
|
---|
[5951] | 2333 |
|
---|
| 2334 | fi
|
---|
| 2335 | fi
|
---|
| 2336 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2337 | if test -n "$ac_ct_CXX"; then
|
---|
[7724] | 2338 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
[5951] | 2339 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
| 2340 | else
|
---|
[7724] | 2341 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 2342 | echo "${ECHO_T}no" >&6
|
---|
| 2343 | fi
|
---|
| 2344 |
|
---|
| 2345 | test -n "$ac_ct_CXX" && break
|
---|
| 2346 | done
|
---|
| 2347 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 2348 |
|
---|
| 2349 | CXX=$ac_ct_CXX
|
---|
| 2350 | fi
|
---|
| 2351 |
|
---|
[7724] | 2352 |
|
---|
| 2353 | # Provide some information about the compiler.
|
---|
| 2354 | echo "$as_me:$LINENO:" \
|
---|
| 2355 | "checking for C++ compiler version" >&5
|
---|
| 2356 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2357 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2358 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2359 | ac_status=$?
|
---|
| 2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2361 | (exit $ac_status); }
|
---|
| 2362 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2363 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2364 | ac_status=$?
|
---|
| 2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2366 | (exit $ac_status); }
|
---|
| 2367 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2368 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2369 | ac_status=$?
|
---|
| 2370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2371 | (exit $ac_status); }
|
---|
| 2372 |
|
---|
| 2373 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
[5951] | 2374 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2375 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2376 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2377 | else
|
---|
| 2378 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 2379 | /* confdefs.h. */
|
---|
| 2380 | _ACEOF
|
---|
| 2381 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2382 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2383 | /* end confdefs.h. */
|
---|
[5951] | 2384 |
|
---|
| 2385 | int
|
---|
| 2386 | main ()
|
---|
| 2387 | {
|
---|
| 2388 | #ifndef __GNUC__
|
---|
| 2389 | choke me
|
---|
| 2390 | #endif
|
---|
| 2391 |
|
---|
| 2392 | ;
|
---|
| 2393 | return 0;
|
---|
| 2394 | }
|
---|
| 2395 | _ACEOF
|
---|
| 2396 | rm -f conftest.$ac_objext
|
---|
[7724] | 2397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2398 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 2399 | ac_status=$?
|
---|
[7724] | 2400 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2401 | rm -f conftest.er1
|
---|
| 2402 | cat conftest.err >&5
|
---|
| 2403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2404 | (exit $ac_status); } &&
|
---|
[7724] | 2405 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2406 | || test ! -s conftest.err'
|
---|
| 2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 2408 | (eval $ac_try) 2>&5
|
---|
| 2409 | ac_status=$?
|
---|
[7724] | 2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2411 | (exit $ac_status); }; } &&
|
---|
| 2412 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2414 | (eval $ac_try) 2>&5
|
---|
| 2415 | ac_status=$?
|
---|
| 2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2417 | (exit $ac_status); }; }; then
|
---|
| 2418 | ac_compiler_gnu=yes
|
---|
| 2419 | else
|
---|
| 2420 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 2421 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2422 |
|
---|
[5951] | 2423 | ac_compiler_gnu=no
|
---|
| 2424 | fi
|
---|
[7724] | 2425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 2426 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2427 |
|
---|
| 2428 | fi
|
---|
[7724] | 2429 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[5951] | 2430 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2431 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2432 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2433 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 2434 | CXXFLAGS="-g"
|
---|
[7724] | 2435 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
[5951] | 2436 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2437 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2438 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2439 | else
|
---|
| 2440 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 2441 | /* confdefs.h. */
|
---|
| 2442 | _ACEOF
|
---|
| 2443 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2444 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2445 | /* end confdefs.h. */
|
---|
[5951] | 2446 |
|
---|
| 2447 | int
|
---|
| 2448 | main ()
|
---|
| 2449 | {
|
---|
| 2450 |
|
---|
| 2451 | ;
|
---|
| 2452 | return 0;
|
---|
| 2453 | }
|
---|
| 2454 | _ACEOF
|
---|
| 2455 | rm -f conftest.$ac_objext
|
---|
[7724] | 2456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2457 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 2458 | ac_status=$?
|
---|
[7724] | 2459 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2460 | rm -f conftest.er1
|
---|
| 2461 | cat conftest.err >&5
|
---|
| 2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2463 | (exit $ac_status); } &&
|
---|
[7724] | 2464 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2465 | || test ! -s conftest.err'
|
---|
| 2466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 2467 | (eval $ac_try) 2>&5
|
---|
| 2468 | ac_status=$?
|
---|
[7724] | 2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2470 | (exit $ac_status); }; } &&
|
---|
| 2471 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2473 | (eval $ac_try) 2>&5
|
---|
| 2474 | ac_status=$?
|
---|
| 2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2476 | (exit $ac_status); }; }; then
|
---|
| 2477 | ac_cv_prog_cxx_g=yes
|
---|
| 2478 | else
|
---|
| 2479 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 2480 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2481 |
|
---|
[5951] | 2482 | ac_cv_prog_cxx_g=no
|
---|
| 2483 | fi
|
---|
[7724] | 2484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 2485 | fi
|
---|
[7724] | 2486 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
[5951] | 2487 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2488 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2489 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2490 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2491 | if test "$GXX" = yes; then
|
---|
| 2492 | CXXFLAGS="-g -O2"
|
---|
| 2493 | else
|
---|
| 2494 | CXXFLAGS="-g"
|
---|
| 2495 | fi
|
---|
| 2496 | else
|
---|
| 2497 | if test "$GXX" = yes; then
|
---|
| 2498 | CXXFLAGS="-O2"
|
---|
| 2499 | else
|
---|
| 2500 | CXXFLAGS=
|
---|
| 2501 | fi
|
---|
| 2502 | fi
|
---|
| 2503 | for ac_declaration in \
|
---|
[7724] | 2504 | '' \
|
---|
[5951] | 2505 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2506 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2507 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2508 | 'extern "C" void exit (int);' \
|
---|
| 2509 | 'void exit (int);'
|
---|
| 2510 | do
|
---|
| 2511 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 2512 | /* confdefs.h. */
|
---|
| 2513 | _ACEOF
|
---|
| 2514 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2515 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2516 | /* end confdefs.h. */
|
---|
| 2517 | $ac_declaration
|
---|
[5951] | 2518 | #include <stdlib.h>
|
---|
| 2519 | int
|
---|
| 2520 | main ()
|
---|
| 2521 | {
|
---|
| 2522 | exit (42);
|
---|
| 2523 | ;
|
---|
| 2524 | return 0;
|
---|
| 2525 | }
|
---|
| 2526 | _ACEOF
|
---|
| 2527 | rm -f conftest.$ac_objext
|
---|
[7724] | 2528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2529 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 2530 | ac_status=$?
|
---|
[7724] | 2531 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2532 | rm -f conftest.er1
|
---|
| 2533 | cat conftest.err >&5
|
---|
| 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2535 | (exit $ac_status); } &&
|
---|
[7724] | 2536 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2537 | || test ! -s conftest.err'
|
---|
| 2538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 2539 | (eval $ac_try) 2>&5
|
---|
| 2540 | ac_status=$?
|
---|
[7724] | 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2542 | (exit $ac_status); }; } &&
|
---|
| 2543 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2545 | (eval $ac_try) 2>&5
|
---|
| 2546 | ac_status=$?
|
---|
| 2547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2548 | (exit $ac_status); }; }; then
|
---|
| 2549 | :
|
---|
| 2550 | else
|
---|
| 2551 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 2552 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2553 |
|
---|
[5951] | 2554 | continue
|
---|
| 2555 | fi
|
---|
[7724] | 2556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 2557 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 2558 | /* confdefs.h. */
|
---|
| 2559 | _ACEOF
|
---|
| 2560 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2561 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2562 | /* end confdefs.h. */
|
---|
[5951] | 2563 | $ac_declaration
|
---|
| 2564 | int
|
---|
| 2565 | main ()
|
---|
| 2566 | {
|
---|
| 2567 | exit (42);
|
---|
| 2568 | ;
|
---|
| 2569 | return 0;
|
---|
| 2570 | }
|
---|
| 2571 | _ACEOF
|
---|
| 2572 | rm -f conftest.$ac_objext
|
---|
[7724] | 2573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2574 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 2575 | ac_status=$?
|
---|
[7724] | 2576 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2577 | rm -f conftest.er1
|
---|
| 2578 | cat conftest.err >&5
|
---|
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2580 | (exit $ac_status); } &&
|
---|
[7724] | 2581 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2582 | || test ! -s conftest.err'
|
---|
| 2583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 2584 | (eval $ac_try) 2>&5
|
---|
| 2585 | ac_status=$?
|
---|
[7724] | 2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2587 | (exit $ac_status); }; } &&
|
---|
| 2588 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2590 | (eval $ac_try) 2>&5
|
---|
| 2591 | ac_status=$?
|
---|
| 2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 2593 | (exit $ac_status); }; }; then
|
---|
| 2594 | break
|
---|
| 2595 | else
|
---|
| 2596 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 2597 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2598 |
|
---|
[5951] | 2599 | fi
|
---|
[7724] | 2600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 2601 | done
|
---|
[7724] | 2602 | rm -f conftest*
|
---|
| 2603 | if test -n "$ac_declaration"; then
|
---|
| 2604 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2605 | echo $ac_declaration >>confdefs.h
|
---|
| 2606 | echo '#endif' >>confdefs.h
|
---|
| 2607 | fi
|
---|
[5951] | 2608 |
|
---|
| 2609 | ac_ext=c
|
---|
| 2610 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2614 |
|
---|
[7724] | 2615 | for ac_prog in gawk mawk nawk awk
|
---|
[5951] | 2616 | do
|
---|
| 2617 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2618 | set dummy $ac_prog; ac_word=$2
|
---|
[7724] | 2619 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 2620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2621 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2622 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2623 | else
|
---|
| 2624 | if test -n "$AWK"; then
|
---|
| 2625 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2626 | else
|
---|
[7724] | 2627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2628 | for as_dir in $PATH
|
---|
| 2629 | do
|
---|
| 2630 | IFS=$as_save_IFS
|
---|
| 2631 | test -z "$as_dir" && as_dir=.
|
---|
| 2632 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2633 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2634 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2635 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2636 | break 2
|
---|
| 2637 | fi
|
---|
[5951] | 2638 | done
|
---|
[7724] | 2639 | done
|
---|
[5951] | 2640 |
|
---|
| 2641 | fi
|
---|
| 2642 | fi
|
---|
| 2643 | AWK=$ac_cv_prog_AWK
|
---|
| 2644 | if test -n "$AWK"; then
|
---|
[7724] | 2645 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
[5951] | 2646 | echo "${ECHO_T}$AWK" >&6
|
---|
| 2647 | else
|
---|
[7724] | 2648 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 2649 | echo "${ECHO_T}no" >&6
|
---|
| 2650 | fi
|
---|
| 2651 |
|
---|
| 2652 | test -n "$AWK" && break
|
---|
| 2653 | done
|
---|
| 2654 |
|
---|
| 2655 | for ac_prog in 'bison -y' byacc
|
---|
| 2656 | do
|
---|
| 2657 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2658 | set dummy $ac_prog; ac_word=$2
|
---|
[7724] | 2659 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 2660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2661 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2662 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2663 | else
|
---|
| 2664 | if test -n "$YACC"; then
|
---|
| 2665 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2666 | else
|
---|
[7724] | 2667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2668 | for as_dir in $PATH
|
---|
| 2669 | do
|
---|
| 2670 | IFS=$as_save_IFS
|
---|
| 2671 | test -z "$as_dir" && as_dir=.
|
---|
| 2672 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2674 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2676 | break 2
|
---|
| 2677 | fi
|
---|
[5951] | 2678 | done
|
---|
[7724] | 2679 | done
|
---|
[5951] | 2680 |
|
---|
| 2681 | fi
|
---|
| 2682 | fi
|
---|
| 2683 | YACC=$ac_cv_prog_YACC
|
---|
| 2684 | if test -n "$YACC"; then
|
---|
[7724] | 2685 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
[5951] | 2686 | echo "${ECHO_T}$YACC" >&6
|
---|
| 2687 | else
|
---|
[7724] | 2688 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 2689 | echo "${ECHO_T}no" >&6
|
---|
| 2690 | fi
|
---|
| 2691 |
|
---|
| 2692 | test -n "$YACC" && break
|
---|
| 2693 | done
|
---|
| 2694 | test -n "$YACC" || YACC="yacc"
|
---|
| 2695 |
|
---|
| 2696 | ac_aux_dir=
|
---|
| 2697 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2698 | if test -f $ac_dir/install-sh; then
|
---|
| 2699 | ac_aux_dir=$ac_dir
|
---|
| 2700 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2701 | break
|
---|
| 2702 | elif test -f $ac_dir/install.sh; then
|
---|
| 2703 | ac_aux_dir=$ac_dir
|
---|
| 2704 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2705 | break
|
---|
| 2706 | elif test -f $ac_dir/shtool; then
|
---|
| 2707 | ac_aux_dir=$ac_dir
|
---|
| 2708 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2709 | break
|
---|
| 2710 | fi
|
---|
| 2711 | done
|
---|
| 2712 | if test -z "$ac_aux_dir"; then
|
---|
[7724] | 2713 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
[5951] | 2714 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2715 | { (exit 1); exit 1; }; }
|
---|
| 2716 | fi
|
---|
| 2717 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2718 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2719 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
| 2720 |
|
---|
| 2721 | # Make sure we can run config.sub.
|
---|
| 2722 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
[7724] | 2723 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
[5951] | 2724 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 2725 | { (exit 1); exit 1; }; }
|
---|
| 2726 |
|
---|
[7724] | 2727 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
[5951] | 2728 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 2729 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2730 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2731 | else
|
---|
| 2732 | ac_cv_build_alias=$build_alias
|
---|
| 2733 | test -z "$ac_cv_build_alias" &&
|
---|
| 2734 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2735 | test -z "$ac_cv_build_alias" &&
|
---|
[7724] | 2736 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
[5951] | 2737 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2738 | { (exit 1); exit 1; }; }
|
---|
| 2739 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
[7724] | 2740 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2741 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
[5951] | 2742 | { (exit 1); exit 1; }; }
|
---|
| 2743 |
|
---|
| 2744 | fi
|
---|
[7724] | 2745 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
[5951] | 2746 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 2747 | build=$ac_cv_build
|
---|
| 2748 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2749 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2750 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 2751 |
|
---|
[7724] | 2752 |
|
---|
| 2753 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
[5951] | 2754 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 2755 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2756 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2757 | else
|
---|
| 2758 | ac_cv_host_alias=$host_alias
|
---|
| 2759 | test -z "$ac_cv_host_alias" &&
|
---|
| 2760 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2761 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
[7724] | 2762 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
[5951] | 2763 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 2764 | { (exit 1); exit 1; }; }
|
---|
| 2765 |
|
---|
| 2766 | fi
|
---|
[7724] | 2767 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
[5951] | 2768 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 2769 | host=$ac_cv_host
|
---|
| 2770 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2771 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2772 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 2773 |
|
---|
[7724] | 2774 |
|
---|
| 2775 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
[5951] | 2776 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 2777 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2778 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2779 | else
|
---|
| 2780 | ac_cv_target_alias=$target_alias
|
---|
| 2781 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2782 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2783 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
[7724] | 2784 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
[5951] | 2785 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 2786 | { (exit 1); exit 1; }; }
|
---|
| 2787 |
|
---|
| 2788 | fi
|
---|
[7724] | 2789 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
[5951] | 2790 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 2791 | target=$ac_cv_target
|
---|
| 2792 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2793 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2794 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 2795 |
|
---|
[7724] | 2796 |
|
---|
[5951] | 2797 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2798 | # will get canonicalized.
|
---|
| 2799 | test -n "$target_alias" &&
|
---|
| 2800 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2801 | NONENONEs,x,x, &&
|
---|
| 2802 | program_prefix=${target_alias}-
|
---|
| 2803 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2804 | # so one script is as good as another. But avoid the broken or
|
---|
| 2805 | # incompatible versions:
|
---|
| 2806 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2807 | # SunOS /usr/etc/install
|
---|
| 2808 | # IRIX /sbin/install
|
---|
| 2809 | # AIX /bin/install
|
---|
| 2810 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 2811 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2812 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2813 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[7724] | 2814 | # OS/2's system install, which has a completely different semantic
|
---|
[5951] | 2815 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[7724] | 2816 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2817 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[5951] | 2818 | if test -z "$INSTALL"; then
|
---|
| 2819 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2820 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2821 | else
|
---|
[7724] | 2822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2823 | for as_dir in $PATH
|
---|
| 2824 | do
|
---|
| 2825 | IFS=$as_save_IFS
|
---|
| 2826 | test -z "$as_dir" && as_dir=.
|
---|
| 2827 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2828 | case $as_dir/ in
|
---|
| 2829 | ./ | .// | /cC/* | \
|
---|
| 2830 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2831 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2832 | /usr/ucb/* ) ;;
|
---|
| 2833 | *)
|
---|
| 2834 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2835 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2836 | # by default.
|
---|
| 2837 | for ac_prog in ginstall scoinst install; do
|
---|
| 2838 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2839 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[5951] | 2840 | if test $ac_prog = install &&
|
---|
[7724] | 2841 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[5951] | 2842 | # AIX install. It has an incompatible calling convention.
|
---|
| 2843 | :
|
---|
| 2844 | elif test $ac_prog = install &&
|
---|
[7724] | 2845 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[5951] | 2846 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2847 | :
|
---|
| 2848 | else
|
---|
[7724] | 2849 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2850 | break 3
|
---|
[5951] | 2851 | fi
|
---|
| 2852 | fi
|
---|
| 2853 | done
|
---|
[7724] | 2854 | done
|
---|
| 2855 | ;;
|
---|
| 2856 | esac
|
---|
| 2857 | done
|
---|
[5951] | 2858 |
|
---|
[7724] | 2859 |
|
---|
[5951] | 2860 | fi
|
---|
| 2861 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2862 | INSTALL=$ac_cv_path_install
|
---|
| 2863 | else
|
---|
| 2864 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2865 | # path for INSTALL within a source directory, because that will
|
---|
| 2866 | # break other packages using the cache if that directory is
|
---|
| 2867 | # removed, or if the path is relative.
|
---|
| 2868 | INSTALL=$ac_install_sh
|
---|
| 2869 | fi
|
---|
| 2870 | fi
|
---|
[7724] | 2871 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
[5951] | 2872 | echo "${ECHO_T}$INSTALL" >&6
|
---|
| 2873 |
|
---|
| 2874 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2875 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2876 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2877 |
|
---|
| 2878 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 2879 |
|
---|
| 2880 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2881 |
|
---|
[7724] | 2882 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
[5951] | 2883 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2884 | LN_S=$as_ln_s
|
---|
| 2885 | if test "$LN_S" = "ln -s"; then
|
---|
[7724] | 2886 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[5951] | 2887 | echo "${ECHO_T}yes" >&6
|
---|
| 2888 | else
|
---|
[7724] | 2889 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
[5951] | 2890 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
| 2891 | fi
|
---|
| 2892 |
|
---|
[7724] | 2893 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2894 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2895 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
[5951] | 2896 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2897 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2898 | else
|
---|
[7724] | 2899 | cat >conftest.make <<\_ACEOF
|
---|
[5951] | 2900 | all:
|
---|
[7724] | 2901 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2902 | _ACEOF
|
---|
[5951] | 2903 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 2904 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 2905 | if test -n "$ac_maketemp"; then
|
---|
| 2906 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2907 | else
|
---|
| 2908 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2909 | fi
|
---|
| 2910 | rm -f conftest.make
|
---|
| 2911 | fi
|
---|
| 2912 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[7724] | 2913 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[5951] | 2914 | echo "${ECHO_T}yes" >&6
|
---|
| 2915 | SET_MAKE=
|
---|
| 2916 | else
|
---|
[7724] | 2917 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 2918 | echo "${ECHO_T}no" >&6
|
---|
| 2919 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2920 | fi
|
---|
| 2921 |
|
---|
| 2922 | if test -n "$ac_tool_prefix"; then
|
---|
| 2923 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 2924 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[7724] | 2925 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 2926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2927 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 2928 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2929 | else
|
---|
| 2930 | if test -n "$RANLIB"; then
|
---|
| 2931 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 2932 | else
|
---|
[7724] | 2933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2934 | for as_dir in $PATH
|
---|
| 2935 | do
|
---|
| 2936 | IFS=$as_save_IFS
|
---|
| 2937 | test -z "$as_dir" && as_dir=.
|
---|
| 2938 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2940 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 2941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2942 | break 2
|
---|
| 2943 | fi
|
---|
[5951] | 2944 | done
|
---|
[7724] | 2945 | done
|
---|
[5951] | 2946 |
|
---|
| 2947 | fi
|
---|
| 2948 | fi
|
---|
| 2949 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 2950 | if test -n "$RANLIB"; then
|
---|
[7724] | 2951 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
[5951] | 2952 | echo "${ECHO_T}$RANLIB" >&6
|
---|
| 2953 | else
|
---|
[7724] | 2954 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 2955 | echo "${ECHO_T}no" >&6
|
---|
| 2956 | fi
|
---|
| 2957 |
|
---|
| 2958 | fi
|
---|
| 2959 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 2960 | ac_ct_RANLIB=$RANLIB
|
---|
| 2961 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 2962 | set dummy ranlib; ac_word=$2
|
---|
[7724] | 2963 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[5951] | 2964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2965 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 2966 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2967 | else
|
---|
| 2968 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 2969 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 2970 | else
|
---|
[7724] | 2971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2972 | for as_dir in $PATH
|
---|
| 2973 | do
|
---|
| 2974 | IFS=$as_save_IFS
|
---|
| 2975 | test -z "$as_dir" && as_dir=.
|
---|
| 2976 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2978 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 2979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2980 | break 2
|
---|
| 2981 | fi
|
---|
[5951] | 2982 | done
|
---|
[7724] | 2983 | done
|
---|
[5951] | 2984 |
|
---|
| 2985 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 2986 | fi
|
---|
| 2987 | fi
|
---|
| 2988 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 2989 | if test -n "$ac_ct_RANLIB"; then
|
---|
[7724] | 2990 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
[5951] | 2991 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 2992 | else
|
---|
[7724] | 2993 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 2994 | echo "${ECHO_T}no" >&6
|
---|
| 2995 | fi
|
---|
| 2996 |
|
---|
| 2997 | RANLIB=$ac_ct_RANLIB
|
---|
| 2998 | else
|
---|
| 2999 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3000 | fi
|
---|
| 3001 |
|
---|
[7724] | 3002 |
|
---|
| 3003 |
|
---|
[5951] | 3004 | ac_ext=c
|
---|
| 3005 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[7724] | 3009 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
[5951] | 3010 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
| 3011 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3012 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3013 | CPP=
|
---|
| 3014 | fi
|
---|
| 3015 | if test -z "$CPP"; then
|
---|
| 3016 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3017 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3018 | else
|
---|
| 3019 | # Double quotes because CPP needs to be expanded
|
---|
| 3020 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3021 | do
|
---|
| 3022 | ac_preproc_ok=false
|
---|
| 3023 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3024 | do
|
---|
| 3025 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3026 | # with a fresh cross-compiler works.
|
---|
[7724] | 3027 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3028 | # <limits.h> exists even on freestanding compilers.
|
---|
[5951] | 3029 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3030 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3031 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 3032 | /* confdefs.h. */
|
---|
[5951] | 3033 | _ACEOF
|
---|
[7724] | 3034 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3035 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3036 | /* end confdefs.h. */
|
---|
| 3037 | #ifdef __STDC__
|
---|
| 3038 | # include <limits.h>
|
---|
| 3039 | #else
|
---|
| 3040 | # include <assert.h>
|
---|
| 3041 | #endif
|
---|
| 3042 | Syntax error
|
---|
| 3043 | _ACEOF
|
---|
| 3044 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[5951] | 3045 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3046 | ac_status=$?
|
---|
[7724] | 3047 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[5951] | 3048 | rm -f conftest.er1
|
---|
| 3049 | cat conftest.err >&5
|
---|
[7724] | 3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3051 | (exit $ac_status); } >/dev/null; then
|
---|
| 3052 | if test -s conftest.err; then
|
---|
| 3053 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[7724] | 3054 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[5951] | 3055 | else
|
---|
| 3056 | ac_cpp_err=
|
---|
| 3057 | fi
|
---|
| 3058 | else
|
---|
| 3059 | ac_cpp_err=yes
|
---|
| 3060 | fi
|
---|
| 3061 | if test -z "$ac_cpp_err"; then
|
---|
| 3062 | :
|
---|
| 3063 | else
|
---|
| 3064 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 3065 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3066 |
|
---|
[5951] | 3067 | # Broken: fails on valid input.
|
---|
| 3068 | continue
|
---|
| 3069 | fi
|
---|
| 3070 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3071 |
|
---|
| 3072 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3073 | # can be detected and how.
|
---|
| 3074 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 3075 | /* confdefs.h. */
|
---|
| 3076 | _ACEOF
|
---|
| 3077 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3078 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3079 | /* end confdefs.h. */
|
---|
[5951] | 3080 | #include <ac_nonexistent.h>
|
---|
| 3081 | _ACEOF
|
---|
[7724] | 3082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[5951] | 3083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3084 | ac_status=$?
|
---|
[7724] | 3085 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[5951] | 3086 | rm -f conftest.er1
|
---|
| 3087 | cat conftest.err >&5
|
---|
[7724] | 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3089 | (exit $ac_status); } >/dev/null; then
|
---|
| 3090 | if test -s conftest.err; then
|
---|
| 3091 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[7724] | 3092 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[5951] | 3093 | else
|
---|
| 3094 | ac_cpp_err=
|
---|
| 3095 | fi
|
---|
| 3096 | else
|
---|
| 3097 | ac_cpp_err=yes
|
---|
| 3098 | fi
|
---|
| 3099 | if test -z "$ac_cpp_err"; then
|
---|
| 3100 | # Broken: success on invalid input.
|
---|
| 3101 | continue
|
---|
| 3102 | else
|
---|
| 3103 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 3104 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3105 |
|
---|
[5951] | 3106 | # Passes both tests.
|
---|
| 3107 | ac_preproc_ok=:
|
---|
| 3108 | break
|
---|
| 3109 | fi
|
---|
| 3110 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3111 |
|
---|
| 3112 | done
|
---|
| 3113 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3114 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3115 | if $ac_preproc_ok; then
|
---|
[7724] | 3116 | break
|
---|
[5951] | 3117 | fi
|
---|
| 3118 |
|
---|
| 3119 | done
|
---|
| 3120 | ac_cv_prog_CPP=$CPP
|
---|
| 3121 |
|
---|
| 3122 | fi
|
---|
| 3123 | CPP=$ac_cv_prog_CPP
|
---|
| 3124 | else
|
---|
| 3125 | ac_cv_prog_CPP=$CPP
|
---|
| 3126 | fi
|
---|
[7724] | 3127 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
[5951] | 3128 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3129 | ac_preproc_ok=false
|
---|
| 3130 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3131 | do
|
---|
| 3132 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3133 | # with a fresh cross-compiler works.
|
---|
[7724] | 3134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3135 | # <limits.h> exists even on freestanding compilers.
|
---|
[5951] | 3136 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3137 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3138 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 3139 | /* confdefs.h. */
|
---|
[5951] | 3140 | _ACEOF
|
---|
[7724] | 3141 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3142 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3143 | /* end confdefs.h. */
|
---|
| 3144 | #ifdef __STDC__
|
---|
| 3145 | # include <limits.h>
|
---|
| 3146 | #else
|
---|
| 3147 | # include <assert.h>
|
---|
| 3148 | #endif
|
---|
| 3149 | Syntax error
|
---|
| 3150 | _ACEOF
|
---|
| 3151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[5951] | 3152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3153 | ac_status=$?
|
---|
[7724] | 3154 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[5951] | 3155 | rm -f conftest.er1
|
---|
| 3156 | cat conftest.err >&5
|
---|
[7724] | 3157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3158 | (exit $ac_status); } >/dev/null; then
|
---|
| 3159 | if test -s conftest.err; then
|
---|
| 3160 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[7724] | 3161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[5951] | 3162 | else
|
---|
| 3163 | ac_cpp_err=
|
---|
| 3164 | fi
|
---|
| 3165 | else
|
---|
| 3166 | ac_cpp_err=yes
|
---|
| 3167 | fi
|
---|
| 3168 | if test -z "$ac_cpp_err"; then
|
---|
| 3169 | :
|
---|
| 3170 | else
|
---|
| 3171 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 3172 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3173 |
|
---|
[5951] | 3174 | # Broken: fails on valid input.
|
---|
| 3175 | continue
|
---|
| 3176 | fi
|
---|
| 3177 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3178 |
|
---|
| 3179 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3180 | # can be detected and how.
|
---|
| 3181 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 3182 | /* confdefs.h. */
|
---|
| 3183 | _ACEOF
|
---|
| 3184 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3185 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3186 | /* end confdefs.h. */
|
---|
[5951] | 3187 | #include <ac_nonexistent.h>
|
---|
| 3188 | _ACEOF
|
---|
[7724] | 3189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[5951] | 3190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3191 | ac_status=$?
|
---|
[7724] | 3192 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[5951] | 3193 | rm -f conftest.er1
|
---|
| 3194 | cat conftest.err >&5
|
---|
[7724] | 3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3196 | (exit $ac_status); } >/dev/null; then
|
---|
| 3197 | if test -s conftest.err; then
|
---|
| 3198 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[7724] | 3199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[5951] | 3200 | else
|
---|
| 3201 | ac_cpp_err=
|
---|
| 3202 | fi
|
---|
| 3203 | else
|
---|
| 3204 | ac_cpp_err=yes
|
---|
| 3205 | fi
|
---|
| 3206 | if test -z "$ac_cpp_err"; then
|
---|
| 3207 | # Broken: success on invalid input.
|
---|
| 3208 | continue
|
---|
| 3209 | else
|
---|
| 3210 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 3211 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3212 |
|
---|
[5951] | 3213 | # Passes both tests.
|
---|
| 3214 | ac_preproc_ok=:
|
---|
| 3215 | break
|
---|
| 3216 | fi
|
---|
| 3217 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3218 |
|
---|
| 3219 | done
|
---|
| 3220 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3221 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3222 | if $ac_preproc_ok; then
|
---|
| 3223 | :
|
---|
| 3224 | else
|
---|
[7724] | 3225 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3226 | See \`config.log' for more details." >&5
|
---|
| 3227 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3228 | See \`config.log' for more details." >&2;}
|
---|
[5951] | 3229 | { (exit 1); exit 1; }; }
|
---|
| 3230 | fi
|
---|
| 3231 |
|
---|
| 3232 | ac_ext=c
|
---|
| 3233 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3237 |
|
---|
[7724] | 3238 |
|
---|
| 3239 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3240 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3241 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3242 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3243 | else
|
---|
| 3244 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3245 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3246 | else ac_cv_prog_egrep='egrep'
|
---|
| 3247 | fi
|
---|
| 3248 | fi
|
---|
| 3249 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3250 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3251 | EGREP=$ac_cv_prog_egrep
|
---|
| 3252 |
|
---|
| 3253 |
|
---|
| 3254 |
|
---|
| 3255 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
[5951] | 3256 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3257 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 3258 | /* confdefs.h. */
|
---|
| 3259 | _ACEOF
|
---|
| 3260 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3261 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3262 | /* end confdefs.h. */
|
---|
[5951] | 3263 | #ifdef _AIX
|
---|
| 3264 | yes
|
---|
| 3265 | #endif
|
---|
| 3266 |
|
---|
| 3267 | _ACEOF
|
---|
| 3268 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 3269 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3270 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[5951] | 3271 | echo "${ECHO_T}yes" >&6
|
---|
[7724] | 3272 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 3273 | #define _ALL_SOURCE 1
|
---|
[7724] | 3274 | _ACEOF
|
---|
[5951] | 3275 |
|
---|
| 3276 | else
|
---|
[7724] | 3277 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 3278 | echo "${ECHO_T}no" >&6
|
---|
| 3279 | fi
|
---|
| 3280 | rm -f conftest*
|
---|
| 3281 |
|
---|
| 3282 |
|
---|
[7724] | 3283 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3284 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3285 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3286 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3287 | else
|
---|
| 3288 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3289 | ac_cv_search_strerror=no
|
---|
| 3290 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3291 | /* confdefs.h. */
|
---|
| 3292 | _ACEOF
|
---|
| 3293 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3294 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3295 | /* end confdefs.h. */
|
---|
[5951] | 3296 |
|
---|
[7724] | 3297 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3298 | #ifdef __cplusplus
|
---|
| 3299 | extern "C"
|
---|
| 3300 | #endif
|
---|
| 3301 | /* We use char because int might match the return type of a gcc2
|
---|
| 3302 | builtin and then its argument prototype would still apply. */
|
---|
| 3303 | char strerror ();
|
---|
| 3304 | int
|
---|
| 3305 | main ()
|
---|
| 3306 | {
|
---|
| 3307 | strerror ();
|
---|
| 3308 | ;
|
---|
| 3309 | return 0;
|
---|
| 3310 | }
|
---|
| 3311 | _ACEOF
|
---|
| 3312 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3313 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3314 | (eval $ac_link) 2>conftest.er1
|
---|
| 3315 | ac_status=$?
|
---|
| 3316 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3317 | rm -f conftest.er1
|
---|
| 3318 | cat conftest.err >&5
|
---|
| 3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3320 | (exit $ac_status); } &&
|
---|
| 3321 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3322 | || test ! -s conftest.err'
|
---|
| 3323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3324 | (eval $ac_try) 2>&5
|
---|
| 3325 | ac_status=$?
|
---|
| 3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3327 | (exit $ac_status); }; } &&
|
---|
| 3328 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3330 | (eval $ac_try) 2>&5
|
---|
| 3331 | ac_status=$?
|
---|
| 3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3333 | (exit $ac_status); }; }; then
|
---|
| 3334 | ac_cv_search_strerror="none required"
|
---|
[5951] | 3335 | else
|
---|
[7724] | 3336 | echo "$as_me: failed program was:" >&5
|
---|
| 3337 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3338 |
|
---|
[5951] | 3339 | fi
|
---|
[7724] | 3340 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3341 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3342 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3343 | for ac_lib in cposix; do
|
---|
| 3344 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3345 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3346 | /* confdefs.h. */
|
---|
| 3347 | _ACEOF
|
---|
| 3348 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3349 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3350 | /* end confdefs.h. */
|
---|
[5951] | 3351 |
|
---|
[7724] | 3352 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3353 | #ifdef __cplusplus
|
---|
| 3354 | extern "C"
|
---|
| 3355 | #endif
|
---|
| 3356 | /* We use char because int might match the return type of a gcc2
|
---|
| 3357 | builtin and then its argument prototype would still apply. */
|
---|
| 3358 | char strerror ();
|
---|
| 3359 | int
|
---|
| 3360 | main ()
|
---|
| 3361 | {
|
---|
| 3362 | strerror ();
|
---|
| 3363 | ;
|
---|
| 3364 | return 0;
|
---|
| 3365 | }
|
---|
| 3366 | _ACEOF
|
---|
| 3367 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3369 | (eval $ac_link) 2>conftest.er1
|
---|
| 3370 | ac_status=$?
|
---|
| 3371 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3372 | rm -f conftest.er1
|
---|
| 3373 | cat conftest.err >&5
|
---|
| 3374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3375 | (exit $ac_status); } &&
|
---|
| 3376 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3377 | || test ! -s conftest.err'
|
---|
| 3378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3379 | (eval $ac_try) 2>&5
|
---|
| 3380 | ac_status=$?
|
---|
| 3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3382 | (exit $ac_status); }; } &&
|
---|
| 3383 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3385 | (eval $ac_try) 2>&5
|
---|
| 3386 | ac_status=$?
|
---|
| 3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3388 | (exit $ac_status); }; }; then
|
---|
| 3389 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3390 | break
|
---|
| 3391 | else
|
---|
| 3392 | echo "$as_me: failed program was:" >&5
|
---|
| 3393 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3394 |
|
---|
| 3395 | fi
|
---|
| 3396 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3397 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3398 | done
|
---|
| 3399 | fi
|
---|
| 3400 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3401 | fi
|
---|
| 3402 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3403 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3404 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3405 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3406 |
|
---|
| 3407 | fi
|
---|
| 3408 |
|
---|
| 3409 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3410 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3411 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3412 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3413 | else
|
---|
| 3414 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3415 | /* confdefs.h. */
|
---|
| 3416 | _ACEOF
|
---|
| 3417 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3418 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3419 | /* end confdefs.h. */
|
---|
| 3420 | #include <stdlib.h>
|
---|
| 3421 | #include <stdarg.h>
|
---|
| 3422 | #include <string.h>
|
---|
| 3423 | #include <float.h>
|
---|
| 3424 |
|
---|
| 3425 | int
|
---|
| 3426 | main ()
|
---|
| 3427 | {
|
---|
| 3428 |
|
---|
| 3429 | ;
|
---|
| 3430 | return 0;
|
---|
| 3431 | }
|
---|
| 3432 | _ACEOF
|
---|
| 3433 | rm -f conftest.$ac_objext
|
---|
| 3434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3435 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3436 | ac_status=$?
|
---|
| 3437 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3438 | rm -f conftest.er1
|
---|
| 3439 | cat conftest.err >&5
|
---|
| 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3441 | (exit $ac_status); } &&
|
---|
| 3442 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3443 | || test ! -s conftest.err'
|
---|
| 3444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3445 | (eval $ac_try) 2>&5
|
---|
| 3446 | ac_status=$?
|
---|
| 3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3448 | (exit $ac_status); }; } &&
|
---|
| 3449 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3451 | (eval $ac_try) 2>&5
|
---|
| 3452 | ac_status=$?
|
---|
| 3453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3454 | (exit $ac_status); }; }; then
|
---|
| 3455 | ac_cv_header_stdc=yes
|
---|
| 3456 | else
|
---|
| 3457 | echo "$as_me: failed program was:" >&5
|
---|
| 3458 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3459 |
|
---|
| 3460 | ac_cv_header_stdc=no
|
---|
| 3461 | fi
|
---|
| 3462 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3463 |
|
---|
| 3464 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3465 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3466 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3467 | /* confdefs.h. */
|
---|
| 3468 | _ACEOF
|
---|
| 3469 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3470 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3471 | /* end confdefs.h. */
|
---|
| 3472 | #include <string.h>
|
---|
| 3473 |
|
---|
| 3474 | _ACEOF
|
---|
| 3475 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3476 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3477 | :
|
---|
| 3478 | else
|
---|
| 3479 | ac_cv_header_stdc=no
|
---|
| 3480 | fi
|
---|
| 3481 | rm -f conftest*
|
---|
| 3482 |
|
---|
| 3483 | fi
|
---|
| 3484 |
|
---|
| 3485 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3486 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3487 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3488 | /* confdefs.h. */
|
---|
| 3489 | _ACEOF
|
---|
| 3490 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3491 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3492 | /* end confdefs.h. */
|
---|
| 3493 | #include <stdlib.h>
|
---|
| 3494 |
|
---|
| 3495 | _ACEOF
|
---|
| 3496 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3497 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3498 | :
|
---|
| 3499 | else
|
---|
| 3500 | ac_cv_header_stdc=no
|
---|
| 3501 | fi
|
---|
| 3502 | rm -f conftest*
|
---|
| 3503 |
|
---|
| 3504 | fi
|
---|
| 3505 |
|
---|
| 3506 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3507 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3508 | if test "$cross_compiling" = yes; then
|
---|
| 3509 | :
|
---|
| 3510 | else
|
---|
| 3511 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3512 | /* confdefs.h. */
|
---|
| 3513 | _ACEOF
|
---|
| 3514 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3515 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3516 | /* end confdefs.h. */
|
---|
| 3517 | #include <ctype.h>
|
---|
| 3518 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3519 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3520 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3521 | #else
|
---|
| 3522 | # define ISLOWER(c) \
|
---|
| 3523 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3524 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3525 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3526 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3527 | #endif
|
---|
| 3528 |
|
---|
| 3529 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3530 | int
|
---|
| 3531 | main ()
|
---|
| 3532 | {
|
---|
| 3533 | int i;
|
---|
| 3534 | for (i = 0; i < 256; i++)
|
---|
| 3535 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3536 | || toupper (i) != TOUPPER (i))
|
---|
| 3537 | exit(2);
|
---|
| 3538 | exit (0);
|
---|
| 3539 | }
|
---|
| 3540 | _ACEOF
|
---|
| 3541 | rm -f conftest$ac_exeext
|
---|
| 3542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3543 | (eval $ac_link) 2>&5
|
---|
| 3544 | ac_status=$?
|
---|
| 3545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3546 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3548 | (eval $ac_try) 2>&5
|
---|
| 3549 | ac_status=$?
|
---|
| 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3551 | (exit $ac_status); }; }; then
|
---|
| 3552 | :
|
---|
| 3553 | else
|
---|
| 3554 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3555 | echo "$as_me: failed program was:" >&5
|
---|
| 3556 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3557 |
|
---|
| 3558 | ( exit $ac_status )
|
---|
| 3559 | ac_cv_header_stdc=no
|
---|
| 3560 | fi
|
---|
| 3561 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3562 | fi
|
---|
| 3563 | fi
|
---|
| 3564 | fi
|
---|
| 3565 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3566 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3567 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3568 |
|
---|
| 3569 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3570 | #define STDC_HEADERS 1
|
---|
| 3571 | _ACEOF
|
---|
| 3572 |
|
---|
| 3573 | fi
|
---|
| 3574 |
|
---|
| 3575 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3576 |
|
---|
| 3577 |
|
---|
| 3578 |
|
---|
| 3579 |
|
---|
| 3580 |
|
---|
| 3581 |
|
---|
| 3582 |
|
---|
| 3583 |
|
---|
| 3584 |
|
---|
| 3585 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3586 | inttypes.h stdint.h unistd.h
|
---|
| 3587 | do
|
---|
| 3588 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3589 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3591 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3592 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3593 | else
|
---|
| 3594 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3595 | /* confdefs.h. */
|
---|
| 3596 | _ACEOF
|
---|
| 3597 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3598 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3599 | /* end confdefs.h. */
|
---|
| 3600 | $ac_includes_default
|
---|
| 3601 |
|
---|
| 3602 | #include <$ac_header>
|
---|
| 3603 | _ACEOF
|
---|
| 3604 | rm -f conftest.$ac_objext
|
---|
| 3605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3606 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3607 | ac_status=$?
|
---|
| 3608 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3609 | rm -f conftest.er1
|
---|
| 3610 | cat conftest.err >&5
|
---|
| 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3612 | (exit $ac_status); } &&
|
---|
| 3613 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3614 | || test ! -s conftest.err'
|
---|
| 3615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3616 | (eval $ac_try) 2>&5
|
---|
| 3617 | ac_status=$?
|
---|
| 3618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3619 | (exit $ac_status); }; } &&
|
---|
| 3620 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3622 | (eval $ac_try) 2>&5
|
---|
| 3623 | ac_status=$?
|
---|
| 3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3625 | (exit $ac_status); }; }; then
|
---|
| 3626 | eval "$as_ac_Header=yes"
|
---|
| 3627 | else
|
---|
| 3628 | echo "$as_me: failed program was:" >&5
|
---|
| 3629 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3630 |
|
---|
| 3631 | eval "$as_ac_Header=no"
|
---|
| 3632 | fi
|
---|
| 3633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3634 | fi
|
---|
| 3635 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3636 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3638 | cat >>confdefs.h <<_ACEOF
|
---|
| 3639 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3640 | _ACEOF
|
---|
| 3641 |
|
---|
| 3642 | fi
|
---|
| 3643 |
|
---|
| 3644 | done
|
---|
| 3645 |
|
---|
| 3646 |
|
---|
| 3647 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3648 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
[5951] | 3649 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3650 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3651 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[7724] | 3652 | fi
|
---|
| 3653 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3654 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[5951] | 3655 | else
|
---|
[7724] | 3656 | # Is the header compilable?
|
---|
| 3657 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3658 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3659 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3660 | /* confdefs.h. */
|
---|
| 3661 | _ACEOF
|
---|
| 3662 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3663 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3664 | /* end confdefs.h. */
|
---|
| 3665 | $ac_includes_default
|
---|
[5951] | 3666 | #include <minix/config.h>
|
---|
| 3667 | _ACEOF
|
---|
[7724] | 3668 | rm -f conftest.$ac_objext
|
---|
| 3669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3670 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3671 | ac_status=$?
|
---|
| 3672 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3673 | rm -f conftest.er1
|
---|
| 3674 | cat conftest.err >&5
|
---|
| 3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3676 | (exit $ac_status); } &&
|
---|
| 3677 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3678 | || test ! -s conftest.err'
|
---|
| 3679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3680 | (eval $ac_try) 2>&5
|
---|
| 3681 | ac_status=$?
|
---|
| 3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3683 | (exit $ac_status); }; } &&
|
---|
| 3684 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3686 | (eval $ac_try) 2>&5
|
---|
| 3687 | ac_status=$?
|
---|
| 3688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3689 | (exit $ac_status); }; }; then
|
---|
| 3690 | ac_header_compiler=yes
|
---|
| 3691 | else
|
---|
| 3692 | echo "$as_me: failed program was:" >&5
|
---|
| 3693 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3694 |
|
---|
| 3695 | ac_header_compiler=no
|
---|
| 3696 | fi
|
---|
| 3697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3698 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3699 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3700 |
|
---|
| 3701 | # Is the header present?
|
---|
| 3702 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3703 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3705 | /* confdefs.h. */
|
---|
| 3706 | _ACEOF
|
---|
| 3707 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3708 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3709 | /* end confdefs.h. */
|
---|
| 3710 | #include <minix/config.h>
|
---|
| 3711 | _ACEOF
|
---|
| 3712 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[5951] | 3713 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3714 | ac_status=$?
|
---|
[7724] | 3715 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[5951] | 3716 | rm -f conftest.er1
|
---|
| 3717 | cat conftest.err >&5
|
---|
[7724] | 3718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3719 | (exit $ac_status); } >/dev/null; then
|
---|
| 3720 | if test -s conftest.err; then
|
---|
| 3721 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[7724] | 3722 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[5951] | 3723 | else
|
---|
| 3724 | ac_cpp_err=
|
---|
| 3725 | fi
|
---|
| 3726 | else
|
---|
| 3727 | ac_cpp_err=yes
|
---|
| 3728 | fi
|
---|
| 3729 | if test -z "$ac_cpp_err"; then
|
---|
[7724] | 3730 | ac_header_preproc=yes
|
---|
[5951] | 3731 | else
|
---|
| 3732 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 3733 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3734 |
|
---|
| 3735 | ac_header_preproc=no
|
---|
[5951] | 3736 | fi
|
---|
| 3737 | rm -f conftest.err conftest.$ac_ext
|
---|
[7724] | 3738 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3739 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3740 |
|
---|
| 3741 | # So? What about this header?
|
---|
| 3742 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3743 | yes:no: )
|
---|
| 3744 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3745 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3746 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3747 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3748 | ac_header_preproc=yes
|
---|
| 3749 | ;;
|
---|
| 3750 | no:yes:* )
|
---|
| 3751 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3752 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3753 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3754 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3755 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3756 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3757 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3758 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3759 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3760 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3761 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3762 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3763 | (
|
---|
| 3764 | cat <<\_ASBOX
|
---|
| 3765 | ## ------------------------------------------ ##
|
---|
| 3766 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3767 | ## ------------------------------------------ ##
|
---|
| 3768 | _ASBOX
|
---|
| 3769 | ) |
|
---|
| 3770 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3771 | ;;
|
---|
| 3772 | esac
|
---|
| 3773 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3774 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3775 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3776 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3777 | else
|
---|
| 3778 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
[5951] | 3779 | fi
|
---|
[7724] | 3780 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
[5951] | 3781 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[7724] | 3782 |
|
---|
| 3783 | fi
|
---|
[5951] | 3784 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 3785 | MINIX=yes
|
---|
| 3786 | else
|
---|
| 3787 | MINIX=
|
---|
| 3788 | fi
|
---|
| 3789 |
|
---|
[7724] | 3790 |
|
---|
[5951] | 3791 | if test "$MINIX" = yes; then
|
---|
| 3792 |
|
---|
[7724] | 3793 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 3794 | #define _POSIX_SOURCE 1
|
---|
[7724] | 3795 | _ACEOF
|
---|
[5951] | 3796 |
|
---|
[7724] | 3797 |
|
---|
| 3798 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 3799 | #define _POSIX_1_SOURCE 2
|
---|
[7724] | 3800 | _ACEOF
|
---|
[5951] | 3801 |
|
---|
[7724] | 3802 |
|
---|
| 3803 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 3804 | #define _MINIX 1
|
---|
[7724] | 3805 | _ACEOF
|
---|
[5951] | 3806 |
|
---|
| 3807 | fi
|
---|
| 3808 |
|
---|
[7724] | 3809 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[5951] | 3810 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3811 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3812 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3813 | else
|
---|
| 3814 | ac_cv_prog_cc_stdc=no
|
---|
| 3815 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3816 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3817 | # breaks some systems' header files.
|
---|
| 3818 | # AIX -qlanglvl=ansi
|
---|
| 3819 | # Ultrix and OSF/1 -std1
|
---|
| 3820 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3821 | # SVR4 -Xc
|
---|
| 3822 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3823 | do
|
---|
| 3824 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
| 3825 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 3826 | /* confdefs.h. */
|
---|
| 3827 | _ACEOF
|
---|
| 3828 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3829 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3830 | /* end confdefs.h. */
|
---|
[5951] | 3831 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3832 | choke me
|
---|
| 3833 | #endif
|
---|
| 3834 |
|
---|
| 3835 | int
|
---|
| 3836 | main ()
|
---|
| 3837 | {
|
---|
| 3838 | int test (int i, double x);
|
---|
| 3839 | struct s1 {int (*f) (int a);};
|
---|
| 3840 | struct s2 {int (*f) (double a);};
|
---|
| 3841 | ;
|
---|
| 3842 | return 0;
|
---|
| 3843 | }
|
---|
| 3844 | _ACEOF
|
---|
| 3845 | rm -f conftest.$ac_objext
|
---|
[7724] | 3846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3847 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 3848 | ac_status=$?
|
---|
[7724] | 3849 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3850 | rm -f conftest.er1
|
---|
| 3851 | cat conftest.err >&5
|
---|
| 3852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3853 | (exit $ac_status); } &&
|
---|
[7724] | 3854 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3855 | || test ! -s conftest.err'
|
---|
| 3856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 3857 | (eval $ac_try) 2>&5
|
---|
| 3858 | ac_status=$?
|
---|
[7724] | 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3860 | (exit $ac_status); }; } &&
|
---|
| 3861 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3863 | (eval $ac_try) 2>&5
|
---|
| 3864 | ac_status=$?
|
---|
| 3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3866 | (exit $ac_status); }; }; then
|
---|
| 3867 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3868 | else
|
---|
| 3869 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 3870 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3871 |
|
---|
[5951] | 3872 | fi
|
---|
[7724] | 3873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 3874 | done
|
---|
| 3875 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3876 |
|
---|
| 3877 | fi
|
---|
| 3878 |
|
---|
[7724] | 3879 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[5951] | 3880 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 3881 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 3882 | x|xno) ;;
|
---|
| 3883 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 3884 | esac
|
---|
| 3885 |
|
---|
[7724] | 3886 |
|
---|
| 3887 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
[5951] | 3888 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
| 3889 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[7724] | 3890 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[5951] | 3891 | echo "${ECHO_T}yes" >&6
|
---|
[7724] | 3892 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 3893 | #define PROTOTYPES 1
|
---|
[7724] | 3894 | _ACEOF
|
---|
[5951] | 3895 |
|
---|
| 3896 | U= ANSI2KNR=
|
---|
| 3897 | else
|
---|
[7724] | 3898 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[5951] | 3899 | echo "${ECHO_T}no" >&6
|
---|
| 3900 | U=_ ANSI2KNR=ansi2knr
|
---|
| 3901 | fi
|
---|
| 3902 |
|
---|
[7724] | 3903 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
[5951] | 3904 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 3905 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 3906 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3907 | else
|
---|
| 3908 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 3909 | /* confdefs.h. */
|
---|
| 3910 | _ACEOF
|
---|
| 3911 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3912 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3913 | /* end confdefs.h. */
|
---|
[5951] | 3914 |
|
---|
| 3915 | int
|
---|
| 3916 | main ()
|
---|
| 3917 | {
|
---|
| 3918 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 3919 | #ifndef __cplusplus
|
---|
| 3920 | /* Ultrix mips cc rejects this. */
|
---|
| 3921 | typedef int charset[2];
|
---|
| 3922 | const charset x;
|
---|
| 3923 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 3924 | char const *const *ccp;
|
---|
| 3925 | char **p;
|
---|
| 3926 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 3927 | struct point {int x, y;};
|
---|
| 3928 | static struct point const zero = {0,0};
|
---|
| 3929 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 3930 | It does not let you subtract one const X* pointer from another in
|
---|
| 3931 | an arm of an if-expression whose if-part is not a constant
|
---|
| 3932 | expression */
|
---|
| 3933 | const char *g = "string";
|
---|
| 3934 | ccp = &g + (g ? g-g : 0);
|
---|
| 3935 | /* HPUX 7.0 cc rejects these. */
|
---|
| 3936 | ++ccp;
|
---|
| 3937 | p = (char**) ccp;
|
---|
| 3938 | ccp = (char const *const *) p;
|
---|
| 3939 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 3940 | char *t;
|
---|
| 3941 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 3942 |
|
---|
| 3943 | *t++ = 0;
|
---|
| 3944 | }
|
---|
| 3945 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 3946 | int x[] = {25, 17};
|
---|
| 3947 | const int *foo = &x[0];
|
---|
| 3948 | ++foo;
|
---|
| 3949 | }
|
---|
| 3950 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 3951 | typedef const int *iptr;
|
---|
| 3952 | iptr p = 0;
|
---|
| 3953 | ++p;
|
---|
| 3954 | }
|
---|
| 3955 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 3956 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 3957 | struct s { int j; const int *ap[3]; };
|
---|
| 3958 | struct s *b; b->j = 5;
|
---|
| 3959 | }
|
---|
| 3960 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 3961 | const int foo = 10;
|
---|
| 3962 | }
|
---|
| 3963 | #endif
|
---|
| 3964 |
|
---|
| 3965 | ;
|
---|
| 3966 | return 0;
|
---|
| 3967 | }
|
---|
| 3968 | _ACEOF
|
---|
| 3969 | rm -f conftest.$ac_objext
|
---|
[7724] | 3970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3971 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 3972 | ac_status=$?
|
---|
[7724] | 3973 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3974 | rm -f conftest.er1
|
---|
| 3975 | cat conftest.err >&5
|
---|
| 3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3977 | (exit $ac_status); } &&
|
---|
[7724] | 3978 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3979 | || test ! -s conftest.err'
|
---|
| 3980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 3981 | (eval $ac_try) 2>&5
|
---|
| 3982 | ac_status=$?
|
---|
[7724] | 3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3984 | (exit $ac_status); }; } &&
|
---|
| 3985 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3987 | (eval $ac_try) 2>&5
|
---|
| 3988 | ac_status=$?
|
---|
| 3989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 3990 | (exit $ac_status); }; }; then
|
---|
| 3991 | ac_cv_c_const=yes
|
---|
| 3992 | else
|
---|
| 3993 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 3994 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3995 |
|
---|
[5951] | 3996 | ac_cv_c_const=no
|
---|
| 3997 | fi
|
---|
[7724] | 3998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 3999 | fi
|
---|
[7724] | 4000 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
[5951] | 4001 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
| 4002 | if test $ac_cv_c_const = no; then
|
---|
| 4003 |
|
---|
[7724] | 4004 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 4005 | #define const
|
---|
| 4006 | _ACEOF
|
---|
| 4007 |
|
---|
| 4008 | fi
|
---|
| 4009 |
|
---|
[7724] | 4010 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
[5951] | 4011 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4012 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4013 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4014 | else
|
---|
| 4015 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4016 | /* confdefs.h. */
|
---|
| 4017 | _ACEOF
|
---|
| 4018 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4019 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4020 | /* end confdefs.h. */
|
---|
[5951] | 4021 | $ac_includes_default
|
---|
| 4022 | int
|
---|
| 4023 | main ()
|
---|
| 4024 | {
|
---|
| 4025 | if ((off_t *) 0)
|
---|
| 4026 | return 0;
|
---|
| 4027 | if (sizeof (off_t))
|
---|
| 4028 | return 0;
|
---|
| 4029 | ;
|
---|
| 4030 | return 0;
|
---|
| 4031 | }
|
---|
| 4032 | _ACEOF
|
---|
| 4033 | rm -f conftest.$ac_objext
|
---|
[7724] | 4034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4035 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 4036 | ac_status=$?
|
---|
[7724] | 4037 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4038 | rm -f conftest.er1
|
---|
| 4039 | cat conftest.err >&5
|
---|
| 4040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4041 | (exit $ac_status); } &&
|
---|
[7724] | 4042 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4043 | || test ! -s conftest.err'
|
---|
| 4044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4045 | (eval $ac_try) 2>&5
|
---|
| 4046 | ac_status=$?
|
---|
[7724] | 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4048 | (exit $ac_status); }; } &&
|
---|
| 4049 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4051 | (eval $ac_try) 2>&5
|
---|
| 4052 | ac_status=$?
|
---|
| 4053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4054 | (exit $ac_status); }; }; then
|
---|
| 4055 | ac_cv_type_off_t=yes
|
---|
| 4056 | else
|
---|
| 4057 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4058 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4059 |
|
---|
[5951] | 4060 | ac_cv_type_off_t=no
|
---|
| 4061 | fi
|
---|
[7724] | 4062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 4063 | fi
|
---|
[7724] | 4064 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
[5951] | 4065 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4066 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4067 | :
|
---|
| 4068 | else
|
---|
| 4069 |
|
---|
[7724] | 4070 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 4071 | #define off_t long
|
---|
[7724] | 4072 | _ACEOF
|
---|
[5951] | 4073 |
|
---|
| 4074 | fi
|
---|
| 4075 |
|
---|
[7724] | 4076 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
[5951] | 4077 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4078 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4079 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4080 | else
|
---|
| 4081 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4082 | /* confdefs.h. */
|
---|
| 4083 | _ACEOF
|
---|
| 4084 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4085 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4086 | /* end confdefs.h. */
|
---|
[5951] | 4087 | $ac_includes_default
|
---|
| 4088 | int
|
---|
| 4089 | main ()
|
---|
| 4090 | {
|
---|
| 4091 | if ((size_t *) 0)
|
---|
| 4092 | return 0;
|
---|
| 4093 | if (sizeof (size_t))
|
---|
| 4094 | return 0;
|
---|
| 4095 | ;
|
---|
| 4096 | return 0;
|
---|
| 4097 | }
|
---|
| 4098 | _ACEOF
|
---|
| 4099 | rm -f conftest.$ac_objext
|
---|
[7724] | 4100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4101 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 4102 | ac_status=$?
|
---|
[7724] | 4103 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4104 | rm -f conftest.er1
|
---|
| 4105 | cat conftest.err >&5
|
---|
| 4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4107 | (exit $ac_status); } &&
|
---|
[7724] | 4108 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4109 | || test ! -s conftest.err'
|
---|
| 4110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4111 | (eval $ac_try) 2>&5
|
---|
| 4112 | ac_status=$?
|
---|
[7724] | 4113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4114 | (exit $ac_status); }; } &&
|
---|
| 4115 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4117 | (eval $ac_try) 2>&5
|
---|
| 4118 | ac_status=$?
|
---|
| 4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4120 | (exit $ac_status); }; }; then
|
---|
| 4121 | ac_cv_type_size_t=yes
|
---|
| 4122 | else
|
---|
| 4123 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4124 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4125 |
|
---|
[5951] | 4126 | ac_cv_type_size_t=no
|
---|
| 4127 | fi
|
---|
[7724] | 4128 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 4129 | fi
|
---|
[7724] | 4130 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
[5951] | 4131 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4132 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4133 | :
|
---|
| 4134 | else
|
---|
| 4135 |
|
---|
[7724] | 4136 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 4137 | #define size_t unsigned
|
---|
[7724] | 4138 | _ACEOF
|
---|
[5951] | 4139 |
|
---|
| 4140 | fi
|
---|
| 4141 |
|
---|
[7724] | 4142 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[5951] | 4143 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4144 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4145 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4146 | else
|
---|
| 4147 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4148 | /* confdefs.h. */
|
---|
| 4149 | _ACEOF
|
---|
| 4150 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4151 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4152 | /* end confdefs.h. */
|
---|
[5951] | 4153 | #include <sys/types.h>
|
---|
| 4154 | #include <sys/time.h>
|
---|
| 4155 | #include <time.h>
|
---|
| 4156 |
|
---|
| 4157 | int
|
---|
| 4158 | main ()
|
---|
| 4159 | {
|
---|
[7724] | 4160 | if ((struct tm *) 0)
|
---|
| 4161 | return 0;
|
---|
[5951] | 4162 | ;
|
---|
| 4163 | return 0;
|
---|
| 4164 | }
|
---|
| 4165 | _ACEOF
|
---|
| 4166 | rm -f conftest.$ac_objext
|
---|
[7724] | 4167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4168 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 4169 | ac_status=$?
|
---|
[7724] | 4170 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4171 | rm -f conftest.er1
|
---|
| 4172 | cat conftest.err >&5
|
---|
| 4173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4174 | (exit $ac_status); } &&
|
---|
[7724] | 4175 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4176 | || test ! -s conftest.err'
|
---|
| 4177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4178 | (eval $ac_try) 2>&5
|
---|
| 4179 | ac_status=$?
|
---|
[7724] | 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4181 | (exit $ac_status); }; } &&
|
---|
| 4182 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4184 | (eval $ac_try) 2>&5
|
---|
| 4185 | ac_status=$?
|
---|
| 4186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4187 | (exit $ac_status); }; }; then
|
---|
| 4188 | ac_cv_header_time=yes
|
---|
| 4189 | else
|
---|
| 4190 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4191 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4192 |
|
---|
[5951] | 4193 | ac_cv_header_time=no
|
---|
| 4194 | fi
|
---|
[7724] | 4195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 4196 | fi
|
---|
[7724] | 4197 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
[5951] | 4198 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4199 | if test $ac_cv_header_time = yes; then
|
---|
| 4200 |
|
---|
[7724] | 4201 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 4202 | #define TIME_WITH_SYS_TIME 1
|
---|
[7724] | 4203 | _ACEOF
|
---|
[5951] | 4204 |
|
---|
| 4205 | fi
|
---|
| 4206 |
|
---|
[7724] | 4207 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[5951] | 4208 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4209 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4210 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4211 | else
|
---|
| 4212 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4213 | /* confdefs.h. */
|
---|
| 4214 | _ACEOF
|
---|
| 4215 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4216 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4217 | /* end confdefs.h. */
|
---|
[5951] | 4218 | #include <sys/types.h>
|
---|
| 4219 | #include <time.h>
|
---|
| 4220 |
|
---|
| 4221 | int
|
---|
| 4222 | main ()
|
---|
| 4223 | {
|
---|
| 4224 | struct tm *tp; tp->tm_sec;
|
---|
| 4225 | ;
|
---|
| 4226 | return 0;
|
---|
| 4227 | }
|
---|
| 4228 | _ACEOF
|
---|
| 4229 | rm -f conftest.$ac_objext
|
---|
[7724] | 4230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4231 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 4232 | ac_status=$?
|
---|
[7724] | 4233 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4234 | rm -f conftest.er1
|
---|
| 4235 | cat conftest.err >&5
|
---|
| 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4237 | (exit $ac_status); } &&
|
---|
[7724] | 4238 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4239 | || test ! -s conftest.err'
|
---|
| 4240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4241 | (eval $ac_try) 2>&5
|
---|
| 4242 | ac_status=$?
|
---|
[7724] | 4243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4244 | (exit $ac_status); }; } &&
|
---|
| 4245 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4247 | (eval $ac_try) 2>&5
|
---|
| 4248 | ac_status=$?
|
---|
| 4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4250 | (exit $ac_status); }; }; then
|
---|
| 4251 | ac_cv_struct_tm=time.h
|
---|
| 4252 | else
|
---|
| 4253 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4254 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4255 |
|
---|
[5951] | 4256 | ac_cv_struct_tm=sys/time.h
|
---|
| 4257 | fi
|
---|
[7724] | 4258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 4259 | fi
|
---|
[7724] | 4260 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
[5951] | 4261 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4262 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 4263 |
|
---|
[7724] | 4264 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 4265 | #define TM_IN_SYS_TIME 1
|
---|
[7724] | 4266 | _ACEOF
|
---|
[5951] | 4267 |
|
---|
| 4268 | fi
|
---|
| 4269 |
|
---|
[7724] | 4270 |
|
---|
[5951] | 4271 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 4272 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4273 | /* confdefs.h. */
|
---|
| 4274 | _ACEOF
|
---|
| 4275 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4276 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4277 | /* end confdefs.h. */
|
---|
[5951] | 4278 | #include <stdio.h>
|
---|
| 4279 |
|
---|
| 4280 | int
|
---|
| 4281 | main ()
|
---|
| 4282 | {
|
---|
| 4283 | FILE *rubbish = popen("yes", "r");
|
---|
| 4284 | ;
|
---|
| 4285 | return 0;
|
---|
| 4286 | }
|
---|
| 4287 | _ACEOF
|
---|
| 4288 | rm -f conftest.$ac_objext
|
---|
[7724] | 4289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4290 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 4291 | ac_status=$?
|
---|
[7724] | 4292 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4293 | rm -f conftest.er1
|
---|
| 4294 | cat conftest.err >&5
|
---|
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4296 | (exit $ac_status); } &&
|
---|
[7724] | 4297 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4298 | || test ! -s conftest.err'
|
---|
| 4299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4300 | (eval $ac_try) 2>&5
|
---|
| 4301 | ac_status=$?
|
---|
[7724] | 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4303 | (exit $ac_status); }; } &&
|
---|
| 4304 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4306 | (eval $ac_try) 2>&5
|
---|
| 4307 | ac_status=$?
|
---|
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4309 | (exit $ac_status); }; }; then
|
---|
| 4310 | :
|
---|
| 4311 | else
|
---|
| 4312 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4313 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4314 |
|
---|
[5951] | 4315 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
| 4316 | fi
|
---|
[7724] | 4317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 4318 | fi
|
---|
| 4319 |
|
---|
[7724] | 4320 |
|
---|
| 4321 |
|
---|
| 4322 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
[5951] | 4323 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4324 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4325 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4326 | else
|
---|
| 4327 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4328 | LIBS="-lg $LIBS"
|
---|
| 4329 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4330 | /* confdefs.h. */
|
---|
| 4331 | _ACEOF
|
---|
| 4332 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4333 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4334 | /* end confdefs.h. */
|
---|
[5951] | 4335 |
|
---|
[7724] | 4336 |
|
---|
[5951] | 4337 | int
|
---|
| 4338 | main ()
|
---|
| 4339 | {
|
---|
| 4340 | main ();
|
---|
| 4341 | ;
|
---|
| 4342 | return 0;
|
---|
| 4343 | }
|
---|
| 4344 | _ACEOF
|
---|
| 4345 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 4346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4347 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 4348 | ac_status=$?
|
---|
[7724] | 4349 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4350 | rm -f conftest.er1
|
---|
| 4351 | cat conftest.err >&5
|
---|
| 4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4353 | (exit $ac_status); } &&
|
---|
[7724] | 4354 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4355 | || test ! -s conftest.err'
|
---|
| 4356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4357 | (eval $ac_try) 2>&5
|
---|
| 4358 | ac_status=$?
|
---|
[7724] | 4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4360 | (exit $ac_status); }; } &&
|
---|
| 4361 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4363 | (eval $ac_try) 2>&5
|
---|
| 4364 | ac_status=$?
|
---|
| 4365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4366 | (exit $ac_status); }; }; then
|
---|
| 4367 | ac_cv_lib_g_main=yes
|
---|
| 4368 | else
|
---|
| 4369 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4370 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4371 |
|
---|
[5951] | 4372 | ac_cv_lib_g_main=no
|
---|
| 4373 | fi
|
---|
[7724] | 4374 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4375 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 4376 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4377 | fi
|
---|
[7724] | 4378 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
[5951] | 4379 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4380 | if test $ac_cv_lib_g_main = yes; then
|
---|
[7724] | 4381 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 4382 | #define HAVE_LIBG 1
|
---|
[7724] | 4383 | _ACEOF
|
---|
[5951] | 4384 |
|
---|
| 4385 | LIBS="-lg $LIBS"
|
---|
| 4386 |
|
---|
| 4387 | fi
|
---|
| 4388 |
|
---|
[7724] | 4389 |
|
---|
| 4390 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
[5951] | 4391 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4392 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4394 | else
|
---|
| 4395 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4396 | LIBS="-lm $LIBS"
|
---|
| 4397 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4398 | /* confdefs.h. */
|
---|
| 4399 | _ACEOF
|
---|
| 4400 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4401 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4402 | /* end confdefs.h. */
|
---|
[5951] | 4403 |
|
---|
[7724] | 4404 |
|
---|
[5951] | 4405 | int
|
---|
| 4406 | main ()
|
---|
| 4407 | {
|
---|
| 4408 | main ();
|
---|
| 4409 | ;
|
---|
| 4410 | return 0;
|
---|
| 4411 | }
|
---|
| 4412 | _ACEOF
|
---|
| 4413 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 4414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4415 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 4416 | ac_status=$?
|
---|
[7724] | 4417 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4418 | rm -f conftest.er1
|
---|
| 4419 | cat conftest.err >&5
|
---|
| 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4421 | (exit $ac_status); } &&
|
---|
[7724] | 4422 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4423 | || test ! -s conftest.err'
|
---|
| 4424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4425 | (eval $ac_try) 2>&5
|
---|
| 4426 | ac_status=$?
|
---|
[7724] | 4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4428 | (exit $ac_status); }; } &&
|
---|
| 4429 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4431 | (eval $ac_try) 2>&5
|
---|
| 4432 | ac_status=$?
|
---|
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4434 | (exit $ac_status); }; }; then
|
---|
| 4435 | ac_cv_lib_m_main=yes
|
---|
| 4436 | else
|
---|
| 4437 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4438 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4439 |
|
---|
[5951] | 4440 | ac_cv_lib_m_main=no
|
---|
| 4441 | fi
|
---|
[7724] | 4442 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4443 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 4444 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4445 | fi
|
---|
[7724] | 4446 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
[5951] | 4447 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4448 | if test $ac_cv_lib_m_main = yes; then
|
---|
[7724] | 4449 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 4450 | #define HAVE_LIBM 1
|
---|
[7724] | 4451 | _ACEOF
|
---|
[5951] | 4452 |
|
---|
| 4453 | LIBS="-lm $LIBS"
|
---|
| 4454 |
|
---|
| 4455 | fi
|
---|
| 4456 |
|
---|
[7724] | 4457 |
|
---|
| 4458 | echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
|
---|
[5951] | 4459 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
|
---|
| 4460 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then
|
---|
| 4461 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4462 | else
|
---|
| 4463 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4464 | LIBS="-lstdc++ $LIBS"
|
---|
| 4465 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4466 | /* confdefs.h. */
|
---|
| 4467 | _ACEOF
|
---|
| 4468 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4469 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4470 | /* end confdefs.h. */
|
---|
[5951] | 4471 |
|
---|
[7724] | 4472 |
|
---|
[5951] | 4473 | int
|
---|
| 4474 | main ()
|
---|
| 4475 | {
|
---|
| 4476 | main ();
|
---|
| 4477 | ;
|
---|
| 4478 | return 0;
|
---|
| 4479 | }
|
---|
| 4480 | _ACEOF
|
---|
| 4481 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 4482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4483 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 4484 | ac_status=$?
|
---|
[7724] | 4485 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4486 | rm -f conftest.er1
|
---|
| 4487 | cat conftest.err >&5
|
---|
| 4488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4489 | (exit $ac_status); } &&
|
---|
[7724] | 4490 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4491 | || test ! -s conftest.err'
|
---|
| 4492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4493 | (eval $ac_try) 2>&5
|
---|
| 4494 | ac_status=$?
|
---|
[7724] | 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4496 | (exit $ac_status); }; } &&
|
---|
| 4497 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4499 | (eval $ac_try) 2>&5
|
---|
| 4500 | ac_status=$?
|
---|
| 4501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4502 | (exit $ac_status); }; }; then
|
---|
| 4503 | ac_cv_lib_stdcpp_main=yes
|
---|
| 4504 | else
|
---|
| 4505 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4506 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4507 |
|
---|
[5951] | 4508 | ac_cv_lib_stdcpp_main=no
|
---|
| 4509 | fi
|
---|
[7724] | 4510 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4511 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 4512 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4513 | fi
|
---|
[7724] | 4514 | echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
[5951] | 4515 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
|
---|
| 4516 | if test $ac_cv_lib_stdcpp_main = yes; then
|
---|
[7724] | 4517 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 4518 | #define HAVE_LIBSTDC__ 1
|
---|
[7724] | 4519 | _ACEOF
|
---|
[5951] | 4520 |
|
---|
| 4521 | LIBS="-lstdc++ $LIBS"
|
---|
| 4522 |
|
---|
| 4523 | fi
|
---|
| 4524 |
|
---|
[7724] | 4525 |
|
---|
| 4526 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
[5951] | 4527 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4528 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4529 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4530 | else
|
---|
| 4531 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4532 | LIBS="-lcrypt $LIBS"
|
---|
| 4533 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4534 | /* confdefs.h. */
|
---|
| 4535 | _ACEOF
|
---|
| 4536 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4537 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4538 | /* end confdefs.h. */
|
---|
[5951] | 4539 |
|
---|
[7724] | 4540 |
|
---|
[5951] | 4541 | int
|
---|
| 4542 | main ()
|
---|
| 4543 | {
|
---|
| 4544 | main ();
|
---|
| 4545 | ;
|
---|
| 4546 | return 0;
|
---|
| 4547 | }
|
---|
| 4548 | _ACEOF
|
---|
| 4549 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 4550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4551 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 4552 | ac_status=$?
|
---|
[7724] | 4553 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4554 | rm -f conftest.er1
|
---|
| 4555 | cat conftest.err >&5
|
---|
| 4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4557 | (exit $ac_status); } &&
|
---|
[7724] | 4558 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4559 | || test ! -s conftest.err'
|
---|
| 4560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4561 | (eval $ac_try) 2>&5
|
---|
| 4562 | ac_status=$?
|
---|
[7724] | 4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4564 | (exit $ac_status); }; } &&
|
---|
| 4565 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4567 | (eval $ac_try) 2>&5
|
---|
| 4568 | ac_status=$?
|
---|
| 4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4570 | (exit $ac_status); }; }; then
|
---|
| 4571 | ac_cv_lib_crypt_main=yes
|
---|
| 4572 | else
|
---|
| 4573 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4574 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4575 |
|
---|
[5951] | 4576 | ac_cv_lib_crypt_main=no
|
---|
| 4577 | fi
|
---|
[7724] | 4578 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4579 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 4580 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4581 | fi
|
---|
[7724] | 4582 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
[5951] | 4583 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4584 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[7724] | 4585 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 4586 | #define HAVE_LIBCRYPT 1
|
---|
[7724] | 4587 | _ACEOF
|
---|
[5951] | 4588 |
|
---|
| 4589 | LIBS="-lcrypt $LIBS"
|
---|
| 4590 |
|
---|
| 4591 | fi
|
---|
| 4592 |
|
---|
[7724] | 4593 |
|
---|
| 4594 |
|
---|
| 4595 |
|
---|
| 4596 |
|
---|
| 4597 |
|
---|
| 4598 |
|
---|
[5951] | 4599 | ac_header_dirent=no
|
---|
| 4600 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[7724] | 4601 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4602 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
[5951] | 4603 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
[7724] | 4604 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[5951] | 4605 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4606 | else
|
---|
| 4607 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4608 | /* confdefs.h. */
|
---|
| 4609 | _ACEOF
|
---|
| 4610 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4611 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4612 | /* end confdefs.h. */
|
---|
[5951] | 4613 | #include <sys/types.h>
|
---|
| 4614 | #include <$ac_hdr>
|
---|
| 4615 |
|
---|
| 4616 | int
|
---|
| 4617 | main ()
|
---|
| 4618 | {
|
---|
[7724] | 4619 | if ((DIR *) 0)
|
---|
| 4620 | return 0;
|
---|
[5951] | 4621 | ;
|
---|
| 4622 | return 0;
|
---|
| 4623 | }
|
---|
| 4624 | _ACEOF
|
---|
| 4625 | rm -f conftest.$ac_objext
|
---|
[7724] | 4626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4627 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 4628 | ac_status=$?
|
---|
[7724] | 4629 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4630 | rm -f conftest.er1
|
---|
| 4631 | cat conftest.err >&5
|
---|
| 4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4633 | (exit $ac_status); } &&
|
---|
[7724] | 4634 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4635 | || test ! -s conftest.err'
|
---|
| 4636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4637 | (eval $ac_try) 2>&5
|
---|
| 4638 | ac_status=$?
|
---|
[7724] | 4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4640 | (exit $ac_status); }; } &&
|
---|
| 4641 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4643 | (eval $ac_try) 2>&5
|
---|
| 4644 | ac_status=$?
|
---|
| 4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4646 | (exit $ac_status); }; }; then
|
---|
[7724] | 4647 | eval "$as_ac_Header=yes"
|
---|
[5951] | 4648 | else
|
---|
| 4649 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4650 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4651 |
|
---|
| 4652 | eval "$as_ac_Header=no"
|
---|
[5951] | 4653 | fi
|
---|
[7724] | 4654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 4655 | fi
|
---|
[7724] | 4656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4658 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4659 | cat >>confdefs.h <<_ACEOF
|
---|
| 4660 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4661 | _ACEOF
|
---|
[5951] | 4662 |
|
---|
| 4663 | ac_header_dirent=$ac_hdr; break
|
---|
| 4664 | fi
|
---|
| 4665 |
|
---|
| 4666 | done
|
---|
| 4667 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4668 | if test $ac_header_dirent = dirent.h; then
|
---|
[7724] | 4669 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4670 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4671 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[5951] | 4672 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4673 | else
|
---|
[7724] | 4674 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4675 | ac_cv_search_opendir=no
|
---|
[5951] | 4676 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4677 | /* confdefs.h. */
|
---|
| 4678 | _ACEOF
|
---|
| 4679 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4680 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4681 | /* end confdefs.h. */
|
---|
[5951] | 4682 |
|
---|
| 4683 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4684 | #ifdef __cplusplus
|
---|
| 4685 | extern "C"
|
---|
| 4686 | #endif
|
---|
| 4687 | /* We use char because int might match the return type of a gcc2
|
---|
| 4688 | builtin and then its argument prototype would still apply. */
|
---|
| 4689 | char opendir ();
|
---|
| 4690 | int
|
---|
| 4691 | main ()
|
---|
| 4692 | {
|
---|
| 4693 | opendir ();
|
---|
| 4694 | ;
|
---|
| 4695 | return 0;
|
---|
| 4696 | }
|
---|
| 4697 | _ACEOF
|
---|
| 4698 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 4699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4700 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 4701 | ac_status=$?
|
---|
[7724] | 4702 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4703 | rm -f conftest.er1
|
---|
| 4704 | cat conftest.err >&5
|
---|
| 4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4706 | (exit $ac_status); } &&
|
---|
[7724] | 4707 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4708 | || test ! -s conftest.err'
|
---|
| 4709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4710 | (eval $ac_try) 2>&5
|
---|
| 4711 | ac_status=$?
|
---|
[7724] | 4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4713 | (exit $ac_status); }; } &&
|
---|
| 4714 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4716 | (eval $ac_try) 2>&5
|
---|
| 4717 | ac_status=$?
|
---|
| 4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4719 | (exit $ac_status); }; }; then
|
---|
[7724] | 4720 | ac_cv_search_opendir="none required"
|
---|
[5951] | 4721 | else
|
---|
| 4722 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4723 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4724 |
|
---|
[5951] | 4725 | fi
|
---|
[7724] | 4726 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4727 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4728 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4729 | for ac_lib in dir; do
|
---|
| 4730 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4731 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4732 | /* confdefs.h. */
|
---|
| 4733 | _ACEOF
|
---|
| 4734 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4735 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4736 | /* end confdefs.h. */
|
---|
| 4737 |
|
---|
| 4738 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4739 | #ifdef __cplusplus
|
---|
| 4740 | extern "C"
|
---|
| 4741 | #endif
|
---|
| 4742 | /* We use char because int might match the return type of a gcc2
|
---|
| 4743 | builtin and then its argument prototype would still apply. */
|
---|
| 4744 | char opendir ();
|
---|
| 4745 | int
|
---|
| 4746 | main ()
|
---|
| 4747 | {
|
---|
| 4748 | opendir ();
|
---|
| 4749 | ;
|
---|
| 4750 | return 0;
|
---|
| 4751 | }
|
---|
| 4752 | _ACEOF
|
---|
| 4753 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4755 | (eval $ac_link) 2>conftest.er1
|
---|
| 4756 | ac_status=$?
|
---|
| 4757 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4758 | rm -f conftest.er1
|
---|
| 4759 | cat conftest.err >&5
|
---|
| 4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4761 | (exit $ac_status); } &&
|
---|
| 4762 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4763 | || test ! -s conftest.err'
|
---|
| 4764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4765 | (eval $ac_try) 2>&5
|
---|
| 4766 | ac_status=$?
|
---|
| 4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4768 | (exit $ac_status); }; } &&
|
---|
| 4769 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4771 | (eval $ac_try) 2>&5
|
---|
| 4772 | ac_status=$?
|
---|
| 4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4774 | (exit $ac_status); }; }; then
|
---|
| 4775 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4776 | break
|
---|
| 4777 | else
|
---|
| 4778 | echo "$as_me: failed program was:" >&5
|
---|
| 4779 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4780 |
|
---|
[5951] | 4781 | fi
|
---|
[7724] | 4782 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4783 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4784 | done
|
---|
[5951] | 4785 | fi
|
---|
[7724] | 4786 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4787 | fi
|
---|
| 4788 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4789 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4790 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4791 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[5951] | 4792 |
|
---|
[7724] | 4793 | fi
|
---|
| 4794 |
|
---|
[5951] | 4795 | else
|
---|
[7724] | 4796 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4797 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4798 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[5951] | 4799 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4800 | else
|
---|
[7724] | 4801 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4802 | ac_cv_search_opendir=no
|
---|
[5951] | 4803 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4804 | /* confdefs.h. */
|
---|
| 4805 | _ACEOF
|
---|
| 4806 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4807 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4808 | /* end confdefs.h. */
|
---|
[5951] | 4809 |
|
---|
| 4810 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4811 | #ifdef __cplusplus
|
---|
| 4812 | extern "C"
|
---|
| 4813 | #endif
|
---|
| 4814 | /* We use char because int might match the return type of a gcc2
|
---|
| 4815 | builtin and then its argument prototype would still apply. */
|
---|
| 4816 | char opendir ();
|
---|
| 4817 | int
|
---|
| 4818 | main ()
|
---|
| 4819 | {
|
---|
| 4820 | opendir ();
|
---|
| 4821 | ;
|
---|
| 4822 | return 0;
|
---|
| 4823 | }
|
---|
| 4824 | _ACEOF
|
---|
| 4825 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 4826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4827 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 4828 | ac_status=$?
|
---|
[7724] | 4829 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4830 | rm -f conftest.er1
|
---|
| 4831 | cat conftest.err >&5
|
---|
| 4832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4833 | (exit $ac_status); } &&
|
---|
[7724] | 4834 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4835 | || test ! -s conftest.err'
|
---|
| 4836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 4837 | (eval $ac_try) 2>&5
|
---|
| 4838 | ac_status=$?
|
---|
[7724] | 4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4840 | (exit $ac_status); }; } &&
|
---|
| 4841 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4843 | (eval $ac_try) 2>&5
|
---|
| 4844 | ac_status=$?
|
---|
| 4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 4846 | (exit $ac_status); }; }; then
|
---|
[7724] | 4847 | ac_cv_search_opendir="none required"
|
---|
[5951] | 4848 | else
|
---|
| 4849 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4850 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4851 |
|
---|
[5951] | 4852 | fi
|
---|
[7724] | 4853 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4854 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4855 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4856 | for ac_lib in x; do
|
---|
| 4857 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4858 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4859 | /* confdefs.h. */
|
---|
| 4860 | _ACEOF
|
---|
| 4861 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4862 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4863 | /* end confdefs.h. */
|
---|
| 4864 |
|
---|
| 4865 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4866 | #ifdef __cplusplus
|
---|
| 4867 | extern "C"
|
---|
| 4868 | #endif
|
---|
| 4869 | /* We use char because int might match the return type of a gcc2
|
---|
| 4870 | builtin and then its argument prototype would still apply. */
|
---|
| 4871 | char opendir ();
|
---|
| 4872 | int
|
---|
| 4873 | main ()
|
---|
| 4874 | {
|
---|
| 4875 | opendir ();
|
---|
| 4876 | ;
|
---|
| 4877 | return 0;
|
---|
| 4878 | }
|
---|
| 4879 | _ACEOF
|
---|
| 4880 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4882 | (eval $ac_link) 2>conftest.er1
|
---|
| 4883 | ac_status=$?
|
---|
| 4884 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4885 | rm -f conftest.er1
|
---|
| 4886 | cat conftest.err >&5
|
---|
| 4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4888 | (exit $ac_status); } &&
|
---|
| 4889 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4890 | || test ! -s conftest.err'
|
---|
| 4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4892 | (eval $ac_try) 2>&5
|
---|
| 4893 | ac_status=$?
|
---|
| 4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4895 | (exit $ac_status); }; } &&
|
---|
| 4896 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4898 | (eval $ac_try) 2>&5
|
---|
| 4899 | ac_status=$?
|
---|
| 4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4901 | (exit $ac_status); }; }; then
|
---|
| 4902 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4903 | break
|
---|
| 4904 | else
|
---|
| 4905 | echo "$as_me: failed program was:" >&5
|
---|
| 4906 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4907 |
|
---|
[5951] | 4908 | fi
|
---|
[7724] | 4909 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4910 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4911 | done
|
---|
[5951] | 4912 | fi
|
---|
[7724] | 4913 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4914 | fi
|
---|
| 4915 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4916 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4917 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4918 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[5951] | 4919 |
|
---|
| 4920 | fi
|
---|
| 4921 |
|
---|
[7724] | 4922 | fi
|
---|
| 4923 |
|
---|
| 4924 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
[5951] | 4925 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4926 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4927 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4928 | else
|
---|
| 4929 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4930 | /* confdefs.h. */
|
---|
| 4931 | _ACEOF
|
---|
| 4932 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4933 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4934 | /* end confdefs.h. */
|
---|
[5951] | 4935 | #include <stdlib.h>
|
---|
| 4936 | #include <stdarg.h>
|
---|
| 4937 | #include <string.h>
|
---|
| 4938 | #include <float.h>
|
---|
| 4939 |
|
---|
[7724] | 4940 | int
|
---|
| 4941 | main ()
|
---|
| 4942 | {
|
---|
| 4943 |
|
---|
| 4944 | ;
|
---|
| 4945 | return 0;
|
---|
| 4946 | }
|
---|
[5951] | 4947 | _ACEOF
|
---|
[7724] | 4948 | rm -f conftest.$ac_objext
|
---|
| 4949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4950 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 4951 | ac_status=$?
|
---|
[7724] | 4952 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[5951] | 4953 | rm -f conftest.er1
|
---|
| 4954 | cat conftest.err >&5
|
---|
[7724] | 4955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4956 | (exit $ac_status); } &&
|
---|
| 4957 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4958 | || test ! -s conftest.err'
|
---|
| 4959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4960 | (eval $ac_try) 2>&5
|
---|
| 4961 | ac_status=$?
|
---|
| 4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4963 | (exit $ac_status); }; } &&
|
---|
| 4964 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4966 | (eval $ac_try) 2>&5
|
---|
| 4967 | ac_status=$?
|
---|
| 4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4969 | (exit $ac_status); }; }; then
|
---|
[5951] | 4970 | ac_cv_header_stdc=yes
|
---|
| 4971 | else
|
---|
| 4972 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 4973 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4974 |
|
---|
| 4975 | ac_cv_header_stdc=no
|
---|
[5951] | 4976 | fi
|
---|
[7724] | 4977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 4978 |
|
---|
| 4979 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4980 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 4981 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 4982 | /* confdefs.h. */
|
---|
| 4983 | _ACEOF
|
---|
| 4984 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4985 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4986 | /* end confdefs.h. */
|
---|
[5951] | 4987 | #include <string.h>
|
---|
| 4988 |
|
---|
| 4989 | _ACEOF
|
---|
| 4990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 4991 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[5951] | 4992 | :
|
---|
| 4993 | else
|
---|
| 4994 | ac_cv_header_stdc=no
|
---|
| 4995 | fi
|
---|
| 4996 | rm -f conftest*
|
---|
| 4997 |
|
---|
| 4998 | fi
|
---|
| 4999 |
|
---|
| 5000 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5001 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 5002 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5003 | /* confdefs.h. */
|
---|
| 5004 | _ACEOF
|
---|
| 5005 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5006 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5007 | /* end confdefs.h. */
|
---|
[5951] | 5008 | #include <stdlib.h>
|
---|
| 5009 |
|
---|
| 5010 | _ACEOF
|
---|
| 5011 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 5012 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[5951] | 5013 | :
|
---|
| 5014 | else
|
---|
| 5015 | ac_cv_header_stdc=no
|
---|
| 5016 | fi
|
---|
| 5017 | rm -f conftest*
|
---|
| 5018 |
|
---|
| 5019 | fi
|
---|
| 5020 |
|
---|
| 5021 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5022 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 5023 | if test "$cross_compiling" = yes; then
|
---|
| 5024 | :
|
---|
| 5025 | else
|
---|
| 5026 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5027 | /* confdefs.h. */
|
---|
| 5028 | _ACEOF
|
---|
| 5029 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5030 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5031 | /* end confdefs.h. */
|
---|
[5951] | 5032 | #include <ctype.h>
|
---|
| 5033 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5034 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5035 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5036 | #else
|
---|
[7724] | 5037 | # define ISLOWER(c) \
|
---|
| 5038 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5039 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5040 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[5951] | 5041 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5042 | #endif
|
---|
| 5043 |
|
---|
| 5044 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5045 | int
|
---|
| 5046 | main ()
|
---|
| 5047 | {
|
---|
| 5048 | int i;
|
---|
| 5049 | for (i = 0; i < 256; i++)
|
---|
| 5050 | if (XOR (islower (i), ISLOWER (i))
|
---|
[7724] | 5051 | || toupper (i) != TOUPPER (i))
|
---|
[5951] | 5052 | exit(2);
|
---|
| 5053 | exit (0);
|
---|
| 5054 | }
|
---|
| 5055 | _ACEOF
|
---|
| 5056 | rm -f conftest$ac_exeext
|
---|
[7724] | 5057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[5951] | 5058 | (eval $ac_link) 2>&5
|
---|
| 5059 | ac_status=$?
|
---|
[7724] | 5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[7724] | 5062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5063 | (eval $ac_try) 2>&5
|
---|
| 5064 | ac_status=$?
|
---|
[7724] | 5065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5066 | (exit $ac_status); }; }; then
|
---|
| 5067 | :
|
---|
| 5068 | else
|
---|
| 5069 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5070 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5071 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5072 |
|
---|
| 5073 | ( exit $ac_status )
|
---|
[5951] | 5074 | ac_cv_header_stdc=no
|
---|
| 5075 | fi
|
---|
[7724] | 5076 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 5077 | fi
|
---|
| 5078 | fi
|
---|
| 5079 | fi
|
---|
[7724] | 5080 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
[5951] | 5081 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5082 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5083 |
|
---|
[7724] | 5084 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5085 | #define STDC_HEADERS 1
|
---|
[7724] | 5086 | _ACEOF
|
---|
[5951] | 5087 |
|
---|
| 5088 | fi
|
---|
| 5089 |
|
---|
[7724] | 5090 |
|
---|
| 5091 |
|
---|
| 5092 |
|
---|
| 5093 |
|
---|
| 5094 |
|
---|
| 5095 |
|
---|
| 5096 |
|
---|
| 5097 |
|
---|
[5951] | 5098 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
| 5099 | do
|
---|
[7724] | 5100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5102 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
[5951] | 5103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
[7724] | 5104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[5951] | 5105 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[7724] | 5106 | fi
|
---|
| 5107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[5951] | 5109 | else
|
---|
[7724] | 5110 | # Is the header compilable?
|
---|
| 5111 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5112 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5113 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5114 | /* confdefs.h. */
|
---|
| 5115 | _ACEOF
|
---|
| 5116 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5117 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5118 | /* end confdefs.h. */
|
---|
| 5119 | $ac_includes_default
|
---|
[5951] | 5120 | #include <$ac_header>
|
---|
| 5121 | _ACEOF
|
---|
[7724] | 5122 | rm -f conftest.$ac_objext
|
---|
| 5123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5124 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5125 | ac_status=$?
|
---|
| 5126 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5127 | rm -f conftest.er1
|
---|
| 5128 | cat conftest.err >&5
|
---|
| 5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5130 | (exit $ac_status); } &&
|
---|
| 5131 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5132 | || test ! -s conftest.err'
|
---|
| 5133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5134 | (eval $ac_try) 2>&5
|
---|
| 5135 | ac_status=$?
|
---|
| 5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5137 | (exit $ac_status); }; } &&
|
---|
| 5138 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5140 | (eval $ac_try) 2>&5
|
---|
| 5141 | ac_status=$?
|
---|
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5143 | (exit $ac_status); }; }; then
|
---|
| 5144 | ac_header_compiler=yes
|
---|
| 5145 | else
|
---|
| 5146 | echo "$as_me: failed program was:" >&5
|
---|
| 5147 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5148 |
|
---|
| 5149 | ac_header_compiler=no
|
---|
| 5150 | fi
|
---|
| 5151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5152 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5153 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5154 |
|
---|
| 5155 | # Is the header present?
|
---|
| 5156 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5157 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5158 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5159 | /* confdefs.h. */
|
---|
| 5160 | _ACEOF
|
---|
| 5161 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5162 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5163 | /* end confdefs.h. */
|
---|
| 5164 | #include <$ac_header>
|
---|
| 5165 | _ACEOF
|
---|
| 5166 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[5951] | 5167 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5168 | ac_status=$?
|
---|
[7724] | 5169 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[5951] | 5170 | rm -f conftest.er1
|
---|
| 5171 | cat conftest.err >&5
|
---|
[7724] | 5172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5173 | (exit $ac_status); } >/dev/null; then
|
---|
| 5174 | if test -s conftest.err; then
|
---|
| 5175 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[7724] | 5176 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[5951] | 5177 | else
|
---|
| 5178 | ac_cpp_err=
|
---|
| 5179 | fi
|
---|
| 5180 | else
|
---|
| 5181 | ac_cpp_err=yes
|
---|
| 5182 | fi
|
---|
| 5183 | if test -z "$ac_cpp_err"; then
|
---|
[7724] | 5184 | ac_header_preproc=yes
|
---|
[5951] | 5185 | else
|
---|
| 5186 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5187 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5188 |
|
---|
| 5189 | ac_header_preproc=no
|
---|
[5951] | 5190 | fi
|
---|
| 5191 | rm -f conftest.err conftest.$ac_ext
|
---|
[7724] | 5192 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5193 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5194 |
|
---|
| 5195 | # So? What about this header?
|
---|
| 5196 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5197 | yes:no: )
|
---|
| 5198 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5199 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5201 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5202 | ac_header_preproc=yes
|
---|
| 5203 | ;;
|
---|
| 5204 | no:yes:* )
|
---|
| 5205 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5206 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5207 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5208 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5209 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5210 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5211 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5212 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5213 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5214 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5215 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5216 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5217 | (
|
---|
| 5218 | cat <<\_ASBOX
|
---|
| 5219 | ## ------------------------------------------ ##
|
---|
| 5220 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5221 | ## ------------------------------------------ ##
|
---|
| 5222 | _ASBOX
|
---|
| 5223 | ) |
|
---|
| 5224 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5225 | ;;
|
---|
| 5226 | esac
|
---|
| 5227 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5228 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5230 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5231 | else
|
---|
| 5232 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
[5951] | 5233 | fi
|
---|
[7724] | 5234 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5235 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[5951] | 5236 |
|
---|
| 5237 | fi
|
---|
[7724] | 5238 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5239 | cat >>confdefs.h <<_ACEOF
|
---|
| 5240 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5241 | _ACEOF
|
---|
| 5242 |
|
---|
| 5243 | fi
|
---|
| 5244 |
|
---|
[5951] | 5245 | done
|
---|
| 5246 |
|
---|
| 5247 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5248 | /* confdefs.h. */
|
---|
| 5249 | _ACEOF
|
---|
| 5250 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5251 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5252 | /* end confdefs.h. */
|
---|
[5951] | 5253 | #include <stdio.h>
|
---|
| 5254 |
|
---|
| 5255 | _ACEOF
|
---|
| 5256 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 5257 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5258 |
|
---|
| 5259 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5260 | #define HAVE_FREAD_DECL 1
|
---|
[7724] | 5261 | _ACEOF
|
---|
[5951] | 5262 |
|
---|
| 5263 | fi
|
---|
| 5264 | rm -f conftest*
|
---|
| 5265 |
|
---|
| 5266 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5267 | /* confdefs.h. */
|
---|
| 5268 | _ACEOF
|
---|
| 5269 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5270 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5271 | /* end confdefs.h. */
|
---|
[5951] | 5272 | #include <stdio.h>
|
---|
| 5273 |
|
---|
| 5274 | _ACEOF
|
---|
| 5275 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 5276 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5277 |
|
---|
| 5278 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5279 | #define HAVE_FGETC_DECL 1
|
---|
[7724] | 5280 | _ACEOF
|
---|
[5951] | 5281 |
|
---|
| 5282 | fi
|
---|
| 5283 | rm -f conftest*
|
---|
| 5284 |
|
---|
| 5285 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5286 | /* confdefs.h. */
|
---|
| 5287 | _ACEOF
|
---|
| 5288 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5289 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5290 | /* end confdefs.h. */
|
---|
[5951] | 5291 | #include <sys/procfs.h>
|
---|
| 5292 |
|
---|
| 5293 | _ACEOF
|
---|
| 5294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 5295 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5296 |
|
---|
| 5297 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5298 | #define HAVE_PR_BRKSIZE 1
|
---|
[7724] | 5299 | _ACEOF
|
---|
[5951] | 5300 |
|
---|
| 5301 | fi
|
---|
| 5302 | rm -f conftest*
|
---|
| 5303 |
|
---|
[7724] | 5304 |
|
---|
[5951] | 5305 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5306 | # for constant arguments. Useless!
|
---|
[7724] | 5307 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
[5951] | 5308 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5309 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5310 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5311 | else
|
---|
| 5312 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5313 | /* confdefs.h. */
|
---|
| 5314 | _ACEOF
|
---|
| 5315 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5316 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5317 | /* end confdefs.h. */
|
---|
[5951] | 5318 | #include <alloca.h>
|
---|
| 5319 | int
|
---|
| 5320 | main ()
|
---|
| 5321 | {
|
---|
| 5322 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5323 | ;
|
---|
| 5324 | return 0;
|
---|
| 5325 | }
|
---|
| 5326 | _ACEOF
|
---|
| 5327 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 5328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5329 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 5330 | ac_status=$?
|
---|
[7724] | 5331 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5332 | rm -f conftest.er1
|
---|
| 5333 | cat conftest.err >&5
|
---|
| 5334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5335 | (exit $ac_status); } &&
|
---|
[7724] | 5336 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5337 | || test ! -s conftest.err'
|
---|
| 5338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5339 | (eval $ac_try) 2>&5
|
---|
| 5340 | ac_status=$?
|
---|
[7724] | 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5342 | (exit $ac_status); }; } &&
|
---|
| 5343 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5345 | (eval $ac_try) 2>&5
|
---|
| 5346 | ac_status=$?
|
---|
| 5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5348 | (exit $ac_status); }; }; then
|
---|
| 5349 | ac_cv_working_alloca_h=yes
|
---|
| 5350 | else
|
---|
| 5351 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5352 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5353 |
|
---|
[5951] | 5354 | ac_cv_working_alloca_h=no
|
---|
| 5355 | fi
|
---|
[7724] | 5356 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5357 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 5358 | fi
|
---|
[7724] | 5359 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
[5951] | 5360 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5361 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5362 |
|
---|
[7724] | 5363 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5364 | #define HAVE_ALLOCA_H 1
|
---|
[7724] | 5365 | _ACEOF
|
---|
[5951] | 5366 |
|
---|
| 5367 | fi
|
---|
| 5368 |
|
---|
[7724] | 5369 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
[5951] | 5370 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5371 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5372 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5373 | else
|
---|
| 5374 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5375 | /* confdefs.h. */
|
---|
| 5376 | _ACEOF
|
---|
| 5377 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5378 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5379 | /* end confdefs.h. */
|
---|
[5951] | 5380 | #ifdef __GNUC__
|
---|
| 5381 | # define alloca __builtin_alloca
|
---|
| 5382 | #else
|
---|
| 5383 | # ifdef _MSC_VER
|
---|
| 5384 | # include <malloc.h>
|
---|
| 5385 | # define alloca _alloca
|
---|
| 5386 | # else
|
---|
| 5387 | # if HAVE_ALLOCA_H
|
---|
| 5388 | # include <alloca.h>
|
---|
| 5389 | # else
|
---|
| 5390 | # ifdef _AIX
|
---|
| 5391 | #pragma alloca
|
---|
| 5392 | # else
|
---|
| 5393 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5394 | char *alloca ();
|
---|
| 5395 | # endif
|
---|
| 5396 | # endif
|
---|
| 5397 | # endif
|
---|
| 5398 | # endif
|
---|
| 5399 | #endif
|
---|
| 5400 |
|
---|
| 5401 | int
|
---|
| 5402 | main ()
|
---|
| 5403 | {
|
---|
| 5404 | char *p = (char *) alloca (1);
|
---|
| 5405 | ;
|
---|
| 5406 | return 0;
|
---|
| 5407 | }
|
---|
| 5408 | _ACEOF
|
---|
| 5409 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 5410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5411 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 5412 | ac_status=$?
|
---|
[7724] | 5413 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5414 | rm -f conftest.er1
|
---|
| 5415 | cat conftest.err >&5
|
---|
| 5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5417 | (exit $ac_status); } &&
|
---|
[7724] | 5418 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5419 | || test ! -s conftest.err'
|
---|
| 5420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5421 | (eval $ac_try) 2>&5
|
---|
| 5422 | ac_status=$?
|
---|
[7724] | 5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5424 | (exit $ac_status); }; } &&
|
---|
| 5425 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5427 | (eval $ac_try) 2>&5
|
---|
| 5428 | ac_status=$?
|
---|
| 5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5430 | (exit $ac_status); }; }; then
|
---|
| 5431 | ac_cv_func_alloca_works=yes
|
---|
| 5432 | else
|
---|
| 5433 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5434 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5435 |
|
---|
[5951] | 5436 | ac_cv_func_alloca_works=no
|
---|
| 5437 | fi
|
---|
[7724] | 5438 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5439 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 5440 | fi
|
---|
[7724] | 5441 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
[5951] | 5442 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
| 5443 |
|
---|
| 5444 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5445 |
|
---|
[7724] | 5446 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5447 | #define HAVE_ALLOCA 1
|
---|
[7724] | 5448 | _ACEOF
|
---|
[5951] | 5449 |
|
---|
| 5450 | else
|
---|
| 5451 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5452 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5453 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5454 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5455 |
|
---|
| 5456 | ALLOCA=alloca.$ac_objext
|
---|
| 5457 |
|
---|
[7724] | 5458 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5459 | #define C_ALLOCA 1
|
---|
[7724] | 5460 | _ACEOF
|
---|
[5951] | 5461 |
|
---|
[7724] | 5462 |
|
---|
| 5463 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[5951] | 5464 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5465 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5466 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5467 | else
|
---|
| 5468 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5469 | /* confdefs.h. */
|
---|
| 5470 | _ACEOF
|
---|
| 5471 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5472 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5473 | /* end confdefs.h. */
|
---|
[5951] | 5474 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5475 | webecray
|
---|
| 5476 | #else
|
---|
| 5477 | wenotbecray
|
---|
| 5478 | #endif
|
---|
| 5479 |
|
---|
| 5480 | _ACEOF
|
---|
| 5481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 5482 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[5951] | 5483 | ac_cv_os_cray=yes
|
---|
| 5484 | else
|
---|
| 5485 | ac_cv_os_cray=no
|
---|
| 5486 | fi
|
---|
| 5487 | rm -f conftest*
|
---|
| 5488 |
|
---|
| 5489 | fi
|
---|
[7724] | 5490 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
[5951] | 5491 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
| 5492 | if test $ac_cv_os_cray = yes; then
|
---|
| 5493 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[7724] | 5494 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5495 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[5951] | 5496 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[7724] | 5497 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[5951] | 5498 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5499 | else
|
---|
| 5500 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5501 | /* confdefs.h. */
|
---|
| 5502 | _ACEOF
|
---|
| 5503 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5504 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5505 | /* end confdefs.h. */
|
---|
| 5506 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5507 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5508 | #define $ac_func innocuous_$ac_func
|
---|
| 5509 |
|
---|
[5951] | 5510 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[7724] | 5511 | which can conflict with char $ac_func (); below.
|
---|
| 5512 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5513 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5514 |
|
---|
| 5515 | #ifdef __STDC__
|
---|
| 5516 | # include <limits.h>
|
---|
| 5517 | #else
|
---|
| 5518 | # include <assert.h>
|
---|
| 5519 | #endif
|
---|
| 5520 |
|
---|
| 5521 | #undef $ac_func
|
---|
| 5522 |
|
---|
[5951] | 5523 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5524 | #ifdef __cplusplus
|
---|
| 5525 | extern "C"
|
---|
[7724] | 5526 | {
|
---|
[5951] | 5527 | #endif
|
---|
| 5528 | /* We use char because int might match the return type of a gcc2
|
---|
| 5529 | builtin and then its argument prototype would still apply. */
|
---|
| 5530 | char $ac_func ();
|
---|
| 5531 | /* The GNU C library defines this for functions which it implements
|
---|
| 5532 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5533 | something starting with __ and the normal name is an alias. */
|
---|
| 5534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5535 | choke me
|
---|
| 5536 | #else
|
---|
[7724] | 5537 | char (*f) () = $ac_func;
|
---|
[5951] | 5538 | #endif
|
---|
[7724] | 5539 | #ifdef __cplusplus
|
---|
| 5540 | }
|
---|
| 5541 | #endif
|
---|
[5951] | 5542 |
|
---|
[7724] | 5543 | int
|
---|
| 5544 | main ()
|
---|
| 5545 | {
|
---|
| 5546 | return f != $ac_func;
|
---|
[5951] | 5547 | ;
|
---|
| 5548 | return 0;
|
---|
| 5549 | }
|
---|
| 5550 | _ACEOF
|
---|
| 5551 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 5552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5553 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 5554 | ac_status=$?
|
---|
[7724] | 5555 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5556 | rm -f conftest.er1
|
---|
| 5557 | cat conftest.err >&5
|
---|
| 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5559 | (exit $ac_status); } &&
|
---|
[7724] | 5560 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5561 | || test ! -s conftest.err'
|
---|
| 5562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5563 | (eval $ac_try) 2>&5
|
---|
| 5564 | ac_status=$?
|
---|
[7724] | 5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5566 | (exit $ac_status); }; } &&
|
---|
| 5567 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5569 | (eval $ac_try) 2>&5
|
---|
| 5570 | ac_status=$?
|
---|
| 5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5572 | (exit $ac_status); }; }; then
|
---|
[7724] | 5573 | eval "$as_ac_var=yes"
|
---|
[5951] | 5574 | else
|
---|
| 5575 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5576 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5577 |
|
---|
| 5578 | eval "$as_ac_var=no"
|
---|
[5951] | 5579 | fi
|
---|
[7724] | 5580 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5581 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 5582 | fi
|
---|
[7724] | 5583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5584 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5585 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[5951] | 5586 |
|
---|
[7724] | 5587 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 5588 | #define CRAY_STACKSEG_END $ac_func
|
---|
[7724] | 5589 | _ACEOF
|
---|
[5951] | 5590 |
|
---|
| 5591 | break
|
---|
| 5592 | fi
|
---|
| 5593 |
|
---|
| 5594 | done
|
---|
| 5595 | fi
|
---|
| 5596 |
|
---|
[7724] | 5597 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
[5951] | 5598 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5599 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5600 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5601 | else
|
---|
| 5602 | if test "$cross_compiling" = yes; then
|
---|
| 5603 | ac_cv_c_stack_direction=0
|
---|
| 5604 | else
|
---|
| 5605 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5606 | /* confdefs.h. */
|
---|
| 5607 | _ACEOF
|
---|
| 5608 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5609 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5610 | /* end confdefs.h. */
|
---|
[5951] | 5611 | int
|
---|
| 5612 | find_stack_direction ()
|
---|
| 5613 | {
|
---|
| 5614 | static char *addr = 0;
|
---|
| 5615 | auto char dummy;
|
---|
| 5616 | if (addr == 0)
|
---|
| 5617 | {
|
---|
| 5618 | addr = &dummy;
|
---|
| 5619 | return find_stack_direction ();
|
---|
| 5620 | }
|
---|
| 5621 | else
|
---|
| 5622 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5623 | }
|
---|
| 5624 |
|
---|
| 5625 | int
|
---|
| 5626 | main ()
|
---|
| 5627 | {
|
---|
| 5628 | exit (find_stack_direction () < 0);
|
---|
| 5629 | }
|
---|
| 5630 | _ACEOF
|
---|
| 5631 | rm -f conftest$ac_exeext
|
---|
[7724] | 5632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[5951] | 5633 | (eval $ac_link) 2>&5
|
---|
| 5634 | ac_status=$?
|
---|
[7724] | 5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[7724] | 5637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5638 | (eval $ac_try) 2>&5
|
---|
| 5639 | ac_status=$?
|
---|
[7724] | 5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5641 | (exit $ac_status); }; }; then
|
---|
| 5642 | ac_cv_c_stack_direction=1
|
---|
| 5643 | else
|
---|
| 5644 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5645 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5646 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5647 |
|
---|
| 5648 | ( exit $ac_status )
|
---|
[5951] | 5649 | ac_cv_c_stack_direction=-1
|
---|
| 5650 | fi
|
---|
[7724] | 5651 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 5652 | fi
|
---|
| 5653 | fi
|
---|
[7724] | 5654 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
[5951] | 5655 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
| 5656 |
|
---|
[7724] | 5657 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 5658 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[7724] | 5659 | _ACEOF
|
---|
[5951] | 5660 |
|
---|
[7724] | 5661 |
|
---|
[5951] | 5662 | fi
|
---|
| 5663 |
|
---|
| 5664 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[7724] | 5665 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
[5951] | 5666 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5667 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5668 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5669 | else
|
---|
| 5670 | ac_pattern="Autoconf.*'x'"
|
---|
| 5671 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5672 | /* confdefs.h. */
|
---|
| 5673 | _ACEOF
|
---|
| 5674 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5675 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5676 | /* end confdefs.h. */
|
---|
[5951] | 5677 | #include <sgtty.h>
|
---|
| 5678 | Autoconf TIOCGETP
|
---|
| 5679 | _ACEOF
|
---|
| 5680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 5681 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[5951] | 5682 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5683 | else
|
---|
| 5684 | ac_cv_prog_gcc_traditional=no
|
---|
| 5685 | fi
|
---|
| 5686 | rm -f conftest*
|
---|
| 5687 |
|
---|
[7724] | 5688 |
|
---|
[5951] | 5689 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
| 5690 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5691 | /* confdefs.h. */
|
---|
| 5692 | _ACEOF
|
---|
| 5693 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5694 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5695 | /* end confdefs.h. */
|
---|
[5951] | 5696 | #include <termio.h>
|
---|
| 5697 | Autoconf TCGETA
|
---|
| 5698 | _ACEOF
|
---|
| 5699 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[7724] | 5700 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[5951] | 5701 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5702 | fi
|
---|
| 5703 | rm -f conftest*
|
---|
| 5704 |
|
---|
| 5705 | fi
|
---|
| 5706 | fi
|
---|
[7724] | 5707 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[5951] | 5708 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
| 5709 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5710 | CC="$CC -traditional"
|
---|
| 5711 | fi
|
---|
| 5712 | fi
|
---|
| 5713 |
|
---|
[7724] | 5714 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
[5951] | 5715 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5716 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5717 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5718 | else
|
---|
| 5719 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5720 | /* confdefs.h. */
|
---|
| 5721 | _ACEOF
|
---|
| 5722 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5723 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5724 | /* end confdefs.h. */
|
---|
[5951] | 5725 | #include <sys/types.h>
|
---|
| 5726 | #include <signal.h>
|
---|
| 5727 | #ifdef signal
|
---|
| 5728 | # undef signal
|
---|
| 5729 | #endif
|
---|
| 5730 | #ifdef __cplusplus
|
---|
| 5731 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5732 | #else
|
---|
| 5733 | void (*signal ()) ();
|
---|
| 5734 | #endif
|
---|
| 5735 |
|
---|
| 5736 | int
|
---|
| 5737 | main ()
|
---|
| 5738 | {
|
---|
| 5739 | int i;
|
---|
| 5740 | ;
|
---|
| 5741 | return 0;
|
---|
| 5742 | }
|
---|
| 5743 | _ACEOF
|
---|
| 5744 | rm -f conftest.$ac_objext
|
---|
[7724] | 5745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5746 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 5747 | ac_status=$?
|
---|
[7724] | 5748 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5749 | rm -f conftest.er1
|
---|
| 5750 | cat conftest.err >&5
|
---|
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5752 | (exit $ac_status); } &&
|
---|
[7724] | 5753 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5754 | || test ! -s conftest.err'
|
---|
| 5755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5756 | (eval $ac_try) 2>&5
|
---|
| 5757 | ac_status=$?
|
---|
[7724] | 5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5759 | (exit $ac_status); }; } &&
|
---|
| 5760 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5762 | (eval $ac_try) 2>&5
|
---|
| 5763 | ac_status=$?
|
---|
| 5764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5765 | (exit $ac_status); }; }; then
|
---|
| 5766 | ac_cv_type_signal=void
|
---|
| 5767 | else
|
---|
| 5768 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5769 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5770 |
|
---|
[5951] | 5771 | ac_cv_type_signal=int
|
---|
| 5772 | fi
|
---|
[7724] | 5773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 5774 | fi
|
---|
[7724] | 5775 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
[5951] | 5776 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
| 5777 |
|
---|
[7724] | 5778 | cat >>confdefs.h <<_ACEOF
|
---|
[5951] | 5779 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[7724] | 5780 | _ACEOF
|
---|
[5951] | 5781 |
|
---|
[7724] | 5782 |
|
---|
| 5783 |
|
---|
[5951] | 5784 | for ac_func in vprintf
|
---|
| 5785 | do
|
---|
[7724] | 5786 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5787 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[5951] | 5788 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[7724] | 5789 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[5951] | 5790 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5791 | else
|
---|
| 5792 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5793 | /* confdefs.h. */
|
---|
| 5794 | _ACEOF
|
---|
| 5795 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5796 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5797 | /* end confdefs.h. */
|
---|
| 5798 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5799 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5800 | #define $ac_func innocuous_$ac_func
|
---|
| 5801 |
|
---|
[5951] | 5802 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[7724] | 5803 | which can conflict with char $ac_func (); below.
|
---|
| 5804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5805 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5806 |
|
---|
| 5807 | #ifdef __STDC__
|
---|
| 5808 | # include <limits.h>
|
---|
| 5809 | #else
|
---|
| 5810 | # include <assert.h>
|
---|
| 5811 | #endif
|
---|
| 5812 |
|
---|
| 5813 | #undef $ac_func
|
---|
| 5814 |
|
---|
[5951] | 5815 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5816 | #ifdef __cplusplus
|
---|
| 5817 | extern "C"
|
---|
[7724] | 5818 | {
|
---|
[5951] | 5819 | #endif
|
---|
| 5820 | /* We use char because int might match the return type of a gcc2
|
---|
| 5821 | builtin and then its argument prototype would still apply. */
|
---|
| 5822 | char $ac_func ();
|
---|
| 5823 | /* The GNU C library defines this for functions which it implements
|
---|
| 5824 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5825 | something starting with __ and the normal name is an alias. */
|
---|
| 5826 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5827 | choke me
|
---|
| 5828 | #else
|
---|
[7724] | 5829 | char (*f) () = $ac_func;
|
---|
[5951] | 5830 | #endif
|
---|
[7724] | 5831 | #ifdef __cplusplus
|
---|
| 5832 | }
|
---|
| 5833 | #endif
|
---|
[5951] | 5834 |
|
---|
[7724] | 5835 | int
|
---|
| 5836 | main ()
|
---|
| 5837 | {
|
---|
| 5838 | return f != $ac_func;
|
---|
[5951] | 5839 | ;
|
---|
| 5840 | return 0;
|
---|
| 5841 | }
|
---|
| 5842 | _ACEOF
|
---|
| 5843 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 5844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5845 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 5846 | ac_status=$?
|
---|
[7724] | 5847 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5848 | rm -f conftest.er1
|
---|
| 5849 | cat conftest.err >&5
|
---|
| 5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5851 | (exit $ac_status); } &&
|
---|
[7724] | 5852 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5853 | || test ! -s conftest.err'
|
---|
| 5854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5855 | (eval $ac_try) 2>&5
|
---|
| 5856 | ac_status=$?
|
---|
[7724] | 5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5858 | (exit $ac_status); }; } &&
|
---|
| 5859 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5861 | (eval $ac_try) 2>&5
|
---|
| 5862 | ac_status=$?
|
---|
| 5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5864 | (exit $ac_status); }; }; then
|
---|
[7724] | 5865 | eval "$as_ac_var=yes"
|
---|
[5951] | 5866 | else
|
---|
| 5867 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5868 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5869 |
|
---|
| 5870 | eval "$as_ac_var=no"
|
---|
[5951] | 5871 | fi
|
---|
[7724] | 5872 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5873 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 5874 | fi
|
---|
[7724] | 5875 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5876 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5877 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5878 | cat >>confdefs.h <<_ACEOF
|
---|
| 5879 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5880 | _ACEOF
|
---|
[5951] | 5881 |
|
---|
[7724] | 5882 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
[5951] | 5883 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 5884 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 5885 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5886 | else
|
---|
| 5887 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 5888 | /* confdefs.h. */
|
---|
| 5889 | _ACEOF
|
---|
| 5890 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5891 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5892 | /* end confdefs.h. */
|
---|
| 5893 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 5894 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5895 | #define _doprnt innocuous__doprnt
|
---|
| 5896 |
|
---|
[5951] | 5897 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[7724] | 5898 | which can conflict with char _doprnt (); below.
|
---|
| 5899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5900 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5901 |
|
---|
| 5902 | #ifdef __STDC__
|
---|
| 5903 | # include <limits.h>
|
---|
| 5904 | #else
|
---|
| 5905 | # include <assert.h>
|
---|
| 5906 | #endif
|
---|
| 5907 |
|
---|
| 5908 | #undef _doprnt
|
---|
| 5909 |
|
---|
[5951] | 5910 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5911 | #ifdef __cplusplus
|
---|
| 5912 | extern "C"
|
---|
[7724] | 5913 | {
|
---|
[5951] | 5914 | #endif
|
---|
| 5915 | /* We use char because int might match the return type of a gcc2
|
---|
| 5916 | builtin and then its argument prototype would still apply. */
|
---|
| 5917 | char _doprnt ();
|
---|
| 5918 | /* The GNU C library defines this for functions which it implements
|
---|
| 5919 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5920 | something starting with __ and the normal name is an alias. */
|
---|
| 5921 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 5922 | choke me
|
---|
| 5923 | #else
|
---|
[7724] | 5924 | char (*f) () = _doprnt;
|
---|
[5951] | 5925 | #endif
|
---|
[7724] | 5926 | #ifdef __cplusplus
|
---|
| 5927 | }
|
---|
| 5928 | #endif
|
---|
[5951] | 5929 |
|
---|
[7724] | 5930 | int
|
---|
| 5931 | main ()
|
---|
| 5932 | {
|
---|
| 5933 | return f != _doprnt;
|
---|
[5951] | 5934 | ;
|
---|
| 5935 | return 0;
|
---|
| 5936 | }
|
---|
| 5937 | _ACEOF
|
---|
| 5938 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 5939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5940 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 5941 | ac_status=$?
|
---|
[7724] | 5942 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5943 | rm -f conftest.er1
|
---|
| 5944 | cat conftest.err >&5
|
---|
| 5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5946 | (exit $ac_status); } &&
|
---|
[7724] | 5947 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5948 | || test ! -s conftest.err'
|
---|
| 5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 5950 | (eval $ac_try) 2>&5
|
---|
| 5951 | ac_status=$?
|
---|
[7724] | 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5953 | (exit $ac_status); }; } &&
|
---|
| 5954 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5956 | (eval $ac_try) 2>&5
|
---|
| 5957 | ac_status=$?
|
---|
| 5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 5959 | (exit $ac_status); }; }; then
|
---|
| 5960 | ac_cv_func__doprnt=yes
|
---|
| 5961 | else
|
---|
| 5962 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 5963 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5964 |
|
---|
[5951] | 5965 | ac_cv_func__doprnt=no
|
---|
| 5966 | fi
|
---|
[7724] | 5967 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5968 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 5969 | fi
|
---|
[7724] | 5970 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
[5951] | 5971 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 5972 | if test $ac_cv_func__doprnt = yes; then
|
---|
| 5973 |
|
---|
[7724] | 5974 | cat >>confdefs.h <<\_ACEOF
|
---|
[5951] | 5975 | #define HAVE_DOPRNT 1
|
---|
[7724] | 5976 | _ACEOF
|
---|
[5951] | 5977 |
|
---|
| 5978 | fi
|
---|
| 5979 |
|
---|
| 5980 | fi
|
---|
| 5981 | done
|
---|
| 5982 |
|
---|
[7724] | 5983 |
|
---|
| 5984 |
|
---|
| 5985 |
|
---|
| 5986 |
|
---|
| 5987 |
|
---|
| 5988 |
|
---|
| 5989 |
|
---|
| 5990 |
|
---|
| 5991 |
|
---|
| 5992 |
|
---|
| 5993 |
|
---|
[5951] | 5994 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 5995 | do
|
---|
[7724] | 5996 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5997 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[5951] | 5998 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[7724] | 5999 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[5951] | 6000 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6001 | else
|
---|
| 6002 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 6003 | /* confdefs.h. */
|
---|
| 6004 | _ACEOF
|
---|
| 6005 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6006 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6007 | /* end confdefs.h. */
|
---|
| 6008 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6010 | #define $ac_func innocuous_$ac_func
|
---|
| 6011 |
|
---|
[5951] | 6012 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[7724] | 6013 | which can conflict with char $ac_func (); below.
|
---|
| 6014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6015 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6016 |
|
---|
| 6017 | #ifdef __STDC__
|
---|
| 6018 | # include <limits.h>
|
---|
| 6019 | #else
|
---|
| 6020 | # include <assert.h>
|
---|
| 6021 | #endif
|
---|
| 6022 |
|
---|
| 6023 | #undef $ac_func
|
---|
| 6024 |
|
---|
[5951] | 6025 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6026 | #ifdef __cplusplus
|
---|
| 6027 | extern "C"
|
---|
[7724] | 6028 | {
|
---|
[5951] | 6029 | #endif
|
---|
| 6030 | /* We use char because int might match the return type of a gcc2
|
---|
| 6031 | builtin and then its argument prototype would still apply. */
|
---|
| 6032 | char $ac_func ();
|
---|
| 6033 | /* The GNU C library defines this for functions which it implements
|
---|
| 6034 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6035 | something starting with __ and the normal name is an alias. */
|
---|
| 6036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6037 | choke me
|
---|
| 6038 | #else
|
---|
[7724] | 6039 | char (*f) () = $ac_func;
|
---|
[5951] | 6040 | #endif
|
---|
[7724] | 6041 | #ifdef __cplusplus
|
---|
| 6042 | }
|
---|
| 6043 | #endif
|
---|
[5951] | 6044 |
|
---|
[7724] | 6045 | int
|
---|
| 6046 | main ()
|
---|
| 6047 | {
|
---|
| 6048 | return f != $ac_func;
|
---|
[5951] | 6049 | ;
|
---|
| 6050 | return 0;
|
---|
| 6051 | }
|
---|
| 6052 | _ACEOF
|
---|
| 6053 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 6054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6055 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 6056 | ac_status=$?
|
---|
[7724] | 6057 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6058 | rm -f conftest.er1
|
---|
| 6059 | cat conftest.err >&5
|
---|
| 6060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6061 | (exit $ac_status); } &&
|
---|
[7724] | 6062 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6063 | || test ! -s conftest.err'
|
---|
| 6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 6065 | (eval $ac_try) 2>&5
|
---|
| 6066 | ac_status=$?
|
---|
[7724] | 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6068 | (exit $ac_status); }; } &&
|
---|
| 6069 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6071 | (eval $ac_try) 2>&5
|
---|
| 6072 | ac_status=$?
|
---|
| 6073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6074 | (exit $ac_status); }; }; then
|
---|
[7724] | 6075 | eval "$as_ac_var=yes"
|
---|
[5951] | 6076 | else
|
---|
| 6077 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 6078 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6079 |
|
---|
| 6080 | eval "$as_ac_var=no"
|
---|
[5951] | 6081 | fi
|
---|
[7724] | 6082 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6083 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 6084 | fi
|
---|
[7724] | 6085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6086 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6087 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6088 | cat >>confdefs.h <<_ACEOF
|
---|
| 6089 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6090 | _ACEOF
|
---|
[5951] | 6091 |
|
---|
| 6092 | fi
|
---|
| 6093 | done
|
---|
| 6094 |
|
---|
[7724] | 6095 |
|
---|
| 6096 |
|
---|
| 6097 |
|
---|
[5951] | 6098 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6099 | do
|
---|
[7724] | 6100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6101 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[5951] | 6102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[7724] | 6103 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[5951] | 6104 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6105 | else
|
---|
| 6106 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 6107 | /* confdefs.h. */
|
---|
| 6108 | _ACEOF
|
---|
| 6109 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6110 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6111 | /* end confdefs.h. */
|
---|
| 6112 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6113 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6114 | #define $ac_func innocuous_$ac_func
|
---|
| 6115 |
|
---|
[5951] | 6116 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[7724] | 6117 | which can conflict with char $ac_func (); below.
|
---|
| 6118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6119 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6120 |
|
---|
| 6121 | #ifdef __STDC__
|
---|
| 6122 | # include <limits.h>
|
---|
| 6123 | #else
|
---|
| 6124 | # include <assert.h>
|
---|
| 6125 | #endif
|
---|
| 6126 |
|
---|
| 6127 | #undef $ac_func
|
---|
| 6128 |
|
---|
[5951] | 6129 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6130 | #ifdef __cplusplus
|
---|
| 6131 | extern "C"
|
---|
[7724] | 6132 | {
|
---|
[5951] | 6133 | #endif
|
---|
| 6134 | /* We use char because int might match the return type of a gcc2
|
---|
| 6135 | builtin and then its argument prototype would still apply. */
|
---|
| 6136 | char $ac_func ();
|
---|
| 6137 | /* The GNU C library defines this for functions which it implements
|
---|
| 6138 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6139 | something starting with __ and the normal name is an alias. */
|
---|
| 6140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6141 | choke me
|
---|
| 6142 | #else
|
---|
[7724] | 6143 | char (*f) () = $ac_func;
|
---|
[5951] | 6144 | #endif
|
---|
[7724] | 6145 | #ifdef __cplusplus
|
---|
| 6146 | }
|
---|
| 6147 | #endif
|
---|
[5951] | 6148 |
|
---|
[7724] | 6149 | int
|
---|
| 6150 | main ()
|
---|
| 6151 | {
|
---|
| 6152 | return f != $ac_func;
|
---|
[5951] | 6153 | ;
|
---|
| 6154 | return 0;
|
---|
| 6155 | }
|
---|
| 6156 | _ACEOF
|
---|
| 6157 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 6158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6159 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 6160 | ac_status=$?
|
---|
[7724] | 6161 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6162 | rm -f conftest.er1
|
---|
| 6163 | cat conftest.err >&5
|
---|
| 6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6165 | (exit $ac_status); } &&
|
---|
[7724] | 6166 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6167 | || test ! -s conftest.err'
|
---|
| 6168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 6169 | (eval $ac_try) 2>&5
|
---|
| 6170 | ac_status=$?
|
---|
[7724] | 6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6172 | (exit $ac_status); }; } &&
|
---|
| 6173 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6175 | (eval $ac_try) 2>&5
|
---|
| 6176 | ac_status=$?
|
---|
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6178 | (exit $ac_status); }; }; then
|
---|
[7724] | 6179 | eval "$as_ac_var=yes"
|
---|
[5951] | 6180 | else
|
---|
| 6181 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 6182 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6183 |
|
---|
| 6184 | eval "$as_ac_var=no"
|
---|
[5951] | 6185 | fi
|
---|
[7724] | 6186 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6187 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 6188 | fi
|
---|
[7724] | 6189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6190 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6191 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6192 | cat >>confdefs.h <<_ACEOF
|
---|
| 6193 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6194 | _ACEOF
|
---|
[5951] | 6195 |
|
---|
| 6196 | else
|
---|
[7724] | 6197 | case $LIBOBJS in
|
---|
| 6198 | "$ac_func.$ac_objext" | \
|
---|
| 6199 | *" $ac_func.$ac_objext" | \
|
---|
| 6200 | "$ac_func.$ac_objext "* | \
|
---|
| 6201 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6202 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6203 | esac
|
---|
| 6204 |
|
---|
[5951] | 6205 | fi
|
---|
| 6206 | done
|
---|
| 6207 |
|
---|
[7724] | 6208 |
|
---|
| 6209 |
|
---|
| 6210 |
|
---|
| 6211 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6212 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6213 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
[5951] | 6214 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6215 | else
|
---|
| 6216 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 6217 | /* confdefs.h. */
|
---|
| 6218 | _ACEOF
|
---|
| 6219 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6220 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6221 | /* end confdefs.h. */
|
---|
| 6222 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6224 | #define textdomain innocuous_textdomain
|
---|
| 6225 |
|
---|
[5951] | 6226 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[7724] | 6227 | which can conflict with char textdomain (); below.
|
---|
| 6228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6229 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6230 |
|
---|
| 6231 | #ifdef __STDC__
|
---|
| 6232 | # include <limits.h>
|
---|
| 6233 | #else
|
---|
| 6234 | # include <assert.h>
|
---|
| 6235 | #endif
|
---|
| 6236 |
|
---|
| 6237 | #undef textdomain
|
---|
| 6238 |
|
---|
[5951] | 6239 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6240 | #ifdef __cplusplus
|
---|
| 6241 | extern "C"
|
---|
[7724] | 6242 | {
|
---|
[5951] | 6243 | #endif
|
---|
| 6244 | /* We use char because int might match the return type of a gcc2
|
---|
| 6245 | builtin and then its argument prototype would still apply. */
|
---|
[7724] | 6246 | char textdomain ();
|
---|
[5951] | 6247 | /* The GNU C library defines this for functions which it implements
|
---|
| 6248 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6249 | something starting with __ and the normal name is an alias. */
|
---|
[7724] | 6250 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[5951] | 6251 | choke me
|
---|
| 6252 | #else
|
---|
[7724] | 6253 | char (*f) () = textdomain;
|
---|
[5951] | 6254 | #endif
|
---|
[7724] | 6255 | #ifdef __cplusplus
|
---|
| 6256 | }
|
---|
| 6257 | #endif
|
---|
[5951] | 6258 |
|
---|
[7724] | 6259 | int
|
---|
| 6260 | main ()
|
---|
| 6261 | {
|
---|
| 6262 | return f != textdomain;
|
---|
[5951] | 6263 | ;
|
---|
| 6264 | return 0;
|
---|
| 6265 | }
|
---|
| 6266 | _ACEOF
|
---|
| 6267 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[7724] | 6268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6269 | (eval $ac_link) 2>conftest.er1
|
---|
[5951] | 6270 | ac_status=$?
|
---|
[7724] | 6271 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6272 | rm -f conftest.er1
|
---|
| 6273 | cat conftest.err >&5
|
---|
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6275 | (exit $ac_status); } &&
|
---|
[7724] | 6276 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6277 | || test ! -s conftest.err'
|
---|
| 6278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 6279 | (eval $ac_try) 2>&5
|
---|
| 6280 | ac_status=$?
|
---|
[7724] | 6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6282 | (exit $ac_status); }; } &&
|
---|
| 6283 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6285 | (eval $ac_try) 2>&5
|
---|
| 6286 | ac_status=$?
|
---|
| 6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6288 | (exit $ac_status); }; }; then
|
---|
[7724] | 6289 | ac_cv_func_textdomain=yes
|
---|
[5951] | 6290 | else
|
---|
| 6291 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 6292 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6293 |
|
---|
| 6294 | ac_cv_func_textdomain=no
|
---|
[5951] | 6295 | fi
|
---|
[7724] | 6296 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6297 | conftest$ac_exeext conftest.$ac_ext
|
---|
[5951] | 6298 | fi
|
---|
[7724] | 6299 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6300 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6301 | if test $ac_cv_func_textdomain = yes; then
|
---|
[5951] | 6302 |
|
---|
[7724] | 6303 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6304 | #define ENABLE_NLS 1
|
---|
| 6305 | _ACEOF
|
---|
| 6306 |
|
---|
[5951] | 6307 | fi
|
---|
| 6308 |
|
---|
[7724] | 6309 |
|
---|
[5951] | 6310 | ac_ext=cc
|
---|
| 6311 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 6312 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6313 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6314 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 6315 |
|
---|
[7724] | 6316 |
|
---|
[5951] | 6317 | success=no
|
---|
[7724] | 6318 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
[5951] | 6319 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
| 6320 |
|
---|
[7724] | 6321 |
|
---|
[5951] | 6322 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 6323 | /* confdefs.h. */
|
---|
| 6324 | _ACEOF
|
---|
| 6325 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6326 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6327 | /* end confdefs.h. */
|
---|
[5951] | 6328 | #include <vector>
|
---|
| 6329 |
|
---|
| 6330 | int
|
---|
| 6331 | main ()
|
---|
| 6332 | {
|
---|
| 6333 |
|
---|
| 6334 | ;
|
---|
| 6335 | return 0;
|
---|
| 6336 | }
|
---|
| 6337 | _ACEOF
|
---|
| 6338 | rm -f conftest.$ac_objext
|
---|
[7724] | 6339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6340 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 6341 | ac_status=$?
|
---|
[7724] | 6342 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6343 | rm -f conftest.er1
|
---|
| 6344 | cat conftest.err >&5
|
---|
| 6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6346 | (exit $ac_status); } &&
|
---|
[7724] | 6347 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6348 | || test ! -s conftest.err'
|
---|
| 6349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 6350 | (eval $ac_try) 2>&5
|
---|
| 6351 | ac_status=$?
|
---|
[7724] | 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6353 | (exit $ac_status); }; } &&
|
---|
| 6354 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6356 | (eval $ac_try) 2>&5
|
---|
| 6357 | ac_status=$?
|
---|
| 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6359 | (exit $ac_status); }; }; then
|
---|
| 6360 | success=yes
|
---|
| 6361 | else
|
---|
| 6362 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 6363 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6364 |
|
---|
[5951] | 6365 | fi
|
---|
[7724] | 6366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 6367 |
|
---|
| 6368 | if test $success = "no"; then
|
---|
| 6369 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 6370 | /* confdefs.h. */
|
---|
| 6371 | _ACEOF
|
---|
| 6372 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6373 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6374 | /* end confdefs.h. */
|
---|
[5951] | 6375 | #include <vector.h>
|
---|
| 6376 |
|
---|
| 6377 | int
|
---|
| 6378 | main ()
|
---|
| 6379 | {
|
---|
| 6380 |
|
---|
| 6381 | ;
|
---|
| 6382 | return 0;
|
---|
| 6383 | }
|
---|
| 6384 | _ACEOF
|
---|
| 6385 | rm -f conftest.$ac_objext
|
---|
[7724] | 6386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6387 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 6388 | ac_status=$?
|
---|
[7724] | 6389 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6390 | rm -f conftest.er1
|
---|
| 6391 | cat conftest.err >&5
|
---|
| 6392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6393 | (exit $ac_status); } &&
|
---|
[7724] | 6394 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6395 | || test ! -s conftest.err'
|
---|
| 6396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 6397 | (eval $ac_try) 2>&5
|
---|
| 6398 | ac_status=$?
|
---|
[7724] | 6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6400 | (exit $ac_status); }; } &&
|
---|
| 6401 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6403 | (eval $ac_try) 2>&5
|
---|
| 6404 | ac_status=$?
|
---|
| 6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6406 | (exit $ac_status); }; }; then
|
---|
| 6407 | success="yes"
|
---|
| 6408 | else
|
---|
| 6409 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 6410 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6411 |
|
---|
[5951] | 6412 | fi
|
---|
[7724] | 6413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 6414 | fi
|
---|
| 6415 |
|
---|
| 6416 | if test $success = "no"; then
|
---|
| 6417 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[7724] | 6418 | /* confdefs.h. */
|
---|
| 6419 | _ACEOF
|
---|
| 6420 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6421 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6422 | /* end confdefs.h. */
|
---|
[5951] | 6423 | #include <ospace\\std\\vector>
|
---|
| 6424 |
|
---|
| 6425 | int
|
---|
| 6426 | main ()
|
---|
| 6427 | {
|
---|
| 6428 |
|
---|
| 6429 | ;
|
---|
| 6430 | return 0;
|
---|
| 6431 | }
|
---|
| 6432 | _ACEOF
|
---|
| 6433 | rm -f conftest.$ac_objext
|
---|
[7724] | 6434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6435 | (eval $ac_compile) 2>conftest.er1
|
---|
[5951] | 6436 | ac_status=$?
|
---|
[7724] | 6437 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6438 | rm -f conftest.er1
|
---|
| 6439 | cat conftest.err >&5
|
---|
| 6440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6441 | (exit $ac_status); } &&
|
---|
[7724] | 6442 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6443 | || test ! -s conftest.err'
|
---|
| 6444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[5951] | 6445 | (eval $ac_try) 2>&5
|
---|
| 6446 | ac_status=$?
|
---|
[7724] | 6447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6448 | (exit $ac_status); }; } &&
|
---|
| 6449 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6451 | (eval $ac_try) 2>&5
|
---|
| 6452 | ac_status=$?
|
---|
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[5951] | 6454 | (exit $ac_status); }; }; then
|
---|
| 6455 | success="yes"
|
---|
| 6456 | else
|
---|
| 6457 | echo "$as_me: failed program was:" >&5
|
---|
[7724] | 6458 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6459 |
|
---|
[5951] | 6460 | fi
|
---|
[7724] | 6461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[5951] | 6462 | fi
|
---|
| 6463 |
|
---|
| 6464 | if test $success = yes; then
|
---|
[7724] | 6465 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
[5951] | 6466 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 6467 | else
|
---|
[7724] | 6468 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
[5951] | 6469 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[7724] | 6470 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
[5951] | 6471 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 6472 | { (exit 1); exit 1; }; }
|
---|
| 6473 | fi
|
---|
| 6474 |
|
---|
| 6475 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 6476 | # check for running bash under cygwin
|
---|
| 6477 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 6478 | then
|
---|
| 6479 | gsdlos=windows
|
---|
| 6480 | fi
|
---|
| 6481 |
|
---|
[7724] | 6482 |
|
---|
[5951] | 6483 | # ---------------------------------------------------------------------------
|
---|
| 6484 | ac_configure_args="$ac_configure_args --host=$host --target=$target"
|
---|
| 6485 |
|
---|
[7724] | 6486 |
|
---|
[5951] | 6487 | subdirs="$subdirs packages"
|
---|
| 6488 |
|
---|
| 6489 |
|
---|
[7724] | 6490 | ac_config_files="$ac_config_files packages/Makefile docs/Makefile src/java/Makefile Makefile"
|
---|
[5951] | 6491 | cat >confcache <<\_ACEOF
|
---|
| 6492 | # This file is a shell script that caches the results of configure
|
---|
| 6493 | # tests run on this system so they can be shared between configure
|
---|
| 6494 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6495 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6496 | # want to keep, you may remove or edit it.
|
---|
| 6497 | #
|
---|
| 6498 | # config.status only pays attention to the cache file if you give it
|
---|
| 6499 | # the --recheck option to rerun configure.
|
---|
| 6500 | #
|
---|
[7724] | 6501 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[5951] | 6502 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6503 | # following values.
|
---|
| 6504 |
|
---|
| 6505 | _ACEOF
|
---|
| 6506 |
|
---|
| 6507 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6508 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 6509 | # So, don't put newlines in cache variables' values.
|
---|
| 6510 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6511 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 6512 | {
|
---|
| 6513 | (set) 2>&1 |
|
---|
| 6514 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 6515 | *ac_space=\ *)
|
---|
| 6516 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 6517 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 6518 | sed -n \
|
---|
[7724] | 6519 | "s/'/'\\\\''/g;
|
---|
| 6520 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[5951] | 6521 | ;;
|
---|
| 6522 | *)
|
---|
| 6523 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 6524 | sed -n \
|
---|
[7724] | 6525 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[5951] | 6526 | ;;
|
---|
| 6527 | esac;
|
---|
| 6528 | } |
|
---|
| 6529 | sed '
|
---|
| 6530 | t clear
|
---|
| 6531 | : clear
|
---|
| 6532 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6533 | t end
|
---|
| 6534 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6535 | : end' >>confcache
|
---|
[7724] | 6536 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[5951] | 6537 | if test -w $cache_file; then
|
---|
| 6538 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 6539 | cat confcache >$cache_file
|
---|
| 6540 | else
|
---|
| 6541 | echo "not updating unwritable cache $cache_file"
|
---|
| 6542 | fi
|
---|
| 6543 | fi
|
---|
| 6544 | rm -f confcache
|
---|
| 6545 |
|
---|
| 6546 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6547 | # Let make expand exec_prefix.
|
---|
| 6548 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6549 |
|
---|
| 6550 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 6551 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 6552 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 6553 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 6554 | if test "x$srcdir" = x.; then
|
---|
[7724] | 6555 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
[5951] | 6556 | s/:*\$(srcdir):*/:/;
|
---|
| 6557 | s/:*\${srcdir}:*/:/;
|
---|
| 6558 | s/:*@srcdir@:*/:/;
|
---|
[7724] | 6559 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
[5951] | 6560 | s/:*$//;
|
---|
[7724] | 6561 | s/^[^=]*=[ ]*$//;
|
---|
[5951] | 6562 | }'
|
---|
| 6563 | fi
|
---|
| 6564 |
|
---|
| 6565 | DEFS=-DHAVE_CONFIG_H
|
---|
| 6566 |
|
---|
[7724] | 6567 | ac_libobjs=
|
---|
| 6568 | ac_ltlibobjs=
|
---|
| 6569 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6570 | # 1. Remove the extension, and $U if already installed.
|
---|
| 6571 | ac_i=`echo "$ac_i" |
|
---|
| 6572 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 6573 | # 2. Add them.
|
---|
| 6574 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 6575 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 6576 | done
|
---|
| 6577 | LIBOBJS=$ac_libobjs
|
---|
| 6578 |
|
---|
| 6579 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6580 |
|
---|
| 6581 |
|
---|
| 6582 |
|
---|
[5951] | 6583 | : ${CONFIG_STATUS=./config.status}
|
---|
| 6584 | ac_clean_files_save=$ac_clean_files
|
---|
| 6585 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[7724] | 6586 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
[5951] | 6587 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 6588 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 6589 | #! $SHELL
|
---|
[7724] | 6590 | # Generated by $as_me.
|
---|
[5951] | 6591 | # Run this file to recreate the current configuration.
|
---|
| 6592 | # Compiler output produced by configure, useful for debugging
|
---|
| 6593 | # configure, is in config.log if it exists.
|
---|
| 6594 |
|
---|
| 6595 | debug=false
|
---|
[7724] | 6596 | ac_cs_recheck=false
|
---|
| 6597 | ac_cs_silent=false
|
---|
[5951] | 6598 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 6599 | _ACEOF
|
---|
| 6600 |
|
---|
| 6601 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[7724] | 6602 | ## --------------------- ##
|
---|
| 6603 | ## M4sh Initialization. ##
|
---|
| 6604 | ## --------------------- ##
|
---|
| 6605 |
|
---|
[5951] | 6606 | # Be Bourne compatible
|
---|
| 6607 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 6608 | emulate sh
|
---|
| 6609 | NULLCMD=:
|
---|
[7724] | 6610 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 6611 | # is contrary to our usage. Disable this feature.
|
---|
| 6612 | alias -g '${1+"$@"}'='"$@"'
|
---|
[5951] | 6613 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 6614 | set -o posix
|
---|
| 6615 | fi
|
---|
[7724] | 6616 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[5951] | 6617 |
|
---|
[7724] | 6618 | # Support unset when possible.
|
---|
| 6619 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 6620 | as_unset=unset
|
---|
| 6621 | else
|
---|
| 6622 | as_unset=false
|
---|
| 6623 | fi
|
---|
| 6624 |
|
---|
| 6625 |
|
---|
| 6626 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 6627 | $as_unset ENV MAIL MAILPATH
|
---|
| 6628 | PS1='$ '
|
---|
| 6629 | PS2='> '
|
---|
| 6630 | PS4='+ '
|
---|
| 6631 |
|
---|
| 6632 | # NLS nuisances.
|
---|
| 6633 | for as_var in \
|
---|
| 6634 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 6635 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 6636 | LC_TELEPHONE LC_TIME
|
---|
| 6637 | do
|
---|
| 6638 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 6639 | eval $as_var=C; export $as_var
|
---|
| 6640 | else
|
---|
| 6641 | $as_unset $as_var
|
---|
| 6642 | fi
|
---|
| 6643 | done
|
---|
| 6644 |
|
---|
| 6645 | # Required to use basename.
|
---|
| 6646 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 6647 | as_expr=expr
|
---|
| 6648 | else
|
---|
| 6649 | as_expr=false
|
---|
| 6650 | fi
|
---|
| 6651 |
|
---|
| 6652 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 6653 | as_basename=basename
|
---|
| 6654 | else
|
---|
| 6655 | as_basename=false
|
---|
| 6656 | fi
|
---|
| 6657 |
|
---|
| 6658 |
|
---|
[5951] | 6659 | # Name of the executable.
|
---|
[7724] | 6660 | as_me=`$as_basename "$0" ||
|
---|
| 6661 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 6662 | X"$0" : 'X\(//\)$' \| \
|
---|
| 6663 | X"$0" : 'X\(/\)$' \| \
|
---|
| 6664 | . : '\(.\)' 2>/dev/null ||
|
---|
| 6665 | echo X/"$0" |
|
---|
| 6666 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 6667 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 6668 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 6669 | s/.*/./; q'`
|
---|
[5951] | 6670 |
|
---|
[7724] | 6671 |
|
---|
| 6672 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 6673 | # Avoid depending upon Character Ranges.
|
---|
| 6674 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 6675 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 6676 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 6677 | as_cr_digits='0123456789'
|
---|
| 6678 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 6679 |
|
---|
| 6680 | # The user is always right.
|
---|
| 6681 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6682 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 6683 | echo "exit 0" >>conf$$.sh
|
---|
| 6684 | chmod +x conf$$.sh
|
---|
| 6685 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 6686 | PATH_SEPARATOR=';'
|
---|
| 6687 | else
|
---|
| 6688 | PATH_SEPARATOR=:
|
---|
| 6689 | fi
|
---|
| 6690 | rm -f conf$$.sh
|
---|
| 6691 | fi
|
---|
| 6692 |
|
---|
| 6693 |
|
---|
| 6694 | as_lineno_1=$LINENO
|
---|
| 6695 | as_lineno_2=$LINENO
|
---|
| 6696 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 6697 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 6698 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 6699 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 6700 | # relative or not.
|
---|
| 6701 | case $0 in
|
---|
| 6702 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6703 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6704 | for as_dir in $PATH
|
---|
| 6705 | do
|
---|
| 6706 | IFS=$as_save_IFS
|
---|
| 6707 | test -z "$as_dir" && as_dir=.
|
---|
| 6708 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6709 | done
|
---|
| 6710 |
|
---|
| 6711 | ;;
|
---|
| 6712 | esac
|
---|
| 6713 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6714 | # in which case we are not to be found in the path.
|
---|
| 6715 | if test "x$as_myself" = x; then
|
---|
| 6716 | as_myself=$0
|
---|
| 6717 | fi
|
---|
| 6718 | if test ! -f "$as_myself"; then
|
---|
| 6719 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 6720 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 6721 | { (exit 1); exit 1; }; }
|
---|
| 6722 | fi
|
---|
| 6723 | case $CONFIG_SHELL in
|
---|
| 6724 | '')
|
---|
| 6725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6726 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 6727 | do
|
---|
| 6728 | IFS=$as_save_IFS
|
---|
| 6729 | test -z "$as_dir" && as_dir=.
|
---|
| 6730 | for as_base in sh bash ksh sh5; do
|
---|
| 6731 | case $as_dir in
|
---|
| 6732 | /*)
|
---|
| 6733 | if ("$as_dir/$as_base" -c '
|
---|
| 6734 | as_lineno_1=$LINENO
|
---|
| 6735 | as_lineno_2=$LINENO
|
---|
| 6736 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 6737 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 6738 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 6739 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 6740 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 6741 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 6742 | export CONFIG_SHELL
|
---|
| 6743 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 6744 | fi;;
|
---|
| 6745 | esac
|
---|
| 6746 | done
|
---|
| 6747 | done
|
---|
| 6748 | ;;
|
---|
| 6749 | esac
|
---|
| 6750 |
|
---|
| 6751 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 6752 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 6753 | # line-number line before each line; the second 'sed' does the real
|
---|
| 6754 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 6755 | # with the numbered line, and appends trailing '-' during
|
---|
| 6756 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 6757 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 6758 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 6759 | sed '=' <$as_myself |
|
---|
| 6760 | sed '
|
---|
| 6761 | N
|
---|
| 6762 | s,$,-,
|
---|
| 6763 | : loop
|
---|
| 6764 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 6765 | t loop
|
---|
| 6766 | s,-$,,
|
---|
| 6767 | s,^['$as_cr_digits']*\n,,
|
---|
| 6768 | ' >$as_me.lineno &&
|
---|
| 6769 | chmod +x $as_me.lineno ||
|
---|
| 6770 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 6771 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 6772 | { (exit 1); exit 1; }; }
|
---|
| 6773 |
|
---|
| 6774 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 6775 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 6776 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 6777 | . ./$as_me.lineno
|
---|
| 6778 | # Exit status is that of the last command.
|
---|
| 6779 | exit
|
---|
| 6780 | }
|
---|
| 6781 |
|
---|
| 6782 |
|
---|
| 6783 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 6784 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 6785 | ' ECHO_T=' ' ;;
|
---|
| 6786 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 6787 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 6788 | esac
|
---|
| 6789 |
|
---|
[5951] | 6790 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 6791 | as_expr=expr
|
---|
| 6792 | else
|
---|
| 6793 | as_expr=false
|
---|
| 6794 | fi
|
---|
| 6795 |
|
---|
| 6796 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6797 | echo >conf$$.file
|
---|
| 6798 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6799 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 6800 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 6801 | if test -f conf$$.exe; then
|
---|
| 6802 | # Don't use ln at all; we don't have any links
|
---|
| 6803 | as_ln_s='cp -p'
|
---|
| 6804 | else
|
---|
| 6805 | as_ln_s='ln -s'
|
---|
| 6806 | fi
|
---|
| 6807 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6808 | as_ln_s=ln
|
---|
| 6809 | else
|
---|
| 6810 | as_ln_s='cp -p'
|
---|
| 6811 | fi
|
---|
| 6812 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6813 |
|
---|
[7724] | 6814 | if mkdir -p . 2>/dev/null; then
|
---|
| 6815 | as_mkdir_p=:
|
---|
[5951] | 6816 | else
|
---|
[7724] | 6817 | test -d ./-p && rmdir ./-p
|
---|
| 6818 | as_mkdir_p=false
|
---|
[5951] | 6819 | fi
|
---|
| 6820 |
|
---|
[7724] | 6821 | as_executable_p="test -f"
|
---|
[5951] | 6822 |
|
---|
[7724] | 6823 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 6824 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6825 |
|
---|
| 6826 | # Sed expression to map a string onto a valid variable name.
|
---|
| 6827 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6828 |
|
---|
| 6829 |
|
---|
[5951] | 6830 | # IFS
|
---|
| 6831 | # We need space, tab and new line, in precisely that order.
|
---|
| 6832 | as_nl='
|
---|
| 6833 | '
|
---|
| 6834 | IFS=" $as_nl"
|
---|
| 6835 |
|
---|
| 6836 | # CDPATH.
|
---|
[7724] | 6837 | $as_unset CDPATH
|
---|
[5951] | 6838 |
|
---|
| 6839 | exec 6>&1
|
---|
| 6840 |
|
---|
[7724] | 6841 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 6842 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 6843 | # values after options handling. Logging --version etc. is OK.
|
---|
| 6844 | exec 5>>config.log
|
---|
| 6845 | {
|
---|
| 6846 | echo
|
---|
| 6847 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 6848 | ## Running $as_me. ##
|
---|
| 6849 | _ASBOX
|
---|
| 6850 | } >&5
|
---|
| 6851 | cat >&5 <<_CSEOF
|
---|
| 6852 |
|
---|
| 6853 | This file was extended by $as_me, which was
|
---|
| 6854 | generated by GNU Autoconf 2.58. Invocation command line was
|
---|
| 6855 |
|
---|
| 6856 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 6857 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 6858 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 6859 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 6860 | $ $0 $@
|
---|
| 6861 |
|
---|
| 6862 | _CSEOF
|
---|
| 6863 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 6864 | echo >&5
|
---|
[5951] | 6865 | _ACEOF
|
---|
| 6866 |
|
---|
| 6867 | # Files that config.status was made for.
|
---|
| 6868 | if test -n "$ac_config_files"; then
|
---|
| 6869 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 6870 | fi
|
---|
| 6871 |
|
---|
| 6872 | if test -n "$ac_config_headers"; then
|
---|
| 6873 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 6874 | fi
|
---|
| 6875 |
|
---|
| 6876 | if test -n "$ac_config_links"; then
|
---|
| 6877 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 6878 | fi
|
---|
| 6879 |
|
---|
| 6880 | if test -n "$ac_config_commands"; then
|
---|
| 6881 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 6882 | fi
|
---|
| 6883 |
|
---|
[7724] | 6884 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 6885 |
|
---|
| 6886 | ac_cs_usage="\
|
---|
| 6887 | \`$as_me' instantiates files from templates according to the
|
---|
| 6888 | current configuration.
|
---|
| 6889 |
|
---|
| 6890 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 6891 |
|
---|
| 6892 | -h, --help print this help, then exit
|
---|
| 6893 | -V, --version print version number, then exit
|
---|
[7724] | 6894 | -q, --quiet do not print progress messages
|
---|
[5951] | 6895 | -d, --debug don't remove temporary files
|
---|
| 6896 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 6897 | --file=FILE[:TEMPLATE]
|
---|
[7724] | 6898 | instantiate the configuration file FILE
|
---|
[5951] | 6899 | --header=FILE[:TEMPLATE]
|
---|
[7724] | 6900 | instantiate the configuration header FILE
|
---|
[5951] | 6901 |
|
---|
| 6902 | Configuration files:
|
---|
| 6903 | $config_files
|
---|
| 6904 |
|
---|
| 6905 | Configuration headers:
|
---|
| 6906 | $config_headers
|
---|
| 6907 |
|
---|
| 6908 | Report bugs to <[email protected]>."
|
---|
[7724] | 6909 | _ACEOF
|
---|
[5951] | 6910 |
|
---|
[7724] | 6911 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[5951] | 6912 | ac_cs_version="\\
|
---|
| 6913 | config.status
|
---|
[7724] | 6914 | configured by $0, generated by GNU Autoconf 2.58,
|
---|
[5951] | 6915 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 6916 |
|
---|
[7724] | 6917 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[5951] | 6918 | This config.status script is free software; the Free Software Foundation
|
---|
| 6919 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 6920 | srcdir=$srcdir
|
---|
| 6921 | INSTALL="$INSTALL"
|
---|
[7724] | 6922 | _ACEOF
|
---|
[5951] | 6923 |
|
---|
[7724] | 6924 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 6925 | # If no file are specified by the user, then we need to provide default
|
---|
| 6926 | # value. By we need to know if files were specified by the user.
|
---|
| 6927 | ac_need_defaults=:
|
---|
| 6928 | while test $# != 0
|
---|
| 6929 | do
|
---|
| 6930 | case $1 in
|
---|
| 6931 | --*=*)
|
---|
| 6932 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 6933 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[7724] | 6934 | ac_shift=:
|
---|
[5951] | 6935 | ;;
|
---|
[7724] | 6936 | -*)
|
---|
| 6937 | ac_option=$1
|
---|
| 6938 | ac_optarg=$2
|
---|
| 6939 | ac_shift=shift
|
---|
| 6940 | ;;
|
---|
[5951] | 6941 | *) # This is not an option, so the user has probably given explicit
|
---|
| 6942 | # arguments.
|
---|
[7724] | 6943 | ac_option=$1
|
---|
[5951] | 6944 | ac_need_defaults=false;;
|
---|
| 6945 | esac
|
---|
| 6946 |
|
---|
[7724] | 6947 | case $ac_option in
|
---|
[5951] | 6948 | # Handling of the options.
|
---|
[7724] | 6949 | _ACEOF
|
---|
| 6950 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 6951 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[7724] | 6952 | ac_cs_recheck=: ;;
|
---|
[5951] | 6953 | --version | --vers* | -V )
|
---|
| 6954 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 6955 | --he | --h)
|
---|
| 6956 | # Conflict between --help and --header
|
---|
[7724] | 6957 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
[5951] | 6958 | Try \`$0 --help' for more information." >&5
|
---|
| 6959 | echo "$as_me: error: ambiguous option: $1
|
---|
| 6960 | Try \`$0 --help' for more information." >&2;}
|
---|
| 6961 | { (exit 1); exit 1; }; };;
|
---|
| 6962 | --help | --hel | -h )
|
---|
| 6963 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 6964 | --debug | --d* | -d )
|
---|
| 6965 | debug=: ;;
|
---|
| 6966 | --file | --fil | --fi | --f )
|
---|
[7724] | 6967 | $ac_shift
|
---|
| 6968 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[5951] | 6969 | ac_need_defaults=false;;
|
---|
| 6970 | --header | --heade | --head | --hea )
|
---|
[7724] | 6971 | $ac_shift
|
---|
| 6972 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[5951] | 6973 | ac_need_defaults=false;;
|
---|
[7724] | 6974 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 6975 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 6976 | ac_cs_silent=: ;;
|
---|
[5951] | 6977 |
|
---|
| 6978 | # This is an error.
|
---|
[7724] | 6979 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
[5951] | 6980 | Try \`$0 --help' for more information." >&5
|
---|
| 6981 | echo "$as_me: error: unrecognized option: $1
|
---|
| 6982 | Try \`$0 --help' for more information." >&2;}
|
---|
| 6983 | { (exit 1); exit 1; }; } ;;
|
---|
[7724] | 6984 |
|
---|
| 6985 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 6986 |
|
---|
[5951] | 6987 | esac
|
---|
| 6988 | shift
|
---|
| 6989 | done
|
---|
| 6990 |
|
---|
[7724] | 6991 | ac_configure_extra_args=
|
---|
[5951] | 6992 |
|
---|
[7724] | 6993 | if $ac_cs_silent; then
|
---|
| 6994 | exec 6>/dev/null
|
---|
| 6995 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 6996 | fi
|
---|
[5951] | 6997 |
|
---|
[7724] | 6998 | _ACEOF
|
---|
| 6999 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7000 | if \$ac_cs_recheck; then
|
---|
| 7001 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7002 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7003 | fi
|
---|
[5951] | 7004 |
|
---|
| 7005 | _ACEOF
|
---|
| 7006 |
|
---|
[7724] | 7007 |
|
---|
| 7008 |
|
---|
| 7009 |
|
---|
| 7010 |
|
---|
| 7011 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7012 | for ac_config_target in $ac_config_targets
|
---|
| 7013 | do
|
---|
| 7014 | case "$ac_config_target" in
|
---|
| 7015 | # Handling of arguments.
|
---|
| 7016 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7017 | "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
|
---|
| 7018 | "src/java/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/java/Makefile" ;;
|
---|
| 7019 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7020 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7021 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7022 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7023 | { (exit 1); exit 1; }; };;
|
---|
| 7024 | esac
|
---|
| 7025 | done
|
---|
| 7026 |
|
---|
[5951] | 7027 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7028 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7029 | # We use the long form for the default assignment because of an extremely
|
---|
| 7030 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7031 | if $ac_need_defaults; then
|
---|
| 7032 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7033 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7034 | fi
|
---|
| 7035 |
|
---|
[7724] | 7036 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7037 | # simply because there is no reason to put it here, and in addition,
|
---|
| 7038 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[5951] | 7039 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 7040 | $debug ||
|
---|
| 7041 | {
|
---|
| 7042 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[7724] | 7043 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[5951] | 7044 | }
|
---|
| 7045 |
|
---|
| 7046 | # Create a (secure) tmp directory for tmp files.
|
---|
[7724] | 7047 |
|
---|
[5951] | 7048 | {
|
---|
[7724] | 7049 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[5951] | 7050 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7051 | } ||
|
---|
| 7052 | {
|
---|
[7724] | 7053 | tmp=./confstat$$-$RANDOM
|
---|
[5951] | 7054 | (umask 077 && mkdir $tmp)
|
---|
| 7055 | } ||
|
---|
| 7056 | {
|
---|
[7724] | 7057 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
[5951] | 7058 | { (exit 1); exit 1; }
|
---|
| 7059 | }
|
---|
| 7060 |
|
---|
[7724] | 7061 | _ACEOF
|
---|
[5951] | 7062 |
|
---|
[7724] | 7063 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[5951] | 7064 |
|
---|
| 7065 | #
|
---|
| 7066 | # CONFIG_FILES section.
|
---|
| 7067 | #
|
---|
| 7068 |
|
---|
| 7069 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7070 | # This happens for instance when ./config.status config.h
|
---|
| 7071 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7072 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7073 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7074 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7075 | s,@SHELL@,$SHELL,;t t
|
---|
[7724] | 7076 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7077 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7078 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7079 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7080 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7081 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
[5951] | 7082 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7083 | s,@prefix@,$prefix,;t t
|
---|
| 7084 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7085 | s,@bindir@,$bindir,;t t
|
---|
| 7086 | s,@sbindir@,$sbindir,;t t
|
---|
| 7087 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7088 | s,@datadir@,$datadir,;t t
|
---|
| 7089 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7090 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7091 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7092 | s,@libdir@,$libdir,;t t
|
---|
| 7093 | s,@includedir@,$includedir,;t t
|
---|
| 7094 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7095 | s,@infodir@,$infodir,;t t
|
---|
| 7096 | s,@mandir@,$mandir,;t t
|
---|
[7724] | 7097 | s,@build_alias@,$build_alias,;t t
|
---|
| 7098 | s,@host_alias@,$host_alias,;t t
|
---|
| 7099 | s,@target_alias@,$target_alias,;t t
|
---|
| 7100 | s,@DEFS@,$DEFS,;t t
|
---|
[5951] | 7101 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7102 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7103 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7104 | s,@LIBS@,$LIBS,;t t
|
---|
| 7105 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7106 | s,@VERSION@,$VERSION,;t t
|
---|
| 7107 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7108 | s,@CC@,$CC,;t t
|
---|
| 7109 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7110 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7111 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7112 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7113 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7114 | s,@CXX@,$CXX,;t t
|
---|
| 7115 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7116 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7117 | s,@AWK@,$AWK,;t t
|
---|
| 7118 | s,@YACC@,$YACC,;t t
|
---|
| 7119 | s,@build@,$build,;t t
|
---|
| 7120 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7121 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7122 | s,@build_os@,$build_os,;t t
|
---|
| 7123 | s,@host@,$host,;t t
|
---|
| 7124 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7125 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7126 | s,@host_os@,$host_os,;t t
|
---|
| 7127 | s,@target@,$target,;t t
|
---|
| 7128 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7129 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7130 | s,@target_os@,$target_os,;t t
|
---|
| 7131 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7132 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7133 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7134 | s,@LN_S@,$LN_S,;t t
|
---|
| 7135 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7136 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7137 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7138 | s,@CPP@,$CPP,;t t
|
---|
[7724] | 7139 | s,@EGREP@,$EGREP,;t t
|
---|
[5951] | 7140 | s,@U@,$U,;t t
|
---|
| 7141 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7142 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7143 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7144 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7145 | s,@subdirs@,$subdirs,;t t
|
---|
[7724] | 7146 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
[5951] | 7147 | CEOF
|
---|
| 7148 |
|
---|
[7724] | 7149 | _ACEOF
|
---|
[5951] | 7150 |
|
---|
[7724] | 7151 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 7152 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7153 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7154 | ac_max_sed_lines=48
|
---|
| 7155 | ac_sed_frag=1 # Number of current file.
|
---|
| 7156 | ac_beg=1 # First line for current file.
|
---|
| 7157 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7158 | ac_more_lines=:
|
---|
| 7159 | ac_sed_cmds=
|
---|
| 7160 | while $ac_more_lines; do
|
---|
| 7161 | if test $ac_beg -gt 1; then
|
---|
| 7162 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7163 | else
|
---|
| 7164 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7165 | fi
|
---|
| 7166 | if test ! -s $tmp/subs.frag; then
|
---|
| 7167 | ac_more_lines=false
|
---|
| 7168 | else
|
---|
| 7169 | # The purpose of the label and of the branching condition is to
|
---|
| 7170 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7171 | # is no need to browse any of the substitutions).
|
---|
| 7172 | # These are the two extra sed commands mentioned above.
|
---|
| 7173 | (echo ':t
|
---|
| 7174 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 7175 | if test -z "$ac_sed_cmds"; then
|
---|
[7724] | 7176 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[5951] | 7177 | else
|
---|
[7724] | 7178 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[5951] | 7179 | fi
|
---|
| 7180 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 7181 | ac_beg=$ac_end
|
---|
| 7182 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 7183 | fi
|
---|
| 7184 | done
|
---|
| 7185 | if test -z "$ac_sed_cmds"; then
|
---|
| 7186 | ac_sed_cmds=cat
|
---|
| 7187 | fi
|
---|
| 7188 | fi # test -n "$CONFIG_FILES"
|
---|
| 7189 |
|
---|
[7724] | 7190 | _ACEOF
|
---|
| 7191 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 7192 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 7193 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 7194 | case $ac_file in
|
---|
| 7195 | - | *:- | *:-:* ) # input from stdin
|
---|
[7724] | 7196 | cat >$tmp/stdin
|
---|
| 7197 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 7198 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[5951] | 7199 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[7724] | 7200 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[5951] | 7201 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 7202 | esac
|
---|
| 7203 |
|
---|
| 7204 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
[7724] | 7205 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 7206 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7207 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7208 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 7209 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 7210 | . : '\(.\)' 2>/dev/null ||
|
---|
[5951] | 7211 | echo X"$ac_file" |
|
---|
| 7212 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7213 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7214 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7215 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7216 | s/.*/./; q'`
|
---|
[7724] | 7217 | { if $as_mkdir_p; then
|
---|
| 7218 | mkdir -p "$ac_dir"
|
---|
[5951] | 7219 | else
|
---|
[7724] | 7220 | as_dir="$ac_dir"
|
---|
| 7221 | as_dirs=
|
---|
| 7222 | while test ! -d "$as_dir"; do
|
---|
| 7223 | as_dirs="$as_dir $as_dirs"
|
---|
| 7224 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 7225 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7226 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7227 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7228 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 7229 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7230 | echo X"$as_dir" |
|
---|
| 7231 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7232 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7233 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7234 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7235 | s/.*/./; q'`
|
---|
| 7236 | done
|
---|
| 7237 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 7238 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 7239 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 7240 | { (exit 1); exit 1; }; }; }
|
---|
[5951] | 7241 |
|
---|
[7724] | 7242 | ac_builddir=.
|
---|
| 7243 |
|
---|
| 7244 | if test "$ac_dir" != .; then
|
---|
| 7245 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 7246 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 7247 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 7248 | else
|
---|
| 7249 | ac_dir_suffix= ac_top_builddir=
|
---|
| 7250 | fi
|
---|
| 7251 |
|
---|
| 7252 | case $srcdir in
|
---|
| 7253 | .) # No --srcdir option. We are building in place.
|
---|
| 7254 | ac_srcdir=.
|
---|
| 7255 | if test -z "$ac_top_builddir"; then
|
---|
| 7256 | ac_top_srcdir=.
|
---|
| 7257 | else
|
---|
| 7258 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 7259 | fi ;;
|
---|
| 7260 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 7261 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 7262 | ac_top_srcdir=$srcdir ;;
|
---|
[5951] | 7263 | *) # Relative path.
|
---|
[7724] | 7264 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 7265 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 7266 | esac
|
---|
| 7267 | case "$ac_dir" in
|
---|
| 7268 | .) ac_abs_builddir=$ac_builddir;;
|
---|
| 7269 | *)
|
---|
| 7270 | case $ac_builddir in
|
---|
| 7271 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 7272 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
|
---|
| 7273 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
|
---|
| 7274 | esac;;
|
---|
| 7275 | esac
|
---|
| 7276 | case "$ac_dir" in
|
---|
| 7277 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7278 | *)
|
---|
| 7279 | case ${ac_top_builddir}. in
|
---|
| 7280 | .) ac_abs_top_builddir="$ac_dir";;
|
---|
| 7281 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7282 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
|
---|
| 7283 | esac;;
|
---|
| 7284 | esac
|
---|
| 7285 | case "$ac_dir" in
|
---|
| 7286 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7287 | *)
|
---|
| 7288 | case $ac_srcdir in
|
---|
| 7289 | .) ac_abs_srcdir="$ac_dir";;
|
---|
| 7290 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7291 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
|
---|
| 7292 | esac;;
|
---|
| 7293 | esac
|
---|
| 7294 | case "$ac_dir" in
|
---|
| 7295 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7296 | *)
|
---|
| 7297 | case $ac_top_srcdir in
|
---|
| 7298 | .) ac_abs_top_srcdir="$ac_dir";;
|
---|
| 7299 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7300 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
|
---|
| 7301 | esac;;
|
---|
| 7302 | esac
|
---|
[5951] | 7303 |
|
---|
[7724] | 7304 |
|
---|
[5951] | 7305 | case $INSTALL in
|
---|
| 7306 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[7724] | 7307 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[5951] | 7308 | esac
|
---|
| 7309 |
|
---|
| 7310 | if test x"$ac_file" != x-; then
|
---|
[7724] | 7311 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[5951] | 7312 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7313 | rm -f "$ac_file"
|
---|
| 7314 | fi
|
---|
| 7315 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7316 | # use $as_me), people would be surprised to read:
|
---|
[7724] | 7317 | # /* config.h. Generated by config.status. */
|
---|
| 7318 | if test x"$ac_file" = x-; then
|
---|
| 7319 | configure_input=
|
---|
| 7320 | else
|
---|
| 7321 | configure_input="$ac_file. "
|
---|
| 7322 | fi
|
---|
| 7323 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 7324 | sed 's,.*/,,'` by configure."
|
---|
[5951] | 7325 |
|
---|
| 7326 | # First look for the input files in the build tree, otherwise in the
|
---|
| 7327 | # src tree.
|
---|
| 7328 | ac_file_inputs=`IFS=:
|
---|
| 7329 | for f in $ac_file_in; do
|
---|
| 7330 | case $f in
|
---|
| 7331 | -) echo $tmp/stdin ;;
|
---|
| 7332 | [\\/$]*)
|
---|
[7724] | 7333 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 7334 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[5951] | 7335 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7336 | { (exit 1); exit 1; }; }
|
---|
[7724] | 7337 | echo "$f";;
|
---|
[5951] | 7338 | *) # Relative
|
---|
[7724] | 7339 | if test -f "$f"; then
|
---|
| 7340 | # Build tree
|
---|
| 7341 | echo "$f"
|
---|
| 7342 | elif test -f "$srcdir/$f"; then
|
---|
| 7343 | # Source tree
|
---|
| 7344 | echo "$srcdir/$f"
|
---|
| 7345 | else
|
---|
| 7346 | # /dev/null tree
|
---|
| 7347 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[5951] | 7348 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7349 | { (exit 1); exit 1; }; }
|
---|
[7724] | 7350 | fi;;
|
---|
[5951] | 7351 | esac
|
---|
| 7352 | done` || { (exit 1); exit 1; }
|
---|
[7724] | 7353 | _ACEOF
|
---|
| 7354 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[5951] | 7355 | sed "$ac_vpsub
|
---|
| 7356 | $extrasub
|
---|
[7724] | 7357 | _ACEOF
|
---|
| 7358 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 7359 | :t
|
---|
| 7360 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 7361 | s,@configure_input@,$configure_input,;t t
|
---|
| 7362 | s,@srcdir@,$ac_srcdir,;t t
|
---|
[7724] | 7363 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
[5951] | 7364 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
[7724] | 7365 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 7366 | s,@builddir@,$ac_builddir,;t t
|
---|
| 7367 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 7368 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 7369 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
[5951] | 7370 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 7371 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 7372 | rm -f $tmp/stdin
|
---|
| 7373 | if test x"$ac_file" != x-; then
|
---|
| 7374 | mv $tmp/out $ac_file
|
---|
| 7375 | else
|
---|
| 7376 | cat $tmp/out
|
---|
| 7377 | rm -f $tmp/out
|
---|
| 7378 | fi
|
---|
| 7379 |
|
---|
| 7380 | done
|
---|
[7724] | 7381 | _ACEOF
|
---|
| 7382 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 7383 |
|
---|
| 7384 | #
|
---|
| 7385 | # CONFIG_HEADER section.
|
---|
| 7386 | #
|
---|
| 7387 |
|
---|
| 7388 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 7389 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 7390 | #
|
---|
| 7391 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[7724] | 7392 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 7393 | ac_dB='[ ].*$,\1#\2'
|
---|
[5951] | 7394 | ac_dC=' '
|
---|
| 7395 | ac_dD=',;t'
|
---|
| 7396 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
[7724] | 7397 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
[5951] | 7398 | ac_uB='$,\1#\2define\3'
|
---|
| 7399 | ac_uC=' '
|
---|
| 7400 | ac_uD=',;t'
|
---|
| 7401 |
|
---|
| 7402 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 7403 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 7404 | case $ac_file in
|
---|
| 7405 | - | *:- | *:-:* ) # input from stdin
|
---|
[7724] | 7406 | cat >$tmp/stdin
|
---|
| 7407 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 7408 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[5951] | 7409 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[7724] | 7410 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[5951] | 7411 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 7412 | esac
|
---|
| 7413 |
|
---|
[7724] | 7414 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[5951] | 7415 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7416 |
|
---|
| 7417 | # First look for the input files in the build tree, otherwise in the
|
---|
| 7418 | # src tree.
|
---|
| 7419 | ac_file_inputs=`IFS=:
|
---|
| 7420 | for f in $ac_file_in; do
|
---|
| 7421 | case $f in
|
---|
| 7422 | -) echo $tmp/stdin ;;
|
---|
| 7423 | [\\/$]*)
|
---|
[7724] | 7424 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 7425 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[5951] | 7426 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7427 | { (exit 1); exit 1; }; }
|
---|
[7724] | 7428 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 7429 | echo "$f";;
|
---|
[5951] | 7430 | *) # Relative
|
---|
[7724] | 7431 | if test -f "$f"; then
|
---|
| 7432 | # Build tree
|
---|
| 7433 | echo "$f"
|
---|
| 7434 | elif test -f "$srcdir/$f"; then
|
---|
| 7435 | # Source tree
|
---|
| 7436 | echo "$srcdir/$f"
|
---|
| 7437 | else
|
---|
| 7438 | # /dev/null tree
|
---|
| 7439 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[5951] | 7440 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7441 | { (exit 1); exit 1; }; }
|
---|
[7724] | 7442 | fi;;
|
---|
[5951] | 7443 | esac
|
---|
| 7444 | done` || { (exit 1); exit 1; }
|
---|
| 7445 | # Remove the trailing spaces.
|
---|
[7724] | 7446 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[5951] | 7447 |
|
---|
[7724] | 7448 | _ACEOF
|
---|
[5951] | 7449 |
|
---|
| 7450 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 7451 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 7452 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 7453 | # templates, and the second `#undef' templates.
|
---|
| 7454 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 7455 | # config.status. Protect against being in an unquoted here document
|
---|
| 7456 | # in config.status.
|
---|
| 7457 | rm -f conftest.defines conftest.undefs
|
---|
| 7458 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 7459 | # Putting comments in sed scripts is not portable.
|
---|
| 7460 | #
|
---|
| 7461 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 7462 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 7463 | # See the Autoconf documentation for `clear'.
|
---|
[7724] | 7464 | cat >confdef2sed.sed <<\_ACEOF
|
---|
[5951] | 7465 | s/[\\&,]/\\&/g
|
---|
| 7466 | s,[\\$`],\\&,g
|
---|
| 7467 | t clear
|
---|
| 7468 | : clear
|
---|
[7724] | 7469 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
[5951] | 7470 | t end
|
---|
[7724] | 7471 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
[5951] | 7472 | : end
|
---|
[7724] | 7473 | _ACEOF
|
---|
[5951] | 7474 | # If some macros were called several times there might be several times
|
---|
| 7475 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 7476 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 7477 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 7478 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 7479 | rm -f confdef2sed.sed
|
---|
| 7480 |
|
---|
| 7481 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 7482 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7483 | # on some systems where configure will not decide to define it.
|
---|
[7724] | 7484 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 7485 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 7486 | _ACEOF
|
---|
[5951] | 7487 |
|
---|
| 7488 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 7489 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 7490 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
[7724] | 7491 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
[5951] | 7492 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 7493 | echo ' :' >>$CONFIG_STATUS
|
---|
| 7494 | rm -f conftest.tail
|
---|
| 7495 | while grep . conftest.defines >/dev/null
|
---|
| 7496 | do
|
---|
| 7497 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 7498 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 7499 | # Speed up: don't consider the non `#define' lines.
|
---|
[7724] | 7500 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
[5951] | 7501 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 7502 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 7503 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 7504 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 7505 | echo 'CEOF
|
---|
| 7506 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 7507 | rm -f $tmp/in
|
---|
| 7508 | mv $tmp/out $tmp/in
|
---|
| 7509 | ' >>$CONFIG_STATUS
|
---|
| 7510 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 7511 | rm -f conftest.defines
|
---|
| 7512 | mv conftest.tail conftest.defines
|
---|
| 7513 | done
|
---|
| 7514 | rm -f conftest.defines
|
---|
[7724] | 7515 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
[5951] | 7516 | echo >>$CONFIG_STATUS
|
---|
| 7517 |
|
---|
| 7518 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 7519 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 7520 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 7521 | rm -f conftest.tail
|
---|
| 7522 | while grep . conftest.undefs >/dev/null
|
---|
| 7523 | do
|
---|
| 7524 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 7525 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 7526 | # Speed up: don't consider the non `#undef'
|
---|
[7724] | 7527 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
[5951] | 7528 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 7529 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 7530 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 7531 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 7532 | echo 'CEOF
|
---|
| 7533 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 7534 | rm -f $tmp/in
|
---|
| 7535 | mv $tmp/out $tmp/in
|
---|
| 7536 | ' >>$CONFIG_STATUS
|
---|
| 7537 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 7538 | rm -f conftest.undefs
|
---|
| 7539 | mv conftest.tail conftest.undefs
|
---|
| 7540 | done
|
---|
| 7541 | rm -f conftest.undefs
|
---|
| 7542 |
|
---|
[7724] | 7543 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 7544 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7545 | # use $as_me), people would be surprised to read:
|
---|
[7724] | 7546 | # /* config.h. Generated by config.status. */
|
---|
[5951] | 7547 | if test x"$ac_file" = x-; then
|
---|
[7724] | 7548 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[5951] | 7549 | else
|
---|
[7724] | 7550 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
[5951] | 7551 | fi
|
---|
| 7552 | cat $tmp/in >>$tmp/config.h
|
---|
| 7553 | rm -f $tmp/in
|
---|
| 7554 | if test x"$ac_file" != x-; then
|
---|
[7724] | 7555 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 7556 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
[5951] | 7557 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 7558 | else
|
---|
[7724] | 7559 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 7560 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7561 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7562 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 7563 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 7564 | . : '\(.\)' 2>/dev/null ||
|
---|
[5951] | 7565 | echo X"$ac_file" |
|
---|
| 7566 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7567 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7568 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7569 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7570 | s/.*/./; q'`
|
---|
[7724] | 7571 | { if $as_mkdir_p; then
|
---|
| 7572 | mkdir -p "$ac_dir"
|
---|
| 7573 | else
|
---|
| 7574 | as_dir="$ac_dir"
|
---|
| 7575 | as_dirs=
|
---|
| 7576 | while test ! -d "$as_dir"; do
|
---|
| 7577 | as_dirs="$as_dir $as_dirs"
|
---|
| 7578 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 7579 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7580 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7581 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7582 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 7583 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7584 | echo X"$as_dir" |
|
---|
| 7585 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7586 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7587 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7588 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7589 | s/.*/./; q'`
|
---|
| 7590 | done
|
---|
| 7591 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 7592 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 7593 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 7594 | { (exit 1); exit 1; }; }; }
|
---|
[5951] | 7595 |
|
---|
| 7596 | rm -f $ac_file
|
---|
| 7597 | mv $tmp/config.h $ac_file
|
---|
| 7598 | fi
|
---|
| 7599 | else
|
---|
| 7600 | cat $tmp/config.h
|
---|
| 7601 | rm -f $tmp/config.h
|
---|
| 7602 | fi
|
---|
| 7603 | done
|
---|
[7724] | 7604 | _ACEOF
|
---|
[5951] | 7605 |
|
---|
[7724] | 7606 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[5951] | 7607 |
|
---|
| 7608 | { (exit 0); exit 0; }
|
---|
[7724] | 7609 | _ACEOF
|
---|
[5951] | 7610 | chmod +x $CONFIG_STATUS
|
---|
| 7611 | ac_clean_files=$ac_clean_files_save
|
---|
| 7612 |
|
---|
[7724] | 7613 |
|
---|
[5951] | 7614 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7615 | # config.status does its own redirection, appending to config.log.
|
---|
| 7616 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7617 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7618 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7619 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7620 | # appended to by config.status. When coming back to configure, we
|
---|
| 7621 | # need to make the FD available again.
|
---|
| 7622 | if test "$no_create" != yes; then
|
---|
| 7623 | ac_cs_success=:
|
---|
[7724] | 7624 | ac_config_status_args=
|
---|
| 7625 | test "$silent" = yes &&
|
---|
| 7626 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[5951] | 7627 | exec 5>/dev/null
|
---|
[7724] | 7628 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[5951] | 7629 | exec 5>>config.log
|
---|
| 7630 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7631 | # would make configure fail if this is the last instruction.
|
---|
| 7632 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 7633 | fi
|
---|
| 7634 |
|
---|
| 7635 | #
|
---|
| 7636 | # CONFIG_SUBDIRS section.
|
---|
| 7637 | #
|
---|
| 7638 | if test "$no_recursion" != yes; then
|
---|
| 7639 |
|
---|
| 7640 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 7641 | ac_sub_configure_args=
|
---|
| 7642 | ac_prev=
|
---|
| 7643 | for ac_arg in $ac_configure_args; do
|
---|
| 7644 | if test -n "$ac_prev"; then
|
---|
| 7645 | ac_prev=
|
---|
| 7646 | continue
|
---|
| 7647 | fi
|
---|
| 7648 | case $ac_arg in
|
---|
| 7649 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 7650 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 7651 | ac_prev=cache_file ;;
|
---|
| 7652 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 7653 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 7654 | | --c=*)
|
---|
| 7655 | ;;
|
---|
| 7656 | --config-cache | -C)
|
---|
| 7657 | ;;
|
---|
| 7658 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 7659 | ac_prev=srcdir ;;
|
---|
| 7660 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 7661 | ;;
|
---|
[7724] | 7662 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 7663 | ac_prev=prefix ;;
|
---|
| 7664 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 7665 | ;;
|
---|
[5951] | 7666 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 7667 | esac
|
---|
| 7668 | done
|
---|
| 7669 |
|
---|
[7724] | 7670 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 7671 | # in subdir configurations.
|
---|
| 7672 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[5951] | 7673 |
|
---|
[7724] | 7674 | ac_popdir=`pwd`
|
---|
| 7675 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 7676 |
|
---|
[5951] | 7677 | # Do not complain, so a configure script can configure whichever
|
---|
| 7678 | # parts of a large source tree are present.
|
---|
[7724] | 7679 | test -d $srcdir/$ac_dir || continue
|
---|
[5951] | 7680 |
|
---|
[7724] | 7681 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 7682 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 7683 | { if $as_mkdir_p; then
|
---|
| 7684 | mkdir -p "$ac_dir"
|
---|
| 7685 | else
|
---|
| 7686 | as_dir="$ac_dir"
|
---|
| 7687 | as_dirs=
|
---|
| 7688 | while test ! -d "$as_dir"; do
|
---|
| 7689 | as_dirs="$as_dir $as_dirs"
|
---|
| 7690 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 7691 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7692 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7693 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7694 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 7695 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7696 | echo X"$as_dir" |
|
---|
| 7697 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7698 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7699 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7700 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7701 | s/.*/./; q'`
|
---|
| 7702 | done
|
---|
| 7703 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 7704 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 7705 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 7706 | { (exit 1); exit 1; }; }; }
|
---|
[5951] | 7707 |
|
---|
[7724] | 7708 | ac_builddir=.
|
---|
[5951] | 7709 |
|
---|
[7724] | 7710 | if test "$ac_dir" != .; then
|
---|
| 7711 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 7712 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 7713 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 7714 | else
|
---|
| 7715 | ac_dir_suffix= ac_top_builddir=
|
---|
| 7716 | fi
|
---|
[5951] | 7717 |
|
---|
[7724] | 7718 | case $srcdir in
|
---|
| 7719 | .) # No --srcdir option. We are building in place.
|
---|
| 7720 | ac_srcdir=.
|
---|
| 7721 | if test -z "$ac_top_builddir"; then
|
---|
| 7722 | ac_top_srcdir=.
|
---|
| 7723 | else
|
---|
| 7724 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 7725 | fi ;;
|
---|
| 7726 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 7727 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 7728 | ac_top_srcdir=$srcdir ;;
|
---|
| 7729 | *) # Relative path.
|
---|
| 7730 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 7731 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 7732 | esac
|
---|
| 7733 | case "$ac_dir" in
|
---|
| 7734 | .) ac_abs_builddir=$ac_builddir;;
|
---|
| 7735 | *)
|
---|
| 7736 | case $ac_builddir in
|
---|
| 7737 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 7738 | [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
|
---|
| 7739 | *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
|
---|
| 7740 | esac;;
|
---|
| 7741 | esac
|
---|
| 7742 | case "$ac_dir" in
|
---|
| 7743 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7744 | *)
|
---|
| 7745 | case ${ac_top_builddir}. in
|
---|
| 7746 | .) ac_abs_top_builddir="$ac_dir";;
|
---|
| 7747 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7748 | *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
|
---|
| 7749 | esac;;
|
---|
| 7750 | esac
|
---|
| 7751 | case "$ac_dir" in
|
---|
| 7752 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7753 | *)
|
---|
| 7754 | case $ac_srcdir in
|
---|
| 7755 | .) ac_abs_srcdir="$ac_dir";;
|
---|
| 7756 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7757 | *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
|
---|
| 7758 | esac;;
|
---|
| 7759 | esac
|
---|
| 7760 | case "$ac_dir" in
|
---|
| 7761 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7762 | *)
|
---|
| 7763 | case $ac_top_srcdir in
|
---|
| 7764 | .) ac_abs_top_srcdir="$ac_dir";;
|
---|
| 7765 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7766 | *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
|
---|
| 7767 | esac;;
|
---|
| 7768 | esac
|
---|
[5951] | 7769 |
|
---|
| 7770 |
|
---|
[7724] | 7771 | cd $ac_dir
|
---|
| 7772 |
|
---|
[5951] | 7773 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[7724] | 7774 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 7775 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 7776 | elif test -f $ac_srcdir/configure; then
|
---|
| 7777 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 7778 | elif test -f $ac_srcdir/configure.in; then
|
---|
[5951] | 7779 | ac_sub_configure=$ac_configure
|
---|
| 7780 | else
|
---|
[7724] | 7781 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 7782 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[5951] | 7783 | ac_sub_configure=
|
---|
| 7784 | fi
|
---|
| 7785 |
|
---|
| 7786 | # The recursion is here.
|
---|
| 7787 | if test -n "$ac_sub_configure"; then
|
---|
| 7788 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 7789 | case $cache_file in
|
---|
| 7790 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
| 7791 | *) # Relative path.
|
---|
[7724] | 7792 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[5951] | 7793 | esac
|
---|
| 7794 |
|
---|
[7724] | 7795 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 7796 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[5951] | 7797 | # The eval makes quoting arguments work.
|
---|
| 7798 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
[7724] | 7799 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 7800 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 7801 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
[5951] | 7802 | { (exit 1); exit 1; }; }
|
---|
| 7803 | fi
|
---|
| 7804 |
|
---|
| 7805 | cd $ac_popdir
|
---|
| 7806 | done
|
---|
| 7807 | fi
|
---|
| 7808 |
|
---|
[7724] | 7809 |
|
---|
[6427] | 7810 | echo "-------------------------------------"
|
---|
| 7811 | echo "Greenstone 3 successfully configured."
|
---|
| 7812 | echo ""
|
---|