[3365] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[10192] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[3365] | 4 | #
|
---|
[10192] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[3365] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[3365] | 11 |
|
---|
[8063] | 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
[10192] | 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+"$@"}'='"$@"'
|
---|
[8063] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
[10192] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8063] | 23 |
|
---|
[10192] | 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 |
|
---|
[8063] | 65 | # Name of the executable.
|
---|
[10192] | 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'`
|
---|
[8063] | 76 |
|
---|
[10192] | 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 |
|
---|
[8063] | 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 |
|
---|
[10192] | 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
[8063] | 220 | else
|
---|
[10192] | 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
[8063] | 223 | fi
|
---|
| 224 |
|
---|
[10192] | 225 | as_executable_p="test -f"
|
---|
[8063] | 226 |
|
---|
[10192] | 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 |
|
---|
[8063] | 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.
|
---|
[10192] | 241 | $as_unset CDPATH
|
---|
[8063] | 242 |
|
---|
[10192] | 243 |
|
---|
[8063] | 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 | #
|
---|
[3365] | 254 | ac_default_prefix=/usr/local
|
---|
[10192] | 255 | ac_config_libobj_dir=.
|
---|
[8063] | 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
[10192] | 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
[8063] | 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[3365] | 261 |
|
---|
[8063] | 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 |
|
---|
[10192] | 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
[8063] | 273 |
|
---|
| 274 | ac_unique_file="text/MGQuery.cpp"
|
---|
| 275 | # Factoring default headers for most tests.
|
---|
| 276 | ac_includes_default="\
|
---|
| 277 | #include <stdio.h>
|
---|
[10192] | 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
|
---|
[8063] | 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
|
---|
[10192] | 298 | #if HAVE_STRINGS_H
|
---|
| 299 | # include <strings.h>
|
---|
| 300 | #endif
|
---|
[8063] | 301 | #if HAVE_INTTYPES_H
|
---|
| 302 | # include <inttypes.h>
|
---|
[10192] | 303 | #else
|
---|
| 304 | # if HAVE_STDINT_H
|
---|
| 305 | # include <stdint.h>
|
---|
| 306 | # endif
|
---|
[8063] | 307 | #endif
|
---|
| 308 | #if HAVE_UNISTD_H
|
---|
| 309 | # include <unistd.h>
|
---|
| 310 | #endif"
|
---|
| 311 |
|
---|
[10848] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LTLIBOBJS'
|
---|
[10192] | 313 | ac_subst_files=''
|
---|
| 314 |
|
---|
[3365] | 315 | # Initialize some variables set by options.
|
---|
[8063] | 316 | ac_init_help=
|
---|
| 317 | ac_init_version=false
|
---|
[3365] | 318 | # The variables have the same names as the options, with
|
---|
| 319 | # dashes changed to underlines.
|
---|
[8063] | 320 | cache_file=/dev/null
|
---|
[3365] | 321 | exec_prefix=NONE
|
---|
| 322 | no_create=
|
---|
| 323 | no_recursion=
|
---|
| 324 | prefix=NONE
|
---|
| 325 | program_prefix=NONE
|
---|
| 326 | program_suffix=NONE
|
---|
| 327 | program_transform_name=s,x,x,
|
---|
| 328 | silent=
|
---|
| 329 | site=
|
---|
| 330 | srcdir=
|
---|
| 331 | verbose=
|
---|
| 332 | x_includes=NONE
|
---|
| 333 | x_libraries=NONE
|
---|
[8063] | 334 |
|
---|
| 335 | # Installation directory options.
|
---|
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 337 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 338 | # by default will actually change.
|
---|
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[3365] | 340 | bindir='${exec_prefix}/bin'
|
---|
| 341 | sbindir='${exec_prefix}/sbin'
|
---|
| 342 | libexecdir='${exec_prefix}/libexec'
|
---|
| 343 | datadir='${prefix}/share'
|
---|
| 344 | sysconfdir='${prefix}/etc'
|
---|
| 345 | sharedstatedir='${prefix}/com'
|
---|
| 346 | localstatedir='${prefix}/var'
|
---|
| 347 | libdir='${exec_prefix}/lib'
|
---|
| 348 | includedir='${prefix}/include'
|
---|
| 349 | oldincludedir='/usr/include'
|
---|
| 350 | infodir='${prefix}/info'
|
---|
| 351 | mandir='${prefix}/man'
|
---|
| 352 |
|
---|
| 353 | ac_prev=
|
---|
| 354 | for ac_option
|
---|
| 355 | do
|
---|
| 356 | # If the previous option needs an argument, assign it.
|
---|
| 357 | if test -n "$ac_prev"; then
|
---|
| 358 | eval "$ac_prev=\$ac_option"
|
---|
| 359 | ac_prev=
|
---|
| 360 | continue
|
---|
| 361 | fi
|
---|
| 362 |
|
---|
[8063] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[3365] | 364 |
|
---|
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 366 |
|
---|
[8063] | 367 | case $ac_option in
|
---|
[3365] | 368 |
|
---|
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 370 | ac_prev=bindir ;;
|
---|
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8063] | 372 | bindir=$ac_optarg ;;
|
---|
[3365] | 373 |
|
---|
| 374 | -build | --build | --buil | --bui | --bu)
|
---|
[8063] | 375 | ac_prev=build_alias ;;
|
---|
[3365] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8063] | 377 | build_alias=$ac_optarg ;;
|
---|
[3365] | 378 |
|
---|
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 381 | ac_prev=cache_file ;;
|
---|
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8063] | 384 | cache_file=$ac_optarg ;;
|
---|
[3365] | 385 |
|
---|
[8063] | 386 | --config-cache | -C)
|
---|
| 387 | cache_file=config.cache ;;
|
---|
| 388 |
|
---|
[3365] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 390 | ac_prev=datadir ;;
|
---|
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 392 | | --da=*)
|
---|
[8063] | 393 | datadir=$ac_optarg ;;
|
---|
[3365] | 394 |
|
---|
| 395 | -disable-* | --disable-*)
|
---|
[8063] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[3365] | 397 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 400 | { (exit 1); exit 1; }; }
|
---|
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 402 | eval "enable_$ac_feature=no" ;;
|
---|
[3365] | 403 |
|
---|
| 404 | -enable-* | --enable-*)
|
---|
[8063] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[3365] | 406 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 409 | { (exit 1); exit 1; }; }
|
---|
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 411 | case $ac_option in
|
---|
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[3365] | 413 | *) ac_optarg=yes ;;
|
---|
| 414 | esac
|
---|
[8063] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[3365] | 416 |
|
---|
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 419 | | --exec | --exe | --ex)
|
---|
| 420 | ac_prev=exec_prefix ;;
|
---|
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 423 | | --exec=* | --exe=* | --ex=*)
|
---|
[8063] | 424 | exec_prefix=$ac_optarg ;;
|
---|
[3365] | 425 |
|
---|
| 426 | -gas | --gas | --ga | --g)
|
---|
| 427 | # Obsolete; use --with-gas.
|
---|
| 428 | with_gas=yes ;;
|
---|
| 429 |
|
---|
[8063] | 430 | -help | --help | --hel | --he | -h)
|
---|
| 431 | ac_init_help=long ;;
|
---|
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 433 | ac_init_help=recursive ;;
|
---|
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 435 | ac_init_help=short ;;
|
---|
[3365] | 436 |
|
---|
| 437 | -host | --host | --hos | --ho)
|
---|
[8063] | 438 | ac_prev=host_alias ;;
|
---|
[3365] | 439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8063] | 440 | host_alias=$ac_optarg ;;
|
---|
[3365] | 441 |
|
---|
| 442 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 443 | | --includ | --inclu | --incl | --inc)
|
---|
| 444 | ac_prev=includedir ;;
|
---|
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8063] | 447 | includedir=$ac_optarg ;;
|
---|
[3365] | 448 |
|
---|
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 450 | ac_prev=infodir ;;
|
---|
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8063] | 452 | infodir=$ac_optarg ;;
|
---|
[3365] | 453 |
|
---|
| 454 | -libdir | --libdir | --libdi | --libd)
|
---|
| 455 | ac_prev=libdir ;;
|
---|
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8063] | 457 | libdir=$ac_optarg ;;
|
---|
[3365] | 458 |
|
---|
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 460 | | --libexe | --libex | --libe)
|
---|
| 461 | ac_prev=libexecdir ;;
|
---|
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 463 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8063] | 464 | libexecdir=$ac_optarg ;;
|
---|
[3365] | 465 |
|
---|
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 467 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 468 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 469 | ac_prev=localstatedir ;;
|
---|
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[8063] | 473 | localstatedir=$ac_optarg ;;
|
---|
[3365] | 474 |
|
---|
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 476 | ac_prev=mandir ;;
|
---|
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8063] | 478 | mandir=$ac_optarg ;;
|
---|
[3365] | 479 |
|
---|
| 480 | -nfp | --nfp | --nf)
|
---|
| 481 | # Obsolete; use --without-fp.
|
---|
| 482 | with_fp=no ;;
|
---|
| 483 |
|
---|
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[10192] | 485 | | --no-cr | --no-c | -n)
|
---|
[3365] | 486 | no_create=yes ;;
|
---|
| 487 |
|
---|
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 490 | no_recursion=yes ;;
|
---|
| 491 |
|
---|
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 494 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 495 | ac_prev=oldincludedir ;;
|
---|
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8063] | 499 | oldincludedir=$ac_optarg ;;
|
---|
[3365] | 500 |
|
---|
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 502 | ac_prev=prefix ;;
|
---|
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8063] | 504 | prefix=$ac_optarg ;;
|
---|
[3365] | 505 |
|
---|
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 507 | | --program-pre | --program-pr | --program-p)
|
---|
| 508 | ac_prev=program_prefix ;;
|
---|
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8063] | 511 | program_prefix=$ac_optarg ;;
|
---|
[3365] | 512 |
|
---|
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 514 | | --program-suf | --program-su | --program-s)
|
---|
| 515 | ac_prev=program_suffix ;;
|
---|
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8063] | 518 | program_suffix=$ac_optarg ;;
|
---|
[3365] | 519 |
|
---|
| 520 | -program-transform-name | --program-transform-name \
|
---|
| 521 | | --program-transform-nam | --program-transform-na \
|
---|
| 522 | | --program-transform-n | --program-transform- \
|
---|
| 523 | | --program-transform | --program-transfor \
|
---|
| 524 | | --program-transfo | --program-transf \
|
---|
| 525 | | --program-trans | --program-tran \
|
---|
| 526 | | --progr-tra | --program-tr | --program-t)
|
---|
| 527 | ac_prev=program_transform_name ;;
|
---|
| 528 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 529 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 530 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 531 | | --program-transform=* | --program-transfor=* \
|
---|
| 532 | | --program-transfo=* | --program-transf=* \
|
---|
| 533 | | --program-trans=* | --program-tran=* \
|
---|
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8063] | 535 | program_transform_name=$ac_optarg ;;
|
---|
[3365] | 536 |
|
---|
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 538 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 539 | silent=yes ;;
|
---|
| 540 |
|
---|
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 542 | ac_prev=sbindir ;;
|
---|
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 544 | | --sbi=* | --sb=*)
|
---|
[8063] | 545 | sbindir=$ac_optarg ;;
|
---|
[3365] | 546 |
|
---|
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 549 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 550 | | --sha | --sh)
|
---|
| 551 | ac_prev=sharedstatedir ;;
|
---|
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 555 | | --sha=* | --sh=*)
|
---|
[8063] | 556 | sharedstatedir=$ac_optarg ;;
|
---|
[3365] | 557 |
|
---|
| 558 | -site | --site | --sit)
|
---|
| 559 | ac_prev=site ;;
|
---|
| 560 | -site=* | --site=* | --sit=*)
|
---|
[8063] | 561 | site=$ac_optarg ;;
|
---|
[3365] | 562 |
|
---|
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 564 | ac_prev=srcdir ;;
|
---|
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8063] | 566 | srcdir=$ac_optarg ;;
|
---|
[3365] | 567 |
|
---|
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 569 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 570 | ac_prev=sysconfdir ;;
|
---|
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8063] | 573 | sysconfdir=$ac_optarg ;;
|
---|
[3365] | 574 |
|
---|
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8063] | 576 | ac_prev=target_alias ;;
|
---|
[3365] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8063] | 578 | target_alias=$ac_optarg ;;
|
---|
[3365] | 579 |
|
---|
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 581 | verbose=yes ;;
|
---|
| 582 |
|
---|
[8063] | 583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 584 | ac_init_version=: ;;
|
---|
[3365] | 585 |
|
---|
| 586 | -with-* | --with-*)
|
---|
[8063] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[3365] | 588 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 591 | { (exit 1); exit 1; }; }
|
---|
[3365] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
[8063] | 593 | case $ac_option in
|
---|
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[3365] | 595 | *) ac_optarg=yes ;;
|
---|
| 596 | esac
|
---|
[8063] | 597 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[3365] | 598 |
|
---|
| 599 | -without-* | --without-*)
|
---|
[8063] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[3365] | 601 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 604 | { (exit 1); exit 1; }; }
|
---|
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 606 | eval "with_$ac_package=no" ;;
|
---|
[3365] | 607 |
|
---|
| 608 | --x)
|
---|
| 609 | # Obsolete; use --with-x.
|
---|
| 610 | with_x=yes ;;
|
---|
| 611 |
|
---|
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 613 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 614 | ac_prev=x_includes ;;
|
---|
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8063] | 617 | x_includes=$ac_optarg ;;
|
---|
[3365] | 618 |
|
---|
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 621 | ac_prev=x_libraries ;;
|
---|
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8063] | 624 | x_libraries=$ac_optarg ;;
|
---|
[3365] | 625 |
|
---|
[8063] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 627 | Try \`$0 --help' for more information." >&2
|
---|
| 628 | { (exit 1); exit 1; }; }
|
---|
[3365] | 629 | ;;
|
---|
| 630 |
|
---|
[8063] | 631 | *=*)
|
---|
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 633 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 636 | { (exit 1); exit 1; }; }
|
---|
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 638 | eval "$ac_envvar='$ac_optarg'"
|
---|
| 639 | export $ac_envvar ;;
|
---|
| 640 |
|
---|
[3365] | 641 | *)
|
---|
[8063] | 642 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[10192] | 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[3365] | 647 | ;;
|
---|
| 648 |
|
---|
| 649 | esac
|
---|
| 650 | done
|
---|
| 651 |
|
---|
| 652 | if test -n "$ac_prev"; then
|
---|
[8063] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 655 | { (exit 1); exit 1; }; }
|
---|
[3365] | 656 | fi
|
---|
| 657 |
|
---|
[8063] | 658 | # Be sure to have absolute paths.
|
---|
[10192] | 659 | for ac_var in exec_prefix prefix
|
---|
| 660 | do
|
---|
| 661 | eval ac_val=$`echo $ac_var`
|
---|
| 662 | case $ac_val in
|
---|
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 665 | { (exit 1); exit 1; }; };;
|
---|
| 666 | esac
|
---|
| 667 | done
|
---|
| 668 |
|
---|
| 669 | # Be sure to have absolute paths.
|
---|
[8063] | 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
[10192] | 671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[3365] | 672 | do
|
---|
[8063] | 673 | eval ac_val=$`echo $ac_var`
|
---|
| 674 | case $ac_val in
|
---|
| 675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
[10192] | 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
[8063] | 677 | { (exit 1); exit 1; }; };;
|
---|
[3365] | 678 | esac
|
---|
| 679 | done
|
---|
| 680 |
|
---|
[8063] | 681 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 682 | # used to hold the argument of --host etc.
|
---|
[10192] | 683 | # FIXME: To remove some day.
|
---|
[8063] | 684 | build=$build_alias
|
---|
| 685 | host=$host_alias
|
---|
| 686 | target=$target_alias
|
---|
[3365] | 687 |
|
---|
[10192] | 688 | # FIXME: To remove some day.
|
---|
[8063] | 689 | if test "x$host_alias" != x; then
|
---|
| 690 | if test "x$build_alias" = x; then
|
---|
| 691 | cross_compiling=maybe
|
---|
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 694 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 695 | cross_compiling=yes
|
---|
| 696 | fi
|
---|
| 697 | fi
|
---|
[3365] | 698 |
|
---|
[8063] | 699 | ac_tool_prefix=
|
---|
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[3365] | 701 |
|
---|
[8063] | 702 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 703 |
|
---|
[10192] | 704 |
|
---|
[3365] | 705 | # Find the source files, if location was not specified.
|
---|
| 706 | if test -z "$srcdir"; then
|
---|
| 707 | ac_srcdir_defaulted=yes
|
---|
| 708 | # Try the directory containing this script, then its parent.
|
---|
[10192] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 712 | X"$0" : 'X\(//\)$' \| \
|
---|
| 713 | X"$0" : 'X\(/\)' \| \
|
---|
| 714 | . : '\(.\)' 2>/dev/null ||
|
---|
| 715 | echo X"$0" |
|
---|
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 720 | s/.*/./; q'`
|
---|
[3365] | 721 | srcdir=$ac_confdir
|
---|
| 722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 723 | srcdir=..
|
---|
| 724 | fi
|
---|
| 725 | else
|
---|
| 726 | ac_srcdir_defaulted=no
|
---|
| 727 | fi
|
---|
| 728 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 729 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
[10192] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
[8063] | 731 | { (exit 1); exit 1; }; }
|
---|
[3365] | 732 | else
|
---|
[10192] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
[8063] | 734 | { (exit 1); exit 1; }; }
|
---|
[3365] | 735 | fi
|
---|
| 736 | fi
|
---|
[10192] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 739 | { (exit 1); exit 1; }; }
|
---|
[8063] | 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 741 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 742 | ac_env_build_alias_value=$build_alias
|
---|
| 743 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 744 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 745 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 746 | ac_env_host_alias_value=$host_alias
|
---|
| 747 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 748 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 749 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 750 | ac_env_target_alias_value=$target_alias
|
---|
| 751 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 752 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 753 | ac_env_CXX_set=${CXX+set}
|
---|
| 754 | ac_env_CXX_value=$CXX
|
---|
| 755 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 756 | ac_cv_env_CXX_value=$CXX
|
---|
| 757 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 758 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 759 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 760 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 762 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 769 | ac_env_CC_set=${CC+set}
|
---|
| 770 | ac_env_CC_value=$CC
|
---|
| 771 | ac_cv_env_CC_set=${CC+set}
|
---|
| 772 | ac_cv_env_CC_value=$CC
|
---|
| 773 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 774 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 775 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 776 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 777 | ac_env_CPP_set=${CPP+set}
|
---|
| 778 | ac_env_CPP_value=$CPP
|
---|
| 779 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 780 | ac_cv_env_CPP_value=$CPP
|
---|
[3365] | 781 |
|
---|
[8063] | 782 | #
|
---|
| 783 | # Report the --help message.
|
---|
| 784 | #
|
---|
| 785 | if test "$ac_init_help" = "long"; then
|
---|
| 786 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 787 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
[10192] | 788 | cat <<_ACEOF
|
---|
[8063] | 789 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 790 |
|
---|
| 791 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 792 |
|
---|
| 793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 794 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 795 |
|
---|
| 796 | Defaults for the options are specified in brackets.
|
---|
| 797 |
|
---|
| 798 | Configuration:
|
---|
| 799 | -h, --help display this help and exit
|
---|
| 800 | --help=short display options specific to this package
|
---|
| 801 | --help=recursive display the short help of all the included packages
|
---|
| 802 | -V, --version display version information and exit
|
---|
| 803 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 804 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 805 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 806 | -n, --no-create do not create output files
|
---|
| 807 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 808 |
|
---|
[10192] | 809 | _ACEOF
|
---|
[8063] | 810 |
|
---|
[10192] | 811 | cat <<_ACEOF
|
---|
[8063] | 812 | Installation directories:
|
---|
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[10192] | 814 | [$ac_default_prefix]
|
---|
[8063] | 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[10192] | 816 | [PREFIX]
|
---|
[8063] | 817 |
|
---|
| 818 | By default, \`make install' will install all the files in
|
---|
| 819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 821 | for instance \`--prefix=\$HOME'.
|
---|
| 822 |
|
---|
| 823 | For better control, use the options below.
|
---|
| 824 |
|
---|
| 825 | Fine tuning of the installation directories:
|
---|
| 826 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 827 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 828 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 833 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 834 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 835 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 836 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 837 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[10192] | 838 | _ACEOF
|
---|
[8063] | 839 |
|
---|
[10192] | 840 | cat <<\_ACEOF
|
---|
[8063] | 841 |
|
---|
| 842 | Program names:
|
---|
| 843 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 844 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 845 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[10192] | 846 | _ACEOF
|
---|
[8063] | 847 | fi
|
---|
| 848 |
|
---|
| 849 | if test -n "$ac_init_help"; then
|
---|
| 850 |
|
---|
[10192] | 851 | cat <<\_ACEOF
|
---|
[8063] | 852 |
|
---|
| 853 | Optional Features:
|
---|
| 854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 856 | --enable-override-longlong
|
---|
| 857 | overide use of long long with GCC
|
---|
| 858 |
|
---|
| 859 | Optional Packages:
|
---|
| 860 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 861 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 862 | --with-dmalloc use dmalloc, as in
|
---|
| 863 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 864 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 865 | --with-gnu-readline compile with GNU readline support
|
---|
| 866 |
|
---|
| 867 | Some influential environment variables:
|
---|
| 868 | CXX C++ compiler command
|
---|
| 869 | CXXFLAGS C++ compiler flags
|
---|
| 870 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 871 | nonstandard directory <lib dir>
|
---|
| 872 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 873 | headers in a nonstandard directory <include dir>
|
---|
| 874 | CC C compiler command
|
---|
| 875 | CFLAGS C compiler flags
|
---|
| 876 | CPP C preprocessor
|
---|
| 877 |
|
---|
| 878 | Use these variables to override the choices made by `configure' or to help
|
---|
| 879 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 880 |
|
---|
[10192] | 881 | _ACEOF
|
---|
[8063] | 882 | fi
|
---|
| 883 |
|
---|
| 884 | if test "$ac_init_help" = "recursive"; then
|
---|
| 885 | # If there are subdirs, report their specific --help.
|
---|
| 886 | ac_popdir=`pwd`
|
---|
[10192] | 887 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 888 | test -d $ac_dir || continue
|
---|
| 889 | ac_builddir=.
|
---|
[8063] | 890 |
|
---|
[10192] | 891 | if test "$ac_dir" != .; then
|
---|
| 892 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 893 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 894 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 895 | else
|
---|
| 896 | ac_dir_suffix= ac_top_builddir=
|
---|
| 897 | fi
|
---|
[8063] | 898 |
|
---|
[10192] | 899 | case $srcdir in
|
---|
| 900 | .) # No --srcdir option. We are building in place.
|
---|
| 901 | ac_srcdir=.
|
---|
| 902 | if test -z "$ac_top_builddir"; then
|
---|
| 903 | ac_top_srcdir=.
|
---|
| 904 | else
|
---|
| 905 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 906 | fi ;;
|
---|
| 907 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 908 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 909 | ac_top_srcdir=$srcdir ;;
|
---|
| 910 | *) # Relative path.
|
---|
| 911 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 912 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 913 | esac
|
---|
| 914 |
|
---|
| 915 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 916 | # the directories may not exist.
|
---|
| 917 | case `pwd` in
|
---|
| 918 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 919 | *)
|
---|
| 920 | case "$ac_dir" in
|
---|
| 921 | .) ac_abs_builddir=`pwd`;;
|
---|
| 922 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 923 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 924 | esac;;
|
---|
| 925 | esac
|
---|
| 926 | case $ac_abs_builddir in
|
---|
| 927 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 928 | *)
|
---|
| 929 | case ${ac_top_builddir}. in
|
---|
| 930 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 931 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 932 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 933 | esac;;
|
---|
| 934 | esac
|
---|
| 935 | case $ac_abs_builddir in
|
---|
| 936 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 937 | *)
|
---|
| 938 | case $ac_srcdir in
|
---|
| 939 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 941 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 942 | esac;;
|
---|
| 943 | esac
|
---|
| 944 | case $ac_abs_builddir in
|
---|
| 945 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 946 | *)
|
---|
| 947 | case $ac_top_srcdir in
|
---|
| 948 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 949 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 950 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 951 | esac;;
|
---|
| 952 | esac
|
---|
| 953 |
|
---|
| 954 | cd $ac_dir
|
---|
[8063] | 955 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[10192] | 956 | if test -f $ac_srcdir/configure.gnu; then
|
---|
[8063] | 957 | echo
|
---|
[10192] | 958 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 959 | elif test -f $ac_srcdir/configure; then
|
---|
[8063] | 960 | echo
|
---|
[10192] | 961 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 962 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 963 | test -f $ac_srcdir/configure.in; then
|
---|
[8063] | 964 | echo
|
---|
| 965 | $ac_configure --help
|
---|
| 966 | else
|
---|
[10192] | 967 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[8063] | 968 | fi
|
---|
| 969 | cd $ac_popdir
|
---|
| 970 | done
|
---|
| 971 | fi
|
---|
| 972 |
|
---|
| 973 | test -n "$ac_init_help" && exit 0
|
---|
| 974 | if $ac_init_version; then
|
---|
[10192] | 975 | cat <<\_ACEOF
|
---|
[8063] | 976 |
|
---|
[10192] | 977 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 978 | This configure script is free software; the Free Software Foundation
|
---|
| 979 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 980 | _ACEOF
|
---|
[8063] | 981 | exit 0
|
---|
| 982 | fi
|
---|
| 983 | exec 5>config.log
|
---|
[10192] | 984 | cat >&5 <<_ACEOF
|
---|
[8063] | 985 | This file contains any messages produced by compilers while
|
---|
| 986 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 987 |
|
---|
| 988 | It was created by $as_me, which was
|
---|
[10192] | 989 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8063] | 990 |
|
---|
| 991 | $ $0 $@
|
---|
| 992 |
|
---|
[10192] | 993 | _ACEOF
|
---|
[8063] | 994 | {
|
---|
| 995 | cat <<_ASUNAME
|
---|
[10192] | 996 | ## --------- ##
|
---|
| 997 | ## Platform. ##
|
---|
| 998 | ## --------- ##
|
---|
[8063] | 999 |
|
---|
| 1000 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1001 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1002 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1003 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1004 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1005 |
|
---|
| 1006 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1007 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1008 |
|
---|
| 1009 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1010 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1011 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1012 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1013 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1014 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1015 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1016 |
|
---|
[10192] | 1017 | _ASUNAME
|
---|
[8063] | 1018 |
|
---|
[10192] | 1019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1020 | for as_dir in $PATH
|
---|
| 1021 | do
|
---|
| 1022 | IFS=$as_save_IFS
|
---|
| 1023 | test -z "$as_dir" && as_dir=.
|
---|
| 1024 | echo "PATH: $as_dir"
|
---|
| 1025 | done
|
---|
| 1026 |
|
---|
[8063] | 1027 | } >&5
|
---|
| 1028 |
|
---|
[10192] | 1029 | cat >&5 <<_ACEOF
|
---|
[8063] | 1030 |
|
---|
| 1031 |
|
---|
[10192] | 1032 | ## ----------- ##
|
---|
| 1033 | ## Core tests. ##
|
---|
| 1034 | ## ----------- ##
|
---|
| 1035 |
|
---|
| 1036 | _ACEOF
|
---|
| 1037 |
|
---|
| 1038 |
|
---|
[8063] | 1039 | # Keep a trace of the command line.
|
---|
| 1040 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10192] | 1041 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[8063] | 1042 | # Also quote any args containing shell meta-characters.
|
---|
[10192] | 1043 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[8063] | 1044 | ac_configure_args=
|
---|
[10192] | 1045 | ac_configure_args0=
|
---|
| 1046 | ac_configure_args1=
|
---|
[8063] | 1047 | ac_sep=
|
---|
[10192] | 1048 | ac_must_keep_next=false
|
---|
| 1049 | for ac_pass in 1 2
|
---|
[8063] | 1050 | do
|
---|
[10192] | 1051 | for ac_arg
|
---|
| 1052 | do
|
---|
| 1053 | case $ac_arg in
|
---|
| 1054 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1055 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1056 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1057 | continue ;;
|
---|
| 1058 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1059 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1060 | esac
|
---|
| 1061 | case $ac_pass in
|
---|
| 1062 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1063 | 2)
|
---|
| 1064 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1065 | if test $ac_must_keep_next = true; then
|
---|
| 1066 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1067 | else
|
---|
| 1068 | case $ac_arg in
|
---|
| 1069 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1070 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1071 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1072 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1073 | case "$ac_configure_args0 " in
|
---|
| 1074 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1075 | esac
|
---|
| 1076 | ;;
|
---|
| 1077 | -* ) ac_must_keep_next=true ;;
|
---|
| 1078 | esac
|
---|
| 1079 | fi
|
---|
| 1080 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1081 | # Get rid of the leading space.
|
---|
| 1082 | ac_sep=" "
|
---|
| 1083 | ;;
|
---|
| 1084 | esac
|
---|
| 1085 | done
|
---|
[8063] | 1086 | done
|
---|
[10192] | 1087 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1088 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[8063] | 1089 |
|
---|
| 1090 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1091 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1092 | # would cause problems or look ugly.
|
---|
[10192] | 1093 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1094 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[8063] | 1095 | trap 'exit_status=$?
|
---|
| 1096 | # Save into config.log some information that might help in debugging.
|
---|
[10192] | 1097 | {
|
---|
| 1098 | echo
|
---|
| 1099 |
|
---|
| 1100 | cat <<\_ASBOX
|
---|
| 1101 | ## ---------------- ##
|
---|
| 1102 | ## Cache variables. ##
|
---|
| 1103 | ## ---------------- ##
|
---|
| 1104 | _ASBOX
|
---|
| 1105 | echo
|
---|
| 1106 | # The following way of writing the cache mishandles newlines in values,
|
---|
[8063] | 1107 | {
|
---|
| 1108 | (set) 2>&1 |
|
---|
| 1109 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1110 | *ac_space=\ *)
|
---|
| 1111 | sed -n \
|
---|
[10192] | 1112 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1113 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
[8063] | 1114 | ;;
|
---|
| 1115 | *)
|
---|
| 1116 | sed -n \
|
---|
[10192] | 1117 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 1118 | ;;
|
---|
| 1119 | esac;
|
---|
[10192] | 1120 | }
|
---|
| 1121 | echo
|
---|
| 1122 |
|
---|
| 1123 | cat <<\_ASBOX
|
---|
| 1124 | ## ----------------- ##
|
---|
| 1125 | ## Output variables. ##
|
---|
| 1126 | ## ----------------- ##
|
---|
| 1127 | _ASBOX
|
---|
| 1128 | echo
|
---|
| 1129 | for ac_var in $ac_subst_vars
|
---|
| 1130 | do
|
---|
| 1131 | eval ac_val=$`echo $ac_var`
|
---|
| 1132 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1133 | done | sort
|
---|
| 1134 | echo
|
---|
| 1135 |
|
---|
| 1136 | if test -n "$ac_subst_files"; then
|
---|
| 1137 | cat <<\_ASBOX
|
---|
| 1138 | ## ------------- ##
|
---|
| 1139 | ## Output files. ##
|
---|
| 1140 | ## ------------- ##
|
---|
| 1141 | _ASBOX
|
---|
| 1142 | echo
|
---|
| 1143 | for ac_var in $ac_subst_files
|
---|
| 1144 | do
|
---|
| 1145 | eval ac_val=$`echo $ac_var`
|
---|
| 1146 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1147 | done | sort
|
---|
| 1148 | echo
|
---|
| 1149 | fi
|
---|
| 1150 |
|
---|
| 1151 | if test -s confdefs.h; then
|
---|
| 1152 | cat <<\_ASBOX
|
---|
| 1153 | ## ----------- ##
|
---|
| 1154 | ## confdefs.h. ##
|
---|
| 1155 | ## ----------- ##
|
---|
| 1156 | _ASBOX
|
---|
| 1157 | echo
|
---|
| 1158 | sed "/^$/d" confdefs.h | sort
|
---|
| 1159 | echo
|
---|
| 1160 | fi
|
---|
| 1161 | test "$ac_signal" != 0 &&
|
---|
| 1162 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1163 | echo "$as_me: exit $exit_status"
|
---|
| 1164 | } >&5
|
---|
| 1165 | rm -f core *.core &&
|
---|
| 1166 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8063] | 1167 | exit $exit_status
|
---|
| 1168 | ' 0
|
---|
| 1169 | for ac_signal in 1 2 13 15; do
|
---|
[10192] | 1170 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[8063] | 1171 | done
|
---|
| 1172 | ac_signal=0
|
---|
| 1173 |
|
---|
| 1174 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1175 | rm -rf conftest* confdefs.h
|
---|
| 1176 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1177 | echo >confdefs.h
|
---|
| 1178 |
|
---|
[10192] | 1179 | # Predefined preprocessor variables.
|
---|
| 1180 |
|
---|
| 1181 | cat >>confdefs.h <<_ACEOF
|
---|
| 1182 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1183 | _ACEOF
|
---|
| 1184 |
|
---|
| 1185 |
|
---|
| 1186 | cat >>confdefs.h <<_ACEOF
|
---|
| 1187 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1188 | _ACEOF
|
---|
| 1189 |
|
---|
| 1190 |
|
---|
| 1191 | cat >>confdefs.h <<_ACEOF
|
---|
| 1192 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1193 | _ACEOF
|
---|
| 1194 |
|
---|
| 1195 |
|
---|
| 1196 | cat >>confdefs.h <<_ACEOF
|
---|
| 1197 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1198 | _ACEOF
|
---|
| 1199 |
|
---|
| 1200 |
|
---|
| 1201 | cat >>confdefs.h <<_ACEOF
|
---|
| 1202 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1203 | _ACEOF
|
---|
| 1204 |
|
---|
| 1205 |
|
---|
[8063] | 1206 | # Let the site file select an alternate cache file if it wants to.
|
---|
[3365] | 1207 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1208 | if test -z "$CONFIG_SITE"; then
|
---|
| 1209 | if test "x$prefix" != xNONE; then
|
---|
| 1210 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1211 | else
|
---|
| 1212 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1213 | fi
|
---|
| 1214 | fi
|
---|
| 1215 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1216 | if test -r "$ac_site_file"; then
|
---|
[10192] | 1217 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
[8063] | 1218 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10192] | 1219 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[3365] | 1220 | . "$ac_site_file"
|
---|
| 1221 | fi
|
---|
| 1222 | done
|
---|
| 1223 |
|
---|
| 1224 | if test -r "$cache_file"; then
|
---|
[8063] | 1225 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1226 | # files actually), so we avoid doing that.
|
---|
| 1227 | if test -f "$cache_file"; then
|
---|
[10192] | 1228 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
[8063] | 1229 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1230 | case $cache_file in
|
---|
| 1231 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1232 | *) . ./$cache_file;;
|
---|
| 1233 | esac
|
---|
| 1234 | fi
|
---|
[3365] | 1235 | else
|
---|
[10192] | 1236 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
[8063] | 1237 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1238 | >$cache_file
|
---|
[3365] | 1239 | fi
|
---|
| 1240 |
|
---|
[8063] | 1241 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1242 | # value.
|
---|
[10192] | 1243 | ac_cache_corrupted=false
|
---|
[8063] | 1244 | for ac_var in `(set) 2>&1 |
|
---|
[10192] | 1245 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[8063] | 1246 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1247 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1248 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1249 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1250 | case $ac_old_set,$ac_new_set in
|
---|
| 1251 | set,)
|
---|
[10192] | 1252 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1253 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1254 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1255 | ,set)
|
---|
[10192] | 1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1257 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1258 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1259 | ,);;
|
---|
| 1260 | *)
|
---|
| 1261 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[10192] | 1262 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1263 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1264 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1265 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1266 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1267 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1268 | ac_cache_corrupted=:
|
---|
[8063] | 1269 | fi;;
|
---|
| 1270 | esac
|
---|
[10192] | 1271 | # Pass precious variables to config.status.
|
---|
| 1272 | if test "$ac_new_set" = set; then
|
---|
| 1273 | case $ac_new_val in
|
---|
| 1274 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1275 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1276 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1277 | esac
|
---|
| 1278 | case " $ac_configure_args " in
|
---|
| 1279 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1280 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1281 | esac
|
---|
| 1282 | fi
|
---|
[8063] | 1283 | done
|
---|
[10192] | 1284 | if $ac_cache_corrupted; then
|
---|
| 1285 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1286 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1287 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1288 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1289 | { (exit 1); exit 1; }; }
|
---|
[8063] | 1290 | fi
|
---|
| 1291 |
|
---|
[3365] | 1292 | ac_ext=c
|
---|
| 1293 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8063] | 1294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[3365] | 1297 |
|
---|
| 1298 |
|
---|
| 1299 |
|
---|
[10192] | 1300 |
|
---|
| 1301 |
|
---|
| 1302 |
|
---|
| 1303 |
|
---|
| 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1317 |
|
---|
[3365] | 1318 | test "$program_prefix" != NONE &&
|
---|
[10192] | 1319 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
[3365] | 1320 | # Use a double $ so make ignores it.
|
---|
| 1321 | test "$program_suffix" != NONE &&
|
---|
[10192] | 1322 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
| 1323 | # Double any \ or $. echo might interpret backslashes.
|
---|
| 1324 | # By default was `s,x,x', remove it if useless.
|
---|
| 1325 | cat <<\_ACEOF >conftest.sed
|
---|
| 1326 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
| 1327 | _ACEOF
|
---|
| 1328 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
| 1329 | rm conftest.sed
|
---|
[3365] | 1330 |
|
---|
| 1331 |
|
---|
| 1332 | PACKAGE=mgpp
|
---|
| 1333 | VERSION=1.3
|
---|
| 1334 |
|
---|
[8059] | 1335 | LDFLAGS=
|
---|
| 1336 |
|
---|
[10192] | 1337 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1338 | #define PACKAGE "$PACKAGE"
|
---|
[10192] | 1339 | _ACEOF
|
---|
[3365] | 1340 |
|
---|
[10192] | 1341 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1342 | #define VERSION "$VERSION"
|
---|
[10192] | 1343 | _ACEOF
|
---|
[3365] | 1344 |
|
---|
[10192] | 1345 |
|
---|
| 1346 |
|
---|
| 1347 |
|
---|
[8063] | 1348 | ac_ext=cc
|
---|
| 1349 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 1350 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1351 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1352 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 1353 | if test -n "$ac_tool_prefix"; then
|
---|
[10192] | 1354 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8063] | 1355 | do
|
---|
| 1356 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1357 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 1358 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1359 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1360 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 1361 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1362 | else
|
---|
| 1363 | if test -n "$CXX"; then
|
---|
| 1364 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 1365 | else
|
---|
[10192] | 1366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1367 | for as_dir in $PATH
|
---|
| 1368 | do
|
---|
| 1369 | IFS=$as_save_IFS
|
---|
| 1370 | test -z "$as_dir" && as_dir=.
|
---|
| 1371 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1372 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1373 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 1374 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1375 | break 2
|
---|
| 1376 | fi
|
---|
[8063] | 1377 | done
|
---|
[10192] | 1378 | done
|
---|
[3365] | 1379 |
|
---|
[8063] | 1380 | fi
|
---|
| 1381 | fi
|
---|
| 1382 | CXX=$ac_cv_prog_CXX
|
---|
| 1383 | if test -n "$CXX"; then
|
---|
[10192] | 1384 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
[8063] | 1385 | echo "${ECHO_T}$CXX" >&6
|
---|
| 1386 | else
|
---|
[10192] | 1387 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1388 | echo "${ECHO_T}no" >&6
|
---|
| 1389 | fi
|
---|
[3365] | 1390 |
|
---|
[8063] | 1391 | test -n "$CXX" && break
|
---|
| 1392 | done
|
---|
| 1393 | fi
|
---|
| 1394 | if test -z "$CXX"; then
|
---|
| 1395 | ac_ct_CXX=$CXX
|
---|
[10192] | 1396 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[3365] | 1397 | do
|
---|
[8063] | 1398 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1399 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1400 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1402 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 1403 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1404 | else
|
---|
[8063] | 1405 | if test -n "$ac_ct_CXX"; then
|
---|
| 1406 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
[3365] | 1407 | else
|
---|
[10192] | 1408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1409 | for as_dir in $PATH
|
---|
| 1410 | do
|
---|
| 1411 | IFS=$as_save_IFS
|
---|
| 1412 | test -z "$as_dir" && as_dir=.
|
---|
| 1413 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1415 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 1416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1417 | break 2
|
---|
| 1418 | fi
|
---|
[8063] | 1419 | done
|
---|
[10192] | 1420 | done
|
---|
[8063] | 1421 |
|
---|
[3365] | 1422 | fi
|
---|
| 1423 | fi
|
---|
[8063] | 1424 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 1425 | if test -n "$ac_ct_CXX"; then
|
---|
[10192] | 1426 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
[8063] | 1427 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3365] | 1428 | else
|
---|
[10192] | 1429 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1430 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1431 | fi
|
---|
| 1432 |
|
---|
[8063] | 1433 | test -n "$ac_ct_CXX" && break
|
---|
[3365] | 1434 | done
|
---|
[8063] | 1435 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[3365] | 1436 |
|
---|
[8063] | 1437 | CXX=$ac_ct_CXX
|
---|
| 1438 | fi
|
---|
[3365] | 1439 |
|
---|
[10192] | 1440 |
|
---|
| 1441 | # Provide some information about the compiler.
|
---|
| 1442 | echo "$as_me:$LINENO:" \
|
---|
| 1443 | "checking for C++ compiler version" >&5
|
---|
| 1444 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1445 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1446 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1447 | ac_status=$?
|
---|
| 1448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1449 | (exit $ac_status); }
|
---|
| 1450 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1451 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1452 | ac_status=$?
|
---|
| 1453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1454 | (exit $ac_status); }
|
---|
| 1455 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1456 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1457 | ac_status=$?
|
---|
| 1458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1459 | (exit $ac_status); }
|
---|
| 1460 |
|
---|
[8063] | 1461 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1462 | /* confdefs.h. */
|
---|
| 1463 | _ACEOF
|
---|
| 1464 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1465 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1466 | /* end confdefs.h. */
|
---|
[3365] | 1467 |
|
---|
[8063] | 1468 | int
|
---|
| 1469 | main ()
|
---|
| 1470 | {
|
---|
[3365] | 1471 |
|
---|
[8063] | 1472 | ;
|
---|
| 1473 | return 0;
|
---|
| 1474 | }
|
---|
| 1475 | _ACEOF
|
---|
| 1476 | ac_clean_files_save=$ac_clean_files
|
---|
[10192] | 1477 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[8063] | 1478 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10192] | 1479 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[8063] | 1480 | # of exeext.
|
---|
[10192] | 1481 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
---|
| 1482 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
|
---|
[8063] | 1483 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[10192] | 1484 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
[8063] | 1485 | (eval $ac_link_default) 2>&5
|
---|
| 1486 | ac_status=$?
|
---|
[10192] | 1487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1488 | (exit $ac_status); }; then
|
---|
[10192] | 1489 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1490 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1491 | # resort.
|
---|
| 1492 |
|
---|
| 1493 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1494 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1495 | ac_cv_exeext=
|
---|
| 1496 | # b.out is created by i960 compilers.
|
---|
| 1497 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1498 | do
|
---|
| 1499 | test -f "$ac_file" || continue
|
---|
[8063] | 1500 | case $ac_file in
|
---|
[10192] | 1501 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1502 | ;;
|
---|
| 1503 | conftest.$ac_ext )
|
---|
| 1504 | # This is the source file.
|
---|
| 1505 | ;;
|
---|
| 1506 | [ab].out )
|
---|
| 1507 | # We found the default executable, but exeext='' is most
|
---|
| 1508 | # certainly right.
|
---|
| 1509 | break;;
|
---|
| 1510 | *.* )
|
---|
| 1511 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1512 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1513 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1514 | # maintain Libtool? --akim.
|
---|
| 1515 | export ac_cv_exeext
|
---|
| 1516 | break;;
|
---|
| 1517 | * )
|
---|
| 1518 | break;;
|
---|
[8063] | 1519 | esac
|
---|
| 1520 | done
|
---|
| 1521 | else
|
---|
| 1522 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1523 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1524 |
|
---|
| 1525 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
---|
| 1526 | See \`config.log' for more details." >&5
|
---|
| 1527 | echo "$as_me: error: C++ compiler cannot create executables
|
---|
| 1528 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1529 | { (exit 77); exit 77; }; }
|
---|
| 1530 | fi
|
---|
[3365] | 1531 |
|
---|
[8063] | 1532 | ac_exeext=$ac_cv_exeext
|
---|
[10192] | 1533 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
[8063] | 1534 | echo "${ECHO_T}$ac_file" >&6
|
---|
[3365] | 1535 |
|
---|
[8063] | 1536 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1537 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1538 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
---|
[8063] | 1539 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
|
---|
| 1540 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1541 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1542 | if test "$cross_compiling" != yes; then
|
---|
| 1543 | if { ac_try='./$ac_file'
|
---|
[10192] | 1544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1545 | (eval $ac_try) 2>&5
|
---|
| 1546 | ac_status=$?
|
---|
[10192] | 1547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1548 | (exit $ac_status); }; }; then
|
---|
| 1549 | cross_compiling=no
|
---|
[3365] | 1550 | else
|
---|
[8063] | 1551 | if test "$cross_compiling" = maybe; then
|
---|
| 1552 | cross_compiling=yes
|
---|
| 1553 | else
|
---|
[10192] | 1554 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
---|
| 1555 | If you meant to cross compile, use \`--host'.
|
---|
| 1556 | See \`config.log' for more details." >&5
|
---|
[8063] | 1557 | echo "$as_me: error: cannot run C++ compiled programs.
|
---|
[10192] | 1558 | If you meant to cross compile, use \`--host'.
|
---|
| 1559 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1560 | { (exit 1); exit 1; }; }
|
---|
| 1561 | fi
|
---|
[3365] | 1562 | fi
|
---|
| 1563 | fi
|
---|
[10192] | 1564 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 1565 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 1566 |
|
---|
[10192] | 1567 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[8063] | 1568 | ac_clean_files=$ac_clean_files_save
|
---|
| 1569 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1570 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1571 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
[8063] | 1572 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
[10192] | 1573 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
[8063] | 1574 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1575 |
|
---|
[10192] | 1576 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1577 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 1579 | (eval $ac_link) 2>&5
|
---|
| 1580 | ac_status=$?
|
---|
[10192] | 1581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1582 | (exit $ac_status); }; then
|
---|
| 1583 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1584 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1585 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1586 | # `rm'.
|
---|
[10192] | 1587 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1588 | test -f "$ac_file" || continue
|
---|
[8063] | 1589 | case $ac_file in
|
---|
[10192] | 1590 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[8063] | 1591 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10192] | 1592 | export ac_cv_exeext
|
---|
| 1593 | break;;
|
---|
[8063] | 1594 | * ) break;;
|
---|
| 1595 | esac
|
---|
| 1596 | done
|
---|
| 1597 | else
|
---|
[10192] | 1598 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1599 | See \`config.log' for more details." >&5
|
---|
| 1600 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1601 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1602 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1603 | fi
|
---|
| 1604 |
|
---|
[8063] | 1605 | rm -f conftest$ac_cv_exeext
|
---|
[10192] | 1606 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
[8063] | 1607 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1608 |
|
---|
| 1609 | rm -f conftest.$ac_ext
|
---|
| 1610 | EXEEXT=$ac_cv_exeext
|
---|
| 1611 | ac_exeext=$EXEEXT
|
---|
[10192] | 1612 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1613 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[8063] | 1614 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1615 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1616 | else
|
---|
[8063] | 1617 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1618 | /* confdefs.h. */
|
---|
| 1619 | _ACEOF
|
---|
| 1620 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1621 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1622 | /* end confdefs.h. */
|
---|
[8063] | 1623 |
|
---|
| 1624 | int
|
---|
| 1625 | main ()
|
---|
| 1626 | {
|
---|
| 1627 |
|
---|
| 1628 | ;
|
---|
| 1629 | return 0;
|
---|
| 1630 | }
|
---|
| 1631 | _ACEOF
|
---|
| 1632 | rm -f conftest.o conftest.obj
|
---|
[10192] | 1633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
[8063] | 1634 | (eval $ac_compile) 2>&5
|
---|
| 1635 | ac_status=$?
|
---|
[10192] | 1636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1637 | (exit $ac_status); }; then
|
---|
| 1638 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1639 | case $ac_file in
|
---|
[10192] | 1640 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[8063] | 1641 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1642 | break;;
|
---|
| 1643 | esac
|
---|
| 1644 | done
|
---|
[3365] | 1645 | else
|
---|
[8063] | 1646 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1647 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1648 |
|
---|
| 1649 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1650 | See \`config.log' for more details." >&5
|
---|
| 1651 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1652 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1653 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1654 | fi
|
---|
[8063] | 1655 |
|
---|
| 1656 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[3365] | 1657 | fi
|
---|
[10192] | 1658 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
[8063] | 1659 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1660 | OBJEXT=$ac_cv_objext
|
---|
| 1661 | ac_objext=$OBJEXT
|
---|
[10192] | 1662 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
[8063] | 1663 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 1664 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 1665 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1666 | else
|
---|
| 1667 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1668 | /* confdefs.h. */
|
---|
| 1669 | _ACEOF
|
---|
| 1670 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1671 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1672 | /* end confdefs.h. */
|
---|
[3365] | 1673 |
|
---|
[8063] | 1674 | int
|
---|
| 1675 | main ()
|
---|
| 1676 | {
|
---|
| 1677 | #ifndef __GNUC__
|
---|
| 1678 | choke me
|
---|
| 1679 | #endif
|
---|
[3365] | 1680 |
|
---|
[8063] | 1681 | ;
|
---|
| 1682 | return 0;
|
---|
| 1683 | }
|
---|
| 1684 | _ACEOF
|
---|
| 1685 | rm -f conftest.$ac_objext
|
---|
[10192] | 1686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1687 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1688 | ac_status=$?
|
---|
[10192] | 1689 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1690 | rm -f conftest.er1
|
---|
| 1691 | cat conftest.err >&5
|
---|
| 1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1693 | (exit $ac_status); } &&
|
---|
[10192] | 1694 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1695 | || test ! -s conftest.err'
|
---|
| 1696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1697 | (eval $ac_try) 2>&5
|
---|
| 1698 | ac_status=$?
|
---|
[10192] | 1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1700 | (exit $ac_status); }; } &&
|
---|
| 1701 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1703 | (eval $ac_try) 2>&5
|
---|
| 1704 | ac_status=$?
|
---|
| 1705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1706 | (exit $ac_status); }; }; then
|
---|
| 1707 | ac_compiler_gnu=yes
|
---|
[3365] | 1708 | else
|
---|
[8063] | 1709 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1710 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1711 |
|
---|
[8063] | 1712 | ac_compiler_gnu=no
|
---|
[3365] | 1713 | fi
|
---|
[10192] | 1714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1715 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
[3365] | 1716 |
|
---|
[8063] | 1717 | fi
|
---|
[10192] | 1718 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[8063] | 1719 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 1720 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 1721 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 1722 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 1723 | CXXFLAGS="-g"
|
---|
[10192] | 1724 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
[8063] | 1725 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 1726 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 1727 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1728 | else
|
---|
[8063] | 1729 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1730 | /* confdefs.h. */
|
---|
| 1731 | _ACEOF
|
---|
| 1732 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1733 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1734 | /* end confdefs.h. */
|
---|
[8063] | 1735 |
|
---|
| 1736 | int
|
---|
| 1737 | main ()
|
---|
| 1738 | {
|
---|
| 1739 |
|
---|
| 1740 | ;
|
---|
| 1741 | return 0;
|
---|
| 1742 | }
|
---|
| 1743 | _ACEOF
|
---|
| 1744 | rm -f conftest.$ac_objext
|
---|
[10192] | 1745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1746 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1747 | ac_status=$?
|
---|
[10192] | 1748 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1749 | rm -f conftest.er1
|
---|
| 1750 | cat conftest.err >&5
|
---|
| 1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1752 | (exit $ac_status); } &&
|
---|
[10192] | 1753 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1754 | || test ! -s conftest.err'
|
---|
| 1755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1756 | (eval $ac_try) 2>&5
|
---|
| 1757 | ac_status=$?
|
---|
[10192] | 1758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1759 | (exit $ac_status); }; } &&
|
---|
| 1760 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1762 | (eval $ac_try) 2>&5
|
---|
| 1763 | ac_status=$?
|
---|
| 1764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1765 | (exit $ac_status); }; }; then
|
---|
[3365] | 1766 | ac_cv_prog_cxx_g=yes
|
---|
| 1767 | else
|
---|
[8063] | 1768 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1769 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1770 |
|
---|
[8063] | 1771 | ac_cv_prog_cxx_g=no
|
---|
[3365] | 1772 | fi
|
---|
[10192] | 1773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 1774 | fi
|
---|
[10192] | 1775 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
[8063] | 1776 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[3365] | 1777 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8063] | 1778 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[3365] | 1779 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 1780 | if test "$GXX" = yes; then
|
---|
| 1781 | CXXFLAGS="-g -O2"
|
---|
| 1782 | else
|
---|
| 1783 | CXXFLAGS="-g"
|
---|
| 1784 | fi
|
---|
| 1785 | else
|
---|
| 1786 | if test "$GXX" = yes; then
|
---|
| 1787 | CXXFLAGS="-O2"
|
---|
| 1788 | else
|
---|
| 1789 | CXXFLAGS=
|
---|
| 1790 | fi
|
---|
| 1791 | fi
|
---|
[8063] | 1792 | for ac_declaration in \
|
---|
[10192] | 1793 | '' \
|
---|
[8063] | 1794 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 1795 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 1796 | 'extern "C" void exit (int) throw ();' \
|
---|
| 1797 | 'extern "C" void exit (int);' \
|
---|
| 1798 | 'void exit (int);'
|
---|
| 1799 | do
|
---|
| 1800 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1801 | /* confdefs.h. */
|
---|
| 1802 | _ACEOF
|
---|
| 1803 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1804 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1805 | /* end confdefs.h. */
|
---|
| 1806 | $ac_declaration
|
---|
[8063] | 1807 | #include <stdlib.h>
|
---|
| 1808 | int
|
---|
| 1809 | main ()
|
---|
| 1810 | {
|
---|
| 1811 | exit (42);
|
---|
| 1812 | ;
|
---|
| 1813 | return 0;
|
---|
| 1814 | }
|
---|
| 1815 | _ACEOF
|
---|
| 1816 | rm -f conftest.$ac_objext
|
---|
[10192] | 1817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1818 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1819 | ac_status=$?
|
---|
[10192] | 1820 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1821 | rm -f conftest.er1
|
---|
| 1822 | cat conftest.err >&5
|
---|
| 1823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1824 | (exit $ac_status); } &&
|
---|
[10192] | 1825 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1826 | || test ! -s conftest.err'
|
---|
| 1827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1828 | (eval $ac_try) 2>&5
|
---|
| 1829 | ac_status=$?
|
---|
[10192] | 1830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1831 | (exit $ac_status); }; } &&
|
---|
| 1832 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1834 | (eval $ac_try) 2>&5
|
---|
| 1835 | ac_status=$?
|
---|
| 1836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1837 | (exit $ac_status); }; }; then
|
---|
| 1838 | :
|
---|
| 1839 | else
|
---|
| 1840 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1841 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1842 |
|
---|
[8063] | 1843 | continue
|
---|
| 1844 | fi
|
---|
[10192] | 1845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1846 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1847 | /* confdefs.h. */
|
---|
| 1848 | _ACEOF
|
---|
| 1849 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1850 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1851 | /* end confdefs.h. */
|
---|
[8063] | 1852 | $ac_declaration
|
---|
| 1853 | int
|
---|
| 1854 | main ()
|
---|
| 1855 | {
|
---|
| 1856 | exit (42);
|
---|
| 1857 | ;
|
---|
| 1858 | return 0;
|
---|
| 1859 | }
|
---|
| 1860 | _ACEOF
|
---|
| 1861 | rm -f conftest.$ac_objext
|
---|
[10192] | 1862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1863 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1864 | ac_status=$?
|
---|
[10192] | 1865 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1866 | rm -f conftest.er1
|
---|
| 1867 | cat conftest.err >&5
|
---|
| 1868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1869 | (exit $ac_status); } &&
|
---|
[10192] | 1870 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1871 | || test ! -s conftest.err'
|
---|
| 1872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1873 | (eval $ac_try) 2>&5
|
---|
| 1874 | ac_status=$?
|
---|
[10192] | 1875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1876 | (exit $ac_status); }; } &&
|
---|
| 1877 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1879 | (eval $ac_try) 2>&5
|
---|
| 1880 | ac_status=$?
|
---|
| 1881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1882 | (exit $ac_status); }; }; then
|
---|
| 1883 | break
|
---|
| 1884 | else
|
---|
| 1885 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1886 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1887 |
|
---|
[8063] | 1888 | fi
|
---|
[10192] | 1889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1890 | done
|
---|
[10192] | 1891 | rm -f conftest*
|
---|
| 1892 | if test -n "$ac_declaration"; then
|
---|
| 1893 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 1894 | echo $ac_declaration >>confdefs.h
|
---|
| 1895 | echo '#endif' >>confdefs.h
|
---|
| 1896 | fi
|
---|
[3365] | 1897 |
|
---|
[8063] | 1898 | ac_ext=c
|
---|
| 1899 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1903 |
|
---|
[10192] | 1904 | for ac_prog in gawk mawk nawk awk
|
---|
[3365] | 1905 | do
|
---|
[8063] | 1906 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1907 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1908 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1910 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 1911 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1912 | else
|
---|
| 1913 | if test -n "$AWK"; then
|
---|
| 1914 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 1915 | else
|
---|
[10192] | 1916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1917 | for as_dir in $PATH
|
---|
| 1918 | do
|
---|
| 1919 | IFS=$as_save_IFS
|
---|
| 1920 | test -z "$as_dir" && as_dir=.
|
---|
| 1921 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1922 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1923 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 1924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1925 | break 2
|
---|
| 1926 | fi
|
---|
[8063] | 1927 | done
|
---|
[10192] | 1928 | done
|
---|
[8063] | 1929 |
|
---|
[3365] | 1930 | fi
|
---|
| 1931 | fi
|
---|
[8063] | 1932 | AWK=$ac_cv_prog_AWK
|
---|
[3365] | 1933 | if test -n "$AWK"; then
|
---|
[10192] | 1934 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
[8063] | 1935 | echo "${ECHO_T}$AWK" >&6
|
---|
[3365] | 1936 | else
|
---|
[10192] | 1937 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1938 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1939 | fi
|
---|
| 1940 |
|
---|
[8063] | 1941 | test -n "$AWK" && break
|
---|
[3365] | 1942 | done
|
---|
| 1943 |
|
---|
| 1944 | for ac_prog in 'bison -y' byacc
|
---|
| 1945 | do
|
---|
[8063] | 1946 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1947 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1948 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1950 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 1951 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1952 | else
|
---|
| 1953 | if test -n "$YACC"; then
|
---|
| 1954 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 1955 | else
|
---|
[10192] | 1956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1957 | for as_dir in $PATH
|
---|
| 1958 | do
|
---|
| 1959 | IFS=$as_save_IFS
|
---|
| 1960 | test -z "$as_dir" && as_dir=.
|
---|
| 1961 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1962 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1963 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 1964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1965 | break 2
|
---|
| 1966 | fi
|
---|
[8063] | 1967 | done
|
---|
[10192] | 1968 | done
|
---|
[8063] | 1969 |
|
---|
[3365] | 1970 | fi
|
---|
| 1971 | fi
|
---|
[8063] | 1972 | YACC=$ac_cv_prog_YACC
|
---|
[3365] | 1973 | if test -n "$YACC"; then
|
---|
[10192] | 1974 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
[8063] | 1975 | echo "${ECHO_T}$YACC" >&6
|
---|
[3365] | 1976 | else
|
---|
[10192] | 1977 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1978 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1979 | fi
|
---|
| 1980 |
|
---|
[8063] | 1981 | test -n "$YACC" && break
|
---|
[3365] | 1982 | done
|
---|
| 1983 | test -n "$YACC" || YACC="yacc"
|
---|
| 1984 |
|
---|
[8063] | 1985 | ac_ext=c
|
---|
| 1986 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1987 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1988 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1989 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1990 | if test -n "$ac_tool_prefix"; then
|
---|
| 1991 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1992 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[10192] | 1993 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1995 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1996 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1997 | else
|
---|
| 1998 | if test -n "$CC"; then
|
---|
| 1999 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2000 | else
|
---|
[10192] | 2001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2002 | for as_dir in $PATH
|
---|
| 2003 | do
|
---|
| 2004 | IFS=$as_save_IFS
|
---|
| 2005 | test -z "$as_dir" && as_dir=.
|
---|
| 2006 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2008 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 2009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2010 | break 2
|
---|
| 2011 | fi
|
---|
[8063] | 2012 | done
|
---|
[10192] | 2013 | done
|
---|
[8063] | 2014 |
|
---|
| 2015 | fi
|
---|
| 2016 | fi
|
---|
| 2017 | CC=$ac_cv_prog_CC
|
---|
| 2018 | if test -n "$CC"; then
|
---|
[10192] | 2019 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2020 | echo "${ECHO_T}$CC" >&6
|
---|
| 2021 | else
|
---|
[10192] | 2022 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2023 | echo "${ECHO_T}no" >&6
|
---|
| 2024 | fi
|
---|
| 2025 |
|
---|
| 2026 | fi
|
---|
| 2027 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2028 | ac_ct_CC=$CC
|
---|
| 2029 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[3365] | 2030 | set dummy gcc; ac_word=$2
|
---|
[10192] | 2031 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2033 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2034 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2035 | else
|
---|
[8063] | 2036 | if test -n "$ac_ct_CC"; then
|
---|
| 2037 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2038 | else
|
---|
[10192] | 2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2040 | for as_dir in $PATH
|
---|
| 2041 | do
|
---|
| 2042 | IFS=$as_save_IFS
|
---|
| 2043 | test -z "$as_dir" && as_dir=.
|
---|
| 2044 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2045 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2046 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2048 | break 2
|
---|
| 2049 | fi
|
---|
[8063] | 2050 | done
|
---|
[10192] | 2051 | done
|
---|
[8063] | 2052 |
|
---|
| 2053 | fi
|
---|
| 2054 | fi
|
---|
| 2055 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2056 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2057 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2058 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2059 | else
|
---|
[10192] | 2060 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2061 | echo "${ECHO_T}no" >&6
|
---|
| 2062 | fi
|
---|
| 2063 |
|
---|
| 2064 | CC=$ac_ct_CC
|
---|
| 2065 | else
|
---|
| 2066 | CC="$ac_cv_prog_CC"
|
---|
| 2067 | fi
|
---|
| 2068 |
|
---|
| 2069 | if test -z "$CC"; then
|
---|
| 2070 | if test -n "$ac_tool_prefix"; then
|
---|
| 2071 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 2072 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[10192] | 2073 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2075 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2076 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2077 | else
|
---|
[3365] | 2078 | if test -n "$CC"; then
|
---|
| 2079 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2080 | else
|
---|
[10192] | 2081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2082 | for as_dir in $PATH
|
---|
| 2083 | do
|
---|
| 2084 | IFS=$as_save_IFS
|
---|
| 2085 | test -z "$as_dir" && as_dir=.
|
---|
| 2086 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2088 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 2089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2090 | break 2
|
---|
| 2091 | fi
|
---|
[8063] | 2092 | done
|
---|
[10192] | 2093 | done
|
---|
[8063] | 2094 |
|
---|
[3365] | 2095 | fi
|
---|
| 2096 | fi
|
---|
[8063] | 2097 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2098 | if test -n "$CC"; then
|
---|
[10192] | 2099 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2100 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2101 | else
|
---|
[10192] | 2102 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2103 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2104 | fi
|
---|
| 2105 |
|
---|
[8063] | 2106 | fi
|
---|
| 2107 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2108 | ac_ct_CC=$CC
|
---|
| 2109 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2110 | set dummy cc; ac_word=$2
|
---|
[10192] | 2111 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2113 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2114 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2115 | else
|
---|
| 2116 | if test -n "$ac_ct_CC"; then
|
---|
| 2117 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2118 | else
|
---|
[10192] | 2119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2120 | for as_dir in $PATH
|
---|
| 2121 | do
|
---|
| 2122 | IFS=$as_save_IFS
|
---|
| 2123 | test -z "$as_dir" && as_dir=.
|
---|
| 2124 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2125 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2126 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 2127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2128 | break 2
|
---|
| 2129 | fi
|
---|
[8063] | 2130 | done
|
---|
[10192] | 2131 | done
|
---|
[8063] | 2132 |
|
---|
| 2133 | fi
|
---|
| 2134 | fi
|
---|
| 2135 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2136 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2137 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2138 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2139 | else
|
---|
[10192] | 2140 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2141 | echo "${ECHO_T}no" >&6
|
---|
| 2142 | fi
|
---|
| 2143 |
|
---|
| 2144 | CC=$ac_ct_CC
|
---|
| 2145 | else
|
---|
| 2146 | CC="$ac_cv_prog_CC"
|
---|
| 2147 | fi
|
---|
| 2148 |
|
---|
| 2149 | fi
|
---|
[3365] | 2150 | if test -z "$CC"; then
|
---|
| 2151 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2152 | set dummy cc; ac_word=$2
|
---|
[10192] | 2153 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2155 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2156 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2157 | else
|
---|
| 2158 | if test -n "$CC"; then
|
---|
| 2159 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2160 | else
|
---|
| 2161 | ac_prog_rejected=no
|
---|
[10192] | 2162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2163 | for as_dir in $PATH
|
---|
| 2164 | do
|
---|
| 2165 | IFS=$as_save_IFS
|
---|
| 2166 | test -z "$as_dir" && as_dir=.
|
---|
| 2167 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2168 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2169 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2170 | ac_prog_rejected=yes
|
---|
| 2171 | continue
|
---|
| 2172 | fi
|
---|
| 2173 | ac_cv_prog_CC="cc"
|
---|
| 2174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2175 | break 2
|
---|
| 2176 | fi
|
---|
[8063] | 2177 | done
|
---|
[10192] | 2178 | done
|
---|
[8063] | 2179 |
|
---|
[3365] | 2180 | if test $ac_prog_rejected = yes; then
|
---|
| 2181 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2182 | set dummy $ac_cv_prog_CC
|
---|
| 2183 | shift
|
---|
[8063] | 2184 | if test $# != 0; then
|
---|
[3365] | 2185 | # We chose a different compiler from the bogus one.
|
---|
| 2186 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2187 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2188 | shift
|
---|
[10192] | 2189 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3365] | 2190 | fi
|
---|
| 2191 | fi
|
---|
| 2192 | fi
|
---|
| 2193 | fi
|
---|
[8063] | 2194 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2195 | if test -n "$CC"; then
|
---|
[10192] | 2196 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2197 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2198 | else
|
---|
[10192] | 2199 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2200 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2201 | fi
|
---|
| 2202 |
|
---|
[8063] | 2203 | fi
|
---|
| 2204 | if test -z "$CC"; then
|
---|
| 2205 | if test -n "$ac_tool_prefix"; then
|
---|
| 2206 | for ac_prog in cl
|
---|
| 2207 | do
|
---|
| 2208 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2209 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 2210 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2212 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2213 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2214 | else
|
---|
| 2215 | if test -n "$CC"; then
|
---|
| 2216 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2217 | else
|
---|
[10192] | 2218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2219 | for as_dir in $PATH
|
---|
| 2220 | do
|
---|
| 2221 | IFS=$as_save_IFS
|
---|
| 2222 | test -z "$as_dir" && as_dir=.
|
---|
| 2223 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2225 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 2226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2227 | break 2
|
---|
| 2228 | fi
|
---|
[8063] | 2229 | done
|
---|
[10192] | 2230 | done
|
---|
[8063] | 2231 |
|
---|
[3365] | 2232 | fi
|
---|
| 2233 | fi
|
---|
[8063] | 2234 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2235 | if test -n "$CC"; then
|
---|
[10192] | 2236 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2237 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2238 | else
|
---|
[10192] | 2239 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2240 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2241 | fi
|
---|
[8063] | 2242 |
|
---|
| 2243 | test -n "$CC" && break
|
---|
| 2244 | done
|
---|
[3365] | 2245 | fi
|
---|
[8063] | 2246 | if test -z "$CC"; then
|
---|
| 2247 | ac_ct_CC=$CC
|
---|
| 2248 | for ac_prog in cl
|
---|
| 2249 | do
|
---|
| 2250 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2251 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 2252 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2254 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2255 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2256 | else
|
---|
| 2257 | if test -n "$ac_ct_CC"; then
|
---|
| 2258 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2259 | else
|
---|
[10192] | 2260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2261 | for as_dir in $PATH
|
---|
| 2262 | do
|
---|
| 2263 | IFS=$as_save_IFS
|
---|
| 2264 | test -z "$as_dir" && as_dir=.
|
---|
| 2265 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2267 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 2268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2269 | break 2
|
---|
| 2270 | fi
|
---|
[8063] | 2271 | done
|
---|
[10192] | 2272 | done
|
---|
[3365] | 2273 |
|
---|
[8063] | 2274 | fi
|
---|
| 2275 | fi
|
---|
| 2276 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2277 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2278 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2279 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2280 | else
|
---|
[10192] | 2281 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2282 | echo "${ECHO_T}no" >&6
|
---|
| 2283 | fi
|
---|
[3365] | 2284 |
|
---|
[8063] | 2285 | test -n "$ac_ct_CC" && break
|
---|
| 2286 | done
|
---|
[3365] | 2287 |
|
---|
[8063] | 2288 | CC=$ac_ct_CC
|
---|
[3365] | 2289 | fi
|
---|
| 2290 |
|
---|
| 2291 | fi
|
---|
| 2292 |
|
---|
[10192] | 2293 |
|
---|
| 2294 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 2295 | See \`config.log' for more details." >&5
|
---|
| 2296 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 2297 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 2298 | { (exit 1); exit 1; }; }
|
---|
| 2299 |
|
---|
[10192] | 2300 | # Provide some information about the compiler.
|
---|
| 2301 | echo "$as_me:$LINENO:" \
|
---|
| 2302 | "checking for C compiler version" >&5
|
---|
| 2303 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2304 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2305 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2306 | ac_status=$?
|
---|
| 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2308 | (exit $ac_status); }
|
---|
| 2309 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2310 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2311 | ac_status=$?
|
---|
| 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2313 | (exit $ac_status); }
|
---|
| 2314 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2315 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2316 | ac_status=$?
|
---|
| 2317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2318 | (exit $ac_status); }
|
---|
| 2319 |
|
---|
| 2320 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
[8063] | 2321 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2322 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2323 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2324 | else
|
---|
[8063] | 2325 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2326 | /* confdefs.h. */
|
---|
| 2327 | _ACEOF
|
---|
| 2328 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2329 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2330 | /* end confdefs.h. */
|
---|
[8063] | 2331 |
|
---|
| 2332 | int
|
---|
| 2333 | main ()
|
---|
| 2334 | {
|
---|
| 2335 | #ifndef __GNUC__
|
---|
| 2336 | choke me
|
---|
[3365] | 2337 | #endif
|
---|
[8063] | 2338 |
|
---|
| 2339 | ;
|
---|
| 2340 | return 0;
|
---|
| 2341 | }
|
---|
| 2342 | _ACEOF
|
---|
| 2343 | rm -f conftest.$ac_objext
|
---|
[10192] | 2344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2345 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2346 | ac_status=$?
|
---|
[10192] | 2347 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2348 | rm -f conftest.er1
|
---|
| 2349 | cat conftest.err >&5
|
---|
| 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2351 | (exit $ac_status); } &&
|
---|
[10192] | 2352 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2353 | || test ! -s conftest.err'
|
---|
| 2354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2355 | (eval $ac_try) 2>&5
|
---|
| 2356 | ac_status=$?
|
---|
[10192] | 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2358 | (exit $ac_status); }; } &&
|
---|
| 2359 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2361 | (eval $ac_try) 2>&5
|
---|
| 2362 | ac_status=$?
|
---|
| 2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2364 | (exit $ac_status); }; }; then
|
---|
| 2365 | ac_compiler_gnu=yes
|
---|
[8059] | 2366 | else
|
---|
[8063] | 2367 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2368 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2369 |
|
---|
[8063] | 2370 | ac_compiler_gnu=no
|
---|
[8059] | 2371 | fi
|
---|
[10192] | 2372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2373 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2374 |
|
---|
[8059] | 2375 | fi
|
---|
[10192] | 2376 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[8063] | 2377 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2378 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2379 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2380 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2381 | CFLAGS="-g"
|
---|
[10192] | 2382 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
[8063] | 2383 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2384 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2385 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2386 | else
|
---|
| 2387 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2388 | /* confdefs.h. */
|
---|
| 2389 | _ACEOF
|
---|
| 2390 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2391 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2392 | /* end confdefs.h. */
|
---|
[3365] | 2393 |
|
---|
[8063] | 2394 | int
|
---|
| 2395 | main ()
|
---|
| 2396 | {
|
---|
[8059] | 2397 |
|
---|
[8063] | 2398 | ;
|
---|
| 2399 | return 0;
|
---|
| 2400 | }
|
---|
| 2401 | _ACEOF
|
---|
| 2402 | rm -f conftest.$ac_objext
|
---|
[10192] | 2403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2404 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2405 | ac_status=$?
|
---|
[10192] | 2406 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2407 | rm -f conftest.er1
|
---|
| 2408 | cat conftest.err >&5
|
---|
| 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2410 | (exit $ac_status); } &&
|
---|
[10192] | 2411 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2412 | || test ! -s conftest.err'
|
---|
| 2413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2414 | (eval $ac_try) 2>&5
|
---|
| 2415 | ac_status=$?
|
---|
[10192] | 2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2417 | (exit $ac_status); }; } &&
|
---|
| 2418 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2420 | (eval $ac_try) 2>&5
|
---|
| 2421 | ac_status=$?
|
---|
| 2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2423 | (exit $ac_status); }; }; then
|
---|
[3365] | 2424 | ac_cv_prog_cc_g=yes
|
---|
| 2425 | else
|
---|
[8063] | 2426 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2427 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2428 |
|
---|
[8063] | 2429 | ac_cv_prog_cc_g=no
|
---|
[3365] | 2430 | fi
|
---|
[10192] | 2431 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 2432 | fi
|
---|
[10192] | 2433 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
[8063] | 2434 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[3365] | 2435 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8063] | 2436 | CFLAGS=$ac_save_CFLAGS
|
---|
[3365] | 2437 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2438 | if test "$GCC" = yes; then
|
---|
| 2439 | CFLAGS="-g -O2"
|
---|
| 2440 | else
|
---|
| 2441 | CFLAGS="-g"
|
---|
| 2442 | fi
|
---|
| 2443 | else
|
---|
| 2444 | if test "$GCC" = yes; then
|
---|
| 2445 | CFLAGS="-O2"
|
---|
| 2446 | else
|
---|
| 2447 | CFLAGS=
|
---|
| 2448 | fi
|
---|
| 2449 | fi
|
---|
[10192] | 2450 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2451 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2452 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2453 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2454 | else
|
---|
| 2455 | ac_cv_prog_cc_stdc=no
|
---|
| 2456 | ac_save_CC=$CC
|
---|
| 2457 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2458 | /* confdefs.h. */
|
---|
| 2459 | _ACEOF
|
---|
| 2460 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2461 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2462 | /* end confdefs.h. */
|
---|
| 2463 | #include <stdarg.h>
|
---|
| 2464 | #include <stdio.h>
|
---|
| 2465 | #include <sys/types.h>
|
---|
| 2466 | #include <sys/stat.h>
|
---|
| 2467 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2468 | struct buf { int x; };
|
---|
| 2469 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2470 | static char *e (p, i)
|
---|
| 2471 | char **p;
|
---|
| 2472 | int i;
|
---|
| 2473 | {
|
---|
| 2474 | return p[i];
|
---|
| 2475 | }
|
---|
| 2476 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2477 | {
|
---|
| 2478 | char *s;
|
---|
| 2479 | va_list v;
|
---|
| 2480 | va_start (v,p);
|
---|
| 2481 | s = g (p, va_arg (v,int));
|
---|
| 2482 | va_end (v);
|
---|
| 2483 | return s;
|
---|
| 2484 | }
|
---|
| 2485 |
|
---|
| 2486 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2487 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2488 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2489 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2490 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2491 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2492 | that's true only with -std1. */
|
---|
| 2493 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2494 |
|
---|
| 2495 | int test (int i, double x);
|
---|
| 2496 | struct s1 {int (*f) (int a);};
|
---|
| 2497 | struct s2 {int (*f) (double a);};
|
---|
| 2498 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2499 | int argc;
|
---|
| 2500 | char **argv;
|
---|
| 2501 | int
|
---|
| 2502 | main ()
|
---|
| 2503 | {
|
---|
| 2504 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2505 | ;
|
---|
| 2506 | return 0;
|
---|
| 2507 | }
|
---|
| 2508 | _ACEOF
|
---|
| 2509 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2510 | # breaks some systems' header files.
|
---|
| 2511 | # AIX -qlanglvl=ansi
|
---|
| 2512 | # Ultrix and OSF/1 -std1
|
---|
| 2513 | # HP-UX 10.20 and later -Ae
|
---|
| 2514 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2515 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2516 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 2517 | do
|
---|
| 2518 | CC="$ac_save_CC $ac_arg"
|
---|
| 2519 | rm -f conftest.$ac_objext
|
---|
| 2520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2521 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2522 | ac_status=$?
|
---|
| 2523 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2524 | rm -f conftest.er1
|
---|
| 2525 | cat conftest.err >&5
|
---|
| 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2527 | (exit $ac_status); } &&
|
---|
| 2528 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2529 | || test ! -s conftest.err'
|
---|
| 2530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2531 | (eval $ac_try) 2>&5
|
---|
| 2532 | ac_status=$?
|
---|
| 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2534 | (exit $ac_status); }; } &&
|
---|
| 2535 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2537 | (eval $ac_try) 2>&5
|
---|
| 2538 | ac_status=$?
|
---|
| 2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2540 | (exit $ac_status); }; }; then
|
---|
| 2541 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2542 | break
|
---|
| 2543 | else
|
---|
| 2544 | echo "$as_me: failed program was:" >&5
|
---|
| 2545 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2546 |
|
---|
| 2547 | fi
|
---|
| 2548 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2549 | done
|
---|
| 2550 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2551 | CC=$ac_save_CC
|
---|
| 2552 |
|
---|
| 2553 | fi
|
---|
| 2554 |
|
---|
| 2555 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2556 | x|xno)
|
---|
| 2557 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2558 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2559 | *)
|
---|
| 2560 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2561 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2562 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2563 | esac
|
---|
| 2564 |
|
---|
[8063] | 2565 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2566 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2567 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2568 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2569 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2570 | #ifndef __cplusplus
|
---|
| 2571 | choke me
|
---|
| 2572 | #endif
|
---|
| 2573 | _ACEOF
|
---|
| 2574 | rm -f conftest.$ac_objext
|
---|
[10192] | 2575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2576 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2577 | ac_status=$?
|
---|
[10192] | 2578 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2579 | rm -f conftest.er1
|
---|
| 2580 | cat conftest.err >&5
|
---|
| 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2582 | (exit $ac_status); } &&
|
---|
[10192] | 2583 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2584 | || test ! -s conftest.err'
|
---|
| 2585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2586 | (eval $ac_try) 2>&5
|
---|
| 2587 | ac_status=$?
|
---|
[10192] | 2588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2589 | (exit $ac_status); }; } &&
|
---|
| 2590 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2592 | (eval $ac_try) 2>&5
|
---|
| 2593 | ac_status=$?
|
---|
| 2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2595 | (exit $ac_status); }; }; then
|
---|
| 2596 | for ac_declaration in \
|
---|
[10192] | 2597 | '' \
|
---|
[8063] | 2598 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2599 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2600 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2601 | 'extern "C" void exit (int);' \
|
---|
| 2602 | 'void exit (int);'
|
---|
| 2603 | do
|
---|
| 2604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2605 | /* confdefs.h. */
|
---|
| 2606 | _ACEOF
|
---|
| 2607 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2609 | /* end confdefs.h. */
|
---|
| 2610 | $ac_declaration
|
---|
[8063] | 2611 | #include <stdlib.h>
|
---|
| 2612 | int
|
---|
| 2613 | main ()
|
---|
| 2614 | {
|
---|
| 2615 | exit (42);
|
---|
| 2616 | ;
|
---|
| 2617 | return 0;
|
---|
| 2618 | }
|
---|
| 2619 | _ACEOF
|
---|
| 2620 | rm -f conftest.$ac_objext
|
---|
[10192] | 2621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2622 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2623 | ac_status=$?
|
---|
[10192] | 2624 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2625 | rm -f conftest.er1
|
---|
| 2626 | cat conftest.err >&5
|
---|
| 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2628 | (exit $ac_status); } &&
|
---|
[10192] | 2629 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2630 | || test ! -s conftest.err'
|
---|
| 2631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2632 | (eval $ac_try) 2>&5
|
---|
| 2633 | ac_status=$?
|
---|
[10192] | 2634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2635 | (exit $ac_status); }; } &&
|
---|
| 2636 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2638 | (eval $ac_try) 2>&5
|
---|
| 2639 | ac_status=$?
|
---|
| 2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2641 | (exit $ac_status); }; }; then
|
---|
| 2642 | :
|
---|
| 2643 | else
|
---|
| 2644 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2645 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2646 |
|
---|
[8063] | 2647 | continue
|
---|
| 2648 | fi
|
---|
[10192] | 2649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2650 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2651 | /* confdefs.h. */
|
---|
| 2652 | _ACEOF
|
---|
| 2653 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2654 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2655 | /* end confdefs.h. */
|
---|
[8063] | 2656 | $ac_declaration
|
---|
| 2657 | int
|
---|
| 2658 | main ()
|
---|
| 2659 | {
|
---|
| 2660 | exit (42);
|
---|
| 2661 | ;
|
---|
| 2662 | return 0;
|
---|
| 2663 | }
|
---|
| 2664 | _ACEOF
|
---|
| 2665 | rm -f conftest.$ac_objext
|
---|
[10192] | 2666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2667 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2668 | ac_status=$?
|
---|
[10192] | 2669 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2670 | rm -f conftest.er1
|
---|
| 2671 | cat conftest.err >&5
|
---|
| 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2673 | (exit $ac_status); } &&
|
---|
[10192] | 2674 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2675 | || test ! -s conftest.err'
|
---|
| 2676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2677 | (eval $ac_try) 2>&5
|
---|
| 2678 | ac_status=$?
|
---|
[10192] | 2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2680 | (exit $ac_status); }; } &&
|
---|
| 2681 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2683 | (eval $ac_try) 2>&5
|
---|
| 2684 | ac_status=$?
|
---|
| 2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2686 | (exit $ac_status); }; }; then
|
---|
| 2687 | break
|
---|
| 2688 | else
|
---|
| 2689 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2690 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2691 |
|
---|
[8063] | 2692 | fi
|
---|
[10192] | 2693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2694 | done
|
---|
[10192] | 2695 | rm -f conftest*
|
---|
| 2696 | if test -n "$ac_declaration"; then
|
---|
| 2697 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2698 | echo $ac_declaration >>confdefs.h
|
---|
| 2699 | echo '#endif' >>confdefs.h
|
---|
| 2700 | fi
|
---|
[3365] | 2701 |
|
---|
[8063] | 2702 | else
|
---|
| 2703 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2704 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2705 |
|
---|
[8063] | 2706 | fi
|
---|
[10192] | 2707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2708 | ac_ext=c
|
---|
| 2709 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2713 |
|
---|
[3365] | 2714 | ac_aux_dir=
|
---|
| 2715 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2716 | if test -f $ac_dir/install-sh; then
|
---|
| 2717 | ac_aux_dir=$ac_dir
|
---|
| 2718 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2719 | break
|
---|
| 2720 | elif test -f $ac_dir/install.sh; then
|
---|
| 2721 | ac_aux_dir=$ac_dir
|
---|
| 2722 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2723 | break
|
---|
[8063] | 2724 | elif test -f $ac_dir/shtool; then
|
---|
| 2725 | ac_aux_dir=$ac_dir
|
---|
| 2726 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2727 | break
|
---|
[3365] | 2728 | fi
|
---|
| 2729 | done
|
---|
| 2730 | if test -z "$ac_aux_dir"; then
|
---|
[10192] | 2731 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
[8063] | 2732 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2733 | { (exit 1); exit 1; }; }
|
---|
[3365] | 2734 | fi
|
---|
[8063] | 2735 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2736 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2737 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[3365] | 2738 |
|
---|
| 2739 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2740 | # so one script is as good as another. But avoid the broken or
|
---|
| 2741 | # incompatible versions:
|
---|
| 2742 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2743 | # SunOS /usr/etc/install
|
---|
| 2744 | # IRIX /sbin/install
|
---|
| 2745 | # AIX /bin/install
|
---|
[8063] | 2746 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[3365] | 2747 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2748 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2749 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10192] | 2750 | # OS/2's system install, which has a completely different semantic
|
---|
[3365] | 2751 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[10192] | 2752 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2753 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[3365] | 2754 | if test -z "$INSTALL"; then
|
---|
[8063] | 2755 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2756 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2757 | else
|
---|
[10192] | 2758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2759 | for as_dir in $PATH
|
---|
| 2760 | do
|
---|
| 2761 | IFS=$as_save_IFS
|
---|
| 2762 | test -z "$as_dir" && as_dir=.
|
---|
| 2763 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2764 | case $as_dir/ in
|
---|
| 2765 | ./ | .// | /cC/* | \
|
---|
| 2766 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2767 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2768 | /usr/ucb/* ) ;;
|
---|
| 2769 | *)
|
---|
| 2770 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2771 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2772 | # by default.
|
---|
| 2773 | for ac_prog in ginstall scoinst install; do
|
---|
| 2774 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2775 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[3365] | 2776 | if test $ac_prog = install &&
|
---|
[10192] | 2777 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3365] | 2778 | # AIX install. It has an incompatible calling convention.
|
---|
| 2779 | :
|
---|
[8063] | 2780 | elif test $ac_prog = install &&
|
---|
[10192] | 2781 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[8063] | 2782 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2783 | :
|
---|
[3365] | 2784 | else
|
---|
[10192] | 2785 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2786 | break 3
|
---|
[3365] | 2787 | fi
|
---|
| 2788 | fi
|
---|
| 2789 | done
|
---|
[10192] | 2790 | done
|
---|
| 2791 | ;;
|
---|
| 2792 | esac
|
---|
| 2793 | done
|
---|
[3365] | 2794 |
|
---|
[10192] | 2795 |
|
---|
[3365] | 2796 | fi
|
---|
| 2797 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8063] | 2798 | INSTALL=$ac_cv_path_install
|
---|
[3365] | 2799 | else
|
---|
| 2800 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2801 | # path for INSTALL within a source directory, because that will
|
---|
| 2802 | # break other packages using the cache if that directory is
|
---|
| 2803 | # removed, or if the path is relative.
|
---|
[8063] | 2804 | INSTALL=$ac_install_sh
|
---|
[3365] | 2805 | fi
|
---|
| 2806 | fi
|
---|
[10192] | 2807 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
[8063] | 2808 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[3365] | 2809 |
|
---|
| 2810 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2811 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2812 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2813 |
|
---|
[8063] | 2814 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[3365] | 2815 |
|
---|
| 2816 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2817 |
|
---|
[10192] | 2818 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
[8063] | 2819 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2820 | LN_S=$as_ln_s
|
---|
| 2821 | if test "$LN_S" = "ln -s"; then
|
---|
[10192] | 2822 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2823 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2824 | else
|
---|
[10192] | 2825 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
[8063] | 2826 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[3365] | 2827 | fi
|
---|
| 2828 |
|
---|
[10192] | 2829 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2830 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2831 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
[8063] | 2832 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2833 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2834 | else
|
---|
[10192] | 2835 | cat >conftest.make <<\_ACEOF
|
---|
[3365] | 2836 | all:
|
---|
[10192] | 2837 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2838 | _ACEOF
|
---|
[3365] | 2839 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8063] | 2840 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[3365] | 2841 | if test -n "$ac_maketemp"; then
|
---|
| 2842 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2843 | else
|
---|
| 2844 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2845 | fi
|
---|
[8063] | 2846 | rm -f conftest.make
|
---|
[3365] | 2847 | fi
|
---|
| 2848 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[10192] | 2849 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2850 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2851 | SET_MAKE=
|
---|
| 2852 | else
|
---|
[10192] | 2853 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2854 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2855 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2856 | fi
|
---|
| 2857 |
|
---|
[8063] | 2858 | if test -n "$ac_tool_prefix"; then
|
---|
| 2859 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 2860 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[10192] | 2861 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2863 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 2864 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2865 | else
|
---|
| 2866 | if test -n "$RANLIB"; then
|
---|
| 2867 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 2868 | else
|
---|
[10192] | 2869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2870 | for as_dir in $PATH
|
---|
| 2871 | do
|
---|
| 2872 | IFS=$as_save_IFS
|
---|
| 2873 | test -z "$as_dir" && as_dir=.
|
---|
| 2874 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2875 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2876 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 2877 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2878 | break 2
|
---|
| 2879 | fi
|
---|
[8063] | 2880 | done
|
---|
[10192] | 2881 | done
|
---|
[8063] | 2882 |
|
---|
[3365] | 2883 | fi
|
---|
| 2884 | fi
|
---|
[8063] | 2885 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[3365] | 2886 | if test -n "$RANLIB"; then
|
---|
[10192] | 2887 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
[8063] | 2888 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[3365] | 2889 | else
|
---|
[10192] | 2890 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2891 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2892 | fi
|
---|
| 2893 |
|
---|
[8063] | 2894 | fi
|
---|
| 2895 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 2896 | ac_ct_RANLIB=$RANLIB
|
---|
| 2897 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 2898 | set dummy ranlib; ac_word=$2
|
---|
[10192] | 2899 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2900 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2901 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 2902 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2903 | else
|
---|
| 2904 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 2905 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 2906 | else
|
---|
[10192] | 2907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2908 | for as_dir in $PATH
|
---|
| 2909 | do
|
---|
| 2910 | IFS=$as_save_IFS
|
---|
| 2911 | test -z "$as_dir" && as_dir=.
|
---|
| 2912 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2913 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2914 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 2915 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2916 | break 2
|
---|
| 2917 | fi
|
---|
[8063] | 2918 | done
|
---|
[10192] | 2919 | done
|
---|
[3365] | 2920 |
|
---|
[8063] | 2921 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 2922 | fi
|
---|
| 2923 | fi
|
---|
| 2924 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 2925 | if test -n "$ac_ct_RANLIB"; then
|
---|
[10192] | 2926 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
[8063] | 2927 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 2928 | else
|
---|
[10192] | 2929 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2930 | echo "${ECHO_T}no" >&6
|
---|
| 2931 | fi
|
---|
| 2932 |
|
---|
| 2933 | RANLIB=$ac_ct_RANLIB
|
---|
| 2934 | else
|
---|
| 2935 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 2936 | fi
|
---|
| 2937 |
|
---|
[10192] | 2938 |
|
---|
| 2939 |
|
---|
[8063] | 2940 | ac_ext=c
|
---|
| 2941 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2943 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2944 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[10192] | 2945 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
[8063] | 2946 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[3365] | 2947 | # On Suns, sometimes $CPP names a directory.
|
---|
| 2948 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 2949 | CPP=
|
---|
| 2950 | fi
|
---|
| 2951 | if test -z "$CPP"; then
|
---|
[8063] | 2952 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 2953 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2954 | else
|
---|
[8063] | 2955 | # Double quotes because CPP needs to be expanded
|
---|
| 2956 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 2957 | do
|
---|
| 2958 | ac_preproc_ok=false
|
---|
| 2959 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 2960 | do
|
---|
| 2961 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 2962 | # with a fresh cross-compiler works.
|
---|
[10192] | 2963 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 2964 | # <limits.h> exists even on freestanding compilers.
|
---|
[3365] | 2965 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8063] | 2966 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 2967 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2968 | /* confdefs.h. */
|
---|
[8063] | 2969 | _ACEOF
|
---|
[10192] | 2970 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2971 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2972 | /* end confdefs.h. */
|
---|
| 2973 | #ifdef __STDC__
|
---|
| 2974 | # include <limits.h>
|
---|
| 2975 | #else
|
---|
| 2976 | # include <assert.h>
|
---|
| 2977 | #endif
|
---|
| 2978 | Syntax error
|
---|
| 2979 | _ACEOF
|
---|
| 2980 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 2981 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 2982 | ac_status=$?
|
---|
[10192] | 2983 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 2984 | rm -f conftest.er1
|
---|
| 2985 | cat conftest.err >&5
|
---|
[10192] | 2986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2987 | (exit $ac_status); } >/dev/null; then
|
---|
| 2988 | if test -s conftest.err; then
|
---|
| 2989 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 2990 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 2991 | else
|
---|
| 2992 | ac_cpp_err=
|
---|
| 2993 | fi
|
---|
| 2994 | else
|
---|
| 2995 | ac_cpp_err=yes
|
---|
| 2996 | fi
|
---|
| 2997 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 2998 | :
|
---|
| 2999 | else
|
---|
[8063] | 3000 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3001 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3002 |
|
---|
[8063] | 3003 | # Broken: fails on valid input.
|
---|
| 3004 | continue
|
---|
| 3005 | fi
|
---|
| 3006 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3007 |
|
---|
| 3008 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3009 | # can be detected and how.
|
---|
| 3010 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3011 | /* confdefs.h. */
|
---|
| 3012 | _ACEOF
|
---|
| 3013 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3014 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3015 | /* end confdefs.h. */
|
---|
[8063] | 3016 | #include <ac_nonexistent.h>
|
---|
| 3017 | _ACEOF
|
---|
[10192] | 3018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3020 | ac_status=$?
|
---|
[10192] | 3021 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3022 | rm -f conftest.er1
|
---|
| 3023 | cat conftest.err >&5
|
---|
[10192] | 3024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3025 | (exit $ac_status); } >/dev/null; then
|
---|
| 3026 | if test -s conftest.err; then
|
---|
| 3027 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3029 | else
|
---|
| 3030 | ac_cpp_err=
|
---|
| 3031 | fi
|
---|
[3365] | 3032 | else
|
---|
[8063] | 3033 | ac_cpp_err=yes
|
---|
| 3034 | fi
|
---|
| 3035 | if test -z "$ac_cpp_err"; then
|
---|
| 3036 | # Broken: success on invalid input.
|
---|
| 3037 | continue
|
---|
| 3038 | else
|
---|
| 3039 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3040 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3041 |
|
---|
[8063] | 3042 | # Passes both tests.
|
---|
| 3043 | ac_preproc_ok=:
|
---|
| 3044 | break
|
---|
| 3045 | fi
|
---|
| 3046 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3047 |
|
---|
| 3048 | done
|
---|
| 3049 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3050 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3051 | if $ac_preproc_ok; then
|
---|
[10192] | 3052 | break
|
---|
[8063] | 3053 | fi
|
---|
| 3054 |
|
---|
| 3055 | done
|
---|
| 3056 | ac_cv_prog_CPP=$CPP
|
---|
| 3057 |
|
---|
| 3058 | fi
|
---|
| 3059 | CPP=$ac_cv_prog_CPP
|
---|
| 3060 | else
|
---|
| 3061 | ac_cv_prog_CPP=$CPP
|
---|
| 3062 | fi
|
---|
[10192] | 3063 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
[8063] | 3064 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3065 | ac_preproc_ok=false
|
---|
| 3066 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3067 | do
|
---|
| 3068 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3069 | # with a fresh cross-compiler works.
|
---|
[10192] | 3070 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3071 | # <limits.h> exists even on freestanding compilers.
|
---|
[8063] | 3072 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3073 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3074 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3075 | /* confdefs.h. */
|
---|
[8063] | 3076 | _ACEOF
|
---|
[10192] | 3077 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3078 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3079 | /* end confdefs.h. */
|
---|
| 3080 | #ifdef __STDC__
|
---|
| 3081 | # include <limits.h>
|
---|
| 3082 | #else
|
---|
| 3083 | # include <assert.h>
|
---|
| 3084 | #endif
|
---|
| 3085 | Syntax error
|
---|
| 3086 | _ACEOF
|
---|
| 3087 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3088 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3089 | ac_status=$?
|
---|
[10192] | 3090 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3091 | rm -f conftest.er1
|
---|
| 3092 | cat conftest.err >&5
|
---|
[10192] | 3093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3094 | (exit $ac_status); } >/dev/null; then
|
---|
| 3095 | if test -s conftest.err; then
|
---|
| 3096 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3097 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3098 | else
|
---|
| 3099 | ac_cpp_err=
|
---|
| 3100 | fi
|
---|
| 3101 | else
|
---|
| 3102 | ac_cpp_err=yes
|
---|
| 3103 | fi
|
---|
| 3104 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 3105 | :
|
---|
| 3106 | else
|
---|
[8063] | 3107 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3108 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3109 |
|
---|
[8063] | 3110 | # Broken: fails on valid input.
|
---|
| 3111 | continue
|
---|
[3365] | 3112 | fi
|
---|
[8063] | 3113 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3114 |
|
---|
| 3115 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3116 | # can be detected and how.
|
---|
| 3117 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3118 | /* confdefs.h. */
|
---|
| 3119 | _ACEOF
|
---|
| 3120 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3121 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3122 | /* end confdefs.h. */
|
---|
[8063] | 3123 | #include <ac_nonexistent.h>
|
---|
| 3124 | _ACEOF
|
---|
[10192] | 3125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3127 | ac_status=$?
|
---|
[10192] | 3128 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3129 | rm -f conftest.er1
|
---|
| 3130 | cat conftest.err >&5
|
---|
[10192] | 3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3132 | (exit $ac_status); } >/dev/null; then
|
---|
| 3133 | if test -s conftest.err; then
|
---|
| 3134 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3136 | else
|
---|
| 3137 | ac_cpp_err=
|
---|
| 3138 | fi
|
---|
| 3139 | else
|
---|
| 3140 | ac_cpp_err=yes
|
---|
[3365] | 3141 | fi
|
---|
[8063] | 3142 | if test -z "$ac_cpp_err"; then
|
---|
| 3143 | # Broken: success on invalid input.
|
---|
| 3144 | continue
|
---|
| 3145 | else
|
---|
| 3146 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3147 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3148 |
|
---|
[8063] | 3149 | # Passes both tests.
|
---|
| 3150 | ac_preproc_ok=:
|
---|
| 3151 | break
|
---|
[3365] | 3152 | fi
|
---|
[8063] | 3153 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3154 |
|
---|
| 3155 | done
|
---|
| 3156 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3157 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3158 | if $ac_preproc_ok; then
|
---|
| 3159 | :
|
---|
[3365] | 3160 | else
|
---|
[10192] | 3161 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3162 | See \`config.log' for more details." >&5
|
---|
| 3163 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3164 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 3165 | { (exit 1); exit 1; }; }
|
---|
[3365] | 3166 | fi
|
---|
| 3167 |
|
---|
[8063] | 3168 | ac_ext=c
|
---|
| 3169 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3173 |
|
---|
[10192] | 3174 |
|
---|
| 3175 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3176 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3177 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3178 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3179 | else
|
---|
| 3180 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3181 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3182 | else ac_cv_prog_egrep='egrep'
|
---|
| 3183 | fi
|
---|
| 3184 | fi
|
---|
| 3185 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3186 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3187 | EGREP=$ac_cv_prog_egrep
|
---|
| 3188 |
|
---|
| 3189 |
|
---|
| 3190 |
|
---|
| 3191 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
[8063] | 3192 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3193 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3194 | /* confdefs.h. */
|
---|
| 3195 | _ACEOF
|
---|
| 3196 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3197 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3198 | /* end confdefs.h. */
|
---|
[3365] | 3199 | #ifdef _AIX
|
---|
| 3200 | yes
|
---|
| 3201 | #endif
|
---|
| 3202 |
|
---|
[8063] | 3203 | _ACEOF
|
---|
[3365] | 3204 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 3205 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3206 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3207 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3208 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3209 | #define _ALL_SOURCE 1
|
---|
[10192] | 3210 | _ACEOF
|
---|
[3365] | 3211 |
|
---|
| 3212 | else
|
---|
[10192] | 3213 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3214 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3215 | fi
|
---|
| 3216 | rm -f conftest*
|
---|
| 3217 |
|
---|
[8063] | 3218 |
|
---|
[10192] | 3219 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3220 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3221 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3222 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3223 | else
|
---|
| 3224 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3225 | ac_cv_search_strerror=no
|
---|
| 3226 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3227 | /* confdefs.h. */
|
---|
| 3228 | _ACEOF
|
---|
| 3229 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3230 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3231 | /* end confdefs.h. */
|
---|
[3365] | 3232 |
|
---|
[10192] | 3233 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3234 | #ifdef __cplusplus
|
---|
| 3235 | extern "C"
|
---|
| 3236 | #endif
|
---|
| 3237 | /* We use char because int might match the return type of a gcc2
|
---|
| 3238 | builtin and then its argument prototype would still apply. */
|
---|
| 3239 | char strerror ();
|
---|
| 3240 | int
|
---|
| 3241 | main ()
|
---|
| 3242 | {
|
---|
| 3243 | strerror ();
|
---|
| 3244 | ;
|
---|
| 3245 | return 0;
|
---|
| 3246 | }
|
---|
| 3247 | _ACEOF
|
---|
| 3248 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3250 | (eval $ac_link) 2>conftest.er1
|
---|
| 3251 | ac_status=$?
|
---|
| 3252 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3253 | rm -f conftest.er1
|
---|
| 3254 | cat conftest.err >&5
|
---|
| 3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3256 | (exit $ac_status); } &&
|
---|
| 3257 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3258 | || test ! -s conftest.err'
|
---|
| 3259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3260 | (eval $ac_try) 2>&5
|
---|
| 3261 | ac_status=$?
|
---|
| 3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3263 | (exit $ac_status); }; } &&
|
---|
| 3264 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3266 | (eval $ac_try) 2>&5
|
---|
| 3267 | ac_status=$?
|
---|
| 3268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3269 | (exit $ac_status); }; }; then
|
---|
| 3270 | ac_cv_search_strerror="none required"
|
---|
[3365] | 3271 | else
|
---|
[10192] | 3272 | echo "$as_me: failed program was:" >&5
|
---|
| 3273 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3274 |
|
---|
[3365] | 3275 | fi
|
---|
[10192] | 3276 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3277 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3278 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3279 | for ac_lib in cposix; do
|
---|
| 3280 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3281 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3282 | /* confdefs.h. */
|
---|
| 3283 | _ACEOF
|
---|
| 3284 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3285 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3286 | /* end confdefs.h. */
|
---|
[3365] | 3287 |
|
---|
[10192] | 3288 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3289 | #ifdef __cplusplus
|
---|
| 3290 | extern "C"
|
---|
| 3291 | #endif
|
---|
| 3292 | /* We use char because int might match the return type of a gcc2
|
---|
| 3293 | builtin and then its argument prototype would still apply. */
|
---|
| 3294 | char strerror ();
|
---|
| 3295 | int
|
---|
| 3296 | main ()
|
---|
| 3297 | {
|
---|
| 3298 | strerror ();
|
---|
| 3299 | ;
|
---|
| 3300 | return 0;
|
---|
| 3301 | }
|
---|
| 3302 | _ACEOF
|
---|
| 3303 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3305 | (eval $ac_link) 2>conftest.er1
|
---|
| 3306 | ac_status=$?
|
---|
| 3307 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3308 | rm -f conftest.er1
|
---|
| 3309 | cat conftest.err >&5
|
---|
| 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3311 | (exit $ac_status); } &&
|
---|
| 3312 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3313 | || test ! -s conftest.err'
|
---|
| 3314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3315 | (eval $ac_try) 2>&5
|
---|
| 3316 | ac_status=$?
|
---|
| 3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3318 | (exit $ac_status); }; } &&
|
---|
| 3319 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3321 | (eval $ac_try) 2>&5
|
---|
| 3322 | ac_status=$?
|
---|
| 3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3324 | (exit $ac_status); }; }; then
|
---|
| 3325 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3326 | break
|
---|
| 3327 | else
|
---|
| 3328 | echo "$as_me: failed program was:" >&5
|
---|
| 3329 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3330 |
|
---|
| 3331 | fi
|
---|
| 3332 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3333 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3334 | done
|
---|
| 3335 | fi
|
---|
| 3336 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3337 | fi
|
---|
| 3338 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3339 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3340 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3341 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3342 |
|
---|
| 3343 | fi
|
---|
| 3344 |
|
---|
| 3345 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3346 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3347 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3348 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3349 | else
|
---|
| 3350 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3351 | /* confdefs.h. */
|
---|
| 3352 | _ACEOF
|
---|
| 3353 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3354 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3355 | /* end confdefs.h. */
|
---|
| 3356 | #include <stdlib.h>
|
---|
| 3357 | #include <stdarg.h>
|
---|
| 3358 | #include <string.h>
|
---|
| 3359 | #include <float.h>
|
---|
| 3360 |
|
---|
| 3361 | int
|
---|
| 3362 | main ()
|
---|
| 3363 | {
|
---|
| 3364 |
|
---|
| 3365 | ;
|
---|
| 3366 | return 0;
|
---|
| 3367 | }
|
---|
| 3368 | _ACEOF
|
---|
| 3369 | rm -f conftest.$ac_objext
|
---|
| 3370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3371 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3372 | ac_status=$?
|
---|
| 3373 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3374 | rm -f conftest.er1
|
---|
| 3375 | cat conftest.err >&5
|
---|
| 3376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3377 | (exit $ac_status); } &&
|
---|
| 3378 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3379 | || test ! -s conftest.err'
|
---|
| 3380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3381 | (eval $ac_try) 2>&5
|
---|
| 3382 | ac_status=$?
|
---|
| 3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3384 | (exit $ac_status); }; } &&
|
---|
| 3385 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3387 | (eval $ac_try) 2>&5
|
---|
| 3388 | ac_status=$?
|
---|
| 3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3390 | (exit $ac_status); }; }; then
|
---|
| 3391 | ac_cv_header_stdc=yes
|
---|
| 3392 | else
|
---|
| 3393 | echo "$as_me: failed program was:" >&5
|
---|
| 3394 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3395 |
|
---|
| 3396 | ac_cv_header_stdc=no
|
---|
| 3397 | fi
|
---|
| 3398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3399 |
|
---|
| 3400 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3401 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3402 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3403 | /* confdefs.h. */
|
---|
| 3404 | _ACEOF
|
---|
| 3405 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3406 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3407 | /* end confdefs.h. */
|
---|
| 3408 | #include <string.h>
|
---|
| 3409 |
|
---|
| 3410 | _ACEOF
|
---|
| 3411 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3412 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3413 | :
|
---|
| 3414 | else
|
---|
| 3415 | ac_cv_header_stdc=no
|
---|
| 3416 | fi
|
---|
| 3417 | rm -f conftest*
|
---|
| 3418 |
|
---|
| 3419 | fi
|
---|
| 3420 |
|
---|
| 3421 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3422 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3423 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3424 | /* confdefs.h. */
|
---|
| 3425 | _ACEOF
|
---|
| 3426 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3427 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3428 | /* end confdefs.h. */
|
---|
| 3429 | #include <stdlib.h>
|
---|
| 3430 |
|
---|
| 3431 | _ACEOF
|
---|
| 3432 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3433 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3434 | :
|
---|
| 3435 | else
|
---|
| 3436 | ac_cv_header_stdc=no
|
---|
| 3437 | fi
|
---|
| 3438 | rm -f conftest*
|
---|
| 3439 |
|
---|
| 3440 | fi
|
---|
| 3441 |
|
---|
| 3442 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3443 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3444 | if test "$cross_compiling" = yes; then
|
---|
| 3445 | :
|
---|
| 3446 | else
|
---|
| 3447 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3448 | /* confdefs.h. */
|
---|
| 3449 | _ACEOF
|
---|
| 3450 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3451 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3452 | /* end confdefs.h. */
|
---|
| 3453 | #include <ctype.h>
|
---|
| 3454 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3455 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3456 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3457 | #else
|
---|
| 3458 | # define ISLOWER(c) \
|
---|
| 3459 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3460 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3461 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3462 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3463 | #endif
|
---|
| 3464 |
|
---|
| 3465 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3466 | int
|
---|
| 3467 | main ()
|
---|
| 3468 | {
|
---|
| 3469 | int i;
|
---|
| 3470 | for (i = 0; i < 256; i++)
|
---|
| 3471 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3472 | || toupper (i) != TOUPPER (i))
|
---|
| 3473 | exit(2);
|
---|
| 3474 | exit (0);
|
---|
| 3475 | }
|
---|
| 3476 | _ACEOF
|
---|
| 3477 | rm -f conftest$ac_exeext
|
---|
| 3478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3479 | (eval $ac_link) 2>&5
|
---|
| 3480 | ac_status=$?
|
---|
| 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3482 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3484 | (eval $ac_try) 2>&5
|
---|
| 3485 | ac_status=$?
|
---|
| 3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3487 | (exit $ac_status); }; }; then
|
---|
| 3488 | :
|
---|
| 3489 | else
|
---|
| 3490 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3491 | echo "$as_me: failed program was:" >&5
|
---|
| 3492 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3493 |
|
---|
| 3494 | ( exit $ac_status )
|
---|
| 3495 | ac_cv_header_stdc=no
|
---|
| 3496 | fi
|
---|
| 3497 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3498 | fi
|
---|
| 3499 | fi
|
---|
| 3500 | fi
|
---|
| 3501 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3502 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3503 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3504 |
|
---|
| 3505 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3506 | #define STDC_HEADERS 1
|
---|
| 3507 | _ACEOF
|
---|
| 3508 |
|
---|
| 3509 | fi
|
---|
| 3510 |
|
---|
| 3511 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3512 |
|
---|
| 3513 |
|
---|
| 3514 |
|
---|
| 3515 |
|
---|
| 3516 |
|
---|
| 3517 |
|
---|
| 3518 |
|
---|
| 3519 |
|
---|
| 3520 |
|
---|
| 3521 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3522 | inttypes.h stdint.h unistd.h
|
---|
| 3523 | do
|
---|
| 3524 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3525 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3528 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3529 | else
|
---|
| 3530 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3531 | /* confdefs.h. */
|
---|
| 3532 | _ACEOF
|
---|
| 3533 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3534 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3535 | /* end confdefs.h. */
|
---|
| 3536 | $ac_includes_default
|
---|
| 3537 |
|
---|
| 3538 | #include <$ac_header>
|
---|
| 3539 | _ACEOF
|
---|
| 3540 | rm -f conftest.$ac_objext
|
---|
| 3541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3542 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3543 | ac_status=$?
|
---|
| 3544 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3545 | rm -f conftest.er1
|
---|
| 3546 | cat conftest.err >&5
|
---|
| 3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3548 | (exit $ac_status); } &&
|
---|
| 3549 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3550 | || test ! -s conftest.err'
|
---|
| 3551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3552 | (eval $ac_try) 2>&5
|
---|
| 3553 | ac_status=$?
|
---|
| 3554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3555 | (exit $ac_status); }; } &&
|
---|
| 3556 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3558 | (eval $ac_try) 2>&5
|
---|
| 3559 | ac_status=$?
|
---|
| 3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3561 | (exit $ac_status); }; }; then
|
---|
| 3562 | eval "$as_ac_Header=yes"
|
---|
| 3563 | else
|
---|
| 3564 | echo "$as_me: failed program was:" >&5
|
---|
| 3565 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3566 |
|
---|
| 3567 | eval "$as_ac_Header=no"
|
---|
| 3568 | fi
|
---|
| 3569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3570 | fi
|
---|
| 3571 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3572 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3574 | cat >>confdefs.h <<_ACEOF
|
---|
| 3575 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3576 | _ACEOF
|
---|
| 3577 |
|
---|
| 3578 | fi
|
---|
| 3579 |
|
---|
| 3580 | done
|
---|
| 3581 |
|
---|
| 3582 |
|
---|
| 3583 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3584 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
[8063] | 3585 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3586 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3587 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 3588 | fi
|
---|
| 3589 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3590 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[3365] | 3591 | else
|
---|
[10192] | 3592 | # Is the header compilable?
|
---|
| 3593 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3594 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3595 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3596 | /* confdefs.h. */
|
---|
| 3597 | _ACEOF
|
---|
| 3598 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3599 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3600 | /* end confdefs.h. */
|
---|
| 3601 | $ac_includes_default
|
---|
[3365] | 3602 | #include <minix/config.h>
|
---|
[8063] | 3603 | _ACEOF
|
---|
[10192] | 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 | ac_header_compiler=yes
|
---|
| 3627 | else
|
---|
| 3628 | echo "$as_me: failed program was:" >&5
|
---|
| 3629 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3630 |
|
---|
| 3631 | ac_header_compiler=no
|
---|
| 3632 | fi
|
---|
| 3633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3634 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3635 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3636 |
|
---|
| 3637 | # Is the header present?
|
---|
| 3638 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3639 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3640 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3641 | /* confdefs.h. */
|
---|
| 3642 | _ACEOF
|
---|
| 3643 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3644 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3645 | /* end confdefs.h. */
|
---|
| 3646 | #include <minix/config.h>
|
---|
| 3647 | _ACEOF
|
---|
| 3648 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3649 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3650 | ac_status=$?
|
---|
[10192] | 3651 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3652 | rm -f conftest.er1
|
---|
| 3653 | cat conftest.err >&5
|
---|
[10192] | 3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3655 | (exit $ac_status); } >/dev/null; then
|
---|
| 3656 | if test -s conftest.err; then
|
---|
| 3657 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3658 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3659 | else
|
---|
| 3660 | ac_cpp_err=
|
---|
| 3661 | fi
|
---|
[3365] | 3662 | else
|
---|
[8063] | 3663 | ac_cpp_err=yes
|
---|
| 3664 | fi
|
---|
| 3665 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 3666 | ac_header_preproc=yes
|
---|
[8063] | 3667 | else
|
---|
| 3668 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3669 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3670 |
|
---|
| 3671 | ac_header_preproc=no
|
---|
[3365] | 3672 | fi
|
---|
[8063] | 3673 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 3674 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3675 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3676 |
|
---|
| 3677 | # So? What about this header?
|
---|
| 3678 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3679 | yes:no: )
|
---|
| 3680 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3681 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3682 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3683 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3684 | ac_header_preproc=yes
|
---|
| 3685 | ;;
|
---|
| 3686 | no:yes:* )
|
---|
| 3687 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3688 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3689 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3690 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3691 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3692 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3693 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3694 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3695 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3696 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3697 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3698 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3699 | (
|
---|
| 3700 | cat <<\_ASBOX
|
---|
| 3701 | ## ------------------------------------------ ##
|
---|
| 3702 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3703 | ## ------------------------------------------ ##
|
---|
| 3704 | _ASBOX
|
---|
| 3705 | ) |
|
---|
| 3706 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3707 | ;;
|
---|
| 3708 | esac
|
---|
| 3709 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3710 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3711 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3712 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3713 | else
|
---|
| 3714 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
[3365] | 3715 | fi
|
---|
[10192] | 3716 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
[8063] | 3717 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[10192] | 3718 |
|
---|
| 3719 | fi
|
---|
[8063] | 3720 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[3365] | 3721 | MINIX=yes
|
---|
| 3722 | else
|
---|
[8063] | 3723 | MINIX=
|
---|
[3365] | 3724 | fi
|
---|
| 3725 |
|
---|
[10192] | 3726 |
|
---|
[3365] | 3727 | if test "$MINIX" = yes; then
|
---|
[8063] | 3728 |
|
---|
[10192] | 3729 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3730 | #define _POSIX_SOURCE 1
|
---|
[10192] | 3731 | _ACEOF
|
---|
[3365] | 3732 |
|
---|
[10192] | 3733 |
|
---|
| 3734 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3735 | #define _POSIX_1_SOURCE 2
|
---|
[10192] | 3736 | _ACEOF
|
---|
[3365] | 3737 |
|
---|
[10192] | 3738 |
|
---|
| 3739 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3740 | #define _MINIX 1
|
---|
[10192] | 3741 | _ACEOF
|
---|
[3365] | 3742 |
|
---|
| 3743 | fi
|
---|
| 3744 |
|
---|
[10192] | 3745 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[8063] | 3746 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3747 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3748 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 3749 | else
|
---|
| 3750 | ac_cv_prog_cc_stdc=no
|
---|
| 3751 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3752 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3753 | # breaks some systems' header files.
|
---|
| 3754 | # AIX -qlanglvl=ansi
|
---|
| 3755 | # Ultrix and OSF/1 -std1
|
---|
| 3756 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3757 | # SVR4 -Xc
|
---|
| 3758 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3759 | do
|
---|
| 3760 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8063] | 3761 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3762 | /* confdefs.h. */
|
---|
| 3763 | _ACEOF
|
---|
| 3764 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3765 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3766 | /* end confdefs.h. */
|
---|
[3365] | 3767 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3768 | choke me
|
---|
[8063] | 3769 | #endif
|
---|
[3365] | 3770 |
|
---|
[8063] | 3771 | int
|
---|
| 3772 | main ()
|
---|
| 3773 | {
|
---|
[3365] | 3774 | int test (int i, double x);
|
---|
| 3775 | struct s1 {int (*f) (int a);};
|
---|
| 3776 | struct s2 {int (*f) (double a);};
|
---|
[8063] | 3777 | ;
|
---|
| 3778 | return 0;
|
---|
| 3779 | }
|
---|
| 3780 | _ACEOF
|
---|
| 3781 | rm -f conftest.$ac_objext
|
---|
[10192] | 3782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3783 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3784 | ac_status=$?
|
---|
[10192] | 3785 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3786 | rm -f conftest.er1
|
---|
| 3787 | cat conftest.err >&5
|
---|
| 3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3789 | (exit $ac_status); } &&
|
---|
[10192] | 3790 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3791 | || test ! -s conftest.err'
|
---|
| 3792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3793 | (eval $ac_try) 2>&5
|
---|
| 3794 | ac_status=$?
|
---|
[10192] | 3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3796 | (exit $ac_status); }; } &&
|
---|
| 3797 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3799 | (eval $ac_try) 2>&5
|
---|
| 3800 | ac_status=$?
|
---|
| 3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3802 | (exit $ac_status); }; }; then
|
---|
[3365] | 3803 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3804 | else
|
---|
[8063] | 3805 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3806 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3807 |
|
---|
[3365] | 3808 | fi
|
---|
[10192] | 3809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3810 | done
|
---|
| 3811 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3812 |
|
---|
| 3813 | fi
|
---|
| 3814 |
|
---|
[10192] | 3815 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[8063] | 3816 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[3365] | 3817 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 3818 | x|xno) ;;
|
---|
| 3819 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 3820 | esac
|
---|
| 3821 |
|
---|
[10192] | 3822 |
|
---|
| 3823 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
[8063] | 3824 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[3365] | 3825 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[10192] | 3826 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3827 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3828 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3829 | #define PROTOTYPES 1
|
---|
[10192] | 3830 | _ACEOF
|
---|
[3365] | 3831 |
|
---|
| 3832 | U= ANSI2KNR=
|
---|
| 3833 | else
|
---|
[10192] | 3834 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3835 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3836 | U=_ ANSI2KNR=ansi2knr
|
---|
| 3837 | fi
|
---|
| 3838 |
|
---|
[10192] | 3839 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
[8063] | 3840 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 3841 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 3842 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3843 | else
|
---|
| 3844 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3845 | /* confdefs.h. */
|
---|
| 3846 | _ACEOF
|
---|
| 3847 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3848 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3849 | /* end confdefs.h. */
|
---|
[8063] | 3850 |
|
---|
| 3851 | int
|
---|
| 3852 | main ()
|
---|
| 3853 | {
|
---|
| 3854 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 3855 | #ifndef __cplusplus
|
---|
| 3856 | /* Ultrix mips cc rejects this. */
|
---|
| 3857 | typedef int charset[2];
|
---|
| 3858 | const charset x;
|
---|
| 3859 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 3860 | char const *const *ccp;
|
---|
| 3861 | char **p;
|
---|
| 3862 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 3863 | struct point {int x, y;};
|
---|
| 3864 | static struct point const zero = {0,0};
|
---|
| 3865 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 3866 | It does not let you subtract one const X* pointer from another in
|
---|
| 3867 | an arm of an if-expression whose if-part is not a constant
|
---|
| 3868 | expression */
|
---|
| 3869 | const char *g = "string";
|
---|
| 3870 | ccp = &g + (g ? g-g : 0);
|
---|
| 3871 | /* HPUX 7.0 cc rejects these. */
|
---|
| 3872 | ++ccp;
|
---|
| 3873 | p = (char**) ccp;
|
---|
| 3874 | ccp = (char const *const *) p;
|
---|
| 3875 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 3876 | char *t;
|
---|
| 3877 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 3878 |
|
---|
| 3879 | *t++ = 0;
|
---|
| 3880 | }
|
---|
| 3881 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 3882 | int x[] = {25, 17};
|
---|
| 3883 | const int *foo = &x[0];
|
---|
| 3884 | ++foo;
|
---|
| 3885 | }
|
---|
| 3886 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 3887 | typedef const int *iptr;
|
---|
| 3888 | iptr p = 0;
|
---|
| 3889 | ++p;
|
---|
| 3890 | }
|
---|
| 3891 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 3892 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 3893 | struct s { int j; const int *ap[3]; };
|
---|
| 3894 | struct s *b; b->j = 5;
|
---|
| 3895 | }
|
---|
| 3896 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 3897 | const int foo = 10;
|
---|
| 3898 | }
|
---|
| 3899 | #endif
|
---|
| 3900 |
|
---|
| 3901 | ;
|
---|
| 3902 | return 0;
|
---|
[3365] | 3903 | }
|
---|
[8063] | 3904 | _ACEOF
|
---|
| 3905 | rm -f conftest.$ac_objext
|
---|
[10192] | 3906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3907 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3908 | ac_status=$?
|
---|
[10192] | 3909 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3910 | rm -f conftest.er1
|
---|
| 3911 | cat conftest.err >&5
|
---|
| 3912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3913 | (exit $ac_status); } &&
|
---|
[10192] | 3914 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3915 | || test ! -s conftest.err'
|
---|
| 3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3917 | (eval $ac_try) 2>&5
|
---|
| 3918 | ac_status=$?
|
---|
[10192] | 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3920 | (exit $ac_status); }; } &&
|
---|
| 3921 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3923 | (eval $ac_try) 2>&5
|
---|
| 3924 | ac_status=$?
|
---|
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3926 | (exit $ac_status); }; }; then
|
---|
[3365] | 3927 | ac_cv_c_const=yes
|
---|
| 3928 | else
|
---|
[8063] | 3929 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3930 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3931 |
|
---|
[8063] | 3932 | ac_cv_c_const=no
|
---|
[3365] | 3933 | fi
|
---|
[10192] | 3934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3935 | fi
|
---|
[10192] | 3936 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
[8063] | 3937 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
| 3938 | if test $ac_cv_c_const = no; then
|
---|
[8059] | 3939 |
|
---|
[10192] | 3940 | cat >>confdefs.h <<\_ACEOF
|
---|
[8063] | 3941 | #define const
|
---|
| 3942 | _ACEOF
|
---|
[3365] | 3943 |
|
---|
| 3944 | fi
|
---|
| 3945 |
|
---|
[10192] | 3946 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
[8063] | 3947 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 3948 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 3949 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3950 | else
|
---|
| 3951 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3952 | /* confdefs.h. */
|
---|
| 3953 | _ACEOF
|
---|
| 3954 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3955 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3956 | /* end confdefs.h. */
|
---|
[8063] | 3957 | $ac_includes_default
|
---|
| 3958 | int
|
---|
| 3959 | main ()
|
---|
| 3960 | {
|
---|
| 3961 | if ((off_t *) 0)
|
---|
| 3962 | return 0;
|
---|
| 3963 | if (sizeof (off_t))
|
---|
| 3964 | return 0;
|
---|
| 3965 | ;
|
---|
| 3966 | return 0;
|
---|
| 3967 | }
|
---|
| 3968 | _ACEOF
|
---|
| 3969 | rm -f conftest.$ac_objext
|
---|
[10192] | 3970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3971 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3972 | ac_status=$?
|
---|
[10192] | 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
|
---|
[8063] | 3977 | (exit $ac_status); } &&
|
---|
[10192] | 3978 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3979 | || test ! -s conftest.err'
|
---|
| 3980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3981 | (eval $ac_try) 2>&5
|
---|
| 3982 | ac_status=$?
|
---|
[10192] | 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
|
---|
[8063] | 3990 | (exit $ac_status); }; }; then
|
---|
[3365] | 3991 | ac_cv_type_off_t=yes
|
---|
| 3992 | else
|
---|
[8063] | 3993 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3994 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3995 |
|
---|
[8063] | 3996 | ac_cv_type_off_t=no
|
---|
[3365] | 3997 | fi
|
---|
[10192] | 3998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 3999 | fi
|
---|
[10192] | 4000 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
[8063] | 4001 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4002 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4003 | :
|
---|
| 4004 | else
|
---|
[8059] | 4005 |
|
---|
[10192] | 4006 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4007 | #define off_t long
|
---|
[10192] | 4008 | _ACEOF
|
---|
[3365] | 4009 |
|
---|
| 4010 | fi
|
---|
| 4011 |
|
---|
[10192] | 4012 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
[8063] | 4013 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4014 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4015 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4016 | else
|
---|
[8063] | 4017 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4018 | /* confdefs.h. */
|
---|
| 4019 | _ACEOF
|
---|
| 4020 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4021 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4022 | /* end confdefs.h. */
|
---|
[8063] | 4023 | $ac_includes_default
|
---|
| 4024 | int
|
---|
| 4025 | main ()
|
---|
| 4026 | {
|
---|
| 4027 | if ((size_t *) 0)
|
---|
| 4028 | return 0;
|
---|
| 4029 | if (sizeof (size_t))
|
---|
| 4030 | return 0;
|
---|
| 4031 | ;
|
---|
| 4032 | return 0;
|
---|
| 4033 | }
|
---|
| 4034 | _ACEOF
|
---|
| 4035 | rm -f conftest.$ac_objext
|
---|
[10192] | 4036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4037 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4038 | ac_status=$?
|
---|
[10192] | 4039 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4040 | rm -f conftest.er1
|
---|
| 4041 | cat conftest.err >&5
|
---|
| 4042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4043 | (exit $ac_status); } &&
|
---|
[10192] | 4044 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4045 | || test ! -s conftest.err'
|
---|
| 4046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4047 | (eval $ac_try) 2>&5
|
---|
| 4048 | ac_status=$?
|
---|
[10192] | 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4050 | (exit $ac_status); }; } &&
|
---|
| 4051 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4053 | (eval $ac_try) 2>&5
|
---|
| 4054 | ac_status=$?
|
---|
| 4055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4056 | (exit $ac_status); }; }; then
|
---|
[3365] | 4057 | ac_cv_type_size_t=yes
|
---|
| 4058 | else
|
---|
[8063] | 4059 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4060 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4061 |
|
---|
[8063] | 4062 | ac_cv_type_size_t=no
|
---|
[3365] | 4063 | fi
|
---|
[10192] | 4064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 4065 | fi
|
---|
[10192] | 4066 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
[8063] | 4067 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4068 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4069 | :
|
---|
| 4070 | else
|
---|
[8059] | 4071 |
|
---|
[10192] | 4072 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4073 | #define size_t unsigned
|
---|
[10192] | 4074 | _ACEOF
|
---|
[3365] | 4075 |
|
---|
| 4076 | fi
|
---|
| 4077 |
|
---|
[10192] | 4078 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[8063] | 4079 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4080 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4081 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4082 | else
|
---|
[8063] | 4083 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4084 | /* confdefs.h. */
|
---|
| 4085 | _ACEOF
|
---|
| 4086 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4087 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4088 | /* end confdefs.h. */
|
---|
[3365] | 4089 | #include <sys/types.h>
|
---|
| 4090 | #include <sys/time.h>
|
---|
| 4091 | #include <time.h>
|
---|
[8063] | 4092 |
|
---|
| 4093 | int
|
---|
| 4094 | main ()
|
---|
| 4095 | {
|
---|
[10192] | 4096 | if ((struct tm *) 0)
|
---|
| 4097 | return 0;
|
---|
[8063] | 4098 | ;
|
---|
| 4099 | return 0;
|
---|
| 4100 | }
|
---|
| 4101 | _ACEOF
|
---|
| 4102 | rm -f conftest.$ac_objext
|
---|
[10192] | 4103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4104 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4105 | ac_status=$?
|
---|
[10192] | 4106 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4107 | rm -f conftest.er1
|
---|
| 4108 | cat conftest.err >&5
|
---|
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4110 | (exit $ac_status); } &&
|
---|
[10192] | 4111 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4112 | || test ! -s conftest.err'
|
---|
| 4113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4114 | (eval $ac_try) 2>&5
|
---|
| 4115 | ac_status=$?
|
---|
[10192] | 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4117 | (exit $ac_status); }; } &&
|
---|
| 4118 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4120 | (eval $ac_try) 2>&5
|
---|
| 4121 | ac_status=$?
|
---|
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4123 | (exit $ac_status); }; }; then
|
---|
[3365] | 4124 | ac_cv_header_time=yes
|
---|
| 4125 | else
|
---|
[8063] | 4126 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4127 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4128 |
|
---|
[8063] | 4129 | ac_cv_header_time=no
|
---|
[3365] | 4130 | fi
|
---|
[10192] | 4131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4132 | fi
|
---|
[10192] | 4133 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
[8063] | 4134 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4135 | if test $ac_cv_header_time = yes; then
|
---|
[8059] | 4136 |
|
---|
[10192] | 4137 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4138 | #define TIME_WITH_SYS_TIME 1
|
---|
[10192] | 4139 | _ACEOF
|
---|
[3365] | 4140 |
|
---|
| 4141 | fi
|
---|
| 4142 |
|
---|
[10192] | 4143 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[8063] | 4144 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4145 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4146 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4147 | else
|
---|
[8063] | 4148 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4149 | /* confdefs.h. */
|
---|
| 4150 | _ACEOF
|
---|
| 4151 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4152 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4153 | /* end confdefs.h. */
|
---|
[3365] | 4154 | #include <sys/types.h>
|
---|
| 4155 | #include <time.h>
|
---|
[8063] | 4156 |
|
---|
| 4157 | int
|
---|
| 4158 | main ()
|
---|
| 4159 | {
|
---|
[3365] | 4160 | struct tm *tp; tp->tm_sec;
|
---|
[8063] | 4161 | ;
|
---|
| 4162 | return 0;
|
---|
| 4163 | }
|
---|
| 4164 | _ACEOF
|
---|
| 4165 | rm -f conftest.$ac_objext
|
---|
[10192] | 4166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4167 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4168 | ac_status=$?
|
---|
[10192] | 4169 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4170 | rm -f conftest.er1
|
---|
| 4171 | cat conftest.err >&5
|
---|
| 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4173 | (exit $ac_status); } &&
|
---|
[10192] | 4174 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4175 | || test ! -s conftest.err'
|
---|
| 4176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4177 | (eval $ac_try) 2>&5
|
---|
| 4178 | ac_status=$?
|
---|
[10192] | 4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4180 | (exit $ac_status); }; } &&
|
---|
| 4181 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4183 | (eval $ac_try) 2>&5
|
---|
| 4184 | ac_status=$?
|
---|
| 4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4186 | (exit $ac_status); }; }; then
|
---|
[3365] | 4187 | ac_cv_struct_tm=time.h
|
---|
| 4188 | else
|
---|
[8063] | 4189 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4190 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4191 |
|
---|
[8063] | 4192 | ac_cv_struct_tm=sys/time.h
|
---|
[3365] | 4193 | fi
|
---|
[10192] | 4194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4195 | fi
|
---|
[10192] | 4196 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
[8063] | 4197 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4198 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8059] | 4199 |
|
---|
[10192] | 4200 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4201 | #define TM_IN_SYS_TIME 1
|
---|
[10192] | 4202 | _ACEOF
|
---|
[3365] | 4203 |
|
---|
| 4204 | fi
|
---|
| 4205 |
|
---|
[10192] | 4206 |
|
---|
[3365] | 4207 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8063] | 4208 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4209 | /* confdefs.h. */
|
---|
| 4210 | _ACEOF
|
---|
| 4211 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4212 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4213 | /* end confdefs.h. */
|
---|
[3365] | 4214 | #include <stdio.h>
|
---|
| 4215 |
|
---|
[8063] | 4216 | int
|
---|
| 4217 | main ()
|
---|
| 4218 | {
|
---|
| 4219 | FILE *rubbish = popen("yes", "r");
|
---|
| 4220 | ;
|
---|
| 4221 | return 0;
|
---|
| 4222 | }
|
---|
| 4223 | _ACEOF
|
---|
| 4224 | rm -f conftest.$ac_objext
|
---|
[10192] | 4225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4226 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4227 | ac_status=$?
|
---|
[10192] | 4228 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4229 | rm -f conftest.er1
|
---|
| 4230 | cat conftest.err >&5
|
---|
| 4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4232 | (exit $ac_status); } &&
|
---|
[10192] | 4233 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4234 | || test ! -s conftest.err'
|
---|
| 4235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4236 | (eval $ac_try) 2>&5
|
---|
| 4237 | ac_status=$?
|
---|
[10192] | 4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4239 | (exit $ac_status); }; } &&
|
---|
| 4240 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4242 | (eval $ac_try) 2>&5
|
---|
| 4243 | ac_status=$?
|
---|
| 4244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4245 | (exit $ac_status); }; }; then
|
---|
[3365] | 4246 | :
|
---|
| 4247 | else
|
---|
[8063] | 4248 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4249 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4250 |
|
---|
[8063] | 4251 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3365] | 4252 | fi
|
---|
[10192] | 4253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4254 | fi
|
---|
| 4255 |
|
---|
[10192] | 4256 |
|
---|
| 4257 |
|
---|
| 4258 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
[8063] | 4259 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4260 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4261 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4262 | else
|
---|
[8063] | 4263 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4264 | LIBS="-lg $LIBS"
|
---|
[8063] | 4265 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4266 | /* confdefs.h. */
|
---|
| 4267 | _ACEOF
|
---|
| 4268 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4269 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4270 | /* end confdefs.h. */
|
---|
[8059] | 4271 |
|
---|
[10192] | 4272 |
|
---|
[8063] | 4273 | int
|
---|
| 4274 | main ()
|
---|
| 4275 | {
|
---|
| 4276 | main ();
|
---|
| 4277 | ;
|
---|
| 4278 | return 0;
|
---|
| 4279 | }
|
---|
| 4280 | _ACEOF
|
---|
| 4281 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4283 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4284 | ac_status=$?
|
---|
[10192] | 4285 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4286 | rm -f conftest.er1
|
---|
| 4287 | cat conftest.err >&5
|
---|
| 4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4289 | (exit $ac_status); } &&
|
---|
[10192] | 4290 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4291 | || test ! -s conftest.err'
|
---|
| 4292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4293 | (eval $ac_try) 2>&5
|
---|
| 4294 | ac_status=$?
|
---|
[10192] | 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4296 | (exit $ac_status); }; } &&
|
---|
| 4297 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4299 | (eval $ac_try) 2>&5
|
---|
| 4300 | ac_status=$?
|
---|
| 4301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4302 | (exit $ac_status); }; }; then
|
---|
| 4303 | ac_cv_lib_g_main=yes
|
---|
[8059] | 4304 | else
|
---|
[8063] | 4305 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4306 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4307 |
|
---|
[8063] | 4308 | ac_cv_lib_g_main=no
|
---|
[8059] | 4309 | fi
|
---|
[10192] | 4310 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4311 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4312 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4313 | fi
|
---|
[10192] | 4314 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
[8063] | 4315 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4316 | if test $ac_cv_lib_g_main = yes; then
|
---|
[10192] | 4317 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4318 | #define HAVE_LIBG 1
|
---|
[10192] | 4319 | _ACEOF
|
---|
[8059] | 4320 |
|
---|
| 4321 | LIBS="-lg $LIBS"
|
---|
| 4322 |
|
---|
| 4323 | fi
|
---|
| 4324 |
|
---|
[10192] | 4325 |
|
---|
| 4326 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
[8063] | 4327 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4328 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4329 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4330 | else
|
---|
[8063] | 4331 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 4332 | LIBS="-lm $LIBS"
|
---|
[8063] | 4333 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4334 | /* confdefs.h. */
|
---|
| 4335 | _ACEOF
|
---|
| 4336 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4337 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4338 | /* end confdefs.h. */
|
---|
[3365] | 4339 |
|
---|
[10192] | 4340 |
|
---|
[8063] | 4341 | int
|
---|
| 4342 | main ()
|
---|
| 4343 | {
|
---|
| 4344 | main ();
|
---|
| 4345 | ;
|
---|
| 4346 | return 0;
|
---|
| 4347 | }
|
---|
| 4348 | _ACEOF
|
---|
| 4349 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4351 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4352 | ac_status=$?
|
---|
[10192] | 4353 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4354 | rm -f conftest.er1
|
---|
| 4355 | cat conftest.err >&5
|
---|
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4357 | (exit $ac_status); } &&
|
---|
[10192] | 4358 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4359 | || test ! -s conftest.err'
|
---|
| 4360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4361 | (eval $ac_try) 2>&5
|
---|
| 4362 | ac_status=$?
|
---|
[10192] | 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4364 | (exit $ac_status); }; } &&
|
---|
| 4365 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4367 | (eval $ac_try) 2>&5
|
---|
| 4368 | ac_status=$?
|
---|
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4370 | (exit $ac_status); }; }; then
|
---|
| 4371 | ac_cv_lib_m_main=yes
|
---|
[3365] | 4372 | else
|
---|
[8063] | 4373 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4374 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4375 |
|
---|
[8063] | 4376 | ac_cv_lib_m_main=no
|
---|
[3365] | 4377 | fi
|
---|
[10192] | 4378 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4379 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4380 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 4381 | fi
|
---|
[10192] | 4382 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
[8063] | 4383 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4384 | if test $ac_cv_lib_m_main = yes; then
|
---|
[10192] | 4385 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4386 | #define HAVE_LIBM 1
|
---|
[10192] | 4387 | _ACEOF
|
---|
[3365] | 4388 |
|
---|
| 4389 | LIBS="-lm $LIBS"
|
---|
| 4390 |
|
---|
| 4391 | fi
|
---|
| 4392 |
|
---|
[10192] | 4393 |
|
---|
| 4394 | echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
|
---|
[8063] | 4395 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
|
---|
| 4396 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then
|
---|
| 4397 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4398 | else
|
---|
[8063] | 4399 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4400 | LIBS="-lstdc++ $LIBS"
|
---|
[8063] | 4401 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4402 | /* confdefs.h. */
|
---|
| 4403 | _ACEOF
|
---|
| 4404 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4405 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4406 | /* end confdefs.h. */
|
---|
[8059] | 4407 |
|
---|
[10192] | 4408 |
|
---|
[8063] | 4409 | int
|
---|
| 4410 | main ()
|
---|
| 4411 | {
|
---|
| 4412 | main ();
|
---|
| 4413 | ;
|
---|
| 4414 | return 0;
|
---|
| 4415 | }
|
---|
| 4416 | _ACEOF
|
---|
| 4417 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4419 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4420 | ac_status=$?
|
---|
[10192] | 4421 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4422 | rm -f conftest.er1
|
---|
| 4423 | cat conftest.err >&5
|
---|
| 4424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4425 | (exit $ac_status); } &&
|
---|
[10192] | 4426 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4427 | || test ! -s conftest.err'
|
---|
| 4428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4429 | (eval $ac_try) 2>&5
|
---|
| 4430 | ac_status=$?
|
---|
[10192] | 4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4432 | (exit $ac_status); }; } &&
|
---|
| 4433 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4435 | (eval $ac_try) 2>&5
|
---|
| 4436 | ac_status=$?
|
---|
| 4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4438 | (exit $ac_status); }; }; then
|
---|
| 4439 | ac_cv_lib_stdcpp_main=yes
|
---|
[8059] | 4440 | else
|
---|
[8063] | 4441 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4442 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4443 |
|
---|
[8063] | 4444 | ac_cv_lib_stdcpp_main=no
|
---|
[8059] | 4445 | fi
|
---|
[10192] | 4446 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4447 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4448 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4449 | fi
|
---|
[10192] | 4450 | echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
[8063] | 4451 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
|
---|
| 4452 | if test $ac_cv_lib_stdcpp_main = yes; then
|
---|
[10192] | 4453 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4454 | #define HAVE_LIBSTDC__ 1
|
---|
[10192] | 4455 | _ACEOF
|
---|
[8059] | 4456 |
|
---|
| 4457 | LIBS="-lstdc++ $LIBS"
|
---|
| 4458 |
|
---|
| 4459 | fi
|
---|
| 4460 |
|
---|
[10192] | 4461 |
|
---|
| 4462 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
[8063] | 4463 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4464 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4465 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4466 | else
|
---|
[8063] | 4467 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4468 | LIBS="-lcrypt $LIBS"
|
---|
[8063] | 4469 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4470 | /* confdefs.h. */
|
---|
| 4471 | _ACEOF
|
---|
| 4472 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4473 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4474 | /* end confdefs.h. */
|
---|
[8059] | 4475 |
|
---|
[10192] | 4476 |
|
---|
[8063] | 4477 | int
|
---|
| 4478 | main ()
|
---|
| 4479 | {
|
---|
| 4480 | main ();
|
---|
| 4481 | ;
|
---|
| 4482 | return 0;
|
---|
| 4483 | }
|
---|
| 4484 | _ACEOF
|
---|
| 4485 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4487 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4488 | ac_status=$?
|
---|
[10192] | 4489 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4490 | rm -f conftest.er1
|
---|
| 4491 | cat conftest.err >&5
|
---|
| 4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4493 | (exit $ac_status); } &&
|
---|
[10192] | 4494 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4495 | || test ! -s conftest.err'
|
---|
| 4496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4497 | (eval $ac_try) 2>&5
|
---|
| 4498 | ac_status=$?
|
---|
[10192] | 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4500 | (exit $ac_status); }; } &&
|
---|
| 4501 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4503 | (eval $ac_try) 2>&5
|
---|
| 4504 | ac_status=$?
|
---|
| 4505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4506 | (exit $ac_status); }; }; then
|
---|
| 4507 | ac_cv_lib_crypt_main=yes
|
---|
[8059] | 4508 | else
|
---|
[8063] | 4509 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4510 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4511 |
|
---|
[8063] | 4512 | ac_cv_lib_crypt_main=no
|
---|
[8059] | 4513 | fi
|
---|
[10192] | 4514 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4515 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4516 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4517 | fi
|
---|
[10192] | 4518 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
[8063] | 4519 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4520 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[10192] | 4521 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4522 | #define HAVE_LIBCRYPT 1
|
---|
[10192] | 4523 | _ACEOF
|
---|
[8059] | 4524 |
|
---|
| 4525 | LIBS="-lcrypt $LIBS"
|
---|
| 4526 |
|
---|
| 4527 | fi
|
---|
| 4528 |
|
---|
[10192] | 4529 |
|
---|
| 4530 |
|
---|
| 4531 |
|
---|
| 4532 |
|
---|
| 4533 |
|
---|
| 4534 |
|
---|
[3365] | 4535 | ac_header_dirent=no
|
---|
[8063] | 4536 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[10192] | 4537 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4538 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
[8063] | 4539 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
[10192] | 4540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 4541 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4542 | else
|
---|
[8063] | 4543 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4544 | /* confdefs.h. */
|
---|
| 4545 | _ACEOF
|
---|
| 4546 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4547 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4548 | /* end confdefs.h. */
|
---|
[3365] | 4549 | #include <sys/types.h>
|
---|
| 4550 | #include <$ac_hdr>
|
---|
[8063] | 4551 |
|
---|
| 4552 | int
|
---|
| 4553 | main ()
|
---|
| 4554 | {
|
---|
[10192] | 4555 | if ((DIR *) 0)
|
---|
| 4556 | return 0;
|
---|
[8063] | 4557 | ;
|
---|
| 4558 | return 0;
|
---|
| 4559 | }
|
---|
| 4560 | _ACEOF
|
---|
| 4561 | rm -f conftest.$ac_objext
|
---|
[10192] | 4562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4563 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4564 | ac_status=$?
|
---|
[10192] | 4565 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4566 | rm -f conftest.er1
|
---|
| 4567 | cat conftest.err >&5
|
---|
| 4568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4569 | (exit $ac_status); } &&
|
---|
[10192] | 4570 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4571 | || test ! -s conftest.err'
|
---|
| 4572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4573 | (eval $ac_try) 2>&5
|
---|
| 4574 | ac_status=$?
|
---|
[10192] | 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4576 | (exit $ac_status); }; } &&
|
---|
| 4577 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4579 | (eval $ac_try) 2>&5
|
---|
| 4580 | ac_status=$?
|
---|
| 4581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4582 | (exit $ac_status); }; }; then
|
---|
[10192] | 4583 | eval "$as_ac_Header=yes"
|
---|
[3365] | 4584 | else
|
---|
[8063] | 4585 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4586 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4587 |
|
---|
| 4588 | eval "$as_ac_Header=no"
|
---|
[3365] | 4589 | fi
|
---|
[10192] | 4590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4591 | fi
|
---|
[10192] | 4592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4593 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4594 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4595 | cat >>confdefs.h <<_ACEOF
|
---|
| 4596 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4597 | _ACEOF
|
---|
[8063] | 4598 |
|
---|
| 4599 | ac_header_dirent=$ac_hdr; break
|
---|
[3365] | 4600 | fi
|
---|
[8063] | 4601 |
|
---|
[3365] | 4602 | done
|
---|
| 4603 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4604 | if test $ac_header_dirent = dirent.h; then
|
---|
[10192] | 4605 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4606 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4607 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4608 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4609 | else
|
---|
[10192] | 4610 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4611 | ac_cv_search_opendir=no
|
---|
[8063] | 4612 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4613 | /* confdefs.h. */
|
---|
| 4614 | _ACEOF
|
---|
| 4615 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4616 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4617 | /* end confdefs.h. */
|
---|
[8063] | 4618 |
|
---|
[3365] | 4619 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4620 | #ifdef __cplusplus
|
---|
| 4621 | extern "C"
|
---|
| 4622 | #endif
|
---|
[3365] | 4623 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4624 | builtin and then its argument prototype would still apply. */
|
---|
| 4625 | char opendir ();
|
---|
| 4626 | int
|
---|
| 4627 | main ()
|
---|
| 4628 | {
|
---|
| 4629 | opendir ();
|
---|
| 4630 | ;
|
---|
| 4631 | return 0;
|
---|
| 4632 | }
|
---|
| 4633 | _ACEOF
|
---|
| 4634 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4636 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4637 | ac_status=$?
|
---|
[10192] | 4638 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4639 | rm -f conftest.er1
|
---|
| 4640 | cat conftest.err >&5
|
---|
| 4641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4642 | (exit $ac_status); } &&
|
---|
[10192] | 4643 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4644 | || test ! -s conftest.err'
|
---|
| 4645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4646 | (eval $ac_try) 2>&5
|
---|
| 4647 | ac_status=$?
|
---|
[10192] | 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4649 | (exit $ac_status); }; } &&
|
---|
| 4650 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4652 | (eval $ac_try) 2>&5
|
---|
| 4653 | ac_status=$?
|
---|
| 4654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4655 | (exit $ac_status); }; }; then
|
---|
[10192] | 4656 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4657 | else
|
---|
[8063] | 4658 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4659 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4660 |
|
---|
[3365] | 4661 | fi
|
---|
[10192] | 4662 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4663 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4664 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4665 | for ac_lib in dir; do
|
---|
| 4666 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4667 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4668 | /* confdefs.h. */
|
---|
| 4669 | _ACEOF
|
---|
| 4670 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4671 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4672 | /* end confdefs.h. */
|
---|
| 4673 |
|
---|
| 4674 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4675 | #ifdef __cplusplus
|
---|
| 4676 | extern "C"
|
---|
| 4677 | #endif
|
---|
| 4678 | /* We use char because int might match the return type of a gcc2
|
---|
| 4679 | builtin and then its argument prototype would still apply. */
|
---|
| 4680 | char opendir ();
|
---|
| 4681 | int
|
---|
| 4682 | main ()
|
---|
| 4683 | {
|
---|
| 4684 | opendir ();
|
---|
| 4685 | ;
|
---|
| 4686 | return 0;
|
---|
| 4687 | }
|
---|
| 4688 | _ACEOF
|
---|
| 4689 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4691 | (eval $ac_link) 2>conftest.er1
|
---|
| 4692 | ac_status=$?
|
---|
| 4693 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4694 | rm -f conftest.er1
|
---|
| 4695 | cat conftest.err >&5
|
---|
| 4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4697 | (exit $ac_status); } &&
|
---|
| 4698 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4699 | || test ! -s conftest.err'
|
---|
| 4700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4701 | (eval $ac_try) 2>&5
|
---|
| 4702 | ac_status=$?
|
---|
| 4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4704 | (exit $ac_status); }; } &&
|
---|
| 4705 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4707 | (eval $ac_try) 2>&5
|
---|
| 4708 | ac_status=$?
|
---|
| 4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4710 | (exit $ac_status); }; }; then
|
---|
| 4711 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4712 | break
|
---|
| 4713 | else
|
---|
| 4714 | echo "$as_me: failed program was:" >&5
|
---|
| 4715 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4716 |
|
---|
[3365] | 4717 | fi
|
---|
[10192] | 4718 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4719 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4720 | done
|
---|
[3365] | 4721 | fi
|
---|
[10192] | 4722 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4723 | fi
|
---|
| 4724 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4725 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4726 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4727 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 4728 |
|
---|
[10192] | 4729 | fi
|
---|
| 4730 |
|
---|
[3365] | 4731 | else
|
---|
[10192] | 4732 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4733 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4734 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4735 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4736 | else
|
---|
[10192] | 4737 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4738 | ac_cv_search_opendir=no
|
---|
[8063] | 4739 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4740 | /* confdefs.h. */
|
---|
| 4741 | _ACEOF
|
---|
| 4742 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4743 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4744 | /* end confdefs.h. */
|
---|
[8063] | 4745 |
|
---|
[3365] | 4746 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4747 | #ifdef __cplusplus
|
---|
| 4748 | extern "C"
|
---|
| 4749 | #endif
|
---|
[3365] | 4750 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4751 | builtin and then its argument prototype would still apply. */
|
---|
| 4752 | char opendir ();
|
---|
| 4753 | int
|
---|
| 4754 | main ()
|
---|
| 4755 | {
|
---|
| 4756 | opendir ();
|
---|
| 4757 | ;
|
---|
| 4758 | return 0;
|
---|
| 4759 | }
|
---|
| 4760 | _ACEOF
|
---|
| 4761 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4763 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4764 | ac_status=$?
|
---|
[10192] | 4765 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4766 | rm -f conftest.er1
|
---|
| 4767 | cat conftest.err >&5
|
---|
| 4768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4769 | (exit $ac_status); } &&
|
---|
[10192] | 4770 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4771 | || test ! -s conftest.err'
|
---|
| 4772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4773 | (eval $ac_try) 2>&5
|
---|
| 4774 | ac_status=$?
|
---|
[10192] | 4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4776 | (exit $ac_status); }; } &&
|
---|
| 4777 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4779 | (eval $ac_try) 2>&5
|
---|
| 4780 | ac_status=$?
|
---|
| 4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4782 | (exit $ac_status); }; }; then
|
---|
[10192] | 4783 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4784 | else
|
---|
[8063] | 4785 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4786 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4787 |
|
---|
[3365] | 4788 | fi
|
---|
[10192] | 4789 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4790 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4791 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4792 | for ac_lib in x; do
|
---|
| 4793 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4794 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4795 | /* confdefs.h. */
|
---|
| 4796 | _ACEOF
|
---|
| 4797 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4798 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4799 | /* end confdefs.h. */
|
---|
| 4800 |
|
---|
| 4801 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4802 | #ifdef __cplusplus
|
---|
| 4803 | extern "C"
|
---|
| 4804 | #endif
|
---|
| 4805 | /* We use char because int might match the return type of a gcc2
|
---|
| 4806 | builtin and then its argument prototype would still apply. */
|
---|
| 4807 | char opendir ();
|
---|
| 4808 | int
|
---|
| 4809 | main ()
|
---|
| 4810 | {
|
---|
| 4811 | opendir ();
|
---|
| 4812 | ;
|
---|
| 4813 | return 0;
|
---|
| 4814 | }
|
---|
| 4815 | _ACEOF
|
---|
| 4816 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4818 | (eval $ac_link) 2>conftest.er1
|
---|
| 4819 | ac_status=$?
|
---|
| 4820 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4821 | rm -f conftest.er1
|
---|
| 4822 | cat conftest.err >&5
|
---|
| 4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4824 | (exit $ac_status); } &&
|
---|
| 4825 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4826 | || test ! -s conftest.err'
|
---|
| 4827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4828 | (eval $ac_try) 2>&5
|
---|
| 4829 | ac_status=$?
|
---|
| 4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4831 | (exit $ac_status); }; } &&
|
---|
| 4832 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4834 | (eval $ac_try) 2>&5
|
---|
| 4835 | ac_status=$?
|
---|
| 4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4837 | (exit $ac_status); }; }; then
|
---|
| 4838 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4839 | break
|
---|
| 4840 | else
|
---|
| 4841 | echo "$as_me: failed program was:" >&5
|
---|
| 4842 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4843 |
|
---|
[3365] | 4844 | fi
|
---|
[10192] | 4845 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4846 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4847 | done
|
---|
[3365] | 4848 | fi
|
---|
[10192] | 4849 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4850 | fi
|
---|
| 4851 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4852 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4853 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4854 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 4855 |
|
---|
| 4856 | fi
|
---|
| 4857 |
|
---|
[10192] | 4858 | fi
|
---|
| 4859 |
|
---|
| 4860 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
[8063] | 4861 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4862 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4863 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4864 | else
|
---|
[8063] | 4865 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4866 | /* confdefs.h. */
|
---|
| 4867 | _ACEOF
|
---|
| 4868 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4869 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4870 | /* end confdefs.h. */
|
---|
[3365] | 4871 | #include <stdlib.h>
|
---|
| 4872 | #include <stdarg.h>
|
---|
| 4873 | #include <string.h>
|
---|
| 4874 | #include <float.h>
|
---|
[8063] | 4875 |
|
---|
[10192] | 4876 | int
|
---|
| 4877 | main ()
|
---|
| 4878 | {
|
---|
| 4879 |
|
---|
| 4880 | ;
|
---|
| 4881 | return 0;
|
---|
| 4882 | }
|
---|
[8063] | 4883 | _ACEOF
|
---|
[10192] | 4884 | rm -f conftest.$ac_objext
|
---|
| 4885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4886 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4887 | ac_status=$?
|
---|
[10192] | 4888 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 4889 | rm -f conftest.er1
|
---|
| 4890 | cat conftest.err >&5
|
---|
[10192] | 4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4892 | (exit $ac_status); } &&
|
---|
| 4893 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4894 | || test ! -s conftest.err'
|
---|
| 4895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4896 | (eval $ac_try) 2>&5
|
---|
| 4897 | ac_status=$?
|
---|
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4899 | (exit $ac_status); }; } &&
|
---|
| 4900 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4902 | (eval $ac_try) 2>&5
|
---|
| 4903 | ac_status=$?
|
---|
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4905 | (exit $ac_status); }; }; then
|
---|
[3365] | 4906 | ac_cv_header_stdc=yes
|
---|
| 4907 | else
|
---|
[8063] | 4908 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4910 |
|
---|
| 4911 | ac_cv_header_stdc=no
|
---|
[3365] | 4912 | fi
|
---|
[10192] | 4913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4914 |
|
---|
| 4915 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4916 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8063] | 4917 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4918 | /* confdefs.h. */
|
---|
| 4919 | _ACEOF
|
---|
| 4920 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4921 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4922 | /* end confdefs.h. */
|
---|
[3365] | 4923 | #include <string.h>
|
---|
[8063] | 4924 |
|
---|
| 4925 | _ACEOF
|
---|
[3365] | 4926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 4927 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[3365] | 4928 | :
|
---|
| 4929 | else
|
---|
| 4930 | ac_cv_header_stdc=no
|
---|
| 4931 | fi
|
---|
| 4932 | rm -f conftest*
|
---|
| 4933 |
|
---|
| 4934 | fi
|
---|
| 4935 |
|
---|
| 4936 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4937 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8063] | 4938 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4939 | /* confdefs.h. */
|
---|
| 4940 | _ACEOF
|
---|
| 4941 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4942 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4943 | /* end confdefs.h. */
|
---|
[3365] | 4944 | #include <stdlib.h>
|
---|
[8063] | 4945 |
|
---|
| 4946 | _ACEOF
|
---|
[3365] | 4947 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 4948 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[3365] | 4949 | :
|
---|
| 4950 | else
|
---|
| 4951 | ac_cv_header_stdc=no
|
---|
| 4952 | fi
|
---|
| 4953 | rm -f conftest*
|
---|
| 4954 |
|
---|
| 4955 | fi
|
---|
| 4956 |
|
---|
| 4957 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4958 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8063] | 4959 | if test "$cross_compiling" = yes; then
|
---|
[3365] | 4960 | :
|
---|
| 4961 | else
|
---|
[8063] | 4962 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4963 | /* confdefs.h. */
|
---|
| 4964 | _ACEOF
|
---|
| 4965 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4966 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4967 | /* end confdefs.h. */
|
---|
[3365] | 4968 | #include <ctype.h>
|
---|
[8063] | 4969 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4970 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4971 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4972 | #else
|
---|
[10192] | 4973 | # define ISLOWER(c) \
|
---|
| 4974 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4975 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4976 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[8063] | 4977 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4978 | #endif
|
---|
| 4979 |
|
---|
[8059] | 4980 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8063] | 4981 | int
|
---|
| 4982 | main ()
|
---|
| 4983 | {
|
---|
| 4984 | int i;
|
---|
| 4985 | for (i = 0; i < 256; i++)
|
---|
| 4986 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10192] | 4987 | || toupper (i) != TOUPPER (i))
|
---|
[8063] | 4988 | exit(2);
|
---|
| 4989 | exit (0);
|
---|
| 4990 | }
|
---|
| 4991 | _ACEOF
|
---|
| 4992 | rm -f conftest$ac_exeext
|
---|
[10192] | 4993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 4994 | (eval $ac_link) 2>&5
|
---|
| 4995 | ac_status=$?
|
---|
[10192] | 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4997 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 4998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4999 | (eval $ac_try) 2>&5
|
---|
| 5000 | ac_status=$?
|
---|
[10192] | 5001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5002 | (exit $ac_status); }; }; then
|
---|
[3365] | 5003 | :
|
---|
| 5004 | else
|
---|
[8063] | 5005 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5006 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5007 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5008 |
|
---|
| 5009 | ( exit $ac_status )
|
---|
[8063] | 5010 | ac_cv_header_stdc=no
|
---|
[3365] | 5011 | fi
|
---|
[10192] | 5012 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5013 | fi
|
---|
| 5014 | fi
|
---|
| 5015 | fi
|
---|
[10192] | 5016 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
[8063] | 5017 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5018 | if test $ac_cv_header_stdc = yes; then
|
---|
[8059] | 5019 |
|
---|
[10192] | 5020 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5021 | #define STDC_HEADERS 1
|
---|
[10192] | 5022 | _ACEOF
|
---|
[3365] | 5023 |
|
---|
| 5024 | fi
|
---|
| 5025 |
|
---|
[10192] | 5026 |
|
---|
| 5027 |
|
---|
| 5028 |
|
---|
| 5029 |
|
---|
| 5030 |
|
---|
| 5031 |
|
---|
| 5032 |
|
---|
| 5033 |
|
---|
[8063] | 5034 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
[3365] | 5035 | do
|
---|
[10192] | 5036 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5038 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
[8063] | 5039 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
[10192] | 5040 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 5041 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 5042 | fi
|
---|
| 5043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5044 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[3365] | 5045 | else
|
---|
[10192] | 5046 | # Is the header compilable?
|
---|
| 5047 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5048 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5049 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5050 | /* confdefs.h. */
|
---|
| 5051 | _ACEOF
|
---|
| 5052 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5053 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5054 | /* end confdefs.h. */
|
---|
| 5055 | $ac_includes_default
|
---|
[8063] | 5056 | #include <$ac_header>
|
---|
| 5057 | _ACEOF
|
---|
[10192] | 5058 | rm -f conftest.$ac_objext
|
---|
| 5059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5060 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5061 | ac_status=$?
|
---|
| 5062 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5063 | rm -f conftest.er1
|
---|
| 5064 | cat conftest.err >&5
|
---|
| 5065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5066 | (exit $ac_status); } &&
|
---|
| 5067 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5068 | || test ! -s conftest.err'
|
---|
| 5069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5070 | (eval $ac_try) 2>&5
|
---|
| 5071 | ac_status=$?
|
---|
| 5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5073 | (exit $ac_status); }; } &&
|
---|
| 5074 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5076 | (eval $ac_try) 2>&5
|
---|
| 5077 | ac_status=$?
|
---|
| 5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5079 | (exit $ac_status); }; }; then
|
---|
| 5080 | ac_header_compiler=yes
|
---|
| 5081 | else
|
---|
| 5082 | echo "$as_me: failed program was:" >&5
|
---|
| 5083 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5084 |
|
---|
| 5085 | ac_header_compiler=no
|
---|
| 5086 | fi
|
---|
| 5087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5088 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5089 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5090 |
|
---|
| 5091 | # Is the header present?
|
---|
| 5092 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5093 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5094 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5095 | /* confdefs.h. */
|
---|
| 5096 | _ACEOF
|
---|
| 5097 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5098 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5099 | /* end confdefs.h. */
|
---|
| 5100 | #include <$ac_header>
|
---|
| 5101 | _ACEOF
|
---|
| 5102 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 5103 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5104 | ac_status=$?
|
---|
[10192] | 5105 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 5106 | rm -f conftest.er1
|
---|
| 5107 | cat conftest.err >&5
|
---|
[10192] | 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5109 | (exit $ac_status); } >/dev/null; then
|
---|
| 5110 | if test -s conftest.err; then
|
---|
| 5111 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 5112 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 5113 | else
|
---|
| 5114 | ac_cpp_err=
|
---|
| 5115 | fi
|
---|
[3365] | 5116 | else
|
---|
[8063] | 5117 | ac_cpp_err=yes
|
---|
| 5118 | fi
|
---|
| 5119 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 5120 | ac_header_preproc=yes
|
---|
[8063] | 5121 | else
|
---|
| 5122 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5123 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5124 |
|
---|
| 5125 | ac_header_preproc=no
|
---|
[3365] | 5126 | fi
|
---|
[8063] | 5127 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 5128 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5129 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5130 |
|
---|
| 5131 | # So? What about this header?
|
---|
| 5132 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5133 | yes:no: )
|
---|
| 5134 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5135 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5136 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5137 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5138 | ac_header_preproc=yes
|
---|
| 5139 | ;;
|
---|
| 5140 | no:yes:* )
|
---|
| 5141 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5142 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5143 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5144 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5145 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5146 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5147 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5148 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5149 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5150 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5151 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5152 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5153 | (
|
---|
| 5154 | cat <<\_ASBOX
|
---|
| 5155 | ## ------------------------------------------ ##
|
---|
| 5156 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5157 | ## ------------------------------------------ ##
|
---|
| 5158 | _ASBOX
|
---|
| 5159 | ) |
|
---|
| 5160 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5161 | ;;
|
---|
| 5162 | esac
|
---|
| 5163 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5164 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5165 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5166 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5167 | else
|
---|
| 5168 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
[3365] | 5169 | fi
|
---|
[10192] | 5170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5171 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[8063] | 5172 |
|
---|
[3365] | 5173 | fi
|
---|
[10192] | 5174 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5175 | cat >>confdefs.h <<_ACEOF
|
---|
| 5176 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5177 | _ACEOF
|
---|
| 5178 |
|
---|
| 5179 | fi
|
---|
| 5180 |
|
---|
[3365] | 5181 | done
|
---|
| 5182 |
|
---|
[8063] | 5183 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5184 | /* confdefs.h. */
|
---|
| 5185 | _ACEOF
|
---|
| 5186 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5187 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5188 | /* end confdefs.h. */
|
---|
[3365] | 5189 | #include <stdio.h>
|
---|
[8063] | 5190 |
|
---|
| 5191 | _ACEOF
|
---|
[3365] | 5192 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5193 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5194 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5195 | #define HAVE_FREAD_DECL 1
|
---|
[10192] | 5196 | _ACEOF
|
---|
[3365] | 5197 |
|
---|
| 5198 | fi
|
---|
| 5199 | rm -f conftest*
|
---|
| 5200 |
|
---|
[8063] | 5201 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5202 | /* confdefs.h. */
|
---|
| 5203 | _ACEOF
|
---|
| 5204 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5205 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5206 | /* end confdefs.h. */
|
---|
[3365] | 5207 | #include <stdio.h>
|
---|
[8063] | 5208 |
|
---|
| 5209 | _ACEOF
|
---|
[3365] | 5210 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5211 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5212 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5213 | #define HAVE_FGETC_DECL 1
|
---|
[10192] | 5214 | _ACEOF
|
---|
[3365] | 5215 |
|
---|
| 5216 | fi
|
---|
| 5217 | rm -f conftest*
|
---|
| 5218 |
|
---|
[8063] | 5219 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5220 | /* confdefs.h. */
|
---|
| 5221 | _ACEOF
|
---|
| 5222 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5223 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5224 | /* end confdefs.h. */
|
---|
[3365] | 5225 | #include <sys/procfs.h>
|
---|
[8063] | 5226 |
|
---|
| 5227 | _ACEOF
|
---|
[3365] | 5228 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5229 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5230 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5231 | #define HAVE_PR_BRKSIZE 1
|
---|
[10192] | 5232 | _ACEOF
|
---|
[3365] | 5233 |
|
---|
| 5234 | fi
|
---|
| 5235 | rm -f conftest*
|
---|
| 5236 |
|
---|
[10192] | 5237 |
|
---|
[3365] | 5238 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5239 | # for constant arguments. Useless!
|
---|
[10192] | 5240 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
[8063] | 5241 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5242 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5243 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5244 | else
|
---|
[8063] | 5245 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5246 | /* confdefs.h. */
|
---|
| 5247 | _ACEOF
|
---|
| 5248 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5249 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5250 | /* end confdefs.h. */
|
---|
[3365] | 5251 | #include <alloca.h>
|
---|
[8063] | 5252 | int
|
---|
| 5253 | main ()
|
---|
| 5254 | {
|
---|
| 5255 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5256 | ;
|
---|
| 5257 | return 0;
|
---|
| 5258 | }
|
---|
| 5259 | _ACEOF
|
---|
| 5260 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5262 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5263 | ac_status=$?
|
---|
[10192] | 5264 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5265 | rm -f conftest.er1
|
---|
| 5266 | cat conftest.err >&5
|
---|
| 5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5268 | (exit $ac_status); } &&
|
---|
[10192] | 5269 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5270 | || test ! -s conftest.err'
|
---|
| 5271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5272 | (eval $ac_try) 2>&5
|
---|
| 5273 | ac_status=$?
|
---|
[10192] | 5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5275 | (exit $ac_status); }; } &&
|
---|
| 5276 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5278 | (eval $ac_try) 2>&5
|
---|
| 5279 | ac_status=$?
|
---|
| 5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5281 | (exit $ac_status); }; }; then
|
---|
| 5282 | ac_cv_working_alloca_h=yes
|
---|
[3365] | 5283 | else
|
---|
[8063] | 5284 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5285 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5286 |
|
---|
[8063] | 5287 | ac_cv_working_alloca_h=no
|
---|
[3365] | 5288 | fi
|
---|
[10192] | 5289 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5290 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5291 | fi
|
---|
[10192] | 5292 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
[8063] | 5293 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5294 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[3365] | 5295 |
|
---|
[10192] | 5296 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5297 | #define HAVE_ALLOCA_H 1
|
---|
[10192] | 5298 | _ACEOF
|
---|
[3365] | 5299 |
|
---|
| 5300 | fi
|
---|
| 5301 |
|
---|
[10192] | 5302 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
[8063] | 5303 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5304 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5305 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5306 | else
|
---|
[8063] | 5307 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5308 | /* confdefs.h. */
|
---|
| 5309 | _ACEOF
|
---|
| 5310 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5311 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5312 | /* end confdefs.h. */
|
---|
[3365] | 5313 | #ifdef __GNUC__
|
---|
| 5314 | # define alloca __builtin_alloca
|
---|
| 5315 | #else
|
---|
| 5316 | # ifdef _MSC_VER
|
---|
| 5317 | # include <malloc.h>
|
---|
| 5318 | # define alloca _alloca
|
---|
| 5319 | # else
|
---|
| 5320 | # if HAVE_ALLOCA_H
|
---|
| 5321 | # include <alloca.h>
|
---|
| 5322 | # else
|
---|
| 5323 | # ifdef _AIX
|
---|
| 5324 | #pragma alloca
|
---|
| 5325 | # else
|
---|
| 5326 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5327 | char *alloca ();
|
---|
| 5328 | # endif
|
---|
| 5329 | # endif
|
---|
| 5330 | # endif
|
---|
| 5331 | # endif
|
---|
| 5332 | #endif
|
---|
| 5333 |
|
---|
[8063] | 5334 | int
|
---|
| 5335 | main ()
|
---|
| 5336 | {
|
---|
| 5337 | char *p = (char *) alloca (1);
|
---|
| 5338 | ;
|
---|
| 5339 | return 0;
|
---|
| 5340 | }
|
---|
| 5341 | _ACEOF
|
---|
| 5342 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5344 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5345 | ac_status=$?
|
---|
[10192] | 5346 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5347 | rm -f conftest.er1
|
---|
| 5348 | cat conftest.err >&5
|
---|
| 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5350 | (exit $ac_status); } &&
|
---|
[10192] | 5351 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5352 | || test ! -s conftest.err'
|
---|
| 5353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5354 | (eval $ac_try) 2>&5
|
---|
| 5355 | ac_status=$?
|
---|
[10192] | 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5357 | (exit $ac_status); }; } &&
|
---|
| 5358 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5360 | (eval $ac_try) 2>&5
|
---|
| 5361 | ac_status=$?
|
---|
| 5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5363 | (exit $ac_status); }; }; then
|
---|
[3365] | 5364 | ac_cv_func_alloca_works=yes
|
---|
| 5365 | else
|
---|
[8063] | 5366 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5367 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5368 |
|
---|
[8063] | 5369 | ac_cv_func_alloca_works=no
|
---|
[3365] | 5370 | fi
|
---|
[10192] | 5371 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5372 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5373 | fi
|
---|
[10192] | 5374 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
[8063] | 5375 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[3365] | 5376 |
|
---|
| 5377 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8063] | 5378 |
|
---|
[10192] | 5379 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5380 | #define HAVE_ALLOCA 1
|
---|
[10192] | 5381 | _ACEOF
|
---|
[3365] | 5382 |
|
---|
[8063] | 5383 | else
|
---|
| 5384 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5385 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5386 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5387 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8059] | 5388 |
|
---|
[8063] | 5389 | ALLOCA=alloca.$ac_objext
|
---|
| 5390 |
|
---|
[10192] | 5391 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5392 | #define C_ALLOCA 1
|
---|
[10192] | 5393 | _ACEOF
|
---|
[3365] | 5394 |
|
---|
[10192] | 5395 |
|
---|
| 5396 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[8063] | 5397 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5398 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5399 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5400 | else
|
---|
[8063] | 5401 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5402 | /* confdefs.h. */
|
---|
| 5403 | _ACEOF
|
---|
| 5404 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5405 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5406 | /* end confdefs.h. */
|
---|
[3365] | 5407 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5408 | webecray
|
---|
| 5409 | #else
|
---|
| 5410 | wenotbecray
|
---|
| 5411 | #endif
|
---|
| 5412 |
|
---|
[8063] | 5413 | _ACEOF
|
---|
[3365] | 5414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5415 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[3365] | 5416 | ac_cv_os_cray=yes
|
---|
| 5417 | else
|
---|
| 5418 | ac_cv_os_cray=no
|
---|
| 5419 | fi
|
---|
| 5420 | rm -f conftest*
|
---|
| 5421 |
|
---|
| 5422 | fi
|
---|
[10192] | 5423 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
[8063] | 5424 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[3365] | 5425 | if test $ac_cv_os_cray = yes; then
|
---|
[8063] | 5426 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[10192] | 5427 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5428 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5429 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5430 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5431 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5432 | else
|
---|
[8063] | 5433 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5434 | /* confdefs.h. */
|
---|
| 5435 | _ACEOF
|
---|
| 5436 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5437 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5438 | /* end confdefs.h. */
|
---|
| 5439 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5440 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5441 | #define $ac_func innocuous_$ac_func
|
---|
| 5442 |
|
---|
[3365] | 5443 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5444 | which can conflict with char $ac_func (); below.
|
---|
| 5445 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5446 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5447 |
|
---|
| 5448 | #ifdef __STDC__
|
---|
| 5449 | # include <limits.h>
|
---|
| 5450 | #else
|
---|
| 5451 | # include <assert.h>
|
---|
| 5452 | #endif
|
---|
| 5453 |
|
---|
| 5454 | #undef $ac_func
|
---|
| 5455 |
|
---|
[3365] | 5456 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5457 | #ifdef __cplusplus
|
---|
| 5458 | extern "C"
|
---|
[10192] | 5459 | {
|
---|
[8063] | 5460 | #endif
|
---|
[3365] | 5461 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5462 | builtin and then its argument prototype would still apply. */
|
---|
| 5463 | char $ac_func ();
|
---|
[3365] | 5464 | /* The GNU C library defines this for functions which it implements
|
---|
| 5465 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5466 | something starting with __ and the normal name is an alias. */
|
---|
| 5467 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5468 | choke me
|
---|
| 5469 | #else
|
---|
[10192] | 5470 | char (*f) () = $ac_func;
|
---|
[3365] | 5471 | #endif
|
---|
[10192] | 5472 | #ifdef __cplusplus
|
---|
| 5473 | }
|
---|
| 5474 | #endif
|
---|
[3365] | 5475 |
|
---|
[10192] | 5476 | int
|
---|
| 5477 | main ()
|
---|
| 5478 | {
|
---|
| 5479 | return f != $ac_func;
|
---|
[8063] | 5480 | ;
|
---|
| 5481 | return 0;
|
---|
| 5482 | }
|
---|
| 5483 | _ACEOF
|
---|
| 5484 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5486 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5487 | ac_status=$?
|
---|
[10192] | 5488 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5489 | rm -f conftest.er1
|
---|
| 5490 | cat conftest.err >&5
|
---|
| 5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5492 | (exit $ac_status); } &&
|
---|
[10192] | 5493 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5494 | || test ! -s conftest.err'
|
---|
| 5495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5496 | (eval $ac_try) 2>&5
|
---|
| 5497 | ac_status=$?
|
---|
[10192] | 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5499 | (exit $ac_status); }; } &&
|
---|
| 5500 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5502 | (eval $ac_try) 2>&5
|
---|
| 5503 | ac_status=$?
|
---|
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5505 | (exit $ac_status); }; }; then
|
---|
[10192] | 5506 | eval "$as_ac_var=yes"
|
---|
[3365] | 5507 | else
|
---|
[8063] | 5508 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5509 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5510 |
|
---|
| 5511 | eval "$as_ac_var=no"
|
---|
[3365] | 5512 | fi
|
---|
[10192] | 5513 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5514 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5515 | fi
|
---|
[10192] | 5516 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5517 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5518 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[3365] | 5519 |
|
---|
[10192] | 5520 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5521 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10192] | 5522 | _ACEOF
|
---|
[3365] | 5523 |
|
---|
[8063] | 5524 | break
|
---|
[3365] | 5525 | fi
|
---|
| 5526 |
|
---|
[8063] | 5527 | done
|
---|
[3365] | 5528 | fi
|
---|
| 5529 |
|
---|
[10192] | 5530 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
[8063] | 5531 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5532 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5533 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5534 | else
|
---|
| 5535 | if test "$cross_compiling" = yes; then
|
---|
| 5536 | ac_cv_c_stack_direction=0
|
---|
| 5537 | else
|
---|
[8063] | 5538 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5539 | /* confdefs.h. */
|
---|
| 5540 | _ACEOF
|
---|
| 5541 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5542 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5543 | /* end confdefs.h. */
|
---|
[8063] | 5544 | int
|
---|
[3365] | 5545 | find_stack_direction ()
|
---|
| 5546 | {
|
---|
| 5547 | static char *addr = 0;
|
---|
| 5548 | auto char dummy;
|
---|
| 5549 | if (addr == 0)
|
---|
| 5550 | {
|
---|
| 5551 | addr = &dummy;
|
---|
| 5552 | return find_stack_direction ();
|
---|
| 5553 | }
|
---|
| 5554 | else
|
---|
| 5555 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5556 | }
|
---|
[8063] | 5557 |
|
---|
| 5558 | int
|
---|
[3365] | 5559 | main ()
|
---|
| 5560 | {
|
---|
[8063] | 5561 | exit (find_stack_direction () < 0);
|
---|
[3365] | 5562 | }
|
---|
[8063] | 5563 | _ACEOF
|
---|
| 5564 | rm -f conftest$ac_exeext
|
---|
[10192] | 5565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 5566 | (eval $ac_link) 2>&5
|
---|
| 5567 | ac_status=$?
|
---|
[10192] | 5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5571 | (eval $ac_try) 2>&5
|
---|
| 5572 | ac_status=$?
|
---|
[10192] | 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5574 | (exit $ac_status); }; }; then
|
---|
[3365] | 5575 | ac_cv_c_stack_direction=1
|
---|
| 5576 | else
|
---|
[8063] | 5577 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5578 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5579 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5580 |
|
---|
| 5581 | ( exit $ac_status )
|
---|
[8063] | 5582 | ac_cv_c_stack_direction=-1
|
---|
[3365] | 5583 | fi
|
---|
[10192] | 5584 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5585 | fi
|
---|
| 5586 | fi
|
---|
[10192] | 5587 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
[8063] | 5588 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[3365] | 5589 |
|
---|
[10192] | 5590 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5591 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10192] | 5592 | _ACEOF
|
---|
[3365] | 5593 |
|
---|
[10192] | 5594 |
|
---|
[3365] | 5595 | fi
|
---|
| 5596 |
|
---|
[8063] | 5597 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[10192] | 5598 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
[8063] | 5599 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5600 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5601 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5602 | else
|
---|
| 5603 | ac_pattern="Autoconf.*'x'"
|
---|
[8063] | 5604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5605 | /* confdefs.h. */
|
---|
| 5606 | _ACEOF
|
---|
| 5607 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5609 | /* end confdefs.h. */
|
---|
[3365] | 5610 | #include <sgtty.h>
|
---|
| 5611 | Autoconf TIOCGETP
|
---|
[8063] | 5612 | _ACEOF
|
---|
[3365] | 5613 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5614 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5615 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5616 | else
|
---|
| 5617 | ac_cv_prog_gcc_traditional=no
|
---|
| 5618 | fi
|
---|
| 5619 | rm -f conftest*
|
---|
| 5620 |
|
---|
[10192] | 5621 |
|
---|
[3365] | 5622 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8063] | 5623 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5624 | /* confdefs.h. */
|
---|
| 5625 | _ACEOF
|
---|
| 5626 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5627 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5628 | /* end confdefs.h. */
|
---|
[3365] | 5629 | #include <termio.h>
|
---|
| 5630 | Autoconf TCGETA
|
---|
[8063] | 5631 | _ACEOF
|
---|
[3365] | 5632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5633 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5634 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5635 | fi
|
---|
| 5636 | rm -f conftest*
|
---|
| 5637 |
|
---|
| 5638 | fi
|
---|
| 5639 | fi
|
---|
[10192] | 5640 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[8063] | 5641 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[3365] | 5642 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5643 | CC="$CC -traditional"
|
---|
| 5644 | fi
|
---|
| 5645 | fi
|
---|
| 5646 |
|
---|
[10192] | 5647 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
[8063] | 5648 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5649 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5650 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5651 | else
|
---|
[8063] | 5652 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5653 | /* confdefs.h. */
|
---|
| 5654 | _ACEOF
|
---|
| 5655 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5656 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5657 | /* end confdefs.h. */
|
---|
[3365] | 5658 | #include <sys/types.h>
|
---|
| 5659 | #include <signal.h>
|
---|
| 5660 | #ifdef signal
|
---|
[8063] | 5661 | # undef signal
|
---|
[3365] | 5662 | #endif
|
---|
| 5663 | #ifdef __cplusplus
|
---|
| 5664 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5665 | #else
|
---|
| 5666 | void (*signal ()) ();
|
---|
| 5667 | #endif
|
---|
| 5668 |
|
---|
[8063] | 5669 | int
|
---|
| 5670 | main ()
|
---|
| 5671 | {
|
---|
[3365] | 5672 | int i;
|
---|
[8063] | 5673 | ;
|
---|
| 5674 | return 0;
|
---|
| 5675 | }
|
---|
| 5676 | _ACEOF
|
---|
| 5677 | rm -f conftest.$ac_objext
|
---|
[10192] | 5678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5679 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 5680 | ac_status=$?
|
---|
[10192] | 5681 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5682 | rm -f conftest.er1
|
---|
| 5683 | cat conftest.err >&5
|
---|
| 5684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5685 | (exit $ac_status); } &&
|
---|
[10192] | 5686 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5687 | || test ! -s conftest.err'
|
---|
| 5688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5689 | (eval $ac_try) 2>&5
|
---|
| 5690 | ac_status=$?
|
---|
[10192] | 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5692 | (exit $ac_status); }; } &&
|
---|
| 5693 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5695 | (eval $ac_try) 2>&5
|
---|
| 5696 | ac_status=$?
|
---|
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5698 | (exit $ac_status); }; }; then
|
---|
[3365] | 5699 | ac_cv_type_signal=void
|
---|
| 5700 | else
|
---|
[8063] | 5701 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5702 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5703 |
|
---|
[8063] | 5704 | ac_cv_type_signal=int
|
---|
[3365] | 5705 | fi
|
---|
[10192] | 5706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5707 | fi
|
---|
[10192] | 5708 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
[8063] | 5709 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[3365] | 5710 |
|
---|
[10192] | 5711 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5712 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10192] | 5713 | _ACEOF
|
---|
[3365] | 5714 |
|
---|
[10192] | 5715 |
|
---|
| 5716 |
|
---|
[8063] | 5717 | for ac_func in vprintf
|
---|
| 5718 | do
|
---|
[10192] | 5719 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5720 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5721 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5722 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5723 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5724 | else
|
---|
[8063] | 5725 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5726 | /* confdefs.h. */
|
---|
| 5727 | _ACEOF
|
---|
| 5728 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5729 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5730 | /* end confdefs.h. */
|
---|
| 5731 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5732 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5733 | #define $ac_func innocuous_$ac_func
|
---|
| 5734 |
|
---|
[3365] | 5735 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5736 | which can conflict with char $ac_func (); below.
|
---|
| 5737 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5738 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5739 |
|
---|
| 5740 | #ifdef __STDC__
|
---|
| 5741 | # include <limits.h>
|
---|
| 5742 | #else
|
---|
| 5743 | # include <assert.h>
|
---|
| 5744 | #endif
|
---|
| 5745 |
|
---|
| 5746 | #undef $ac_func
|
---|
| 5747 |
|
---|
[3365] | 5748 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5749 | #ifdef __cplusplus
|
---|
| 5750 | extern "C"
|
---|
[10192] | 5751 | {
|
---|
[8063] | 5752 | #endif
|
---|
[3365] | 5753 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5754 | builtin and then its argument prototype would still apply. */
|
---|
| 5755 | char $ac_func ();
|
---|
[3365] | 5756 | /* The GNU C library defines this for functions which it implements
|
---|
| 5757 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5758 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 5759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[3365] | 5760 | choke me
|
---|
| 5761 | #else
|
---|
[10192] | 5762 | char (*f) () = $ac_func;
|
---|
[3365] | 5763 | #endif
|
---|
[10192] | 5764 | #ifdef __cplusplus
|
---|
| 5765 | }
|
---|
| 5766 | #endif
|
---|
[3365] | 5767 |
|
---|
[10192] | 5768 | int
|
---|
| 5769 | main ()
|
---|
| 5770 | {
|
---|
| 5771 | return f != $ac_func;
|
---|
[8063] | 5772 | ;
|
---|
| 5773 | return 0;
|
---|
| 5774 | }
|
---|
| 5775 | _ACEOF
|
---|
| 5776 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5778 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5779 | ac_status=$?
|
---|
[10192] | 5780 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5781 | rm -f conftest.er1
|
---|
| 5782 | cat conftest.err >&5
|
---|
| 5783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5784 | (exit $ac_status); } &&
|
---|
[10192] | 5785 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5786 | || test ! -s conftest.err'
|
---|
| 5787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5788 | (eval $ac_try) 2>&5
|
---|
| 5789 | ac_status=$?
|
---|
[10192] | 5790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5791 | (exit $ac_status); }; } &&
|
---|
| 5792 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5794 | (eval $ac_try) 2>&5
|
---|
| 5795 | ac_status=$?
|
---|
| 5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5797 | (exit $ac_status); }; }; then
|
---|
[10192] | 5798 | eval "$as_ac_var=yes"
|
---|
[3365] | 5799 | else
|
---|
[8063] | 5800 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5801 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5802 |
|
---|
| 5803 | eval "$as_ac_var=no"
|
---|
[3365] | 5804 | fi
|
---|
[10192] | 5805 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5806 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5807 | fi
|
---|
[10192] | 5808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5809 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5810 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5811 | cat >>confdefs.h <<_ACEOF
|
---|
| 5812 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5813 | _ACEOF
|
---|
[3365] | 5814 |
|
---|
[10192] | 5815 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
[8063] | 5816 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 5817 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 5818 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5819 | else
|
---|
[8063] | 5820 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5821 | /* confdefs.h. */
|
---|
| 5822 | _ACEOF
|
---|
| 5823 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5824 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5825 | /* end confdefs.h. */
|
---|
| 5826 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 5827 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5828 | #define _doprnt innocuous__doprnt
|
---|
| 5829 |
|
---|
[3365] | 5830 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5831 | which can conflict with char _doprnt (); below.
|
---|
| 5832 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5833 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5834 |
|
---|
| 5835 | #ifdef __STDC__
|
---|
| 5836 | # include <limits.h>
|
---|
| 5837 | #else
|
---|
| 5838 | # include <assert.h>
|
---|
| 5839 | #endif
|
---|
| 5840 |
|
---|
| 5841 | #undef _doprnt
|
---|
| 5842 |
|
---|
[3365] | 5843 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5844 | #ifdef __cplusplus
|
---|
| 5845 | extern "C"
|
---|
[10192] | 5846 | {
|
---|
[8063] | 5847 | #endif
|
---|
[3365] | 5848 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5849 | builtin and then its argument prototype would still apply. */
|
---|
| 5850 | char _doprnt ();
|
---|
[3365] | 5851 | /* The GNU C library defines this for functions which it implements
|
---|
| 5852 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5853 | something starting with __ and the normal name is an alias. */
|
---|
| 5854 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 5855 | choke me
|
---|
| 5856 | #else
|
---|
[10192] | 5857 | char (*f) () = _doprnt;
|
---|
[3365] | 5858 | #endif
|
---|
[10192] | 5859 | #ifdef __cplusplus
|
---|
| 5860 | }
|
---|
| 5861 | #endif
|
---|
[3365] | 5862 |
|
---|
[10192] | 5863 | int
|
---|
| 5864 | main ()
|
---|
| 5865 | {
|
---|
| 5866 | return f != _doprnt;
|
---|
[8063] | 5867 | ;
|
---|
| 5868 | return 0;
|
---|
| 5869 | }
|
---|
| 5870 | _ACEOF
|
---|
| 5871 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5873 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5874 | ac_status=$?
|
---|
[10192] | 5875 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5876 | rm -f conftest.er1
|
---|
| 5877 | cat conftest.err >&5
|
---|
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5879 | (exit $ac_status); } &&
|
---|
[10192] | 5880 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5881 | || test ! -s conftest.err'
|
---|
| 5882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5883 | (eval $ac_try) 2>&5
|
---|
| 5884 | ac_status=$?
|
---|
[10192] | 5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5886 | (exit $ac_status); }; } &&
|
---|
| 5887 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5889 | (eval $ac_try) 2>&5
|
---|
| 5890 | ac_status=$?
|
---|
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5892 | (exit $ac_status); }; }; then
|
---|
| 5893 | ac_cv_func__doprnt=yes
|
---|
[3365] | 5894 | else
|
---|
[8063] | 5895 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5896 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5897 |
|
---|
[8063] | 5898 | ac_cv_func__doprnt=no
|
---|
[3365] | 5899 | fi
|
---|
[10192] | 5900 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5901 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5902 | fi
|
---|
[10192] | 5903 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
[8063] | 5904 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 5905 | if test $ac_cv_func__doprnt = yes; then
|
---|
[3365] | 5906 |
|
---|
[10192] | 5907 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5908 | #define HAVE_DOPRNT 1
|
---|
[10192] | 5909 | _ACEOF
|
---|
[3365] | 5910 |
|
---|
| 5911 | fi
|
---|
| 5912 |
|
---|
| 5913 | fi
|
---|
[8063] | 5914 | done
|
---|
[3365] | 5915 |
|
---|
[10192] | 5916 |
|
---|
| 5917 |
|
---|
| 5918 |
|
---|
| 5919 |
|
---|
| 5920 |
|
---|
| 5921 |
|
---|
| 5922 |
|
---|
| 5923 |
|
---|
| 5924 |
|
---|
| 5925 |
|
---|
| 5926 |
|
---|
[3365] | 5927 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 5928 | do
|
---|
[10192] | 5929 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5930 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5932 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5933 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5934 | else
|
---|
[8063] | 5935 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5936 | /* confdefs.h. */
|
---|
| 5937 | _ACEOF
|
---|
| 5938 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5939 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5940 | /* end confdefs.h. */
|
---|
| 5941 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5942 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5943 | #define $ac_func innocuous_$ac_func
|
---|
| 5944 |
|
---|
[3365] | 5945 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5946 | which can conflict with char $ac_func (); below.
|
---|
| 5947 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5948 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5949 |
|
---|
| 5950 | #ifdef __STDC__
|
---|
| 5951 | # include <limits.h>
|
---|
| 5952 | #else
|
---|
| 5953 | # include <assert.h>
|
---|
| 5954 | #endif
|
---|
| 5955 |
|
---|
| 5956 | #undef $ac_func
|
---|
| 5957 |
|
---|
[3365] | 5958 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5959 | #ifdef __cplusplus
|
---|
| 5960 | extern "C"
|
---|
[10192] | 5961 | {
|
---|
[8063] | 5962 | #endif
|
---|
[3365] | 5963 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5964 | builtin and then its argument prototype would still apply. */
|
---|
| 5965 | char $ac_func ();
|
---|
[3365] | 5966 | /* The GNU C library defines this for functions which it implements
|
---|
| 5967 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5968 | something starting with __ and the normal name is an alias. */
|
---|
| 5969 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5970 | choke me
|
---|
| 5971 | #else
|
---|
[10192] | 5972 | char (*f) () = $ac_func;
|
---|
[3365] | 5973 | #endif
|
---|
[10192] | 5974 | #ifdef __cplusplus
|
---|
| 5975 | }
|
---|
| 5976 | #endif
|
---|
[3365] | 5977 |
|
---|
[10192] | 5978 | int
|
---|
| 5979 | main ()
|
---|
| 5980 | {
|
---|
| 5981 | return f != $ac_func;
|
---|
[8063] | 5982 | ;
|
---|
| 5983 | return 0;
|
---|
| 5984 | }
|
---|
| 5985 | _ACEOF
|
---|
| 5986 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5988 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5989 | ac_status=$?
|
---|
[10192] | 5990 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5991 | rm -f conftest.er1
|
---|
| 5992 | cat conftest.err >&5
|
---|
| 5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5994 | (exit $ac_status); } &&
|
---|
[10192] | 5995 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5996 | || test ! -s conftest.err'
|
---|
| 5997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5998 | (eval $ac_try) 2>&5
|
---|
| 5999 | ac_status=$?
|
---|
[10192] | 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6001 | (exit $ac_status); }; } &&
|
---|
| 6002 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6004 | (eval $ac_try) 2>&5
|
---|
| 6005 | ac_status=$?
|
---|
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6007 | (exit $ac_status); }; }; then
|
---|
[10192] | 6008 | eval "$as_ac_var=yes"
|
---|
[3365] | 6009 | else
|
---|
[8063] | 6010 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6011 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6012 |
|
---|
| 6013 | eval "$as_ac_var=no"
|
---|
[3365] | 6014 | fi
|
---|
[10192] | 6015 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6016 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6017 | fi
|
---|
[10192] | 6018 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6019 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6020 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6021 | cat >>confdefs.h <<_ACEOF
|
---|
| 6022 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6023 | _ACEOF
|
---|
[8059] | 6024 |
|
---|
[3365] | 6025 | fi
|
---|
| 6026 | done
|
---|
| 6027 |
|
---|
[10192] | 6028 |
|
---|
| 6029 |
|
---|
| 6030 |
|
---|
[3365] | 6031 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6032 | do
|
---|
[10192] | 6033 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6034 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6035 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6036 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6037 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6038 | else
|
---|
[8063] | 6039 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6040 | /* confdefs.h. */
|
---|
| 6041 | _ACEOF
|
---|
| 6042 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6043 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6044 | /* end confdefs.h. */
|
---|
| 6045 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6046 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6047 | #define $ac_func innocuous_$ac_func
|
---|
| 6048 |
|
---|
[3365] | 6049 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6050 | which can conflict with char $ac_func (); below.
|
---|
| 6051 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6052 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6053 |
|
---|
| 6054 | #ifdef __STDC__
|
---|
| 6055 | # include <limits.h>
|
---|
| 6056 | #else
|
---|
| 6057 | # include <assert.h>
|
---|
| 6058 | #endif
|
---|
| 6059 |
|
---|
| 6060 | #undef $ac_func
|
---|
| 6061 |
|
---|
[3365] | 6062 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6063 | #ifdef __cplusplus
|
---|
| 6064 | extern "C"
|
---|
[10192] | 6065 | {
|
---|
[8063] | 6066 | #endif
|
---|
[3365] | 6067 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6068 | builtin and then its argument prototype would still apply. */
|
---|
| 6069 | char $ac_func ();
|
---|
[3365] | 6070 | /* The GNU C library defines this for functions which it implements
|
---|
| 6071 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6072 | something starting with __ and the normal name is an alias. */
|
---|
| 6073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6074 | choke me
|
---|
| 6075 | #else
|
---|
[10192] | 6076 | char (*f) () = $ac_func;
|
---|
[3365] | 6077 | #endif
|
---|
[10192] | 6078 | #ifdef __cplusplus
|
---|
| 6079 | }
|
---|
| 6080 | #endif
|
---|
[3365] | 6081 |
|
---|
[10192] | 6082 | int
|
---|
| 6083 | main ()
|
---|
| 6084 | {
|
---|
| 6085 | return f != $ac_func;
|
---|
[8063] | 6086 | ;
|
---|
| 6087 | return 0;
|
---|
| 6088 | }
|
---|
| 6089 | _ACEOF
|
---|
| 6090 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6092 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6093 | ac_status=$?
|
---|
[10192] | 6094 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6095 | rm -f conftest.er1
|
---|
| 6096 | cat conftest.err >&5
|
---|
| 6097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6098 | (exit $ac_status); } &&
|
---|
[10192] | 6099 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6100 | || test ! -s conftest.err'
|
---|
| 6101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6102 | (eval $ac_try) 2>&5
|
---|
| 6103 | ac_status=$?
|
---|
[10192] | 6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6105 | (exit $ac_status); }; } &&
|
---|
| 6106 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6108 | (eval $ac_try) 2>&5
|
---|
| 6109 | ac_status=$?
|
---|
| 6110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6111 | (exit $ac_status); }; }; then
|
---|
[10192] | 6112 | eval "$as_ac_var=yes"
|
---|
[3365] | 6113 | else
|
---|
[8063] | 6114 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6115 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6116 |
|
---|
| 6117 | eval "$as_ac_var=no"
|
---|
[3365] | 6118 | fi
|
---|
[10192] | 6119 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6120 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6121 | fi
|
---|
[10192] | 6122 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6123 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6124 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6125 | cat >>confdefs.h <<_ACEOF
|
---|
| 6126 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6127 | _ACEOF
|
---|
[8059] | 6128 |
|
---|
[3365] | 6129 | else
|
---|
[10192] | 6130 | case $LIBOBJS in
|
---|
| 6131 | "$ac_func.$ac_objext" | \
|
---|
| 6132 | *" $ac_func.$ac_objext" | \
|
---|
| 6133 | "$ac_func.$ac_objext "* | \
|
---|
| 6134 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6135 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6136 | esac
|
---|
| 6137 |
|
---|
[3365] | 6138 | fi
|
---|
| 6139 | done
|
---|
| 6140 |
|
---|
[10192] | 6141 |
|
---|
| 6142 |
|
---|
| 6143 |
|
---|
| 6144 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
[8063] | 6145 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6146 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6147 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 6148 | else
|
---|
[8063] | 6149 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6150 | /* confdefs.h. */
|
---|
| 6151 | _ACEOF
|
---|
| 6152 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6153 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6154 | /* end confdefs.h. */
|
---|
| 6155 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6156 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6157 | #define textdomain innocuous_textdomain
|
---|
| 6158 |
|
---|
[8059] | 6159 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6160 | which can conflict with char textdomain (); below.
|
---|
| 6161 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6162 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6163 |
|
---|
| 6164 | #ifdef __STDC__
|
---|
| 6165 | # include <limits.h>
|
---|
| 6166 | #else
|
---|
| 6167 | # include <assert.h>
|
---|
| 6168 | #endif
|
---|
| 6169 |
|
---|
| 6170 | #undef textdomain
|
---|
| 6171 |
|
---|
[8059] | 6172 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6173 | #ifdef __cplusplus
|
---|
| 6174 | extern "C"
|
---|
[10192] | 6175 | {
|
---|
[8063] | 6176 | #endif
|
---|
[8059] | 6177 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6178 | builtin and then its argument prototype would still apply. */
|
---|
[8059] | 6179 | char textdomain ();
|
---|
| 6180 | /* The GNU C library defines this for functions which it implements
|
---|
| 6181 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6182 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 6183 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[8059] | 6184 | choke me
|
---|
| 6185 | #else
|
---|
[10192] | 6186 | char (*f) () = textdomain;
|
---|
[8059] | 6187 | #endif
|
---|
[10192] | 6188 | #ifdef __cplusplus
|
---|
| 6189 | }
|
---|
| 6190 | #endif
|
---|
[8059] | 6191 |
|
---|
[10192] | 6192 | int
|
---|
| 6193 | main ()
|
---|
| 6194 | {
|
---|
| 6195 | return f != textdomain;
|
---|
[8063] | 6196 | ;
|
---|
| 6197 | return 0;
|
---|
| 6198 | }
|
---|
| 6199 | _ACEOF
|
---|
| 6200 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6202 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6203 | ac_status=$?
|
---|
[10192] | 6204 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6205 | rm -f conftest.er1
|
---|
| 6206 | cat conftest.err >&5
|
---|
| 6207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6208 | (exit $ac_status); } &&
|
---|
[10192] | 6209 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6210 | || test ! -s conftest.err'
|
---|
| 6211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6212 | (eval $ac_try) 2>&5
|
---|
| 6213 | ac_status=$?
|
---|
[10192] | 6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6215 | (exit $ac_status); }; } &&
|
---|
| 6216 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6218 | (eval $ac_try) 2>&5
|
---|
| 6219 | ac_status=$?
|
---|
| 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6221 | (exit $ac_status); }; }; then
|
---|
| 6222 | ac_cv_func_textdomain=yes
|
---|
[8059] | 6223 | else
|
---|
[8063] | 6224 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6225 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6226 |
|
---|
[8063] | 6227 | ac_cv_func_textdomain=no
|
---|
[8059] | 6228 | fi
|
---|
[10192] | 6229 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6230 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8059] | 6231 | fi
|
---|
[10192] | 6232 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
[8063] | 6233 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6234 | if test $ac_cv_func_textdomain = yes; then
|
---|
[10192] | 6235 | cat >>confdefs.h <<\_ACEOF
|
---|
[8059] | 6236 | #define ENABLE_NLS 1
|
---|
[10192] | 6237 | _ACEOF
|
---|
[8063] | 6238 |
|
---|
[8059] | 6239 | fi
|
---|
| 6240 |
|
---|
[10192] | 6241 |
|
---|
| 6242 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 6243 | # a non-standard Path
|
---|
[10917] | 6244 | # is there a better way to do this??
|
---|
| 6245 | echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
|
---|
| 6246 | echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
|
---|
| 6247 | # set defaults
|
---|
| 6248 | JNIINC=""
|
---|
| 6249 | JNISUFFIX="so"
|
---|
| 6250 | JNIFLAGS="-shared"
|
---|
| 6251 |
|
---|
[10192] | 6252 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[10917] | 6253 | echo "$as_me:$LINENO: result: Darwin" >&5
|
---|
| 6254 | echo "${ECHO_T}Darwin" >&6
|
---|
[10192] | 6255 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 6256 | JNISUFFIX="jnilib"
|
---|
[10917] | 6257 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10192] | 6258 | fi
|
---|
[10917] | 6259 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
| 6260 | echo "$as_me:$LINENO: result: Solaris" >&5
|
---|
| 6261 | echo "${ECHO_T}Solaris" >&6
|
---|
| 6262 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 6263 | fi
|
---|
| 6264 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
| 6265 | echo "$as_me:$LINENO: result: Linux" >&5
|
---|
| 6266 | echo "${ECHO_T}Linux" >&6
|
---|
| 6267 | JNIINC="-I\$(JAVA_HOME)/include/linux "
|
---|
| 6268 | fi
|
---|
[10192] | 6269 |
|
---|
| 6270 |
|
---|
| 6271 |
|
---|
| 6272 |
|
---|
[10917] | 6273 |
|
---|
[3365] | 6274 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6275 | # ---------------------------------------------------------------------------
|
---|
[10192] | 6276 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
[8063] | 6277 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[3365] | 6278 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[10192] | 6279 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6280 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6281 | case $LIBOBJS in
|
---|
| 6282 | "gmalloc.$ac_objext" | \
|
---|
| 6283 | *" gmalloc.$ac_objext" | \
|
---|
| 6284 | "gmalloc.$ac_objext "* | \
|
---|
| 6285 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6286 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6287 | esac
|
---|
| 6288 |
|
---|
| 6289 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6290 | #define HAVE_VALLOC 1
|
---|
[10192] | 6291 | _ACEOF
|
---|
[3365] | 6292 |
|
---|
| 6293 | else
|
---|
[10192] | 6294 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6295 | echo "${ECHO_T}no" >&6
|
---|
| 6296 |
|
---|
| 6297 | for ac_func in valloc
|
---|
[3365] | 6298 | do
|
---|
[10192] | 6299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6300 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6302 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6304 | else
|
---|
[8063] | 6305 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6306 | /* confdefs.h. */
|
---|
| 6307 | _ACEOF
|
---|
| 6308 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6309 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6310 | /* end confdefs.h. */
|
---|
| 6311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6313 | #define $ac_func innocuous_$ac_func
|
---|
| 6314 |
|
---|
[3365] | 6315 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6316 | which can conflict with char $ac_func (); below.
|
---|
| 6317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6318 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6319 |
|
---|
| 6320 | #ifdef __STDC__
|
---|
| 6321 | # include <limits.h>
|
---|
| 6322 | #else
|
---|
| 6323 | # include <assert.h>
|
---|
| 6324 | #endif
|
---|
| 6325 |
|
---|
| 6326 | #undef $ac_func
|
---|
| 6327 |
|
---|
[3365] | 6328 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6329 | #ifdef __cplusplus
|
---|
| 6330 | extern "C"
|
---|
[10192] | 6331 | {
|
---|
[8063] | 6332 | #endif
|
---|
[3365] | 6333 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6334 | builtin and then its argument prototype would still apply. */
|
---|
| 6335 | char $ac_func ();
|
---|
[3365] | 6336 | /* The GNU C library defines this for functions which it implements
|
---|
| 6337 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6338 | something starting with __ and the normal name is an alias. */
|
---|
| 6339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6340 | choke me
|
---|
| 6341 | #else
|
---|
[10192] | 6342 | char (*f) () = $ac_func;
|
---|
[3365] | 6343 | #endif
|
---|
[10192] | 6344 | #ifdef __cplusplus
|
---|
| 6345 | }
|
---|
| 6346 | #endif
|
---|
[3365] | 6347 |
|
---|
[10192] | 6348 | int
|
---|
| 6349 | main ()
|
---|
| 6350 | {
|
---|
| 6351 | return f != $ac_func;
|
---|
[8063] | 6352 | ;
|
---|
| 6353 | return 0;
|
---|
| 6354 | }
|
---|
| 6355 | _ACEOF
|
---|
| 6356 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6358 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6359 | ac_status=$?
|
---|
[10192] | 6360 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6361 | rm -f conftest.er1
|
---|
| 6362 | cat conftest.err >&5
|
---|
| 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6364 | (exit $ac_status); } &&
|
---|
[10192] | 6365 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6366 | || test ! -s conftest.err'
|
---|
| 6367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6368 | (eval $ac_try) 2>&5
|
---|
| 6369 | ac_status=$?
|
---|
[10192] | 6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6371 | (exit $ac_status); }; } &&
|
---|
| 6372 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6374 | (eval $ac_try) 2>&5
|
---|
| 6375 | ac_status=$?
|
---|
| 6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6377 | (exit $ac_status); }; }; then
|
---|
[10192] | 6378 | eval "$as_ac_var=yes"
|
---|
[3365] | 6379 | else
|
---|
[8063] | 6380 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6381 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6382 |
|
---|
| 6383 | eval "$as_ac_var=no"
|
---|
[3365] | 6384 | fi
|
---|
[10192] | 6385 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6386 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6387 | fi
|
---|
[10192] | 6388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6389 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6390 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6391 | cat >>confdefs.h <<_ACEOF
|
---|
| 6392 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6393 | _ACEOF
|
---|
[8059] | 6394 |
|
---|
[3365] | 6395 | fi
|
---|
| 6396 | done
|
---|
| 6397 |
|
---|
| 6398 | fi
|
---|
| 6399 |
|
---|
[10192] | 6400 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
[8063] | 6401 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6402 |
|
---|
[3365] | 6403 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6404 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6405 | withval="$with_dmalloc"
|
---|
| 6406 | if test "$withval" = yes; then
|
---|
[10192] | 6407 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6408 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6409 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6410 | #define WITH_DMALLOC 1
|
---|
[10192] | 6411 | _ACEOF
|
---|
[3365] | 6412 |
|
---|
| 6413 | LIBS="$LIBS -ldmalloc"
|
---|
| 6414 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6415 | else
|
---|
[10192] | 6416 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6417 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 6418 | fi
|
---|
| 6419 | else
|
---|
[10192] | 6420 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6421 | echo "${ECHO_T}no" >&6
|
---|
| 6422 | fi;
|
---|
[3365] | 6423 |
|
---|
[10192] | 6424 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
[8063] | 6425 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[3365] | 6426 |
|
---|
| 6427 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6428 | if test "${with_regex+set}" = set; then
|
---|
| 6429 | withval="$with_regex"
|
---|
| 6430 | if test "$withval" = yes; then
|
---|
| 6431 | ac_with_regex=1
|
---|
[10192] | 6432 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
[8063] | 6433 | echo "${ECHO_T}regex" >&6
|
---|
[10192] | 6434 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6435 | #define WITH_REGEX 1
|
---|
[10192] | 6436 | _ACEOF
|
---|
[3365] | 6437 |
|
---|
[10848] | 6438 | case $LIBOBJS in
|
---|
| 6439 | "regex.$ac_objext" | \
|
---|
| 6440 | *" regex.$ac_objext" | \
|
---|
| 6441 | "regex.$ac_objext "* | \
|
---|
| 6442 | *" regex.$ac_objext "* ) ;;
|
---|
| 6443 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6444 | esac
|
---|
| 6445 |
|
---|
[3365] | 6446 | fi
|
---|
[8063] | 6447 | fi;
|
---|
[3365] | 6448 | if test -z "$ac_with_regex"; then
|
---|
[10192] | 6449 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
[8063] | 6450 | echo "${ECHO_T}rx" >&6
|
---|
[10192] | 6451 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
[8063] | 6452 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6453 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6454 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6455 | else
|
---|
[8063] | 6456 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6457 | /* confdefs.h. */
|
---|
| 6458 | _ACEOF
|
---|
| 6459 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6460 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6461 | /* end confdefs.h. */
|
---|
| 6462 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6463 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6464 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6465 |
|
---|
[3365] | 6466 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6467 | which can conflict with char re_rx_search (); below.
|
---|
| 6468 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6469 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6470 |
|
---|
| 6471 | #ifdef __STDC__
|
---|
| 6472 | # include <limits.h>
|
---|
| 6473 | #else
|
---|
| 6474 | # include <assert.h>
|
---|
| 6475 | #endif
|
---|
| 6476 |
|
---|
| 6477 | #undef re_rx_search
|
---|
| 6478 |
|
---|
[3365] | 6479 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6480 | #ifdef __cplusplus
|
---|
| 6481 | extern "C"
|
---|
[10192] | 6482 | {
|
---|
[8063] | 6483 | #endif
|
---|
[3365] | 6484 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6485 | builtin and then its argument prototype would still apply. */
|
---|
| 6486 | char re_rx_search ();
|
---|
[3365] | 6487 | /* The GNU C library defines this for functions which it implements
|
---|
| 6488 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6489 | something starting with __ and the normal name is an alias. */
|
---|
| 6490 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6491 | choke me
|
---|
| 6492 | #else
|
---|
[10192] | 6493 | char (*f) () = re_rx_search;
|
---|
[3365] | 6494 | #endif
|
---|
[10192] | 6495 | #ifdef __cplusplus
|
---|
| 6496 | }
|
---|
| 6497 | #endif
|
---|
[3365] | 6498 |
|
---|
[10192] | 6499 | int
|
---|
| 6500 | main ()
|
---|
| 6501 | {
|
---|
| 6502 | return f != re_rx_search;
|
---|
[8063] | 6503 | ;
|
---|
| 6504 | return 0;
|
---|
| 6505 | }
|
---|
| 6506 | _ACEOF
|
---|
| 6507 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6509 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6510 | ac_status=$?
|
---|
[10192] | 6511 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6512 | rm -f conftest.er1
|
---|
| 6513 | cat conftest.err >&5
|
---|
| 6514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6515 | (exit $ac_status); } &&
|
---|
[10192] | 6516 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6517 | || test ! -s conftest.err'
|
---|
| 6518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6519 | (eval $ac_try) 2>&5
|
---|
| 6520 | ac_status=$?
|
---|
[10192] | 6521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6522 | (exit $ac_status); }; } &&
|
---|
| 6523 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6525 | (eval $ac_try) 2>&5
|
---|
| 6526 | ac_status=$?
|
---|
| 6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6528 | (exit $ac_status); }; }; then
|
---|
| 6529 | ac_cv_func_re_rx_search=yes
|
---|
[3365] | 6530 | else
|
---|
[8063] | 6531 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6532 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6533 |
|
---|
[8063] | 6534 | ac_cv_func_re_rx_search=no
|
---|
[3365] | 6535 | fi
|
---|
[10192] | 6536 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6537 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6538 | fi
|
---|
[10192] | 6539 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
[8063] | 6540 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6541 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[3365] | 6542 | :
|
---|
| 6543 | else
|
---|
[10192] | 6544 | echo "$as_me:$LINENO: checking for unsigned char *" >&5
|
---|
[8063] | 6545 | echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
|
---|
| 6546 | if test "${ac_cv_type_unsigned_char_p+set}" = set; then
|
---|
| 6547 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6548 | else
|
---|
[8063] | 6549 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6550 | /* confdefs.h. */
|
---|
| 6551 | _ACEOF
|
---|
| 6552 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6553 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6554 | /* end confdefs.h. */
|
---|
[8063] | 6555 | $ac_includes_default
|
---|
| 6556 | int
|
---|
| 6557 | main ()
|
---|
| 6558 | {
|
---|
| 6559 | if ((unsigned char * *) 0)
|
---|
| 6560 | return 0;
|
---|
| 6561 | if (sizeof (unsigned char *))
|
---|
| 6562 | return 0;
|
---|
| 6563 | ;
|
---|
| 6564 | return 0;
|
---|
| 6565 | }
|
---|
| 6566 | _ACEOF
|
---|
| 6567 | rm -f conftest.$ac_objext
|
---|
[10192] | 6568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6569 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6570 | ac_status=$?
|
---|
[10192] | 6571 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6572 | rm -f conftest.er1
|
---|
| 6573 | cat conftest.err >&5
|
---|
| 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6575 | (exit $ac_status); } &&
|
---|
[10192] | 6576 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6577 | || test ! -s conftest.err'
|
---|
| 6578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6579 | (eval $ac_try) 2>&5
|
---|
| 6580 | ac_status=$?
|
---|
[10192] | 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6582 | (exit $ac_status); }; } &&
|
---|
| 6583 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6585 | (eval $ac_try) 2>&5
|
---|
| 6586 | ac_status=$?
|
---|
| 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6588 | (exit $ac_status); }; }; then
|
---|
| 6589 | ac_cv_type_unsigned_char_p=yes
|
---|
| 6590 | else
|
---|
| 6591 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6592 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6593 |
|
---|
[8063] | 6594 | ac_cv_type_unsigned_char_p=no
|
---|
| 6595 | fi
|
---|
[10192] | 6596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6597 | fi
|
---|
[10192] | 6598 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
|
---|
[8063] | 6599 | echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
|
---|
| 6600 |
|
---|
[10192] | 6601 | echo "$as_me:$LINENO: checking size of unsigned char *" >&5
|
---|
[8063] | 6602 | echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
|
---|
| 6603 | if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
|
---|
| 6604 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6605 | else
|
---|
| 6606 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
[10192] | 6607 | # The cast to unsigned long works around a bug in the HP C Compiler
|
---|
| 6608 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
| 6609 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
| 6610 | # This bug is HP SR number 8606223364.
|
---|
[3365] | 6611 | if test "$cross_compiling" = yes; then
|
---|
[8063] | 6612 | # Depending upon the size, compute the lo and hi bounds.
|
---|
| 6613 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6614 | /* confdefs.h. */
|
---|
| 6615 | _ACEOF
|
---|
| 6616 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6617 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6618 | /* end confdefs.h. */
|
---|
[8063] | 6619 | $ac_includes_default
|
---|
| 6620 | int
|
---|
| 6621 | main ()
|
---|
| 6622 | {
|
---|
[10192] | 6623 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= 0)];
|
---|
| 6624 | test_array [0] = 0
|
---|
| 6625 |
|
---|
[8063] | 6626 | ;
|
---|
| 6627 | return 0;
|
---|
| 6628 | }
|
---|
| 6629 | _ACEOF
|
---|
| 6630 | rm -f conftest.$ac_objext
|
---|
[10192] | 6631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6632 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6633 | ac_status=$?
|
---|
[10192] | 6634 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6635 | rm -f conftest.er1
|
---|
| 6636 | cat conftest.err >&5
|
---|
| 6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6638 | (exit $ac_status); } &&
|
---|
[10192] | 6639 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6640 | || test ! -s conftest.err'
|
---|
| 6641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6642 | (eval $ac_try) 2>&5
|
---|
| 6643 | ac_status=$?
|
---|
[10192] | 6644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6645 | (exit $ac_status); }; } &&
|
---|
| 6646 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6648 | (eval $ac_try) 2>&5
|
---|
| 6649 | ac_status=$?
|
---|
| 6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6651 | (exit $ac_status); }; }; then
|
---|
| 6652 | ac_lo=0 ac_mid=0
|
---|
| 6653 | while :; do
|
---|
| 6654 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6655 | /* confdefs.h. */
|
---|
| 6656 | _ACEOF
|
---|
| 6657 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6658 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6659 | /* end confdefs.h. */
|
---|
[8063] | 6660 | $ac_includes_default
|
---|
| 6661 | int
|
---|
| 6662 | main ()
|
---|
| 6663 | {
|
---|
[10192] | 6664 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 6665 | test_array [0] = 0
|
---|
| 6666 |
|
---|
[8063] | 6667 | ;
|
---|
| 6668 | return 0;
|
---|
| 6669 | }
|
---|
| 6670 | _ACEOF
|
---|
| 6671 | rm -f conftest.$ac_objext
|
---|
[10192] | 6672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6673 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6674 | ac_status=$?
|
---|
[10192] | 6675 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6676 | rm -f conftest.er1
|
---|
| 6677 | cat conftest.err >&5
|
---|
| 6678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6679 | (exit $ac_status); } &&
|
---|
[10192] | 6680 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6681 | || test ! -s conftest.err'
|
---|
| 6682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6683 | (eval $ac_try) 2>&5
|
---|
| 6684 | ac_status=$?
|
---|
[10192] | 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6686 | (exit $ac_status); }; } &&
|
---|
| 6687 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6689 | (eval $ac_try) 2>&5
|
---|
| 6690 | ac_status=$?
|
---|
| 6691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6692 | (exit $ac_status); }; }; then
|
---|
| 6693 | ac_hi=$ac_mid; break
|
---|
[3365] | 6694 | else
|
---|
[8063] | 6695 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6696 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6697 |
|
---|
| 6698 | ac_lo=`expr $ac_mid + 1`
|
---|
| 6699 | if test $ac_lo -le $ac_mid; then
|
---|
| 6700 | ac_lo= ac_hi=
|
---|
| 6701 | break
|
---|
| 6702 | fi
|
---|
| 6703 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
[8063] | 6704 | fi
|
---|
[10192] | 6705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6706 | done
|
---|
| 6707 | else
|
---|
| 6708 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6709 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6710 |
|
---|
| 6711 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6712 | /* confdefs.h. */
|
---|
| 6713 | _ACEOF
|
---|
| 6714 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6715 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6716 | /* end confdefs.h. */
|
---|
| 6717 | $ac_includes_default
|
---|
| 6718 | int
|
---|
| 6719 | main ()
|
---|
| 6720 | {
|
---|
| 6721 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) < 0)];
|
---|
| 6722 | test_array [0] = 0
|
---|
| 6723 |
|
---|
| 6724 | ;
|
---|
| 6725 | return 0;
|
---|
| 6726 | }
|
---|
| 6727 | _ACEOF
|
---|
| 6728 | rm -f conftest.$ac_objext
|
---|
| 6729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6730 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6731 | ac_status=$?
|
---|
| 6732 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6733 | rm -f conftest.er1
|
---|
| 6734 | cat conftest.err >&5
|
---|
| 6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6736 | (exit $ac_status); } &&
|
---|
| 6737 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6738 | || test ! -s conftest.err'
|
---|
| 6739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6740 | (eval $ac_try) 2>&5
|
---|
| 6741 | ac_status=$?
|
---|
| 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6743 | (exit $ac_status); }; } &&
|
---|
| 6744 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6746 | (eval $ac_try) 2>&5
|
---|
| 6747 | ac_status=$?
|
---|
| 6748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6749 | (exit $ac_status); }; }; then
|
---|
| 6750 | ac_hi=-1 ac_mid=-1
|
---|
[8063] | 6751 | while :; do
|
---|
| 6752 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6753 | /* confdefs.h. */
|
---|
| 6754 | _ACEOF
|
---|
| 6755 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6756 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6757 | /* end confdefs.h. */
|
---|
[8063] | 6758 | $ac_includes_default
|
---|
| 6759 | int
|
---|
| 6760 | main ()
|
---|
[3365] | 6761 | {
|
---|
[10192] | 6762 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= $ac_mid)];
|
---|
| 6763 | test_array [0] = 0
|
---|
| 6764 |
|
---|
[8063] | 6765 | ;
|
---|
| 6766 | return 0;
|
---|
[3365] | 6767 | }
|
---|
[8063] | 6768 | _ACEOF
|
---|
| 6769 | rm -f conftest.$ac_objext
|
---|
[10192] | 6770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6771 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6772 | ac_status=$?
|
---|
[10192] | 6773 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6774 | rm -f conftest.er1
|
---|
| 6775 | cat conftest.err >&5
|
---|
| 6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6777 | (exit $ac_status); } &&
|
---|
[10192] | 6778 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6779 | || test ! -s conftest.err'
|
---|
| 6780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6781 | (eval $ac_try) 2>&5
|
---|
| 6782 | ac_status=$?
|
---|
[10192] | 6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6784 | (exit $ac_status); }; } &&
|
---|
| 6785 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6787 | (eval $ac_try) 2>&5
|
---|
| 6788 | ac_status=$?
|
---|
| 6789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6790 | (exit $ac_status); }; }; then
|
---|
| 6791 | ac_lo=$ac_mid; break
|
---|
[3365] | 6792 | else
|
---|
[8063] | 6793 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6794 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6795 |
|
---|
| 6796 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
| 6797 | if test $ac_mid -le $ac_hi; then
|
---|
| 6798 | ac_lo= ac_hi=
|
---|
| 6799 | break
|
---|
| 6800 | fi
|
---|
| 6801 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
[8063] | 6802 | fi
|
---|
[10192] | 6803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6804 | done
|
---|
[10192] | 6805 | else
|
---|
| 6806 | echo "$as_me: failed program was:" >&5
|
---|
| 6807 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6808 |
|
---|
| 6809 | ac_lo= ac_hi=
|
---|
[8063] | 6810 | fi
|
---|
[10192] | 6811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6812 | fi
|
---|
| 6813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6814 | # Binary search between lo and hi bounds.
|
---|
| 6815 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
| 6816 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
| 6817 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6818 | /* confdefs.h. */
|
---|
| 6819 | _ACEOF
|
---|
| 6820 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6821 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6822 | /* end confdefs.h. */
|
---|
[8063] | 6823 | $ac_includes_default
|
---|
| 6824 | int
|
---|
| 6825 | main ()
|
---|
| 6826 | {
|
---|
[10192] | 6827 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 6828 | test_array [0] = 0
|
---|
| 6829 |
|
---|
[8063] | 6830 | ;
|
---|
| 6831 | return 0;
|
---|
| 6832 | }
|
---|
| 6833 | _ACEOF
|
---|
| 6834 | rm -f conftest.$ac_objext
|
---|
[10192] | 6835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6836 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6837 | ac_status=$?
|
---|
[10192] | 6838 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6839 | rm -f conftest.er1
|
---|
| 6840 | cat conftest.err >&5
|
---|
| 6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6842 | (exit $ac_status); } &&
|
---|
[10192] | 6843 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6844 | || test ! -s conftest.err'
|
---|
| 6845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6846 | (eval $ac_try) 2>&5
|
---|
| 6847 | ac_status=$?
|
---|
[10192] | 6848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6849 | (exit $ac_status); }; } &&
|
---|
| 6850 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6852 | (eval $ac_try) 2>&5
|
---|
| 6853 | ac_status=$?
|
---|
| 6854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6855 | (exit $ac_status); }; }; then
|
---|
| 6856 | ac_hi=$ac_mid
|
---|
| 6857 | else
|
---|
| 6858 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6859 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6860 |
|
---|
| 6861 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
[8063] | 6862 | fi
|
---|
[10192] | 6863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6864 | done
|
---|
[10192] | 6865 | case $ac_lo in
|
---|
| 6866 | ?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
|
---|
| 6867 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6868 | See \`config.log' for more details." >&5
|
---|
| 6869 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6870 | See \`config.log' for more details." >&2;}
|
---|
| 6871 | { (exit 1); exit 1; }; } ;;
|
---|
| 6872 | esac
|
---|
[8063] | 6873 | else
|
---|
| 6874 | if test "$cross_compiling" = yes; then
|
---|
[10192] | 6875 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
---|
| 6876 | See \`config.log' for more details." >&5
|
---|
| 6877 | echo "$as_me: error: cannot run test program while cross compiling
|
---|
| 6878 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 6879 | { (exit 1); exit 1; }; }
|
---|
| 6880 | else
|
---|
| 6881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6882 | /* confdefs.h. */
|
---|
| 6883 | _ACEOF
|
---|
| 6884 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6886 | /* end confdefs.h. */
|
---|
[8063] | 6887 | $ac_includes_default
|
---|
[10192] | 6888 | long longval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 6889 | unsigned long ulongval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 6890 | #include <stdio.h>
|
---|
| 6891 | #include <stdlib.h>
|
---|
[8063] | 6892 | int
|
---|
| 6893 | main ()
|
---|
| 6894 | {
|
---|
[10192] | 6895 |
|
---|
| 6896 | FILE *f = fopen ("conftest.val", "w");
|
---|
| 6897 | if (! f)
|
---|
| 6898 | exit (1);
|
---|
| 6899 | if (((long) (sizeof (unsigned char *))) < 0)
|
---|
| 6900 | {
|
---|
| 6901 | long i = longval ();
|
---|
| 6902 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 6903 | exit (1);
|
---|
| 6904 | fprintf (f, "%ld\n", i);
|
---|
| 6905 | }
|
---|
| 6906 | else
|
---|
| 6907 | {
|
---|
| 6908 | unsigned long i = ulongval ();
|
---|
| 6909 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 6910 | exit (1);
|
---|
| 6911 | fprintf (f, "%lu\n", i);
|
---|
| 6912 | }
|
---|
| 6913 | exit (ferror (f) || fclose (f) != 0);
|
---|
| 6914 |
|
---|
[8063] | 6915 | ;
|
---|
| 6916 | return 0;
|
---|
| 6917 | }
|
---|
| 6918 | _ACEOF
|
---|
| 6919 | rm -f conftest$ac_exeext
|
---|
[10192] | 6920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 6921 | (eval $ac_link) 2>&5
|
---|
| 6922 | ac_status=$?
|
---|
[10192] | 6923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6924 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 6925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6926 | (eval $ac_try) 2>&5
|
---|
| 6927 | ac_status=$?
|
---|
[10192] | 6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6929 | (exit $ac_status); }; }; then
|
---|
| 6930 | ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
|
---|
| 6931 | else
|
---|
| 6932 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 6933 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6934 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6935 |
|
---|
| 6936 | ( exit $ac_status )
|
---|
| 6937 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6938 | See \`config.log' for more details." >&5
|
---|
| 6939 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6940 | See \`config.log' for more details." >&2;}
|
---|
| 6941 | { (exit 1); exit 1; }; }
|
---|
[8063] | 6942 | fi
|
---|
[10192] | 6943 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6944 | fi
|
---|
| 6945 | fi
|
---|
| 6946 | rm -f conftest.val
|
---|
| 6947 | else
|
---|
[8059] | 6948 | ac_cv_sizeof_unsigned_char_p=0
|
---|
[3365] | 6949 | fi
|
---|
| 6950 | fi
|
---|
[10192] | 6951 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
[8063] | 6952 | echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
|
---|
[10192] | 6953 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 6954 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
[10192] | 6955 | _ACEOF
|
---|
[3365] | 6956 |
|
---|
[10192] | 6957 |
|
---|
[3365] | 6958 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
| 6959 | then
|
---|
[10192] | 6960 | { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 6961 | find a local rx library and the one included with this
|
---|
| 6962 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
| 6963 | echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
| 6964 | find a local rx library and the one included with this
|
---|
| 6965 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
[10848] | 6966 | case $LIBOBJS in
|
---|
| 6967 | "regex.$ac_objext" | \
|
---|
| 6968 | *" regex.$ac_objext" | \
|
---|
| 6969 | "regex.$ac_objext "* | \
|
---|
| 6970 | *" regex.$ac_objext "* ) ;;
|
---|
| 6971 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6972 | esac
|
---|
| 6973 |
|
---|
[3365] | 6974 | else
|
---|
[10848] | 6975 | case $LIBOBJS in
|
---|
| 6976 | "rx.$ac_objext" | \
|
---|
| 6977 | *" rx.$ac_objext" | \
|
---|
| 6978 | "rx.$ac_objext "* | \
|
---|
| 6979 | *" rx.$ac_objext "* ) ;;
|
---|
| 6980 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6981 | esac
|
---|
| 6982 |
|
---|
[3365] | 6983 | fi
|
---|
[8063] | 6984 |
|
---|
[3365] | 6985 | fi
|
---|
| 6986 |
|
---|
| 6987 | fi
|
---|
| 6988 |
|
---|
[10192] | 6989 | echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
|
---|
[8063] | 6990 | echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
|
---|
| 6991 |
|
---|
| 6992 | # Check whether --with-gnu_readline or --without-gnu_readline was given.
|
---|
[3365] | 6993 | if test "${with_gnu_readline+set}" = set; then
|
---|
| 6994 | withval="$with_gnu_readline"
|
---|
| 6995 | if test "$withval" = yes; then
|
---|
[10192] | 6996 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6997 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 6998 | ac_with_gnu_readline=1
|
---|
| 6999 | else
|
---|
[10192] | 7000 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7001 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 7002 | fi
|
---|
| 7003 | else
|
---|
[10192] | 7004 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7005 | echo "${ECHO_T}no" >&6
|
---|
| 7006 | fi;
|
---|
[3365] | 7007 |
|
---|
| 7008 | if test -n "$ac_with_gnu_readline"; then
|
---|
[10192] | 7009 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7010 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
[8063] | 7011 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7012 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7013 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 7014 | fi
|
---|
| 7015 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
| 7016 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[3365] | 7017 | else
|
---|
[10192] | 7018 | # Is the header compilable?
|
---|
| 7019 | echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
|
---|
| 7020 | echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
|
---|
| 7021 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7022 | /* confdefs.h. */
|
---|
| 7023 | _ACEOF
|
---|
| 7024 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7025 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7026 | /* end confdefs.h. */
|
---|
| 7027 | $ac_includes_default
|
---|
[3365] | 7028 | #include <readline/readline.h>
|
---|
[8063] | 7029 | _ACEOF
|
---|
[10192] | 7030 | rm -f conftest.$ac_objext
|
---|
| 7031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7032 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7033 | ac_status=$?
|
---|
| 7034 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7035 | rm -f conftest.er1
|
---|
| 7036 | cat conftest.err >&5
|
---|
| 7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7038 | (exit $ac_status); } &&
|
---|
| 7039 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7040 | || test ! -s conftest.err'
|
---|
| 7041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7042 | (eval $ac_try) 2>&5
|
---|
| 7043 | ac_status=$?
|
---|
| 7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7045 | (exit $ac_status); }; } &&
|
---|
| 7046 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7048 | (eval $ac_try) 2>&5
|
---|
| 7049 | ac_status=$?
|
---|
| 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7051 | (exit $ac_status); }; }; then
|
---|
| 7052 | ac_header_compiler=yes
|
---|
| 7053 | else
|
---|
| 7054 | echo "$as_me: failed program was:" >&5
|
---|
| 7055 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7056 |
|
---|
| 7057 | ac_header_compiler=no
|
---|
| 7058 | fi
|
---|
| 7059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7060 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 7061 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 7062 |
|
---|
| 7063 | # Is the header present?
|
---|
| 7064 | echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
|
---|
| 7065 | echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
|
---|
| 7066 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7067 | /* confdefs.h. */
|
---|
| 7068 | _ACEOF
|
---|
| 7069 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7070 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7071 | /* end confdefs.h. */
|
---|
| 7072 | #include <readline/readline.h>
|
---|
| 7073 | _ACEOF
|
---|
| 7074 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 7075 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 7076 | ac_status=$?
|
---|
[10192] | 7077 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 7078 | rm -f conftest.er1
|
---|
| 7079 | cat conftest.err >&5
|
---|
[10192] | 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7081 | (exit $ac_status); } >/dev/null; then
|
---|
| 7082 | if test -s conftest.err; then
|
---|
| 7083 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 7084 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 7085 | else
|
---|
| 7086 | ac_cpp_err=
|
---|
| 7087 | fi
|
---|
[3365] | 7088 | else
|
---|
[8063] | 7089 | ac_cpp_err=yes
|
---|
| 7090 | fi
|
---|
| 7091 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 7092 | ac_header_preproc=yes
|
---|
[8063] | 7093 | else
|
---|
| 7094 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7095 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7096 |
|
---|
| 7097 | ac_header_preproc=no
|
---|
[3365] | 7098 | fi
|
---|
[8063] | 7099 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 7100 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 7101 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 7102 |
|
---|
| 7103 | # So? What about this header?
|
---|
| 7104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 7105 | yes:no: )
|
---|
| 7106 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 7107 | echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 7108 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
|
---|
| 7109 | echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
|
---|
| 7110 | ac_header_preproc=yes
|
---|
| 7111 | ;;
|
---|
| 7112 | no:yes:* )
|
---|
| 7113 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
|
---|
| 7114 | echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
|
---|
| 7115 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
|
---|
| 7116 | echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
|
---|
| 7117 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
|
---|
| 7118 | echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
|
---|
| 7119 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 7120 | echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 7121 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
|
---|
| 7122 | echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 7123 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
|
---|
| 7124 | echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 7125 | (
|
---|
| 7126 | cat <<\_ASBOX
|
---|
| 7127 | ## ------------------------------------------ ##
|
---|
| 7128 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 7129 | ## ------------------------------------------ ##
|
---|
| 7130 | _ASBOX
|
---|
| 7131 | ) |
|
---|
| 7132 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 7133 | ;;
|
---|
| 7134 | esac
|
---|
| 7135 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
| 7136 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7137 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7138 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7139 | else
|
---|
| 7140 | ac_cv_header_readline_readline_h=$ac_header_preproc
|
---|
[3365] | 7141 | fi
|
---|
[10192] | 7142 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
[8063] | 7143 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[10192] | 7144 |
|
---|
| 7145 | fi
|
---|
[8063] | 7146 | if test $ac_cv_header_readline_readline_h = yes; then
|
---|
[3365] | 7147 | ac_mg_readline_header_found=1
|
---|
| 7148 | else
|
---|
[10192] | 7149 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 7150 | GNU readline support" >&5
|
---|
| 7151 | echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
| 7152 | GNU readline support" >&2;}
|
---|
[3365] | 7153 | fi
|
---|
| 7154 |
|
---|
[10192] | 7155 |
|
---|
[3365] | 7156 | if test -n "$ac_mg_readline_header_found"; then
|
---|
| 7157 | # first check whether we can find the readline library itself
|
---|
[10192] | 7158 | echo "$as_me:$LINENO: checking for main in -lreadline" >&5
|
---|
[8063] | 7159 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
|
---|
| 7160 | if test "${ac_cv_lib_readline_main+set}" = set; then
|
---|
| 7161 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7162 | else
|
---|
[8063] | 7163 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7164 | LIBS="-lreadline $LIBS"
|
---|
[8063] | 7165 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7166 | /* confdefs.h. */
|
---|
| 7167 | _ACEOF
|
---|
| 7168 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7169 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7170 | /* end confdefs.h. */
|
---|
[3365] | 7171 |
|
---|
[10192] | 7172 |
|
---|
[8063] | 7173 | int
|
---|
| 7174 | main ()
|
---|
| 7175 | {
|
---|
| 7176 | main ();
|
---|
| 7177 | ;
|
---|
| 7178 | return 0;
|
---|
| 7179 | }
|
---|
| 7180 | _ACEOF
|
---|
| 7181 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7183 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7184 | ac_status=$?
|
---|
[10192] | 7185 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7186 | rm -f conftest.er1
|
---|
| 7187 | cat conftest.err >&5
|
---|
| 7188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7189 | (exit $ac_status); } &&
|
---|
[10192] | 7190 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7191 | || test ! -s conftest.err'
|
---|
| 7192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7193 | (eval $ac_try) 2>&5
|
---|
| 7194 | ac_status=$?
|
---|
[10192] | 7195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7196 | (exit $ac_status); }; } &&
|
---|
| 7197 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7199 | (eval $ac_try) 2>&5
|
---|
| 7200 | ac_status=$?
|
---|
| 7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7202 | (exit $ac_status); }; }; then
|
---|
| 7203 | ac_cv_lib_readline_main=yes
|
---|
[3365] | 7204 | else
|
---|
[8063] | 7205 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7206 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7207 |
|
---|
[8063] | 7208 | ac_cv_lib_readline_main=no
|
---|
[3365] | 7209 | fi
|
---|
[10192] | 7210 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7211 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7212 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7213 | fi
|
---|
[10192] | 7214 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
|
---|
[8063] | 7215 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
|
---|
| 7216 | if test $ac_cv_lib_readline_main = yes; then
|
---|
[3365] | 7217 | ac_mg_readline_lib_found=1
|
---|
[10192] | 7218 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7219 | #define WITH_GNU_READLINE 1
|
---|
[10192] | 7220 | _ACEOF
|
---|
[3365] | 7221 |
|
---|
| 7222 | LIBS="$LIBS -lreadline"
|
---|
| 7223 | else
|
---|
[10192] | 7224 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 7225 | GNU readline support" >&5
|
---|
| 7226 | echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
| 7227 | GNU readline support" >&2;}
|
---|
[3365] | 7228 | fi
|
---|
| 7229 |
|
---|
| 7230 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
[8063] | 7231 | # on some systems, readline needs curses. It is difficult to
|
---|
[3365] | 7232 | # determine whether this is necessary on the current system,
|
---|
| 7233 | # since other undefined symbols can be turned up by an
|
---|
| 7234 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
| 7235 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
| 7236 | # we just bung it on and hope for the best.
|
---|
[10192] | 7237 | echo "$as_me:$LINENO: checking for main in -lcurses" >&5
|
---|
[8063] | 7238 | echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
|
---|
| 7239 | if test "${ac_cv_lib_curses_main+set}" = set; then
|
---|
| 7240 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7241 | else
|
---|
[8063] | 7242 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7243 | LIBS="-lcurses $LIBS"
|
---|
[8063] | 7244 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7245 | /* confdefs.h. */
|
---|
| 7246 | _ACEOF
|
---|
| 7247 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7248 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7249 | /* end confdefs.h. */
|
---|
[3365] | 7250 |
|
---|
[10192] | 7251 |
|
---|
[8063] | 7252 | int
|
---|
| 7253 | main ()
|
---|
| 7254 | {
|
---|
| 7255 | main ();
|
---|
| 7256 | ;
|
---|
| 7257 | return 0;
|
---|
| 7258 | }
|
---|
| 7259 | _ACEOF
|
---|
| 7260 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7262 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7263 | ac_status=$?
|
---|
[10192] | 7264 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7265 | rm -f conftest.er1
|
---|
| 7266 | cat conftest.err >&5
|
---|
| 7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7268 | (exit $ac_status); } &&
|
---|
[10192] | 7269 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7270 | || test ! -s conftest.err'
|
---|
| 7271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7272 | (eval $ac_try) 2>&5
|
---|
| 7273 | ac_status=$?
|
---|
[10192] | 7274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7275 | (exit $ac_status); }; } &&
|
---|
| 7276 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7278 | (eval $ac_try) 2>&5
|
---|
| 7279 | ac_status=$?
|
---|
| 7280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7281 | (exit $ac_status); }; }; then
|
---|
| 7282 | ac_cv_lib_curses_main=yes
|
---|
[3365] | 7283 | else
|
---|
[8063] | 7284 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7285 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7286 |
|
---|
[8063] | 7287 | ac_cv_lib_curses_main=no
|
---|
[3365] | 7288 | fi
|
---|
[10192] | 7289 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7290 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7291 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7292 | fi
|
---|
[10192] | 7293 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
|
---|
[8063] | 7294 | echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
|
---|
| 7295 | if test $ac_cv_lib_curses_main = yes; then
|
---|
[3365] | 7296 | LIBS="$LIBS -lcurses"
|
---|
| 7297 | fi
|
---|
| 7298 |
|
---|
| 7299 | fi
|
---|
| 7300 | fi
|
---|
| 7301 | fi
|
---|
| 7302 |
|
---|
[10192] | 7303 |
|
---|
[10848] | 7304 | # text for endianness
|
---|
| 7305 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7306 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7307 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7309 | else
|
---|
| 7310 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7311 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7312 | /* confdefs.h. */
|
---|
| 7313 | _ACEOF
|
---|
| 7314 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7315 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7316 | /* end confdefs.h. */
|
---|
| 7317 | #include <sys/types.h>
|
---|
| 7318 | #include <sys/param.h>
|
---|
| 7319 |
|
---|
| 7320 | int
|
---|
| 7321 | main ()
|
---|
| 7322 | {
|
---|
| 7323 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7324 | bogus endian macros
|
---|
| 7325 | #endif
|
---|
| 7326 |
|
---|
| 7327 | ;
|
---|
| 7328 | return 0;
|
---|
| 7329 | }
|
---|
| 7330 | _ACEOF
|
---|
| 7331 | rm -f conftest.$ac_objext
|
---|
| 7332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7333 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7334 | ac_status=$?
|
---|
| 7335 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7336 | rm -f conftest.er1
|
---|
| 7337 | cat conftest.err >&5
|
---|
| 7338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7339 | (exit $ac_status); } &&
|
---|
| 7340 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7341 | || test ! -s conftest.err'
|
---|
| 7342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7343 | (eval $ac_try) 2>&5
|
---|
| 7344 | ac_status=$?
|
---|
| 7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7346 | (exit $ac_status); }; } &&
|
---|
| 7347 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7349 | (eval $ac_try) 2>&5
|
---|
| 7350 | ac_status=$?
|
---|
| 7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7352 | (exit $ac_status); }; }; then
|
---|
| 7353 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7354 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7355 | /* confdefs.h. */
|
---|
| 7356 | _ACEOF
|
---|
| 7357 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7358 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7359 | /* end confdefs.h. */
|
---|
| 7360 | #include <sys/types.h>
|
---|
| 7361 | #include <sys/param.h>
|
---|
| 7362 |
|
---|
| 7363 | int
|
---|
| 7364 | main ()
|
---|
| 7365 | {
|
---|
| 7366 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7367 | not big endian
|
---|
| 7368 | #endif
|
---|
| 7369 |
|
---|
| 7370 | ;
|
---|
| 7371 | return 0;
|
---|
| 7372 | }
|
---|
| 7373 | _ACEOF
|
---|
| 7374 | rm -f conftest.$ac_objext
|
---|
| 7375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7376 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7377 | ac_status=$?
|
---|
| 7378 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7379 | rm -f conftest.er1
|
---|
| 7380 | cat conftest.err >&5
|
---|
| 7381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7382 | (exit $ac_status); } &&
|
---|
| 7383 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7384 | || test ! -s conftest.err'
|
---|
| 7385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7386 | (eval $ac_try) 2>&5
|
---|
| 7387 | ac_status=$?
|
---|
| 7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7389 | (exit $ac_status); }; } &&
|
---|
| 7390 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7392 | (eval $ac_try) 2>&5
|
---|
| 7393 | ac_status=$?
|
---|
| 7394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7395 | (exit $ac_status); }; }; then
|
---|
| 7396 | ac_cv_c_bigendian=yes
|
---|
| 7397 | else
|
---|
| 7398 | echo "$as_me: failed program was:" >&5
|
---|
| 7399 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7400 |
|
---|
| 7401 | ac_cv_c_bigendian=no
|
---|
| 7402 | fi
|
---|
| 7403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7404 | else
|
---|
| 7405 | echo "$as_me: failed program was:" >&5
|
---|
| 7406 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7407 |
|
---|
| 7408 | # It does not; compile a test program.
|
---|
| 7409 | if test "$cross_compiling" = yes; then
|
---|
| 7410 | # try to guess the endianness by grepping values into an object file
|
---|
| 7411 | ac_cv_c_bigendian=unknown
|
---|
| 7412 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7413 | /* confdefs.h. */
|
---|
| 7414 | _ACEOF
|
---|
| 7415 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7416 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7417 | /* end confdefs.h. */
|
---|
| 7418 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7419 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7420 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7421 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7422 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7423 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7424 | int
|
---|
| 7425 | main ()
|
---|
| 7426 | {
|
---|
| 7427 | _ascii (); _ebcdic ();
|
---|
| 7428 | ;
|
---|
| 7429 | return 0;
|
---|
| 7430 | }
|
---|
| 7431 | _ACEOF
|
---|
| 7432 | rm -f conftest.$ac_objext
|
---|
| 7433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7434 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7435 | ac_status=$?
|
---|
| 7436 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7437 | rm -f conftest.er1
|
---|
| 7438 | cat conftest.err >&5
|
---|
| 7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7440 | (exit $ac_status); } &&
|
---|
| 7441 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7442 | || test ! -s conftest.err'
|
---|
| 7443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7444 | (eval $ac_try) 2>&5
|
---|
| 7445 | ac_status=$?
|
---|
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7447 | (exit $ac_status); }; } &&
|
---|
| 7448 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7450 | (eval $ac_try) 2>&5
|
---|
| 7451 | ac_status=$?
|
---|
| 7452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7453 | (exit $ac_status); }; }; then
|
---|
| 7454 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7455 | ac_cv_c_bigendian=yes
|
---|
| 7456 | fi
|
---|
| 7457 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7458 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7459 | ac_cv_c_bigendian=no
|
---|
| 7460 | else
|
---|
| 7461 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7462 | ac_cv_c_bigendian=unknown
|
---|
| 7463 | fi
|
---|
| 7464 | fi
|
---|
| 7465 | else
|
---|
| 7466 | echo "$as_me: failed program was:" >&5
|
---|
| 7467 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7468 |
|
---|
| 7469 | fi
|
---|
| 7470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7471 | else
|
---|
| 7472 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7473 | /* confdefs.h. */
|
---|
| 7474 | _ACEOF
|
---|
| 7475 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7476 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7477 | /* end confdefs.h. */
|
---|
| 7478 | int
|
---|
| 7479 | main ()
|
---|
| 7480 | {
|
---|
| 7481 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7482 | union
|
---|
| 7483 | {
|
---|
| 7484 | long l;
|
---|
| 7485 | char c[sizeof (long)];
|
---|
| 7486 | } u;
|
---|
| 7487 | u.l = 1;
|
---|
| 7488 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7489 | }
|
---|
| 7490 | _ACEOF
|
---|
| 7491 | rm -f conftest$ac_exeext
|
---|
| 7492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7493 | (eval $ac_link) 2>&5
|
---|
| 7494 | ac_status=$?
|
---|
| 7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7498 | (eval $ac_try) 2>&5
|
---|
| 7499 | ac_status=$?
|
---|
| 7500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7501 | (exit $ac_status); }; }; then
|
---|
| 7502 | ac_cv_c_bigendian=no
|
---|
| 7503 | else
|
---|
| 7504 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7505 | echo "$as_me: failed program was:" >&5
|
---|
| 7506 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7507 |
|
---|
| 7508 | ( exit $ac_status )
|
---|
| 7509 | ac_cv_c_bigendian=yes
|
---|
| 7510 | fi
|
---|
| 7511 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7512 | fi
|
---|
| 7513 | fi
|
---|
| 7514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7515 | fi
|
---|
| 7516 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7517 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7518 | case $ac_cv_c_bigendian in
|
---|
| 7519 | yes)
|
---|
| 7520 |
|
---|
| 7521 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7522 | #define WORDS_BIGENDIAN 1
|
---|
| 7523 | _ACEOF
|
---|
| 7524 | ;;
|
---|
| 7525 | no)
|
---|
| 7526 | ;;
|
---|
| 7527 | *)
|
---|
| 7528 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7529 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7530 | echo "$as_me: error: unknown endianness
|
---|
| 7531 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7532 | { (exit 1); exit 1; }; } ;;
|
---|
| 7533 | esac
|
---|
| 7534 |
|
---|
| 7535 |
|
---|
[3365] | 7536 | # ---------------------------------------------------------------------------
|
---|
| 7537 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[10192] | 7538 | case $LIBOBJS in
|
---|
| 7539 | "xmalloc.$ac_objext" | \
|
---|
| 7540 | *" xmalloc.$ac_objext" | \
|
---|
| 7541 | "xmalloc.$ac_objext "* | \
|
---|
| 7542 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 7543 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 7544 | esac
|
---|
| 7545 |
|
---|
| 7546 | case $LIBOBJS in
|
---|
| 7547 | "error.$ac_objext" | \
|
---|
| 7548 | *" error.$ac_objext" | \
|
---|
| 7549 | "error.$ac_objext "* | \
|
---|
| 7550 | *" error.$ac_objext "* ) ;;
|
---|
| 7551 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7552 | esac
|
---|
| 7553 |
|
---|
[3365] | 7554 | fi
|
---|
| 7555 |
|
---|
[10192] | 7556 |
|
---|
[3365] | 7557 | # ---------------------------------------------------------------------------
|
---|
| 7558 | # see if the user wants to override use of long long
|
---|
| 7559 | # Check whether --enable-override-longlong or --disable-override-longlong was given.
|
---|
| 7560 | if test "${enable_override_longlong+set}" = set; then
|
---|
| 7561 | enableval="$enable_override_longlong"
|
---|
[10192] | 7562 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7563 | #define DISABLE_LONG_LONG 1
|
---|
[10192] | 7564 | _ACEOF
|
---|
[3365] | 7565 |
|
---|
[8063] | 7566 | fi;
|
---|
[3365] | 7567 |
|
---|
[10848] | 7568 |
|
---|
[3365] | 7569 | # ---------------------------------------------------------------------------
|
---|
| 7570 |
|
---|
[10192] | 7571 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
| 7572 | ac_config_commands="$ac_config_commands default"
|
---|
[8063] | 7573 | cat >confcache <<\_ACEOF
|
---|
[3365] | 7574 | # This file is a shell script that caches the results of configure
|
---|
| 7575 | # tests run on this system so they can be shared between configure
|
---|
[8063] | 7576 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7577 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7578 | # want to keep, you may remove or edit it.
|
---|
[3365] | 7579 | #
|
---|
[8063] | 7580 | # config.status only pays attention to the cache file if you give it
|
---|
| 7581 | # the --recheck option to rerun configure.
|
---|
[3365] | 7582 | #
|
---|
[10192] | 7583 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[8063] | 7584 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7585 | # following values.
|
---|
| 7586 |
|
---|
| 7587 | _ACEOF
|
---|
| 7588 |
|
---|
[3365] | 7589 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7590 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7591 | # So, don't put newlines in cache variables' values.
|
---|
| 7592 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7593 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8063] | 7594 | {
|
---|
| 7595 | (set) 2>&1 |
|
---|
| 7596 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7597 | *ac_space=\ *)
|
---|
| 7598 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7599 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7600 | sed -n \
|
---|
[10192] | 7601 | "s/'/'\\\\''/g;
|
---|
| 7602 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[8063] | 7603 | ;;
|
---|
| 7604 | *)
|
---|
| 7605 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7606 | sed -n \
|
---|
[10192] | 7607 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 7608 | ;;
|
---|
| 7609 | esac;
|
---|
| 7610 | } |
|
---|
| 7611 | sed '
|
---|
| 7612 | t clear
|
---|
| 7613 | : clear
|
---|
| 7614 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7615 | t end
|
---|
| 7616 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7617 | : end' >>confcache
|
---|
[10192] | 7618 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[3365] | 7619 | if test -w $cache_file; then
|
---|
[8063] | 7620 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7621 | cat confcache >$cache_file
|
---|
[3365] | 7622 | else
|
---|
| 7623 | echo "not updating unwritable cache $cache_file"
|
---|
| 7624 | fi
|
---|
| 7625 | fi
|
---|
| 7626 | rm -f confcache
|
---|
| 7627 |
|
---|
| 7628 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7629 | # Let make expand exec_prefix.
|
---|
| 7630 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7631 |
|
---|
[8063] | 7632 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7633 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7634 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7635 | # (actually we leave an empty line to preserve line numbers).
|
---|
[3365] | 7636 | if test "x$srcdir" = x.; then
|
---|
[10192] | 7637 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
[8063] | 7638 | s/:*\$(srcdir):*/:/;
|
---|
| 7639 | s/:*\${srcdir}:*/:/;
|
---|
| 7640 | s/:*@srcdir@:*/:/;
|
---|
[10192] | 7641 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
[8063] | 7642 | s/:*$//;
|
---|
[10192] | 7643 | s/^[^=]*=[ ]*$//;
|
---|
[8063] | 7644 | }'
|
---|
[3365] | 7645 | fi
|
---|
| 7646 |
|
---|
| 7647 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7648 |
|
---|
[10192] | 7649 | ac_libobjs=
|
---|
| 7650 | ac_ltlibobjs=
|
---|
| 7651 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7652 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7653 | ac_i=`echo "$ac_i" |
|
---|
| 7654 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7655 | # 2. Add them.
|
---|
| 7656 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7657 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7658 | done
|
---|
| 7659 | LIBOBJS=$ac_libobjs
|
---|
| 7660 |
|
---|
| 7661 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7662 |
|
---|
| 7663 |
|
---|
| 7664 |
|
---|
[3365] | 7665 | : ${CONFIG_STATUS=./config.status}
|
---|
[8063] | 7666 | ac_clean_files_save=$ac_clean_files
|
---|
| 7667 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[10192] | 7668 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
[8063] | 7669 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7670 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7671 | #! $SHELL
|
---|
[10192] | 7672 | # Generated by $as_me.
|
---|
[3365] | 7673 | # Run this file to recreate the current configuration.
|
---|
| 7674 | # Compiler output produced by configure, useful for debugging
|
---|
[8063] | 7675 | # configure, is in config.log if it exists.
|
---|
[3365] | 7676 |
|
---|
[8063] | 7677 | debug=false
|
---|
[10192] | 7678 | ac_cs_recheck=false
|
---|
| 7679 | ac_cs_silent=false
|
---|
[8063] | 7680 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7681 | _ACEOF
|
---|
| 7682 |
|
---|
| 7683 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[10192] | 7684 | ## --------------------- ##
|
---|
| 7685 | ## M4sh Initialization. ##
|
---|
| 7686 | ## --------------------- ##
|
---|
| 7687 |
|
---|
[8063] | 7688 | # Be Bourne compatible
|
---|
| 7689 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7690 | emulate sh
|
---|
| 7691 | NULLCMD=:
|
---|
[10192] | 7692 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7693 | # is contrary to our usage. Disable this feature.
|
---|
| 7694 | alias -g '${1+"$@"}'='"$@"'
|
---|
[8063] | 7695 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7696 | set -o posix
|
---|
| 7697 | fi
|
---|
[10192] | 7698 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8063] | 7699 |
|
---|
[10192] | 7700 | # Support unset when possible.
|
---|
| 7701 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7702 | as_unset=unset
|
---|
| 7703 | else
|
---|
| 7704 | as_unset=false
|
---|
| 7705 | fi
|
---|
| 7706 |
|
---|
| 7707 |
|
---|
| 7708 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7709 | $as_unset ENV MAIL MAILPATH
|
---|
| 7710 | PS1='$ '
|
---|
| 7711 | PS2='> '
|
---|
| 7712 | PS4='+ '
|
---|
| 7713 |
|
---|
| 7714 | # NLS nuisances.
|
---|
| 7715 | for as_var in \
|
---|
| 7716 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7717 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7718 | LC_TELEPHONE LC_TIME
|
---|
| 7719 | do
|
---|
| 7720 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7721 | eval $as_var=C; export $as_var
|
---|
| 7722 | else
|
---|
| 7723 | $as_unset $as_var
|
---|
| 7724 | fi
|
---|
| 7725 | done
|
---|
| 7726 |
|
---|
| 7727 | # Required to use basename.
|
---|
| 7728 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7729 | as_expr=expr
|
---|
| 7730 | else
|
---|
| 7731 | as_expr=false
|
---|
| 7732 | fi
|
---|
| 7733 |
|
---|
| 7734 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7735 | as_basename=basename
|
---|
| 7736 | else
|
---|
| 7737 | as_basename=false
|
---|
| 7738 | fi
|
---|
| 7739 |
|
---|
| 7740 |
|
---|
[8063] | 7741 | # Name of the executable.
|
---|
[10192] | 7742 | as_me=`$as_basename "$0" ||
|
---|
| 7743 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7744 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7745 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7746 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7747 | echo X/"$0" |
|
---|
| 7748 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7749 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7750 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7751 | s/.*/./; q'`
|
---|
[8063] | 7752 |
|
---|
[10192] | 7753 |
|
---|
| 7754 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7755 | # Avoid depending upon Character Ranges.
|
---|
| 7756 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7757 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7758 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7759 | as_cr_digits='0123456789'
|
---|
| 7760 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7761 |
|
---|
| 7762 | # The user is always right.
|
---|
| 7763 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7764 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7765 | echo "exit 0" >>conf$$.sh
|
---|
| 7766 | chmod +x conf$$.sh
|
---|
| 7767 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7768 | PATH_SEPARATOR=';'
|
---|
| 7769 | else
|
---|
| 7770 | PATH_SEPARATOR=:
|
---|
| 7771 | fi
|
---|
| 7772 | rm -f conf$$.sh
|
---|
| 7773 | fi
|
---|
| 7774 |
|
---|
| 7775 |
|
---|
| 7776 | as_lineno_1=$LINENO
|
---|
| 7777 | as_lineno_2=$LINENO
|
---|
| 7778 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7779 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7780 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7781 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7782 | # relative or not.
|
---|
| 7783 | case $0 in
|
---|
| 7784 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7785 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7786 | for as_dir in $PATH
|
---|
| 7787 | do
|
---|
| 7788 | IFS=$as_save_IFS
|
---|
| 7789 | test -z "$as_dir" && as_dir=.
|
---|
| 7790 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7791 | done
|
---|
| 7792 |
|
---|
| 7793 | ;;
|
---|
| 7794 | esac
|
---|
| 7795 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7796 | # in which case we are not to be found in the path.
|
---|
| 7797 | if test "x$as_myself" = x; then
|
---|
| 7798 | as_myself=$0
|
---|
| 7799 | fi
|
---|
| 7800 | if test ! -f "$as_myself"; then
|
---|
| 7801 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7802 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7803 | { (exit 1); exit 1; }; }
|
---|
| 7804 | fi
|
---|
| 7805 | case $CONFIG_SHELL in
|
---|
| 7806 | '')
|
---|
| 7807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7808 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7809 | do
|
---|
| 7810 | IFS=$as_save_IFS
|
---|
| 7811 | test -z "$as_dir" && as_dir=.
|
---|
| 7812 | for as_base in sh bash ksh sh5; do
|
---|
| 7813 | case $as_dir in
|
---|
| 7814 | /*)
|
---|
| 7815 | if ("$as_dir/$as_base" -c '
|
---|
| 7816 | as_lineno_1=$LINENO
|
---|
| 7817 | as_lineno_2=$LINENO
|
---|
| 7818 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7819 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7820 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7821 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7822 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7823 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7824 | export CONFIG_SHELL
|
---|
| 7825 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7826 | fi;;
|
---|
| 7827 | esac
|
---|
| 7828 | done
|
---|
| 7829 | done
|
---|
| 7830 | ;;
|
---|
| 7831 | esac
|
---|
| 7832 |
|
---|
| 7833 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7834 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7835 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7836 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7837 | # with the numbered line, and appends trailing '-' during
|
---|
| 7838 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7839 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7840 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7841 | sed '=' <$as_myself |
|
---|
| 7842 | sed '
|
---|
| 7843 | N
|
---|
| 7844 | s,$,-,
|
---|
| 7845 | : loop
|
---|
| 7846 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7847 | t loop
|
---|
| 7848 | s,-$,,
|
---|
| 7849 | s,^['$as_cr_digits']*\n,,
|
---|
| 7850 | ' >$as_me.lineno &&
|
---|
| 7851 | chmod +x $as_me.lineno ||
|
---|
| 7852 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7853 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7854 | { (exit 1); exit 1; }; }
|
---|
| 7855 |
|
---|
| 7856 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7857 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7858 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7859 | . ./$as_me.lineno
|
---|
| 7860 | # Exit status is that of the last command.
|
---|
| 7861 | exit
|
---|
| 7862 | }
|
---|
| 7863 |
|
---|
| 7864 |
|
---|
| 7865 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7866 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7867 | ' ECHO_T=' ' ;;
|
---|
| 7868 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7869 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7870 | esac
|
---|
| 7871 |
|
---|
[8063] | 7872 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7873 | as_expr=expr
|
---|
| 7874 | else
|
---|
| 7875 | as_expr=false
|
---|
| 7876 | fi
|
---|
| 7877 |
|
---|
| 7878 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7879 | echo >conf$$.file
|
---|
| 7880 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7881 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7882 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7883 | if test -f conf$$.exe; then
|
---|
| 7884 | # Don't use ln at all; we don't have any links
|
---|
| 7885 | as_ln_s='cp -p'
|
---|
| 7886 | else
|
---|
| 7887 | as_ln_s='ln -s'
|
---|
| 7888 | fi
|
---|
| 7889 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7890 | as_ln_s=ln
|
---|
| 7891 | else
|
---|
| 7892 | as_ln_s='cp -p'
|
---|
| 7893 | fi
|
---|
| 7894 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7895 |
|
---|
[10192] | 7896 | if mkdir -p . 2>/dev/null; then
|
---|
| 7897 | as_mkdir_p=:
|
---|
[8063] | 7898 | else
|
---|
[10192] | 7899 | test -d ./-p && rmdir ./-p
|
---|
| 7900 | as_mkdir_p=false
|
---|
[8063] | 7901 | fi
|
---|
| 7902 |
|
---|
[10192] | 7903 | as_executable_p="test -f"
|
---|
[8063] | 7904 |
|
---|
[10192] | 7905 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7906 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7907 |
|
---|
| 7908 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7909 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7910 |
|
---|
| 7911 |
|
---|
[8063] | 7912 | # IFS
|
---|
| 7913 | # We need space, tab and new line, in precisely that order.
|
---|
| 7914 | as_nl='
|
---|
| 7915 | '
|
---|
| 7916 | IFS=" $as_nl"
|
---|
| 7917 |
|
---|
| 7918 | # CDPATH.
|
---|
[10192] | 7919 | $as_unset CDPATH
|
---|
[8063] | 7920 |
|
---|
| 7921 | exec 6>&1
|
---|
| 7922 |
|
---|
[10192] | 7923 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 7924 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 7925 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7926 | exec 5>>config.log
|
---|
| 7927 | {
|
---|
| 7928 | echo
|
---|
| 7929 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7930 | ## Running $as_me. ##
|
---|
| 7931 | _ASBOX
|
---|
| 7932 | } >&5
|
---|
| 7933 | cat >&5 <<_CSEOF
|
---|
| 7934 |
|
---|
| 7935 | This file was extended by $as_me, which was
|
---|
| 7936 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 7937 |
|
---|
| 7938 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7939 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7940 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7941 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7942 | $ $0 $@
|
---|
| 7943 |
|
---|
| 7944 | _CSEOF
|
---|
| 7945 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7946 | echo >&5
|
---|
[8063] | 7947 | _ACEOF
|
---|
| 7948 |
|
---|
| 7949 | # Files that config.status was made for.
|
---|
| 7950 | if test -n "$ac_config_files"; then
|
---|
| 7951 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7952 | fi
|
---|
| 7953 |
|
---|
| 7954 | if test -n "$ac_config_headers"; then
|
---|
| 7955 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7956 | fi
|
---|
| 7957 |
|
---|
| 7958 | if test -n "$ac_config_links"; then
|
---|
| 7959 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7960 | fi
|
---|
| 7961 |
|
---|
| 7962 | if test -n "$ac_config_commands"; then
|
---|
| 7963 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7964 | fi
|
---|
| 7965 |
|
---|
[10192] | 7966 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 7967 |
|
---|
| 7968 | ac_cs_usage="\
|
---|
| 7969 | \`$as_me' instantiates files from templates according to the
|
---|
| 7970 | current configuration.
|
---|
| 7971 |
|
---|
| 7972 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7973 |
|
---|
| 7974 | -h, --help print this help, then exit
|
---|
| 7975 | -V, --version print version number, then exit
|
---|
[10192] | 7976 | -q, --quiet do not print progress messages
|
---|
[8063] | 7977 | -d, --debug don't remove temporary files
|
---|
| 7978 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7979 | --file=FILE[:TEMPLATE]
|
---|
[10192] | 7980 | instantiate the configuration file FILE
|
---|
[8063] | 7981 | --header=FILE[:TEMPLATE]
|
---|
[10192] | 7982 | instantiate the configuration header FILE
|
---|
[8063] | 7983 |
|
---|
| 7984 | Configuration files:
|
---|
| 7985 | $config_files
|
---|
| 7986 |
|
---|
| 7987 | Configuration headers:
|
---|
| 7988 | $config_headers
|
---|
| 7989 |
|
---|
| 7990 | Configuration commands:
|
---|
| 7991 | $config_commands
|
---|
| 7992 |
|
---|
| 7993 | Report bugs to <[email protected]>."
|
---|
[10192] | 7994 | _ACEOF
|
---|
[8063] | 7995 |
|
---|
[10192] | 7996 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 7997 | ac_cs_version="\\
|
---|
| 7998 | config.status
|
---|
[10192] | 7999 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
[8063] | 8000 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 8001 |
|
---|
[10192] | 8002 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 8003 | This config.status script is free software; the Free Software Foundation
|
---|
| 8004 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 8005 | srcdir=$srcdir
|
---|
| 8006 | INSTALL="$INSTALL"
|
---|
[10192] | 8007 | _ACEOF
|
---|
[8063] | 8008 |
|
---|
[10192] | 8009 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8010 | # If no file are specified by the user, then we need to provide default
|
---|
| 8011 | # value. By we need to know if files were specified by the user.
|
---|
| 8012 | ac_need_defaults=:
|
---|
| 8013 | while test $# != 0
|
---|
[3365] | 8014 | do
|
---|
[8063] | 8015 | case $1 in
|
---|
| 8016 | --*=*)
|
---|
| 8017 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 8018 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[10192] | 8019 | ac_shift=:
|
---|
[8063] | 8020 | ;;
|
---|
[10192] | 8021 | -*)
|
---|
| 8022 | ac_option=$1
|
---|
| 8023 | ac_optarg=$2
|
---|
| 8024 | ac_shift=shift
|
---|
| 8025 | ;;
|
---|
[8063] | 8026 | *) # This is not an option, so the user has probably given explicit
|
---|
| 8027 | # arguments.
|
---|
[10192] | 8028 | ac_option=$1
|
---|
[8063] | 8029 | ac_need_defaults=false;;
|
---|
| 8030 | esac
|
---|
| 8031 |
|
---|
[10192] | 8032 | case $ac_option in
|
---|
[8063] | 8033 | # Handling of the options.
|
---|
[10192] | 8034 | _ACEOF
|
---|
| 8035 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8036 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10192] | 8037 | ac_cs_recheck=: ;;
|
---|
[8063] | 8038 | --version | --vers* | -V )
|
---|
| 8039 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 8040 | --he | --h)
|
---|
| 8041 | # Conflict between --help and --header
|
---|
[10192] | 8042 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
[8063] | 8043 | Try \`$0 --help' for more information." >&5
|
---|
| 8044 | echo "$as_me: error: ambiguous option: $1
|
---|
| 8045 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8046 | { (exit 1); exit 1; }; };;
|
---|
| 8047 | --help | --hel | -h )
|
---|
| 8048 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 8049 | --debug | --d* | -d )
|
---|
| 8050 | debug=: ;;
|
---|
| 8051 | --file | --fil | --fi | --f )
|
---|
[10192] | 8052 | $ac_shift
|
---|
| 8053 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[8063] | 8054 | ac_need_defaults=false;;
|
---|
| 8055 | --header | --heade | --head | --hea )
|
---|
[10192] | 8056 | $ac_shift
|
---|
| 8057 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[8063] | 8058 | ac_need_defaults=false;;
|
---|
[10192] | 8059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8060 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8061 | ac_cs_silent=: ;;
|
---|
[8063] | 8062 |
|
---|
| 8063 | # This is an error.
|
---|
[10192] | 8064 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
[8063] | 8065 | Try \`$0 --help' for more information." >&5
|
---|
| 8066 | echo "$as_me: error: unrecognized option: $1
|
---|
| 8067 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8068 | { (exit 1); exit 1; }; } ;;
|
---|
[10192] | 8069 |
|
---|
| 8070 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 8071 |
|
---|
[3365] | 8072 | esac
|
---|
[8063] | 8073 | shift
|
---|
[3365] | 8074 | done
|
---|
| 8075 |
|
---|
[10192] | 8076 | ac_configure_extra_args=
|
---|
[3365] | 8077 |
|
---|
[10192] | 8078 | if $ac_cs_silent; then
|
---|
| 8079 | exec 6>/dev/null
|
---|
| 8080 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 8081 | fi
|
---|
[8063] | 8082 |
|
---|
[10192] | 8083 | _ACEOF
|
---|
| 8084 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8085 | if \$ac_cs_recheck; then
|
---|
| 8086 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8087 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 8088 | fi
|
---|
[8063] | 8089 |
|
---|
| 8090 | _ACEOF
|
---|
[3365] | 8091 |
|
---|
[10192] | 8092 |
|
---|
| 8093 |
|
---|
| 8094 |
|
---|
| 8095 |
|
---|
| 8096 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8097 | for ac_config_target in $ac_config_targets
|
---|
| 8098 | do
|
---|
| 8099 | case "$ac_config_target" in
|
---|
| 8100 | # Handling of arguments.
|
---|
| 8101 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8102 | "text/Makefile" ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
| 8103 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 8104 | "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 8105 | "java/org/greenstone/mgpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
| 8106 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 8107 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8108 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8109 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8110 | { (exit 1); exit 1; }; };;
|
---|
| 8111 | esac
|
---|
| 8112 | done
|
---|
| 8113 |
|
---|
[8063] | 8114 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8115 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8116 | # We use the long form for the default assignment because of an extremely
|
---|
| 8117 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8118 | if $ac_need_defaults; then
|
---|
| 8119 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8120 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8121 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 8122 | fi
|
---|
[3365] | 8123 |
|
---|
[10192] | 8124 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 8125 | # simply because there is no reason to put it here, and in addition,
|
---|
| 8126 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[8063] | 8127 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 8128 | $debug ||
|
---|
| 8129 | {
|
---|
| 8130 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[10192] | 8131 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[8063] | 8132 | }
|
---|
| 8133 |
|
---|
| 8134 | # Create a (secure) tmp directory for tmp files.
|
---|
[10192] | 8135 |
|
---|
[8063] | 8136 | {
|
---|
[10192] | 8137 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[8063] | 8138 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8139 | } ||
|
---|
| 8140 | {
|
---|
[10192] | 8141 | tmp=./confstat$$-$RANDOM
|
---|
[8063] | 8142 | (umask 077 && mkdir $tmp)
|
---|
| 8143 | } ||
|
---|
| 8144 | {
|
---|
[10192] | 8145 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
[8063] | 8146 | { (exit 1); exit 1; }
|
---|
| 8147 | }
|
---|
| 8148 |
|
---|
[10192] | 8149 | _ACEOF
|
---|
[8063] | 8150 |
|
---|
[10192] | 8151 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8152 |
|
---|
| 8153 | #
|
---|
| 8154 | # CONFIG_FILES section.
|
---|
| 8155 | #
|
---|
| 8156 |
|
---|
| 8157 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8158 | # This happens for instance when ./config.status config.h
|
---|
| 8159 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8160 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8161 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8162 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8163 | s,@SHELL@,$SHELL,;t t
|
---|
[10192] | 8164 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8165 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8166 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8167 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8168 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8169 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
[8063] | 8170 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8171 | s,@prefix@,$prefix,;t t
|
---|
| 8172 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8173 | s,@bindir@,$bindir,;t t
|
---|
| 8174 | s,@sbindir@,$sbindir,;t t
|
---|
| 8175 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8176 | s,@datadir@,$datadir,;t t
|
---|
| 8177 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8178 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8179 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8180 | s,@libdir@,$libdir,;t t
|
---|
| 8181 | s,@includedir@,$includedir,;t t
|
---|
| 8182 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8183 | s,@infodir@,$infodir,;t t
|
---|
| 8184 | s,@mandir@,$mandir,;t t
|
---|
[10192] | 8185 | s,@build_alias@,$build_alias,;t t
|
---|
| 8186 | s,@host_alias@,$host_alias,;t t
|
---|
| 8187 | s,@target_alias@,$target_alias,;t t
|
---|
| 8188 | s,@DEFS@,$DEFS,;t t
|
---|
[8063] | 8189 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8190 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8191 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8192 | s,@LIBS@,$LIBS,;t t
|
---|
| 8193 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8194 | s,@VERSION@,$VERSION,;t t
|
---|
| 8195 | s,@CXX@,$CXX,;t t
|
---|
| 8196 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8197 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8198 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8199 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8200 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8201 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8202 | s,@AWK@,$AWK,;t t
|
---|
| 8203 | s,@YACC@,$YACC,;t t
|
---|
| 8204 | s,@CC@,$CC,;t t
|
---|
| 8205 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8206 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8207 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8208 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8209 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8210 | s,@LN_S@,$LN_S,;t t
|
---|
| 8211 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8212 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8213 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8214 | s,@CPP@,$CPP,;t t
|
---|
[10192] | 8215 | s,@EGREP@,$EGREP,;t t
|
---|
[8063] | 8216 | s,@U@,$U,;t t
|
---|
| 8217 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 8218 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8219 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
[10192] | 8220 | s,@JNIINC@,$JNIINC,;t t
|
---|
| 8221 | s,@JNISUFFIX@,$JNISUFFIX,;t t
|
---|
| 8222 | s,@JNIFLAGS@,$JNIFLAGS,;t t
|
---|
| 8223 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
[8059] | 8224 | CEOF
|
---|
[8063] | 8225 |
|
---|
[10192] | 8226 | _ACEOF
|
---|
[3365] | 8227 |
|
---|
[10192] | 8228 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8229 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8230 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8231 | ac_max_sed_lines=48
|
---|
| 8232 | ac_sed_frag=1 # Number of current file.
|
---|
| 8233 | ac_beg=1 # First line for current file.
|
---|
| 8234 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8235 | ac_more_lines=:
|
---|
| 8236 | ac_sed_cmds=
|
---|
| 8237 | while $ac_more_lines; do
|
---|
| 8238 | if test $ac_beg -gt 1; then
|
---|
| 8239 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8240 | else
|
---|
[8063] | 8241 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8242 | fi
|
---|
[8063] | 8243 | if test ! -s $tmp/subs.frag; then
|
---|
| 8244 | ac_more_lines=false
|
---|
| 8245 | else
|
---|
| 8246 | # The purpose of the label and of the branching condition is to
|
---|
| 8247 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8248 | # is no need to browse any of the substitutions).
|
---|
| 8249 | # These are the two extra sed commands mentioned above.
|
---|
| 8250 | (echo ':t
|
---|
| 8251 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8252 | if test -z "$ac_sed_cmds"; then
|
---|
[10192] | 8253 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8254 | else
|
---|
[10192] | 8255 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8256 | fi
|
---|
| 8257 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8258 | ac_beg=$ac_end
|
---|
| 8259 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8260 | fi
|
---|
| 8261 | done
|
---|
| 8262 | if test -z "$ac_sed_cmds"; then
|
---|
| 8263 | ac_sed_cmds=cat
|
---|
[3365] | 8264 | fi
|
---|
[8063] | 8265 | fi # test -n "$CONFIG_FILES"
|
---|
[3365] | 8266 |
|
---|
[10192] | 8267 | _ACEOF
|
---|
| 8268 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8269 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8270 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8271 | case $ac_file in
|
---|
| 8272 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8273 | cat >$tmp/stdin
|
---|
| 8274 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8275 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8276 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8277 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8278 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8279 | esac
|
---|
| 8280 |
|
---|
[8063] | 8281 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
[10192] | 8282 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8283 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8284 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8285 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8286 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8287 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8288 | echo X"$ac_file" |
|
---|
| 8289 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8290 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8291 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8292 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8293 | s/.*/./; q'`
|
---|
[10192] | 8294 | { if $as_mkdir_p; then
|
---|
| 8295 | mkdir -p "$ac_dir"
|
---|
[3365] | 8296 | else
|
---|
[10192] | 8297 | as_dir="$ac_dir"
|
---|
| 8298 | as_dirs=
|
---|
| 8299 | while test ! -d "$as_dir"; do
|
---|
| 8300 | as_dirs="$as_dir $as_dirs"
|
---|
| 8301 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8303 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8304 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8305 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8306 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8307 | echo X"$as_dir" |
|
---|
| 8308 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8309 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8310 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8311 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8312 | s/.*/./; q'`
|
---|
| 8313 | done
|
---|
| 8314 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8315 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8316 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8317 | { (exit 1); exit 1; }; }; }
|
---|
[3365] | 8318 |
|
---|
[10192] | 8319 | ac_builddir=.
|
---|
| 8320 |
|
---|
| 8321 | if test "$ac_dir" != .; then
|
---|
| 8322 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8323 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8324 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8325 | else
|
---|
| 8326 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8327 | fi
|
---|
| 8328 |
|
---|
| 8329 | case $srcdir in
|
---|
| 8330 | .) # No --srcdir option. We are building in place.
|
---|
| 8331 | ac_srcdir=.
|
---|
| 8332 | if test -z "$ac_top_builddir"; then
|
---|
| 8333 | ac_top_srcdir=.
|
---|
| 8334 | else
|
---|
| 8335 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8336 | fi ;;
|
---|
| 8337 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8338 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8339 | ac_top_srcdir=$srcdir ;;
|
---|
[3365] | 8340 | *) # Relative path.
|
---|
[10192] | 8341 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8342 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8343 | esac
|
---|
[3365] | 8344 |
|
---|
[10192] | 8345 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8346 | # the directories may not exist.
|
---|
| 8347 | case `pwd` in
|
---|
| 8348 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8349 | *)
|
---|
| 8350 | case "$ac_dir" in
|
---|
| 8351 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8352 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8353 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8354 | esac;;
|
---|
| 8355 | esac
|
---|
| 8356 | case $ac_abs_builddir in
|
---|
| 8357 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8358 | *)
|
---|
| 8359 | case ${ac_top_builddir}. in
|
---|
| 8360 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8361 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8362 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8363 | esac;;
|
---|
| 8364 | esac
|
---|
| 8365 | case $ac_abs_builddir in
|
---|
| 8366 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8367 | *)
|
---|
| 8368 | case $ac_srcdir in
|
---|
| 8369 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8370 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8371 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8372 | esac;;
|
---|
| 8373 | esac
|
---|
| 8374 | case $ac_abs_builddir in
|
---|
| 8375 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8376 | *)
|
---|
| 8377 | case $ac_top_srcdir in
|
---|
| 8378 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8379 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8380 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8381 | esac;;
|
---|
| 8382 | esac
|
---|
| 8383 |
|
---|
| 8384 |
|
---|
[8063] | 8385 | case $INSTALL in
|
---|
| 8386 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[10192] | 8387 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[3365] | 8388 | esac
|
---|
| 8389 |
|
---|
[8063] | 8390 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8391 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8392 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8393 | rm -f "$ac_file"
|
---|
| 8394 | fi
|
---|
| 8395 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8396 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8397 | # /* config.h. Generated by config.status. */
|
---|
| 8398 | if test x"$ac_file" = x-; then
|
---|
| 8399 | configure_input=
|
---|
| 8400 | else
|
---|
| 8401 | configure_input="$ac_file. "
|
---|
| 8402 | fi
|
---|
| 8403 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8404 | sed 's,.*/,,'` by configure."
|
---|
[3365] | 8405 |
|
---|
[8063] | 8406 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8407 | # src tree.
|
---|
| 8408 | ac_file_inputs=`IFS=:
|
---|
| 8409 | for f in $ac_file_in; do
|
---|
| 8410 | case $f in
|
---|
| 8411 | -) echo $tmp/stdin ;;
|
---|
| 8412 | [\\/$]*)
|
---|
[10192] | 8413 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8414 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8415 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8416 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8417 | echo "$f";;
|
---|
[8063] | 8418 | *) # Relative
|
---|
[10192] | 8419 | if test -f "$f"; then
|
---|
| 8420 | # Build tree
|
---|
| 8421 | echo "$f"
|
---|
| 8422 | elif test -f "$srcdir/$f"; then
|
---|
| 8423 | # Source tree
|
---|
| 8424 | echo "$srcdir/$f"
|
---|
| 8425 | else
|
---|
| 8426 | # /dev/null tree
|
---|
| 8427 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8428 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8429 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8430 | fi;;
|
---|
[8063] | 8431 | esac
|
---|
| 8432 | done` || { (exit 1); exit 1; }
|
---|
[10192] | 8433 | _ACEOF
|
---|
| 8434 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8435 | sed "$ac_vpsub
|
---|
| 8436 | $extrasub
|
---|
[10192] | 8437 | _ACEOF
|
---|
| 8438 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8439 | :t
|
---|
| 8440 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8441 | s,@configure_input@,$configure_input,;t t
|
---|
| 8442 | s,@srcdir@,$ac_srcdir,;t t
|
---|
[10192] | 8443 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
[8063] | 8444 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
[10192] | 8445 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8446 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8447 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8448 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8449 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
[8063] | 8450 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8451 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8452 | rm -f $tmp/stdin
|
---|
| 8453 | if test x"$ac_file" != x-; then
|
---|
| 8454 | mv $tmp/out $ac_file
|
---|
| 8455 | else
|
---|
| 8456 | cat $tmp/out
|
---|
| 8457 | rm -f $tmp/out
|
---|
| 8458 | fi
|
---|
[3365] | 8459 |
|
---|
[8063] | 8460 | done
|
---|
[10192] | 8461 | _ACEOF
|
---|
| 8462 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8463 |
|
---|
| 8464 | #
|
---|
| 8465 | # CONFIG_HEADER section.
|
---|
| 8466 | #
|
---|
| 8467 |
|
---|
[3365] | 8468 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8469 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8470 | #
|
---|
| 8471 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[10192] | 8472 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8473 | ac_dB='[ ].*$,\1#\2'
|
---|
[8063] | 8474 | ac_dC=' '
|
---|
| 8475 | ac_dD=',;t'
|
---|
| 8476 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
[10192] | 8477 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
[8063] | 8478 | ac_uB='$,\1#\2define\3'
|
---|
[3365] | 8479 | ac_uC=' '
|
---|
[8063] | 8480 | ac_uD=',;t'
|
---|
[3365] | 8481 |
|
---|
[8063] | 8482 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8483 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8484 | case $ac_file in
|
---|
| 8485 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8486 | cat >$tmp/stdin
|
---|
| 8487 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8488 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8489 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8490 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8491 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8492 | esac
|
---|
| 8493 |
|
---|
[10192] | 8494 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8495 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[3365] | 8496 |
|
---|
[8063] | 8497 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8498 | # src tree.
|
---|
| 8499 | ac_file_inputs=`IFS=:
|
---|
| 8500 | for f in $ac_file_in; do
|
---|
| 8501 | case $f in
|
---|
| 8502 | -) echo $tmp/stdin ;;
|
---|
| 8503 | [\\/$]*)
|
---|
[10192] | 8504 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8505 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8506 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8507 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8508 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8509 | echo "$f";;
|
---|
[8063] | 8510 | *) # Relative
|
---|
[10192] | 8511 | if test -f "$f"; then
|
---|
| 8512 | # Build tree
|
---|
| 8513 | echo "$f"
|
---|
| 8514 | elif test -f "$srcdir/$f"; then
|
---|
| 8515 | # Source tree
|
---|
| 8516 | echo "$srcdir/$f"
|
---|
| 8517 | else
|
---|
| 8518 | # /dev/null tree
|
---|
| 8519 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8520 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8521 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8522 | fi;;
|
---|
[8063] | 8523 | esac
|
---|
| 8524 | done` || { (exit 1); exit 1; }
|
---|
| 8525 | # Remove the trailing spaces.
|
---|
[10192] | 8526 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[3365] | 8527 |
|
---|
[10192] | 8528 | _ACEOF
|
---|
[3365] | 8529 |
|
---|
[8063] | 8530 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8531 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8532 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8533 | # templates, and the second `#undef' templates.
|
---|
| 8534 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8535 | # config.status. Protect against being in an unquoted here document
|
---|
| 8536 | # in config.status.
|
---|
| 8537 | rm -f conftest.defines conftest.undefs
|
---|
| 8538 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8539 | # Putting comments in sed scripts is not portable.
|
---|
| 8540 | #
|
---|
| 8541 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8542 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8543 | # See the Autoconf documentation for `clear'.
|
---|
[10192] | 8544 | cat >confdef2sed.sed <<\_ACEOF
|
---|
[8063] | 8545 | s/[\\&,]/\\&/g
|
---|
| 8546 | s,[\\$`],\\&,g
|
---|
| 8547 | t clear
|
---|
| 8548 | : clear
|
---|
[10192] | 8549 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
[8063] | 8550 | t end
|
---|
[10192] | 8551 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
[8063] | 8552 | : end
|
---|
[10192] | 8553 | _ACEOF
|
---|
[8063] | 8554 | # If some macros were called several times there might be several times
|
---|
| 8555 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8556 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8557 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8558 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8559 | rm -f confdef2sed.sed
|
---|
[3365] | 8560 |
|
---|
| 8561 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8562 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8563 | # on some systems where configure will not decide to define it.
|
---|
[10192] | 8564 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8565 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8566 | _ACEOF
|
---|
[3365] | 8567 |
|
---|
[8063] | 8568 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8569 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8570 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
[10192] | 8571 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
[8063] | 8572 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8573 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8574 | rm -f conftest.tail
|
---|
| 8575 | while grep . conftest.defines >/dev/null
|
---|
| 8576 | do
|
---|
| 8577 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8578 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8579 | # Speed up: don't consider the non `#define' lines.
|
---|
[10192] | 8580 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8581 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8582 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8583 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8584 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8585 | echo 'CEOF
|
---|
| 8586 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8587 | rm -f $tmp/in
|
---|
| 8588 | mv $tmp/out $tmp/in
|
---|
| 8589 | ' >>$CONFIG_STATUS
|
---|
| 8590 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8591 | rm -f conftest.defines
|
---|
| 8592 | mv conftest.tail conftest.defines
|
---|
| 8593 | done
|
---|
| 8594 | rm -f conftest.defines
|
---|
[10192] | 8595 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
[8063] | 8596 | echo >>$CONFIG_STATUS
|
---|
[3365] | 8597 |
|
---|
[8063] | 8598 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8599 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8600 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[3365] | 8601 | rm -f conftest.tail
|
---|
[8063] | 8602 | while grep . conftest.undefs >/dev/null
|
---|
[3365] | 8603 | do
|
---|
[8063] | 8604 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8605 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8606 | # Speed up: don't consider the non `#undef'
|
---|
[10192] | 8607 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8608 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8609 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8610 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8611 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[3365] | 8612 | echo 'CEOF
|
---|
[8063] | 8613 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8614 | rm -f $tmp/in
|
---|
| 8615 | mv $tmp/out $tmp/in
|
---|
| 8616 | ' >>$CONFIG_STATUS
|
---|
| 8617 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8618 | rm -f conftest.undefs
|
---|
| 8619 | mv conftest.tail conftest.undefs
|
---|
[3365] | 8620 | done
|
---|
[8063] | 8621 | rm -f conftest.undefs
|
---|
[3365] | 8622 |
|
---|
[10192] | 8623 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8624 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8625 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8626 | # /* config.h. Generated by config.status. */
|
---|
[8063] | 8627 | if test x"$ac_file" = x-; then
|
---|
[10192] | 8628 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[3365] | 8629 | else
|
---|
[10192] | 8630 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
[8063] | 8631 | fi
|
---|
| 8632 | cat $tmp/in >>$tmp/config.h
|
---|
| 8633 | rm -f $tmp/in
|
---|
| 8634 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8635 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8636 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
[8063] | 8637 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8638 | else
|
---|
[10192] | 8639 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8640 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8641 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8642 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8643 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8644 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8645 | echo X"$ac_file" |
|
---|
| 8646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8647 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8648 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8649 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8650 | s/.*/./; q'`
|
---|
[10192] | 8651 | { if $as_mkdir_p; then
|
---|
| 8652 | mkdir -p "$ac_dir"
|
---|
| 8653 | else
|
---|
| 8654 | as_dir="$ac_dir"
|
---|
| 8655 | as_dirs=
|
---|
| 8656 | while test ! -d "$as_dir"; do
|
---|
| 8657 | as_dirs="$as_dir $as_dirs"
|
---|
| 8658 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8659 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8660 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8661 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8662 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8663 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8664 | echo X"$as_dir" |
|
---|
| 8665 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8666 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8667 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8668 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8669 | s/.*/./; q'`
|
---|
| 8670 | done
|
---|
| 8671 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8672 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8673 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8674 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8675 |
|
---|
| 8676 | rm -f $ac_file
|
---|
| 8677 | mv $tmp/config.h $ac_file
|
---|
[3365] | 8678 | fi
|
---|
[8063] | 8679 | else
|
---|
| 8680 | cat $tmp/config.h
|
---|
| 8681 | rm -f $tmp/config.h
|
---|
[3365] | 8682 | fi
|
---|
[8063] | 8683 | done
|
---|
[10192] | 8684 | _ACEOF
|
---|
| 8685 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8686 |
|
---|
[8063] | 8687 | #
|
---|
| 8688 | # CONFIG_COMMANDS section.
|
---|
| 8689 | #
|
---|
| 8690 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
| 8691 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
| 8692 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8693 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
| 8694 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8695 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
| 8696 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
| 8697 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
| 8698 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8699 | echo X"$ac_dest" |
|
---|
| 8700 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8701 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8702 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8703 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8704 | s/.*/./; q'`
|
---|
| 8705 | { if $as_mkdir_p; then
|
---|
| 8706 | mkdir -p "$ac_dir"
|
---|
| 8707 | else
|
---|
| 8708 | as_dir="$ac_dir"
|
---|
| 8709 | as_dirs=
|
---|
| 8710 | while test ! -d "$as_dir"; do
|
---|
| 8711 | as_dirs="$as_dir $as_dirs"
|
---|
| 8712 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8713 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8714 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8715 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8716 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8717 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8718 | echo X"$as_dir" |
|
---|
| 8719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8721 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8722 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8723 | s/.*/./; q'`
|
---|
| 8724 | done
|
---|
| 8725 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8726 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8727 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8728 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8729 |
|
---|
[10192] | 8730 | ac_builddir=.
|
---|
| 8731 |
|
---|
| 8732 | if test "$ac_dir" != .; then
|
---|
| 8733 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8734 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8735 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8736 | else
|
---|
| 8737 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8738 | fi
|
---|
| 8739 |
|
---|
| 8740 | case $srcdir in
|
---|
| 8741 | .) # No --srcdir option. We are building in place.
|
---|
| 8742 | ac_srcdir=.
|
---|
| 8743 | if test -z "$ac_top_builddir"; then
|
---|
| 8744 | ac_top_srcdir=.
|
---|
| 8745 | else
|
---|
| 8746 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8747 | fi ;;
|
---|
| 8748 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8749 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8750 | ac_top_srcdir=$srcdir ;;
|
---|
| 8751 | *) # Relative path.
|
---|
| 8752 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8753 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8754 | esac
|
---|
| 8755 |
|
---|
| 8756 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8757 | # the directories may not exist.
|
---|
| 8758 | case `pwd` in
|
---|
| 8759 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8760 | *)
|
---|
| 8761 | case "$ac_dir" in
|
---|
| 8762 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8763 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8764 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8765 | esac;;
|
---|
| 8766 | esac
|
---|
| 8767 | case $ac_abs_builddir in
|
---|
| 8768 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8769 | *)
|
---|
| 8770 | case ${ac_top_builddir}. in
|
---|
| 8771 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8772 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8773 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8774 | esac;;
|
---|
| 8775 | esac
|
---|
| 8776 | case $ac_abs_builddir in
|
---|
| 8777 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8778 | *)
|
---|
| 8779 | case $ac_srcdir in
|
---|
| 8780 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8781 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8782 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8783 | esac;;
|
---|
| 8784 | esac
|
---|
| 8785 | case $ac_abs_builddir in
|
---|
| 8786 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8787 | *)
|
---|
| 8788 | case $ac_top_srcdir in
|
---|
| 8789 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8790 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8791 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8792 | esac;;
|
---|
| 8793 | esac
|
---|
| 8794 |
|
---|
| 8795 |
|
---|
| 8796 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
| 8797 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
[8063] | 8798 | case $ac_dest in
|
---|
| 8799 | default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
| 8800 | esac
|
---|
| 8801 | done
|
---|
[10192] | 8802 | _ACEOF
|
---|
[3365] | 8803 |
|
---|
[10192] | 8804 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8805 |
|
---|
| 8806 | { (exit 0); exit 0; }
|
---|
[10192] | 8807 | _ACEOF
|
---|
[3365] | 8808 | chmod +x $CONFIG_STATUS
|
---|
[8063] | 8809 | ac_clean_files=$ac_clean_files_save
|
---|
[3365] | 8810 |
|
---|
[10192] | 8811 |
|
---|
[8063] | 8812 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8813 | # config.status does its own redirection, appending to config.log.
|
---|
| 8814 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8815 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8816 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8817 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8818 | # appended to by config.status. When coming back to configure, we
|
---|
| 8819 | # need to make the FD available again.
|
---|
| 8820 | if test "$no_create" != yes; then
|
---|
| 8821 | ac_cs_success=:
|
---|
[10192] | 8822 | ac_config_status_args=
|
---|
| 8823 | test "$silent" = yes &&
|
---|
| 8824 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[8063] | 8825 | exec 5>/dev/null
|
---|
[10192] | 8826 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[8063] | 8827 | exec 5>>config.log
|
---|
| 8828 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8829 | # would make configure fail if this is the last instruction.
|
---|
| 8830 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8831 | fi
|
---|
| 8832 |
|
---|