[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 |
|
---|
[13698] | 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 ENABLE_ACCENTFOLD 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 UNAC_DIR 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]
|
---|
[13482] | 856 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[8063] | 857 | --enable-override-longlong
|
---|
| 858 | overide use of long long with GCC
|
---|
| 859 |
|
---|
| 860 | Optional Packages:
|
---|
| 861 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 862 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
[13698] | 863 | --with-unac=dir Use local unac library and headers
|
---|
[8063] | 864 | --with-dmalloc use dmalloc, as in
|
---|
| 865 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 866 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 867 | --with-gnu-readline compile with GNU readline support
|
---|
| 868 |
|
---|
| 869 | Some influential environment variables:
|
---|
| 870 | CXX C++ compiler command
|
---|
| 871 | CXXFLAGS C++ compiler flags
|
---|
| 872 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 873 | nonstandard directory <lib dir>
|
---|
| 874 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 875 | headers in a nonstandard directory <include dir>
|
---|
| 876 | CC C compiler command
|
---|
| 877 | CFLAGS C compiler flags
|
---|
| 878 | CPP C preprocessor
|
---|
| 879 |
|
---|
| 880 | Use these variables to override the choices made by `configure' or to help
|
---|
| 881 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 882 |
|
---|
[10192] | 883 | _ACEOF
|
---|
[8063] | 884 | fi
|
---|
| 885 |
|
---|
| 886 | if test "$ac_init_help" = "recursive"; then
|
---|
| 887 | # If there are subdirs, report their specific --help.
|
---|
| 888 | ac_popdir=`pwd`
|
---|
[10192] | 889 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 890 | test -d $ac_dir || continue
|
---|
| 891 | ac_builddir=.
|
---|
[8063] | 892 |
|
---|
[10192] | 893 | if test "$ac_dir" != .; then
|
---|
| 894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 895 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 897 | else
|
---|
| 898 | ac_dir_suffix= ac_top_builddir=
|
---|
| 899 | fi
|
---|
[8063] | 900 |
|
---|
[10192] | 901 | case $srcdir in
|
---|
| 902 | .) # No --srcdir option. We are building in place.
|
---|
| 903 | ac_srcdir=.
|
---|
| 904 | if test -z "$ac_top_builddir"; then
|
---|
| 905 | ac_top_srcdir=.
|
---|
| 906 | else
|
---|
| 907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 908 | fi ;;
|
---|
| 909 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 910 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 911 | ac_top_srcdir=$srcdir ;;
|
---|
| 912 | *) # Relative path.
|
---|
| 913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 914 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 915 | esac
|
---|
| 916 |
|
---|
| 917 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 918 | # the directories may not exist.
|
---|
| 919 | case `pwd` in
|
---|
| 920 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 921 | *)
|
---|
| 922 | case "$ac_dir" in
|
---|
| 923 | .) ac_abs_builddir=`pwd`;;
|
---|
| 924 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 925 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 926 | esac;;
|
---|
| 927 | esac
|
---|
| 928 | case $ac_abs_builddir in
|
---|
| 929 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 930 | *)
|
---|
| 931 | case ${ac_top_builddir}. in
|
---|
| 932 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 934 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 935 | esac;;
|
---|
| 936 | esac
|
---|
| 937 | case $ac_abs_builddir in
|
---|
| 938 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 939 | *)
|
---|
| 940 | case $ac_srcdir in
|
---|
| 941 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 943 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 944 | esac;;
|
---|
| 945 | esac
|
---|
| 946 | case $ac_abs_builddir in
|
---|
| 947 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 948 | *)
|
---|
| 949 | case $ac_top_srcdir in
|
---|
| 950 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 952 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 953 | esac;;
|
---|
| 954 | esac
|
---|
| 955 |
|
---|
| 956 | cd $ac_dir
|
---|
[8063] | 957 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[10192] | 958 | if test -f $ac_srcdir/configure.gnu; then
|
---|
[8063] | 959 | echo
|
---|
[10192] | 960 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 961 | elif test -f $ac_srcdir/configure; then
|
---|
[8063] | 962 | echo
|
---|
[10192] | 963 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 964 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 965 | test -f $ac_srcdir/configure.in; then
|
---|
[8063] | 966 | echo
|
---|
| 967 | $ac_configure --help
|
---|
| 968 | else
|
---|
[10192] | 969 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[8063] | 970 | fi
|
---|
| 971 | cd $ac_popdir
|
---|
| 972 | done
|
---|
| 973 | fi
|
---|
| 974 |
|
---|
| 975 | test -n "$ac_init_help" && exit 0
|
---|
| 976 | if $ac_init_version; then
|
---|
[10192] | 977 | cat <<\_ACEOF
|
---|
[8063] | 978 |
|
---|
[10192] | 979 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 980 | This configure script is free software; the Free Software Foundation
|
---|
| 981 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 982 | _ACEOF
|
---|
[8063] | 983 | exit 0
|
---|
| 984 | fi
|
---|
| 985 | exec 5>config.log
|
---|
[10192] | 986 | cat >&5 <<_ACEOF
|
---|
[8063] | 987 | This file contains any messages produced by compilers while
|
---|
| 988 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 989 |
|
---|
| 990 | It was created by $as_me, which was
|
---|
[10192] | 991 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8063] | 992 |
|
---|
| 993 | $ $0 $@
|
---|
| 994 |
|
---|
[10192] | 995 | _ACEOF
|
---|
[8063] | 996 | {
|
---|
| 997 | cat <<_ASUNAME
|
---|
[10192] | 998 | ## --------- ##
|
---|
| 999 | ## Platform. ##
|
---|
| 1000 | ## --------- ##
|
---|
[8063] | 1001 |
|
---|
| 1002 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1003 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1004 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1005 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1006 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1007 |
|
---|
| 1008 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1009 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1010 |
|
---|
| 1011 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1012 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1013 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1014 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1015 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1016 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1018 |
|
---|
[10192] | 1019 | _ASUNAME
|
---|
[8063] | 1020 |
|
---|
[10192] | 1021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1022 | for as_dir in $PATH
|
---|
| 1023 | do
|
---|
| 1024 | IFS=$as_save_IFS
|
---|
| 1025 | test -z "$as_dir" && as_dir=.
|
---|
| 1026 | echo "PATH: $as_dir"
|
---|
| 1027 | done
|
---|
| 1028 |
|
---|
[8063] | 1029 | } >&5
|
---|
| 1030 |
|
---|
[10192] | 1031 | cat >&5 <<_ACEOF
|
---|
[8063] | 1032 |
|
---|
| 1033 |
|
---|
[10192] | 1034 | ## ----------- ##
|
---|
| 1035 | ## Core tests. ##
|
---|
| 1036 | ## ----------- ##
|
---|
| 1037 |
|
---|
| 1038 | _ACEOF
|
---|
| 1039 |
|
---|
| 1040 |
|
---|
[8063] | 1041 | # Keep a trace of the command line.
|
---|
| 1042 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10192] | 1043 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[8063] | 1044 | # Also quote any args containing shell meta-characters.
|
---|
[10192] | 1045 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[8063] | 1046 | ac_configure_args=
|
---|
[10192] | 1047 | ac_configure_args0=
|
---|
| 1048 | ac_configure_args1=
|
---|
[8063] | 1049 | ac_sep=
|
---|
[10192] | 1050 | ac_must_keep_next=false
|
---|
| 1051 | for ac_pass in 1 2
|
---|
[8063] | 1052 | do
|
---|
[10192] | 1053 | for ac_arg
|
---|
| 1054 | do
|
---|
| 1055 | case $ac_arg in
|
---|
| 1056 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1058 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1059 | continue ;;
|
---|
| 1060 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1061 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1062 | esac
|
---|
| 1063 | case $ac_pass in
|
---|
| 1064 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1065 | 2)
|
---|
| 1066 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1067 | if test $ac_must_keep_next = true; then
|
---|
| 1068 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1069 | else
|
---|
| 1070 | case $ac_arg in
|
---|
| 1071 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1072 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1073 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1074 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1075 | case "$ac_configure_args0 " in
|
---|
| 1076 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1077 | esac
|
---|
| 1078 | ;;
|
---|
| 1079 | -* ) ac_must_keep_next=true ;;
|
---|
| 1080 | esac
|
---|
| 1081 | fi
|
---|
| 1082 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1083 | # Get rid of the leading space.
|
---|
| 1084 | ac_sep=" "
|
---|
| 1085 | ;;
|
---|
| 1086 | esac
|
---|
| 1087 | done
|
---|
[8063] | 1088 | done
|
---|
[10192] | 1089 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1090 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[8063] | 1091 |
|
---|
| 1092 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1093 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1094 | # would cause problems or look ugly.
|
---|
[10192] | 1095 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1096 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[8063] | 1097 | trap 'exit_status=$?
|
---|
| 1098 | # Save into config.log some information that might help in debugging.
|
---|
[10192] | 1099 | {
|
---|
| 1100 | echo
|
---|
| 1101 |
|
---|
| 1102 | cat <<\_ASBOX
|
---|
| 1103 | ## ---------------- ##
|
---|
| 1104 | ## Cache variables. ##
|
---|
| 1105 | ## ---------------- ##
|
---|
| 1106 | _ASBOX
|
---|
| 1107 | echo
|
---|
| 1108 | # The following way of writing the cache mishandles newlines in values,
|
---|
[8063] | 1109 | {
|
---|
| 1110 | (set) 2>&1 |
|
---|
| 1111 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1112 | *ac_space=\ *)
|
---|
| 1113 | sed -n \
|
---|
[10192] | 1114 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
[8063] | 1116 | ;;
|
---|
| 1117 | *)
|
---|
| 1118 | sed -n \
|
---|
[10192] | 1119 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 1120 | ;;
|
---|
| 1121 | esac;
|
---|
[10192] | 1122 | }
|
---|
| 1123 | echo
|
---|
| 1124 |
|
---|
| 1125 | cat <<\_ASBOX
|
---|
| 1126 | ## ----------------- ##
|
---|
| 1127 | ## Output variables. ##
|
---|
| 1128 | ## ----------------- ##
|
---|
| 1129 | _ASBOX
|
---|
| 1130 | echo
|
---|
| 1131 | for ac_var in $ac_subst_vars
|
---|
| 1132 | do
|
---|
| 1133 | eval ac_val=$`echo $ac_var`
|
---|
| 1134 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1135 | done | sort
|
---|
| 1136 | echo
|
---|
| 1137 |
|
---|
| 1138 | if test -n "$ac_subst_files"; then
|
---|
| 1139 | cat <<\_ASBOX
|
---|
| 1140 | ## ------------- ##
|
---|
| 1141 | ## Output files. ##
|
---|
| 1142 | ## ------------- ##
|
---|
| 1143 | _ASBOX
|
---|
| 1144 | echo
|
---|
| 1145 | for ac_var in $ac_subst_files
|
---|
| 1146 | do
|
---|
| 1147 | eval ac_val=$`echo $ac_var`
|
---|
| 1148 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1149 | done | sort
|
---|
| 1150 | echo
|
---|
| 1151 | fi
|
---|
| 1152 |
|
---|
| 1153 | if test -s confdefs.h; then
|
---|
| 1154 | cat <<\_ASBOX
|
---|
| 1155 | ## ----------- ##
|
---|
| 1156 | ## confdefs.h. ##
|
---|
| 1157 | ## ----------- ##
|
---|
| 1158 | _ASBOX
|
---|
| 1159 | echo
|
---|
| 1160 | sed "/^$/d" confdefs.h | sort
|
---|
| 1161 | echo
|
---|
| 1162 | fi
|
---|
| 1163 | test "$ac_signal" != 0 &&
|
---|
| 1164 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1165 | echo "$as_me: exit $exit_status"
|
---|
| 1166 | } >&5
|
---|
| 1167 | rm -f core *.core &&
|
---|
| 1168 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8063] | 1169 | exit $exit_status
|
---|
| 1170 | ' 0
|
---|
| 1171 | for ac_signal in 1 2 13 15; do
|
---|
[10192] | 1172 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[8063] | 1173 | done
|
---|
| 1174 | ac_signal=0
|
---|
| 1175 |
|
---|
| 1176 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1177 | rm -rf conftest* confdefs.h
|
---|
| 1178 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1179 | echo >confdefs.h
|
---|
| 1180 |
|
---|
[10192] | 1181 | # Predefined preprocessor variables.
|
---|
| 1182 |
|
---|
| 1183 | cat >>confdefs.h <<_ACEOF
|
---|
| 1184 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1185 | _ACEOF
|
---|
| 1186 |
|
---|
| 1187 |
|
---|
| 1188 | cat >>confdefs.h <<_ACEOF
|
---|
| 1189 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1190 | _ACEOF
|
---|
| 1191 |
|
---|
| 1192 |
|
---|
| 1193 | cat >>confdefs.h <<_ACEOF
|
---|
| 1194 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1195 | _ACEOF
|
---|
| 1196 |
|
---|
| 1197 |
|
---|
| 1198 | cat >>confdefs.h <<_ACEOF
|
---|
| 1199 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1200 | _ACEOF
|
---|
| 1201 |
|
---|
| 1202 |
|
---|
| 1203 | cat >>confdefs.h <<_ACEOF
|
---|
| 1204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1205 | _ACEOF
|
---|
| 1206 |
|
---|
| 1207 |
|
---|
[8063] | 1208 | # Let the site file select an alternate cache file if it wants to.
|
---|
[3365] | 1209 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1210 | if test -z "$CONFIG_SITE"; then
|
---|
| 1211 | if test "x$prefix" != xNONE; then
|
---|
| 1212 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1213 | else
|
---|
| 1214 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1215 | fi
|
---|
| 1216 | fi
|
---|
| 1217 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1218 | if test -r "$ac_site_file"; then
|
---|
[10192] | 1219 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
[8063] | 1220 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10192] | 1221 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[3365] | 1222 | . "$ac_site_file"
|
---|
| 1223 | fi
|
---|
| 1224 | done
|
---|
| 1225 |
|
---|
| 1226 | if test -r "$cache_file"; then
|
---|
[8063] | 1227 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1228 | # files actually), so we avoid doing that.
|
---|
| 1229 | if test -f "$cache_file"; then
|
---|
[10192] | 1230 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
[8063] | 1231 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1232 | case $cache_file in
|
---|
| 1233 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1234 | *) . ./$cache_file;;
|
---|
| 1235 | esac
|
---|
| 1236 | fi
|
---|
[3365] | 1237 | else
|
---|
[10192] | 1238 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
[8063] | 1239 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1240 | >$cache_file
|
---|
[3365] | 1241 | fi
|
---|
| 1242 |
|
---|
[8063] | 1243 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1244 | # value.
|
---|
[10192] | 1245 | ac_cache_corrupted=false
|
---|
[8063] | 1246 | for ac_var in `(set) 2>&1 |
|
---|
[10192] | 1247 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[8063] | 1248 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1249 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1250 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1251 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1252 | case $ac_old_set,$ac_new_set in
|
---|
| 1253 | set,)
|
---|
[10192] | 1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1255 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1256 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1257 | ,set)
|
---|
[10192] | 1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1259 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1260 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1261 | ,);;
|
---|
| 1262 | *)
|
---|
| 1263 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[10192] | 1264 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1265 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1266 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1267 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1268 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1269 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1270 | ac_cache_corrupted=:
|
---|
[8063] | 1271 | fi;;
|
---|
| 1272 | esac
|
---|
[10192] | 1273 | # Pass precious variables to config.status.
|
---|
| 1274 | if test "$ac_new_set" = set; then
|
---|
| 1275 | case $ac_new_val in
|
---|
| 1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1277 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1278 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1279 | esac
|
---|
| 1280 | case " $ac_configure_args " in
|
---|
| 1281 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1282 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1283 | esac
|
---|
| 1284 | fi
|
---|
[8063] | 1285 | done
|
---|
[10192] | 1286 | if $ac_cache_corrupted; then
|
---|
| 1287 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1288 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1289 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1290 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1291 | { (exit 1); exit 1; }; }
|
---|
[8063] | 1292 | fi
|
---|
| 1293 |
|
---|
[3365] | 1294 | ac_ext=c
|
---|
| 1295 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8063] | 1296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[3365] | 1299 |
|
---|
| 1300 |
|
---|
| 1301 |
|
---|
[10192] | 1302 |
|
---|
| 1303 |
|
---|
| 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1319 |
|
---|
[3365] | 1320 | test "$program_prefix" != NONE &&
|
---|
[10192] | 1321 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
[3365] | 1322 | # Use a double $ so make ignores it.
|
---|
| 1323 | test "$program_suffix" != NONE &&
|
---|
[10192] | 1324 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
| 1325 | # Double any \ or $. echo might interpret backslashes.
|
---|
| 1326 | # By default was `s,x,x', remove it if useless.
|
---|
| 1327 | cat <<\_ACEOF >conftest.sed
|
---|
| 1328 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
| 1329 | _ACEOF
|
---|
| 1330 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
| 1331 | rm conftest.sed
|
---|
[3365] | 1332 |
|
---|
| 1333 |
|
---|
| 1334 | PACKAGE=mgpp
|
---|
| 1335 | VERSION=1.3
|
---|
| 1336 |
|
---|
[8059] | 1337 | LDFLAGS=
|
---|
| 1338 |
|
---|
[10192] | 1339 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1340 | #define PACKAGE "$PACKAGE"
|
---|
[10192] | 1341 | _ACEOF
|
---|
[3365] | 1342 |
|
---|
[10192] | 1343 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1344 | #define VERSION "$VERSION"
|
---|
[10192] | 1345 | _ACEOF
|
---|
[3365] | 1346 |
|
---|
[10192] | 1347 |
|
---|
| 1348 |
|
---|
| 1349 |
|
---|
[13482] | 1350 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1351 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1352 | enableval="$enable_accentfold"
|
---|
| 1353 | ENABLE_ACCENTFOLD=0
|
---|
| 1354 | else
|
---|
| 1355 | ENABLE_ACCENTFOLD=1
|
---|
| 1356 | fi;
|
---|
| 1357 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1358 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1359 | _ACEOF
|
---|
| 1360 |
|
---|
| 1361 |
|
---|
| 1362 |
|
---|
[8063] | 1363 | ac_ext=cc
|
---|
| 1364 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 1365 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1366 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1367 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 1368 | if test -n "$ac_tool_prefix"; then
|
---|
[10192] | 1369 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8063] | 1370 | do
|
---|
| 1371 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1372 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 1373 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1375 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 1376 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1377 | else
|
---|
| 1378 | if test -n "$CXX"; then
|
---|
| 1379 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 1380 | else
|
---|
[10192] | 1381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1382 | for as_dir in $PATH
|
---|
| 1383 | do
|
---|
| 1384 | IFS=$as_save_IFS
|
---|
| 1385 | test -z "$as_dir" && as_dir=.
|
---|
| 1386 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1387 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1388 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 1389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1390 | break 2
|
---|
| 1391 | fi
|
---|
[8063] | 1392 | done
|
---|
[10192] | 1393 | done
|
---|
[3365] | 1394 |
|
---|
[8063] | 1395 | fi
|
---|
| 1396 | fi
|
---|
| 1397 | CXX=$ac_cv_prog_CXX
|
---|
| 1398 | if test -n "$CXX"; then
|
---|
[10192] | 1399 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
[8063] | 1400 | echo "${ECHO_T}$CXX" >&6
|
---|
| 1401 | else
|
---|
[10192] | 1402 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1403 | echo "${ECHO_T}no" >&6
|
---|
| 1404 | fi
|
---|
[3365] | 1405 |
|
---|
[8063] | 1406 | test -n "$CXX" && break
|
---|
| 1407 | done
|
---|
| 1408 | fi
|
---|
| 1409 | if test -z "$CXX"; then
|
---|
| 1410 | ac_ct_CXX=$CXX
|
---|
[10192] | 1411 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[3365] | 1412 | do
|
---|
[8063] | 1413 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1414 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1415 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1417 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 1418 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1419 | else
|
---|
[8063] | 1420 | if test -n "$ac_ct_CXX"; then
|
---|
| 1421 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
[3365] | 1422 | else
|
---|
[10192] | 1423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1424 | for as_dir in $PATH
|
---|
| 1425 | do
|
---|
| 1426 | IFS=$as_save_IFS
|
---|
| 1427 | test -z "$as_dir" && as_dir=.
|
---|
| 1428 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1430 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 1431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1432 | break 2
|
---|
| 1433 | fi
|
---|
[8063] | 1434 | done
|
---|
[10192] | 1435 | done
|
---|
[8063] | 1436 |
|
---|
[3365] | 1437 | fi
|
---|
| 1438 | fi
|
---|
[8063] | 1439 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 1440 | if test -n "$ac_ct_CXX"; then
|
---|
[10192] | 1441 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
[8063] | 1442 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3365] | 1443 | else
|
---|
[10192] | 1444 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1445 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1446 | fi
|
---|
| 1447 |
|
---|
[8063] | 1448 | test -n "$ac_ct_CXX" && break
|
---|
[3365] | 1449 | done
|
---|
[8063] | 1450 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[3365] | 1451 |
|
---|
[8063] | 1452 | CXX=$ac_ct_CXX
|
---|
| 1453 | fi
|
---|
[3365] | 1454 |
|
---|
[10192] | 1455 |
|
---|
| 1456 | # Provide some information about the compiler.
|
---|
| 1457 | echo "$as_me:$LINENO:" \
|
---|
| 1458 | "checking for C++ compiler version" >&5
|
---|
| 1459 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1460 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1461 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1462 | ac_status=$?
|
---|
| 1463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1464 | (exit $ac_status); }
|
---|
| 1465 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1466 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1467 | ac_status=$?
|
---|
| 1468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1469 | (exit $ac_status); }
|
---|
| 1470 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1471 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1472 | ac_status=$?
|
---|
| 1473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1474 | (exit $ac_status); }
|
---|
| 1475 |
|
---|
[8063] | 1476 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1477 | /* confdefs.h. */
|
---|
| 1478 | _ACEOF
|
---|
| 1479 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1480 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1481 | /* end confdefs.h. */
|
---|
[3365] | 1482 |
|
---|
[8063] | 1483 | int
|
---|
| 1484 | main ()
|
---|
| 1485 | {
|
---|
[3365] | 1486 |
|
---|
[8063] | 1487 | ;
|
---|
| 1488 | return 0;
|
---|
| 1489 | }
|
---|
| 1490 | _ACEOF
|
---|
| 1491 | ac_clean_files_save=$ac_clean_files
|
---|
[10192] | 1492 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[8063] | 1493 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10192] | 1494 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[8063] | 1495 | # of exeext.
|
---|
[10192] | 1496 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
---|
| 1497 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
|
---|
[8063] | 1498 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[10192] | 1499 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
[8063] | 1500 | (eval $ac_link_default) 2>&5
|
---|
| 1501 | ac_status=$?
|
---|
[10192] | 1502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1503 | (exit $ac_status); }; then
|
---|
[10192] | 1504 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1505 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1506 | # resort.
|
---|
| 1507 |
|
---|
| 1508 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1509 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1510 | ac_cv_exeext=
|
---|
| 1511 | # b.out is created by i960 compilers.
|
---|
| 1512 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1513 | do
|
---|
| 1514 | test -f "$ac_file" || continue
|
---|
[8063] | 1515 | case $ac_file in
|
---|
[10192] | 1516 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1517 | ;;
|
---|
| 1518 | conftest.$ac_ext )
|
---|
| 1519 | # This is the source file.
|
---|
| 1520 | ;;
|
---|
| 1521 | [ab].out )
|
---|
| 1522 | # We found the default executable, but exeext='' is most
|
---|
| 1523 | # certainly right.
|
---|
| 1524 | break;;
|
---|
| 1525 | *.* )
|
---|
| 1526 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1527 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1528 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1529 | # maintain Libtool? --akim.
|
---|
| 1530 | export ac_cv_exeext
|
---|
| 1531 | break;;
|
---|
| 1532 | * )
|
---|
| 1533 | break;;
|
---|
[8063] | 1534 | esac
|
---|
| 1535 | done
|
---|
| 1536 | else
|
---|
| 1537 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1538 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1539 |
|
---|
| 1540 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
---|
| 1541 | See \`config.log' for more details." >&5
|
---|
| 1542 | echo "$as_me: error: C++ compiler cannot create executables
|
---|
| 1543 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1544 | { (exit 77); exit 77; }; }
|
---|
| 1545 | fi
|
---|
[3365] | 1546 |
|
---|
[8063] | 1547 | ac_exeext=$ac_cv_exeext
|
---|
[10192] | 1548 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
[8063] | 1549 | echo "${ECHO_T}$ac_file" >&6
|
---|
[3365] | 1550 |
|
---|
[8063] | 1551 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1552 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1553 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
---|
[8063] | 1554 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
|
---|
| 1555 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1556 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1557 | if test "$cross_compiling" != yes; then
|
---|
| 1558 | if { ac_try='./$ac_file'
|
---|
[10192] | 1559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1560 | (eval $ac_try) 2>&5
|
---|
| 1561 | ac_status=$?
|
---|
[10192] | 1562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1563 | (exit $ac_status); }; }; then
|
---|
| 1564 | cross_compiling=no
|
---|
[3365] | 1565 | else
|
---|
[8063] | 1566 | if test "$cross_compiling" = maybe; then
|
---|
| 1567 | cross_compiling=yes
|
---|
| 1568 | else
|
---|
[10192] | 1569 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
---|
| 1570 | If you meant to cross compile, use \`--host'.
|
---|
| 1571 | See \`config.log' for more details." >&5
|
---|
[8063] | 1572 | echo "$as_me: error: cannot run C++ compiled programs.
|
---|
[10192] | 1573 | If you meant to cross compile, use \`--host'.
|
---|
| 1574 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1575 | { (exit 1); exit 1; }; }
|
---|
| 1576 | fi
|
---|
[3365] | 1577 | fi
|
---|
| 1578 | fi
|
---|
[10192] | 1579 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 1580 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 1581 |
|
---|
[10192] | 1582 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[8063] | 1583 | ac_clean_files=$ac_clean_files_save
|
---|
| 1584 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1585 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1586 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
[8063] | 1587 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
[10192] | 1588 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
[8063] | 1589 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1590 |
|
---|
[10192] | 1591 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1592 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 1594 | (eval $ac_link) 2>&5
|
---|
| 1595 | ac_status=$?
|
---|
[10192] | 1596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1597 | (exit $ac_status); }; then
|
---|
| 1598 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1599 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1600 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1601 | # `rm'.
|
---|
[10192] | 1602 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1603 | test -f "$ac_file" || continue
|
---|
[8063] | 1604 | case $ac_file in
|
---|
[10192] | 1605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[8063] | 1606 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10192] | 1607 | export ac_cv_exeext
|
---|
| 1608 | break;;
|
---|
[8063] | 1609 | * ) break;;
|
---|
| 1610 | esac
|
---|
| 1611 | done
|
---|
| 1612 | else
|
---|
[10192] | 1613 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1614 | See \`config.log' for more details." >&5
|
---|
| 1615 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1616 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1617 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1618 | fi
|
---|
| 1619 |
|
---|
[8063] | 1620 | rm -f conftest$ac_cv_exeext
|
---|
[10192] | 1621 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
[8063] | 1622 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1623 |
|
---|
| 1624 | rm -f conftest.$ac_ext
|
---|
| 1625 | EXEEXT=$ac_cv_exeext
|
---|
| 1626 | ac_exeext=$EXEEXT
|
---|
[10192] | 1627 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1628 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[8063] | 1629 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1630 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1631 | else
|
---|
[8063] | 1632 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1633 | /* confdefs.h. */
|
---|
| 1634 | _ACEOF
|
---|
| 1635 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1636 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1637 | /* end confdefs.h. */
|
---|
[8063] | 1638 |
|
---|
| 1639 | int
|
---|
| 1640 | main ()
|
---|
| 1641 | {
|
---|
| 1642 |
|
---|
| 1643 | ;
|
---|
| 1644 | return 0;
|
---|
| 1645 | }
|
---|
| 1646 | _ACEOF
|
---|
| 1647 | rm -f conftest.o conftest.obj
|
---|
[10192] | 1648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
[8063] | 1649 | (eval $ac_compile) 2>&5
|
---|
| 1650 | ac_status=$?
|
---|
[10192] | 1651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1652 | (exit $ac_status); }; then
|
---|
| 1653 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1654 | case $ac_file in
|
---|
[10192] | 1655 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[8063] | 1656 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1657 | break;;
|
---|
| 1658 | esac
|
---|
| 1659 | done
|
---|
[3365] | 1660 | else
|
---|
[8063] | 1661 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1662 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1663 |
|
---|
| 1664 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1665 | See \`config.log' for more details." >&5
|
---|
| 1666 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1667 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1668 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1669 | fi
|
---|
[8063] | 1670 |
|
---|
| 1671 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[3365] | 1672 | fi
|
---|
[10192] | 1673 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
[8063] | 1674 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1675 | OBJEXT=$ac_cv_objext
|
---|
| 1676 | ac_objext=$OBJEXT
|
---|
[10192] | 1677 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
[8063] | 1678 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 1679 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 1680 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1681 | else
|
---|
| 1682 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1683 | /* confdefs.h. */
|
---|
| 1684 | _ACEOF
|
---|
| 1685 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1686 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1687 | /* end confdefs.h. */
|
---|
[3365] | 1688 |
|
---|
[8063] | 1689 | int
|
---|
| 1690 | main ()
|
---|
| 1691 | {
|
---|
| 1692 | #ifndef __GNUC__
|
---|
| 1693 | choke me
|
---|
| 1694 | #endif
|
---|
[3365] | 1695 |
|
---|
[8063] | 1696 | ;
|
---|
| 1697 | return 0;
|
---|
| 1698 | }
|
---|
| 1699 | _ACEOF
|
---|
| 1700 | rm -f conftest.$ac_objext
|
---|
[10192] | 1701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1702 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1703 | ac_status=$?
|
---|
[10192] | 1704 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1705 | rm -f conftest.er1
|
---|
| 1706 | cat conftest.err >&5
|
---|
| 1707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1708 | (exit $ac_status); } &&
|
---|
[10192] | 1709 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1710 | || test ! -s conftest.err'
|
---|
| 1711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1712 | (eval $ac_try) 2>&5
|
---|
| 1713 | ac_status=$?
|
---|
[10192] | 1714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1715 | (exit $ac_status); }; } &&
|
---|
| 1716 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1718 | (eval $ac_try) 2>&5
|
---|
| 1719 | ac_status=$?
|
---|
| 1720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1721 | (exit $ac_status); }; }; then
|
---|
| 1722 | ac_compiler_gnu=yes
|
---|
[3365] | 1723 | else
|
---|
[8063] | 1724 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1725 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1726 |
|
---|
[8063] | 1727 | ac_compiler_gnu=no
|
---|
[3365] | 1728 | fi
|
---|
[10192] | 1729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1730 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
[3365] | 1731 |
|
---|
[8063] | 1732 | fi
|
---|
[10192] | 1733 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[8063] | 1734 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 1735 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 1736 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 1737 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 1738 | CXXFLAGS="-g"
|
---|
[10192] | 1739 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
[8063] | 1740 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 1741 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 1742 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1743 | else
|
---|
[8063] | 1744 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1745 | /* confdefs.h. */
|
---|
| 1746 | _ACEOF
|
---|
| 1747 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1748 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1749 | /* end confdefs.h. */
|
---|
[8063] | 1750 |
|
---|
| 1751 | int
|
---|
| 1752 | main ()
|
---|
| 1753 | {
|
---|
| 1754 |
|
---|
| 1755 | ;
|
---|
| 1756 | return 0;
|
---|
| 1757 | }
|
---|
| 1758 | _ACEOF
|
---|
| 1759 | rm -f conftest.$ac_objext
|
---|
[10192] | 1760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1761 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1762 | ac_status=$?
|
---|
[10192] | 1763 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1764 | rm -f conftest.er1
|
---|
| 1765 | cat conftest.err >&5
|
---|
| 1766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1767 | (exit $ac_status); } &&
|
---|
[10192] | 1768 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1769 | || test ! -s conftest.err'
|
---|
| 1770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1771 | (eval $ac_try) 2>&5
|
---|
| 1772 | ac_status=$?
|
---|
[10192] | 1773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1774 | (exit $ac_status); }; } &&
|
---|
| 1775 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1777 | (eval $ac_try) 2>&5
|
---|
| 1778 | ac_status=$?
|
---|
| 1779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1780 | (exit $ac_status); }; }; then
|
---|
[3365] | 1781 | ac_cv_prog_cxx_g=yes
|
---|
| 1782 | else
|
---|
[8063] | 1783 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1784 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1785 |
|
---|
[8063] | 1786 | ac_cv_prog_cxx_g=no
|
---|
[3365] | 1787 | fi
|
---|
[10192] | 1788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 1789 | fi
|
---|
[10192] | 1790 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
[8063] | 1791 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[3365] | 1792 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8063] | 1793 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[3365] | 1794 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 1795 | if test "$GXX" = yes; then
|
---|
| 1796 | CXXFLAGS="-g -O2"
|
---|
| 1797 | else
|
---|
| 1798 | CXXFLAGS="-g"
|
---|
| 1799 | fi
|
---|
| 1800 | else
|
---|
| 1801 | if test "$GXX" = yes; then
|
---|
| 1802 | CXXFLAGS="-O2"
|
---|
| 1803 | else
|
---|
| 1804 | CXXFLAGS=
|
---|
| 1805 | fi
|
---|
| 1806 | fi
|
---|
[8063] | 1807 | for ac_declaration in \
|
---|
[10192] | 1808 | '' \
|
---|
[8063] | 1809 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 1810 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 1811 | 'extern "C" void exit (int) throw ();' \
|
---|
| 1812 | 'extern "C" void exit (int);' \
|
---|
| 1813 | 'void exit (int);'
|
---|
| 1814 | do
|
---|
| 1815 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1816 | /* confdefs.h. */
|
---|
| 1817 | _ACEOF
|
---|
| 1818 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1819 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1820 | /* end confdefs.h. */
|
---|
| 1821 | $ac_declaration
|
---|
[8063] | 1822 | #include <stdlib.h>
|
---|
| 1823 | int
|
---|
| 1824 | main ()
|
---|
| 1825 | {
|
---|
| 1826 | exit (42);
|
---|
| 1827 | ;
|
---|
| 1828 | return 0;
|
---|
| 1829 | }
|
---|
| 1830 | _ACEOF
|
---|
| 1831 | rm -f conftest.$ac_objext
|
---|
[10192] | 1832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1833 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1834 | ac_status=$?
|
---|
[10192] | 1835 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1836 | rm -f conftest.er1
|
---|
| 1837 | cat conftest.err >&5
|
---|
| 1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1839 | (exit $ac_status); } &&
|
---|
[10192] | 1840 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1841 | || test ! -s conftest.err'
|
---|
| 1842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1843 | (eval $ac_try) 2>&5
|
---|
| 1844 | ac_status=$?
|
---|
[10192] | 1845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1846 | (exit $ac_status); }; } &&
|
---|
| 1847 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1849 | (eval $ac_try) 2>&5
|
---|
| 1850 | ac_status=$?
|
---|
| 1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1852 | (exit $ac_status); }; }; then
|
---|
| 1853 | :
|
---|
| 1854 | else
|
---|
| 1855 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1856 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1857 |
|
---|
[8063] | 1858 | continue
|
---|
| 1859 | fi
|
---|
[10192] | 1860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1861 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1862 | /* confdefs.h. */
|
---|
| 1863 | _ACEOF
|
---|
| 1864 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1865 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1866 | /* end confdefs.h. */
|
---|
[8063] | 1867 | $ac_declaration
|
---|
| 1868 | int
|
---|
| 1869 | main ()
|
---|
| 1870 | {
|
---|
| 1871 | exit (42);
|
---|
| 1872 | ;
|
---|
| 1873 | return 0;
|
---|
| 1874 | }
|
---|
| 1875 | _ACEOF
|
---|
| 1876 | rm -f conftest.$ac_objext
|
---|
[10192] | 1877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1878 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1879 | ac_status=$?
|
---|
[10192] | 1880 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1881 | rm -f conftest.er1
|
---|
| 1882 | cat conftest.err >&5
|
---|
| 1883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1884 | (exit $ac_status); } &&
|
---|
[10192] | 1885 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1886 | || test ! -s conftest.err'
|
---|
| 1887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1888 | (eval $ac_try) 2>&5
|
---|
| 1889 | ac_status=$?
|
---|
[10192] | 1890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1891 | (exit $ac_status); }; } &&
|
---|
| 1892 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1894 | (eval $ac_try) 2>&5
|
---|
| 1895 | ac_status=$?
|
---|
| 1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1897 | (exit $ac_status); }; }; then
|
---|
| 1898 | break
|
---|
| 1899 | else
|
---|
| 1900 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1901 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1902 |
|
---|
[8063] | 1903 | fi
|
---|
[10192] | 1904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1905 | done
|
---|
[10192] | 1906 | rm -f conftest*
|
---|
| 1907 | if test -n "$ac_declaration"; then
|
---|
| 1908 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 1909 | echo $ac_declaration >>confdefs.h
|
---|
| 1910 | echo '#endif' >>confdefs.h
|
---|
| 1911 | fi
|
---|
[3365] | 1912 |
|
---|
[8063] | 1913 | ac_ext=c
|
---|
| 1914 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1918 |
|
---|
[10192] | 1919 | for ac_prog in gawk mawk nawk awk
|
---|
[3365] | 1920 | do
|
---|
[8063] | 1921 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1922 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1923 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1925 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 1926 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1927 | else
|
---|
| 1928 | if test -n "$AWK"; then
|
---|
| 1929 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 1930 | else
|
---|
[10192] | 1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1932 | for as_dir in $PATH
|
---|
| 1933 | do
|
---|
| 1934 | IFS=$as_save_IFS
|
---|
| 1935 | test -z "$as_dir" && as_dir=.
|
---|
| 1936 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1938 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 1939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1940 | break 2
|
---|
| 1941 | fi
|
---|
[8063] | 1942 | done
|
---|
[10192] | 1943 | done
|
---|
[8063] | 1944 |
|
---|
[3365] | 1945 | fi
|
---|
| 1946 | fi
|
---|
[8063] | 1947 | AWK=$ac_cv_prog_AWK
|
---|
[3365] | 1948 | if test -n "$AWK"; then
|
---|
[10192] | 1949 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
[8063] | 1950 | echo "${ECHO_T}$AWK" >&6
|
---|
[3365] | 1951 | else
|
---|
[10192] | 1952 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1953 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1954 | fi
|
---|
| 1955 |
|
---|
[8063] | 1956 | test -n "$AWK" && break
|
---|
[3365] | 1957 | done
|
---|
| 1958 |
|
---|
| 1959 | for ac_prog in 'bison -y' byacc
|
---|
| 1960 | do
|
---|
[8063] | 1961 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1962 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1963 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1965 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 1966 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1967 | else
|
---|
| 1968 | if test -n "$YACC"; then
|
---|
| 1969 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 1970 | else
|
---|
[10192] | 1971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1972 | for as_dir in $PATH
|
---|
| 1973 | do
|
---|
| 1974 | IFS=$as_save_IFS
|
---|
| 1975 | test -z "$as_dir" && as_dir=.
|
---|
| 1976 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1978 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 1979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1980 | break 2
|
---|
| 1981 | fi
|
---|
[8063] | 1982 | done
|
---|
[10192] | 1983 | done
|
---|
[8063] | 1984 |
|
---|
[3365] | 1985 | fi
|
---|
| 1986 | fi
|
---|
[8063] | 1987 | YACC=$ac_cv_prog_YACC
|
---|
[3365] | 1988 | if test -n "$YACC"; then
|
---|
[10192] | 1989 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
[8063] | 1990 | echo "${ECHO_T}$YACC" >&6
|
---|
[3365] | 1991 | else
|
---|
[10192] | 1992 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1993 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1994 | fi
|
---|
| 1995 |
|
---|
[8063] | 1996 | test -n "$YACC" && break
|
---|
[3365] | 1997 | done
|
---|
| 1998 | test -n "$YACC" || YACC="yacc"
|
---|
| 1999 |
|
---|
[8063] | 2000 | ac_ext=c
|
---|
| 2001 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2005 | if test -n "$ac_tool_prefix"; then
|
---|
| 2006 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2007 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[10192] | 2008 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2010 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2011 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2012 | else
|
---|
| 2013 | if test -n "$CC"; then
|
---|
| 2014 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2015 | else
|
---|
[10192] | 2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2017 | for as_dir in $PATH
|
---|
| 2018 | do
|
---|
| 2019 | IFS=$as_save_IFS
|
---|
| 2020 | test -z "$as_dir" && as_dir=.
|
---|
| 2021 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2022 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2023 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 2024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2025 | break 2
|
---|
| 2026 | fi
|
---|
[8063] | 2027 | done
|
---|
[10192] | 2028 | done
|
---|
[8063] | 2029 |
|
---|
| 2030 | fi
|
---|
| 2031 | fi
|
---|
| 2032 | CC=$ac_cv_prog_CC
|
---|
| 2033 | if test -n "$CC"; then
|
---|
[10192] | 2034 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2035 | echo "${ECHO_T}$CC" >&6
|
---|
| 2036 | else
|
---|
[10192] | 2037 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2038 | echo "${ECHO_T}no" >&6
|
---|
| 2039 | fi
|
---|
| 2040 |
|
---|
| 2041 | fi
|
---|
| 2042 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2043 | ac_ct_CC=$CC
|
---|
| 2044 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[3365] | 2045 | set dummy gcc; ac_word=$2
|
---|
[10192] | 2046 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2048 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2049 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2050 | else
|
---|
[8063] | 2051 | if test -n "$ac_ct_CC"; then
|
---|
| 2052 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2053 | else
|
---|
[10192] | 2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2055 | for as_dir in $PATH
|
---|
| 2056 | do
|
---|
| 2057 | IFS=$as_save_IFS
|
---|
| 2058 | test -z "$as_dir" && as_dir=.
|
---|
| 2059 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2061 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 2062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2063 | break 2
|
---|
| 2064 | fi
|
---|
[8063] | 2065 | done
|
---|
[10192] | 2066 | done
|
---|
[8063] | 2067 |
|
---|
| 2068 | fi
|
---|
| 2069 | fi
|
---|
| 2070 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2071 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2072 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2073 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2074 | else
|
---|
[10192] | 2075 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2076 | echo "${ECHO_T}no" >&6
|
---|
| 2077 | fi
|
---|
| 2078 |
|
---|
| 2079 | CC=$ac_ct_CC
|
---|
| 2080 | else
|
---|
| 2081 | CC="$ac_cv_prog_CC"
|
---|
| 2082 | fi
|
---|
| 2083 |
|
---|
| 2084 | if test -z "$CC"; then
|
---|
| 2085 | if test -n "$ac_tool_prefix"; then
|
---|
| 2086 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 2087 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[10192] | 2088 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2090 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2091 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2092 | else
|
---|
[3365] | 2093 | if test -n "$CC"; then
|
---|
| 2094 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2095 | else
|
---|
[10192] | 2096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2097 | for as_dir in $PATH
|
---|
| 2098 | do
|
---|
| 2099 | IFS=$as_save_IFS
|
---|
| 2100 | test -z "$as_dir" && as_dir=.
|
---|
| 2101 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2103 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 2104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2105 | break 2
|
---|
| 2106 | fi
|
---|
[8063] | 2107 | done
|
---|
[10192] | 2108 | done
|
---|
[8063] | 2109 |
|
---|
[3365] | 2110 | fi
|
---|
| 2111 | fi
|
---|
[8063] | 2112 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2113 | if test -n "$CC"; then
|
---|
[10192] | 2114 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2115 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2116 | else
|
---|
[10192] | 2117 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2118 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2119 | fi
|
---|
| 2120 |
|
---|
[8063] | 2121 | fi
|
---|
| 2122 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2123 | ac_ct_CC=$CC
|
---|
| 2124 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2125 | set dummy cc; ac_word=$2
|
---|
[10192] | 2126 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2128 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2129 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2130 | else
|
---|
| 2131 | if test -n "$ac_ct_CC"; then
|
---|
| 2132 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2133 | else
|
---|
[10192] | 2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2135 | for as_dir in $PATH
|
---|
| 2136 | do
|
---|
| 2137 | IFS=$as_save_IFS
|
---|
| 2138 | test -z "$as_dir" && as_dir=.
|
---|
| 2139 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2141 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 2142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2143 | break 2
|
---|
| 2144 | fi
|
---|
[8063] | 2145 | done
|
---|
[10192] | 2146 | done
|
---|
[8063] | 2147 |
|
---|
| 2148 | fi
|
---|
| 2149 | fi
|
---|
| 2150 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2151 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2152 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2153 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2154 | else
|
---|
[10192] | 2155 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2156 | echo "${ECHO_T}no" >&6
|
---|
| 2157 | fi
|
---|
| 2158 |
|
---|
| 2159 | CC=$ac_ct_CC
|
---|
| 2160 | else
|
---|
| 2161 | CC="$ac_cv_prog_CC"
|
---|
| 2162 | fi
|
---|
| 2163 |
|
---|
| 2164 | fi
|
---|
[3365] | 2165 | if test -z "$CC"; then
|
---|
| 2166 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2167 | set dummy cc; ac_word=$2
|
---|
[10192] | 2168 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2170 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2172 | else
|
---|
| 2173 | if test -n "$CC"; then
|
---|
| 2174 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2175 | else
|
---|
| 2176 | ac_prog_rejected=no
|
---|
[10192] | 2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2178 | for as_dir in $PATH
|
---|
| 2179 | do
|
---|
| 2180 | IFS=$as_save_IFS
|
---|
| 2181 | test -z "$as_dir" && as_dir=.
|
---|
| 2182 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2184 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2185 | ac_prog_rejected=yes
|
---|
| 2186 | continue
|
---|
| 2187 | fi
|
---|
| 2188 | ac_cv_prog_CC="cc"
|
---|
| 2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2190 | break 2
|
---|
| 2191 | fi
|
---|
[8063] | 2192 | done
|
---|
[10192] | 2193 | done
|
---|
[8063] | 2194 |
|
---|
[3365] | 2195 | if test $ac_prog_rejected = yes; then
|
---|
| 2196 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2197 | set dummy $ac_cv_prog_CC
|
---|
| 2198 | shift
|
---|
[8063] | 2199 | if test $# != 0; then
|
---|
[3365] | 2200 | # We chose a different compiler from the bogus one.
|
---|
| 2201 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2202 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2203 | shift
|
---|
[10192] | 2204 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3365] | 2205 | fi
|
---|
| 2206 | fi
|
---|
| 2207 | fi
|
---|
| 2208 | fi
|
---|
[8063] | 2209 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2210 | if test -n "$CC"; then
|
---|
[10192] | 2211 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2212 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2213 | else
|
---|
[10192] | 2214 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2215 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2216 | fi
|
---|
| 2217 |
|
---|
[8063] | 2218 | fi
|
---|
| 2219 | if test -z "$CC"; then
|
---|
| 2220 | if test -n "$ac_tool_prefix"; then
|
---|
| 2221 | for ac_prog in cl
|
---|
| 2222 | do
|
---|
| 2223 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2224 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 2225 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2227 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2228 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2229 | else
|
---|
| 2230 | if test -n "$CC"; then
|
---|
| 2231 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2232 | else
|
---|
[10192] | 2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2234 | for as_dir in $PATH
|
---|
| 2235 | do
|
---|
| 2236 | IFS=$as_save_IFS
|
---|
| 2237 | test -z "$as_dir" && as_dir=.
|
---|
| 2238 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2240 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 2241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2242 | break 2
|
---|
| 2243 | fi
|
---|
[8063] | 2244 | done
|
---|
[10192] | 2245 | done
|
---|
[8063] | 2246 |
|
---|
[3365] | 2247 | fi
|
---|
| 2248 | fi
|
---|
[8063] | 2249 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2250 | if test -n "$CC"; then
|
---|
[10192] | 2251 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2252 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2253 | else
|
---|
[10192] | 2254 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2255 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2256 | fi
|
---|
[8063] | 2257 |
|
---|
| 2258 | test -n "$CC" && break
|
---|
| 2259 | done
|
---|
[3365] | 2260 | fi
|
---|
[8063] | 2261 | if test -z "$CC"; then
|
---|
| 2262 | ac_ct_CC=$CC
|
---|
| 2263 | for ac_prog in cl
|
---|
| 2264 | do
|
---|
| 2265 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2266 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 2267 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2269 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2270 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2271 | else
|
---|
| 2272 | if test -n "$ac_ct_CC"; then
|
---|
| 2273 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2274 | else
|
---|
[10192] | 2275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2276 | for as_dir in $PATH
|
---|
| 2277 | do
|
---|
| 2278 | IFS=$as_save_IFS
|
---|
| 2279 | test -z "$as_dir" && as_dir=.
|
---|
| 2280 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2282 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 2283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2284 | break 2
|
---|
| 2285 | fi
|
---|
[8063] | 2286 | done
|
---|
[10192] | 2287 | done
|
---|
[3365] | 2288 |
|
---|
[8063] | 2289 | fi
|
---|
| 2290 | fi
|
---|
| 2291 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2292 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2293 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2294 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2295 | else
|
---|
[10192] | 2296 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2297 | echo "${ECHO_T}no" >&6
|
---|
| 2298 | fi
|
---|
[3365] | 2299 |
|
---|
[8063] | 2300 | test -n "$ac_ct_CC" && break
|
---|
| 2301 | done
|
---|
[3365] | 2302 |
|
---|
[8063] | 2303 | CC=$ac_ct_CC
|
---|
[3365] | 2304 | fi
|
---|
| 2305 |
|
---|
| 2306 | fi
|
---|
| 2307 |
|
---|
[10192] | 2308 |
|
---|
| 2309 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 2310 | See \`config.log' for more details." >&5
|
---|
| 2311 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 2312 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 2313 | { (exit 1); exit 1; }; }
|
---|
| 2314 |
|
---|
[10192] | 2315 | # Provide some information about the compiler.
|
---|
| 2316 | echo "$as_me:$LINENO:" \
|
---|
| 2317 | "checking for C compiler version" >&5
|
---|
| 2318 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2319 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2320 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2321 | ac_status=$?
|
---|
| 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2323 | (exit $ac_status); }
|
---|
| 2324 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2325 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2326 | ac_status=$?
|
---|
| 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2328 | (exit $ac_status); }
|
---|
| 2329 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2330 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2331 | ac_status=$?
|
---|
| 2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2333 | (exit $ac_status); }
|
---|
| 2334 |
|
---|
| 2335 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
[8063] | 2336 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2337 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2338 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2339 | else
|
---|
[8063] | 2340 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2341 | /* confdefs.h. */
|
---|
| 2342 | _ACEOF
|
---|
| 2343 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2344 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2345 | /* end confdefs.h. */
|
---|
[8063] | 2346 |
|
---|
| 2347 | int
|
---|
| 2348 | main ()
|
---|
| 2349 | {
|
---|
| 2350 | #ifndef __GNUC__
|
---|
| 2351 | choke me
|
---|
[3365] | 2352 | #endif
|
---|
[8063] | 2353 |
|
---|
| 2354 | ;
|
---|
| 2355 | return 0;
|
---|
| 2356 | }
|
---|
| 2357 | _ACEOF
|
---|
| 2358 | rm -f conftest.$ac_objext
|
---|
[10192] | 2359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2360 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2361 | ac_status=$?
|
---|
[10192] | 2362 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2363 | rm -f conftest.er1
|
---|
| 2364 | cat conftest.err >&5
|
---|
| 2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2366 | (exit $ac_status); } &&
|
---|
[10192] | 2367 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2368 | || test ! -s conftest.err'
|
---|
| 2369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2370 | (eval $ac_try) 2>&5
|
---|
| 2371 | ac_status=$?
|
---|
[10192] | 2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2373 | (exit $ac_status); }; } &&
|
---|
| 2374 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2376 | (eval $ac_try) 2>&5
|
---|
| 2377 | ac_status=$?
|
---|
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2379 | (exit $ac_status); }; }; then
|
---|
| 2380 | ac_compiler_gnu=yes
|
---|
[8059] | 2381 | else
|
---|
[8063] | 2382 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2383 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2384 |
|
---|
[8063] | 2385 | ac_compiler_gnu=no
|
---|
[8059] | 2386 | fi
|
---|
[10192] | 2387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2388 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2389 |
|
---|
[8059] | 2390 | fi
|
---|
[10192] | 2391 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[8063] | 2392 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2393 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2394 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2395 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2396 | CFLAGS="-g"
|
---|
[10192] | 2397 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
[8063] | 2398 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2399 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2400 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2401 | else
|
---|
| 2402 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2403 | /* confdefs.h. */
|
---|
| 2404 | _ACEOF
|
---|
| 2405 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2406 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2407 | /* end confdefs.h. */
|
---|
[3365] | 2408 |
|
---|
[8063] | 2409 | int
|
---|
| 2410 | main ()
|
---|
| 2411 | {
|
---|
[8059] | 2412 |
|
---|
[8063] | 2413 | ;
|
---|
| 2414 | return 0;
|
---|
| 2415 | }
|
---|
| 2416 | _ACEOF
|
---|
| 2417 | rm -f conftest.$ac_objext
|
---|
[10192] | 2418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2419 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2420 | ac_status=$?
|
---|
[10192] | 2421 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2422 | rm -f conftest.er1
|
---|
| 2423 | cat conftest.err >&5
|
---|
| 2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2425 | (exit $ac_status); } &&
|
---|
[10192] | 2426 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2427 | || test ! -s conftest.err'
|
---|
| 2428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2429 | (eval $ac_try) 2>&5
|
---|
| 2430 | ac_status=$?
|
---|
[10192] | 2431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2432 | (exit $ac_status); }; } &&
|
---|
| 2433 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2435 | (eval $ac_try) 2>&5
|
---|
| 2436 | ac_status=$?
|
---|
| 2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2438 | (exit $ac_status); }; }; then
|
---|
[3365] | 2439 | ac_cv_prog_cc_g=yes
|
---|
| 2440 | else
|
---|
[8063] | 2441 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2442 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2443 |
|
---|
[8063] | 2444 | ac_cv_prog_cc_g=no
|
---|
[3365] | 2445 | fi
|
---|
[10192] | 2446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 2447 | fi
|
---|
[10192] | 2448 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
[8063] | 2449 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[3365] | 2450 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8063] | 2451 | CFLAGS=$ac_save_CFLAGS
|
---|
[3365] | 2452 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2453 | if test "$GCC" = yes; then
|
---|
| 2454 | CFLAGS="-g -O2"
|
---|
| 2455 | else
|
---|
| 2456 | CFLAGS="-g"
|
---|
| 2457 | fi
|
---|
| 2458 | else
|
---|
| 2459 | if test "$GCC" = yes; then
|
---|
| 2460 | CFLAGS="-O2"
|
---|
| 2461 | else
|
---|
| 2462 | CFLAGS=
|
---|
| 2463 | fi
|
---|
| 2464 | fi
|
---|
[10192] | 2465 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2466 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2467 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2468 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2469 | else
|
---|
| 2470 | ac_cv_prog_cc_stdc=no
|
---|
| 2471 | ac_save_CC=$CC
|
---|
| 2472 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2473 | /* confdefs.h. */
|
---|
| 2474 | _ACEOF
|
---|
| 2475 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2476 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2477 | /* end confdefs.h. */
|
---|
| 2478 | #include <stdarg.h>
|
---|
| 2479 | #include <stdio.h>
|
---|
| 2480 | #include <sys/types.h>
|
---|
| 2481 | #include <sys/stat.h>
|
---|
| 2482 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2483 | struct buf { int x; };
|
---|
| 2484 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2485 | static char *e (p, i)
|
---|
| 2486 | char **p;
|
---|
| 2487 | int i;
|
---|
| 2488 | {
|
---|
| 2489 | return p[i];
|
---|
| 2490 | }
|
---|
| 2491 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2492 | {
|
---|
| 2493 | char *s;
|
---|
| 2494 | va_list v;
|
---|
| 2495 | va_start (v,p);
|
---|
| 2496 | s = g (p, va_arg (v,int));
|
---|
| 2497 | va_end (v);
|
---|
| 2498 | return s;
|
---|
| 2499 | }
|
---|
| 2500 |
|
---|
| 2501 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2502 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2503 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2504 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2505 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2506 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2507 | that's true only with -std1. */
|
---|
| 2508 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2509 |
|
---|
| 2510 | int test (int i, double x);
|
---|
| 2511 | struct s1 {int (*f) (int a);};
|
---|
| 2512 | struct s2 {int (*f) (double a);};
|
---|
| 2513 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2514 | int argc;
|
---|
| 2515 | char **argv;
|
---|
| 2516 | int
|
---|
| 2517 | main ()
|
---|
| 2518 | {
|
---|
| 2519 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2520 | ;
|
---|
| 2521 | return 0;
|
---|
| 2522 | }
|
---|
| 2523 | _ACEOF
|
---|
| 2524 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2525 | # breaks some systems' header files.
|
---|
| 2526 | # AIX -qlanglvl=ansi
|
---|
| 2527 | # Ultrix and OSF/1 -std1
|
---|
| 2528 | # HP-UX 10.20 and later -Ae
|
---|
| 2529 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2530 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2531 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 2532 | do
|
---|
| 2533 | CC="$ac_save_CC $ac_arg"
|
---|
| 2534 | rm -f conftest.$ac_objext
|
---|
| 2535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2536 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2537 | ac_status=$?
|
---|
| 2538 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2539 | rm -f conftest.er1
|
---|
| 2540 | cat conftest.err >&5
|
---|
| 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2542 | (exit $ac_status); } &&
|
---|
| 2543 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2544 | || test ! -s conftest.err'
|
---|
| 2545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2546 | (eval $ac_try) 2>&5
|
---|
| 2547 | ac_status=$?
|
---|
| 2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2549 | (exit $ac_status); }; } &&
|
---|
| 2550 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2552 | (eval $ac_try) 2>&5
|
---|
| 2553 | ac_status=$?
|
---|
| 2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2555 | (exit $ac_status); }; }; then
|
---|
| 2556 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2557 | break
|
---|
| 2558 | else
|
---|
| 2559 | echo "$as_me: failed program was:" >&5
|
---|
| 2560 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2561 |
|
---|
| 2562 | fi
|
---|
| 2563 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2564 | done
|
---|
| 2565 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2566 | CC=$ac_save_CC
|
---|
| 2567 |
|
---|
| 2568 | fi
|
---|
| 2569 |
|
---|
| 2570 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2571 | x|xno)
|
---|
| 2572 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2573 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2574 | *)
|
---|
| 2575 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2576 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2577 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2578 | esac
|
---|
| 2579 |
|
---|
[8063] | 2580 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2581 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2582 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2583 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2584 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2585 | #ifndef __cplusplus
|
---|
| 2586 | choke me
|
---|
| 2587 | #endif
|
---|
| 2588 | _ACEOF
|
---|
| 2589 | rm -f conftest.$ac_objext
|
---|
[10192] | 2590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2591 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2592 | ac_status=$?
|
---|
[10192] | 2593 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2594 | rm -f conftest.er1
|
---|
| 2595 | cat conftest.err >&5
|
---|
| 2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2597 | (exit $ac_status); } &&
|
---|
[10192] | 2598 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2599 | || test ! -s conftest.err'
|
---|
| 2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2601 | (eval $ac_try) 2>&5
|
---|
| 2602 | ac_status=$?
|
---|
[10192] | 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2604 | (exit $ac_status); }; } &&
|
---|
| 2605 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2607 | (eval $ac_try) 2>&5
|
---|
| 2608 | ac_status=$?
|
---|
| 2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2610 | (exit $ac_status); }; }; then
|
---|
| 2611 | for ac_declaration in \
|
---|
[10192] | 2612 | '' \
|
---|
[8063] | 2613 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2614 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2615 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2616 | 'extern "C" void exit (int);' \
|
---|
| 2617 | 'void exit (int);'
|
---|
| 2618 | do
|
---|
| 2619 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2620 | /* confdefs.h. */
|
---|
| 2621 | _ACEOF
|
---|
| 2622 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2623 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2624 | /* end confdefs.h. */
|
---|
| 2625 | $ac_declaration
|
---|
[8063] | 2626 | #include <stdlib.h>
|
---|
| 2627 | int
|
---|
| 2628 | main ()
|
---|
| 2629 | {
|
---|
| 2630 | exit (42);
|
---|
| 2631 | ;
|
---|
| 2632 | return 0;
|
---|
| 2633 | }
|
---|
| 2634 | _ACEOF
|
---|
| 2635 | rm -f conftest.$ac_objext
|
---|
[10192] | 2636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2637 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2638 | ac_status=$?
|
---|
[10192] | 2639 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2640 | rm -f conftest.er1
|
---|
| 2641 | cat conftest.err >&5
|
---|
| 2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2643 | (exit $ac_status); } &&
|
---|
[10192] | 2644 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2645 | || test ! -s conftest.err'
|
---|
| 2646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2647 | (eval $ac_try) 2>&5
|
---|
| 2648 | ac_status=$?
|
---|
[10192] | 2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2650 | (exit $ac_status); }; } &&
|
---|
| 2651 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2653 | (eval $ac_try) 2>&5
|
---|
| 2654 | ac_status=$?
|
---|
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2656 | (exit $ac_status); }; }; then
|
---|
| 2657 | :
|
---|
| 2658 | else
|
---|
| 2659 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2660 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2661 |
|
---|
[8063] | 2662 | continue
|
---|
| 2663 | fi
|
---|
[10192] | 2664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2665 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2666 | /* confdefs.h. */
|
---|
| 2667 | _ACEOF
|
---|
| 2668 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2669 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2670 | /* end confdefs.h. */
|
---|
[8063] | 2671 | $ac_declaration
|
---|
| 2672 | int
|
---|
| 2673 | main ()
|
---|
| 2674 | {
|
---|
| 2675 | exit (42);
|
---|
| 2676 | ;
|
---|
| 2677 | return 0;
|
---|
| 2678 | }
|
---|
| 2679 | _ACEOF
|
---|
| 2680 | rm -f conftest.$ac_objext
|
---|
[10192] | 2681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2682 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2683 | ac_status=$?
|
---|
[10192] | 2684 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2685 | rm -f conftest.er1
|
---|
| 2686 | cat conftest.err >&5
|
---|
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2688 | (exit $ac_status); } &&
|
---|
[10192] | 2689 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2690 | || test ! -s conftest.err'
|
---|
| 2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2692 | (eval $ac_try) 2>&5
|
---|
| 2693 | ac_status=$?
|
---|
[10192] | 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2695 | (exit $ac_status); }; } &&
|
---|
| 2696 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2698 | (eval $ac_try) 2>&5
|
---|
| 2699 | ac_status=$?
|
---|
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2701 | (exit $ac_status); }; }; then
|
---|
| 2702 | break
|
---|
| 2703 | else
|
---|
| 2704 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2705 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2706 |
|
---|
[8063] | 2707 | fi
|
---|
[10192] | 2708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2709 | done
|
---|
[10192] | 2710 | rm -f conftest*
|
---|
| 2711 | if test -n "$ac_declaration"; then
|
---|
| 2712 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2713 | echo $ac_declaration >>confdefs.h
|
---|
| 2714 | echo '#endif' >>confdefs.h
|
---|
| 2715 | fi
|
---|
[3365] | 2716 |
|
---|
[8063] | 2717 | else
|
---|
| 2718 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2719 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2720 |
|
---|
[8063] | 2721 | fi
|
---|
[10192] | 2722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2723 | ac_ext=c
|
---|
| 2724 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2728 |
|
---|
[3365] | 2729 | ac_aux_dir=
|
---|
| 2730 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2731 | if test -f $ac_dir/install-sh; then
|
---|
| 2732 | ac_aux_dir=$ac_dir
|
---|
| 2733 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2734 | break
|
---|
| 2735 | elif test -f $ac_dir/install.sh; then
|
---|
| 2736 | ac_aux_dir=$ac_dir
|
---|
| 2737 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2738 | break
|
---|
[8063] | 2739 | elif test -f $ac_dir/shtool; then
|
---|
| 2740 | ac_aux_dir=$ac_dir
|
---|
| 2741 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2742 | break
|
---|
[3365] | 2743 | fi
|
---|
| 2744 | done
|
---|
| 2745 | if test -z "$ac_aux_dir"; then
|
---|
[10192] | 2746 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
[8063] | 2747 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2748 | { (exit 1); exit 1; }; }
|
---|
[3365] | 2749 | fi
|
---|
[8063] | 2750 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2751 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2752 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[3365] | 2753 |
|
---|
| 2754 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2755 | # so one script is as good as another. But avoid the broken or
|
---|
| 2756 | # incompatible versions:
|
---|
| 2757 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2758 | # SunOS /usr/etc/install
|
---|
| 2759 | # IRIX /sbin/install
|
---|
| 2760 | # AIX /bin/install
|
---|
[8063] | 2761 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[3365] | 2762 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2763 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2764 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10192] | 2765 | # OS/2's system install, which has a completely different semantic
|
---|
[3365] | 2766 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[10192] | 2767 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2768 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[3365] | 2769 | if test -z "$INSTALL"; then
|
---|
[8063] | 2770 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2771 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2772 | else
|
---|
[10192] | 2773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2774 | for as_dir in $PATH
|
---|
| 2775 | do
|
---|
| 2776 | IFS=$as_save_IFS
|
---|
| 2777 | test -z "$as_dir" && as_dir=.
|
---|
| 2778 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2779 | case $as_dir/ in
|
---|
| 2780 | ./ | .// | /cC/* | \
|
---|
| 2781 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2782 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2783 | /usr/ucb/* ) ;;
|
---|
| 2784 | *)
|
---|
| 2785 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2786 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2787 | # by default.
|
---|
| 2788 | for ac_prog in ginstall scoinst install; do
|
---|
| 2789 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2790 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[3365] | 2791 | if test $ac_prog = install &&
|
---|
[10192] | 2792 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3365] | 2793 | # AIX install. It has an incompatible calling convention.
|
---|
| 2794 | :
|
---|
[8063] | 2795 | elif test $ac_prog = install &&
|
---|
[10192] | 2796 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[8063] | 2797 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2798 | :
|
---|
[3365] | 2799 | else
|
---|
[10192] | 2800 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2801 | break 3
|
---|
[3365] | 2802 | fi
|
---|
| 2803 | fi
|
---|
| 2804 | done
|
---|
[10192] | 2805 | done
|
---|
| 2806 | ;;
|
---|
| 2807 | esac
|
---|
| 2808 | done
|
---|
[3365] | 2809 |
|
---|
[10192] | 2810 |
|
---|
[3365] | 2811 | fi
|
---|
| 2812 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8063] | 2813 | INSTALL=$ac_cv_path_install
|
---|
[3365] | 2814 | else
|
---|
| 2815 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2816 | # path for INSTALL within a source directory, because that will
|
---|
| 2817 | # break other packages using the cache if that directory is
|
---|
| 2818 | # removed, or if the path is relative.
|
---|
[8063] | 2819 | INSTALL=$ac_install_sh
|
---|
[3365] | 2820 | fi
|
---|
| 2821 | fi
|
---|
[10192] | 2822 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
[8063] | 2823 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[3365] | 2824 |
|
---|
| 2825 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2826 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2827 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2828 |
|
---|
[8063] | 2829 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[3365] | 2830 |
|
---|
| 2831 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2832 |
|
---|
[10192] | 2833 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
[8063] | 2834 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2835 | LN_S=$as_ln_s
|
---|
| 2836 | if test "$LN_S" = "ln -s"; then
|
---|
[10192] | 2837 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2838 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2839 | else
|
---|
[10192] | 2840 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
[8063] | 2841 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[3365] | 2842 | fi
|
---|
| 2843 |
|
---|
[10192] | 2844 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2845 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2846 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
[8063] | 2847 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2848 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2849 | else
|
---|
[10192] | 2850 | cat >conftest.make <<\_ACEOF
|
---|
[3365] | 2851 | all:
|
---|
[10192] | 2852 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2853 | _ACEOF
|
---|
[3365] | 2854 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8063] | 2855 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[3365] | 2856 | if test -n "$ac_maketemp"; then
|
---|
| 2857 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2858 | else
|
---|
| 2859 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2860 | fi
|
---|
[8063] | 2861 | rm -f conftest.make
|
---|
[3365] | 2862 | fi
|
---|
| 2863 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[10192] | 2864 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2865 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2866 | SET_MAKE=
|
---|
| 2867 | else
|
---|
[10192] | 2868 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2869 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2870 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2871 | fi
|
---|
| 2872 |
|
---|
[8063] | 2873 | if test -n "$ac_tool_prefix"; then
|
---|
| 2874 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 2875 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[10192] | 2876 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2878 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 2879 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2880 | else
|
---|
| 2881 | if test -n "$RANLIB"; then
|
---|
| 2882 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 2883 | else
|
---|
[10192] | 2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2885 | for as_dir in $PATH
|
---|
| 2886 | do
|
---|
| 2887 | IFS=$as_save_IFS
|
---|
| 2888 | test -z "$as_dir" && as_dir=.
|
---|
| 2889 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2891 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2893 | break 2
|
---|
| 2894 | fi
|
---|
[8063] | 2895 | done
|
---|
[10192] | 2896 | done
|
---|
[8063] | 2897 |
|
---|
[3365] | 2898 | fi
|
---|
| 2899 | fi
|
---|
[8063] | 2900 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[3365] | 2901 | if test -n "$RANLIB"; then
|
---|
[10192] | 2902 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
[8063] | 2903 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[3365] | 2904 | else
|
---|
[10192] | 2905 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2906 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2907 | fi
|
---|
| 2908 |
|
---|
[8063] | 2909 | fi
|
---|
| 2910 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 2911 | ac_ct_RANLIB=$RANLIB
|
---|
| 2912 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 2913 | set dummy ranlib; ac_word=$2
|
---|
[10192] | 2914 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2916 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 2917 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2918 | else
|
---|
| 2919 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 2920 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 2921 | else
|
---|
[10192] | 2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2923 | for as_dir in $PATH
|
---|
| 2924 | do
|
---|
| 2925 | IFS=$as_save_IFS
|
---|
| 2926 | test -z "$as_dir" && as_dir=.
|
---|
| 2927 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2929 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 2930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2931 | break 2
|
---|
| 2932 | fi
|
---|
[8063] | 2933 | done
|
---|
[10192] | 2934 | done
|
---|
[3365] | 2935 |
|
---|
[8063] | 2936 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 2937 | fi
|
---|
| 2938 | fi
|
---|
| 2939 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 2940 | if test -n "$ac_ct_RANLIB"; then
|
---|
[10192] | 2941 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
[8063] | 2942 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 2943 | else
|
---|
[10192] | 2944 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2945 | echo "${ECHO_T}no" >&6
|
---|
| 2946 | fi
|
---|
| 2947 |
|
---|
| 2948 | RANLIB=$ac_ct_RANLIB
|
---|
| 2949 | else
|
---|
| 2950 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 2951 | fi
|
---|
| 2952 |
|
---|
[10192] | 2953 |
|
---|
| 2954 |
|
---|
[8063] | 2955 | ac_ext=c
|
---|
| 2956 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[10192] | 2960 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
[8063] | 2961 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[3365] | 2962 | # On Suns, sometimes $CPP names a directory.
|
---|
| 2963 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 2964 | CPP=
|
---|
| 2965 | fi
|
---|
| 2966 | if test -z "$CPP"; then
|
---|
[8063] | 2967 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 2968 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2969 | else
|
---|
[8063] | 2970 | # Double quotes because CPP needs to be expanded
|
---|
| 2971 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 2972 | do
|
---|
| 2973 | ac_preproc_ok=false
|
---|
| 2974 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 2975 | do
|
---|
| 2976 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 2977 | # with a fresh cross-compiler works.
|
---|
[10192] | 2978 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 2979 | # <limits.h> exists even on freestanding compilers.
|
---|
[3365] | 2980 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8063] | 2981 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 2982 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2983 | /* confdefs.h. */
|
---|
[8063] | 2984 | _ACEOF
|
---|
[10192] | 2985 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2986 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2987 | /* end confdefs.h. */
|
---|
| 2988 | #ifdef __STDC__
|
---|
| 2989 | # include <limits.h>
|
---|
| 2990 | #else
|
---|
| 2991 | # include <assert.h>
|
---|
| 2992 | #endif
|
---|
| 2993 | Syntax error
|
---|
| 2994 | _ACEOF
|
---|
| 2995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 2996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 2997 | ac_status=$?
|
---|
[10192] | 2998 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 2999 | rm -f conftest.er1
|
---|
| 3000 | cat conftest.err >&5
|
---|
[10192] | 3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3002 | (exit $ac_status); } >/dev/null; then
|
---|
| 3003 | if test -s conftest.err; then
|
---|
| 3004 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3006 | else
|
---|
| 3007 | ac_cpp_err=
|
---|
| 3008 | fi
|
---|
| 3009 | else
|
---|
| 3010 | ac_cpp_err=yes
|
---|
| 3011 | fi
|
---|
| 3012 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 3013 | :
|
---|
| 3014 | else
|
---|
[8063] | 3015 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3016 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3017 |
|
---|
[8063] | 3018 | # Broken: fails on valid input.
|
---|
| 3019 | continue
|
---|
| 3020 | fi
|
---|
| 3021 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3022 |
|
---|
| 3023 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3024 | # can be detected and how.
|
---|
| 3025 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3026 | /* confdefs.h. */
|
---|
| 3027 | _ACEOF
|
---|
| 3028 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3029 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3030 | /* end confdefs.h. */
|
---|
[8063] | 3031 | #include <ac_nonexistent.h>
|
---|
| 3032 | _ACEOF
|
---|
[10192] | 3033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3035 | ac_status=$?
|
---|
[10192] | 3036 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3037 | rm -f conftest.er1
|
---|
| 3038 | cat conftest.err >&5
|
---|
[10192] | 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3040 | (exit $ac_status); } >/dev/null; then
|
---|
| 3041 | if test -s conftest.err; then
|
---|
| 3042 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3044 | else
|
---|
| 3045 | ac_cpp_err=
|
---|
| 3046 | fi
|
---|
[3365] | 3047 | else
|
---|
[8063] | 3048 | ac_cpp_err=yes
|
---|
| 3049 | fi
|
---|
| 3050 | if test -z "$ac_cpp_err"; then
|
---|
| 3051 | # Broken: success on invalid input.
|
---|
| 3052 | continue
|
---|
| 3053 | else
|
---|
| 3054 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3055 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3056 |
|
---|
[8063] | 3057 | # Passes both tests.
|
---|
| 3058 | ac_preproc_ok=:
|
---|
| 3059 | break
|
---|
| 3060 | fi
|
---|
| 3061 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3062 |
|
---|
| 3063 | done
|
---|
| 3064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3065 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3066 | if $ac_preproc_ok; then
|
---|
[10192] | 3067 | break
|
---|
[8063] | 3068 | fi
|
---|
| 3069 |
|
---|
| 3070 | done
|
---|
| 3071 | ac_cv_prog_CPP=$CPP
|
---|
| 3072 |
|
---|
| 3073 | fi
|
---|
| 3074 | CPP=$ac_cv_prog_CPP
|
---|
| 3075 | else
|
---|
| 3076 | ac_cv_prog_CPP=$CPP
|
---|
| 3077 | fi
|
---|
[10192] | 3078 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
[8063] | 3079 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3080 | ac_preproc_ok=false
|
---|
| 3081 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3082 | do
|
---|
| 3083 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3084 | # with a fresh cross-compiler works.
|
---|
[10192] | 3085 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3086 | # <limits.h> exists even on freestanding compilers.
|
---|
[8063] | 3087 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3088 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3089 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3090 | /* confdefs.h. */
|
---|
[8063] | 3091 | _ACEOF
|
---|
[10192] | 3092 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3093 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3094 | /* end confdefs.h. */
|
---|
| 3095 | #ifdef __STDC__
|
---|
| 3096 | # include <limits.h>
|
---|
| 3097 | #else
|
---|
| 3098 | # include <assert.h>
|
---|
| 3099 | #endif
|
---|
| 3100 | Syntax error
|
---|
| 3101 | _ACEOF
|
---|
| 3102 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3103 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3104 | ac_status=$?
|
---|
[10192] | 3105 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3106 | rm -f conftest.er1
|
---|
| 3107 | cat conftest.err >&5
|
---|
[10192] | 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3109 | (exit $ac_status); } >/dev/null; then
|
---|
| 3110 | if test -s conftest.err; then
|
---|
| 3111 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3112 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3113 | else
|
---|
| 3114 | ac_cpp_err=
|
---|
| 3115 | fi
|
---|
| 3116 | else
|
---|
| 3117 | ac_cpp_err=yes
|
---|
| 3118 | fi
|
---|
| 3119 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 3120 | :
|
---|
| 3121 | else
|
---|
[8063] | 3122 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3123 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3124 |
|
---|
[8063] | 3125 | # Broken: fails on valid input.
|
---|
| 3126 | continue
|
---|
[3365] | 3127 | fi
|
---|
[8063] | 3128 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3129 |
|
---|
| 3130 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3131 | # can be detected and how.
|
---|
| 3132 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3133 | /* confdefs.h. */
|
---|
| 3134 | _ACEOF
|
---|
| 3135 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3136 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3137 | /* end confdefs.h. */
|
---|
[8063] | 3138 | #include <ac_nonexistent.h>
|
---|
| 3139 | _ACEOF
|
---|
[10192] | 3140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3142 | ac_status=$?
|
---|
[10192] | 3143 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3144 | rm -f conftest.er1
|
---|
| 3145 | cat conftest.err >&5
|
---|
[10192] | 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3147 | (exit $ac_status); } >/dev/null; then
|
---|
| 3148 | if test -s conftest.err; then
|
---|
| 3149 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3151 | else
|
---|
| 3152 | ac_cpp_err=
|
---|
| 3153 | fi
|
---|
| 3154 | else
|
---|
| 3155 | ac_cpp_err=yes
|
---|
[3365] | 3156 | fi
|
---|
[8063] | 3157 | if test -z "$ac_cpp_err"; then
|
---|
| 3158 | # Broken: success on invalid input.
|
---|
| 3159 | continue
|
---|
| 3160 | else
|
---|
| 3161 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3162 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3163 |
|
---|
[8063] | 3164 | # Passes both tests.
|
---|
| 3165 | ac_preproc_ok=:
|
---|
| 3166 | break
|
---|
[3365] | 3167 | fi
|
---|
[8063] | 3168 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3169 |
|
---|
| 3170 | done
|
---|
| 3171 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3172 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3173 | if $ac_preproc_ok; then
|
---|
| 3174 | :
|
---|
[3365] | 3175 | else
|
---|
[10192] | 3176 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3177 | See \`config.log' for more details." >&5
|
---|
| 3178 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3179 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 3180 | { (exit 1); exit 1; }; }
|
---|
[3365] | 3181 | fi
|
---|
| 3182 |
|
---|
[8063] | 3183 | ac_ext=c
|
---|
| 3184 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3188 |
|
---|
[10192] | 3189 |
|
---|
| 3190 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3191 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3192 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3193 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3194 | else
|
---|
| 3195 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3196 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3197 | else ac_cv_prog_egrep='egrep'
|
---|
| 3198 | fi
|
---|
| 3199 | fi
|
---|
| 3200 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3201 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3202 | EGREP=$ac_cv_prog_egrep
|
---|
| 3203 |
|
---|
| 3204 |
|
---|
| 3205 |
|
---|
| 3206 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
[8063] | 3207 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3208 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3209 | /* confdefs.h. */
|
---|
| 3210 | _ACEOF
|
---|
| 3211 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3212 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3213 | /* end confdefs.h. */
|
---|
[3365] | 3214 | #ifdef _AIX
|
---|
| 3215 | yes
|
---|
| 3216 | #endif
|
---|
| 3217 |
|
---|
[8063] | 3218 | _ACEOF
|
---|
[3365] | 3219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 3220 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3221 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3222 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3223 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3224 | #define _ALL_SOURCE 1
|
---|
[10192] | 3225 | _ACEOF
|
---|
[3365] | 3226 |
|
---|
| 3227 | else
|
---|
[10192] | 3228 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3229 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3230 | fi
|
---|
| 3231 | rm -f conftest*
|
---|
| 3232 |
|
---|
[8063] | 3233 |
|
---|
[10192] | 3234 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3235 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3236 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3238 | else
|
---|
| 3239 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3240 | ac_cv_search_strerror=no
|
---|
| 3241 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3242 | /* confdefs.h. */
|
---|
| 3243 | _ACEOF
|
---|
| 3244 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3245 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3246 | /* end confdefs.h. */
|
---|
[3365] | 3247 |
|
---|
[10192] | 3248 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3249 | #ifdef __cplusplus
|
---|
| 3250 | extern "C"
|
---|
| 3251 | #endif
|
---|
| 3252 | /* We use char because int might match the return type of a gcc2
|
---|
| 3253 | builtin and then its argument prototype would still apply. */
|
---|
| 3254 | char strerror ();
|
---|
| 3255 | int
|
---|
| 3256 | main ()
|
---|
| 3257 | {
|
---|
| 3258 | strerror ();
|
---|
| 3259 | ;
|
---|
| 3260 | return 0;
|
---|
| 3261 | }
|
---|
| 3262 | _ACEOF
|
---|
| 3263 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3265 | (eval $ac_link) 2>conftest.er1
|
---|
| 3266 | ac_status=$?
|
---|
| 3267 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3268 | rm -f conftest.er1
|
---|
| 3269 | cat conftest.err >&5
|
---|
| 3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3271 | (exit $ac_status); } &&
|
---|
| 3272 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3273 | || test ! -s conftest.err'
|
---|
| 3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3275 | (eval $ac_try) 2>&5
|
---|
| 3276 | ac_status=$?
|
---|
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3278 | (exit $ac_status); }; } &&
|
---|
| 3279 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3281 | (eval $ac_try) 2>&5
|
---|
| 3282 | ac_status=$?
|
---|
| 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3284 | (exit $ac_status); }; }; then
|
---|
| 3285 | ac_cv_search_strerror="none required"
|
---|
[3365] | 3286 | else
|
---|
[10192] | 3287 | echo "$as_me: failed program was:" >&5
|
---|
| 3288 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3289 |
|
---|
[3365] | 3290 | fi
|
---|
[10192] | 3291 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3292 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3293 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3294 | for ac_lib in cposix; do
|
---|
| 3295 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3296 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3297 | /* confdefs.h. */
|
---|
| 3298 | _ACEOF
|
---|
| 3299 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3300 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3301 | /* end confdefs.h. */
|
---|
[3365] | 3302 |
|
---|
[10192] | 3303 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3304 | #ifdef __cplusplus
|
---|
| 3305 | extern "C"
|
---|
| 3306 | #endif
|
---|
| 3307 | /* We use char because int might match the return type of a gcc2
|
---|
| 3308 | builtin and then its argument prototype would still apply. */
|
---|
| 3309 | char strerror ();
|
---|
| 3310 | int
|
---|
| 3311 | main ()
|
---|
| 3312 | {
|
---|
| 3313 | strerror ();
|
---|
| 3314 | ;
|
---|
| 3315 | return 0;
|
---|
| 3316 | }
|
---|
| 3317 | _ACEOF
|
---|
| 3318 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3320 | (eval $ac_link) 2>conftest.er1
|
---|
| 3321 | ac_status=$?
|
---|
| 3322 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3323 | rm -f conftest.er1
|
---|
| 3324 | cat conftest.err >&5
|
---|
| 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3326 | (exit $ac_status); } &&
|
---|
| 3327 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3328 | || test ! -s conftest.err'
|
---|
| 3329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3330 | (eval $ac_try) 2>&5
|
---|
| 3331 | ac_status=$?
|
---|
| 3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3333 | (exit $ac_status); }; } &&
|
---|
| 3334 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3336 | (eval $ac_try) 2>&5
|
---|
| 3337 | ac_status=$?
|
---|
| 3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3339 | (exit $ac_status); }; }; then
|
---|
| 3340 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3341 | break
|
---|
| 3342 | else
|
---|
| 3343 | echo "$as_me: failed program was:" >&5
|
---|
| 3344 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3345 |
|
---|
| 3346 | fi
|
---|
| 3347 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3348 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3349 | done
|
---|
| 3350 | fi
|
---|
| 3351 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3352 | fi
|
---|
| 3353 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3354 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3355 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3356 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3357 |
|
---|
| 3358 | fi
|
---|
| 3359 |
|
---|
| 3360 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3361 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3362 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3363 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3364 | else
|
---|
| 3365 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3366 | /* confdefs.h. */
|
---|
| 3367 | _ACEOF
|
---|
| 3368 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3369 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3370 | /* end confdefs.h. */
|
---|
| 3371 | #include <stdlib.h>
|
---|
| 3372 | #include <stdarg.h>
|
---|
| 3373 | #include <string.h>
|
---|
| 3374 | #include <float.h>
|
---|
| 3375 |
|
---|
| 3376 | int
|
---|
| 3377 | main ()
|
---|
| 3378 | {
|
---|
| 3379 |
|
---|
| 3380 | ;
|
---|
| 3381 | return 0;
|
---|
| 3382 | }
|
---|
| 3383 | _ACEOF
|
---|
| 3384 | rm -f conftest.$ac_objext
|
---|
| 3385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3386 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3387 | ac_status=$?
|
---|
| 3388 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3389 | rm -f conftest.er1
|
---|
| 3390 | cat conftest.err >&5
|
---|
| 3391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3392 | (exit $ac_status); } &&
|
---|
| 3393 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3394 | || test ! -s conftest.err'
|
---|
| 3395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3396 | (eval $ac_try) 2>&5
|
---|
| 3397 | ac_status=$?
|
---|
| 3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3399 | (exit $ac_status); }; } &&
|
---|
| 3400 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3402 | (eval $ac_try) 2>&5
|
---|
| 3403 | ac_status=$?
|
---|
| 3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3405 | (exit $ac_status); }; }; then
|
---|
| 3406 | ac_cv_header_stdc=yes
|
---|
| 3407 | else
|
---|
| 3408 | echo "$as_me: failed program was:" >&5
|
---|
| 3409 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3410 |
|
---|
| 3411 | ac_cv_header_stdc=no
|
---|
| 3412 | fi
|
---|
| 3413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3414 |
|
---|
| 3415 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3416 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3417 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3418 | /* confdefs.h. */
|
---|
| 3419 | _ACEOF
|
---|
| 3420 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3421 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3422 | /* end confdefs.h. */
|
---|
| 3423 | #include <string.h>
|
---|
| 3424 |
|
---|
| 3425 | _ACEOF
|
---|
| 3426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3427 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3428 | :
|
---|
| 3429 | else
|
---|
| 3430 | ac_cv_header_stdc=no
|
---|
| 3431 | fi
|
---|
| 3432 | rm -f conftest*
|
---|
| 3433 |
|
---|
| 3434 | fi
|
---|
| 3435 |
|
---|
| 3436 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3437 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3438 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3439 | /* confdefs.h. */
|
---|
| 3440 | _ACEOF
|
---|
| 3441 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3442 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3443 | /* end confdefs.h. */
|
---|
| 3444 | #include <stdlib.h>
|
---|
| 3445 |
|
---|
| 3446 | _ACEOF
|
---|
| 3447 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3448 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3449 | :
|
---|
| 3450 | else
|
---|
| 3451 | ac_cv_header_stdc=no
|
---|
| 3452 | fi
|
---|
| 3453 | rm -f conftest*
|
---|
| 3454 |
|
---|
| 3455 | fi
|
---|
| 3456 |
|
---|
| 3457 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3458 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3459 | if test "$cross_compiling" = yes; then
|
---|
| 3460 | :
|
---|
| 3461 | else
|
---|
| 3462 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3463 | /* confdefs.h. */
|
---|
| 3464 | _ACEOF
|
---|
| 3465 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3466 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3467 | /* end confdefs.h. */
|
---|
| 3468 | #include <ctype.h>
|
---|
| 3469 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3470 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3471 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3472 | #else
|
---|
| 3473 | # define ISLOWER(c) \
|
---|
| 3474 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3475 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3476 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3477 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3478 | #endif
|
---|
| 3479 |
|
---|
| 3480 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3481 | int
|
---|
| 3482 | main ()
|
---|
| 3483 | {
|
---|
| 3484 | int i;
|
---|
| 3485 | for (i = 0; i < 256; i++)
|
---|
| 3486 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3487 | || toupper (i) != TOUPPER (i))
|
---|
| 3488 | exit(2);
|
---|
| 3489 | exit (0);
|
---|
| 3490 | }
|
---|
| 3491 | _ACEOF
|
---|
| 3492 | rm -f conftest$ac_exeext
|
---|
| 3493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3494 | (eval $ac_link) 2>&5
|
---|
| 3495 | ac_status=$?
|
---|
| 3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3497 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3499 | (eval $ac_try) 2>&5
|
---|
| 3500 | ac_status=$?
|
---|
| 3501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3502 | (exit $ac_status); }; }; then
|
---|
| 3503 | :
|
---|
| 3504 | else
|
---|
| 3505 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3506 | echo "$as_me: failed program was:" >&5
|
---|
| 3507 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3508 |
|
---|
| 3509 | ( exit $ac_status )
|
---|
| 3510 | ac_cv_header_stdc=no
|
---|
| 3511 | fi
|
---|
| 3512 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3513 | fi
|
---|
| 3514 | fi
|
---|
| 3515 | fi
|
---|
| 3516 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3517 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3518 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3519 |
|
---|
| 3520 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3521 | #define STDC_HEADERS 1
|
---|
| 3522 | _ACEOF
|
---|
| 3523 |
|
---|
| 3524 | fi
|
---|
| 3525 |
|
---|
| 3526 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3527 |
|
---|
| 3528 |
|
---|
| 3529 |
|
---|
| 3530 |
|
---|
| 3531 |
|
---|
| 3532 |
|
---|
| 3533 |
|
---|
| 3534 |
|
---|
| 3535 |
|
---|
| 3536 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3537 | inttypes.h stdint.h unistd.h
|
---|
| 3538 | do
|
---|
| 3539 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3540 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3543 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3544 | else
|
---|
| 3545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3546 | /* confdefs.h. */
|
---|
| 3547 | _ACEOF
|
---|
| 3548 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3550 | /* end confdefs.h. */
|
---|
| 3551 | $ac_includes_default
|
---|
| 3552 |
|
---|
| 3553 | #include <$ac_header>
|
---|
| 3554 | _ACEOF
|
---|
| 3555 | rm -f conftest.$ac_objext
|
---|
| 3556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3557 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3558 | ac_status=$?
|
---|
| 3559 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3560 | rm -f conftest.er1
|
---|
| 3561 | cat conftest.err >&5
|
---|
| 3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3563 | (exit $ac_status); } &&
|
---|
| 3564 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3565 | || test ! -s conftest.err'
|
---|
| 3566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3567 | (eval $ac_try) 2>&5
|
---|
| 3568 | ac_status=$?
|
---|
| 3569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3570 | (exit $ac_status); }; } &&
|
---|
| 3571 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3573 | (eval $ac_try) 2>&5
|
---|
| 3574 | ac_status=$?
|
---|
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3576 | (exit $ac_status); }; }; then
|
---|
| 3577 | eval "$as_ac_Header=yes"
|
---|
| 3578 | else
|
---|
| 3579 | echo "$as_me: failed program was:" >&5
|
---|
| 3580 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3581 |
|
---|
| 3582 | eval "$as_ac_Header=no"
|
---|
| 3583 | fi
|
---|
| 3584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3585 | fi
|
---|
| 3586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3589 | cat >>confdefs.h <<_ACEOF
|
---|
| 3590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3591 | _ACEOF
|
---|
| 3592 |
|
---|
| 3593 | fi
|
---|
| 3594 |
|
---|
| 3595 | done
|
---|
| 3596 |
|
---|
| 3597 |
|
---|
| 3598 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3599 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
[8063] | 3600 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3601 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3602 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 3603 | fi
|
---|
| 3604 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3605 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[3365] | 3606 | else
|
---|
[10192] | 3607 | # Is the header compilable?
|
---|
| 3608 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3609 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3610 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3611 | /* confdefs.h. */
|
---|
| 3612 | _ACEOF
|
---|
| 3613 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3614 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3615 | /* end confdefs.h. */
|
---|
| 3616 | $ac_includes_default
|
---|
[3365] | 3617 | #include <minix/config.h>
|
---|
[8063] | 3618 | _ACEOF
|
---|
[10192] | 3619 | rm -f conftest.$ac_objext
|
---|
| 3620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3621 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3622 | ac_status=$?
|
---|
| 3623 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3624 | rm -f conftest.er1
|
---|
| 3625 | cat conftest.err >&5
|
---|
| 3626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3627 | (exit $ac_status); } &&
|
---|
| 3628 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3629 | || test ! -s conftest.err'
|
---|
| 3630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3631 | (eval $ac_try) 2>&5
|
---|
| 3632 | ac_status=$?
|
---|
| 3633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3634 | (exit $ac_status); }; } &&
|
---|
| 3635 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3637 | (eval $ac_try) 2>&5
|
---|
| 3638 | ac_status=$?
|
---|
| 3639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3640 | (exit $ac_status); }; }; then
|
---|
| 3641 | ac_header_compiler=yes
|
---|
| 3642 | else
|
---|
| 3643 | echo "$as_me: failed program was:" >&5
|
---|
| 3644 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3645 |
|
---|
| 3646 | ac_header_compiler=no
|
---|
| 3647 | fi
|
---|
| 3648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3650 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3651 |
|
---|
| 3652 | # Is the header present?
|
---|
| 3653 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3654 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3655 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3656 | /* confdefs.h. */
|
---|
| 3657 | _ACEOF
|
---|
| 3658 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3659 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3660 | /* end confdefs.h. */
|
---|
| 3661 | #include <minix/config.h>
|
---|
| 3662 | _ACEOF
|
---|
| 3663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3665 | ac_status=$?
|
---|
[10192] | 3666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3667 | rm -f conftest.er1
|
---|
| 3668 | cat conftest.err >&5
|
---|
[10192] | 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3670 | (exit $ac_status); } >/dev/null; then
|
---|
| 3671 | if test -s conftest.err; then
|
---|
| 3672 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3674 | else
|
---|
| 3675 | ac_cpp_err=
|
---|
| 3676 | fi
|
---|
[3365] | 3677 | else
|
---|
[8063] | 3678 | ac_cpp_err=yes
|
---|
| 3679 | fi
|
---|
| 3680 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 3681 | ac_header_preproc=yes
|
---|
[8063] | 3682 | else
|
---|
| 3683 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3684 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3685 |
|
---|
| 3686 | ac_header_preproc=no
|
---|
[3365] | 3687 | fi
|
---|
[8063] | 3688 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 3689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3690 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3691 |
|
---|
| 3692 | # So? What about this header?
|
---|
| 3693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3694 | yes:no: )
|
---|
| 3695 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3696 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3697 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3698 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3699 | ac_header_preproc=yes
|
---|
| 3700 | ;;
|
---|
| 3701 | no:yes:* )
|
---|
| 3702 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3703 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3704 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3705 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3706 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3707 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3708 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3709 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3710 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3711 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3712 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3713 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3714 | (
|
---|
| 3715 | cat <<\_ASBOX
|
---|
| 3716 | ## ------------------------------------------ ##
|
---|
| 3717 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3718 | ## ------------------------------------------ ##
|
---|
| 3719 | _ASBOX
|
---|
| 3720 | ) |
|
---|
| 3721 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3722 | ;;
|
---|
| 3723 | esac
|
---|
| 3724 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3725 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3726 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3727 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3728 | else
|
---|
| 3729 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
[3365] | 3730 | fi
|
---|
[10192] | 3731 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
[8063] | 3732 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[10192] | 3733 |
|
---|
| 3734 | fi
|
---|
[8063] | 3735 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[3365] | 3736 | MINIX=yes
|
---|
| 3737 | else
|
---|
[8063] | 3738 | MINIX=
|
---|
[3365] | 3739 | fi
|
---|
| 3740 |
|
---|
[10192] | 3741 |
|
---|
[3365] | 3742 | if test "$MINIX" = yes; then
|
---|
[8063] | 3743 |
|
---|
[10192] | 3744 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3745 | #define _POSIX_SOURCE 1
|
---|
[10192] | 3746 | _ACEOF
|
---|
[3365] | 3747 |
|
---|
[10192] | 3748 |
|
---|
| 3749 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3750 | #define _POSIX_1_SOURCE 2
|
---|
[10192] | 3751 | _ACEOF
|
---|
[3365] | 3752 |
|
---|
[10192] | 3753 |
|
---|
| 3754 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3755 | #define _MINIX 1
|
---|
[10192] | 3756 | _ACEOF
|
---|
[3365] | 3757 |
|
---|
| 3758 | fi
|
---|
| 3759 |
|
---|
[10192] | 3760 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[8063] | 3761 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3762 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 3764 | else
|
---|
| 3765 | ac_cv_prog_cc_stdc=no
|
---|
| 3766 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3767 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3768 | # breaks some systems' header files.
|
---|
| 3769 | # AIX -qlanglvl=ansi
|
---|
| 3770 | # Ultrix and OSF/1 -std1
|
---|
| 3771 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3772 | # SVR4 -Xc
|
---|
| 3773 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3774 | do
|
---|
| 3775 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8063] | 3776 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3777 | /* confdefs.h. */
|
---|
| 3778 | _ACEOF
|
---|
| 3779 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3780 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3781 | /* end confdefs.h. */
|
---|
[3365] | 3782 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3783 | choke me
|
---|
[8063] | 3784 | #endif
|
---|
[3365] | 3785 |
|
---|
[8063] | 3786 | int
|
---|
| 3787 | main ()
|
---|
| 3788 | {
|
---|
[3365] | 3789 | int test (int i, double x);
|
---|
| 3790 | struct s1 {int (*f) (int a);};
|
---|
| 3791 | struct s2 {int (*f) (double a);};
|
---|
[8063] | 3792 | ;
|
---|
| 3793 | return 0;
|
---|
| 3794 | }
|
---|
| 3795 | _ACEOF
|
---|
| 3796 | rm -f conftest.$ac_objext
|
---|
[10192] | 3797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3798 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3799 | ac_status=$?
|
---|
[10192] | 3800 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3801 | rm -f conftest.er1
|
---|
| 3802 | cat conftest.err >&5
|
---|
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3804 | (exit $ac_status); } &&
|
---|
[10192] | 3805 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3806 | || test ! -s conftest.err'
|
---|
| 3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3808 | (eval $ac_try) 2>&5
|
---|
| 3809 | ac_status=$?
|
---|
[10192] | 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3811 | (exit $ac_status); }; } &&
|
---|
| 3812 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3814 | (eval $ac_try) 2>&5
|
---|
| 3815 | ac_status=$?
|
---|
| 3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3817 | (exit $ac_status); }; }; then
|
---|
[3365] | 3818 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3819 | else
|
---|
[8063] | 3820 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3821 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3822 |
|
---|
[3365] | 3823 | fi
|
---|
[10192] | 3824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3825 | done
|
---|
| 3826 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3827 |
|
---|
| 3828 | fi
|
---|
| 3829 |
|
---|
[10192] | 3830 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[8063] | 3831 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[3365] | 3832 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 3833 | x|xno) ;;
|
---|
| 3834 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 3835 | esac
|
---|
| 3836 |
|
---|
[10192] | 3837 |
|
---|
| 3838 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
[8063] | 3839 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[3365] | 3840 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[10192] | 3841 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3842 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3843 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3844 | #define PROTOTYPES 1
|
---|
[10192] | 3845 | _ACEOF
|
---|
[3365] | 3846 |
|
---|
| 3847 | U= ANSI2KNR=
|
---|
| 3848 | else
|
---|
[10192] | 3849 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3850 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3851 | U=_ ANSI2KNR=ansi2knr
|
---|
| 3852 | fi
|
---|
| 3853 |
|
---|
[10192] | 3854 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
[8063] | 3855 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 3856 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 3857 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3858 | else
|
---|
| 3859 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3860 | /* confdefs.h. */
|
---|
| 3861 | _ACEOF
|
---|
| 3862 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3863 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3864 | /* end confdefs.h. */
|
---|
[8063] | 3865 |
|
---|
| 3866 | int
|
---|
| 3867 | main ()
|
---|
| 3868 | {
|
---|
| 3869 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 3870 | #ifndef __cplusplus
|
---|
| 3871 | /* Ultrix mips cc rejects this. */
|
---|
| 3872 | typedef int charset[2];
|
---|
| 3873 | const charset x;
|
---|
| 3874 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 3875 | char const *const *ccp;
|
---|
| 3876 | char **p;
|
---|
| 3877 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 3878 | struct point {int x, y;};
|
---|
| 3879 | static struct point const zero = {0,0};
|
---|
| 3880 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 3881 | It does not let you subtract one const X* pointer from another in
|
---|
| 3882 | an arm of an if-expression whose if-part is not a constant
|
---|
| 3883 | expression */
|
---|
| 3884 | const char *g = "string";
|
---|
| 3885 | ccp = &g + (g ? g-g : 0);
|
---|
| 3886 | /* HPUX 7.0 cc rejects these. */
|
---|
| 3887 | ++ccp;
|
---|
| 3888 | p = (char**) ccp;
|
---|
| 3889 | ccp = (char const *const *) p;
|
---|
| 3890 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 3891 | char *t;
|
---|
| 3892 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 3893 |
|
---|
| 3894 | *t++ = 0;
|
---|
| 3895 | }
|
---|
| 3896 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 3897 | int x[] = {25, 17};
|
---|
| 3898 | const int *foo = &x[0];
|
---|
| 3899 | ++foo;
|
---|
| 3900 | }
|
---|
| 3901 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 3902 | typedef const int *iptr;
|
---|
| 3903 | iptr p = 0;
|
---|
| 3904 | ++p;
|
---|
| 3905 | }
|
---|
| 3906 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 3907 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 3908 | struct s { int j; const int *ap[3]; };
|
---|
| 3909 | struct s *b; b->j = 5;
|
---|
| 3910 | }
|
---|
| 3911 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 3912 | const int foo = 10;
|
---|
| 3913 | }
|
---|
| 3914 | #endif
|
---|
| 3915 |
|
---|
| 3916 | ;
|
---|
| 3917 | return 0;
|
---|
[3365] | 3918 | }
|
---|
[8063] | 3919 | _ACEOF
|
---|
| 3920 | rm -f conftest.$ac_objext
|
---|
[10192] | 3921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3922 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3923 | ac_status=$?
|
---|
[10192] | 3924 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3925 | rm -f conftest.er1
|
---|
| 3926 | cat conftest.err >&5
|
---|
| 3927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3928 | (exit $ac_status); } &&
|
---|
[10192] | 3929 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3930 | || test ! -s conftest.err'
|
---|
| 3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3932 | (eval $ac_try) 2>&5
|
---|
| 3933 | ac_status=$?
|
---|
[10192] | 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3935 | (exit $ac_status); }; } &&
|
---|
| 3936 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3938 | (eval $ac_try) 2>&5
|
---|
| 3939 | ac_status=$?
|
---|
| 3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3941 | (exit $ac_status); }; }; then
|
---|
[3365] | 3942 | ac_cv_c_const=yes
|
---|
| 3943 | else
|
---|
[8063] | 3944 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3945 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3946 |
|
---|
[8063] | 3947 | ac_cv_c_const=no
|
---|
[3365] | 3948 | fi
|
---|
[10192] | 3949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3950 | fi
|
---|
[10192] | 3951 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
[8063] | 3952 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
| 3953 | if test $ac_cv_c_const = no; then
|
---|
[8059] | 3954 |
|
---|
[10192] | 3955 | cat >>confdefs.h <<\_ACEOF
|
---|
[8063] | 3956 | #define const
|
---|
| 3957 | _ACEOF
|
---|
[3365] | 3958 |
|
---|
| 3959 | fi
|
---|
| 3960 |
|
---|
[10192] | 3961 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
[8063] | 3962 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 3963 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 3964 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3965 | else
|
---|
| 3966 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3967 | /* confdefs.h. */
|
---|
| 3968 | _ACEOF
|
---|
| 3969 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3970 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3971 | /* end confdefs.h. */
|
---|
[8063] | 3972 | $ac_includes_default
|
---|
| 3973 | int
|
---|
| 3974 | main ()
|
---|
| 3975 | {
|
---|
| 3976 | if ((off_t *) 0)
|
---|
| 3977 | return 0;
|
---|
| 3978 | if (sizeof (off_t))
|
---|
| 3979 | return 0;
|
---|
| 3980 | ;
|
---|
| 3981 | return 0;
|
---|
| 3982 | }
|
---|
| 3983 | _ACEOF
|
---|
| 3984 | rm -f conftest.$ac_objext
|
---|
[10192] | 3985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3986 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3987 | ac_status=$?
|
---|
[10192] | 3988 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3989 | rm -f conftest.er1
|
---|
| 3990 | cat conftest.err >&5
|
---|
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3992 | (exit $ac_status); } &&
|
---|
[10192] | 3993 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3994 | || test ! -s conftest.err'
|
---|
| 3995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3996 | (eval $ac_try) 2>&5
|
---|
| 3997 | ac_status=$?
|
---|
[10192] | 3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3999 | (exit $ac_status); }; } &&
|
---|
| 4000 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4002 | (eval $ac_try) 2>&5
|
---|
| 4003 | ac_status=$?
|
---|
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4005 | (exit $ac_status); }; }; then
|
---|
[3365] | 4006 | ac_cv_type_off_t=yes
|
---|
| 4007 | else
|
---|
[8063] | 4008 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4009 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4010 |
|
---|
[8063] | 4011 | ac_cv_type_off_t=no
|
---|
[3365] | 4012 | fi
|
---|
[10192] | 4013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 4014 | fi
|
---|
[10192] | 4015 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
[8063] | 4016 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4017 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4018 | :
|
---|
| 4019 | else
|
---|
[8059] | 4020 |
|
---|
[10192] | 4021 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4022 | #define off_t long
|
---|
[10192] | 4023 | _ACEOF
|
---|
[3365] | 4024 |
|
---|
| 4025 | fi
|
---|
| 4026 |
|
---|
[10192] | 4027 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
[8063] | 4028 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4029 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4030 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4031 | else
|
---|
[8063] | 4032 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4033 | /* confdefs.h. */
|
---|
| 4034 | _ACEOF
|
---|
| 4035 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4036 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4037 | /* end confdefs.h. */
|
---|
[8063] | 4038 | $ac_includes_default
|
---|
| 4039 | int
|
---|
| 4040 | main ()
|
---|
| 4041 | {
|
---|
| 4042 | if ((size_t *) 0)
|
---|
| 4043 | return 0;
|
---|
| 4044 | if (sizeof (size_t))
|
---|
| 4045 | return 0;
|
---|
| 4046 | ;
|
---|
| 4047 | return 0;
|
---|
| 4048 | }
|
---|
| 4049 | _ACEOF
|
---|
| 4050 | rm -f conftest.$ac_objext
|
---|
[10192] | 4051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4052 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4053 | ac_status=$?
|
---|
[10192] | 4054 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4055 | rm -f conftest.er1
|
---|
| 4056 | cat conftest.err >&5
|
---|
| 4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4058 | (exit $ac_status); } &&
|
---|
[10192] | 4059 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4060 | || test ! -s conftest.err'
|
---|
| 4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4062 | (eval $ac_try) 2>&5
|
---|
| 4063 | ac_status=$?
|
---|
[10192] | 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4065 | (exit $ac_status); }; } &&
|
---|
| 4066 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4068 | (eval $ac_try) 2>&5
|
---|
| 4069 | ac_status=$?
|
---|
| 4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4071 | (exit $ac_status); }; }; then
|
---|
[3365] | 4072 | ac_cv_type_size_t=yes
|
---|
| 4073 | else
|
---|
[8063] | 4074 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4075 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4076 |
|
---|
[8063] | 4077 | ac_cv_type_size_t=no
|
---|
[3365] | 4078 | fi
|
---|
[10192] | 4079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 4080 | fi
|
---|
[10192] | 4081 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
[8063] | 4082 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4083 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4084 | :
|
---|
| 4085 | else
|
---|
[8059] | 4086 |
|
---|
[10192] | 4087 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4088 | #define size_t unsigned
|
---|
[10192] | 4089 | _ACEOF
|
---|
[3365] | 4090 |
|
---|
| 4091 | fi
|
---|
| 4092 |
|
---|
[10192] | 4093 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[8063] | 4094 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4095 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4096 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4097 | else
|
---|
[8063] | 4098 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4099 | /* confdefs.h. */
|
---|
| 4100 | _ACEOF
|
---|
| 4101 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4102 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4103 | /* end confdefs.h. */
|
---|
[3365] | 4104 | #include <sys/types.h>
|
---|
| 4105 | #include <sys/time.h>
|
---|
| 4106 | #include <time.h>
|
---|
[8063] | 4107 |
|
---|
| 4108 | int
|
---|
| 4109 | main ()
|
---|
| 4110 | {
|
---|
[10192] | 4111 | if ((struct tm *) 0)
|
---|
| 4112 | return 0;
|
---|
[8063] | 4113 | ;
|
---|
| 4114 | return 0;
|
---|
| 4115 | }
|
---|
| 4116 | _ACEOF
|
---|
| 4117 | rm -f conftest.$ac_objext
|
---|
[10192] | 4118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4119 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4120 | ac_status=$?
|
---|
[10192] | 4121 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4122 | rm -f conftest.er1
|
---|
| 4123 | cat conftest.err >&5
|
---|
| 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4125 | (exit $ac_status); } &&
|
---|
[10192] | 4126 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4127 | || test ! -s conftest.err'
|
---|
| 4128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4129 | (eval $ac_try) 2>&5
|
---|
| 4130 | ac_status=$?
|
---|
[10192] | 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4132 | (exit $ac_status); }; } &&
|
---|
| 4133 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4135 | (eval $ac_try) 2>&5
|
---|
| 4136 | ac_status=$?
|
---|
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4138 | (exit $ac_status); }; }; then
|
---|
[3365] | 4139 | ac_cv_header_time=yes
|
---|
| 4140 | else
|
---|
[8063] | 4141 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4142 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4143 |
|
---|
[8063] | 4144 | ac_cv_header_time=no
|
---|
[3365] | 4145 | fi
|
---|
[10192] | 4146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4147 | fi
|
---|
[10192] | 4148 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
[8063] | 4149 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4150 | if test $ac_cv_header_time = yes; then
|
---|
[8059] | 4151 |
|
---|
[10192] | 4152 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4153 | #define TIME_WITH_SYS_TIME 1
|
---|
[10192] | 4154 | _ACEOF
|
---|
[3365] | 4155 |
|
---|
| 4156 | fi
|
---|
| 4157 |
|
---|
[10192] | 4158 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[8063] | 4159 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4160 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4161 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4162 | else
|
---|
[8063] | 4163 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4164 | /* confdefs.h. */
|
---|
| 4165 | _ACEOF
|
---|
| 4166 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4167 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4168 | /* end confdefs.h. */
|
---|
[3365] | 4169 | #include <sys/types.h>
|
---|
| 4170 | #include <time.h>
|
---|
[8063] | 4171 |
|
---|
| 4172 | int
|
---|
| 4173 | main ()
|
---|
| 4174 | {
|
---|
[3365] | 4175 | struct tm *tp; tp->tm_sec;
|
---|
[8063] | 4176 | ;
|
---|
| 4177 | return 0;
|
---|
| 4178 | }
|
---|
| 4179 | _ACEOF
|
---|
| 4180 | rm -f conftest.$ac_objext
|
---|
[10192] | 4181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4182 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4183 | ac_status=$?
|
---|
[10192] | 4184 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4185 | rm -f conftest.er1
|
---|
| 4186 | cat conftest.err >&5
|
---|
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4188 | (exit $ac_status); } &&
|
---|
[10192] | 4189 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4190 | || test ! -s conftest.err'
|
---|
| 4191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4192 | (eval $ac_try) 2>&5
|
---|
| 4193 | ac_status=$?
|
---|
[10192] | 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4195 | (exit $ac_status); }; } &&
|
---|
| 4196 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4198 | (eval $ac_try) 2>&5
|
---|
| 4199 | ac_status=$?
|
---|
| 4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4201 | (exit $ac_status); }; }; then
|
---|
[3365] | 4202 | ac_cv_struct_tm=time.h
|
---|
| 4203 | else
|
---|
[8063] | 4204 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4205 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4206 |
|
---|
[8063] | 4207 | ac_cv_struct_tm=sys/time.h
|
---|
[3365] | 4208 | fi
|
---|
[10192] | 4209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4210 | fi
|
---|
[10192] | 4211 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
[8063] | 4212 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4213 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8059] | 4214 |
|
---|
[10192] | 4215 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4216 | #define TM_IN_SYS_TIME 1
|
---|
[10192] | 4217 | _ACEOF
|
---|
[3365] | 4218 |
|
---|
| 4219 | fi
|
---|
| 4220 |
|
---|
[10192] | 4221 |
|
---|
[13698] | 4222 |
|
---|
| 4223 | # Check whether --with-unac or --without-unac was given.
|
---|
| 4224 | if test "${with_unac+set}" = set; then
|
---|
| 4225 | withval="$with_unac"
|
---|
| 4226 | UNAC_DIR=$withval
|
---|
| 4227 | else
|
---|
| 4228 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
| 4229 | fi;
|
---|
| 4230 | cat >>confdefs.h <<_ACEOF
|
---|
| 4231 | #define UNAC_DIR "$UNAC_DIR"
|
---|
| 4232 | _ACEOF
|
---|
| 4233 |
|
---|
| 4234 |
|
---|
| 4235 |
|
---|
| 4236 |
|
---|
[3365] | 4237 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8063] | 4238 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4239 | /* confdefs.h. */
|
---|
| 4240 | _ACEOF
|
---|
| 4241 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4242 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4243 | /* end confdefs.h. */
|
---|
[3365] | 4244 | #include <stdio.h>
|
---|
| 4245 |
|
---|
[8063] | 4246 | int
|
---|
| 4247 | main ()
|
---|
| 4248 | {
|
---|
| 4249 | FILE *rubbish = popen("yes", "r");
|
---|
| 4250 | ;
|
---|
| 4251 | return 0;
|
---|
| 4252 | }
|
---|
| 4253 | _ACEOF
|
---|
| 4254 | rm -f conftest.$ac_objext
|
---|
[10192] | 4255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4256 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4257 | ac_status=$?
|
---|
[10192] | 4258 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4259 | rm -f conftest.er1
|
---|
| 4260 | cat conftest.err >&5
|
---|
| 4261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4262 | (exit $ac_status); } &&
|
---|
[10192] | 4263 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4264 | || test ! -s conftest.err'
|
---|
| 4265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4266 | (eval $ac_try) 2>&5
|
---|
| 4267 | ac_status=$?
|
---|
[10192] | 4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4269 | (exit $ac_status); }; } &&
|
---|
| 4270 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4272 | (eval $ac_try) 2>&5
|
---|
| 4273 | ac_status=$?
|
---|
| 4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4275 | (exit $ac_status); }; }; then
|
---|
[3365] | 4276 | :
|
---|
| 4277 | else
|
---|
[8063] | 4278 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4279 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4280 |
|
---|
[8063] | 4281 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3365] | 4282 | fi
|
---|
[10192] | 4283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4284 | fi
|
---|
| 4285 |
|
---|
[10192] | 4286 |
|
---|
| 4287 |
|
---|
| 4288 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
[8063] | 4289 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4290 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4291 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4292 | else
|
---|
[8063] | 4293 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4294 | LIBS="-lg $LIBS"
|
---|
[8063] | 4295 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4296 | /* confdefs.h. */
|
---|
| 4297 | _ACEOF
|
---|
| 4298 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4299 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4300 | /* end confdefs.h. */
|
---|
[8059] | 4301 |
|
---|
[10192] | 4302 |
|
---|
[8063] | 4303 | int
|
---|
| 4304 | main ()
|
---|
| 4305 | {
|
---|
| 4306 | main ();
|
---|
| 4307 | ;
|
---|
| 4308 | return 0;
|
---|
| 4309 | }
|
---|
| 4310 | _ACEOF
|
---|
| 4311 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4313 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4314 | ac_status=$?
|
---|
[10192] | 4315 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4316 | rm -f conftest.er1
|
---|
| 4317 | cat conftest.err >&5
|
---|
| 4318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4319 | (exit $ac_status); } &&
|
---|
[10192] | 4320 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4321 | || test ! -s conftest.err'
|
---|
| 4322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4323 | (eval $ac_try) 2>&5
|
---|
| 4324 | ac_status=$?
|
---|
[10192] | 4325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4326 | (exit $ac_status); }; } &&
|
---|
| 4327 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4329 | (eval $ac_try) 2>&5
|
---|
| 4330 | ac_status=$?
|
---|
| 4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4332 | (exit $ac_status); }; }; then
|
---|
| 4333 | ac_cv_lib_g_main=yes
|
---|
[8059] | 4334 | else
|
---|
[8063] | 4335 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4336 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4337 |
|
---|
[8063] | 4338 | ac_cv_lib_g_main=no
|
---|
[8059] | 4339 | fi
|
---|
[10192] | 4340 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4341 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4342 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4343 | fi
|
---|
[10192] | 4344 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
[8063] | 4345 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4346 | if test $ac_cv_lib_g_main = yes; then
|
---|
[10192] | 4347 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4348 | #define HAVE_LIBG 1
|
---|
[10192] | 4349 | _ACEOF
|
---|
[8059] | 4350 |
|
---|
| 4351 | LIBS="-lg $LIBS"
|
---|
| 4352 |
|
---|
| 4353 | fi
|
---|
| 4354 |
|
---|
[10192] | 4355 |
|
---|
| 4356 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
[8063] | 4357 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4358 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4359 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4360 | else
|
---|
[8063] | 4361 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 4362 | LIBS="-lm $LIBS"
|
---|
[8063] | 4363 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4364 | /* confdefs.h. */
|
---|
| 4365 | _ACEOF
|
---|
| 4366 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4367 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4368 | /* end confdefs.h. */
|
---|
[3365] | 4369 |
|
---|
[10192] | 4370 |
|
---|
[8063] | 4371 | int
|
---|
| 4372 | main ()
|
---|
| 4373 | {
|
---|
| 4374 | main ();
|
---|
| 4375 | ;
|
---|
| 4376 | return 0;
|
---|
| 4377 | }
|
---|
| 4378 | _ACEOF
|
---|
| 4379 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4381 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4382 | ac_status=$?
|
---|
[10192] | 4383 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4384 | rm -f conftest.er1
|
---|
| 4385 | cat conftest.err >&5
|
---|
| 4386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4387 | (exit $ac_status); } &&
|
---|
[10192] | 4388 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4389 | || test ! -s conftest.err'
|
---|
| 4390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4391 | (eval $ac_try) 2>&5
|
---|
| 4392 | ac_status=$?
|
---|
[10192] | 4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4394 | (exit $ac_status); }; } &&
|
---|
| 4395 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4397 | (eval $ac_try) 2>&5
|
---|
| 4398 | ac_status=$?
|
---|
| 4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4400 | (exit $ac_status); }; }; then
|
---|
| 4401 | ac_cv_lib_m_main=yes
|
---|
[3365] | 4402 | else
|
---|
[8063] | 4403 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4404 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4405 |
|
---|
[8063] | 4406 | ac_cv_lib_m_main=no
|
---|
[3365] | 4407 | fi
|
---|
[10192] | 4408 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4409 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4410 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 4411 | fi
|
---|
[10192] | 4412 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
[8063] | 4413 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4414 | if test $ac_cv_lib_m_main = yes; then
|
---|
[10192] | 4415 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4416 | #define HAVE_LIBM 1
|
---|
[10192] | 4417 | _ACEOF
|
---|
[3365] | 4418 |
|
---|
| 4419 | LIBS="-lm $LIBS"
|
---|
| 4420 |
|
---|
| 4421 | fi
|
---|
| 4422 |
|
---|
[10192] | 4423 |
|
---|
| 4424 | echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
|
---|
[8063] | 4425 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
|
---|
| 4426 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then
|
---|
| 4427 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4428 | else
|
---|
[8063] | 4429 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4430 | LIBS="-lstdc++ $LIBS"
|
---|
[8063] | 4431 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4432 | /* confdefs.h. */
|
---|
| 4433 | _ACEOF
|
---|
| 4434 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4435 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4436 | /* end confdefs.h. */
|
---|
[8059] | 4437 |
|
---|
[10192] | 4438 |
|
---|
[8063] | 4439 | int
|
---|
| 4440 | main ()
|
---|
| 4441 | {
|
---|
| 4442 | main ();
|
---|
| 4443 | ;
|
---|
| 4444 | return 0;
|
---|
| 4445 | }
|
---|
| 4446 | _ACEOF
|
---|
| 4447 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4449 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4450 | ac_status=$?
|
---|
[10192] | 4451 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4452 | rm -f conftest.er1
|
---|
| 4453 | cat conftest.err >&5
|
---|
| 4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4455 | (exit $ac_status); } &&
|
---|
[10192] | 4456 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4457 | || test ! -s conftest.err'
|
---|
| 4458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4459 | (eval $ac_try) 2>&5
|
---|
| 4460 | ac_status=$?
|
---|
[10192] | 4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4462 | (exit $ac_status); }; } &&
|
---|
| 4463 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4465 | (eval $ac_try) 2>&5
|
---|
| 4466 | ac_status=$?
|
---|
| 4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4468 | (exit $ac_status); }; }; then
|
---|
| 4469 | ac_cv_lib_stdcpp_main=yes
|
---|
[8059] | 4470 | else
|
---|
[8063] | 4471 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4472 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4473 |
|
---|
[8063] | 4474 | ac_cv_lib_stdcpp_main=no
|
---|
[8059] | 4475 | fi
|
---|
[10192] | 4476 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4477 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4478 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4479 | fi
|
---|
[10192] | 4480 | echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
[8063] | 4481 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
|
---|
| 4482 | if test $ac_cv_lib_stdcpp_main = yes; then
|
---|
[10192] | 4483 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4484 | #define HAVE_LIBSTDC__ 1
|
---|
[10192] | 4485 | _ACEOF
|
---|
[8059] | 4486 |
|
---|
| 4487 | LIBS="-lstdc++ $LIBS"
|
---|
| 4488 |
|
---|
| 4489 | fi
|
---|
| 4490 |
|
---|
[10192] | 4491 |
|
---|
| 4492 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
[8063] | 4493 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4494 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4495 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4496 | else
|
---|
[8063] | 4497 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4498 | LIBS="-lcrypt $LIBS"
|
---|
[8063] | 4499 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4500 | /* confdefs.h. */
|
---|
| 4501 | _ACEOF
|
---|
| 4502 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4503 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4504 | /* end confdefs.h. */
|
---|
[8059] | 4505 |
|
---|
[10192] | 4506 |
|
---|
[8063] | 4507 | int
|
---|
| 4508 | main ()
|
---|
| 4509 | {
|
---|
| 4510 | main ();
|
---|
| 4511 | ;
|
---|
| 4512 | return 0;
|
---|
| 4513 | }
|
---|
| 4514 | _ACEOF
|
---|
| 4515 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4517 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4518 | ac_status=$?
|
---|
[10192] | 4519 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4520 | rm -f conftest.er1
|
---|
| 4521 | cat conftest.err >&5
|
---|
| 4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4523 | (exit $ac_status); } &&
|
---|
[10192] | 4524 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4525 | || test ! -s conftest.err'
|
---|
| 4526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4527 | (eval $ac_try) 2>&5
|
---|
| 4528 | ac_status=$?
|
---|
[10192] | 4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4530 | (exit $ac_status); }; } &&
|
---|
| 4531 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4533 | (eval $ac_try) 2>&5
|
---|
| 4534 | ac_status=$?
|
---|
| 4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4536 | (exit $ac_status); }; }; then
|
---|
| 4537 | ac_cv_lib_crypt_main=yes
|
---|
[8059] | 4538 | else
|
---|
[8063] | 4539 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4540 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4541 |
|
---|
[8063] | 4542 | ac_cv_lib_crypt_main=no
|
---|
[8059] | 4543 | fi
|
---|
[10192] | 4544 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4545 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4546 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4547 | fi
|
---|
[10192] | 4548 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
[8063] | 4549 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4550 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[10192] | 4551 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4552 | #define HAVE_LIBCRYPT 1
|
---|
[10192] | 4553 | _ACEOF
|
---|
[8059] | 4554 |
|
---|
| 4555 | LIBS="-lcrypt $LIBS"
|
---|
| 4556 |
|
---|
| 4557 | fi
|
---|
| 4558 |
|
---|
[13482] | 4559 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
[10192] | 4560 |
|
---|
[14170] | 4561 | echo "$as_me:$LINENO: checking for main in -liconv" >&5
|
---|
| 4562 | echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
|
---|
| 4563 | if test "${ac_cv_lib_iconv_main+set}" = set; then
|
---|
[13482] | 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4565 | else
|
---|
| 4566 | ac_check_lib_save_LIBS=$LIBS
|
---|
[14170] | 4567 | LIBS="-liconv $LIBS"
|
---|
[13482] | 4568 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4569 | /* confdefs.h. */
|
---|
| 4570 | _ACEOF
|
---|
| 4571 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4572 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4573 | /* end confdefs.h. */
|
---|
[10192] | 4574 |
|
---|
| 4575 |
|
---|
[13482] | 4576 | int
|
---|
| 4577 | main ()
|
---|
| 4578 | {
|
---|
| 4579 | main ();
|
---|
| 4580 | ;
|
---|
| 4581 | return 0;
|
---|
| 4582 | }
|
---|
| 4583 | _ACEOF
|
---|
| 4584 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4586 | (eval $ac_link) 2>conftest.er1
|
---|
| 4587 | ac_status=$?
|
---|
| 4588 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4589 | rm -f conftest.er1
|
---|
| 4590 | cat conftest.err >&5
|
---|
| 4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4592 | (exit $ac_status); } &&
|
---|
| 4593 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4594 | || test ! -s conftest.err'
|
---|
| 4595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4596 | (eval $ac_try) 2>&5
|
---|
| 4597 | ac_status=$?
|
---|
| 4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4599 | (exit $ac_status); }; } &&
|
---|
| 4600 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4602 | (eval $ac_try) 2>&5
|
---|
| 4603 | ac_status=$?
|
---|
| 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4605 | (exit $ac_status); }; }; then
|
---|
[14170] | 4606 | ac_cv_lib_iconv_main=yes
|
---|
[13482] | 4607 | else
|
---|
| 4608 | echo "$as_me: failed program was:" >&5
|
---|
| 4609 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[10192] | 4610 |
|
---|
[14170] | 4611 | ac_cv_lib_iconv_main=no
|
---|
[13482] | 4612 | fi
|
---|
| 4613 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4614 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4615 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4616 | fi
|
---|
[14170] | 4617 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
|
---|
| 4618 | echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
|
---|
| 4619 | if test $ac_cv_lib_iconv_main = yes; then
|
---|
[13482] | 4620 | cat >>confdefs.h <<_ACEOF
|
---|
| 4621 | #define HAVE_LIBICONV 1
|
---|
| 4622 | _ACEOF
|
---|
[10192] | 4623 |
|
---|
[14170] | 4624 | LIBS="-liconv $LIBS"
|
---|
[10192] | 4625 |
|
---|
[13482] | 4626 | fi
|
---|
[14170] | 4627 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
[13482] | 4628 |
|
---|
| 4629 | fi
|
---|
| 4630 |
|
---|
| 4631 |
|
---|
| 4632 |
|
---|
| 4633 |
|
---|
| 4634 |
|
---|
| 4635 |
|
---|
| 4636 |
|
---|
[3365] | 4637 | ac_header_dirent=no
|
---|
[8063] | 4638 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[10192] | 4639 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4640 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
[8063] | 4641 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
[10192] | 4642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 4643 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4644 | else
|
---|
[8063] | 4645 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4646 | /* confdefs.h. */
|
---|
| 4647 | _ACEOF
|
---|
| 4648 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4649 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4650 | /* end confdefs.h. */
|
---|
[3365] | 4651 | #include <sys/types.h>
|
---|
| 4652 | #include <$ac_hdr>
|
---|
[8063] | 4653 |
|
---|
| 4654 | int
|
---|
| 4655 | main ()
|
---|
| 4656 | {
|
---|
[10192] | 4657 | if ((DIR *) 0)
|
---|
| 4658 | return 0;
|
---|
[8063] | 4659 | ;
|
---|
| 4660 | return 0;
|
---|
| 4661 | }
|
---|
| 4662 | _ACEOF
|
---|
| 4663 | rm -f conftest.$ac_objext
|
---|
[10192] | 4664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4665 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4666 | ac_status=$?
|
---|
[10192] | 4667 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4668 | rm -f conftest.er1
|
---|
| 4669 | cat conftest.err >&5
|
---|
| 4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4671 | (exit $ac_status); } &&
|
---|
[10192] | 4672 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4673 | || test ! -s conftest.err'
|
---|
| 4674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4675 | (eval $ac_try) 2>&5
|
---|
| 4676 | ac_status=$?
|
---|
[10192] | 4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4678 | (exit $ac_status); }; } &&
|
---|
| 4679 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4681 | (eval $ac_try) 2>&5
|
---|
| 4682 | ac_status=$?
|
---|
| 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4684 | (exit $ac_status); }; }; then
|
---|
[10192] | 4685 | eval "$as_ac_Header=yes"
|
---|
[3365] | 4686 | else
|
---|
[8063] | 4687 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4688 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4689 |
|
---|
| 4690 | eval "$as_ac_Header=no"
|
---|
[3365] | 4691 | fi
|
---|
[10192] | 4692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4693 | fi
|
---|
[10192] | 4694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4696 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4697 | cat >>confdefs.h <<_ACEOF
|
---|
| 4698 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4699 | _ACEOF
|
---|
[8063] | 4700 |
|
---|
| 4701 | ac_header_dirent=$ac_hdr; break
|
---|
[3365] | 4702 | fi
|
---|
[8063] | 4703 |
|
---|
[3365] | 4704 | done
|
---|
| 4705 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4706 | if test $ac_header_dirent = dirent.h; then
|
---|
[10192] | 4707 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4708 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4709 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4710 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4711 | else
|
---|
[10192] | 4712 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4713 | ac_cv_search_opendir=no
|
---|
[8063] | 4714 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4715 | /* confdefs.h. */
|
---|
| 4716 | _ACEOF
|
---|
| 4717 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4718 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4719 | /* end confdefs.h. */
|
---|
[8063] | 4720 |
|
---|
[3365] | 4721 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4722 | #ifdef __cplusplus
|
---|
| 4723 | extern "C"
|
---|
| 4724 | #endif
|
---|
[3365] | 4725 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4726 | builtin and then its argument prototype would still apply. */
|
---|
| 4727 | char opendir ();
|
---|
| 4728 | int
|
---|
| 4729 | main ()
|
---|
| 4730 | {
|
---|
| 4731 | opendir ();
|
---|
| 4732 | ;
|
---|
| 4733 | return 0;
|
---|
| 4734 | }
|
---|
| 4735 | _ACEOF
|
---|
| 4736 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4738 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4739 | ac_status=$?
|
---|
[10192] | 4740 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4741 | rm -f conftest.er1
|
---|
| 4742 | cat conftest.err >&5
|
---|
| 4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4744 | (exit $ac_status); } &&
|
---|
[10192] | 4745 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4746 | || test ! -s conftest.err'
|
---|
| 4747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4748 | (eval $ac_try) 2>&5
|
---|
| 4749 | ac_status=$?
|
---|
[10192] | 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4751 | (exit $ac_status); }; } &&
|
---|
| 4752 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4754 | (eval $ac_try) 2>&5
|
---|
| 4755 | ac_status=$?
|
---|
| 4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4757 | (exit $ac_status); }; }; then
|
---|
[10192] | 4758 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4759 | else
|
---|
[8063] | 4760 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4761 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4762 |
|
---|
[3365] | 4763 | fi
|
---|
[10192] | 4764 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4765 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4766 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4767 | for ac_lib in dir; do
|
---|
| 4768 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4769 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4770 | /* confdefs.h. */
|
---|
| 4771 | _ACEOF
|
---|
| 4772 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4773 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4774 | /* end confdefs.h. */
|
---|
| 4775 |
|
---|
| 4776 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4777 | #ifdef __cplusplus
|
---|
| 4778 | extern "C"
|
---|
| 4779 | #endif
|
---|
| 4780 | /* We use char because int might match the return type of a gcc2
|
---|
| 4781 | builtin and then its argument prototype would still apply. */
|
---|
| 4782 | char opendir ();
|
---|
| 4783 | int
|
---|
| 4784 | main ()
|
---|
| 4785 | {
|
---|
| 4786 | opendir ();
|
---|
| 4787 | ;
|
---|
| 4788 | return 0;
|
---|
| 4789 | }
|
---|
| 4790 | _ACEOF
|
---|
| 4791 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4793 | (eval $ac_link) 2>conftest.er1
|
---|
| 4794 | ac_status=$?
|
---|
| 4795 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4796 | rm -f conftest.er1
|
---|
| 4797 | cat conftest.err >&5
|
---|
| 4798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4799 | (exit $ac_status); } &&
|
---|
| 4800 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4801 | || test ! -s conftest.err'
|
---|
| 4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4803 | (eval $ac_try) 2>&5
|
---|
| 4804 | ac_status=$?
|
---|
| 4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4806 | (exit $ac_status); }; } &&
|
---|
| 4807 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4809 | (eval $ac_try) 2>&5
|
---|
| 4810 | ac_status=$?
|
---|
| 4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4812 | (exit $ac_status); }; }; then
|
---|
| 4813 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4814 | break
|
---|
| 4815 | else
|
---|
| 4816 | echo "$as_me: failed program was:" >&5
|
---|
| 4817 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4818 |
|
---|
[3365] | 4819 | fi
|
---|
[10192] | 4820 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4821 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4822 | done
|
---|
[3365] | 4823 | fi
|
---|
[10192] | 4824 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4825 | fi
|
---|
| 4826 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4827 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4828 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4829 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 4830 |
|
---|
[10192] | 4831 | fi
|
---|
| 4832 |
|
---|
[3365] | 4833 | else
|
---|
[10192] | 4834 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4835 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4836 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4837 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4838 | else
|
---|
[10192] | 4839 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4840 | ac_cv_search_opendir=no
|
---|
[8063] | 4841 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4842 | /* confdefs.h. */
|
---|
| 4843 | _ACEOF
|
---|
| 4844 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4845 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4846 | /* end confdefs.h. */
|
---|
[8063] | 4847 |
|
---|
[3365] | 4848 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4849 | #ifdef __cplusplus
|
---|
| 4850 | extern "C"
|
---|
| 4851 | #endif
|
---|
[3365] | 4852 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4853 | builtin and then its argument prototype would still apply. */
|
---|
| 4854 | char opendir ();
|
---|
| 4855 | int
|
---|
| 4856 | main ()
|
---|
| 4857 | {
|
---|
| 4858 | opendir ();
|
---|
| 4859 | ;
|
---|
| 4860 | return 0;
|
---|
| 4861 | }
|
---|
| 4862 | _ACEOF
|
---|
| 4863 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4865 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4866 | ac_status=$?
|
---|
[10192] | 4867 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4868 | rm -f conftest.er1
|
---|
| 4869 | cat conftest.err >&5
|
---|
| 4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4871 | (exit $ac_status); } &&
|
---|
[10192] | 4872 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4873 | || test ! -s conftest.err'
|
---|
| 4874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4875 | (eval $ac_try) 2>&5
|
---|
| 4876 | ac_status=$?
|
---|
[10192] | 4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4878 | (exit $ac_status); }; } &&
|
---|
| 4879 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4881 | (eval $ac_try) 2>&5
|
---|
| 4882 | ac_status=$?
|
---|
| 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4884 | (exit $ac_status); }; }; then
|
---|
[10192] | 4885 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4886 | else
|
---|
[8063] | 4887 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4888 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4889 |
|
---|
[3365] | 4890 | fi
|
---|
[10192] | 4891 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4892 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4893 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4894 | for ac_lib in x; do
|
---|
| 4895 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4896 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4897 | /* confdefs.h. */
|
---|
| 4898 | _ACEOF
|
---|
| 4899 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4900 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4901 | /* end confdefs.h. */
|
---|
| 4902 |
|
---|
| 4903 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4904 | #ifdef __cplusplus
|
---|
| 4905 | extern "C"
|
---|
| 4906 | #endif
|
---|
| 4907 | /* We use char because int might match the return type of a gcc2
|
---|
| 4908 | builtin and then its argument prototype would still apply. */
|
---|
| 4909 | char opendir ();
|
---|
| 4910 | int
|
---|
| 4911 | main ()
|
---|
| 4912 | {
|
---|
| 4913 | opendir ();
|
---|
| 4914 | ;
|
---|
| 4915 | return 0;
|
---|
| 4916 | }
|
---|
| 4917 | _ACEOF
|
---|
| 4918 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4920 | (eval $ac_link) 2>conftest.er1
|
---|
| 4921 | ac_status=$?
|
---|
| 4922 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4923 | rm -f conftest.er1
|
---|
| 4924 | cat conftest.err >&5
|
---|
| 4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4926 | (exit $ac_status); } &&
|
---|
| 4927 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4928 | || test ! -s conftest.err'
|
---|
| 4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4930 | (eval $ac_try) 2>&5
|
---|
| 4931 | ac_status=$?
|
---|
| 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4933 | (exit $ac_status); }; } &&
|
---|
| 4934 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4936 | (eval $ac_try) 2>&5
|
---|
| 4937 | ac_status=$?
|
---|
| 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4939 | (exit $ac_status); }; }; then
|
---|
| 4940 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4941 | break
|
---|
| 4942 | else
|
---|
| 4943 | echo "$as_me: failed program was:" >&5
|
---|
| 4944 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4945 |
|
---|
[3365] | 4946 | fi
|
---|
[10192] | 4947 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4948 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4949 | done
|
---|
[3365] | 4950 | fi
|
---|
[10192] | 4951 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4952 | fi
|
---|
| 4953 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4954 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4955 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4956 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 4957 |
|
---|
| 4958 | fi
|
---|
| 4959 |
|
---|
[10192] | 4960 | fi
|
---|
| 4961 |
|
---|
| 4962 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
[8063] | 4963 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4964 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4965 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4966 | else
|
---|
[8063] | 4967 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4968 | /* confdefs.h. */
|
---|
| 4969 | _ACEOF
|
---|
| 4970 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4971 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4972 | /* end confdefs.h. */
|
---|
[3365] | 4973 | #include <stdlib.h>
|
---|
| 4974 | #include <stdarg.h>
|
---|
| 4975 | #include <string.h>
|
---|
| 4976 | #include <float.h>
|
---|
[8063] | 4977 |
|
---|
[10192] | 4978 | int
|
---|
| 4979 | main ()
|
---|
| 4980 | {
|
---|
| 4981 |
|
---|
| 4982 | ;
|
---|
| 4983 | return 0;
|
---|
| 4984 | }
|
---|
[8063] | 4985 | _ACEOF
|
---|
[10192] | 4986 | rm -f conftest.$ac_objext
|
---|
| 4987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4988 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4989 | ac_status=$?
|
---|
[10192] | 4990 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 4991 | rm -f conftest.er1
|
---|
| 4992 | cat conftest.err >&5
|
---|
[10192] | 4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4994 | (exit $ac_status); } &&
|
---|
| 4995 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4996 | || test ! -s conftest.err'
|
---|
| 4997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4998 | (eval $ac_try) 2>&5
|
---|
| 4999 | ac_status=$?
|
---|
| 5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5001 | (exit $ac_status); }; } &&
|
---|
| 5002 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5004 | (eval $ac_try) 2>&5
|
---|
| 5005 | ac_status=$?
|
---|
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5007 | (exit $ac_status); }; }; then
|
---|
[3365] | 5008 | ac_cv_header_stdc=yes
|
---|
| 5009 | else
|
---|
[8063] | 5010 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5011 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5012 |
|
---|
| 5013 | ac_cv_header_stdc=no
|
---|
[3365] | 5014 | fi
|
---|
[10192] | 5015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5016 |
|
---|
| 5017 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5018 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8063] | 5019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5020 | /* confdefs.h. */
|
---|
| 5021 | _ACEOF
|
---|
| 5022 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5024 | /* end confdefs.h. */
|
---|
[3365] | 5025 | #include <string.h>
|
---|
[8063] | 5026 |
|
---|
| 5027 | _ACEOF
|
---|
[3365] | 5028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5029 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[3365] | 5030 | :
|
---|
| 5031 | else
|
---|
| 5032 | ac_cv_header_stdc=no
|
---|
| 5033 | fi
|
---|
| 5034 | rm -f conftest*
|
---|
| 5035 |
|
---|
| 5036 | fi
|
---|
| 5037 |
|
---|
| 5038 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5039 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8063] | 5040 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5041 | /* confdefs.h. */
|
---|
| 5042 | _ACEOF
|
---|
| 5043 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5044 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5045 | /* end confdefs.h. */
|
---|
[3365] | 5046 | #include <stdlib.h>
|
---|
[8063] | 5047 |
|
---|
| 5048 | _ACEOF
|
---|
[3365] | 5049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5050 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[3365] | 5051 | :
|
---|
| 5052 | else
|
---|
| 5053 | ac_cv_header_stdc=no
|
---|
| 5054 | fi
|
---|
| 5055 | rm -f conftest*
|
---|
| 5056 |
|
---|
| 5057 | fi
|
---|
| 5058 |
|
---|
| 5059 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5060 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8063] | 5061 | if test "$cross_compiling" = yes; then
|
---|
[3365] | 5062 | :
|
---|
| 5063 | else
|
---|
[8063] | 5064 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5065 | /* confdefs.h. */
|
---|
| 5066 | _ACEOF
|
---|
| 5067 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5068 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5069 | /* end confdefs.h. */
|
---|
[3365] | 5070 | #include <ctype.h>
|
---|
[8063] | 5071 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5072 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5073 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5074 | #else
|
---|
[10192] | 5075 | # define ISLOWER(c) \
|
---|
| 5076 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5077 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5078 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[8063] | 5079 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5080 | #endif
|
---|
| 5081 |
|
---|
[8059] | 5082 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8063] | 5083 | int
|
---|
| 5084 | main ()
|
---|
| 5085 | {
|
---|
| 5086 | int i;
|
---|
| 5087 | for (i = 0; i < 256; i++)
|
---|
| 5088 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10192] | 5089 | || toupper (i) != TOUPPER (i))
|
---|
[8063] | 5090 | exit(2);
|
---|
| 5091 | exit (0);
|
---|
| 5092 | }
|
---|
| 5093 | _ACEOF
|
---|
| 5094 | rm -f conftest$ac_exeext
|
---|
[10192] | 5095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 5096 | (eval $ac_link) 2>&5
|
---|
| 5097 | ac_status=$?
|
---|
[10192] | 5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5099 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 5100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5101 | (eval $ac_try) 2>&5
|
---|
| 5102 | ac_status=$?
|
---|
[10192] | 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5104 | (exit $ac_status); }; }; then
|
---|
[3365] | 5105 | :
|
---|
| 5106 | else
|
---|
[8063] | 5107 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5108 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5109 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5110 |
|
---|
| 5111 | ( exit $ac_status )
|
---|
[8063] | 5112 | ac_cv_header_stdc=no
|
---|
[3365] | 5113 | fi
|
---|
[10192] | 5114 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5115 | fi
|
---|
| 5116 | fi
|
---|
| 5117 | fi
|
---|
[10192] | 5118 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
[8063] | 5119 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5120 | if test $ac_cv_header_stdc = yes; then
|
---|
[8059] | 5121 |
|
---|
[10192] | 5122 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5123 | #define STDC_HEADERS 1
|
---|
[10192] | 5124 | _ACEOF
|
---|
[3365] | 5125 |
|
---|
| 5126 | fi
|
---|
| 5127 |
|
---|
[10192] | 5128 |
|
---|
| 5129 |
|
---|
| 5130 |
|
---|
| 5131 |
|
---|
| 5132 |
|
---|
| 5133 |
|
---|
| 5134 |
|
---|
| 5135 |
|
---|
[8063] | 5136 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
[3365] | 5137 | do
|
---|
[10192] | 5138 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5140 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
[8063] | 5141 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
[10192] | 5142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 5143 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 5144 | fi
|
---|
| 5145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[3365] | 5147 | else
|
---|
[10192] | 5148 | # Is the header compilable?
|
---|
| 5149 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5150 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5151 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5152 | /* confdefs.h. */
|
---|
| 5153 | _ACEOF
|
---|
| 5154 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5155 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5156 | /* end confdefs.h. */
|
---|
| 5157 | $ac_includes_default
|
---|
[8063] | 5158 | #include <$ac_header>
|
---|
| 5159 | _ACEOF
|
---|
[10192] | 5160 | rm -f conftest.$ac_objext
|
---|
| 5161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5162 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5163 | ac_status=$?
|
---|
| 5164 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5165 | rm -f conftest.er1
|
---|
| 5166 | cat conftest.err >&5
|
---|
| 5167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5168 | (exit $ac_status); } &&
|
---|
| 5169 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5170 | || test ! -s conftest.err'
|
---|
| 5171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5172 | (eval $ac_try) 2>&5
|
---|
| 5173 | ac_status=$?
|
---|
| 5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5175 | (exit $ac_status); }; } &&
|
---|
| 5176 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5178 | (eval $ac_try) 2>&5
|
---|
| 5179 | ac_status=$?
|
---|
| 5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5181 | (exit $ac_status); }; }; then
|
---|
| 5182 | ac_header_compiler=yes
|
---|
| 5183 | else
|
---|
| 5184 | echo "$as_me: failed program was:" >&5
|
---|
| 5185 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5186 |
|
---|
| 5187 | ac_header_compiler=no
|
---|
| 5188 | fi
|
---|
| 5189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5190 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5191 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5192 |
|
---|
| 5193 | # Is the header present?
|
---|
| 5194 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5195 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5196 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5197 | /* confdefs.h. */
|
---|
| 5198 | _ACEOF
|
---|
| 5199 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5200 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5201 | /* end confdefs.h. */
|
---|
| 5202 | #include <$ac_header>
|
---|
| 5203 | _ACEOF
|
---|
| 5204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 5205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5206 | ac_status=$?
|
---|
[10192] | 5207 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 5208 | rm -f conftest.er1
|
---|
| 5209 | cat conftest.err >&5
|
---|
[10192] | 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5211 | (exit $ac_status); } >/dev/null; then
|
---|
| 5212 | if test -s conftest.err; then
|
---|
| 5213 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 5214 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 5215 | else
|
---|
| 5216 | ac_cpp_err=
|
---|
| 5217 | fi
|
---|
[3365] | 5218 | else
|
---|
[8063] | 5219 | ac_cpp_err=yes
|
---|
| 5220 | fi
|
---|
| 5221 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 5222 | ac_header_preproc=yes
|
---|
[8063] | 5223 | else
|
---|
| 5224 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5225 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5226 |
|
---|
| 5227 | ac_header_preproc=no
|
---|
[3365] | 5228 | fi
|
---|
[8063] | 5229 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 5230 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5231 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5232 |
|
---|
| 5233 | # So? What about this header?
|
---|
| 5234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5235 | yes:no: )
|
---|
| 5236 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5237 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5239 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5240 | ac_header_preproc=yes
|
---|
| 5241 | ;;
|
---|
| 5242 | no:yes:* )
|
---|
| 5243 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5244 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5245 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5246 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5247 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5248 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5249 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5250 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5251 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5252 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5253 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5254 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5255 | (
|
---|
| 5256 | cat <<\_ASBOX
|
---|
| 5257 | ## ------------------------------------------ ##
|
---|
| 5258 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5259 | ## ------------------------------------------ ##
|
---|
| 5260 | _ASBOX
|
---|
| 5261 | ) |
|
---|
| 5262 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5263 | ;;
|
---|
| 5264 | esac
|
---|
| 5265 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5266 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5267 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5268 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5269 | else
|
---|
| 5270 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
[3365] | 5271 | fi
|
---|
[10192] | 5272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5273 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[8063] | 5274 |
|
---|
[3365] | 5275 | fi
|
---|
[10192] | 5276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5277 | cat >>confdefs.h <<_ACEOF
|
---|
| 5278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5279 | _ACEOF
|
---|
| 5280 |
|
---|
| 5281 | fi
|
---|
| 5282 |
|
---|
[3365] | 5283 | done
|
---|
| 5284 |
|
---|
[8063] | 5285 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5286 | /* confdefs.h. */
|
---|
| 5287 | _ACEOF
|
---|
| 5288 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5289 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5290 | /* end confdefs.h. */
|
---|
[3365] | 5291 | #include <stdio.h>
|
---|
[8063] | 5292 |
|
---|
| 5293 | _ACEOF
|
---|
[3365] | 5294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5295 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5296 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5297 | #define HAVE_FREAD_DECL 1
|
---|
[10192] | 5298 | _ACEOF
|
---|
[3365] | 5299 |
|
---|
| 5300 | fi
|
---|
| 5301 | rm -f conftest*
|
---|
| 5302 |
|
---|
[8063] | 5303 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5304 | /* confdefs.h. */
|
---|
| 5305 | _ACEOF
|
---|
| 5306 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5307 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5308 | /* end confdefs.h. */
|
---|
[3365] | 5309 | #include <stdio.h>
|
---|
[8063] | 5310 |
|
---|
| 5311 | _ACEOF
|
---|
[3365] | 5312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5313 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5314 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5315 | #define HAVE_FGETC_DECL 1
|
---|
[10192] | 5316 | _ACEOF
|
---|
[3365] | 5317 |
|
---|
| 5318 | fi
|
---|
| 5319 | rm -f conftest*
|
---|
| 5320 |
|
---|
[8063] | 5321 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5322 | /* confdefs.h. */
|
---|
| 5323 | _ACEOF
|
---|
| 5324 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5325 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5326 | /* end confdefs.h. */
|
---|
[3365] | 5327 | #include <sys/procfs.h>
|
---|
[8063] | 5328 |
|
---|
| 5329 | _ACEOF
|
---|
[3365] | 5330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5331 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5332 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5333 | #define HAVE_PR_BRKSIZE 1
|
---|
[10192] | 5334 | _ACEOF
|
---|
[3365] | 5335 |
|
---|
| 5336 | fi
|
---|
| 5337 | rm -f conftest*
|
---|
| 5338 |
|
---|
[10192] | 5339 |
|
---|
[3365] | 5340 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5341 | # for constant arguments. Useless!
|
---|
[10192] | 5342 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
[8063] | 5343 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5344 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5345 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5346 | else
|
---|
[8063] | 5347 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5348 | /* confdefs.h. */
|
---|
| 5349 | _ACEOF
|
---|
| 5350 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5351 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5352 | /* end confdefs.h. */
|
---|
[3365] | 5353 | #include <alloca.h>
|
---|
[8063] | 5354 | int
|
---|
| 5355 | main ()
|
---|
| 5356 | {
|
---|
| 5357 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5358 | ;
|
---|
| 5359 | return 0;
|
---|
| 5360 | }
|
---|
| 5361 | _ACEOF
|
---|
| 5362 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5364 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5365 | ac_status=$?
|
---|
[10192] | 5366 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5367 | rm -f conftest.er1
|
---|
| 5368 | cat conftest.err >&5
|
---|
| 5369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5370 | (exit $ac_status); } &&
|
---|
[10192] | 5371 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5372 | || test ! -s conftest.err'
|
---|
| 5373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5374 | (eval $ac_try) 2>&5
|
---|
| 5375 | ac_status=$?
|
---|
[10192] | 5376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5377 | (exit $ac_status); }; } &&
|
---|
| 5378 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5380 | (eval $ac_try) 2>&5
|
---|
| 5381 | ac_status=$?
|
---|
| 5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5383 | (exit $ac_status); }; }; then
|
---|
| 5384 | ac_cv_working_alloca_h=yes
|
---|
[3365] | 5385 | else
|
---|
[8063] | 5386 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5387 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5388 |
|
---|
[8063] | 5389 | ac_cv_working_alloca_h=no
|
---|
[3365] | 5390 | fi
|
---|
[10192] | 5391 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5392 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5393 | fi
|
---|
[10192] | 5394 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
[8063] | 5395 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5396 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[3365] | 5397 |
|
---|
[10192] | 5398 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5399 | #define HAVE_ALLOCA_H 1
|
---|
[10192] | 5400 | _ACEOF
|
---|
[3365] | 5401 |
|
---|
| 5402 | fi
|
---|
| 5403 |
|
---|
[10192] | 5404 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
[8063] | 5405 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5406 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5407 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5408 | else
|
---|
[8063] | 5409 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5410 | /* confdefs.h. */
|
---|
| 5411 | _ACEOF
|
---|
| 5412 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5413 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5414 | /* end confdefs.h. */
|
---|
[3365] | 5415 | #ifdef __GNUC__
|
---|
| 5416 | # define alloca __builtin_alloca
|
---|
| 5417 | #else
|
---|
| 5418 | # ifdef _MSC_VER
|
---|
| 5419 | # include <malloc.h>
|
---|
| 5420 | # define alloca _alloca
|
---|
| 5421 | # else
|
---|
| 5422 | # if HAVE_ALLOCA_H
|
---|
| 5423 | # include <alloca.h>
|
---|
| 5424 | # else
|
---|
| 5425 | # ifdef _AIX
|
---|
| 5426 | #pragma alloca
|
---|
| 5427 | # else
|
---|
| 5428 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5429 | char *alloca ();
|
---|
| 5430 | # endif
|
---|
| 5431 | # endif
|
---|
| 5432 | # endif
|
---|
| 5433 | # endif
|
---|
| 5434 | #endif
|
---|
| 5435 |
|
---|
[8063] | 5436 | int
|
---|
| 5437 | main ()
|
---|
| 5438 | {
|
---|
| 5439 | char *p = (char *) alloca (1);
|
---|
| 5440 | ;
|
---|
| 5441 | return 0;
|
---|
| 5442 | }
|
---|
| 5443 | _ACEOF
|
---|
| 5444 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5446 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5447 | ac_status=$?
|
---|
[10192] | 5448 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5449 | rm -f conftest.er1
|
---|
| 5450 | cat conftest.err >&5
|
---|
| 5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5452 | (exit $ac_status); } &&
|
---|
[10192] | 5453 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5454 | || test ! -s conftest.err'
|
---|
| 5455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5456 | (eval $ac_try) 2>&5
|
---|
| 5457 | ac_status=$?
|
---|
[10192] | 5458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5459 | (exit $ac_status); }; } &&
|
---|
| 5460 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5462 | (eval $ac_try) 2>&5
|
---|
| 5463 | ac_status=$?
|
---|
| 5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5465 | (exit $ac_status); }; }; then
|
---|
[3365] | 5466 | ac_cv_func_alloca_works=yes
|
---|
| 5467 | else
|
---|
[8063] | 5468 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5469 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5470 |
|
---|
[8063] | 5471 | ac_cv_func_alloca_works=no
|
---|
[3365] | 5472 | fi
|
---|
[10192] | 5473 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5474 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5475 | fi
|
---|
[10192] | 5476 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
[8063] | 5477 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[3365] | 5478 |
|
---|
| 5479 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8063] | 5480 |
|
---|
[10192] | 5481 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5482 | #define HAVE_ALLOCA 1
|
---|
[10192] | 5483 | _ACEOF
|
---|
[3365] | 5484 |
|
---|
[8063] | 5485 | else
|
---|
| 5486 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5487 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5488 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5489 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8059] | 5490 |
|
---|
[8063] | 5491 | ALLOCA=alloca.$ac_objext
|
---|
| 5492 |
|
---|
[10192] | 5493 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5494 | #define C_ALLOCA 1
|
---|
[10192] | 5495 | _ACEOF
|
---|
[3365] | 5496 |
|
---|
[10192] | 5497 |
|
---|
| 5498 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[8063] | 5499 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5500 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5501 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5502 | else
|
---|
[8063] | 5503 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5504 | /* confdefs.h. */
|
---|
| 5505 | _ACEOF
|
---|
| 5506 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5507 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5508 | /* end confdefs.h. */
|
---|
[3365] | 5509 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5510 | webecray
|
---|
| 5511 | #else
|
---|
| 5512 | wenotbecray
|
---|
| 5513 | #endif
|
---|
| 5514 |
|
---|
[8063] | 5515 | _ACEOF
|
---|
[3365] | 5516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5517 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[3365] | 5518 | ac_cv_os_cray=yes
|
---|
| 5519 | else
|
---|
| 5520 | ac_cv_os_cray=no
|
---|
| 5521 | fi
|
---|
| 5522 | rm -f conftest*
|
---|
| 5523 |
|
---|
| 5524 | fi
|
---|
[10192] | 5525 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
[8063] | 5526 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[3365] | 5527 | if test $ac_cv_os_cray = yes; then
|
---|
[8063] | 5528 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[10192] | 5529 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5530 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5531 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5532 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5533 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5534 | else
|
---|
[8063] | 5535 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5536 | /* confdefs.h. */
|
---|
| 5537 | _ACEOF
|
---|
| 5538 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5539 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5540 | /* end confdefs.h. */
|
---|
| 5541 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5542 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5543 | #define $ac_func innocuous_$ac_func
|
---|
| 5544 |
|
---|
[3365] | 5545 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5546 | which can conflict with char $ac_func (); below.
|
---|
| 5547 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5548 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5549 |
|
---|
| 5550 | #ifdef __STDC__
|
---|
| 5551 | # include <limits.h>
|
---|
| 5552 | #else
|
---|
| 5553 | # include <assert.h>
|
---|
| 5554 | #endif
|
---|
| 5555 |
|
---|
| 5556 | #undef $ac_func
|
---|
| 5557 |
|
---|
[3365] | 5558 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5559 | #ifdef __cplusplus
|
---|
| 5560 | extern "C"
|
---|
[10192] | 5561 | {
|
---|
[8063] | 5562 | #endif
|
---|
[3365] | 5563 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5564 | builtin and then its argument prototype would still apply. */
|
---|
| 5565 | char $ac_func ();
|
---|
[3365] | 5566 | /* The GNU C library defines this for functions which it implements
|
---|
| 5567 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5568 | something starting with __ and the normal name is an alias. */
|
---|
| 5569 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5570 | choke me
|
---|
| 5571 | #else
|
---|
[10192] | 5572 | char (*f) () = $ac_func;
|
---|
[3365] | 5573 | #endif
|
---|
[10192] | 5574 | #ifdef __cplusplus
|
---|
| 5575 | }
|
---|
| 5576 | #endif
|
---|
[3365] | 5577 |
|
---|
[10192] | 5578 | int
|
---|
| 5579 | main ()
|
---|
| 5580 | {
|
---|
| 5581 | return f != $ac_func;
|
---|
[8063] | 5582 | ;
|
---|
| 5583 | return 0;
|
---|
| 5584 | }
|
---|
| 5585 | _ACEOF
|
---|
| 5586 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5588 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5589 | ac_status=$?
|
---|
[10192] | 5590 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5591 | rm -f conftest.er1
|
---|
| 5592 | cat conftest.err >&5
|
---|
| 5593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5594 | (exit $ac_status); } &&
|
---|
[10192] | 5595 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5596 | || test ! -s conftest.err'
|
---|
| 5597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5598 | (eval $ac_try) 2>&5
|
---|
| 5599 | ac_status=$?
|
---|
[10192] | 5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5601 | (exit $ac_status); }; } &&
|
---|
| 5602 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5604 | (eval $ac_try) 2>&5
|
---|
| 5605 | ac_status=$?
|
---|
| 5606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5607 | (exit $ac_status); }; }; then
|
---|
[10192] | 5608 | eval "$as_ac_var=yes"
|
---|
[3365] | 5609 | else
|
---|
[8063] | 5610 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5611 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5612 |
|
---|
| 5613 | eval "$as_ac_var=no"
|
---|
[3365] | 5614 | fi
|
---|
[10192] | 5615 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5616 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5617 | fi
|
---|
[10192] | 5618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5620 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[3365] | 5621 |
|
---|
[10192] | 5622 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5623 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10192] | 5624 | _ACEOF
|
---|
[3365] | 5625 |
|
---|
[8063] | 5626 | break
|
---|
[3365] | 5627 | fi
|
---|
| 5628 |
|
---|
[8063] | 5629 | done
|
---|
[3365] | 5630 | fi
|
---|
| 5631 |
|
---|
[10192] | 5632 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
[8063] | 5633 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5634 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5635 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5636 | else
|
---|
| 5637 | if test "$cross_compiling" = yes; then
|
---|
| 5638 | ac_cv_c_stack_direction=0
|
---|
| 5639 | else
|
---|
[8063] | 5640 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5641 | /* confdefs.h. */
|
---|
| 5642 | _ACEOF
|
---|
| 5643 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5644 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5645 | /* end confdefs.h. */
|
---|
[8063] | 5646 | int
|
---|
[3365] | 5647 | find_stack_direction ()
|
---|
| 5648 | {
|
---|
| 5649 | static char *addr = 0;
|
---|
| 5650 | auto char dummy;
|
---|
| 5651 | if (addr == 0)
|
---|
| 5652 | {
|
---|
| 5653 | addr = &dummy;
|
---|
| 5654 | return find_stack_direction ();
|
---|
| 5655 | }
|
---|
| 5656 | else
|
---|
| 5657 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5658 | }
|
---|
[8063] | 5659 |
|
---|
| 5660 | int
|
---|
[3365] | 5661 | main ()
|
---|
| 5662 | {
|
---|
[8063] | 5663 | exit (find_stack_direction () < 0);
|
---|
[3365] | 5664 | }
|
---|
[8063] | 5665 | _ACEOF
|
---|
| 5666 | rm -f conftest$ac_exeext
|
---|
[10192] | 5667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 5668 | (eval $ac_link) 2>&5
|
---|
| 5669 | ac_status=$?
|
---|
[10192] | 5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 5672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5673 | (eval $ac_try) 2>&5
|
---|
| 5674 | ac_status=$?
|
---|
[10192] | 5675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5676 | (exit $ac_status); }; }; then
|
---|
[3365] | 5677 | ac_cv_c_stack_direction=1
|
---|
| 5678 | else
|
---|
[8063] | 5679 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5680 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5681 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5682 |
|
---|
| 5683 | ( exit $ac_status )
|
---|
[8063] | 5684 | ac_cv_c_stack_direction=-1
|
---|
[3365] | 5685 | fi
|
---|
[10192] | 5686 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5687 | fi
|
---|
| 5688 | fi
|
---|
[10192] | 5689 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
[8063] | 5690 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[3365] | 5691 |
|
---|
[10192] | 5692 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5693 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10192] | 5694 | _ACEOF
|
---|
[3365] | 5695 |
|
---|
[10192] | 5696 |
|
---|
[3365] | 5697 | fi
|
---|
| 5698 |
|
---|
[8063] | 5699 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[10192] | 5700 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
[8063] | 5701 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5702 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5703 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5704 | else
|
---|
| 5705 | ac_pattern="Autoconf.*'x'"
|
---|
[8063] | 5706 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5707 | /* confdefs.h. */
|
---|
| 5708 | _ACEOF
|
---|
| 5709 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5710 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5711 | /* end confdefs.h. */
|
---|
[3365] | 5712 | #include <sgtty.h>
|
---|
| 5713 | Autoconf TIOCGETP
|
---|
[8063] | 5714 | _ACEOF
|
---|
[3365] | 5715 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5716 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5717 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5718 | else
|
---|
| 5719 | ac_cv_prog_gcc_traditional=no
|
---|
| 5720 | fi
|
---|
| 5721 | rm -f conftest*
|
---|
| 5722 |
|
---|
[10192] | 5723 |
|
---|
[3365] | 5724 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[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. */
|
---|
[3365] | 5731 | #include <termio.h>
|
---|
| 5732 | Autoconf TCGETA
|
---|
[8063] | 5733 | _ACEOF
|
---|
[3365] | 5734 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5735 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5736 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5737 | fi
|
---|
| 5738 | rm -f conftest*
|
---|
| 5739 |
|
---|
| 5740 | fi
|
---|
| 5741 | fi
|
---|
[10192] | 5742 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[8063] | 5743 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[3365] | 5744 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5745 | CC="$CC -traditional"
|
---|
| 5746 | fi
|
---|
| 5747 | fi
|
---|
| 5748 |
|
---|
[10192] | 5749 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
[8063] | 5750 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5751 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5752 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5753 | else
|
---|
[8063] | 5754 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5755 | /* confdefs.h. */
|
---|
| 5756 | _ACEOF
|
---|
| 5757 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5758 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5759 | /* end confdefs.h. */
|
---|
[3365] | 5760 | #include <sys/types.h>
|
---|
| 5761 | #include <signal.h>
|
---|
| 5762 | #ifdef signal
|
---|
[8063] | 5763 | # undef signal
|
---|
[3365] | 5764 | #endif
|
---|
| 5765 | #ifdef __cplusplus
|
---|
| 5766 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5767 | #else
|
---|
| 5768 | void (*signal ()) ();
|
---|
| 5769 | #endif
|
---|
| 5770 |
|
---|
[8063] | 5771 | int
|
---|
| 5772 | main ()
|
---|
| 5773 | {
|
---|
[3365] | 5774 | int i;
|
---|
[8063] | 5775 | ;
|
---|
| 5776 | return 0;
|
---|
| 5777 | }
|
---|
| 5778 | _ACEOF
|
---|
| 5779 | rm -f conftest.$ac_objext
|
---|
[10192] | 5780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5781 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 5782 | ac_status=$?
|
---|
[10192] | 5783 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5784 | rm -f conftest.er1
|
---|
| 5785 | cat conftest.err >&5
|
---|
| 5786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5787 | (exit $ac_status); } &&
|
---|
[10192] | 5788 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5789 | || test ! -s conftest.err'
|
---|
| 5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5791 | (eval $ac_try) 2>&5
|
---|
| 5792 | ac_status=$?
|
---|
[10192] | 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5794 | (exit $ac_status); }; } &&
|
---|
| 5795 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5797 | (eval $ac_try) 2>&5
|
---|
| 5798 | ac_status=$?
|
---|
| 5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5800 | (exit $ac_status); }; }; then
|
---|
[3365] | 5801 | ac_cv_type_signal=void
|
---|
| 5802 | else
|
---|
[8063] | 5803 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5804 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5805 |
|
---|
[8063] | 5806 | ac_cv_type_signal=int
|
---|
[3365] | 5807 | fi
|
---|
[10192] | 5808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5809 | fi
|
---|
[10192] | 5810 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
[8063] | 5811 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[3365] | 5812 |
|
---|
[10192] | 5813 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5814 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10192] | 5815 | _ACEOF
|
---|
[3365] | 5816 |
|
---|
[10192] | 5817 |
|
---|
| 5818 |
|
---|
[8063] | 5819 | for ac_func in vprintf
|
---|
| 5820 | do
|
---|
[10192] | 5821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5822 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5824 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5826 | else
|
---|
[8063] | 5827 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5828 | /* confdefs.h. */
|
---|
| 5829 | _ACEOF
|
---|
| 5830 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5831 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5832 | /* end confdefs.h. */
|
---|
| 5833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5835 | #define $ac_func innocuous_$ac_func
|
---|
| 5836 |
|
---|
[3365] | 5837 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5838 | which can conflict with char $ac_func (); below.
|
---|
| 5839 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5840 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5841 |
|
---|
| 5842 | #ifdef __STDC__
|
---|
| 5843 | # include <limits.h>
|
---|
| 5844 | #else
|
---|
| 5845 | # include <assert.h>
|
---|
| 5846 | #endif
|
---|
| 5847 |
|
---|
| 5848 | #undef $ac_func
|
---|
| 5849 |
|
---|
[3365] | 5850 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5851 | #ifdef __cplusplus
|
---|
| 5852 | extern "C"
|
---|
[10192] | 5853 | {
|
---|
[8063] | 5854 | #endif
|
---|
[3365] | 5855 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5856 | builtin and then its argument prototype would still apply. */
|
---|
| 5857 | char $ac_func ();
|
---|
[3365] | 5858 | /* The GNU C library defines this for functions which it implements
|
---|
| 5859 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5860 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 5861 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[3365] | 5862 | choke me
|
---|
| 5863 | #else
|
---|
[10192] | 5864 | char (*f) () = $ac_func;
|
---|
[3365] | 5865 | #endif
|
---|
[10192] | 5866 | #ifdef __cplusplus
|
---|
| 5867 | }
|
---|
| 5868 | #endif
|
---|
[3365] | 5869 |
|
---|
[10192] | 5870 | int
|
---|
| 5871 | main ()
|
---|
| 5872 | {
|
---|
| 5873 | return f != $ac_func;
|
---|
[8063] | 5874 | ;
|
---|
| 5875 | return 0;
|
---|
| 5876 | }
|
---|
| 5877 | _ACEOF
|
---|
| 5878 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5880 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5881 | ac_status=$?
|
---|
[10192] | 5882 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5883 | rm -f conftest.er1
|
---|
| 5884 | cat conftest.err >&5
|
---|
| 5885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5886 | (exit $ac_status); } &&
|
---|
[10192] | 5887 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5888 | || test ! -s conftest.err'
|
---|
| 5889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5890 | (eval $ac_try) 2>&5
|
---|
| 5891 | ac_status=$?
|
---|
[10192] | 5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5893 | (exit $ac_status); }; } &&
|
---|
| 5894 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5896 | (eval $ac_try) 2>&5
|
---|
| 5897 | ac_status=$?
|
---|
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5899 | (exit $ac_status); }; }; then
|
---|
[10192] | 5900 | eval "$as_ac_var=yes"
|
---|
[3365] | 5901 | else
|
---|
[8063] | 5902 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5903 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5904 |
|
---|
| 5905 | eval "$as_ac_var=no"
|
---|
[3365] | 5906 | fi
|
---|
[10192] | 5907 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5908 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5909 | fi
|
---|
[10192] | 5910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5911 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5912 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5913 | cat >>confdefs.h <<_ACEOF
|
---|
| 5914 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5915 | _ACEOF
|
---|
[3365] | 5916 |
|
---|
[10192] | 5917 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
[8063] | 5918 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 5919 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 5920 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5921 | else
|
---|
[8063] | 5922 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5923 | /* confdefs.h. */
|
---|
| 5924 | _ACEOF
|
---|
| 5925 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5926 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5927 | /* end confdefs.h. */
|
---|
| 5928 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 5929 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5930 | #define _doprnt innocuous__doprnt
|
---|
| 5931 |
|
---|
[3365] | 5932 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5933 | which can conflict with char _doprnt (); below.
|
---|
| 5934 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5935 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5936 |
|
---|
| 5937 | #ifdef __STDC__
|
---|
| 5938 | # include <limits.h>
|
---|
| 5939 | #else
|
---|
| 5940 | # include <assert.h>
|
---|
| 5941 | #endif
|
---|
| 5942 |
|
---|
| 5943 | #undef _doprnt
|
---|
| 5944 |
|
---|
[3365] | 5945 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5946 | #ifdef __cplusplus
|
---|
| 5947 | extern "C"
|
---|
[10192] | 5948 | {
|
---|
[8063] | 5949 | #endif
|
---|
[3365] | 5950 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5951 | builtin and then its argument prototype would still apply. */
|
---|
| 5952 | char _doprnt ();
|
---|
[3365] | 5953 | /* The GNU C library defines this for functions which it implements
|
---|
| 5954 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5955 | something starting with __ and the normal name is an alias. */
|
---|
| 5956 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 5957 | choke me
|
---|
| 5958 | #else
|
---|
[10192] | 5959 | char (*f) () = _doprnt;
|
---|
[3365] | 5960 | #endif
|
---|
[10192] | 5961 | #ifdef __cplusplus
|
---|
| 5962 | }
|
---|
| 5963 | #endif
|
---|
[3365] | 5964 |
|
---|
[10192] | 5965 | int
|
---|
| 5966 | main ()
|
---|
| 5967 | {
|
---|
| 5968 | return f != _doprnt;
|
---|
[8063] | 5969 | ;
|
---|
| 5970 | return 0;
|
---|
| 5971 | }
|
---|
| 5972 | _ACEOF
|
---|
| 5973 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5975 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5976 | ac_status=$?
|
---|
[10192] | 5977 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5978 | rm -f conftest.er1
|
---|
| 5979 | cat conftest.err >&5
|
---|
| 5980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5981 | (exit $ac_status); } &&
|
---|
[10192] | 5982 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5983 | || test ! -s conftest.err'
|
---|
| 5984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5985 | (eval $ac_try) 2>&5
|
---|
| 5986 | ac_status=$?
|
---|
[10192] | 5987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5988 | (exit $ac_status); }; } &&
|
---|
| 5989 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5991 | (eval $ac_try) 2>&5
|
---|
| 5992 | ac_status=$?
|
---|
| 5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5994 | (exit $ac_status); }; }; then
|
---|
| 5995 | ac_cv_func__doprnt=yes
|
---|
[3365] | 5996 | else
|
---|
[8063] | 5997 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5998 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5999 |
|
---|
[8063] | 6000 | ac_cv_func__doprnt=no
|
---|
[3365] | 6001 | fi
|
---|
[10192] | 6002 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6003 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6004 | fi
|
---|
[10192] | 6005 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
[8063] | 6006 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6007 | if test $ac_cv_func__doprnt = yes; then
|
---|
[3365] | 6008 |
|
---|
[10192] | 6009 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6010 | #define HAVE_DOPRNT 1
|
---|
[10192] | 6011 | _ACEOF
|
---|
[3365] | 6012 |
|
---|
| 6013 | fi
|
---|
| 6014 |
|
---|
| 6015 | fi
|
---|
[8063] | 6016 | done
|
---|
[3365] | 6017 |
|
---|
[10192] | 6018 |
|
---|
| 6019 |
|
---|
| 6020 |
|
---|
| 6021 |
|
---|
| 6022 |
|
---|
| 6023 |
|
---|
| 6024 |
|
---|
| 6025 |
|
---|
| 6026 |
|
---|
| 6027 |
|
---|
| 6028 |
|
---|
[3365] | 6029 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 6030 | do
|
---|
[10192] | 6031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6032 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6034 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6035 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6036 | else
|
---|
[8063] | 6037 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6038 | /* confdefs.h. */
|
---|
| 6039 | _ACEOF
|
---|
| 6040 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6041 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6042 | /* end confdefs.h. */
|
---|
| 6043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6045 | #define $ac_func innocuous_$ac_func
|
---|
| 6046 |
|
---|
[3365] | 6047 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6048 | which can conflict with char $ac_func (); below.
|
---|
| 6049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6050 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6051 |
|
---|
| 6052 | #ifdef __STDC__
|
---|
| 6053 | # include <limits.h>
|
---|
| 6054 | #else
|
---|
| 6055 | # include <assert.h>
|
---|
| 6056 | #endif
|
---|
| 6057 |
|
---|
| 6058 | #undef $ac_func
|
---|
| 6059 |
|
---|
[3365] | 6060 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6061 | #ifdef __cplusplus
|
---|
| 6062 | extern "C"
|
---|
[10192] | 6063 | {
|
---|
[8063] | 6064 | #endif
|
---|
[3365] | 6065 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6066 | builtin and then its argument prototype would still apply. */
|
---|
| 6067 | char $ac_func ();
|
---|
[3365] | 6068 | /* The GNU C library defines this for functions which it implements
|
---|
| 6069 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6070 | something starting with __ and the normal name is an alias. */
|
---|
| 6071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6072 | choke me
|
---|
| 6073 | #else
|
---|
[10192] | 6074 | char (*f) () = $ac_func;
|
---|
[3365] | 6075 | #endif
|
---|
[10192] | 6076 | #ifdef __cplusplus
|
---|
| 6077 | }
|
---|
| 6078 | #endif
|
---|
[3365] | 6079 |
|
---|
[10192] | 6080 | int
|
---|
| 6081 | main ()
|
---|
| 6082 | {
|
---|
| 6083 | return f != $ac_func;
|
---|
[8063] | 6084 | ;
|
---|
| 6085 | return 0;
|
---|
| 6086 | }
|
---|
| 6087 | _ACEOF
|
---|
| 6088 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6090 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6091 | ac_status=$?
|
---|
[10192] | 6092 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6093 | rm -f conftest.er1
|
---|
| 6094 | cat conftest.err >&5
|
---|
| 6095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6096 | (exit $ac_status); } &&
|
---|
[10192] | 6097 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6098 | || test ! -s conftest.err'
|
---|
| 6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6100 | (eval $ac_try) 2>&5
|
---|
| 6101 | ac_status=$?
|
---|
[10192] | 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6103 | (exit $ac_status); }; } &&
|
---|
| 6104 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6106 | (eval $ac_try) 2>&5
|
---|
| 6107 | ac_status=$?
|
---|
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6109 | (exit $ac_status); }; }; then
|
---|
[10192] | 6110 | eval "$as_ac_var=yes"
|
---|
[3365] | 6111 | else
|
---|
[8063] | 6112 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6113 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6114 |
|
---|
| 6115 | eval "$as_ac_var=no"
|
---|
[3365] | 6116 | fi
|
---|
[10192] | 6117 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6118 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6119 | fi
|
---|
[10192] | 6120 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6121 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6122 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6123 | cat >>confdefs.h <<_ACEOF
|
---|
| 6124 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6125 | _ACEOF
|
---|
[8059] | 6126 |
|
---|
[3365] | 6127 | fi
|
---|
| 6128 | done
|
---|
| 6129 |
|
---|
[10192] | 6130 |
|
---|
| 6131 |
|
---|
| 6132 |
|
---|
[3365] | 6133 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6134 | do
|
---|
[10192] | 6135 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6136 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6137 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6138 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6139 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6140 | else
|
---|
[8063] | 6141 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6142 | /* confdefs.h. */
|
---|
| 6143 | _ACEOF
|
---|
| 6144 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6145 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6146 | /* end confdefs.h. */
|
---|
| 6147 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6148 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6149 | #define $ac_func innocuous_$ac_func
|
---|
| 6150 |
|
---|
[3365] | 6151 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6152 | which can conflict with char $ac_func (); below.
|
---|
| 6153 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6154 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6155 |
|
---|
| 6156 | #ifdef __STDC__
|
---|
| 6157 | # include <limits.h>
|
---|
| 6158 | #else
|
---|
| 6159 | # include <assert.h>
|
---|
| 6160 | #endif
|
---|
| 6161 |
|
---|
| 6162 | #undef $ac_func
|
---|
| 6163 |
|
---|
[3365] | 6164 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6165 | #ifdef __cplusplus
|
---|
| 6166 | extern "C"
|
---|
[10192] | 6167 | {
|
---|
[8063] | 6168 | #endif
|
---|
[3365] | 6169 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6170 | builtin and then its argument prototype would still apply. */
|
---|
| 6171 | char $ac_func ();
|
---|
[3365] | 6172 | /* The GNU C library defines this for functions which it implements
|
---|
| 6173 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6174 | something starting with __ and the normal name is an alias. */
|
---|
| 6175 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6176 | choke me
|
---|
| 6177 | #else
|
---|
[10192] | 6178 | char (*f) () = $ac_func;
|
---|
[3365] | 6179 | #endif
|
---|
[10192] | 6180 | #ifdef __cplusplus
|
---|
| 6181 | }
|
---|
| 6182 | #endif
|
---|
[3365] | 6183 |
|
---|
[10192] | 6184 | int
|
---|
| 6185 | main ()
|
---|
| 6186 | {
|
---|
| 6187 | return f != $ac_func;
|
---|
[8063] | 6188 | ;
|
---|
| 6189 | return 0;
|
---|
| 6190 | }
|
---|
| 6191 | _ACEOF
|
---|
| 6192 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6194 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6195 | ac_status=$?
|
---|
[10192] | 6196 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6197 | rm -f conftest.er1
|
---|
| 6198 | cat conftest.err >&5
|
---|
| 6199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6200 | (exit $ac_status); } &&
|
---|
[10192] | 6201 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6202 | || test ! -s conftest.err'
|
---|
| 6203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6204 | (eval $ac_try) 2>&5
|
---|
| 6205 | ac_status=$?
|
---|
[10192] | 6206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6207 | (exit $ac_status); }; } &&
|
---|
| 6208 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6210 | (eval $ac_try) 2>&5
|
---|
| 6211 | ac_status=$?
|
---|
| 6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6213 | (exit $ac_status); }; }; then
|
---|
[10192] | 6214 | eval "$as_ac_var=yes"
|
---|
[3365] | 6215 | else
|
---|
[8063] | 6216 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6217 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6218 |
|
---|
| 6219 | eval "$as_ac_var=no"
|
---|
[3365] | 6220 | fi
|
---|
[10192] | 6221 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6222 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6223 | fi
|
---|
[10192] | 6224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6225 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6226 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6227 | cat >>confdefs.h <<_ACEOF
|
---|
| 6228 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6229 | _ACEOF
|
---|
[8059] | 6230 |
|
---|
[3365] | 6231 | else
|
---|
[10192] | 6232 | case $LIBOBJS in
|
---|
| 6233 | "$ac_func.$ac_objext" | \
|
---|
| 6234 | *" $ac_func.$ac_objext" | \
|
---|
| 6235 | "$ac_func.$ac_objext "* | \
|
---|
| 6236 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6237 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6238 | esac
|
---|
| 6239 |
|
---|
[3365] | 6240 | fi
|
---|
| 6241 | done
|
---|
| 6242 |
|
---|
[10192] | 6243 |
|
---|
| 6244 |
|
---|
| 6245 |
|
---|
| 6246 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
[8063] | 6247 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6248 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6249 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 6250 | else
|
---|
[8063] | 6251 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6252 | /* confdefs.h. */
|
---|
| 6253 | _ACEOF
|
---|
| 6254 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6255 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6256 | /* end confdefs.h. */
|
---|
| 6257 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6258 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6259 | #define textdomain innocuous_textdomain
|
---|
| 6260 |
|
---|
[8059] | 6261 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6262 | which can conflict with char textdomain (); below.
|
---|
| 6263 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6264 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6265 |
|
---|
| 6266 | #ifdef __STDC__
|
---|
| 6267 | # include <limits.h>
|
---|
| 6268 | #else
|
---|
| 6269 | # include <assert.h>
|
---|
| 6270 | #endif
|
---|
| 6271 |
|
---|
| 6272 | #undef textdomain
|
---|
| 6273 |
|
---|
[8059] | 6274 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6275 | #ifdef __cplusplus
|
---|
| 6276 | extern "C"
|
---|
[10192] | 6277 | {
|
---|
[8063] | 6278 | #endif
|
---|
[8059] | 6279 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6280 | builtin and then its argument prototype would still apply. */
|
---|
[8059] | 6281 | char textdomain ();
|
---|
| 6282 | /* The GNU C library defines this for functions which it implements
|
---|
| 6283 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6284 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 6285 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[8059] | 6286 | choke me
|
---|
| 6287 | #else
|
---|
[10192] | 6288 | char (*f) () = textdomain;
|
---|
[8059] | 6289 | #endif
|
---|
[10192] | 6290 | #ifdef __cplusplus
|
---|
| 6291 | }
|
---|
| 6292 | #endif
|
---|
[8059] | 6293 |
|
---|
[10192] | 6294 | int
|
---|
| 6295 | main ()
|
---|
| 6296 | {
|
---|
| 6297 | return f != textdomain;
|
---|
[8063] | 6298 | ;
|
---|
| 6299 | return 0;
|
---|
| 6300 | }
|
---|
| 6301 | _ACEOF
|
---|
| 6302 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6304 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6305 | ac_status=$?
|
---|
[10192] | 6306 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6307 | rm -f conftest.er1
|
---|
| 6308 | cat conftest.err >&5
|
---|
| 6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6310 | (exit $ac_status); } &&
|
---|
[10192] | 6311 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6312 | || test ! -s conftest.err'
|
---|
| 6313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6314 | (eval $ac_try) 2>&5
|
---|
| 6315 | ac_status=$?
|
---|
[10192] | 6316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6317 | (exit $ac_status); }; } &&
|
---|
| 6318 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6320 | (eval $ac_try) 2>&5
|
---|
| 6321 | ac_status=$?
|
---|
| 6322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6323 | (exit $ac_status); }; }; then
|
---|
| 6324 | ac_cv_func_textdomain=yes
|
---|
[8059] | 6325 | else
|
---|
[8063] | 6326 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6327 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6328 |
|
---|
[8063] | 6329 | ac_cv_func_textdomain=no
|
---|
[8059] | 6330 | fi
|
---|
[10192] | 6331 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6332 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8059] | 6333 | fi
|
---|
[10192] | 6334 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
[8063] | 6335 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6336 | if test $ac_cv_func_textdomain = yes; then
|
---|
[10192] | 6337 | cat >>confdefs.h <<\_ACEOF
|
---|
[8059] | 6338 | #define ENABLE_NLS 1
|
---|
[10192] | 6339 | _ACEOF
|
---|
[8063] | 6340 |
|
---|
[8059] | 6341 | fi
|
---|
| 6342 |
|
---|
[10192] | 6343 |
|
---|
| 6344 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 6345 | # a non-standard Path
|
---|
[10917] | 6346 | # is there a better way to do this??
|
---|
| 6347 | echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
|
---|
| 6348 | echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
|
---|
| 6349 | # set defaults
|
---|
| 6350 | JNIINC=""
|
---|
| 6351 | JNISUFFIX="so"
|
---|
| 6352 | JNIFLAGS="-shared"
|
---|
| 6353 |
|
---|
[10192] | 6354 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[10917] | 6355 | echo "$as_me:$LINENO: result: Darwin" >&5
|
---|
| 6356 | echo "${ECHO_T}Darwin" >&6
|
---|
[10192] | 6357 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 6358 | JNISUFFIX="jnilib"
|
---|
[10917] | 6359 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10192] | 6360 | fi
|
---|
[10917] | 6361 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
| 6362 | echo "$as_me:$LINENO: result: Solaris" >&5
|
---|
| 6363 | echo "${ECHO_T}Solaris" >&6
|
---|
| 6364 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 6365 | fi
|
---|
| 6366 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
| 6367 | echo "$as_me:$LINENO: result: Linux" >&5
|
---|
| 6368 | echo "${ECHO_T}Linux" >&6
|
---|
| 6369 | JNIINC="-I\$(JAVA_HOME)/include/linux "
|
---|
| 6370 | fi
|
---|
[10192] | 6371 |
|
---|
| 6372 |
|
---|
| 6373 |
|
---|
| 6374 |
|
---|
[10917] | 6375 |
|
---|
[3365] | 6376 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6377 | # ---------------------------------------------------------------------------
|
---|
[10192] | 6378 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
[8063] | 6379 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[3365] | 6380 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[10192] | 6381 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6382 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6383 | case $LIBOBJS in
|
---|
| 6384 | "gmalloc.$ac_objext" | \
|
---|
| 6385 | *" gmalloc.$ac_objext" | \
|
---|
| 6386 | "gmalloc.$ac_objext "* | \
|
---|
| 6387 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6388 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6389 | esac
|
---|
| 6390 |
|
---|
| 6391 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6392 | #define HAVE_VALLOC 1
|
---|
[10192] | 6393 | _ACEOF
|
---|
[3365] | 6394 |
|
---|
| 6395 | else
|
---|
[10192] | 6396 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6397 | echo "${ECHO_T}no" >&6
|
---|
| 6398 |
|
---|
| 6399 | for ac_func in valloc
|
---|
[3365] | 6400 | do
|
---|
[10192] | 6401 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6402 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6403 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6404 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6405 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6406 | else
|
---|
[8063] | 6407 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6408 | /* confdefs.h. */
|
---|
| 6409 | _ACEOF
|
---|
| 6410 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6411 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6412 | /* end confdefs.h. */
|
---|
| 6413 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6414 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6415 | #define $ac_func innocuous_$ac_func
|
---|
| 6416 |
|
---|
[3365] | 6417 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6418 | which can conflict with char $ac_func (); below.
|
---|
| 6419 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6420 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6421 |
|
---|
| 6422 | #ifdef __STDC__
|
---|
| 6423 | # include <limits.h>
|
---|
| 6424 | #else
|
---|
| 6425 | # include <assert.h>
|
---|
| 6426 | #endif
|
---|
| 6427 |
|
---|
| 6428 | #undef $ac_func
|
---|
| 6429 |
|
---|
[3365] | 6430 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6431 | #ifdef __cplusplus
|
---|
| 6432 | extern "C"
|
---|
[10192] | 6433 | {
|
---|
[8063] | 6434 | #endif
|
---|
[3365] | 6435 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6436 | builtin and then its argument prototype would still apply. */
|
---|
| 6437 | char $ac_func ();
|
---|
[3365] | 6438 | /* The GNU C library defines this for functions which it implements
|
---|
| 6439 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6440 | something starting with __ and the normal name is an alias. */
|
---|
| 6441 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6442 | choke me
|
---|
| 6443 | #else
|
---|
[10192] | 6444 | char (*f) () = $ac_func;
|
---|
[3365] | 6445 | #endif
|
---|
[10192] | 6446 | #ifdef __cplusplus
|
---|
| 6447 | }
|
---|
| 6448 | #endif
|
---|
[3365] | 6449 |
|
---|
[10192] | 6450 | int
|
---|
| 6451 | main ()
|
---|
| 6452 | {
|
---|
| 6453 | return f != $ac_func;
|
---|
[8063] | 6454 | ;
|
---|
| 6455 | return 0;
|
---|
| 6456 | }
|
---|
| 6457 | _ACEOF
|
---|
| 6458 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6460 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6461 | ac_status=$?
|
---|
[10192] | 6462 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6463 | rm -f conftest.er1
|
---|
| 6464 | cat conftest.err >&5
|
---|
| 6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6466 | (exit $ac_status); } &&
|
---|
[10192] | 6467 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6468 | || test ! -s conftest.err'
|
---|
| 6469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6470 | (eval $ac_try) 2>&5
|
---|
| 6471 | ac_status=$?
|
---|
[10192] | 6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6473 | (exit $ac_status); }; } &&
|
---|
| 6474 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6476 | (eval $ac_try) 2>&5
|
---|
| 6477 | ac_status=$?
|
---|
| 6478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6479 | (exit $ac_status); }; }; then
|
---|
[10192] | 6480 | eval "$as_ac_var=yes"
|
---|
[3365] | 6481 | else
|
---|
[8063] | 6482 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6483 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6484 |
|
---|
| 6485 | eval "$as_ac_var=no"
|
---|
[3365] | 6486 | fi
|
---|
[10192] | 6487 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6488 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6489 | fi
|
---|
[10192] | 6490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6491 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6492 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6493 | cat >>confdefs.h <<_ACEOF
|
---|
| 6494 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6495 | _ACEOF
|
---|
[8059] | 6496 |
|
---|
[3365] | 6497 | fi
|
---|
| 6498 | done
|
---|
| 6499 |
|
---|
| 6500 | fi
|
---|
| 6501 |
|
---|
[10192] | 6502 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
[8063] | 6503 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6504 |
|
---|
[3365] | 6505 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6506 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6507 | withval="$with_dmalloc"
|
---|
| 6508 | if test "$withval" = yes; then
|
---|
[10192] | 6509 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6510 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6511 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6512 | #define WITH_DMALLOC 1
|
---|
[10192] | 6513 | _ACEOF
|
---|
[3365] | 6514 |
|
---|
| 6515 | LIBS="$LIBS -ldmalloc"
|
---|
| 6516 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6517 | else
|
---|
[10192] | 6518 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6519 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 6520 | fi
|
---|
| 6521 | else
|
---|
[10192] | 6522 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6523 | echo "${ECHO_T}no" >&6
|
---|
| 6524 | fi;
|
---|
[3365] | 6525 |
|
---|
[10192] | 6526 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
[8063] | 6527 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[3365] | 6528 |
|
---|
| 6529 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6530 | if test "${with_regex+set}" = set; then
|
---|
| 6531 | withval="$with_regex"
|
---|
| 6532 | if test "$withval" = yes; then
|
---|
| 6533 | ac_with_regex=1
|
---|
[10192] | 6534 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
[8063] | 6535 | echo "${ECHO_T}regex" >&6
|
---|
[10192] | 6536 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6537 | #define WITH_REGEX 1
|
---|
[10192] | 6538 | _ACEOF
|
---|
[3365] | 6539 |
|
---|
[10848] | 6540 | case $LIBOBJS in
|
---|
| 6541 | "regex.$ac_objext" | \
|
---|
| 6542 | *" regex.$ac_objext" | \
|
---|
| 6543 | "regex.$ac_objext "* | \
|
---|
| 6544 | *" regex.$ac_objext "* ) ;;
|
---|
| 6545 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6546 | esac
|
---|
| 6547 |
|
---|
[3365] | 6548 | fi
|
---|
[8063] | 6549 | fi;
|
---|
[3365] | 6550 | if test -z "$ac_with_regex"; then
|
---|
[10192] | 6551 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
[8063] | 6552 | echo "${ECHO_T}rx" >&6
|
---|
[10192] | 6553 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
[8063] | 6554 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6555 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6556 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6557 | else
|
---|
[8063] | 6558 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6559 | /* confdefs.h. */
|
---|
| 6560 | _ACEOF
|
---|
| 6561 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6562 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6563 | /* end confdefs.h. */
|
---|
| 6564 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6566 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6567 |
|
---|
[3365] | 6568 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6569 | which can conflict with char re_rx_search (); below.
|
---|
| 6570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6571 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6572 |
|
---|
| 6573 | #ifdef __STDC__
|
---|
| 6574 | # include <limits.h>
|
---|
| 6575 | #else
|
---|
| 6576 | # include <assert.h>
|
---|
| 6577 | #endif
|
---|
| 6578 |
|
---|
| 6579 | #undef re_rx_search
|
---|
| 6580 |
|
---|
[3365] | 6581 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6582 | #ifdef __cplusplus
|
---|
| 6583 | extern "C"
|
---|
[10192] | 6584 | {
|
---|
[8063] | 6585 | #endif
|
---|
[3365] | 6586 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6587 | builtin and then its argument prototype would still apply. */
|
---|
| 6588 | char re_rx_search ();
|
---|
[3365] | 6589 | /* The GNU C library defines this for functions which it implements
|
---|
| 6590 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6591 | something starting with __ and the normal name is an alias. */
|
---|
| 6592 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6593 | choke me
|
---|
| 6594 | #else
|
---|
[10192] | 6595 | char (*f) () = re_rx_search;
|
---|
[3365] | 6596 | #endif
|
---|
[10192] | 6597 | #ifdef __cplusplus
|
---|
| 6598 | }
|
---|
| 6599 | #endif
|
---|
[3365] | 6600 |
|
---|
[10192] | 6601 | int
|
---|
| 6602 | main ()
|
---|
| 6603 | {
|
---|
| 6604 | return f != re_rx_search;
|
---|
[8063] | 6605 | ;
|
---|
| 6606 | return 0;
|
---|
| 6607 | }
|
---|
| 6608 | _ACEOF
|
---|
| 6609 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6611 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6612 | ac_status=$?
|
---|
[10192] | 6613 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6614 | rm -f conftest.er1
|
---|
| 6615 | cat conftest.err >&5
|
---|
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6617 | (exit $ac_status); } &&
|
---|
[10192] | 6618 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6619 | || test ! -s conftest.err'
|
---|
| 6620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6621 | (eval $ac_try) 2>&5
|
---|
| 6622 | ac_status=$?
|
---|
[10192] | 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6624 | (exit $ac_status); }; } &&
|
---|
| 6625 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6627 | (eval $ac_try) 2>&5
|
---|
| 6628 | ac_status=$?
|
---|
| 6629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6630 | (exit $ac_status); }; }; then
|
---|
| 6631 | ac_cv_func_re_rx_search=yes
|
---|
[3365] | 6632 | else
|
---|
[8063] | 6633 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6634 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6635 |
|
---|
[8063] | 6636 | ac_cv_func_re_rx_search=no
|
---|
[3365] | 6637 | fi
|
---|
[10192] | 6638 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6639 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6640 | fi
|
---|
[10192] | 6641 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
[8063] | 6642 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6643 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[3365] | 6644 | :
|
---|
| 6645 | else
|
---|
[10192] | 6646 | echo "$as_me:$LINENO: checking for unsigned char *" >&5
|
---|
[8063] | 6647 | echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
|
---|
| 6648 | if test "${ac_cv_type_unsigned_char_p+set}" = set; then
|
---|
| 6649 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6650 | else
|
---|
[8063] | 6651 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6652 | /* confdefs.h. */
|
---|
| 6653 | _ACEOF
|
---|
| 6654 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6655 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6656 | /* end confdefs.h. */
|
---|
[8063] | 6657 | $ac_includes_default
|
---|
| 6658 | int
|
---|
| 6659 | main ()
|
---|
| 6660 | {
|
---|
| 6661 | if ((unsigned char * *) 0)
|
---|
| 6662 | return 0;
|
---|
| 6663 | if (sizeof (unsigned char *))
|
---|
| 6664 | return 0;
|
---|
| 6665 | ;
|
---|
| 6666 | return 0;
|
---|
| 6667 | }
|
---|
| 6668 | _ACEOF
|
---|
| 6669 | rm -f conftest.$ac_objext
|
---|
[10192] | 6670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6671 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6672 | ac_status=$?
|
---|
[10192] | 6673 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6674 | rm -f conftest.er1
|
---|
| 6675 | cat conftest.err >&5
|
---|
| 6676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6677 | (exit $ac_status); } &&
|
---|
[10192] | 6678 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6679 | || test ! -s conftest.err'
|
---|
| 6680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6681 | (eval $ac_try) 2>&5
|
---|
| 6682 | ac_status=$?
|
---|
[10192] | 6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6684 | (exit $ac_status); }; } &&
|
---|
| 6685 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6687 | (eval $ac_try) 2>&5
|
---|
| 6688 | ac_status=$?
|
---|
| 6689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6690 | (exit $ac_status); }; }; then
|
---|
| 6691 | ac_cv_type_unsigned_char_p=yes
|
---|
| 6692 | else
|
---|
| 6693 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6694 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6695 |
|
---|
[8063] | 6696 | ac_cv_type_unsigned_char_p=no
|
---|
| 6697 | fi
|
---|
[10192] | 6698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6699 | fi
|
---|
[10192] | 6700 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
|
---|
[8063] | 6701 | echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
|
---|
| 6702 |
|
---|
[10192] | 6703 | echo "$as_me:$LINENO: checking size of unsigned char *" >&5
|
---|
[8063] | 6704 | echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
|
---|
| 6705 | if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
|
---|
| 6706 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6707 | else
|
---|
| 6708 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
[10192] | 6709 | # The cast to unsigned long works around a bug in the HP C Compiler
|
---|
| 6710 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
| 6711 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
| 6712 | # This bug is HP SR number 8606223364.
|
---|
[3365] | 6713 | if test "$cross_compiling" = yes; then
|
---|
[8063] | 6714 | # Depending upon the size, compute the lo and hi bounds.
|
---|
| 6715 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6716 | /* confdefs.h. */
|
---|
| 6717 | _ACEOF
|
---|
| 6718 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6719 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6720 | /* end confdefs.h. */
|
---|
[8063] | 6721 | $ac_includes_default
|
---|
| 6722 | int
|
---|
| 6723 | main ()
|
---|
| 6724 | {
|
---|
[10192] | 6725 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= 0)];
|
---|
| 6726 | test_array [0] = 0
|
---|
| 6727 |
|
---|
[8063] | 6728 | ;
|
---|
| 6729 | return 0;
|
---|
| 6730 | }
|
---|
| 6731 | _ACEOF
|
---|
| 6732 | rm -f conftest.$ac_objext
|
---|
[10192] | 6733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6734 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6735 | ac_status=$?
|
---|
[10192] | 6736 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6737 | rm -f conftest.er1
|
---|
| 6738 | cat conftest.err >&5
|
---|
| 6739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6740 | (exit $ac_status); } &&
|
---|
[10192] | 6741 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6742 | || test ! -s conftest.err'
|
---|
| 6743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6744 | (eval $ac_try) 2>&5
|
---|
| 6745 | ac_status=$?
|
---|
[10192] | 6746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6747 | (exit $ac_status); }; } &&
|
---|
| 6748 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6750 | (eval $ac_try) 2>&5
|
---|
| 6751 | ac_status=$?
|
---|
| 6752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6753 | (exit $ac_status); }; }; then
|
---|
| 6754 | ac_lo=0 ac_mid=0
|
---|
| 6755 | while :; do
|
---|
| 6756 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6757 | /* confdefs.h. */
|
---|
| 6758 | _ACEOF
|
---|
| 6759 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6760 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6761 | /* end confdefs.h. */
|
---|
[8063] | 6762 | $ac_includes_default
|
---|
| 6763 | int
|
---|
| 6764 | main ()
|
---|
| 6765 | {
|
---|
[10192] | 6766 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 6767 | test_array [0] = 0
|
---|
| 6768 |
|
---|
[8063] | 6769 | ;
|
---|
| 6770 | return 0;
|
---|
| 6771 | }
|
---|
| 6772 | _ACEOF
|
---|
| 6773 | rm -f conftest.$ac_objext
|
---|
[10192] | 6774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6775 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6776 | ac_status=$?
|
---|
[10192] | 6777 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6778 | rm -f conftest.er1
|
---|
| 6779 | cat conftest.err >&5
|
---|
| 6780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6781 | (exit $ac_status); } &&
|
---|
[10192] | 6782 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6783 | || test ! -s conftest.err'
|
---|
| 6784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6785 | (eval $ac_try) 2>&5
|
---|
| 6786 | ac_status=$?
|
---|
[10192] | 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6788 | (exit $ac_status); }; } &&
|
---|
| 6789 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6791 | (eval $ac_try) 2>&5
|
---|
| 6792 | ac_status=$?
|
---|
| 6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6794 | (exit $ac_status); }; }; then
|
---|
| 6795 | ac_hi=$ac_mid; break
|
---|
[3365] | 6796 | else
|
---|
[8063] | 6797 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6798 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6799 |
|
---|
| 6800 | ac_lo=`expr $ac_mid + 1`
|
---|
| 6801 | if test $ac_lo -le $ac_mid; then
|
---|
| 6802 | ac_lo= ac_hi=
|
---|
| 6803 | break
|
---|
| 6804 | fi
|
---|
| 6805 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
[8063] | 6806 | fi
|
---|
[10192] | 6807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6808 | done
|
---|
| 6809 | else
|
---|
| 6810 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6811 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6812 |
|
---|
| 6813 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6814 | /* confdefs.h. */
|
---|
| 6815 | _ACEOF
|
---|
| 6816 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6817 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6818 | /* end confdefs.h. */
|
---|
| 6819 | $ac_includes_default
|
---|
| 6820 | int
|
---|
| 6821 | main ()
|
---|
| 6822 | {
|
---|
| 6823 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) < 0)];
|
---|
| 6824 | test_array [0] = 0
|
---|
| 6825 |
|
---|
| 6826 | ;
|
---|
| 6827 | return 0;
|
---|
| 6828 | }
|
---|
| 6829 | _ACEOF
|
---|
| 6830 | rm -f conftest.$ac_objext
|
---|
| 6831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6832 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6833 | ac_status=$?
|
---|
| 6834 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6835 | rm -f conftest.er1
|
---|
| 6836 | cat conftest.err >&5
|
---|
| 6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6838 | (exit $ac_status); } &&
|
---|
| 6839 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6840 | || test ! -s conftest.err'
|
---|
| 6841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6842 | (eval $ac_try) 2>&5
|
---|
| 6843 | ac_status=$?
|
---|
| 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6845 | (exit $ac_status); }; } &&
|
---|
| 6846 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6848 | (eval $ac_try) 2>&5
|
---|
| 6849 | ac_status=$?
|
---|
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6851 | (exit $ac_status); }; }; then
|
---|
| 6852 | ac_hi=-1 ac_mid=-1
|
---|
[8063] | 6853 | while :; do
|
---|
| 6854 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6855 | /* confdefs.h. */
|
---|
| 6856 | _ACEOF
|
---|
| 6857 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6858 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6859 | /* end confdefs.h. */
|
---|
[8063] | 6860 | $ac_includes_default
|
---|
| 6861 | int
|
---|
| 6862 | main ()
|
---|
[3365] | 6863 | {
|
---|
[10192] | 6864 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= $ac_mid)];
|
---|
| 6865 | test_array [0] = 0
|
---|
| 6866 |
|
---|
[8063] | 6867 | ;
|
---|
| 6868 | return 0;
|
---|
[3365] | 6869 | }
|
---|
[8063] | 6870 | _ACEOF
|
---|
| 6871 | rm -f conftest.$ac_objext
|
---|
[10192] | 6872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6873 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6874 | ac_status=$?
|
---|
[10192] | 6875 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6876 | rm -f conftest.er1
|
---|
| 6877 | cat conftest.err >&5
|
---|
| 6878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6879 | (exit $ac_status); } &&
|
---|
[10192] | 6880 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6881 | || test ! -s conftest.err'
|
---|
| 6882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6883 | (eval $ac_try) 2>&5
|
---|
| 6884 | ac_status=$?
|
---|
[10192] | 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6886 | (exit $ac_status); }; } &&
|
---|
| 6887 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6889 | (eval $ac_try) 2>&5
|
---|
| 6890 | ac_status=$?
|
---|
| 6891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6892 | (exit $ac_status); }; }; then
|
---|
| 6893 | ac_lo=$ac_mid; break
|
---|
[3365] | 6894 | else
|
---|
[8063] | 6895 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6896 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6897 |
|
---|
| 6898 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
| 6899 | if test $ac_mid -le $ac_hi; then
|
---|
| 6900 | ac_lo= ac_hi=
|
---|
| 6901 | break
|
---|
| 6902 | fi
|
---|
| 6903 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
[8063] | 6904 | fi
|
---|
[10192] | 6905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6906 | done
|
---|
[10192] | 6907 | else
|
---|
| 6908 | echo "$as_me: failed program was:" >&5
|
---|
| 6909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6910 |
|
---|
| 6911 | ac_lo= ac_hi=
|
---|
[8063] | 6912 | fi
|
---|
[10192] | 6913 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6914 | fi
|
---|
| 6915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6916 | # Binary search between lo and hi bounds.
|
---|
| 6917 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
| 6918 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
| 6919 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6920 | /* confdefs.h. */
|
---|
| 6921 | _ACEOF
|
---|
| 6922 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6923 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6924 | /* end confdefs.h. */
|
---|
[8063] | 6925 | $ac_includes_default
|
---|
| 6926 | int
|
---|
| 6927 | main ()
|
---|
| 6928 | {
|
---|
[10192] | 6929 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 6930 | test_array [0] = 0
|
---|
| 6931 |
|
---|
[8063] | 6932 | ;
|
---|
| 6933 | return 0;
|
---|
| 6934 | }
|
---|
| 6935 | _ACEOF
|
---|
| 6936 | rm -f conftest.$ac_objext
|
---|
[10192] | 6937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6938 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6939 | ac_status=$?
|
---|
[10192] | 6940 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6941 | rm -f conftest.er1
|
---|
| 6942 | cat conftest.err >&5
|
---|
| 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6944 | (exit $ac_status); } &&
|
---|
[10192] | 6945 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6946 | || test ! -s conftest.err'
|
---|
| 6947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6948 | (eval $ac_try) 2>&5
|
---|
| 6949 | ac_status=$?
|
---|
[10192] | 6950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6951 | (exit $ac_status); }; } &&
|
---|
| 6952 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6954 | (eval $ac_try) 2>&5
|
---|
| 6955 | ac_status=$?
|
---|
| 6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6957 | (exit $ac_status); }; }; then
|
---|
| 6958 | ac_hi=$ac_mid
|
---|
| 6959 | else
|
---|
| 6960 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6961 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6962 |
|
---|
| 6963 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
[8063] | 6964 | fi
|
---|
[10192] | 6965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6966 | done
|
---|
[10192] | 6967 | case $ac_lo in
|
---|
| 6968 | ?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
|
---|
| 6969 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6970 | See \`config.log' for more details." >&5
|
---|
| 6971 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6972 | See \`config.log' for more details." >&2;}
|
---|
| 6973 | { (exit 1); exit 1; }; } ;;
|
---|
| 6974 | esac
|
---|
[8063] | 6975 | else
|
---|
| 6976 | if test "$cross_compiling" = yes; then
|
---|
[10192] | 6977 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
---|
| 6978 | See \`config.log' for more details." >&5
|
---|
| 6979 | echo "$as_me: error: cannot run test program while cross compiling
|
---|
| 6980 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 6981 | { (exit 1); exit 1; }; }
|
---|
| 6982 | else
|
---|
| 6983 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6984 | /* confdefs.h. */
|
---|
| 6985 | _ACEOF
|
---|
| 6986 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6987 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6988 | /* end confdefs.h. */
|
---|
[8063] | 6989 | $ac_includes_default
|
---|
[10192] | 6990 | long longval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 6991 | unsigned long ulongval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 6992 | #include <stdio.h>
|
---|
| 6993 | #include <stdlib.h>
|
---|
[8063] | 6994 | int
|
---|
| 6995 | main ()
|
---|
| 6996 | {
|
---|
[10192] | 6997 |
|
---|
| 6998 | FILE *f = fopen ("conftest.val", "w");
|
---|
| 6999 | if (! f)
|
---|
| 7000 | exit (1);
|
---|
| 7001 | if (((long) (sizeof (unsigned char *))) < 0)
|
---|
| 7002 | {
|
---|
| 7003 | long i = longval ();
|
---|
| 7004 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 7005 | exit (1);
|
---|
| 7006 | fprintf (f, "%ld\n", i);
|
---|
| 7007 | }
|
---|
| 7008 | else
|
---|
| 7009 | {
|
---|
| 7010 | unsigned long i = ulongval ();
|
---|
| 7011 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 7012 | exit (1);
|
---|
| 7013 | fprintf (f, "%lu\n", i);
|
---|
| 7014 | }
|
---|
| 7015 | exit (ferror (f) || fclose (f) != 0);
|
---|
| 7016 |
|
---|
[8063] | 7017 | ;
|
---|
| 7018 | return 0;
|
---|
| 7019 | }
|
---|
| 7020 | _ACEOF
|
---|
| 7021 | rm -f conftest$ac_exeext
|
---|
[10192] | 7022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 7023 | (eval $ac_link) 2>&5
|
---|
| 7024 | ac_status=$?
|
---|
[10192] | 7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 7027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7028 | (eval $ac_try) 2>&5
|
---|
| 7029 | ac_status=$?
|
---|
[10192] | 7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7031 | (exit $ac_status); }; }; then
|
---|
| 7032 | ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
|
---|
| 7033 | else
|
---|
| 7034 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7035 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7036 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7037 |
|
---|
| 7038 | ( exit $ac_status )
|
---|
| 7039 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7040 | See \`config.log' for more details." >&5
|
---|
| 7041 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7042 | See \`config.log' for more details." >&2;}
|
---|
| 7043 | { (exit 1); exit 1; }; }
|
---|
[8063] | 7044 | fi
|
---|
[10192] | 7045 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 7046 | fi
|
---|
| 7047 | fi
|
---|
| 7048 | rm -f conftest.val
|
---|
| 7049 | else
|
---|
[8059] | 7050 | ac_cv_sizeof_unsigned_char_p=0
|
---|
[3365] | 7051 | fi
|
---|
| 7052 | fi
|
---|
[10192] | 7053 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
[8063] | 7054 | echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
|
---|
[10192] | 7055 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 7056 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
[10192] | 7057 | _ACEOF
|
---|
[3365] | 7058 |
|
---|
[10192] | 7059 |
|
---|
[3365] | 7060 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
| 7061 | then
|
---|
[10192] | 7062 | { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 7063 | find a local rx library and the one included with this
|
---|
| 7064 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
| 7065 | echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
| 7066 | find a local rx library and the one included with this
|
---|
| 7067 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
[10848] | 7068 | case $LIBOBJS in
|
---|
| 7069 | "regex.$ac_objext" | \
|
---|
| 7070 | *" regex.$ac_objext" | \
|
---|
| 7071 | "regex.$ac_objext "* | \
|
---|
| 7072 | *" regex.$ac_objext "* ) ;;
|
---|
| 7073 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 7074 | esac
|
---|
| 7075 |
|
---|
[3365] | 7076 | else
|
---|
[10848] | 7077 | case $LIBOBJS in
|
---|
| 7078 | "rx.$ac_objext" | \
|
---|
| 7079 | *" rx.$ac_objext" | \
|
---|
| 7080 | "rx.$ac_objext "* | \
|
---|
| 7081 | *" rx.$ac_objext "* ) ;;
|
---|
| 7082 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 7083 | esac
|
---|
| 7084 |
|
---|
[3365] | 7085 | fi
|
---|
[8063] | 7086 |
|
---|
[3365] | 7087 | fi
|
---|
| 7088 |
|
---|
| 7089 | fi
|
---|
| 7090 |
|
---|
[10192] | 7091 | echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
|
---|
[8063] | 7092 | echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
|
---|
| 7093 |
|
---|
| 7094 | # Check whether --with-gnu_readline or --without-gnu_readline was given.
|
---|
[3365] | 7095 | if test "${with_gnu_readline+set}" = set; then
|
---|
| 7096 | withval="$with_gnu_readline"
|
---|
| 7097 | if test "$withval" = yes; then
|
---|
[10192] | 7098 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 7099 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 7100 | ac_with_gnu_readline=1
|
---|
| 7101 | else
|
---|
[10192] | 7102 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7103 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 7104 | fi
|
---|
| 7105 | else
|
---|
[10192] | 7106 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7107 | echo "${ECHO_T}no" >&6
|
---|
| 7108 | fi;
|
---|
[3365] | 7109 |
|
---|
| 7110 | if test -n "$ac_with_gnu_readline"; then
|
---|
[10192] | 7111 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7112 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
[8063] | 7113 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7114 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7115 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 7116 | fi
|
---|
| 7117 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
| 7118 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[3365] | 7119 | else
|
---|
[10192] | 7120 | # Is the header compilable?
|
---|
| 7121 | echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
|
---|
| 7122 | echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
|
---|
| 7123 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7124 | /* confdefs.h. */
|
---|
| 7125 | _ACEOF
|
---|
| 7126 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7127 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7128 | /* end confdefs.h. */
|
---|
| 7129 | $ac_includes_default
|
---|
[3365] | 7130 | #include <readline/readline.h>
|
---|
[8063] | 7131 | _ACEOF
|
---|
[10192] | 7132 | rm -f conftest.$ac_objext
|
---|
| 7133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7134 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7135 | ac_status=$?
|
---|
| 7136 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7137 | rm -f conftest.er1
|
---|
| 7138 | cat conftest.err >&5
|
---|
| 7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7140 | (exit $ac_status); } &&
|
---|
| 7141 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7142 | || test ! -s conftest.err'
|
---|
| 7143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7144 | (eval $ac_try) 2>&5
|
---|
| 7145 | ac_status=$?
|
---|
| 7146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7147 | (exit $ac_status); }; } &&
|
---|
| 7148 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7150 | (eval $ac_try) 2>&5
|
---|
| 7151 | ac_status=$?
|
---|
| 7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7153 | (exit $ac_status); }; }; then
|
---|
| 7154 | ac_header_compiler=yes
|
---|
| 7155 | else
|
---|
| 7156 | echo "$as_me: failed program was:" >&5
|
---|
| 7157 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7158 |
|
---|
| 7159 | ac_header_compiler=no
|
---|
| 7160 | fi
|
---|
| 7161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7162 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 7163 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 7164 |
|
---|
| 7165 | # Is the header present?
|
---|
| 7166 | echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
|
---|
| 7167 | echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
|
---|
| 7168 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7169 | /* confdefs.h. */
|
---|
| 7170 | _ACEOF
|
---|
| 7171 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7172 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7173 | /* end confdefs.h. */
|
---|
| 7174 | #include <readline/readline.h>
|
---|
| 7175 | _ACEOF
|
---|
| 7176 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 7177 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 7178 | ac_status=$?
|
---|
[10192] | 7179 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 7180 | rm -f conftest.er1
|
---|
| 7181 | cat conftest.err >&5
|
---|
[10192] | 7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7183 | (exit $ac_status); } >/dev/null; then
|
---|
| 7184 | if test -s conftest.err; then
|
---|
| 7185 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 7186 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 7187 | else
|
---|
| 7188 | ac_cpp_err=
|
---|
| 7189 | fi
|
---|
[3365] | 7190 | else
|
---|
[8063] | 7191 | ac_cpp_err=yes
|
---|
| 7192 | fi
|
---|
| 7193 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 7194 | ac_header_preproc=yes
|
---|
[8063] | 7195 | else
|
---|
| 7196 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7197 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7198 |
|
---|
| 7199 | ac_header_preproc=no
|
---|
[3365] | 7200 | fi
|
---|
[8063] | 7201 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 7202 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 7203 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 7204 |
|
---|
| 7205 | # So? What about this header?
|
---|
| 7206 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 7207 | yes:no: )
|
---|
| 7208 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 7209 | echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 7210 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
|
---|
| 7211 | echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
|
---|
| 7212 | ac_header_preproc=yes
|
---|
| 7213 | ;;
|
---|
| 7214 | no:yes:* )
|
---|
| 7215 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
|
---|
| 7216 | echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
|
---|
| 7217 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
|
---|
| 7218 | echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
|
---|
| 7219 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
|
---|
| 7220 | echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
|
---|
| 7221 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 7222 | echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 7223 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
|
---|
| 7224 | echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 7225 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
|
---|
| 7226 | echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 7227 | (
|
---|
| 7228 | cat <<\_ASBOX
|
---|
| 7229 | ## ------------------------------------------ ##
|
---|
| 7230 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 7231 | ## ------------------------------------------ ##
|
---|
| 7232 | _ASBOX
|
---|
| 7233 | ) |
|
---|
| 7234 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 7235 | ;;
|
---|
| 7236 | esac
|
---|
| 7237 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
| 7238 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7239 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7240 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7241 | else
|
---|
| 7242 | ac_cv_header_readline_readline_h=$ac_header_preproc
|
---|
[3365] | 7243 | fi
|
---|
[10192] | 7244 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
[8063] | 7245 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[10192] | 7246 |
|
---|
| 7247 | fi
|
---|
[8063] | 7248 | if test $ac_cv_header_readline_readline_h = yes; then
|
---|
[3365] | 7249 | ac_mg_readline_header_found=1
|
---|
| 7250 | else
|
---|
[10192] | 7251 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 7252 | GNU readline support" >&5
|
---|
| 7253 | echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
| 7254 | GNU readline support" >&2;}
|
---|
[3365] | 7255 | fi
|
---|
| 7256 |
|
---|
[10192] | 7257 |
|
---|
[3365] | 7258 | if test -n "$ac_mg_readline_header_found"; then
|
---|
| 7259 | # first check whether we can find the readline library itself
|
---|
[10192] | 7260 | echo "$as_me:$LINENO: checking for main in -lreadline" >&5
|
---|
[8063] | 7261 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
|
---|
| 7262 | if test "${ac_cv_lib_readline_main+set}" = set; then
|
---|
| 7263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7264 | else
|
---|
[8063] | 7265 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7266 | LIBS="-lreadline $LIBS"
|
---|
[8063] | 7267 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7268 | /* confdefs.h. */
|
---|
| 7269 | _ACEOF
|
---|
| 7270 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7271 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7272 | /* end confdefs.h. */
|
---|
[3365] | 7273 |
|
---|
[10192] | 7274 |
|
---|
[8063] | 7275 | int
|
---|
| 7276 | main ()
|
---|
| 7277 | {
|
---|
| 7278 | main ();
|
---|
| 7279 | ;
|
---|
| 7280 | return 0;
|
---|
| 7281 | }
|
---|
| 7282 | _ACEOF
|
---|
| 7283 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7285 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7286 | ac_status=$?
|
---|
[10192] | 7287 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7288 | rm -f conftest.er1
|
---|
| 7289 | cat conftest.err >&5
|
---|
| 7290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7291 | (exit $ac_status); } &&
|
---|
[10192] | 7292 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7293 | || test ! -s conftest.err'
|
---|
| 7294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7295 | (eval $ac_try) 2>&5
|
---|
| 7296 | ac_status=$?
|
---|
[10192] | 7297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7298 | (exit $ac_status); }; } &&
|
---|
| 7299 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7301 | (eval $ac_try) 2>&5
|
---|
| 7302 | ac_status=$?
|
---|
| 7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7304 | (exit $ac_status); }; }; then
|
---|
| 7305 | ac_cv_lib_readline_main=yes
|
---|
[3365] | 7306 | else
|
---|
[8063] | 7307 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7308 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7309 |
|
---|
[8063] | 7310 | ac_cv_lib_readline_main=no
|
---|
[3365] | 7311 | fi
|
---|
[10192] | 7312 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7313 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7314 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7315 | fi
|
---|
[10192] | 7316 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
|
---|
[8063] | 7317 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
|
---|
| 7318 | if test $ac_cv_lib_readline_main = yes; then
|
---|
[3365] | 7319 | ac_mg_readline_lib_found=1
|
---|
[10192] | 7320 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7321 | #define WITH_GNU_READLINE 1
|
---|
[10192] | 7322 | _ACEOF
|
---|
[3365] | 7323 |
|
---|
| 7324 | LIBS="$LIBS -lreadline"
|
---|
| 7325 | else
|
---|
[10192] | 7326 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 7327 | GNU readline support" >&5
|
---|
| 7328 | echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
| 7329 | GNU readline support" >&2;}
|
---|
[3365] | 7330 | fi
|
---|
| 7331 |
|
---|
| 7332 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
[8063] | 7333 | # on some systems, readline needs curses. It is difficult to
|
---|
[3365] | 7334 | # determine whether this is necessary on the current system,
|
---|
| 7335 | # since other undefined symbols can be turned up by an
|
---|
| 7336 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
| 7337 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
| 7338 | # we just bung it on and hope for the best.
|
---|
[10192] | 7339 | echo "$as_me:$LINENO: checking for main in -lcurses" >&5
|
---|
[8063] | 7340 | echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
|
---|
| 7341 | if test "${ac_cv_lib_curses_main+set}" = set; then
|
---|
| 7342 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7343 | else
|
---|
[8063] | 7344 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7345 | LIBS="-lcurses $LIBS"
|
---|
[8063] | 7346 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7347 | /* confdefs.h. */
|
---|
| 7348 | _ACEOF
|
---|
| 7349 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7350 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7351 | /* end confdefs.h. */
|
---|
[3365] | 7352 |
|
---|
[10192] | 7353 |
|
---|
[8063] | 7354 | int
|
---|
| 7355 | main ()
|
---|
| 7356 | {
|
---|
| 7357 | main ();
|
---|
| 7358 | ;
|
---|
| 7359 | return 0;
|
---|
| 7360 | }
|
---|
| 7361 | _ACEOF
|
---|
| 7362 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7364 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7365 | ac_status=$?
|
---|
[10192] | 7366 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7367 | rm -f conftest.er1
|
---|
| 7368 | cat conftest.err >&5
|
---|
| 7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7370 | (exit $ac_status); } &&
|
---|
[10192] | 7371 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7372 | || test ! -s conftest.err'
|
---|
| 7373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7374 | (eval $ac_try) 2>&5
|
---|
| 7375 | ac_status=$?
|
---|
[10192] | 7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7377 | (exit $ac_status); }; } &&
|
---|
| 7378 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7380 | (eval $ac_try) 2>&5
|
---|
| 7381 | ac_status=$?
|
---|
| 7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7383 | (exit $ac_status); }; }; then
|
---|
| 7384 | ac_cv_lib_curses_main=yes
|
---|
[3365] | 7385 | else
|
---|
[8063] | 7386 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7387 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7388 |
|
---|
[8063] | 7389 | ac_cv_lib_curses_main=no
|
---|
[3365] | 7390 | fi
|
---|
[10192] | 7391 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7392 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7393 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7394 | fi
|
---|
[10192] | 7395 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
|
---|
[8063] | 7396 | echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
|
---|
| 7397 | if test $ac_cv_lib_curses_main = yes; then
|
---|
[3365] | 7398 | LIBS="$LIBS -lcurses"
|
---|
| 7399 | fi
|
---|
| 7400 |
|
---|
| 7401 | fi
|
---|
| 7402 | fi
|
---|
| 7403 | fi
|
---|
| 7404 |
|
---|
[10192] | 7405 |
|
---|
[10848] | 7406 | # text for endianness
|
---|
| 7407 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7408 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7409 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7410 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7411 | else
|
---|
| 7412 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7413 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7414 | /* confdefs.h. */
|
---|
| 7415 | _ACEOF
|
---|
| 7416 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7417 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7418 | /* end confdefs.h. */
|
---|
| 7419 | #include <sys/types.h>
|
---|
| 7420 | #include <sys/param.h>
|
---|
| 7421 |
|
---|
| 7422 | int
|
---|
| 7423 | main ()
|
---|
| 7424 | {
|
---|
| 7425 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7426 | bogus endian macros
|
---|
| 7427 | #endif
|
---|
| 7428 |
|
---|
| 7429 | ;
|
---|
| 7430 | return 0;
|
---|
| 7431 | }
|
---|
| 7432 | _ACEOF
|
---|
| 7433 | rm -f conftest.$ac_objext
|
---|
| 7434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7435 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7436 | ac_status=$?
|
---|
| 7437 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7438 | rm -f conftest.er1
|
---|
| 7439 | cat conftest.err >&5
|
---|
| 7440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7441 | (exit $ac_status); } &&
|
---|
| 7442 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7443 | || test ! -s conftest.err'
|
---|
| 7444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7445 | (eval $ac_try) 2>&5
|
---|
| 7446 | ac_status=$?
|
---|
| 7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7448 | (exit $ac_status); }; } &&
|
---|
| 7449 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7451 | (eval $ac_try) 2>&5
|
---|
| 7452 | ac_status=$?
|
---|
| 7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7454 | (exit $ac_status); }; }; then
|
---|
| 7455 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7456 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7457 | /* confdefs.h. */
|
---|
| 7458 | _ACEOF
|
---|
| 7459 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7460 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7461 | /* end confdefs.h. */
|
---|
| 7462 | #include <sys/types.h>
|
---|
| 7463 | #include <sys/param.h>
|
---|
| 7464 |
|
---|
| 7465 | int
|
---|
| 7466 | main ()
|
---|
| 7467 | {
|
---|
| 7468 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7469 | not big endian
|
---|
| 7470 | #endif
|
---|
| 7471 |
|
---|
| 7472 | ;
|
---|
| 7473 | return 0;
|
---|
| 7474 | }
|
---|
| 7475 | _ACEOF
|
---|
| 7476 | rm -f conftest.$ac_objext
|
---|
| 7477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7478 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7479 | ac_status=$?
|
---|
| 7480 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7481 | rm -f conftest.er1
|
---|
| 7482 | cat conftest.err >&5
|
---|
| 7483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7484 | (exit $ac_status); } &&
|
---|
| 7485 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7486 | || test ! -s conftest.err'
|
---|
| 7487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7488 | (eval $ac_try) 2>&5
|
---|
| 7489 | ac_status=$?
|
---|
| 7490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7491 | (exit $ac_status); }; } &&
|
---|
| 7492 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7494 | (eval $ac_try) 2>&5
|
---|
| 7495 | ac_status=$?
|
---|
| 7496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7497 | (exit $ac_status); }; }; then
|
---|
| 7498 | ac_cv_c_bigendian=yes
|
---|
| 7499 | else
|
---|
| 7500 | echo "$as_me: failed program was:" >&5
|
---|
| 7501 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7502 |
|
---|
| 7503 | ac_cv_c_bigendian=no
|
---|
| 7504 | fi
|
---|
| 7505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7506 | else
|
---|
| 7507 | echo "$as_me: failed program was:" >&5
|
---|
| 7508 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7509 |
|
---|
| 7510 | # It does not; compile a test program.
|
---|
| 7511 | if test "$cross_compiling" = yes; then
|
---|
| 7512 | # try to guess the endianness by grepping values into an object file
|
---|
| 7513 | ac_cv_c_bigendian=unknown
|
---|
| 7514 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7515 | /* confdefs.h. */
|
---|
| 7516 | _ACEOF
|
---|
| 7517 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7518 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7519 | /* end confdefs.h. */
|
---|
| 7520 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7521 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7522 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7523 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7524 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7525 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7526 | int
|
---|
| 7527 | main ()
|
---|
| 7528 | {
|
---|
| 7529 | _ascii (); _ebcdic ();
|
---|
| 7530 | ;
|
---|
| 7531 | return 0;
|
---|
| 7532 | }
|
---|
| 7533 | _ACEOF
|
---|
| 7534 | rm -f conftest.$ac_objext
|
---|
| 7535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7536 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7537 | ac_status=$?
|
---|
| 7538 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7539 | rm -f conftest.er1
|
---|
| 7540 | cat conftest.err >&5
|
---|
| 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7542 | (exit $ac_status); } &&
|
---|
| 7543 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7544 | || test ! -s conftest.err'
|
---|
| 7545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7546 | (eval $ac_try) 2>&5
|
---|
| 7547 | ac_status=$?
|
---|
| 7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7549 | (exit $ac_status); }; } &&
|
---|
| 7550 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7552 | (eval $ac_try) 2>&5
|
---|
| 7553 | ac_status=$?
|
---|
| 7554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7555 | (exit $ac_status); }; }; then
|
---|
| 7556 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7557 | ac_cv_c_bigendian=yes
|
---|
| 7558 | fi
|
---|
| 7559 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7560 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7561 | ac_cv_c_bigendian=no
|
---|
| 7562 | else
|
---|
| 7563 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7564 | ac_cv_c_bigendian=unknown
|
---|
| 7565 | fi
|
---|
| 7566 | fi
|
---|
| 7567 | else
|
---|
| 7568 | echo "$as_me: failed program was:" >&5
|
---|
| 7569 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7570 |
|
---|
| 7571 | fi
|
---|
| 7572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7573 | else
|
---|
| 7574 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7575 | /* confdefs.h. */
|
---|
| 7576 | _ACEOF
|
---|
| 7577 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7578 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7579 | /* end confdefs.h. */
|
---|
| 7580 | int
|
---|
| 7581 | main ()
|
---|
| 7582 | {
|
---|
| 7583 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7584 | union
|
---|
| 7585 | {
|
---|
| 7586 | long l;
|
---|
| 7587 | char c[sizeof (long)];
|
---|
| 7588 | } u;
|
---|
| 7589 | u.l = 1;
|
---|
| 7590 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7591 | }
|
---|
| 7592 | _ACEOF
|
---|
| 7593 | rm -f conftest$ac_exeext
|
---|
| 7594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7595 | (eval $ac_link) 2>&5
|
---|
| 7596 | ac_status=$?
|
---|
| 7597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7600 | (eval $ac_try) 2>&5
|
---|
| 7601 | ac_status=$?
|
---|
| 7602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7603 | (exit $ac_status); }; }; then
|
---|
| 7604 | ac_cv_c_bigendian=no
|
---|
| 7605 | else
|
---|
| 7606 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7607 | echo "$as_me: failed program was:" >&5
|
---|
| 7608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7609 |
|
---|
| 7610 | ( exit $ac_status )
|
---|
| 7611 | ac_cv_c_bigendian=yes
|
---|
| 7612 | fi
|
---|
| 7613 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7614 | fi
|
---|
| 7615 | fi
|
---|
| 7616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7617 | fi
|
---|
| 7618 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7619 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7620 | case $ac_cv_c_bigendian in
|
---|
| 7621 | yes)
|
---|
| 7622 |
|
---|
| 7623 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7624 | #define WORDS_BIGENDIAN 1
|
---|
| 7625 | _ACEOF
|
---|
| 7626 | ;;
|
---|
| 7627 | no)
|
---|
| 7628 | ;;
|
---|
| 7629 | *)
|
---|
| 7630 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7631 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7632 | echo "$as_me: error: unknown endianness
|
---|
| 7633 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7634 | { (exit 1); exit 1; }; } ;;
|
---|
| 7635 | esac
|
---|
| 7636 |
|
---|
| 7637 |
|
---|
[3365] | 7638 | # ---------------------------------------------------------------------------
|
---|
| 7639 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[10192] | 7640 | case $LIBOBJS in
|
---|
| 7641 | "xmalloc.$ac_objext" | \
|
---|
| 7642 | *" xmalloc.$ac_objext" | \
|
---|
| 7643 | "xmalloc.$ac_objext "* | \
|
---|
| 7644 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 7645 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 7646 | esac
|
---|
| 7647 |
|
---|
| 7648 | case $LIBOBJS in
|
---|
| 7649 | "error.$ac_objext" | \
|
---|
| 7650 | *" error.$ac_objext" | \
|
---|
| 7651 | "error.$ac_objext "* | \
|
---|
| 7652 | *" error.$ac_objext "* ) ;;
|
---|
| 7653 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7654 | esac
|
---|
| 7655 |
|
---|
[3365] | 7656 | fi
|
---|
| 7657 |
|
---|
[10192] | 7658 |
|
---|
[3365] | 7659 | # ---------------------------------------------------------------------------
|
---|
| 7660 | # see if the user wants to override use of long long
|
---|
| 7661 | # Check whether --enable-override-longlong or --disable-override-longlong was given.
|
---|
| 7662 | if test "${enable_override_longlong+set}" = set; then
|
---|
| 7663 | enableval="$enable_override_longlong"
|
---|
[10192] | 7664 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7665 | #define DISABLE_LONG_LONG 1
|
---|
[10192] | 7666 | _ACEOF
|
---|
[3365] | 7667 |
|
---|
[8063] | 7668 | fi;
|
---|
[3365] | 7669 |
|
---|
[10848] | 7670 |
|
---|
[3365] | 7671 | # ---------------------------------------------------------------------------
|
---|
| 7672 |
|
---|
[10192] | 7673 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
| 7674 | ac_config_commands="$ac_config_commands default"
|
---|
[8063] | 7675 | cat >confcache <<\_ACEOF
|
---|
[3365] | 7676 | # This file is a shell script that caches the results of configure
|
---|
| 7677 | # tests run on this system so they can be shared between configure
|
---|
[8063] | 7678 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7679 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7680 | # want to keep, you may remove or edit it.
|
---|
[3365] | 7681 | #
|
---|
[8063] | 7682 | # config.status only pays attention to the cache file if you give it
|
---|
| 7683 | # the --recheck option to rerun configure.
|
---|
[3365] | 7684 | #
|
---|
[10192] | 7685 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[8063] | 7686 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7687 | # following values.
|
---|
| 7688 |
|
---|
| 7689 | _ACEOF
|
---|
| 7690 |
|
---|
[3365] | 7691 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7692 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7693 | # So, don't put newlines in cache variables' values.
|
---|
| 7694 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7695 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8063] | 7696 | {
|
---|
| 7697 | (set) 2>&1 |
|
---|
| 7698 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7699 | *ac_space=\ *)
|
---|
| 7700 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7701 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7702 | sed -n \
|
---|
[10192] | 7703 | "s/'/'\\\\''/g;
|
---|
| 7704 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[8063] | 7705 | ;;
|
---|
| 7706 | *)
|
---|
| 7707 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7708 | sed -n \
|
---|
[10192] | 7709 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 7710 | ;;
|
---|
| 7711 | esac;
|
---|
| 7712 | } |
|
---|
| 7713 | sed '
|
---|
| 7714 | t clear
|
---|
| 7715 | : clear
|
---|
| 7716 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7717 | t end
|
---|
| 7718 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7719 | : end' >>confcache
|
---|
[10192] | 7720 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[3365] | 7721 | if test -w $cache_file; then
|
---|
[8063] | 7722 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7723 | cat confcache >$cache_file
|
---|
[3365] | 7724 | else
|
---|
| 7725 | echo "not updating unwritable cache $cache_file"
|
---|
| 7726 | fi
|
---|
| 7727 | fi
|
---|
| 7728 | rm -f confcache
|
---|
| 7729 |
|
---|
| 7730 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7731 | # Let make expand exec_prefix.
|
---|
| 7732 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7733 |
|
---|
[8063] | 7734 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7735 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7736 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7737 | # (actually we leave an empty line to preserve line numbers).
|
---|
[3365] | 7738 | if test "x$srcdir" = x.; then
|
---|
[10192] | 7739 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
[8063] | 7740 | s/:*\$(srcdir):*/:/;
|
---|
| 7741 | s/:*\${srcdir}:*/:/;
|
---|
| 7742 | s/:*@srcdir@:*/:/;
|
---|
[10192] | 7743 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
[8063] | 7744 | s/:*$//;
|
---|
[10192] | 7745 | s/^[^=]*=[ ]*$//;
|
---|
[8063] | 7746 | }'
|
---|
[3365] | 7747 | fi
|
---|
| 7748 |
|
---|
| 7749 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7750 |
|
---|
[10192] | 7751 | ac_libobjs=
|
---|
| 7752 | ac_ltlibobjs=
|
---|
| 7753 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7754 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7755 | ac_i=`echo "$ac_i" |
|
---|
| 7756 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7757 | # 2. Add them.
|
---|
| 7758 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7759 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7760 | done
|
---|
| 7761 | LIBOBJS=$ac_libobjs
|
---|
| 7762 |
|
---|
| 7763 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7764 |
|
---|
| 7765 |
|
---|
| 7766 |
|
---|
[3365] | 7767 | : ${CONFIG_STATUS=./config.status}
|
---|
[8063] | 7768 | ac_clean_files_save=$ac_clean_files
|
---|
| 7769 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[10192] | 7770 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
[8063] | 7771 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7772 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7773 | #! $SHELL
|
---|
[10192] | 7774 | # Generated by $as_me.
|
---|
[3365] | 7775 | # Run this file to recreate the current configuration.
|
---|
| 7776 | # Compiler output produced by configure, useful for debugging
|
---|
[8063] | 7777 | # configure, is in config.log if it exists.
|
---|
[3365] | 7778 |
|
---|
[8063] | 7779 | debug=false
|
---|
[10192] | 7780 | ac_cs_recheck=false
|
---|
| 7781 | ac_cs_silent=false
|
---|
[8063] | 7782 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7783 | _ACEOF
|
---|
| 7784 |
|
---|
| 7785 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[10192] | 7786 | ## --------------------- ##
|
---|
| 7787 | ## M4sh Initialization. ##
|
---|
| 7788 | ## --------------------- ##
|
---|
| 7789 |
|
---|
[8063] | 7790 | # Be Bourne compatible
|
---|
| 7791 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7792 | emulate sh
|
---|
| 7793 | NULLCMD=:
|
---|
[10192] | 7794 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7795 | # is contrary to our usage. Disable this feature.
|
---|
| 7796 | alias -g '${1+"$@"}'='"$@"'
|
---|
[8063] | 7797 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7798 | set -o posix
|
---|
| 7799 | fi
|
---|
[10192] | 7800 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8063] | 7801 |
|
---|
[10192] | 7802 | # Support unset when possible.
|
---|
| 7803 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7804 | as_unset=unset
|
---|
| 7805 | else
|
---|
| 7806 | as_unset=false
|
---|
| 7807 | fi
|
---|
| 7808 |
|
---|
| 7809 |
|
---|
| 7810 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7811 | $as_unset ENV MAIL MAILPATH
|
---|
| 7812 | PS1='$ '
|
---|
| 7813 | PS2='> '
|
---|
| 7814 | PS4='+ '
|
---|
| 7815 |
|
---|
| 7816 | # NLS nuisances.
|
---|
| 7817 | for as_var in \
|
---|
| 7818 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7819 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7820 | LC_TELEPHONE LC_TIME
|
---|
| 7821 | do
|
---|
| 7822 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7823 | eval $as_var=C; export $as_var
|
---|
| 7824 | else
|
---|
| 7825 | $as_unset $as_var
|
---|
| 7826 | fi
|
---|
| 7827 | done
|
---|
| 7828 |
|
---|
| 7829 | # Required to use basename.
|
---|
| 7830 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7831 | as_expr=expr
|
---|
| 7832 | else
|
---|
| 7833 | as_expr=false
|
---|
| 7834 | fi
|
---|
| 7835 |
|
---|
| 7836 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7837 | as_basename=basename
|
---|
| 7838 | else
|
---|
| 7839 | as_basename=false
|
---|
| 7840 | fi
|
---|
| 7841 |
|
---|
| 7842 |
|
---|
[8063] | 7843 | # Name of the executable.
|
---|
[10192] | 7844 | as_me=`$as_basename "$0" ||
|
---|
| 7845 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7846 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7847 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7848 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7849 | echo X/"$0" |
|
---|
| 7850 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7851 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7852 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7853 | s/.*/./; q'`
|
---|
[8063] | 7854 |
|
---|
[10192] | 7855 |
|
---|
| 7856 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7857 | # Avoid depending upon Character Ranges.
|
---|
| 7858 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7859 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7860 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7861 | as_cr_digits='0123456789'
|
---|
| 7862 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7863 |
|
---|
| 7864 | # The user is always right.
|
---|
| 7865 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7866 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7867 | echo "exit 0" >>conf$$.sh
|
---|
| 7868 | chmod +x conf$$.sh
|
---|
| 7869 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7870 | PATH_SEPARATOR=';'
|
---|
| 7871 | else
|
---|
| 7872 | PATH_SEPARATOR=:
|
---|
| 7873 | fi
|
---|
| 7874 | rm -f conf$$.sh
|
---|
| 7875 | fi
|
---|
| 7876 |
|
---|
| 7877 |
|
---|
| 7878 | as_lineno_1=$LINENO
|
---|
| 7879 | as_lineno_2=$LINENO
|
---|
| 7880 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7881 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7882 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7883 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7884 | # relative or not.
|
---|
| 7885 | case $0 in
|
---|
| 7886 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7887 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7888 | for as_dir in $PATH
|
---|
| 7889 | do
|
---|
| 7890 | IFS=$as_save_IFS
|
---|
| 7891 | test -z "$as_dir" && as_dir=.
|
---|
| 7892 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7893 | done
|
---|
| 7894 |
|
---|
| 7895 | ;;
|
---|
| 7896 | esac
|
---|
| 7897 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7898 | # in which case we are not to be found in the path.
|
---|
| 7899 | if test "x$as_myself" = x; then
|
---|
| 7900 | as_myself=$0
|
---|
| 7901 | fi
|
---|
| 7902 | if test ! -f "$as_myself"; then
|
---|
| 7903 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7904 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7905 | { (exit 1); exit 1; }; }
|
---|
| 7906 | fi
|
---|
| 7907 | case $CONFIG_SHELL in
|
---|
| 7908 | '')
|
---|
| 7909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7910 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7911 | do
|
---|
| 7912 | IFS=$as_save_IFS
|
---|
| 7913 | test -z "$as_dir" && as_dir=.
|
---|
| 7914 | for as_base in sh bash ksh sh5; do
|
---|
| 7915 | case $as_dir in
|
---|
| 7916 | /*)
|
---|
| 7917 | if ("$as_dir/$as_base" -c '
|
---|
| 7918 | as_lineno_1=$LINENO
|
---|
| 7919 | as_lineno_2=$LINENO
|
---|
| 7920 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7921 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7922 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7923 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7924 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7925 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7926 | export CONFIG_SHELL
|
---|
| 7927 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7928 | fi;;
|
---|
| 7929 | esac
|
---|
| 7930 | done
|
---|
| 7931 | done
|
---|
| 7932 | ;;
|
---|
| 7933 | esac
|
---|
| 7934 |
|
---|
| 7935 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7936 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7937 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7938 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7939 | # with the numbered line, and appends trailing '-' during
|
---|
| 7940 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7941 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7942 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7943 | sed '=' <$as_myself |
|
---|
| 7944 | sed '
|
---|
| 7945 | N
|
---|
| 7946 | s,$,-,
|
---|
| 7947 | : loop
|
---|
| 7948 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7949 | t loop
|
---|
| 7950 | s,-$,,
|
---|
| 7951 | s,^['$as_cr_digits']*\n,,
|
---|
| 7952 | ' >$as_me.lineno &&
|
---|
| 7953 | chmod +x $as_me.lineno ||
|
---|
| 7954 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7955 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7956 | { (exit 1); exit 1; }; }
|
---|
| 7957 |
|
---|
| 7958 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7959 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7960 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7961 | . ./$as_me.lineno
|
---|
| 7962 | # Exit status is that of the last command.
|
---|
| 7963 | exit
|
---|
| 7964 | }
|
---|
| 7965 |
|
---|
| 7966 |
|
---|
| 7967 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7968 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7969 | ' ECHO_T=' ' ;;
|
---|
| 7970 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7971 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7972 | esac
|
---|
| 7973 |
|
---|
[8063] | 7974 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7975 | as_expr=expr
|
---|
| 7976 | else
|
---|
| 7977 | as_expr=false
|
---|
| 7978 | fi
|
---|
| 7979 |
|
---|
| 7980 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7981 | echo >conf$$.file
|
---|
| 7982 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7983 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7984 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7985 | if test -f conf$$.exe; then
|
---|
| 7986 | # Don't use ln at all; we don't have any links
|
---|
| 7987 | as_ln_s='cp -p'
|
---|
| 7988 | else
|
---|
| 7989 | as_ln_s='ln -s'
|
---|
| 7990 | fi
|
---|
| 7991 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7992 | as_ln_s=ln
|
---|
| 7993 | else
|
---|
| 7994 | as_ln_s='cp -p'
|
---|
| 7995 | fi
|
---|
| 7996 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7997 |
|
---|
[10192] | 7998 | if mkdir -p . 2>/dev/null; then
|
---|
| 7999 | as_mkdir_p=:
|
---|
[8063] | 8000 | else
|
---|
[10192] | 8001 | test -d ./-p && rmdir ./-p
|
---|
| 8002 | as_mkdir_p=false
|
---|
[8063] | 8003 | fi
|
---|
| 8004 |
|
---|
[10192] | 8005 | as_executable_p="test -f"
|
---|
[8063] | 8006 |
|
---|
[10192] | 8007 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 8008 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8009 |
|
---|
| 8010 | # Sed expression to map a string onto a valid variable name.
|
---|
| 8011 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8012 |
|
---|
| 8013 |
|
---|
[8063] | 8014 | # IFS
|
---|
| 8015 | # We need space, tab and new line, in precisely that order.
|
---|
| 8016 | as_nl='
|
---|
| 8017 | '
|
---|
| 8018 | IFS=" $as_nl"
|
---|
| 8019 |
|
---|
| 8020 | # CDPATH.
|
---|
[10192] | 8021 | $as_unset CDPATH
|
---|
[8063] | 8022 |
|
---|
| 8023 | exec 6>&1
|
---|
| 8024 |
|
---|
[10192] | 8025 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 8026 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 8027 | # values after options handling. Logging --version etc. is OK.
|
---|
| 8028 | exec 5>>config.log
|
---|
| 8029 | {
|
---|
| 8030 | echo
|
---|
| 8031 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 8032 | ## Running $as_me. ##
|
---|
| 8033 | _ASBOX
|
---|
| 8034 | } >&5
|
---|
| 8035 | cat >&5 <<_CSEOF
|
---|
| 8036 |
|
---|
| 8037 | This file was extended by $as_me, which was
|
---|
| 8038 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 8039 |
|
---|
| 8040 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 8041 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 8042 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 8043 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 8044 | $ $0 $@
|
---|
| 8045 |
|
---|
| 8046 | _CSEOF
|
---|
| 8047 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 8048 | echo >&5
|
---|
[8063] | 8049 | _ACEOF
|
---|
| 8050 |
|
---|
| 8051 | # Files that config.status was made for.
|
---|
| 8052 | if test -n "$ac_config_files"; then
|
---|
| 8053 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 8054 | fi
|
---|
| 8055 |
|
---|
| 8056 | if test -n "$ac_config_headers"; then
|
---|
| 8057 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 8058 | fi
|
---|
| 8059 |
|
---|
| 8060 | if test -n "$ac_config_links"; then
|
---|
| 8061 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 8062 | fi
|
---|
| 8063 |
|
---|
| 8064 | if test -n "$ac_config_commands"; then
|
---|
| 8065 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 8066 | fi
|
---|
| 8067 |
|
---|
[10192] | 8068 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8069 |
|
---|
| 8070 | ac_cs_usage="\
|
---|
| 8071 | \`$as_me' instantiates files from templates according to the
|
---|
| 8072 | current configuration.
|
---|
| 8073 |
|
---|
| 8074 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 8075 |
|
---|
| 8076 | -h, --help print this help, then exit
|
---|
| 8077 | -V, --version print version number, then exit
|
---|
[10192] | 8078 | -q, --quiet do not print progress messages
|
---|
[8063] | 8079 | -d, --debug don't remove temporary files
|
---|
| 8080 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 8081 | --file=FILE[:TEMPLATE]
|
---|
[10192] | 8082 | instantiate the configuration file FILE
|
---|
[8063] | 8083 | --header=FILE[:TEMPLATE]
|
---|
[10192] | 8084 | instantiate the configuration header FILE
|
---|
[8063] | 8085 |
|
---|
| 8086 | Configuration files:
|
---|
| 8087 | $config_files
|
---|
| 8088 |
|
---|
| 8089 | Configuration headers:
|
---|
| 8090 | $config_headers
|
---|
| 8091 |
|
---|
| 8092 | Configuration commands:
|
---|
| 8093 | $config_commands
|
---|
| 8094 |
|
---|
| 8095 | Report bugs to <[email protected]>."
|
---|
[10192] | 8096 | _ACEOF
|
---|
[8063] | 8097 |
|
---|
[10192] | 8098 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8099 | ac_cs_version="\\
|
---|
| 8100 | config.status
|
---|
[10192] | 8101 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
[8063] | 8102 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 8103 |
|
---|
[10192] | 8104 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 8105 | This config.status script is free software; the Free Software Foundation
|
---|
| 8106 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 8107 | srcdir=$srcdir
|
---|
| 8108 | INSTALL="$INSTALL"
|
---|
[10192] | 8109 | _ACEOF
|
---|
[8063] | 8110 |
|
---|
[10192] | 8111 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8112 | # If no file are specified by the user, then we need to provide default
|
---|
| 8113 | # value. By we need to know if files were specified by the user.
|
---|
| 8114 | ac_need_defaults=:
|
---|
| 8115 | while test $# != 0
|
---|
[3365] | 8116 | do
|
---|
[8063] | 8117 | case $1 in
|
---|
| 8118 | --*=*)
|
---|
| 8119 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 8120 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[10192] | 8121 | ac_shift=:
|
---|
[8063] | 8122 | ;;
|
---|
[10192] | 8123 | -*)
|
---|
| 8124 | ac_option=$1
|
---|
| 8125 | ac_optarg=$2
|
---|
| 8126 | ac_shift=shift
|
---|
| 8127 | ;;
|
---|
[8063] | 8128 | *) # This is not an option, so the user has probably given explicit
|
---|
| 8129 | # arguments.
|
---|
[10192] | 8130 | ac_option=$1
|
---|
[8063] | 8131 | ac_need_defaults=false;;
|
---|
| 8132 | esac
|
---|
| 8133 |
|
---|
[10192] | 8134 | case $ac_option in
|
---|
[8063] | 8135 | # Handling of the options.
|
---|
[10192] | 8136 | _ACEOF
|
---|
| 8137 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8138 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10192] | 8139 | ac_cs_recheck=: ;;
|
---|
[8063] | 8140 | --version | --vers* | -V )
|
---|
| 8141 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 8142 | --he | --h)
|
---|
| 8143 | # Conflict between --help and --header
|
---|
[10192] | 8144 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
[8063] | 8145 | Try \`$0 --help' for more information." >&5
|
---|
| 8146 | echo "$as_me: error: ambiguous option: $1
|
---|
| 8147 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8148 | { (exit 1); exit 1; }; };;
|
---|
| 8149 | --help | --hel | -h )
|
---|
| 8150 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 8151 | --debug | --d* | -d )
|
---|
| 8152 | debug=: ;;
|
---|
| 8153 | --file | --fil | --fi | --f )
|
---|
[10192] | 8154 | $ac_shift
|
---|
| 8155 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[8063] | 8156 | ac_need_defaults=false;;
|
---|
| 8157 | --header | --heade | --head | --hea )
|
---|
[10192] | 8158 | $ac_shift
|
---|
| 8159 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[8063] | 8160 | ac_need_defaults=false;;
|
---|
[10192] | 8161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8162 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8163 | ac_cs_silent=: ;;
|
---|
[8063] | 8164 |
|
---|
| 8165 | # This is an error.
|
---|
[10192] | 8166 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
[8063] | 8167 | Try \`$0 --help' for more information." >&5
|
---|
| 8168 | echo "$as_me: error: unrecognized option: $1
|
---|
| 8169 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8170 | { (exit 1); exit 1; }; } ;;
|
---|
[10192] | 8171 |
|
---|
| 8172 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 8173 |
|
---|
[3365] | 8174 | esac
|
---|
[8063] | 8175 | shift
|
---|
[3365] | 8176 | done
|
---|
| 8177 |
|
---|
[10192] | 8178 | ac_configure_extra_args=
|
---|
[3365] | 8179 |
|
---|
[10192] | 8180 | if $ac_cs_silent; then
|
---|
| 8181 | exec 6>/dev/null
|
---|
| 8182 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 8183 | fi
|
---|
[8063] | 8184 |
|
---|
[10192] | 8185 | _ACEOF
|
---|
| 8186 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8187 | if \$ac_cs_recheck; then
|
---|
| 8188 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8189 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 8190 | fi
|
---|
[8063] | 8191 |
|
---|
| 8192 | _ACEOF
|
---|
[3365] | 8193 |
|
---|
[10192] | 8194 |
|
---|
| 8195 |
|
---|
| 8196 |
|
---|
| 8197 |
|
---|
| 8198 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8199 | for ac_config_target in $ac_config_targets
|
---|
| 8200 | do
|
---|
| 8201 | case "$ac_config_target" in
|
---|
| 8202 | # Handling of arguments.
|
---|
| 8203 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8204 | "text/Makefile" ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
| 8205 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 8206 | "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 8207 | "java/org/greenstone/mgpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
| 8208 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 8209 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8210 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8211 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8212 | { (exit 1); exit 1; }; };;
|
---|
| 8213 | esac
|
---|
| 8214 | done
|
---|
| 8215 |
|
---|
[8063] | 8216 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8217 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8218 | # We use the long form for the default assignment because of an extremely
|
---|
| 8219 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8220 | if $ac_need_defaults; then
|
---|
| 8221 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8222 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8223 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 8224 | fi
|
---|
[3365] | 8225 |
|
---|
[10192] | 8226 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 8227 | # simply because there is no reason to put it here, and in addition,
|
---|
| 8228 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[8063] | 8229 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 8230 | $debug ||
|
---|
| 8231 | {
|
---|
| 8232 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[10192] | 8233 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[8063] | 8234 | }
|
---|
| 8235 |
|
---|
| 8236 | # Create a (secure) tmp directory for tmp files.
|
---|
[10192] | 8237 |
|
---|
[8063] | 8238 | {
|
---|
[10192] | 8239 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[8063] | 8240 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8241 | } ||
|
---|
| 8242 | {
|
---|
[10192] | 8243 | tmp=./confstat$$-$RANDOM
|
---|
[8063] | 8244 | (umask 077 && mkdir $tmp)
|
---|
| 8245 | } ||
|
---|
| 8246 | {
|
---|
[10192] | 8247 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
[8063] | 8248 | { (exit 1); exit 1; }
|
---|
| 8249 | }
|
---|
| 8250 |
|
---|
[10192] | 8251 | _ACEOF
|
---|
[8063] | 8252 |
|
---|
[10192] | 8253 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8254 |
|
---|
| 8255 | #
|
---|
| 8256 | # CONFIG_FILES section.
|
---|
| 8257 | #
|
---|
| 8258 |
|
---|
| 8259 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8260 | # This happens for instance when ./config.status config.h
|
---|
| 8261 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8262 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8263 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8264 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8265 | s,@SHELL@,$SHELL,;t t
|
---|
[10192] | 8266 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8267 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8268 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8269 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8270 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8271 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
[8063] | 8272 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8273 | s,@prefix@,$prefix,;t t
|
---|
| 8274 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8275 | s,@bindir@,$bindir,;t t
|
---|
| 8276 | s,@sbindir@,$sbindir,;t t
|
---|
| 8277 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8278 | s,@datadir@,$datadir,;t t
|
---|
| 8279 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8280 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8281 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8282 | s,@libdir@,$libdir,;t t
|
---|
| 8283 | s,@includedir@,$includedir,;t t
|
---|
| 8284 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8285 | s,@infodir@,$infodir,;t t
|
---|
| 8286 | s,@mandir@,$mandir,;t t
|
---|
[10192] | 8287 | s,@build_alias@,$build_alias,;t t
|
---|
| 8288 | s,@host_alias@,$host_alias,;t t
|
---|
| 8289 | s,@target_alias@,$target_alias,;t t
|
---|
| 8290 | s,@DEFS@,$DEFS,;t t
|
---|
[8063] | 8291 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8292 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8293 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8294 | s,@LIBS@,$LIBS,;t t
|
---|
| 8295 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8296 | s,@VERSION@,$VERSION,;t t
|
---|
[13482] | 8297 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[8063] | 8298 | s,@CXX@,$CXX,;t t
|
---|
| 8299 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8300 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8301 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8302 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8303 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8304 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8305 | s,@AWK@,$AWK,;t t
|
---|
| 8306 | s,@YACC@,$YACC,;t t
|
---|
| 8307 | s,@CC@,$CC,;t t
|
---|
| 8308 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8309 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8310 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8311 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8312 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8313 | s,@LN_S@,$LN_S,;t t
|
---|
| 8314 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8315 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8316 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8317 | s,@CPP@,$CPP,;t t
|
---|
[10192] | 8318 | s,@EGREP@,$EGREP,;t t
|
---|
[8063] | 8319 | s,@U@,$U,;t t
|
---|
| 8320 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
[13698] | 8321 | s,@UNAC_DIR@,$UNAC_DIR,;t t
|
---|
[8063] | 8322 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8323 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
[10192] | 8324 | s,@JNIINC@,$JNIINC,;t t
|
---|
| 8325 | s,@JNISUFFIX@,$JNISUFFIX,;t t
|
---|
| 8326 | s,@JNIFLAGS@,$JNIFLAGS,;t t
|
---|
| 8327 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
[8059] | 8328 | CEOF
|
---|
[8063] | 8329 |
|
---|
[10192] | 8330 | _ACEOF
|
---|
[3365] | 8331 |
|
---|
[10192] | 8332 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8333 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8334 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8335 | ac_max_sed_lines=48
|
---|
| 8336 | ac_sed_frag=1 # Number of current file.
|
---|
| 8337 | ac_beg=1 # First line for current file.
|
---|
| 8338 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8339 | ac_more_lines=:
|
---|
| 8340 | ac_sed_cmds=
|
---|
| 8341 | while $ac_more_lines; do
|
---|
| 8342 | if test $ac_beg -gt 1; then
|
---|
| 8343 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8344 | else
|
---|
[8063] | 8345 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8346 | fi
|
---|
[8063] | 8347 | if test ! -s $tmp/subs.frag; then
|
---|
| 8348 | ac_more_lines=false
|
---|
| 8349 | else
|
---|
| 8350 | # The purpose of the label and of the branching condition is to
|
---|
| 8351 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8352 | # is no need to browse any of the substitutions).
|
---|
| 8353 | # These are the two extra sed commands mentioned above.
|
---|
| 8354 | (echo ':t
|
---|
| 8355 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8356 | if test -z "$ac_sed_cmds"; then
|
---|
[10192] | 8357 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8358 | else
|
---|
[10192] | 8359 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8360 | fi
|
---|
| 8361 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8362 | ac_beg=$ac_end
|
---|
| 8363 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8364 | fi
|
---|
| 8365 | done
|
---|
| 8366 | if test -z "$ac_sed_cmds"; then
|
---|
| 8367 | ac_sed_cmds=cat
|
---|
[3365] | 8368 | fi
|
---|
[8063] | 8369 | fi # test -n "$CONFIG_FILES"
|
---|
[3365] | 8370 |
|
---|
[10192] | 8371 | _ACEOF
|
---|
| 8372 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8373 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8374 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8375 | case $ac_file in
|
---|
| 8376 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8377 | cat >$tmp/stdin
|
---|
| 8378 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8379 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8380 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8381 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8382 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8383 | esac
|
---|
| 8384 |
|
---|
[8063] | 8385 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
[10192] | 8386 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8387 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8388 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8389 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8390 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8391 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8392 | echo X"$ac_file" |
|
---|
| 8393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8394 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8395 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8396 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8397 | s/.*/./; q'`
|
---|
[10192] | 8398 | { if $as_mkdir_p; then
|
---|
| 8399 | mkdir -p "$ac_dir"
|
---|
[3365] | 8400 | else
|
---|
[10192] | 8401 | as_dir="$ac_dir"
|
---|
| 8402 | as_dirs=
|
---|
| 8403 | while test ! -d "$as_dir"; do
|
---|
| 8404 | as_dirs="$as_dir $as_dirs"
|
---|
| 8405 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8406 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8407 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8408 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8409 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8410 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8411 | echo X"$as_dir" |
|
---|
| 8412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8413 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8414 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8415 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8416 | s/.*/./; q'`
|
---|
| 8417 | done
|
---|
| 8418 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8419 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8420 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8421 | { (exit 1); exit 1; }; }; }
|
---|
[3365] | 8422 |
|
---|
[10192] | 8423 | ac_builddir=.
|
---|
| 8424 |
|
---|
| 8425 | if test "$ac_dir" != .; then
|
---|
| 8426 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8427 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8428 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8429 | else
|
---|
| 8430 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8431 | fi
|
---|
| 8432 |
|
---|
| 8433 | case $srcdir in
|
---|
| 8434 | .) # No --srcdir option. We are building in place.
|
---|
| 8435 | ac_srcdir=.
|
---|
| 8436 | if test -z "$ac_top_builddir"; then
|
---|
| 8437 | ac_top_srcdir=.
|
---|
| 8438 | else
|
---|
| 8439 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8440 | fi ;;
|
---|
| 8441 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8442 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8443 | ac_top_srcdir=$srcdir ;;
|
---|
[3365] | 8444 | *) # Relative path.
|
---|
[10192] | 8445 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8446 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8447 | esac
|
---|
[3365] | 8448 |
|
---|
[10192] | 8449 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8450 | # the directories may not exist.
|
---|
| 8451 | case `pwd` in
|
---|
| 8452 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8453 | *)
|
---|
| 8454 | case "$ac_dir" in
|
---|
| 8455 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8456 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8457 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8458 | esac;;
|
---|
| 8459 | esac
|
---|
| 8460 | case $ac_abs_builddir in
|
---|
| 8461 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8462 | *)
|
---|
| 8463 | case ${ac_top_builddir}. in
|
---|
| 8464 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8465 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8466 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8467 | esac;;
|
---|
| 8468 | esac
|
---|
| 8469 | case $ac_abs_builddir in
|
---|
| 8470 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8471 | *)
|
---|
| 8472 | case $ac_srcdir in
|
---|
| 8473 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8474 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8475 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8476 | esac;;
|
---|
| 8477 | esac
|
---|
| 8478 | case $ac_abs_builddir in
|
---|
| 8479 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8480 | *)
|
---|
| 8481 | case $ac_top_srcdir in
|
---|
| 8482 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8483 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8484 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8485 | esac;;
|
---|
| 8486 | esac
|
---|
| 8487 |
|
---|
| 8488 |
|
---|
[8063] | 8489 | case $INSTALL in
|
---|
| 8490 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[10192] | 8491 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[3365] | 8492 | esac
|
---|
| 8493 |
|
---|
[8063] | 8494 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8495 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8496 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8497 | rm -f "$ac_file"
|
---|
| 8498 | fi
|
---|
| 8499 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8500 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8501 | # /* config.h. Generated by config.status. */
|
---|
| 8502 | if test x"$ac_file" = x-; then
|
---|
| 8503 | configure_input=
|
---|
| 8504 | else
|
---|
| 8505 | configure_input="$ac_file. "
|
---|
| 8506 | fi
|
---|
| 8507 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8508 | sed 's,.*/,,'` by configure."
|
---|
[3365] | 8509 |
|
---|
[8063] | 8510 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8511 | # src tree.
|
---|
| 8512 | ac_file_inputs=`IFS=:
|
---|
| 8513 | for f in $ac_file_in; do
|
---|
| 8514 | case $f in
|
---|
| 8515 | -) echo $tmp/stdin ;;
|
---|
| 8516 | [\\/$]*)
|
---|
[10192] | 8517 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8518 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8519 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8520 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8521 | echo "$f";;
|
---|
[8063] | 8522 | *) # Relative
|
---|
[10192] | 8523 | if test -f "$f"; then
|
---|
| 8524 | # Build tree
|
---|
| 8525 | echo "$f"
|
---|
| 8526 | elif test -f "$srcdir/$f"; then
|
---|
| 8527 | # Source tree
|
---|
| 8528 | echo "$srcdir/$f"
|
---|
| 8529 | else
|
---|
| 8530 | # /dev/null tree
|
---|
| 8531 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8532 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8533 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8534 | fi;;
|
---|
[8063] | 8535 | esac
|
---|
| 8536 | done` || { (exit 1); exit 1; }
|
---|
[10192] | 8537 | _ACEOF
|
---|
| 8538 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8539 | sed "$ac_vpsub
|
---|
| 8540 | $extrasub
|
---|
[10192] | 8541 | _ACEOF
|
---|
| 8542 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8543 | :t
|
---|
| 8544 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8545 | s,@configure_input@,$configure_input,;t t
|
---|
| 8546 | s,@srcdir@,$ac_srcdir,;t t
|
---|
[10192] | 8547 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
[8063] | 8548 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
[10192] | 8549 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8550 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8551 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8552 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8553 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
[8063] | 8554 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8555 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8556 | rm -f $tmp/stdin
|
---|
| 8557 | if test x"$ac_file" != x-; then
|
---|
| 8558 | mv $tmp/out $ac_file
|
---|
| 8559 | else
|
---|
| 8560 | cat $tmp/out
|
---|
| 8561 | rm -f $tmp/out
|
---|
| 8562 | fi
|
---|
[3365] | 8563 |
|
---|
[8063] | 8564 | done
|
---|
[10192] | 8565 | _ACEOF
|
---|
| 8566 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8567 |
|
---|
| 8568 | #
|
---|
| 8569 | # CONFIG_HEADER section.
|
---|
| 8570 | #
|
---|
| 8571 |
|
---|
[3365] | 8572 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8573 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8574 | #
|
---|
| 8575 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[10192] | 8576 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8577 | ac_dB='[ ].*$,\1#\2'
|
---|
[8063] | 8578 | ac_dC=' '
|
---|
| 8579 | ac_dD=',;t'
|
---|
| 8580 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
[10192] | 8581 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
[8063] | 8582 | ac_uB='$,\1#\2define\3'
|
---|
[3365] | 8583 | ac_uC=' '
|
---|
[8063] | 8584 | ac_uD=',;t'
|
---|
[3365] | 8585 |
|
---|
[8063] | 8586 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8587 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8588 | case $ac_file in
|
---|
| 8589 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8590 | cat >$tmp/stdin
|
---|
| 8591 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8592 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8593 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8594 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8595 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8596 | esac
|
---|
| 8597 |
|
---|
[10192] | 8598 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8599 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[3365] | 8600 |
|
---|
[8063] | 8601 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8602 | # src tree.
|
---|
| 8603 | ac_file_inputs=`IFS=:
|
---|
| 8604 | for f in $ac_file_in; do
|
---|
| 8605 | case $f in
|
---|
| 8606 | -) echo $tmp/stdin ;;
|
---|
| 8607 | [\\/$]*)
|
---|
[10192] | 8608 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8609 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8610 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8611 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8612 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8613 | echo "$f";;
|
---|
[8063] | 8614 | *) # Relative
|
---|
[10192] | 8615 | if test -f "$f"; then
|
---|
| 8616 | # Build tree
|
---|
| 8617 | echo "$f"
|
---|
| 8618 | elif test -f "$srcdir/$f"; then
|
---|
| 8619 | # Source tree
|
---|
| 8620 | echo "$srcdir/$f"
|
---|
| 8621 | else
|
---|
| 8622 | # /dev/null tree
|
---|
| 8623 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8624 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8625 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8626 | fi;;
|
---|
[8063] | 8627 | esac
|
---|
| 8628 | done` || { (exit 1); exit 1; }
|
---|
| 8629 | # Remove the trailing spaces.
|
---|
[10192] | 8630 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[3365] | 8631 |
|
---|
[10192] | 8632 | _ACEOF
|
---|
[3365] | 8633 |
|
---|
[8063] | 8634 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8635 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8636 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8637 | # templates, and the second `#undef' templates.
|
---|
| 8638 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8639 | # config.status. Protect against being in an unquoted here document
|
---|
| 8640 | # in config.status.
|
---|
| 8641 | rm -f conftest.defines conftest.undefs
|
---|
| 8642 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8643 | # Putting comments in sed scripts is not portable.
|
---|
| 8644 | #
|
---|
| 8645 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8646 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8647 | # See the Autoconf documentation for `clear'.
|
---|
[10192] | 8648 | cat >confdef2sed.sed <<\_ACEOF
|
---|
[8063] | 8649 | s/[\\&,]/\\&/g
|
---|
| 8650 | s,[\\$`],\\&,g
|
---|
| 8651 | t clear
|
---|
| 8652 | : clear
|
---|
[10192] | 8653 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
[8063] | 8654 | t end
|
---|
[10192] | 8655 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
[8063] | 8656 | : end
|
---|
[10192] | 8657 | _ACEOF
|
---|
[8063] | 8658 | # If some macros were called several times there might be several times
|
---|
| 8659 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8660 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8661 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8662 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8663 | rm -f confdef2sed.sed
|
---|
[3365] | 8664 |
|
---|
| 8665 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8666 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8667 | # on some systems where configure will not decide to define it.
|
---|
[10192] | 8668 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8669 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8670 | _ACEOF
|
---|
[3365] | 8671 |
|
---|
[8063] | 8672 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8673 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8674 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
[10192] | 8675 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
[8063] | 8676 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8677 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8678 | rm -f conftest.tail
|
---|
| 8679 | while grep . conftest.defines >/dev/null
|
---|
| 8680 | do
|
---|
| 8681 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8682 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8683 | # Speed up: don't consider the non `#define' lines.
|
---|
[10192] | 8684 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8685 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8686 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8687 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8688 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8689 | echo 'CEOF
|
---|
| 8690 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8691 | rm -f $tmp/in
|
---|
| 8692 | mv $tmp/out $tmp/in
|
---|
| 8693 | ' >>$CONFIG_STATUS
|
---|
| 8694 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8695 | rm -f conftest.defines
|
---|
| 8696 | mv conftest.tail conftest.defines
|
---|
| 8697 | done
|
---|
| 8698 | rm -f conftest.defines
|
---|
[10192] | 8699 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
[8063] | 8700 | echo >>$CONFIG_STATUS
|
---|
[3365] | 8701 |
|
---|
[8063] | 8702 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8703 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8704 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[3365] | 8705 | rm -f conftest.tail
|
---|
[8063] | 8706 | while grep . conftest.undefs >/dev/null
|
---|
[3365] | 8707 | do
|
---|
[8063] | 8708 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8709 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8710 | # Speed up: don't consider the non `#undef'
|
---|
[10192] | 8711 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8712 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8713 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8714 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8715 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[3365] | 8716 | echo 'CEOF
|
---|
[8063] | 8717 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8718 | rm -f $tmp/in
|
---|
| 8719 | mv $tmp/out $tmp/in
|
---|
| 8720 | ' >>$CONFIG_STATUS
|
---|
| 8721 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8722 | rm -f conftest.undefs
|
---|
| 8723 | mv conftest.tail conftest.undefs
|
---|
[3365] | 8724 | done
|
---|
[8063] | 8725 | rm -f conftest.undefs
|
---|
[3365] | 8726 |
|
---|
[10192] | 8727 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8728 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8729 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8730 | # /* config.h. Generated by config.status. */
|
---|
[8063] | 8731 | if test x"$ac_file" = x-; then
|
---|
[10192] | 8732 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[3365] | 8733 | else
|
---|
[10192] | 8734 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
[8063] | 8735 | fi
|
---|
| 8736 | cat $tmp/in >>$tmp/config.h
|
---|
| 8737 | rm -f $tmp/in
|
---|
| 8738 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8739 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8740 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
[8063] | 8741 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8742 | else
|
---|
[10192] | 8743 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8744 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8745 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8746 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8747 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8748 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8749 | echo X"$ac_file" |
|
---|
| 8750 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8751 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8752 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8753 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8754 | s/.*/./; q'`
|
---|
[10192] | 8755 | { if $as_mkdir_p; then
|
---|
| 8756 | mkdir -p "$ac_dir"
|
---|
| 8757 | else
|
---|
| 8758 | as_dir="$ac_dir"
|
---|
| 8759 | as_dirs=
|
---|
| 8760 | while test ! -d "$as_dir"; do
|
---|
| 8761 | as_dirs="$as_dir $as_dirs"
|
---|
| 8762 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8763 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8764 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8765 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8766 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8767 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8768 | echo X"$as_dir" |
|
---|
| 8769 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8770 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8771 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8772 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8773 | s/.*/./; q'`
|
---|
| 8774 | done
|
---|
| 8775 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8776 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8777 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8778 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8779 |
|
---|
| 8780 | rm -f $ac_file
|
---|
| 8781 | mv $tmp/config.h $ac_file
|
---|
[3365] | 8782 | fi
|
---|
[8063] | 8783 | else
|
---|
| 8784 | cat $tmp/config.h
|
---|
| 8785 | rm -f $tmp/config.h
|
---|
[3365] | 8786 | fi
|
---|
[8063] | 8787 | done
|
---|
[10192] | 8788 | _ACEOF
|
---|
| 8789 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8790 |
|
---|
[8063] | 8791 | #
|
---|
| 8792 | # CONFIG_COMMANDS section.
|
---|
| 8793 | #
|
---|
| 8794 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
| 8795 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
| 8796 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8797 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
| 8798 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8799 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
| 8800 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
| 8801 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
| 8802 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8803 | echo X"$ac_dest" |
|
---|
| 8804 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8805 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8806 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8807 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8808 | s/.*/./; q'`
|
---|
| 8809 | { if $as_mkdir_p; then
|
---|
| 8810 | mkdir -p "$ac_dir"
|
---|
| 8811 | else
|
---|
| 8812 | as_dir="$ac_dir"
|
---|
| 8813 | as_dirs=
|
---|
| 8814 | while test ! -d "$as_dir"; do
|
---|
| 8815 | as_dirs="$as_dir $as_dirs"
|
---|
| 8816 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8817 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8818 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8819 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8820 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8821 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8822 | echo X"$as_dir" |
|
---|
| 8823 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8824 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8825 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8826 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8827 | s/.*/./; q'`
|
---|
| 8828 | done
|
---|
| 8829 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8830 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8831 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8832 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8833 |
|
---|
[10192] | 8834 | ac_builddir=.
|
---|
| 8835 |
|
---|
| 8836 | if test "$ac_dir" != .; then
|
---|
| 8837 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8838 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8839 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8840 | else
|
---|
| 8841 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8842 | fi
|
---|
| 8843 |
|
---|
| 8844 | case $srcdir in
|
---|
| 8845 | .) # No --srcdir option. We are building in place.
|
---|
| 8846 | ac_srcdir=.
|
---|
| 8847 | if test -z "$ac_top_builddir"; then
|
---|
| 8848 | ac_top_srcdir=.
|
---|
| 8849 | else
|
---|
| 8850 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8851 | fi ;;
|
---|
| 8852 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8853 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8854 | ac_top_srcdir=$srcdir ;;
|
---|
| 8855 | *) # Relative path.
|
---|
| 8856 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8857 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8858 | esac
|
---|
| 8859 |
|
---|
| 8860 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8861 | # the directories may not exist.
|
---|
| 8862 | case `pwd` in
|
---|
| 8863 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8864 | *)
|
---|
| 8865 | case "$ac_dir" in
|
---|
| 8866 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8867 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8868 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8869 | esac;;
|
---|
| 8870 | esac
|
---|
| 8871 | case $ac_abs_builddir in
|
---|
| 8872 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8873 | *)
|
---|
| 8874 | case ${ac_top_builddir}. in
|
---|
| 8875 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8876 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8877 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8878 | esac;;
|
---|
| 8879 | esac
|
---|
| 8880 | case $ac_abs_builddir in
|
---|
| 8881 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8882 | *)
|
---|
| 8883 | case $ac_srcdir in
|
---|
| 8884 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8885 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8886 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8887 | esac;;
|
---|
| 8888 | esac
|
---|
| 8889 | case $ac_abs_builddir in
|
---|
| 8890 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8891 | *)
|
---|
| 8892 | case $ac_top_srcdir in
|
---|
| 8893 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8894 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8895 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8896 | esac;;
|
---|
| 8897 | esac
|
---|
| 8898 |
|
---|
| 8899 |
|
---|
| 8900 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
| 8901 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
[8063] | 8902 | case $ac_dest in
|
---|
| 8903 | default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
| 8904 | esac
|
---|
| 8905 | done
|
---|
[10192] | 8906 | _ACEOF
|
---|
[3365] | 8907 |
|
---|
[10192] | 8908 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8909 |
|
---|
| 8910 | { (exit 0); exit 0; }
|
---|
[10192] | 8911 | _ACEOF
|
---|
[3365] | 8912 | chmod +x $CONFIG_STATUS
|
---|
[8063] | 8913 | ac_clean_files=$ac_clean_files_save
|
---|
[3365] | 8914 |
|
---|
[10192] | 8915 |
|
---|
[8063] | 8916 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8917 | # config.status does its own redirection, appending to config.log.
|
---|
| 8918 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8919 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8920 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8921 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8922 | # appended to by config.status. When coming back to configure, we
|
---|
| 8923 | # need to make the FD available again.
|
---|
| 8924 | if test "$no_create" != yes; then
|
---|
| 8925 | ac_cs_success=:
|
---|
[10192] | 8926 | ac_config_status_args=
|
---|
| 8927 | test "$silent" = yes &&
|
---|
| 8928 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[8063] | 8929 | exec 5>/dev/null
|
---|
[10192] | 8930 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[8063] | 8931 | exec 5>>config.log
|
---|
| 8932 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8933 | # would make configure fail if this is the last instruction.
|
---|
| 8934 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8935 | fi
|
---|
| 8936 |
|
---|