[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 |
|
---|
[15560] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os PACKAGE VERSION COMPAT32BITFLAGS 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
|
---|
[15560] | 846 |
|
---|
| 847 | System types:
|
---|
| 848 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 849 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 850 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
[10192] | 851 | _ACEOF
|
---|
[8063] | 852 | fi
|
---|
| 853 |
|
---|
| 854 | if test -n "$ac_init_help"; then
|
---|
| 855 |
|
---|
[10192] | 856 | cat <<\_ACEOF
|
---|
[8063] | 857 |
|
---|
| 858 | Optional Features:
|
---|
| 859 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 860 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
[13482] | 861 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[8063] | 862 | --enable-override-longlong
|
---|
| 863 | overide use of long long with GCC
|
---|
| 864 |
|
---|
| 865 | Optional Packages:
|
---|
| 866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
[13698] | 868 | --with-unac=dir Use local unac library and headers
|
---|
[8063] | 869 | --with-dmalloc use dmalloc, as in
|
---|
| 870 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 871 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 872 | --with-gnu-readline compile with GNU readline support
|
---|
| 873 |
|
---|
| 874 | Some influential environment variables:
|
---|
| 875 | CXX C++ compiler command
|
---|
| 876 | CXXFLAGS C++ compiler flags
|
---|
| 877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 878 | nonstandard directory <lib dir>
|
---|
| 879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 880 | headers in a nonstandard directory <include dir>
|
---|
| 881 | CC C compiler command
|
---|
| 882 | CFLAGS C compiler flags
|
---|
| 883 | CPP C preprocessor
|
---|
| 884 |
|
---|
| 885 | Use these variables to override the choices made by `configure' or to help
|
---|
| 886 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 887 |
|
---|
[10192] | 888 | _ACEOF
|
---|
[8063] | 889 | fi
|
---|
| 890 |
|
---|
| 891 | if test "$ac_init_help" = "recursive"; then
|
---|
| 892 | # If there are subdirs, report their specific --help.
|
---|
| 893 | ac_popdir=`pwd`
|
---|
[10192] | 894 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 895 | test -d $ac_dir || continue
|
---|
| 896 | ac_builddir=.
|
---|
[8063] | 897 |
|
---|
[10192] | 898 | if test "$ac_dir" != .; then
|
---|
| 899 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 900 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 901 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 902 | else
|
---|
| 903 | ac_dir_suffix= ac_top_builddir=
|
---|
| 904 | fi
|
---|
[8063] | 905 |
|
---|
[10192] | 906 | case $srcdir in
|
---|
| 907 | .) # No --srcdir option. We are building in place.
|
---|
| 908 | ac_srcdir=.
|
---|
| 909 | if test -z "$ac_top_builddir"; then
|
---|
| 910 | ac_top_srcdir=.
|
---|
| 911 | else
|
---|
| 912 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 913 | fi ;;
|
---|
| 914 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 915 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 916 | ac_top_srcdir=$srcdir ;;
|
---|
| 917 | *) # Relative path.
|
---|
| 918 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 919 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 920 | esac
|
---|
| 921 |
|
---|
| 922 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 923 | # the directories may not exist.
|
---|
| 924 | case `pwd` in
|
---|
| 925 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 926 | *)
|
---|
| 927 | case "$ac_dir" in
|
---|
| 928 | .) ac_abs_builddir=`pwd`;;
|
---|
| 929 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 930 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 931 | esac;;
|
---|
| 932 | esac
|
---|
| 933 | case $ac_abs_builddir in
|
---|
| 934 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 935 | *)
|
---|
| 936 | case ${ac_top_builddir}. in
|
---|
| 937 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 938 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 939 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 940 | esac;;
|
---|
| 941 | esac
|
---|
| 942 | case $ac_abs_builddir in
|
---|
| 943 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 944 | *)
|
---|
| 945 | case $ac_srcdir in
|
---|
| 946 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 947 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 948 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 949 | esac;;
|
---|
| 950 | esac
|
---|
| 951 | case $ac_abs_builddir in
|
---|
| 952 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 953 | *)
|
---|
| 954 | case $ac_top_srcdir in
|
---|
| 955 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 956 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 957 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 958 | esac;;
|
---|
| 959 | esac
|
---|
| 960 |
|
---|
| 961 | cd $ac_dir
|
---|
[8063] | 962 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[10192] | 963 | if test -f $ac_srcdir/configure.gnu; then
|
---|
[8063] | 964 | echo
|
---|
[10192] | 965 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 966 | elif test -f $ac_srcdir/configure; then
|
---|
[8063] | 967 | echo
|
---|
[10192] | 968 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 969 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 970 | test -f $ac_srcdir/configure.in; then
|
---|
[8063] | 971 | echo
|
---|
| 972 | $ac_configure --help
|
---|
| 973 | else
|
---|
[10192] | 974 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[8063] | 975 | fi
|
---|
| 976 | cd $ac_popdir
|
---|
| 977 | done
|
---|
| 978 | fi
|
---|
| 979 |
|
---|
| 980 | test -n "$ac_init_help" && exit 0
|
---|
| 981 | if $ac_init_version; then
|
---|
[10192] | 982 | cat <<\_ACEOF
|
---|
[8063] | 983 |
|
---|
[10192] | 984 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 985 | This configure script is free software; the Free Software Foundation
|
---|
| 986 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 987 | _ACEOF
|
---|
[8063] | 988 | exit 0
|
---|
| 989 | fi
|
---|
| 990 | exec 5>config.log
|
---|
[10192] | 991 | cat >&5 <<_ACEOF
|
---|
[8063] | 992 | This file contains any messages produced by compilers while
|
---|
| 993 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 994 |
|
---|
| 995 | It was created by $as_me, which was
|
---|
[10192] | 996 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8063] | 997 |
|
---|
| 998 | $ $0 $@
|
---|
| 999 |
|
---|
[10192] | 1000 | _ACEOF
|
---|
[8063] | 1001 | {
|
---|
| 1002 | cat <<_ASUNAME
|
---|
[10192] | 1003 | ## --------- ##
|
---|
| 1004 | ## Platform. ##
|
---|
| 1005 | ## --------- ##
|
---|
[8063] | 1006 |
|
---|
| 1007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1008 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1009 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1010 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1011 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1012 |
|
---|
| 1013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1015 |
|
---|
| 1016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1019 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1023 |
|
---|
[10192] | 1024 | _ASUNAME
|
---|
[8063] | 1025 |
|
---|
[10192] | 1026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1027 | for as_dir in $PATH
|
---|
| 1028 | do
|
---|
| 1029 | IFS=$as_save_IFS
|
---|
| 1030 | test -z "$as_dir" && as_dir=.
|
---|
| 1031 | echo "PATH: $as_dir"
|
---|
| 1032 | done
|
---|
| 1033 |
|
---|
[8063] | 1034 | } >&5
|
---|
| 1035 |
|
---|
[10192] | 1036 | cat >&5 <<_ACEOF
|
---|
[8063] | 1037 |
|
---|
| 1038 |
|
---|
[10192] | 1039 | ## ----------- ##
|
---|
| 1040 | ## Core tests. ##
|
---|
| 1041 | ## ----------- ##
|
---|
| 1042 |
|
---|
| 1043 | _ACEOF
|
---|
| 1044 |
|
---|
| 1045 |
|
---|
[8063] | 1046 | # Keep a trace of the command line.
|
---|
| 1047 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10192] | 1048 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[8063] | 1049 | # Also quote any args containing shell meta-characters.
|
---|
[10192] | 1050 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[8063] | 1051 | ac_configure_args=
|
---|
[10192] | 1052 | ac_configure_args0=
|
---|
| 1053 | ac_configure_args1=
|
---|
[8063] | 1054 | ac_sep=
|
---|
[10192] | 1055 | ac_must_keep_next=false
|
---|
| 1056 | for ac_pass in 1 2
|
---|
[8063] | 1057 | do
|
---|
[10192] | 1058 | for ac_arg
|
---|
| 1059 | do
|
---|
| 1060 | case $ac_arg in
|
---|
| 1061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1063 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1064 | continue ;;
|
---|
| 1065 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1066 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1067 | esac
|
---|
| 1068 | case $ac_pass in
|
---|
| 1069 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1070 | 2)
|
---|
| 1071 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1072 | if test $ac_must_keep_next = true; then
|
---|
| 1073 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1074 | else
|
---|
| 1075 | case $ac_arg in
|
---|
| 1076 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1079 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1080 | case "$ac_configure_args0 " in
|
---|
| 1081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1082 | esac
|
---|
| 1083 | ;;
|
---|
| 1084 | -* ) ac_must_keep_next=true ;;
|
---|
| 1085 | esac
|
---|
| 1086 | fi
|
---|
| 1087 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1088 | # Get rid of the leading space.
|
---|
| 1089 | ac_sep=" "
|
---|
| 1090 | ;;
|
---|
| 1091 | esac
|
---|
| 1092 | done
|
---|
[8063] | 1093 | done
|
---|
[10192] | 1094 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1095 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[8063] | 1096 |
|
---|
| 1097 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1098 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1099 | # would cause problems or look ugly.
|
---|
[10192] | 1100 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1101 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[8063] | 1102 | trap 'exit_status=$?
|
---|
| 1103 | # Save into config.log some information that might help in debugging.
|
---|
[10192] | 1104 | {
|
---|
| 1105 | echo
|
---|
| 1106 |
|
---|
| 1107 | cat <<\_ASBOX
|
---|
| 1108 | ## ---------------- ##
|
---|
| 1109 | ## Cache variables. ##
|
---|
| 1110 | ## ---------------- ##
|
---|
| 1111 | _ASBOX
|
---|
| 1112 | echo
|
---|
| 1113 | # The following way of writing the cache mishandles newlines in values,
|
---|
[8063] | 1114 | {
|
---|
| 1115 | (set) 2>&1 |
|
---|
| 1116 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1117 | *ac_space=\ *)
|
---|
| 1118 | sed -n \
|
---|
[10192] | 1119 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
[8063] | 1121 | ;;
|
---|
| 1122 | *)
|
---|
| 1123 | sed -n \
|
---|
[10192] | 1124 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 1125 | ;;
|
---|
| 1126 | esac;
|
---|
[10192] | 1127 | }
|
---|
| 1128 | echo
|
---|
| 1129 |
|
---|
| 1130 | cat <<\_ASBOX
|
---|
| 1131 | ## ----------------- ##
|
---|
| 1132 | ## Output variables. ##
|
---|
| 1133 | ## ----------------- ##
|
---|
| 1134 | _ASBOX
|
---|
| 1135 | echo
|
---|
| 1136 | for ac_var in $ac_subst_vars
|
---|
| 1137 | do
|
---|
| 1138 | eval ac_val=$`echo $ac_var`
|
---|
| 1139 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1140 | done | sort
|
---|
| 1141 | echo
|
---|
| 1142 |
|
---|
| 1143 | if test -n "$ac_subst_files"; then
|
---|
| 1144 | cat <<\_ASBOX
|
---|
| 1145 | ## ------------- ##
|
---|
| 1146 | ## Output files. ##
|
---|
| 1147 | ## ------------- ##
|
---|
| 1148 | _ASBOX
|
---|
| 1149 | echo
|
---|
| 1150 | for ac_var in $ac_subst_files
|
---|
| 1151 | do
|
---|
| 1152 | eval ac_val=$`echo $ac_var`
|
---|
| 1153 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1154 | done | sort
|
---|
| 1155 | echo
|
---|
| 1156 | fi
|
---|
| 1157 |
|
---|
| 1158 | if test -s confdefs.h; then
|
---|
| 1159 | cat <<\_ASBOX
|
---|
| 1160 | ## ----------- ##
|
---|
| 1161 | ## confdefs.h. ##
|
---|
| 1162 | ## ----------- ##
|
---|
| 1163 | _ASBOX
|
---|
| 1164 | echo
|
---|
| 1165 | sed "/^$/d" confdefs.h | sort
|
---|
| 1166 | echo
|
---|
| 1167 | fi
|
---|
| 1168 | test "$ac_signal" != 0 &&
|
---|
| 1169 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1170 | echo "$as_me: exit $exit_status"
|
---|
| 1171 | } >&5
|
---|
| 1172 | rm -f core *.core &&
|
---|
| 1173 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8063] | 1174 | exit $exit_status
|
---|
| 1175 | ' 0
|
---|
| 1176 | for ac_signal in 1 2 13 15; do
|
---|
[10192] | 1177 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[8063] | 1178 | done
|
---|
| 1179 | ac_signal=0
|
---|
| 1180 |
|
---|
| 1181 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1182 | rm -rf conftest* confdefs.h
|
---|
| 1183 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1184 | echo >confdefs.h
|
---|
| 1185 |
|
---|
[10192] | 1186 | # Predefined preprocessor variables.
|
---|
| 1187 |
|
---|
| 1188 | cat >>confdefs.h <<_ACEOF
|
---|
| 1189 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1190 | _ACEOF
|
---|
| 1191 |
|
---|
| 1192 |
|
---|
| 1193 | cat >>confdefs.h <<_ACEOF
|
---|
| 1194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1195 | _ACEOF
|
---|
| 1196 |
|
---|
| 1197 |
|
---|
| 1198 | cat >>confdefs.h <<_ACEOF
|
---|
| 1199 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1200 | _ACEOF
|
---|
| 1201 |
|
---|
| 1202 |
|
---|
| 1203 | cat >>confdefs.h <<_ACEOF
|
---|
| 1204 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1205 | _ACEOF
|
---|
| 1206 |
|
---|
| 1207 |
|
---|
| 1208 | cat >>confdefs.h <<_ACEOF
|
---|
| 1209 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1210 | _ACEOF
|
---|
| 1211 |
|
---|
| 1212 |
|
---|
[8063] | 1213 | # Let the site file select an alternate cache file if it wants to.
|
---|
[3365] | 1214 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1215 | if test -z "$CONFIG_SITE"; then
|
---|
| 1216 | if test "x$prefix" != xNONE; then
|
---|
| 1217 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1218 | else
|
---|
| 1219 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1220 | fi
|
---|
| 1221 | fi
|
---|
| 1222 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1223 | if test -r "$ac_site_file"; then
|
---|
[10192] | 1224 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
[8063] | 1225 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10192] | 1226 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[3365] | 1227 | . "$ac_site_file"
|
---|
| 1228 | fi
|
---|
| 1229 | done
|
---|
| 1230 |
|
---|
| 1231 | if test -r "$cache_file"; then
|
---|
[8063] | 1232 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1233 | # files actually), so we avoid doing that.
|
---|
| 1234 | if test -f "$cache_file"; then
|
---|
[10192] | 1235 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
[8063] | 1236 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1237 | case $cache_file in
|
---|
| 1238 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1239 | *) . ./$cache_file;;
|
---|
| 1240 | esac
|
---|
| 1241 | fi
|
---|
[3365] | 1242 | else
|
---|
[10192] | 1243 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
[8063] | 1244 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1245 | >$cache_file
|
---|
[3365] | 1246 | fi
|
---|
| 1247 |
|
---|
[8063] | 1248 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1249 | # value.
|
---|
[10192] | 1250 | ac_cache_corrupted=false
|
---|
[8063] | 1251 | for ac_var in `(set) 2>&1 |
|
---|
[10192] | 1252 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[8063] | 1253 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1254 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1255 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1256 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1257 | case $ac_old_set,$ac_new_set in
|
---|
| 1258 | set,)
|
---|
[10192] | 1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1260 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1261 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1262 | ,set)
|
---|
[10192] | 1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1264 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1265 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1266 | ,);;
|
---|
| 1267 | *)
|
---|
| 1268 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[10192] | 1269 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1270 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1271 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1272 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1273 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1274 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1275 | ac_cache_corrupted=:
|
---|
[8063] | 1276 | fi;;
|
---|
| 1277 | esac
|
---|
[10192] | 1278 | # Pass precious variables to config.status.
|
---|
| 1279 | if test "$ac_new_set" = set; then
|
---|
| 1280 | case $ac_new_val in
|
---|
| 1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1282 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1283 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1284 | esac
|
---|
| 1285 | case " $ac_configure_args " in
|
---|
| 1286 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1287 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1288 | esac
|
---|
| 1289 | fi
|
---|
[8063] | 1290 | done
|
---|
[10192] | 1291 | if $ac_cache_corrupted; then
|
---|
| 1292 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1293 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1294 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1295 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1296 | { (exit 1); exit 1; }; }
|
---|
[8063] | 1297 | fi
|
---|
| 1298 |
|
---|
[3365] | 1299 | ac_ext=c
|
---|
| 1300 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8063] | 1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[3365] | 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
[10192] | 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
| 1323 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1324 |
|
---|
[15560] | 1325 |
|
---|
| 1326 | ac_aux_dir=
|
---|
| 1327 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 1328 | if test -f $ac_dir/install-sh; then
|
---|
| 1329 | ac_aux_dir=$ac_dir
|
---|
| 1330 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 1331 | break
|
---|
| 1332 | elif test -f $ac_dir/install.sh; then
|
---|
| 1333 | ac_aux_dir=$ac_dir
|
---|
| 1334 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 1335 | break
|
---|
| 1336 | elif test -f $ac_dir/shtool; then
|
---|
| 1337 | ac_aux_dir=$ac_dir
|
---|
| 1338 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 1339 | break
|
---|
| 1340 | fi
|
---|
| 1341 | done
|
---|
| 1342 | if test -z "$ac_aux_dir"; then
|
---|
| 1343 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 1344 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 1345 | { (exit 1); exit 1; }; }
|
---|
| 1346 | fi
|
---|
| 1347 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 1348 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 1349 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
| 1350 |
|
---|
| 1351 | # Make sure we can run config.sub.
|
---|
| 1352 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 1353 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 1354 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 1355 | { (exit 1); exit 1; }; }
|
---|
| 1356 |
|
---|
| 1357 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 1358 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 1359 | if test "${ac_cv_build+set}" = set; then
|
---|
| 1360 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1361 | else
|
---|
| 1362 | ac_cv_build_alias=$build_alias
|
---|
| 1363 | test -z "$ac_cv_build_alias" &&
|
---|
| 1364 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 1365 | test -z "$ac_cv_build_alias" &&
|
---|
| 1366 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 1367 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 1368 | { (exit 1); exit 1; }; }
|
---|
| 1369 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 1370 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 1371 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 1372 | { (exit 1); exit 1; }; }
|
---|
| 1373 |
|
---|
| 1374 | fi
|
---|
| 1375 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 1376 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 1377 | build=$ac_cv_build
|
---|
| 1378 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 1379 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 1380 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 1381 |
|
---|
| 1382 |
|
---|
| 1383 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 1384 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 1385 | if test "${ac_cv_host+set}" = set; then
|
---|
| 1386 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1387 | else
|
---|
| 1388 | ac_cv_host_alias=$host_alias
|
---|
| 1389 | test -z "$ac_cv_host_alias" &&
|
---|
| 1390 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 1391 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 1393 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 1394 | { (exit 1); exit 1; }; }
|
---|
| 1395 |
|
---|
| 1396 | fi
|
---|
| 1397 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 1398 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 1399 | host=$ac_cv_host
|
---|
| 1400 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 1401 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 1402 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 1403 |
|
---|
| 1404 |
|
---|
| 1405 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 1406 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 1407 | if test "${ac_cv_target+set}" = set; then
|
---|
| 1408 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1409 | else
|
---|
| 1410 | ac_cv_target_alias=$target_alias
|
---|
| 1411 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 1412 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 1413 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 1414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 1415 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 1416 | { (exit 1); exit 1; }; }
|
---|
| 1417 |
|
---|
| 1418 | fi
|
---|
| 1419 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 1420 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 1421 | target=$ac_cv_target
|
---|
| 1422 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 1423 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 1424 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 1425 |
|
---|
| 1426 |
|
---|
| 1427 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 1428 | # will get canonicalized.
|
---|
| 1429 | test -n "$target_alias" &&
|
---|
| 1430 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 1431 | NONENONEs,x,x, &&
|
---|
| 1432 | program_prefix=${target_alias}-
|
---|
[3365] | 1433 | test "$program_prefix" != NONE &&
|
---|
[10192] | 1434 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
[3365] | 1435 | # Use a double $ so make ignores it.
|
---|
| 1436 | test "$program_suffix" != NONE &&
|
---|
[10192] | 1437 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
| 1438 | # Double any \ or $. echo might interpret backslashes.
|
---|
| 1439 | # By default was `s,x,x', remove it if useless.
|
---|
| 1440 | cat <<\_ACEOF >conftest.sed
|
---|
| 1441 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
| 1442 | _ACEOF
|
---|
| 1443 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
| 1444 | rm conftest.sed
|
---|
[3365] | 1445 |
|
---|
| 1446 |
|
---|
| 1447 | PACKAGE=mgpp
|
---|
| 1448 | VERSION=1.3
|
---|
| 1449 |
|
---|
[10192] | 1450 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1451 | #define PACKAGE "$PACKAGE"
|
---|
[10192] | 1452 | _ACEOF
|
---|
[3365] | 1453 |
|
---|
[10192] | 1454 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1455 | #define VERSION "$VERSION"
|
---|
[10192] | 1456 | _ACEOF
|
---|
[3365] | 1457 |
|
---|
[10192] | 1458 |
|
---|
| 1459 |
|
---|
| 1460 |
|
---|
[15560] | 1461 |
|
---|
| 1462 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 1463 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
| 1464 | arch_64bit=no
|
---|
| 1465 | case "$host_cpu" in
|
---|
| 1466 | x86_64) arch_64bit=yes ;;
|
---|
| 1467 | esac
|
---|
| 1468 |
|
---|
| 1469 | if test "$arch_64bit" = yes; then
|
---|
| 1470 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1471 | echo "${ECHO_T}yes" >&6
|
---|
| 1472 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 1473 | COMPAT32BITFLAGS="-m32"
|
---|
| 1474 | fi
|
---|
| 1475 | else
|
---|
| 1476 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1477 | echo "${ECHO_T}no" >&6
|
---|
| 1478 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 1479 | COMPAT32BITFLAGS=
|
---|
| 1480 | fi
|
---|
| 1481 | fi
|
---|
| 1482 |
|
---|
| 1483 |
|
---|
[13482] | 1484 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1485 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1486 | enableval="$enable_accentfold"
|
---|
| 1487 | ENABLE_ACCENTFOLD=0
|
---|
| 1488 | else
|
---|
| 1489 | ENABLE_ACCENTFOLD=1
|
---|
| 1490 | fi;
|
---|
| 1491 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1492 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1493 | _ACEOF
|
---|
| 1494 |
|
---|
| 1495 |
|
---|
| 1496 |
|
---|
[8063] | 1497 | ac_ext=cc
|
---|
| 1498 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 1499 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1500 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1501 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 1502 | if test -n "$ac_tool_prefix"; then
|
---|
[10192] | 1503 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8063] | 1504 | do
|
---|
| 1505 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1506 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 1507 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1508 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1509 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 1510 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1511 | else
|
---|
| 1512 | if test -n "$CXX"; then
|
---|
| 1513 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 1514 | else
|
---|
[10192] | 1515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1516 | for as_dir in $PATH
|
---|
| 1517 | do
|
---|
| 1518 | IFS=$as_save_IFS
|
---|
| 1519 | test -z "$as_dir" && as_dir=.
|
---|
| 1520 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1521 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1522 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 1523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1524 | break 2
|
---|
| 1525 | fi
|
---|
[8063] | 1526 | done
|
---|
[10192] | 1527 | done
|
---|
[3365] | 1528 |
|
---|
[8063] | 1529 | fi
|
---|
| 1530 | fi
|
---|
| 1531 | CXX=$ac_cv_prog_CXX
|
---|
| 1532 | if test -n "$CXX"; then
|
---|
[10192] | 1533 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
[8063] | 1534 | echo "${ECHO_T}$CXX" >&6
|
---|
| 1535 | else
|
---|
[10192] | 1536 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1537 | echo "${ECHO_T}no" >&6
|
---|
| 1538 | fi
|
---|
[3365] | 1539 |
|
---|
[8063] | 1540 | test -n "$CXX" && break
|
---|
| 1541 | done
|
---|
| 1542 | fi
|
---|
| 1543 | if test -z "$CXX"; then
|
---|
| 1544 | ac_ct_CXX=$CXX
|
---|
[10192] | 1545 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[3365] | 1546 | do
|
---|
[8063] | 1547 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1548 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1549 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1550 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1551 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 1552 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1553 | else
|
---|
[8063] | 1554 | if test -n "$ac_ct_CXX"; then
|
---|
| 1555 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
[3365] | 1556 | else
|
---|
[10192] | 1557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1558 | for as_dir in $PATH
|
---|
| 1559 | do
|
---|
| 1560 | IFS=$as_save_IFS
|
---|
| 1561 | test -z "$as_dir" && as_dir=.
|
---|
| 1562 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1563 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1564 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 1565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1566 | break 2
|
---|
| 1567 | fi
|
---|
[8063] | 1568 | done
|
---|
[10192] | 1569 | done
|
---|
[8063] | 1570 |
|
---|
[3365] | 1571 | fi
|
---|
| 1572 | fi
|
---|
[8063] | 1573 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 1574 | if test -n "$ac_ct_CXX"; then
|
---|
[10192] | 1575 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
[8063] | 1576 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3365] | 1577 | else
|
---|
[10192] | 1578 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1579 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1580 | fi
|
---|
| 1581 |
|
---|
[8063] | 1582 | test -n "$ac_ct_CXX" && break
|
---|
[3365] | 1583 | done
|
---|
[8063] | 1584 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[3365] | 1585 |
|
---|
[8063] | 1586 | CXX=$ac_ct_CXX
|
---|
| 1587 | fi
|
---|
[3365] | 1588 |
|
---|
[10192] | 1589 |
|
---|
| 1590 | # Provide some information about the compiler.
|
---|
| 1591 | echo "$as_me:$LINENO:" \
|
---|
| 1592 | "checking for C++ compiler version" >&5
|
---|
| 1593 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1594 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1595 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1596 | ac_status=$?
|
---|
| 1597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1598 | (exit $ac_status); }
|
---|
| 1599 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1600 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1601 | ac_status=$?
|
---|
| 1602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1603 | (exit $ac_status); }
|
---|
| 1604 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1605 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1606 | ac_status=$?
|
---|
| 1607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1608 | (exit $ac_status); }
|
---|
| 1609 |
|
---|
[8063] | 1610 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1611 | /* confdefs.h. */
|
---|
| 1612 | _ACEOF
|
---|
| 1613 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1614 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1615 | /* end confdefs.h. */
|
---|
[3365] | 1616 |
|
---|
[8063] | 1617 | int
|
---|
| 1618 | main ()
|
---|
| 1619 | {
|
---|
[3365] | 1620 |
|
---|
[8063] | 1621 | ;
|
---|
| 1622 | return 0;
|
---|
| 1623 | }
|
---|
| 1624 | _ACEOF
|
---|
| 1625 | ac_clean_files_save=$ac_clean_files
|
---|
[10192] | 1626 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[8063] | 1627 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10192] | 1628 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[8063] | 1629 | # of exeext.
|
---|
[10192] | 1630 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
---|
| 1631 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
|
---|
[8063] | 1632 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[10192] | 1633 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
[8063] | 1634 | (eval $ac_link_default) 2>&5
|
---|
| 1635 | ac_status=$?
|
---|
[10192] | 1636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1637 | (exit $ac_status); }; then
|
---|
[10192] | 1638 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1639 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1640 | # resort.
|
---|
| 1641 |
|
---|
| 1642 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1643 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1644 | ac_cv_exeext=
|
---|
| 1645 | # b.out is created by i960 compilers.
|
---|
| 1646 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1647 | do
|
---|
| 1648 | test -f "$ac_file" || continue
|
---|
[8063] | 1649 | case $ac_file in
|
---|
[10192] | 1650 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1651 | ;;
|
---|
| 1652 | conftest.$ac_ext )
|
---|
| 1653 | # This is the source file.
|
---|
| 1654 | ;;
|
---|
| 1655 | [ab].out )
|
---|
| 1656 | # We found the default executable, but exeext='' is most
|
---|
| 1657 | # certainly right.
|
---|
| 1658 | break;;
|
---|
| 1659 | *.* )
|
---|
| 1660 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1661 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1662 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1663 | # maintain Libtool? --akim.
|
---|
| 1664 | export ac_cv_exeext
|
---|
| 1665 | break;;
|
---|
| 1666 | * )
|
---|
| 1667 | break;;
|
---|
[8063] | 1668 | esac
|
---|
| 1669 | done
|
---|
| 1670 | else
|
---|
| 1671 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1672 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1673 |
|
---|
| 1674 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
---|
| 1675 | See \`config.log' for more details." >&5
|
---|
| 1676 | echo "$as_me: error: C++ compiler cannot create executables
|
---|
| 1677 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1678 | { (exit 77); exit 77; }; }
|
---|
| 1679 | fi
|
---|
[3365] | 1680 |
|
---|
[8063] | 1681 | ac_exeext=$ac_cv_exeext
|
---|
[10192] | 1682 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
[8063] | 1683 | echo "${ECHO_T}$ac_file" >&6
|
---|
[3365] | 1684 |
|
---|
[8063] | 1685 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1686 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1687 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
---|
[8063] | 1688 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
|
---|
| 1689 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1690 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1691 | if test "$cross_compiling" != yes; then
|
---|
| 1692 | if { ac_try='./$ac_file'
|
---|
[10192] | 1693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1694 | (eval $ac_try) 2>&5
|
---|
| 1695 | ac_status=$?
|
---|
[10192] | 1696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1697 | (exit $ac_status); }; }; then
|
---|
| 1698 | cross_compiling=no
|
---|
[3365] | 1699 | else
|
---|
[8063] | 1700 | if test "$cross_compiling" = maybe; then
|
---|
| 1701 | cross_compiling=yes
|
---|
| 1702 | else
|
---|
[10192] | 1703 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
---|
| 1704 | If you meant to cross compile, use \`--host'.
|
---|
| 1705 | See \`config.log' for more details." >&5
|
---|
[8063] | 1706 | echo "$as_me: error: cannot run C++ compiled programs.
|
---|
[10192] | 1707 | If you meant to cross compile, use \`--host'.
|
---|
| 1708 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1709 | { (exit 1); exit 1; }; }
|
---|
| 1710 | fi
|
---|
[3365] | 1711 | fi
|
---|
| 1712 | fi
|
---|
[10192] | 1713 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 1714 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 1715 |
|
---|
[10192] | 1716 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[8063] | 1717 | ac_clean_files=$ac_clean_files_save
|
---|
| 1718 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1719 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1720 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
[8063] | 1721 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
[10192] | 1722 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
[8063] | 1723 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1724 |
|
---|
[10192] | 1725 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1726 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 1728 | (eval $ac_link) 2>&5
|
---|
| 1729 | ac_status=$?
|
---|
[10192] | 1730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1731 | (exit $ac_status); }; then
|
---|
| 1732 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1733 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1734 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1735 | # `rm'.
|
---|
[10192] | 1736 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1737 | test -f "$ac_file" || continue
|
---|
[8063] | 1738 | case $ac_file in
|
---|
[10192] | 1739 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[8063] | 1740 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10192] | 1741 | export ac_cv_exeext
|
---|
| 1742 | break;;
|
---|
[8063] | 1743 | * ) break;;
|
---|
| 1744 | esac
|
---|
| 1745 | done
|
---|
| 1746 | else
|
---|
[10192] | 1747 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1748 | See \`config.log' for more details." >&5
|
---|
| 1749 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1750 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1751 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1752 | fi
|
---|
| 1753 |
|
---|
[8063] | 1754 | rm -f conftest$ac_cv_exeext
|
---|
[10192] | 1755 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
[8063] | 1756 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1757 |
|
---|
| 1758 | rm -f conftest.$ac_ext
|
---|
| 1759 | EXEEXT=$ac_cv_exeext
|
---|
| 1760 | ac_exeext=$EXEEXT
|
---|
[10192] | 1761 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1762 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[8063] | 1763 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1764 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1765 | else
|
---|
[8063] | 1766 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1767 | /* confdefs.h. */
|
---|
| 1768 | _ACEOF
|
---|
| 1769 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1770 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1771 | /* end confdefs.h. */
|
---|
[8063] | 1772 |
|
---|
| 1773 | int
|
---|
| 1774 | main ()
|
---|
| 1775 | {
|
---|
| 1776 |
|
---|
| 1777 | ;
|
---|
| 1778 | return 0;
|
---|
| 1779 | }
|
---|
| 1780 | _ACEOF
|
---|
| 1781 | rm -f conftest.o conftest.obj
|
---|
[10192] | 1782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
[8063] | 1783 | (eval $ac_compile) 2>&5
|
---|
| 1784 | ac_status=$?
|
---|
[10192] | 1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1786 | (exit $ac_status); }; then
|
---|
| 1787 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1788 | case $ac_file in
|
---|
[10192] | 1789 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[8063] | 1790 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1791 | break;;
|
---|
| 1792 | esac
|
---|
| 1793 | done
|
---|
[3365] | 1794 | else
|
---|
[8063] | 1795 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1796 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1797 |
|
---|
| 1798 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1799 | See \`config.log' for more details." >&5
|
---|
| 1800 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1801 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1802 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1803 | fi
|
---|
[8063] | 1804 |
|
---|
| 1805 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[3365] | 1806 | fi
|
---|
[10192] | 1807 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
[8063] | 1808 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1809 | OBJEXT=$ac_cv_objext
|
---|
| 1810 | ac_objext=$OBJEXT
|
---|
[10192] | 1811 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
[8063] | 1812 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 1813 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 1814 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1815 | else
|
---|
| 1816 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1817 | /* confdefs.h. */
|
---|
| 1818 | _ACEOF
|
---|
| 1819 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1820 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1821 | /* end confdefs.h. */
|
---|
[3365] | 1822 |
|
---|
[8063] | 1823 | int
|
---|
| 1824 | main ()
|
---|
| 1825 | {
|
---|
| 1826 | #ifndef __GNUC__
|
---|
| 1827 | choke me
|
---|
| 1828 | #endif
|
---|
[3365] | 1829 |
|
---|
[8063] | 1830 | ;
|
---|
| 1831 | return 0;
|
---|
| 1832 | }
|
---|
| 1833 | _ACEOF
|
---|
| 1834 | rm -f conftest.$ac_objext
|
---|
[10192] | 1835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1836 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1837 | ac_status=$?
|
---|
[10192] | 1838 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1839 | rm -f conftest.er1
|
---|
| 1840 | cat conftest.err >&5
|
---|
| 1841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1842 | (exit $ac_status); } &&
|
---|
[10192] | 1843 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1844 | || test ! -s conftest.err'
|
---|
| 1845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1846 | (eval $ac_try) 2>&5
|
---|
| 1847 | ac_status=$?
|
---|
[10192] | 1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1849 | (exit $ac_status); }; } &&
|
---|
| 1850 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1852 | (eval $ac_try) 2>&5
|
---|
| 1853 | ac_status=$?
|
---|
| 1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1855 | (exit $ac_status); }; }; then
|
---|
| 1856 | ac_compiler_gnu=yes
|
---|
[3365] | 1857 | else
|
---|
[8063] | 1858 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1859 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1860 |
|
---|
[8063] | 1861 | ac_compiler_gnu=no
|
---|
[3365] | 1862 | fi
|
---|
[10192] | 1863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1864 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
[3365] | 1865 |
|
---|
[8063] | 1866 | fi
|
---|
[10192] | 1867 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[8063] | 1868 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 1869 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 1870 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 1871 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 1872 | CXXFLAGS="-g"
|
---|
[10192] | 1873 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
[8063] | 1874 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 1875 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 1876 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1877 | else
|
---|
[8063] | 1878 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1879 | /* confdefs.h. */
|
---|
| 1880 | _ACEOF
|
---|
| 1881 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1882 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1883 | /* end confdefs.h. */
|
---|
[8063] | 1884 |
|
---|
| 1885 | int
|
---|
| 1886 | main ()
|
---|
| 1887 | {
|
---|
| 1888 |
|
---|
| 1889 | ;
|
---|
| 1890 | return 0;
|
---|
| 1891 | }
|
---|
| 1892 | _ACEOF
|
---|
| 1893 | rm -f conftest.$ac_objext
|
---|
[10192] | 1894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1895 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1896 | ac_status=$?
|
---|
[10192] | 1897 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1898 | rm -f conftest.er1
|
---|
| 1899 | cat conftest.err >&5
|
---|
| 1900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1901 | (exit $ac_status); } &&
|
---|
[10192] | 1902 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1903 | || test ! -s conftest.err'
|
---|
| 1904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1905 | (eval $ac_try) 2>&5
|
---|
| 1906 | ac_status=$?
|
---|
[10192] | 1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1908 | (exit $ac_status); }; } &&
|
---|
| 1909 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1911 | (eval $ac_try) 2>&5
|
---|
| 1912 | ac_status=$?
|
---|
| 1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1914 | (exit $ac_status); }; }; then
|
---|
[3365] | 1915 | ac_cv_prog_cxx_g=yes
|
---|
| 1916 | else
|
---|
[8063] | 1917 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1918 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1919 |
|
---|
[8063] | 1920 | ac_cv_prog_cxx_g=no
|
---|
[3365] | 1921 | fi
|
---|
[10192] | 1922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 1923 | fi
|
---|
[10192] | 1924 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
[8063] | 1925 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[3365] | 1926 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8063] | 1927 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[3365] | 1928 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 1929 | if test "$GXX" = yes; then
|
---|
| 1930 | CXXFLAGS="-g -O2"
|
---|
| 1931 | else
|
---|
| 1932 | CXXFLAGS="-g"
|
---|
| 1933 | fi
|
---|
| 1934 | else
|
---|
| 1935 | if test "$GXX" = yes; then
|
---|
| 1936 | CXXFLAGS="-O2"
|
---|
| 1937 | else
|
---|
| 1938 | CXXFLAGS=
|
---|
| 1939 | fi
|
---|
| 1940 | fi
|
---|
[8063] | 1941 | for ac_declaration in \
|
---|
[10192] | 1942 | '' \
|
---|
[8063] | 1943 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 1944 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 1945 | 'extern "C" void exit (int) throw ();' \
|
---|
| 1946 | 'extern "C" void exit (int);' \
|
---|
| 1947 | 'void exit (int);'
|
---|
| 1948 | do
|
---|
| 1949 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1950 | /* confdefs.h. */
|
---|
| 1951 | _ACEOF
|
---|
| 1952 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1953 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1954 | /* end confdefs.h. */
|
---|
| 1955 | $ac_declaration
|
---|
[8063] | 1956 | #include <stdlib.h>
|
---|
| 1957 | int
|
---|
| 1958 | main ()
|
---|
| 1959 | {
|
---|
| 1960 | exit (42);
|
---|
| 1961 | ;
|
---|
| 1962 | return 0;
|
---|
| 1963 | }
|
---|
| 1964 | _ACEOF
|
---|
| 1965 | rm -f conftest.$ac_objext
|
---|
[10192] | 1966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1967 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1968 | ac_status=$?
|
---|
[10192] | 1969 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1970 | rm -f conftest.er1
|
---|
| 1971 | cat conftest.err >&5
|
---|
| 1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1973 | (exit $ac_status); } &&
|
---|
[10192] | 1974 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1975 | || test ! -s conftest.err'
|
---|
| 1976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1977 | (eval $ac_try) 2>&5
|
---|
| 1978 | ac_status=$?
|
---|
[10192] | 1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1980 | (exit $ac_status); }; } &&
|
---|
| 1981 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1983 | (eval $ac_try) 2>&5
|
---|
| 1984 | ac_status=$?
|
---|
| 1985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1986 | (exit $ac_status); }; }; then
|
---|
| 1987 | :
|
---|
| 1988 | else
|
---|
| 1989 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1990 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1991 |
|
---|
[8063] | 1992 | continue
|
---|
| 1993 | fi
|
---|
[10192] | 1994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1995 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1996 | /* confdefs.h. */
|
---|
| 1997 | _ACEOF
|
---|
| 1998 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1999 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2000 | /* end confdefs.h. */
|
---|
[8063] | 2001 | $ac_declaration
|
---|
| 2002 | int
|
---|
| 2003 | main ()
|
---|
| 2004 | {
|
---|
| 2005 | exit (42);
|
---|
| 2006 | ;
|
---|
| 2007 | return 0;
|
---|
| 2008 | }
|
---|
| 2009 | _ACEOF
|
---|
| 2010 | rm -f conftest.$ac_objext
|
---|
[10192] | 2011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2012 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2013 | ac_status=$?
|
---|
[10192] | 2014 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2015 | rm -f conftest.er1
|
---|
| 2016 | cat conftest.err >&5
|
---|
| 2017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2018 | (exit $ac_status); } &&
|
---|
[10192] | 2019 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2020 | || test ! -s conftest.err'
|
---|
| 2021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2022 | (eval $ac_try) 2>&5
|
---|
| 2023 | ac_status=$?
|
---|
[10192] | 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2025 | (exit $ac_status); }; } &&
|
---|
| 2026 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2028 | (eval $ac_try) 2>&5
|
---|
| 2029 | ac_status=$?
|
---|
| 2030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2031 | (exit $ac_status); }; }; then
|
---|
| 2032 | break
|
---|
| 2033 | else
|
---|
| 2034 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2035 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2036 |
|
---|
[8063] | 2037 | fi
|
---|
[10192] | 2038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2039 | done
|
---|
[10192] | 2040 | rm -f conftest*
|
---|
| 2041 | if test -n "$ac_declaration"; then
|
---|
| 2042 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2043 | echo $ac_declaration >>confdefs.h
|
---|
| 2044 | echo '#endif' >>confdefs.h
|
---|
| 2045 | fi
|
---|
[3365] | 2046 |
|
---|
[8063] | 2047 | ac_ext=c
|
---|
| 2048 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2052 |
|
---|
[10192] | 2053 | for ac_prog in gawk mawk nawk awk
|
---|
[3365] | 2054 | do
|
---|
[8063] | 2055 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 2056 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 2057 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2059 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2060 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2061 | else
|
---|
| 2062 | if test -n "$AWK"; then
|
---|
| 2063 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2064 | else
|
---|
[10192] | 2065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2066 | for as_dir in $PATH
|
---|
| 2067 | do
|
---|
| 2068 | IFS=$as_save_IFS
|
---|
| 2069 | test -z "$as_dir" && as_dir=.
|
---|
| 2070 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2072 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2074 | break 2
|
---|
| 2075 | fi
|
---|
[8063] | 2076 | done
|
---|
[10192] | 2077 | done
|
---|
[8063] | 2078 |
|
---|
[3365] | 2079 | fi
|
---|
| 2080 | fi
|
---|
[8063] | 2081 | AWK=$ac_cv_prog_AWK
|
---|
[3365] | 2082 | if test -n "$AWK"; then
|
---|
[10192] | 2083 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
[8063] | 2084 | echo "${ECHO_T}$AWK" >&6
|
---|
[3365] | 2085 | else
|
---|
[10192] | 2086 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2087 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2088 | fi
|
---|
| 2089 |
|
---|
[8063] | 2090 | test -n "$AWK" && break
|
---|
[3365] | 2091 | done
|
---|
| 2092 |
|
---|
| 2093 | for ac_prog in 'bison -y' byacc
|
---|
| 2094 | do
|
---|
[8063] | 2095 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 2096 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 2097 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2099 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2100 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2101 | else
|
---|
| 2102 | if test -n "$YACC"; then
|
---|
| 2103 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2104 | else
|
---|
[10192] | 2105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2106 | for as_dir in $PATH
|
---|
| 2107 | do
|
---|
| 2108 | IFS=$as_save_IFS
|
---|
| 2109 | test -z "$as_dir" && as_dir=.
|
---|
| 2110 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2112 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2114 | break 2
|
---|
| 2115 | fi
|
---|
[8063] | 2116 | done
|
---|
[10192] | 2117 | done
|
---|
[8063] | 2118 |
|
---|
[3365] | 2119 | fi
|
---|
| 2120 | fi
|
---|
[8063] | 2121 | YACC=$ac_cv_prog_YACC
|
---|
[3365] | 2122 | if test -n "$YACC"; then
|
---|
[10192] | 2123 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
[8063] | 2124 | echo "${ECHO_T}$YACC" >&6
|
---|
[3365] | 2125 | else
|
---|
[10192] | 2126 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2127 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2128 | fi
|
---|
| 2129 |
|
---|
[8063] | 2130 | test -n "$YACC" && break
|
---|
[3365] | 2131 | done
|
---|
| 2132 | test -n "$YACC" || YACC="yacc"
|
---|
| 2133 |
|
---|
[8063] | 2134 | ac_ext=c
|
---|
| 2135 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2139 | if test -n "$ac_tool_prefix"; then
|
---|
| 2140 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2141 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[10192] | 2142 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2144 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2145 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2146 | else
|
---|
| 2147 | if test -n "$CC"; then
|
---|
| 2148 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2149 | else
|
---|
[10192] | 2150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2151 | for as_dir in $PATH
|
---|
| 2152 | do
|
---|
| 2153 | IFS=$as_save_IFS
|
---|
| 2154 | test -z "$as_dir" && as_dir=.
|
---|
| 2155 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2157 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 2158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2159 | break 2
|
---|
| 2160 | fi
|
---|
[8063] | 2161 | done
|
---|
[10192] | 2162 | done
|
---|
[8063] | 2163 |
|
---|
| 2164 | fi
|
---|
| 2165 | fi
|
---|
| 2166 | CC=$ac_cv_prog_CC
|
---|
| 2167 | if test -n "$CC"; then
|
---|
[10192] | 2168 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2169 | echo "${ECHO_T}$CC" >&6
|
---|
| 2170 | else
|
---|
[10192] | 2171 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2172 | echo "${ECHO_T}no" >&6
|
---|
| 2173 | fi
|
---|
| 2174 |
|
---|
| 2175 | fi
|
---|
| 2176 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2177 | ac_ct_CC=$CC
|
---|
| 2178 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[3365] | 2179 | set dummy gcc; ac_word=$2
|
---|
[10192] | 2180 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2182 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2183 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2184 | else
|
---|
[8063] | 2185 | if test -n "$ac_ct_CC"; then
|
---|
| 2186 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2187 | else
|
---|
[10192] | 2188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2189 | for as_dir in $PATH
|
---|
| 2190 | do
|
---|
| 2191 | IFS=$as_save_IFS
|
---|
| 2192 | test -z "$as_dir" && as_dir=.
|
---|
| 2193 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2194 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2195 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 2196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2197 | break 2
|
---|
| 2198 | fi
|
---|
[8063] | 2199 | done
|
---|
[10192] | 2200 | done
|
---|
[8063] | 2201 |
|
---|
| 2202 | fi
|
---|
| 2203 | fi
|
---|
| 2204 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2205 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2206 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2207 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2208 | else
|
---|
[10192] | 2209 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2210 | echo "${ECHO_T}no" >&6
|
---|
| 2211 | fi
|
---|
| 2212 |
|
---|
| 2213 | CC=$ac_ct_CC
|
---|
| 2214 | else
|
---|
| 2215 | CC="$ac_cv_prog_CC"
|
---|
| 2216 | fi
|
---|
| 2217 |
|
---|
| 2218 | if test -z "$CC"; then
|
---|
| 2219 | if test -n "$ac_tool_prefix"; then
|
---|
| 2220 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 2221 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[10192] | 2222 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2224 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2225 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2226 | else
|
---|
[3365] | 2227 | if test -n "$CC"; then
|
---|
| 2228 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2229 | else
|
---|
[10192] | 2230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2231 | for as_dir in $PATH
|
---|
| 2232 | do
|
---|
| 2233 | IFS=$as_save_IFS
|
---|
| 2234 | test -z "$as_dir" && as_dir=.
|
---|
| 2235 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2237 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 2238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2239 | break 2
|
---|
| 2240 | fi
|
---|
[8063] | 2241 | done
|
---|
[10192] | 2242 | done
|
---|
[8063] | 2243 |
|
---|
[3365] | 2244 | fi
|
---|
| 2245 | fi
|
---|
[8063] | 2246 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2247 | if test -n "$CC"; then
|
---|
[10192] | 2248 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2249 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2250 | else
|
---|
[10192] | 2251 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2252 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2253 | fi
|
---|
| 2254 |
|
---|
[8063] | 2255 | fi
|
---|
| 2256 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2257 | ac_ct_CC=$CC
|
---|
| 2258 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2259 | set dummy cc; ac_word=$2
|
---|
[10192] | 2260 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2261 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2262 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2264 | else
|
---|
| 2265 | if test -n "$ac_ct_CC"; then
|
---|
| 2266 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2267 | else
|
---|
[10192] | 2268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2269 | for as_dir in $PATH
|
---|
| 2270 | do
|
---|
| 2271 | IFS=$as_save_IFS
|
---|
| 2272 | test -z "$as_dir" && as_dir=.
|
---|
| 2273 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2274 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2275 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 2276 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2277 | break 2
|
---|
| 2278 | fi
|
---|
[8063] | 2279 | done
|
---|
[10192] | 2280 | done
|
---|
[8063] | 2281 |
|
---|
| 2282 | fi
|
---|
| 2283 | fi
|
---|
| 2284 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2285 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2286 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2287 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2288 | else
|
---|
[10192] | 2289 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2290 | echo "${ECHO_T}no" >&6
|
---|
| 2291 | fi
|
---|
| 2292 |
|
---|
| 2293 | CC=$ac_ct_CC
|
---|
| 2294 | else
|
---|
| 2295 | CC="$ac_cv_prog_CC"
|
---|
| 2296 | fi
|
---|
| 2297 |
|
---|
| 2298 | fi
|
---|
[3365] | 2299 | if test -z "$CC"; then
|
---|
| 2300 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2301 | set dummy cc; ac_word=$2
|
---|
[10192] | 2302 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2304 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2305 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2306 | else
|
---|
| 2307 | if test -n "$CC"; then
|
---|
| 2308 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2309 | else
|
---|
| 2310 | ac_prog_rejected=no
|
---|
[10192] | 2311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2312 | for as_dir in $PATH
|
---|
| 2313 | do
|
---|
| 2314 | IFS=$as_save_IFS
|
---|
| 2315 | test -z "$as_dir" && as_dir=.
|
---|
| 2316 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2318 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2319 | ac_prog_rejected=yes
|
---|
| 2320 | continue
|
---|
| 2321 | fi
|
---|
| 2322 | ac_cv_prog_CC="cc"
|
---|
| 2323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2324 | break 2
|
---|
| 2325 | fi
|
---|
[8063] | 2326 | done
|
---|
[10192] | 2327 | done
|
---|
[8063] | 2328 |
|
---|
[3365] | 2329 | if test $ac_prog_rejected = yes; then
|
---|
| 2330 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2331 | set dummy $ac_cv_prog_CC
|
---|
| 2332 | shift
|
---|
[8063] | 2333 | if test $# != 0; then
|
---|
[3365] | 2334 | # We chose a different compiler from the bogus one.
|
---|
| 2335 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2336 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2337 | shift
|
---|
[10192] | 2338 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3365] | 2339 | fi
|
---|
| 2340 | fi
|
---|
| 2341 | fi
|
---|
| 2342 | fi
|
---|
[8063] | 2343 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2344 | if test -n "$CC"; then
|
---|
[10192] | 2345 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2346 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2347 | else
|
---|
[10192] | 2348 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2349 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2350 | fi
|
---|
| 2351 |
|
---|
[8063] | 2352 | fi
|
---|
| 2353 | if test -z "$CC"; then
|
---|
| 2354 | if test -n "$ac_tool_prefix"; then
|
---|
| 2355 | for ac_prog in cl
|
---|
| 2356 | do
|
---|
| 2357 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2358 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 2359 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2361 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2362 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2363 | else
|
---|
| 2364 | if test -n "$CC"; then
|
---|
| 2365 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2366 | else
|
---|
[10192] | 2367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2368 | for as_dir in $PATH
|
---|
| 2369 | do
|
---|
| 2370 | IFS=$as_save_IFS
|
---|
| 2371 | test -z "$as_dir" && as_dir=.
|
---|
| 2372 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2374 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 2375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2376 | break 2
|
---|
| 2377 | fi
|
---|
[8063] | 2378 | done
|
---|
[10192] | 2379 | done
|
---|
[8063] | 2380 |
|
---|
[3365] | 2381 | fi
|
---|
| 2382 | fi
|
---|
[8063] | 2383 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2384 | if test -n "$CC"; then
|
---|
[10192] | 2385 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2386 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2387 | else
|
---|
[10192] | 2388 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2389 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2390 | fi
|
---|
[8063] | 2391 |
|
---|
| 2392 | test -n "$CC" && break
|
---|
| 2393 | done
|
---|
[3365] | 2394 | fi
|
---|
[8063] | 2395 | if test -z "$CC"; then
|
---|
| 2396 | ac_ct_CC=$CC
|
---|
| 2397 | for ac_prog in cl
|
---|
| 2398 | do
|
---|
| 2399 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2400 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 2401 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2403 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2404 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2405 | else
|
---|
| 2406 | if test -n "$ac_ct_CC"; then
|
---|
| 2407 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2408 | else
|
---|
[10192] | 2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2410 | for as_dir in $PATH
|
---|
| 2411 | do
|
---|
| 2412 | IFS=$as_save_IFS
|
---|
| 2413 | test -z "$as_dir" && as_dir=.
|
---|
| 2414 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2416 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 2417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2418 | break 2
|
---|
| 2419 | fi
|
---|
[8063] | 2420 | done
|
---|
[10192] | 2421 | done
|
---|
[3365] | 2422 |
|
---|
[8063] | 2423 | fi
|
---|
| 2424 | fi
|
---|
| 2425 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2426 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2427 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2428 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2429 | else
|
---|
[10192] | 2430 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2431 | echo "${ECHO_T}no" >&6
|
---|
| 2432 | fi
|
---|
[3365] | 2433 |
|
---|
[8063] | 2434 | test -n "$ac_ct_CC" && break
|
---|
| 2435 | done
|
---|
[3365] | 2436 |
|
---|
[8063] | 2437 | CC=$ac_ct_CC
|
---|
[3365] | 2438 | fi
|
---|
| 2439 |
|
---|
| 2440 | fi
|
---|
| 2441 |
|
---|
[10192] | 2442 |
|
---|
| 2443 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 2444 | See \`config.log' for more details." >&5
|
---|
| 2445 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 2446 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 2447 | { (exit 1); exit 1; }; }
|
---|
| 2448 |
|
---|
[10192] | 2449 | # Provide some information about the compiler.
|
---|
| 2450 | echo "$as_me:$LINENO:" \
|
---|
| 2451 | "checking for C compiler version" >&5
|
---|
| 2452 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2453 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2454 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2455 | ac_status=$?
|
---|
| 2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2457 | (exit $ac_status); }
|
---|
| 2458 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2459 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2460 | ac_status=$?
|
---|
| 2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2462 | (exit $ac_status); }
|
---|
| 2463 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2464 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2465 | ac_status=$?
|
---|
| 2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2467 | (exit $ac_status); }
|
---|
| 2468 |
|
---|
| 2469 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
[8063] | 2470 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2471 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2472 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2473 | else
|
---|
[8063] | 2474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2475 | /* confdefs.h. */
|
---|
| 2476 | _ACEOF
|
---|
| 2477 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2479 | /* end confdefs.h. */
|
---|
[8063] | 2480 |
|
---|
| 2481 | int
|
---|
| 2482 | main ()
|
---|
| 2483 | {
|
---|
| 2484 | #ifndef __GNUC__
|
---|
| 2485 | choke me
|
---|
[3365] | 2486 | #endif
|
---|
[8063] | 2487 |
|
---|
| 2488 | ;
|
---|
| 2489 | return 0;
|
---|
| 2490 | }
|
---|
| 2491 | _ACEOF
|
---|
| 2492 | rm -f conftest.$ac_objext
|
---|
[10192] | 2493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2494 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2495 | ac_status=$?
|
---|
[10192] | 2496 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2497 | rm -f conftest.er1
|
---|
| 2498 | cat conftest.err >&5
|
---|
| 2499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2500 | (exit $ac_status); } &&
|
---|
[10192] | 2501 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2502 | || test ! -s conftest.err'
|
---|
| 2503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2504 | (eval $ac_try) 2>&5
|
---|
| 2505 | ac_status=$?
|
---|
[10192] | 2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2507 | (exit $ac_status); }; } &&
|
---|
| 2508 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2510 | (eval $ac_try) 2>&5
|
---|
| 2511 | ac_status=$?
|
---|
| 2512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2513 | (exit $ac_status); }; }; then
|
---|
| 2514 | ac_compiler_gnu=yes
|
---|
[8059] | 2515 | else
|
---|
[8063] | 2516 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2518 |
|
---|
[8063] | 2519 | ac_compiler_gnu=no
|
---|
[8059] | 2520 | fi
|
---|
[10192] | 2521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2522 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2523 |
|
---|
[8059] | 2524 | fi
|
---|
[10192] | 2525 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[8063] | 2526 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2527 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2528 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2529 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2530 | CFLAGS="-g"
|
---|
[10192] | 2531 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
[8063] | 2532 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2533 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2534 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2535 | else
|
---|
| 2536 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2537 | /* confdefs.h. */
|
---|
| 2538 | _ACEOF
|
---|
| 2539 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2540 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2541 | /* end confdefs.h. */
|
---|
[3365] | 2542 |
|
---|
[8063] | 2543 | int
|
---|
| 2544 | main ()
|
---|
| 2545 | {
|
---|
[8059] | 2546 |
|
---|
[8063] | 2547 | ;
|
---|
| 2548 | return 0;
|
---|
| 2549 | }
|
---|
| 2550 | _ACEOF
|
---|
| 2551 | rm -f conftest.$ac_objext
|
---|
[10192] | 2552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2553 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2554 | ac_status=$?
|
---|
[10192] | 2555 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2556 | rm -f conftest.er1
|
---|
| 2557 | cat conftest.err >&5
|
---|
| 2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2559 | (exit $ac_status); } &&
|
---|
[10192] | 2560 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2561 | || test ! -s conftest.err'
|
---|
| 2562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2563 | (eval $ac_try) 2>&5
|
---|
| 2564 | ac_status=$?
|
---|
[10192] | 2565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2566 | (exit $ac_status); }; } &&
|
---|
| 2567 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2569 | (eval $ac_try) 2>&5
|
---|
| 2570 | ac_status=$?
|
---|
| 2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2572 | (exit $ac_status); }; }; then
|
---|
[3365] | 2573 | ac_cv_prog_cc_g=yes
|
---|
| 2574 | else
|
---|
[8063] | 2575 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2576 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2577 |
|
---|
[8063] | 2578 | ac_cv_prog_cc_g=no
|
---|
[3365] | 2579 | fi
|
---|
[10192] | 2580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 2581 | fi
|
---|
[10192] | 2582 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
[8063] | 2583 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[3365] | 2584 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8063] | 2585 | CFLAGS=$ac_save_CFLAGS
|
---|
[3365] | 2586 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2587 | if test "$GCC" = yes; then
|
---|
| 2588 | CFLAGS="-g -O2"
|
---|
| 2589 | else
|
---|
| 2590 | CFLAGS="-g"
|
---|
| 2591 | fi
|
---|
| 2592 | else
|
---|
| 2593 | if test "$GCC" = yes; then
|
---|
| 2594 | CFLAGS="-O2"
|
---|
| 2595 | else
|
---|
| 2596 | CFLAGS=
|
---|
| 2597 | fi
|
---|
| 2598 | fi
|
---|
[10192] | 2599 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2600 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2601 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2602 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2603 | else
|
---|
| 2604 | ac_cv_prog_cc_stdc=no
|
---|
| 2605 | ac_save_CC=$CC
|
---|
| 2606 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2607 | /* confdefs.h. */
|
---|
| 2608 | _ACEOF
|
---|
| 2609 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2610 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2611 | /* end confdefs.h. */
|
---|
| 2612 | #include <stdarg.h>
|
---|
| 2613 | #include <stdio.h>
|
---|
| 2614 | #include <sys/types.h>
|
---|
| 2615 | #include <sys/stat.h>
|
---|
| 2616 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2617 | struct buf { int x; };
|
---|
| 2618 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2619 | static char *e (p, i)
|
---|
| 2620 | char **p;
|
---|
| 2621 | int i;
|
---|
| 2622 | {
|
---|
| 2623 | return p[i];
|
---|
| 2624 | }
|
---|
| 2625 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2626 | {
|
---|
| 2627 | char *s;
|
---|
| 2628 | va_list v;
|
---|
| 2629 | va_start (v,p);
|
---|
| 2630 | s = g (p, va_arg (v,int));
|
---|
| 2631 | va_end (v);
|
---|
| 2632 | return s;
|
---|
| 2633 | }
|
---|
| 2634 |
|
---|
| 2635 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2636 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2637 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2638 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2639 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2640 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2641 | that's true only with -std1. */
|
---|
| 2642 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2643 |
|
---|
| 2644 | int test (int i, double x);
|
---|
| 2645 | struct s1 {int (*f) (int a);};
|
---|
| 2646 | struct s2 {int (*f) (double a);};
|
---|
| 2647 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2648 | int argc;
|
---|
| 2649 | char **argv;
|
---|
| 2650 | int
|
---|
| 2651 | main ()
|
---|
| 2652 | {
|
---|
| 2653 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2654 | ;
|
---|
| 2655 | return 0;
|
---|
| 2656 | }
|
---|
| 2657 | _ACEOF
|
---|
| 2658 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2659 | # breaks some systems' header files.
|
---|
| 2660 | # AIX -qlanglvl=ansi
|
---|
| 2661 | # Ultrix and OSF/1 -std1
|
---|
| 2662 | # HP-UX 10.20 and later -Ae
|
---|
| 2663 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2664 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2665 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 2666 | do
|
---|
| 2667 | CC="$ac_save_CC $ac_arg"
|
---|
| 2668 | rm -f conftest.$ac_objext
|
---|
| 2669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2670 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2671 | ac_status=$?
|
---|
| 2672 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2673 | rm -f conftest.er1
|
---|
| 2674 | cat conftest.err >&5
|
---|
| 2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2676 | (exit $ac_status); } &&
|
---|
| 2677 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2678 | || test ! -s conftest.err'
|
---|
| 2679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2680 | (eval $ac_try) 2>&5
|
---|
| 2681 | ac_status=$?
|
---|
| 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2683 | (exit $ac_status); }; } &&
|
---|
| 2684 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2686 | (eval $ac_try) 2>&5
|
---|
| 2687 | ac_status=$?
|
---|
| 2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2689 | (exit $ac_status); }; }; then
|
---|
| 2690 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2691 | break
|
---|
| 2692 | else
|
---|
| 2693 | echo "$as_me: failed program was:" >&5
|
---|
| 2694 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2695 |
|
---|
| 2696 | fi
|
---|
| 2697 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2698 | done
|
---|
| 2699 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2700 | CC=$ac_save_CC
|
---|
| 2701 |
|
---|
| 2702 | fi
|
---|
| 2703 |
|
---|
| 2704 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2705 | x|xno)
|
---|
| 2706 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2707 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2708 | *)
|
---|
| 2709 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2710 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2711 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2712 | esac
|
---|
| 2713 |
|
---|
[8063] | 2714 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2715 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2716 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2717 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2718 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2719 | #ifndef __cplusplus
|
---|
| 2720 | choke me
|
---|
| 2721 | #endif
|
---|
| 2722 | _ACEOF
|
---|
| 2723 | rm -f conftest.$ac_objext
|
---|
[10192] | 2724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2725 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2726 | ac_status=$?
|
---|
[10192] | 2727 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2728 | rm -f conftest.er1
|
---|
| 2729 | cat conftest.err >&5
|
---|
| 2730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2731 | (exit $ac_status); } &&
|
---|
[10192] | 2732 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2733 | || test ! -s conftest.err'
|
---|
| 2734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2735 | (eval $ac_try) 2>&5
|
---|
| 2736 | ac_status=$?
|
---|
[10192] | 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2738 | (exit $ac_status); }; } &&
|
---|
| 2739 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2741 | (eval $ac_try) 2>&5
|
---|
| 2742 | ac_status=$?
|
---|
| 2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2744 | (exit $ac_status); }; }; then
|
---|
| 2745 | for ac_declaration in \
|
---|
[10192] | 2746 | '' \
|
---|
[8063] | 2747 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2748 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2749 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2750 | 'extern "C" void exit (int);' \
|
---|
| 2751 | 'void exit (int);'
|
---|
| 2752 | do
|
---|
| 2753 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2754 | /* confdefs.h. */
|
---|
| 2755 | _ACEOF
|
---|
| 2756 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2757 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2758 | /* end confdefs.h. */
|
---|
| 2759 | $ac_declaration
|
---|
[8063] | 2760 | #include <stdlib.h>
|
---|
| 2761 | int
|
---|
| 2762 | main ()
|
---|
| 2763 | {
|
---|
| 2764 | exit (42);
|
---|
| 2765 | ;
|
---|
| 2766 | return 0;
|
---|
| 2767 | }
|
---|
| 2768 | _ACEOF
|
---|
| 2769 | rm -f conftest.$ac_objext
|
---|
[10192] | 2770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2771 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2772 | ac_status=$?
|
---|
[10192] | 2773 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2774 | rm -f conftest.er1
|
---|
| 2775 | cat conftest.err >&5
|
---|
| 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2777 | (exit $ac_status); } &&
|
---|
[10192] | 2778 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2779 | || test ! -s conftest.err'
|
---|
| 2780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2781 | (eval $ac_try) 2>&5
|
---|
| 2782 | ac_status=$?
|
---|
[10192] | 2783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2784 | (exit $ac_status); }; } &&
|
---|
| 2785 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2787 | (eval $ac_try) 2>&5
|
---|
| 2788 | ac_status=$?
|
---|
| 2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2790 | (exit $ac_status); }; }; then
|
---|
| 2791 | :
|
---|
| 2792 | else
|
---|
| 2793 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2794 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2795 |
|
---|
[8063] | 2796 | continue
|
---|
| 2797 | fi
|
---|
[10192] | 2798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2799 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2800 | /* confdefs.h. */
|
---|
| 2801 | _ACEOF
|
---|
| 2802 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2803 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2804 | /* end confdefs.h. */
|
---|
[8063] | 2805 | $ac_declaration
|
---|
| 2806 | int
|
---|
| 2807 | main ()
|
---|
| 2808 | {
|
---|
| 2809 | exit (42);
|
---|
| 2810 | ;
|
---|
| 2811 | return 0;
|
---|
| 2812 | }
|
---|
| 2813 | _ACEOF
|
---|
| 2814 | rm -f conftest.$ac_objext
|
---|
[10192] | 2815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2816 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2817 | ac_status=$?
|
---|
[10192] | 2818 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2819 | rm -f conftest.er1
|
---|
| 2820 | cat conftest.err >&5
|
---|
| 2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2822 | (exit $ac_status); } &&
|
---|
[10192] | 2823 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2824 | || test ! -s conftest.err'
|
---|
| 2825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2826 | (eval $ac_try) 2>&5
|
---|
| 2827 | ac_status=$?
|
---|
[10192] | 2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2829 | (exit $ac_status); }; } &&
|
---|
| 2830 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2832 | (eval $ac_try) 2>&5
|
---|
| 2833 | ac_status=$?
|
---|
| 2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2835 | (exit $ac_status); }; }; then
|
---|
| 2836 | break
|
---|
| 2837 | else
|
---|
| 2838 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2839 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2840 |
|
---|
[8063] | 2841 | fi
|
---|
[10192] | 2842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2843 | done
|
---|
[10192] | 2844 | rm -f conftest*
|
---|
| 2845 | if test -n "$ac_declaration"; then
|
---|
| 2846 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2847 | echo $ac_declaration >>confdefs.h
|
---|
| 2848 | echo '#endif' >>confdefs.h
|
---|
| 2849 | fi
|
---|
[3365] | 2850 |
|
---|
[8063] | 2851 | else
|
---|
| 2852 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2853 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2854 |
|
---|
[8063] | 2855 | fi
|
---|
[10192] | 2856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2857 | ac_ext=c
|
---|
| 2858 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2862 |
|
---|
[3365] | 2863 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2864 | # so one script is as good as another. But avoid the broken or
|
---|
| 2865 | # incompatible versions:
|
---|
| 2866 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2867 | # SunOS /usr/etc/install
|
---|
| 2868 | # IRIX /sbin/install
|
---|
| 2869 | # AIX /bin/install
|
---|
[8063] | 2870 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[3365] | 2871 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2872 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2873 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10192] | 2874 | # OS/2's system install, which has a completely different semantic
|
---|
[3365] | 2875 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[10192] | 2876 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2877 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[3365] | 2878 | if test -z "$INSTALL"; then
|
---|
[8063] | 2879 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2880 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2881 | else
|
---|
[10192] | 2882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2883 | for as_dir in $PATH
|
---|
| 2884 | do
|
---|
| 2885 | IFS=$as_save_IFS
|
---|
| 2886 | test -z "$as_dir" && as_dir=.
|
---|
| 2887 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2888 | case $as_dir/ in
|
---|
| 2889 | ./ | .// | /cC/* | \
|
---|
| 2890 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2891 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2892 | /usr/ucb/* ) ;;
|
---|
| 2893 | *)
|
---|
| 2894 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2895 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2896 | # by default.
|
---|
| 2897 | for ac_prog in ginstall scoinst install; do
|
---|
| 2898 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2899 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[3365] | 2900 | if test $ac_prog = install &&
|
---|
[10192] | 2901 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3365] | 2902 | # AIX install. It has an incompatible calling convention.
|
---|
| 2903 | :
|
---|
[8063] | 2904 | elif test $ac_prog = install &&
|
---|
[10192] | 2905 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[8063] | 2906 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2907 | :
|
---|
[3365] | 2908 | else
|
---|
[10192] | 2909 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2910 | break 3
|
---|
[3365] | 2911 | fi
|
---|
| 2912 | fi
|
---|
| 2913 | done
|
---|
[10192] | 2914 | done
|
---|
| 2915 | ;;
|
---|
| 2916 | esac
|
---|
| 2917 | done
|
---|
[3365] | 2918 |
|
---|
[10192] | 2919 |
|
---|
[3365] | 2920 | fi
|
---|
| 2921 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8063] | 2922 | INSTALL=$ac_cv_path_install
|
---|
[3365] | 2923 | else
|
---|
| 2924 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2925 | # path for INSTALL within a source directory, because that will
|
---|
| 2926 | # break other packages using the cache if that directory is
|
---|
| 2927 | # removed, or if the path is relative.
|
---|
[8063] | 2928 | INSTALL=$ac_install_sh
|
---|
[3365] | 2929 | fi
|
---|
| 2930 | fi
|
---|
[10192] | 2931 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
[8063] | 2932 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[3365] | 2933 |
|
---|
| 2934 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2935 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2936 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2937 |
|
---|
[8063] | 2938 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[3365] | 2939 |
|
---|
| 2940 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2941 |
|
---|
[10192] | 2942 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
[8063] | 2943 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2944 | LN_S=$as_ln_s
|
---|
| 2945 | if test "$LN_S" = "ln -s"; then
|
---|
[10192] | 2946 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2947 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2948 | else
|
---|
[10192] | 2949 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
[8063] | 2950 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[3365] | 2951 | fi
|
---|
| 2952 |
|
---|
[10192] | 2953 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2954 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2955 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
[8063] | 2956 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2957 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2958 | else
|
---|
[10192] | 2959 | cat >conftest.make <<\_ACEOF
|
---|
[3365] | 2960 | all:
|
---|
[10192] | 2961 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2962 | _ACEOF
|
---|
[3365] | 2963 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8063] | 2964 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[3365] | 2965 | if test -n "$ac_maketemp"; then
|
---|
| 2966 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2967 | else
|
---|
| 2968 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2969 | fi
|
---|
[8063] | 2970 | rm -f conftest.make
|
---|
[3365] | 2971 | fi
|
---|
| 2972 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[10192] | 2973 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2974 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2975 | SET_MAKE=
|
---|
| 2976 | else
|
---|
[10192] | 2977 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2978 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2979 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2980 | fi
|
---|
| 2981 |
|
---|
[8063] | 2982 | if test -n "$ac_tool_prefix"; then
|
---|
| 2983 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 2984 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[10192] | 2985 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2987 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 2988 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2989 | else
|
---|
| 2990 | if test -n "$RANLIB"; then
|
---|
| 2991 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 2992 | else
|
---|
[10192] | 2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2994 | for as_dir in $PATH
|
---|
| 2995 | do
|
---|
| 2996 | IFS=$as_save_IFS
|
---|
| 2997 | test -z "$as_dir" && as_dir=.
|
---|
| 2998 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3000 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3002 | break 2
|
---|
| 3003 | fi
|
---|
[8063] | 3004 | done
|
---|
[10192] | 3005 | done
|
---|
[8063] | 3006 |
|
---|
[3365] | 3007 | fi
|
---|
| 3008 | fi
|
---|
[8063] | 3009 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[3365] | 3010 | if test -n "$RANLIB"; then
|
---|
[10192] | 3011 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
[8063] | 3012 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[3365] | 3013 | else
|
---|
[10192] | 3014 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3015 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3016 | fi
|
---|
| 3017 |
|
---|
[8063] | 3018 | fi
|
---|
| 3019 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3020 | ac_ct_RANLIB=$RANLIB
|
---|
| 3021 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3022 | set dummy ranlib; ac_word=$2
|
---|
[10192] | 3023 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 3024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3025 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3026 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3027 | else
|
---|
| 3028 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3029 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3030 | else
|
---|
[10192] | 3031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3032 | for as_dir in $PATH
|
---|
| 3033 | do
|
---|
| 3034 | IFS=$as_save_IFS
|
---|
| 3035 | test -z "$as_dir" && as_dir=.
|
---|
| 3036 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3038 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3040 | break 2
|
---|
| 3041 | fi
|
---|
[8063] | 3042 | done
|
---|
[10192] | 3043 | done
|
---|
[3365] | 3044 |
|
---|
[8063] | 3045 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 3046 | fi
|
---|
| 3047 | fi
|
---|
| 3048 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3049 | if test -n "$ac_ct_RANLIB"; then
|
---|
[10192] | 3050 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
[8063] | 3051 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 3052 | else
|
---|
[10192] | 3053 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3054 | echo "${ECHO_T}no" >&6
|
---|
| 3055 | fi
|
---|
| 3056 |
|
---|
| 3057 | RANLIB=$ac_ct_RANLIB
|
---|
| 3058 | else
|
---|
| 3059 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3060 | fi
|
---|
| 3061 |
|
---|
[10192] | 3062 |
|
---|
| 3063 |
|
---|
[8063] | 3064 | ac_ext=c
|
---|
| 3065 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[10192] | 3069 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
[8063] | 3070 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[3365] | 3071 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3072 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3073 | CPP=
|
---|
| 3074 | fi
|
---|
| 3075 | if test -z "$CPP"; then
|
---|
[8063] | 3076 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3077 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 3078 | else
|
---|
[8063] | 3079 | # Double quotes because CPP needs to be expanded
|
---|
| 3080 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3081 | do
|
---|
| 3082 | ac_preproc_ok=false
|
---|
| 3083 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3084 | do
|
---|
| 3085 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3086 | # with a fresh cross-compiler works.
|
---|
[10192] | 3087 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3088 | # <limits.h> exists even on freestanding compilers.
|
---|
[3365] | 3089 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8063] | 3090 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3091 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3092 | /* confdefs.h. */
|
---|
[8063] | 3093 | _ACEOF
|
---|
[10192] | 3094 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3095 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3096 | /* end confdefs.h. */
|
---|
| 3097 | #ifdef __STDC__
|
---|
| 3098 | # include <limits.h>
|
---|
| 3099 | #else
|
---|
| 3100 | # include <assert.h>
|
---|
| 3101 | #endif
|
---|
| 3102 | Syntax error
|
---|
| 3103 | _ACEOF
|
---|
| 3104 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3105 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3106 | ac_status=$?
|
---|
[10192] | 3107 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3108 | rm -f conftest.er1
|
---|
| 3109 | cat conftest.err >&5
|
---|
[10192] | 3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3111 | (exit $ac_status); } >/dev/null; then
|
---|
| 3112 | if test -s conftest.err; then
|
---|
| 3113 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3114 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3115 | else
|
---|
| 3116 | ac_cpp_err=
|
---|
| 3117 | fi
|
---|
| 3118 | else
|
---|
| 3119 | ac_cpp_err=yes
|
---|
| 3120 | fi
|
---|
| 3121 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 3122 | :
|
---|
| 3123 | else
|
---|
[8063] | 3124 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3125 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3126 |
|
---|
[8063] | 3127 | # Broken: fails on valid input.
|
---|
| 3128 | continue
|
---|
| 3129 | fi
|
---|
| 3130 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3131 |
|
---|
| 3132 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3133 | # can be detected and how.
|
---|
| 3134 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3135 | /* confdefs.h. */
|
---|
| 3136 | _ACEOF
|
---|
| 3137 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3138 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3139 | /* end confdefs.h. */
|
---|
[8063] | 3140 | #include <ac_nonexistent.h>
|
---|
| 3141 | _ACEOF
|
---|
[10192] | 3142 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3143 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3144 | ac_status=$?
|
---|
[10192] | 3145 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3146 | rm -f conftest.er1
|
---|
| 3147 | cat conftest.err >&5
|
---|
[10192] | 3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3149 | (exit $ac_status); } >/dev/null; then
|
---|
| 3150 | if test -s conftest.err; then
|
---|
| 3151 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3152 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3153 | else
|
---|
| 3154 | ac_cpp_err=
|
---|
| 3155 | fi
|
---|
[3365] | 3156 | else
|
---|
[8063] | 3157 | ac_cpp_err=yes
|
---|
| 3158 | fi
|
---|
| 3159 | if test -z "$ac_cpp_err"; then
|
---|
| 3160 | # Broken: success on invalid input.
|
---|
| 3161 | continue
|
---|
| 3162 | else
|
---|
| 3163 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3164 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3165 |
|
---|
[8063] | 3166 | # Passes both tests.
|
---|
| 3167 | ac_preproc_ok=:
|
---|
| 3168 | break
|
---|
| 3169 | fi
|
---|
| 3170 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3171 |
|
---|
| 3172 | done
|
---|
| 3173 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3174 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3175 | if $ac_preproc_ok; then
|
---|
[10192] | 3176 | break
|
---|
[8063] | 3177 | fi
|
---|
| 3178 |
|
---|
| 3179 | done
|
---|
| 3180 | ac_cv_prog_CPP=$CPP
|
---|
| 3181 |
|
---|
| 3182 | fi
|
---|
| 3183 | CPP=$ac_cv_prog_CPP
|
---|
| 3184 | else
|
---|
| 3185 | ac_cv_prog_CPP=$CPP
|
---|
| 3186 | fi
|
---|
[10192] | 3187 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
[8063] | 3188 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3189 | ac_preproc_ok=false
|
---|
| 3190 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3191 | do
|
---|
| 3192 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3193 | # with a fresh cross-compiler works.
|
---|
[10192] | 3194 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3195 | # <limits.h> exists even on freestanding compilers.
|
---|
[8063] | 3196 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3197 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3198 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3199 | /* confdefs.h. */
|
---|
[8063] | 3200 | _ACEOF
|
---|
[10192] | 3201 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3202 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3203 | /* end confdefs.h. */
|
---|
| 3204 | #ifdef __STDC__
|
---|
| 3205 | # include <limits.h>
|
---|
| 3206 | #else
|
---|
| 3207 | # include <assert.h>
|
---|
| 3208 | #endif
|
---|
| 3209 | Syntax error
|
---|
| 3210 | _ACEOF
|
---|
| 3211 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3212 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3213 | ac_status=$?
|
---|
[10192] | 3214 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3215 | rm -f conftest.er1
|
---|
| 3216 | cat conftest.err >&5
|
---|
[10192] | 3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3218 | (exit $ac_status); } >/dev/null; then
|
---|
| 3219 | if test -s conftest.err; then
|
---|
| 3220 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3221 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3222 | else
|
---|
| 3223 | ac_cpp_err=
|
---|
| 3224 | fi
|
---|
| 3225 | else
|
---|
| 3226 | ac_cpp_err=yes
|
---|
| 3227 | fi
|
---|
| 3228 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 3229 | :
|
---|
| 3230 | else
|
---|
[8063] | 3231 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3232 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3233 |
|
---|
[8063] | 3234 | # Broken: fails on valid input.
|
---|
| 3235 | continue
|
---|
[3365] | 3236 | fi
|
---|
[8063] | 3237 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3238 |
|
---|
| 3239 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3240 | # can be detected and how.
|
---|
| 3241 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3242 | /* confdefs.h. */
|
---|
| 3243 | _ACEOF
|
---|
| 3244 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3245 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3246 | /* end confdefs.h. */
|
---|
[8063] | 3247 | #include <ac_nonexistent.h>
|
---|
| 3248 | _ACEOF
|
---|
[10192] | 3249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3251 | ac_status=$?
|
---|
[10192] | 3252 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3253 | rm -f conftest.er1
|
---|
| 3254 | cat conftest.err >&5
|
---|
[10192] | 3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3256 | (exit $ac_status); } >/dev/null; then
|
---|
| 3257 | if test -s conftest.err; then
|
---|
| 3258 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3260 | else
|
---|
| 3261 | ac_cpp_err=
|
---|
| 3262 | fi
|
---|
| 3263 | else
|
---|
| 3264 | ac_cpp_err=yes
|
---|
[3365] | 3265 | fi
|
---|
[8063] | 3266 | if test -z "$ac_cpp_err"; then
|
---|
| 3267 | # Broken: success on invalid input.
|
---|
| 3268 | continue
|
---|
| 3269 | else
|
---|
| 3270 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3271 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3272 |
|
---|
[8063] | 3273 | # Passes both tests.
|
---|
| 3274 | ac_preproc_ok=:
|
---|
| 3275 | break
|
---|
[3365] | 3276 | fi
|
---|
[8063] | 3277 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3278 |
|
---|
| 3279 | done
|
---|
| 3280 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3281 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3282 | if $ac_preproc_ok; then
|
---|
| 3283 | :
|
---|
[3365] | 3284 | else
|
---|
[10192] | 3285 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3286 | See \`config.log' for more details." >&5
|
---|
| 3287 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3288 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 3289 | { (exit 1); exit 1; }; }
|
---|
[3365] | 3290 | fi
|
---|
| 3291 |
|
---|
[8063] | 3292 | ac_ext=c
|
---|
| 3293 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3297 |
|
---|
[10192] | 3298 |
|
---|
| 3299 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3300 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3301 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3302 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3303 | else
|
---|
| 3304 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3305 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3306 | else ac_cv_prog_egrep='egrep'
|
---|
| 3307 | fi
|
---|
| 3308 | fi
|
---|
| 3309 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3310 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3311 | EGREP=$ac_cv_prog_egrep
|
---|
| 3312 |
|
---|
| 3313 |
|
---|
| 3314 |
|
---|
| 3315 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
[8063] | 3316 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3317 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3318 | /* confdefs.h. */
|
---|
| 3319 | _ACEOF
|
---|
| 3320 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3321 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3322 | /* end confdefs.h. */
|
---|
[3365] | 3323 | #ifdef _AIX
|
---|
| 3324 | yes
|
---|
| 3325 | #endif
|
---|
| 3326 |
|
---|
[8063] | 3327 | _ACEOF
|
---|
[3365] | 3328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 3329 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3330 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3331 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3332 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3333 | #define _ALL_SOURCE 1
|
---|
[10192] | 3334 | _ACEOF
|
---|
[3365] | 3335 |
|
---|
| 3336 | else
|
---|
[10192] | 3337 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3338 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3339 | fi
|
---|
| 3340 | rm -f conftest*
|
---|
| 3341 |
|
---|
[8063] | 3342 |
|
---|
[10192] | 3343 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3344 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3345 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3346 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3347 | else
|
---|
| 3348 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3349 | ac_cv_search_strerror=no
|
---|
| 3350 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3351 | /* confdefs.h. */
|
---|
| 3352 | _ACEOF
|
---|
| 3353 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3354 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3355 | /* end confdefs.h. */
|
---|
[3365] | 3356 |
|
---|
[10192] | 3357 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3358 | #ifdef __cplusplus
|
---|
| 3359 | extern "C"
|
---|
| 3360 | #endif
|
---|
| 3361 | /* We use char because int might match the return type of a gcc2
|
---|
| 3362 | builtin and then its argument prototype would still apply. */
|
---|
| 3363 | char strerror ();
|
---|
| 3364 | int
|
---|
| 3365 | main ()
|
---|
| 3366 | {
|
---|
| 3367 | strerror ();
|
---|
| 3368 | ;
|
---|
| 3369 | return 0;
|
---|
| 3370 | }
|
---|
| 3371 | _ACEOF
|
---|
| 3372 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3374 | (eval $ac_link) 2>conftest.er1
|
---|
| 3375 | ac_status=$?
|
---|
| 3376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3377 | rm -f conftest.er1
|
---|
| 3378 | cat conftest.err >&5
|
---|
| 3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3380 | (exit $ac_status); } &&
|
---|
| 3381 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3382 | || test ! -s conftest.err'
|
---|
| 3383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3384 | (eval $ac_try) 2>&5
|
---|
| 3385 | ac_status=$?
|
---|
| 3386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3387 | (exit $ac_status); }; } &&
|
---|
| 3388 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3390 | (eval $ac_try) 2>&5
|
---|
| 3391 | ac_status=$?
|
---|
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3393 | (exit $ac_status); }; }; then
|
---|
| 3394 | ac_cv_search_strerror="none required"
|
---|
[3365] | 3395 | else
|
---|
[10192] | 3396 | echo "$as_me: failed program was:" >&5
|
---|
| 3397 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3398 |
|
---|
[3365] | 3399 | fi
|
---|
[10192] | 3400 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3401 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3402 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3403 | for ac_lib in cposix; do
|
---|
| 3404 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3405 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3406 | /* confdefs.h. */
|
---|
| 3407 | _ACEOF
|
---|
| 3408 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3409 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3410 | /* end confdefs.h. */
|
---|
[3365] | 3411 |
|
---|
[10192] | 3412 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3413 | #ifdef __cplusplus
|
---|
| 3414 | extern "C"
|
---|
| 3415 | #endif
|
---|
| 3416 | /* We use char because int might match the return type of a gcc2
|
---|
| 3417 | builtin and then its argument prototype would still apply. */
|
---|
| 3418 | char strerror ();
|
---|
| 3419 | int
|
---|
| 3420 | main ()
|
---|
| 3421 | {
|
---|
| 3422 | strerror ();
|
---|
| 3423 | ;
|
---|
| 3424 | return 0;
|
---|
| 3425 | }
|
---|
| 3426 | _ACEOF
|
---|
| 3427 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3429 | (eval $ac_link) 2>conftest.er1
|
---|
| 3430 | ac_status=$?
|
---|
| 3431 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3432 | rm -f conftest.er1
|
---|
| 3433 | cat conftest.err >&5
|
---|
| 3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3435 | (exit $ac_status); } &&
|
---|
| 3436 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3437 | || test ! -s conftest.err'
|
---|
| 3438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3439 | (eval $ac_try) 2>&5
|
---|
| 3440 | ac_status=$?
|
---|
| 3441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3442 | (exit $ac_status); }; } &&
|
---|
| 3443 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3445 | (eval $ac_try) 2>&5
|
---|
| 3446 | ac_status=$?
|
---|
| 3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3448 | (exit $ac_status); }; }; then
|
---|
| 3449 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3450 | break
|
---|
| 3451 | else
|
---|
| 3452 | echo "$as_me: failed program was:" >&5
|
---|
| 3453 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3454 |
|
---|
| 3455 | fi
|
---|
| 3456 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3457 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3458 | done
|
---|
| 3459 | fi
|
---|
| 3460 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3461 | fi
|
---|
| 3462 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3463 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3464 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3465 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3466 |
|
---|
| 3467 | fi
|
---|
| 3468 |
|
---|
| 3469 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3470 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3471 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3472 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3473 | else
|
---|
| 3474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3475 | /* confdefs.h. */
|
---|
| 3476 | _ACEOF
|
---|
| 3477 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3479 | /* end confdefs.h. */
|
---|
| 3480 | #include <stdlib.h>
|
---|
| 3481 | #include <stdarg.h>
|
---|
| 3482 | #include <string.h>
|
---|
| 3483 | #include <float.h>
|
---|
| 3484 |
|
---|
| 3485 | int
|
---|
| 3486 | main ()
|
---|
| 3487 | {
|
---|
| 3488 |
|
---|
| 3489 | ;
|
---|
| 3490 | return 0;
|
---|
| 3491 | }
|
---|
| 3492 | _ACEOF
|
---|
| 3493 | rm -f conftest.$ac_objext
|
---|
| 3494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3495 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3496 | ac_status=$?
|
---|
| 3497 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3498 | rm -f conftest.er1
|
---|
| 3499 | cat conftest.err >&5
|
---|
| 3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3501 | (exit $ac_status); } &&
|
---|
| 3502 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3503 | || test ! -s conftest.err'
|
---|
| 3504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3505 | (eval $ac_try) 2>&5
|
---|
| 3506 | ac_status=$?
|
---|
| 3507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3508 | (exit $ac_status); }; } &&
|
---|
| 3509 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3511 | (eval $ac_try) 2>&5
|
---|
| 3512 | ac_status=$?
|
---|
| 3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3514 | (exit $ac_status); }; }; then
|
---|
| 3515 | ac_cv_header_stdc=yes
|
---|
| 3516 | else
|
---|
| 3517 | echo "$as_me: failed program was:" >&5
|
---|
| 3518 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3519 |
|
---|
| 3520 | ac_cv_header_stdc=no
|
---|
| 3521 | fi
|
---|
| 3522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3523 |
|
---|
| 3524 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3525 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3526 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3527 | /* confdefs.h. */
|
---|
| 3528 | _ACEOF
|
---|
| 3529 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3530 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3531 | /* end confdefs.h. */
|
---|
| 3532 | #include <string.h>
|
---|
| 3533 |
|
---|
| 3534 | _ACEOF
|
---|
| 3535 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3536 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3537 | :
|
---|
| 3538 | else
|
---|
| 3539 | ac_cv_header_stdc=no
|
---|
| 3540 | fi
|
---|
| 3541 | rm -f conftest*
|
---|
| 3542 |
|
---|
| 3543 | fi
|
---|
| 3544 |
|
---|
| 3545 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3546 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3547 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3548 | /* confdefs.h. */
|
---|
| 3549 | _ACEOF
|
---|
| 3550 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3551 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3552 | /* end confdefs.h. */
|
---|
| 3553 | #include <stdlib.h>
|
---|
| 3554 |
|
---|
| 3555 | _ACEOF
|
---|
| 3556 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3557 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3558 | :
|
---|
| 3559 | else
|
---|
| 3560 | ac_cv_header_stdc=no
|
---|
| 3561 | fi
|
---|
| 3562 | rm -f conftest*
|
---|
| 3563 |
|
---|
| 3564 | fi
|
---|
| 3565 |
|
---|
| 3566 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3567 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3568 | if test "$cross_compiling" = yes; then
|
---|
| 3569 | :
|
---|
| 3570 | else
|
---|
| 3571 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3572 | /* confdefs.h. */
|
---|
| 3573 | _ACEOF
|
---|
| 3574 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3575 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3576 | /* end confdefs.h. */
|
---|
| 3577 | #include <ctype.h>
|
---|
| 3578 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3579 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3580 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3581 | #else
|
---|
| 3582 | # define ISLOWER(c) \
|
---|
| 3583 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3584 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3585 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3586 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3587 | #endif
|
---|
| 3588 |
|
---|
| 3589 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3590 | int
|
---|
| 3591 | main ()
|
---|
| 3592 | {
|
---|
| 3593 | int i;
|
---|
| 3594 | for (i = 0; i < 256; i++)
|
---|
| 3595 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3596 | || toupper (i) != TOUPPER (i))
|
---|
| 3597 | exit(2);
|
---|
| 3598 | exit (0);
|
---|
| 3599 | }
|
---|
| 3600 | _ACEOF
|
---|
| 3601 | rm -f conftest$ac_exeext
|
---|
| 3602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3603 | (eval $ac_link) 2>&5
|
---|
| 3604 | ac_status=$?
|
---|
| 3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3608 | (eval $ac_try) 2>&5
|
---|
| 3609 | ac_status=$?
|
---|
| 3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3611 | (exit $ac_status); }; }; then
|
---|
| 3612 | :
|
---|
| 3613 | else
|
---|
| 3614 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3615 | echo "$as_me: failed program was:" >&5
|
---|
| 3616 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3617 |
|
---|
| 3618 | ( exit $ac_status )
|
---|
| 3619 | ac_cv_header_stdc=no
|
---|
| 3620 | fi
|
---|
| 3621 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3622 | fi
|
---|
| 3623 | fi
|
---|
| 3624 | fi
|
---|
| 3625 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3626 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3627 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3628 |
|
---|
| 3629 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3630 | #define STDC_HEADERS 1
|
---|
| 3631 | _ACEOF
|
---|
| 3632 |
|
---|
| 3633 | fi
|
---|
| 3634 |
|
---|
| 3635 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3636 |
|
---|
| 3637 |
|
---|
| 3638 |
|
---|
| 3639 |
|
---|
| 3640 |
|
---|
| 3641 |
|
---|
| 3642 |
|
---|
| 3643 |
|
---|
| 3644 |
|
---|
| 3645 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3646 | inttypes.h stdint.h unistd.h
|
---|
| 3647 | do
|
---|
| 3648 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3649 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3652 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3653 | else
|
---|
| 3654 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3655 | /* confdefs.h. */
|
---|
| 3656 | _ACEOF
|
---|
| 3657 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3658 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3659 | /* end confdefs.h. */
|
---|
| 3660 | $ac_includes_default
|
---|
| 3661 |
|
---|
| 3662 | #include <$ac_header>
|
---|
| 3663 | _ACEOF
|
---|
| 3664 | rm -f conftest.$ac_objext
|
---|
| 3665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3666 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3667 | ac_status=$?
|
---|
| 3668 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3669 | rm -f conftest.er1
|
---|
| 3670 | cat conftest.err >&5
|
---|
| 3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3672 | (exit $ac_status); } &&
|
---|
| 3673 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3674 | || test ! -s conftest.err'
|
---|
| 3675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3676 | (eval $ac_try) 2>&5
|
---|
| 3677 | ac_status=$?
|
---|
| 3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3679 | (exit $ac_status); }; } &&
|
---|
| 3680 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3682 | (eval $ac_try) 2>&5
|
---|
| 3683 | ac_status=$?
|
---|
| 3684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3685 | (exit $ac_status); }; }; then
|
---|
| 3686 | eval "$as_ac_Header=yes"
|
---|
| 3687 | else
|
---|
| 3688 | echo "$as_me: failed program was:" >&5
|
---|
| 3689 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3690 |
|
---|
| 3691 | eval "$as_ac_Header=no"
|
---|
| 3692 | fi
|
---|
| 3693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3694 | fi
|
---|
| 3695 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3696 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3697 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3698 | cat >>confdefs.h <<_ACEOF
|
---|
| 3699 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3700 | _ACEOF
|
---|
| 3701 |
|
---|
| 3702 | fi
|
---|
| 3703 |
|
---|
| 3704 | done
|
---|
| 3705 |
|
---|
| 3706 |
|
---|
| 3707 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3708 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
[8063] | 3709 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3710 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3711 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 3712 | fi
|
---|
| 3713 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3714 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[3365] | 3715 | else
|
---|
[10192] | 3716 | # Is the header compilable?
|
---|
| 3717 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3718 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3719 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3720 | /* confdefs.h. */
|
---|
| 3721 | _ACEOF
|
---|
| 3722 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3723 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3724 | /* end confdefs.h. */
|
---|
| 3725 | $ac_includes_default
|
---|
[3365] | 3726 | #include <minix/config.h>
|
---|
[8063] | 3727 | _ACEOF
|
---|
[10192] | 3728 | rm -f conftest.$ac_objext
|
---|
| 3729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3730 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3731 | ac_status=$?
|
---|
| 3732 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3733 | rm -f conftest.er1
|
---|
| 3734 | cat conftest.err >&5
|
---|
| 3735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3736 | (exit $ac_status); } &&
|
---|
| 3737 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3738 | || test ! -s conftest.err'
|
---|
| 3739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3740 | (eval $ac_try) 2>&5
|
---|
| 3741 | ac_status=$?
|
---|
| 3742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3743 | (exit $ac_status); }; } &&
|
---|
| 3744 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3746 | (eval $ac_try) 2>&5
|
---|
| 3747 | ac_status=$?
|
---|
| 3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3749 | (exit $ac_status); }; }; then
|
---|
| 3750 | ac_header_compiler=yes
|
---|
| 3751 | else
|
---|
| 3752 | echo "$as_me: failed program was:" >&5
|
---|
| 3753 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3754 |
|
---|
| 3755 | ac_header_compiler=no
|
---|
| 3756 | fi
|
---|
| 3757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3758 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3759 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3760 |
|
---|
| 3761 | # Is the header present?
|
---|
| 3762 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3763 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3764 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3765 | /* confdefs.h. */
|
---|
| 3766 | _ACEOF
|
---|
| 3767 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3768 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3769 | /* end confdefs.h. */
|
---|
| 3770 | #include <minix/config.h>
|
---|
| 3771 | _ACEOF
|
---|
| 3772 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3773 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3774 | ac_status=$?
|
---|
[10192] | 3775 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3776 | rm -f conftest.er1
|
---|
| 3777 | cat conftest.err >&5
|
---|
[10192] | 3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3779 | (exit $ac_status); } >/dev/null; then
|
---|
| 3780 | if test -s conftest.err; then
|
---|
| 3781 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3782 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3783 | else
|
---|
| 3784 | ac_cpp_err=
|
---|
| 3785 | fi
|
---|
[3365] | 3786 | else
|
---|
[8063] | 3787 | ac_cpp_err=yes
|
---|
| 3788 | fi
|
---|
| 3789 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 3790 | ac_header_preproc=yes
|
---|
[8063] | 3791 | else
|
---|
| 3792 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3793 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3794 |
|
---|
| 3795 | ac_header_preproc=no
|
---|
[3365] | 3796 | fi
|
---|
[8063] | 3797 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 3798 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3799 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3800 |
|
---|
| 3801 | # So? What about this header?
|
---|
| 3802 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3803 | yes:no: )
|
---|
| 3804 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3805 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3806 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3807 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3808 | ac_header_preproc=yes
|
---|
| 3809 | ;;
|
---|
| 3810 | no:yes:* )
|
---|
| 3811 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3812 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3813 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3814 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3815 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3816 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3817 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3818 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3819 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3820 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3821 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3822 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3823 | (
|
---|
| 3824 | cat <<\_ASBOX
|
---|
| 3825 | ## ------------------------------------------ ##
|
---|
| 3826 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3827 | ## ------------------------------------------ ##
|
---|
| 3828 | _ASBOX
|
---|
| 3829 | ) |
|
---|
| 3830 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3831 | ;;
|
---|
| 3832 | esac
|
---|
| 3833 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3834 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3835 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3836 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3837 | else
|
---|
| 3838 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
[3365] | 3839 | fi
|
---|
[10192] | 3840 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
[8063] | 3841 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[10192] | 3842 |
|
---|
| 3843 | fi
|
---|
[8063] | 3844 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[3365] | 3845 | MINIX=yes
|
---|
| 3846 | else
|
---|
[8063] | 3847 | MINIX=
|
---|
[3365] | 3848 | fi
|
---|
| 3849 |
|
---|
[10192] | 3850 |
|
---|
[3365] | 3851 | if test "$MINIX" = yes; then
|
---|
[8063] | 3852 |
|
---|
[10192] | 3853 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3854 | #define _POSIX_SOURCE 1
|
---|
[10192] | 3855 | _ACEOF
|
---|
[3365] | 3856 |
|
---|
[10192] | 3857 |
|
---|
| 3858 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3859 | #define _POSIX_1_SOURCE 2
|
---|
[10192] | 3860 | _ACEOF
|
---|
[3365] | 3861 |
|
---|
[10192] | 3862 |
|
---|
| 3863 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3864 | #define _MINIX 1
|
---|
[10192] | 3865 | _ACEOF
|
---|
[3365] | 3866 |
|
---|
| 3867 | fi
|
---|
| 3868 |
|
---|
[10192] | 3869 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[8063] | 3870 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3871 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3872 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 3873 | else
|
---|
| 3874 | ac_cv_prog_cc_stdc=no
|
---|
| 3875 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3876 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3877 | # breaks some systems' header files.
|
---|
| 3878 | # AIX -qlanglvl=ansi
|
---|
| 3879 | # Ultrix and OSF/1 -std1
|
---|
| 3880 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3881 | # SVR4 -Xc
|
---|
| 3882 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3883 | do
|
---|
| 3884 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8063] | 3885 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3886 | /* confdefs.h. */
|
---|
| 3887 | _ACEOF
|
---|
| 3888 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3889 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3890 | /* end confdefs.h. */
|
---|
[3365] | 3891 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3892 | choke me
|
---|
[8063] | 3893 | #endif
|
---|
[3365] | 3894 |
|
---|
[8063] | 3895 | int
|
---|
| 3896 | main ()
|
---|
| 3897 | {
|
---|
[3365] | 3898 | int test (int i, double x);
|
---|
| 3899 | struct s1 {int (*f) (int a);};
|
---|
| 3900 | struct s2 {int (*f) (double a);};
|
---|
[8063] | 3901 | ;
|
---|
| 3902 | return 0;
|
---|
| 3903 | }
|
---|
| 3904 | _ACEOF
|
---|
| 3905 | rm -f conftest.$ac_objext
|
---|
[10192] | 3906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3907 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3908 | ac_status=$?
|
---|
[10192] | 3909 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3910 | rm -f conftest.er1
|
---|
| 3911 | cat conftest.err >&5
|
---|
| 3912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3913 | (exit $ac_status); } &&
|
---|
[10192] | 3914 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3915 | || test ! -s conftest.err'
|
---|
| 3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3917 | (eval $ac_try) 2>&5
|
---|
| 3918 | ac_status=$?
|
---|
[10192] | 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3920 | (exit $ac_status); }; } &&
|
---|
| 3921 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3923 | (eval $ac_try) 2>&5
|
---|
| 3924 | ac_status=$?
|
---|
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3926 | (exit $ac_status); }; }; then
|
---|
[3365] | 3927 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3928 | else
|
---|
[8063] | 3929 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3930 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3931 |
|
---|
[3365] | 3932 | fi
|
---|
[10192] | 3933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3934 | done
|
---|
| 3935 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3936 |
|
---|
| 3937 | fi
|
---|
| 3938 |
|
---|
[10192] | 3939 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[8063] | 3940 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[3365] | 3941 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 3942 | x|xno) ;;
|
---|
| 3943 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 3944 | esac
|
---|
| 3945 |
|
---|
[10192] | 3946 |
|
---|
| 3947 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
[8063] | 3948 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[3365] | 3949 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[10192] | 3950 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3951 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3952 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3953 | #define PROTOTYPES 1
|
---|
[10192] | 3954 | _ACEOF
|
---|
[3365] | 3955 |
|
---|
| 3956 | U= ANSI2KNR=
|
---|
| 3957 | else
|
---|
[10192] | 3958 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3959 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3960 | U=_ ANSI2KNR=ansi2knr
|
---|
| 3961 | fi
|
---|
| 3962 |
|
---|
[10192] | 3963 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
[8063] | 3964 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 3965 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 3966 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3967 | else
|
---|
| 3968 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3969 | /* confdefs.h. */
|
---|
| 3970 | _ACEOF
|
---|
| 3971 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3972 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3973 | /* end confdefs.h. */
|
---|
[8063] | 3974 |
|
---|
| 3975 | int
|
---|
| 3976 | main ()
|
---|
| 3977 | {
|
---|
| 3978 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 3979 | #ifndef __cplusplus
|
---|
| 3980 | /* Ultrix mips cc rejects this. */
|
---|
| 3981 | typedef int charset[2];
|
---|
| 3982 | const charset x;
|
---|
| 3983 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 3984 | char const *const *ccp;
|
---|
| 3985 | char **p;
|
---|
| 3986 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 3987 | struct point {int x, y;};
|
---|
| 3988 | static struct point const zero = {0,0};
|
---|
| 3989 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 3990 | It does not let you subtract one const X* pointer from another in
|
---|
| 3991 | an arm of an if-expression whose if-part is not a constant
|
---|
| 3992 | expression */
|
---|
| 3993 | const char *g = "string";
|
---|
| 3994 | ccp = &g + (g ? g-g : 0);
|
---|
| 3995 | /* HPUX 7.0 cc rejects these. */
|
---|
| 3996 | ++ccp;
|
---|
| 3997 | p = (char**) ccp;
|
---|
| 3998 | ccp = (char const *const *) p;
|
---|
| 3999 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4000 | char *t;
|
---|
| 4001 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4002 |
|
---|
| 4003 | *t++ = 0;
|
---|
| 4004 | }
|
---|
| 4005 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4006 | int x[] = {25, 17};
|
---|
| 4007 | const int *foo = &x[0];
|
---|
| 4008 | ++foo;
|
---|
| 4009 | }
|
---|
| 4010 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4011 | typedef const int *iptr;
|
---|
| 4012 | iptr p = 0;
|
---|
| 4013 | ++p;
|
---|
| 4014 | }
|
---|
| 4015 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4016 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4017 | struct s { int j; const int *ap[3]; };
|
---|
| 4018 | struct s *b; b->j = 5;
|
---|
| 4019 | }
|
---|
| 4020 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4021 | const int foo = 10;
|
---|
| 4022 | }
|
---|
| 4023 | #endif
|
---|
| 4024 |
|
---|
| 4025 | ;
|
---|
| 4026 | return 0;
|
---|
[3365] | 4027 | }
|
---|
[8063] | 4028 | _ACEOF
|
---|
| 4029 | rm -f conftest.$ac_objext
|
---|
[10192] | 4030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4031 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4032 | ac_status=$?
|
---|
[10192] | 4033 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4034 | rm -f conftest.er1
|
---|
| 4035 | cat conftest.err >&5
|
---|
| 4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4037 | (exit $ac_status); } &&
|
---|
[10192] | 4038 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4039 | || test ! -s conftest.err'
|
---|
| 4040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4041 | (eval $ac_try) 2>&5
|
---|
| 4042 | ac_status=$?
|
---|
[10192] | 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4044 | (exit $ac_status); }; } &&
|
---|
| 4045 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4047 | (eval $ac_try) 2>&5
|
---|
| 4048 | ac_status=$?
|
---|
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4050 | (exit $ac_status); }; }; then
|
---|
[3365] | 4051 | ac_cv_c_const=yes
|
---|
| 4052 | else
|
---|
[8063] | 4053 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4054 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4055 |
|
---|
[8063] | 4056 | ac_cv_c_const=no
|
---|
[3365] | 4057 | fi
|
---|
[10192] | 4058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4059 | fi
|
---|
[10192] | 4060 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
[8063] | 4061 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
| 4062 | if test $ac_cv_c_const = no; then
|
---|
[8059] | 4063 |
|
---|
[10192] | 4064 | cat >>confdefs.h <<\_ACEOF
|
---|
[8063] | 4065 | #define const
|
---|
| 4066 | _ACEOF
|
---|
[3365] | 4067 |
|
---|
| 4068 | fi
|
---|
| 4069 |
|
---|
[10192] | 4070 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
[8063] | 4071 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4072 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4073 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4074 | else
|
---|
| 4075 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4076 | /* confdefs.h. */
|
---|
| 4077 | _ACEOF
|
---|
| 4078 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4079 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4080 | /* end confdefs.h. */
|
---|
[8063] | 4081 | $ac_includes_default
|
---|
| 4082 | int
|
---|
| 4083 | main ()
|
---|
| 4084 | {
|
---|
| 4085 | if ((off_t *) 0)
|
---|
| 4086 | return 0;
|
---|
| 4087 | if (sizeof (off_t))
|
---|
| 4088 | return 0;
|
---|
| 4089 | ;
|
---|
| 4090 | return 0;
|
---|
| 4091 | }
|
---|
| 4092 | _ACEOF
|
---|
| 4093 | rm -f conftest.$ac_objext
|
---|
[10192] | 4094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4095 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4096 | ac_status=$?
|
---|
[10192] | 4097 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4098 | rm -f conftest.er1
|
---|
| 4099 | cat conftest.err >&5
|
---|
| 4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4101 | (exit $ac_status); } &&
|
---|
[10192] | 4102 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4103 | || test ! -s conftest.err'
|
---|
| 4104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4105 | (eval $ac_try) 2>&5
|
---|
| 4106 | ac_status=$?
|
---|
[10192] | 4107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4108 | (exit $ac_status); }; } &&
|
---|
| 4109 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4111 | (eval $ac_try) 2>&5
|
---|
| 4112 | ac_status=$?
|
---|
| 4113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4114 | (exit $ac_status); }; }; then
|
---|
[3365] | 4115 | ac_cv_type_off_t=yes
|
---|
| 4116 | else
|
---|
[8063] | 4117 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4118 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4119 |
|
---|
[8063] | 4120 | ac_cv_type_off_t=no
|
---|
[3365] | 4121 | fi
|
---|
[10192] | 4122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 4123 | fi
|
---|
[10192] | 4124 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
[8063] | 4125 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4126 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4127 | :
|
---|
| 4128 | else
|
---|
[8059] | 4129 |
|
---|
[10192] | 4130 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4131 | #define off_t long
|
---|
[10192] | 4132 | _ACEOF
|
---|
[3365] | 4133 |
|
---|
| 4134 | fi
|
---|
| 4135 |
|
---|
[10192] | 4136 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
[8063] | 4137 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4138 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4139 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4140 | else
|
---|
[8063] | 4141 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4142 | /* confdefs.h. */
|
---|
| 4143 | _ACEOF
|
---|
| 4144 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4145 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4146 | /* end confdefs.h. */
|
---|
[8063] | 4147 | $ac_includes_default
|
---|
| 4148 | int
|
---|
| 4149 | main ()
|
---|
| 4150 | {
|
---|
| 4151 | if ((size_t *) 0)
|
---|
| 4152 | return 0;
|
---|
| 4153 | if (sizeof (size_t))
|
---|
| 4154 | return 0;
|
---|
| 4155 | ;
|
---|
| 4156 | return 0;
|
---|
| 4157 | }
|
---|
| 4158 | _ACEOF
|
---|
| 4159 | rm -f conftest.$ac_objext
|
---|
[10192] | 4160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4161 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4162 | ac_status=$?
|
---|
[10192] | 4163 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4164 | rm -f conftest.er1
|
---|
| 4165 | cat conftest.err >&5
|
---|
| 4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4167 | (exit $ac_status); } &&
|
---|
[10192] | 4168 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4169 | || test ! -s conftest.err'
|
---|
| 4170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4171 | (eval $ac_try) 2>&5
|
---|
| 4172 | ac_status=$?
|
---|
[10192] | 4173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4174 | (exit $ac_status); }; } &&
|
---|
| 4175 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4177 | (eval $ac_try) 2>&5
|
---|
| 4178 | ac_status=$?
|
---|
| 4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4180 | (exit $ac_status); }; }; then
|
---|
[3365] | 4181 | ac_cv_type_size_t=yes
|
---|
| 4182 | else
|
---|
[8063] | 4183 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4184 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4185 |
|
---|
[8063] | 4186 | ac_cv_type_size_t=no
|
---|
[3365] | 4187 | fi
|
---|
[10192] | 4188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 4189 | fi
|
---|
[10192] | 4190 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
[8063] | 4191 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4192 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4193 | :
|
---|
| 4194 | else
|
---|
[8059] | 4195 |
|
---|
[10192] | 4196 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4197 | #define size_t unsigned
|
---|
[10192] | 4198 | _ACEOF
|
---|
[3365] | 4199 |
|
---|
| 4200 | fi
|
---|
| 4201 |
|
---|
[10192] | 4202 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[8063] | 4203 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4204 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4205 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4206 | else
|
---|
[8063] | 4207 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4208 | /* confdefs.h. */
|
---|
| 4209 | _ACEOF
|
---|
| 4210 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4211 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4212 | /* end confdefs.h. */
|
---|
[3365] | 4213 | #include <sys/types.h>
|
---|
| 4214 | #include <sys/time.h>
|
---|
| 4215 | #include <time.h>
|
---|
[8063] | 4216 |
|
---|
| 4217 | int
|
---|
| 4218 | main ()
|
---|
| 4219 | {
|
---|
[10192] | 4220 | if ((struct tm *) 0)
|
---|
| 4221 | return 0;
|
---|
[8063] | 4222 | ;
|
---|
| 4223 | return 0;
|
---|
| 4224 | }
|
---|
| 4225 | _ACEOF
|
---|
| 4226 | rm -f conftest.$ac_objext
|
---|
[10192] | 4227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4228 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4229 | ac_status=$?
|
---|
[10192] | 4230 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4231 | rm -f conftest.er1
|
---|
| 4232 | cat conftest.err >&5
|
---|
| 4233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4234 | (exit $ac_status); } &&
|
---|
[10192] | 4235 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4236 | || test ! -s conftest.err'
|
---|
| 4237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4238 | (eval $ac_try) 2>&5
|
---|
| 4239 | ac_status=$?
|
---|
[10192] | 4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4241 | (exit $ac_status); }; } &&
|
---|
| 4242 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4244 | (eval $ac_try) 2>&5
|
---|
| 4245 | ac_status=$?
|
---|
| 4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4247 | (exit $ac_status); }; }; then
|
---|
[3365] | 4248 | ac_cv_header_time=yes
|
---|
| 4249 | else
|
---|
[8063] | 4250 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4251 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4252 |
|
---|
[8063] | 4253 | ac_cv_header_time=no
|
---|
[3365] | 4254 | fi
|
---|
[10192] | 4255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4256 | fi
|
---|
[10192] | 4257 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
[8063] | 4258 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4259 | if test $ac_cv_header_time = yes; then
|
---|
[8059] | 4260 |
|
---|
[10192] | 4261 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4262 | #define TIME_WITH_SYS_TIME 1
|
---|
[10192] | 4263 | _ACEOF
|
---|
[3365] | 4264 |
|
---|
| 4265 | fi
|
---|
| 4266 |
|
---|
[10192] | 4267 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[8063] | 4268 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4269 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4270 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4271 | else
|
---|
[8063] | 4272 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4273 | /* confdefs.h. */
|
---|
| 4274 | _ACEOF
|
---|
| 4275 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4276 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4277 | /* end confdefs.h. */
|
---|
[3365] | 4278 | #include <sys/types.h>
|
---|
| 4279 | #include <time.h>
|
---|
[8063] | 4280 |
|
---|
| 4281 | int
|
---|
| 4282 | main ()
|
---|
| 4283 | {
|
---|
[3365] | 4284 | struct tm *tp; tp->tm_sec;
|
---|
[8063] | 4285 | ;
|
---|
| 4286 | return 0;
|
---|
| 4287 | }
|
---|
| 4288 | _ACEOF
|
---|
| 4289 | rm -f conftest.$ac_objext
|
---|
[10192] | 4290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4291 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4292 | ac_status=$?
|
---|
[10192] | 4293 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4294 | rm -f conftest.er1
|
---|
| 4295 | cat conftest.err >&5
|
---|
| 4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4297 | (exit $ac_status); } &&
|
---|
[10192] | 4298 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4299 | || test ! -s conftest.err'
|
---|
| 4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4301 | (eval $ac_try) 2>&5
|
---|
| 4302 | ac_status=$?
|
---|
[10192] | 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4304 | (exit $ac_status); }; } &&
|
---|
| 4305 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4307 | (eval $ac_try) 2>&5
|
---|
| 4308 | ac_status=$?
|
---|
| 4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4310 | (exit $ac_status); }; }; then
|
---|
[3365] | 4311 | ac_cv_struct_tm=time.h
|
---|
| 4312 | else
|
---|
[8063] | 4313 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4314 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4315 |
|
---|
[8063] | 4316 | ac_cv_struct_tm=sys/time.h
|
---|
[3365] | 4317 | fi
|
---|
[10192] | 4318 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4319 | fi
|
---|
[10192] | 4320 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
[8063] | 4321 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4322 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8059] | 4323 |
|
---|
[10192] | 4324 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4325 | #define TM_IN_SYS_TIME 1
|
---|
[10192] | 4326 | _ACEOF
|
---|
[3365] | 4327 |
|
---|
| 4328 | fi
|
---|
| 4329 |
|
---|
[10192] | 4330 |
|
---|
[13698] | 4331 |
|
---|
| 4332 | # Check whether --with-unac or --without-unac was given.
|
---|
| 4333 | if test "${with_unac+set}" = set; then
|
---|
| 4334 | withval="$with_unac"
|
---|
| 4335 | UNAC_DIR=$withval
|
---|
| 4336 | else
|
---|
| 4337 | UNAC_DIR="`pwd`/../packages/unac"
|
---|
| 4338 | fi;
|
---|
| 4339 | cat >>confdefs.h <<_ACEOF
|
---|
| 4340 | #define UNAC_DIR "$UNAC_DIR"
|
---|
| 4341 | _ACEOF
|
---|
| 4342 |
|
---|
| 4343 |
|
---|
| 4344 |
|
---|
| 4345 |
|
---|
[3365] | 4346 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8063] | 4347 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4348 | /* confdefs.h. */
|
---|
| 4349 | _ACEOF
|
---|
| 4350 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4351 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4352 | /* end confdefs.h. */
|
---|
[3365] | 4353 | #include <stdio.h>
|
---|
| 4354 |
|
---|
[8063] | 4355 | int
|
---|
| 4356 | main ()
|
---|
| 4357 | {
|
---|
| 4358 | FILE *rubbish = popen("yes", "r");
|
---|
| 4359 | ;
|
---|
| 4360 | return 0;
|
---|
| 4361 | }
|
---|
| 4362 | _ACEOF
|
---|
| 4363 | rm -f conftest.$ac_objext
|
---|
[10192] | 4364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4365 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4366 | ac_status=$?
|
---|
[10192] | 4367 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4368 | rm -f conftest.er1
|
---|
| 4369 | cat conftest.err >&5
|
---|
| 4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4371 | (exit $ac_status); } &&
|
---|
[10192] | 4372 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4373 | || test ! -s conftest.err'
|
---|
| 4374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4375 | (eval $ac_try) 2>&5
|
---|
| 4376 | ac_status=$?
|
---|
[10192] | 4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4378 | (exit $ac_status); }; } &&
|
---|
| 4379 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4381 | (eval $ac_try) 2>&5
|
---|
| 4382 | ac_status=$?
|
---|
| 4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4384 | (exit $ac_status); }; }; then
|
---|
[3365] | 4385 | :
|
---|
| 4386 | else
|
---|
[8063] | 4387 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4388 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4389 |
|
---|
[8063] | 4390 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3365] | 4391 | fi
|
---|
[10192] | 4392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4393 | fi
|
---|
| 4394 |
|
---|
[10192] | 4395 |
|
---|
| 4396 |
|
---|
| 4397 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
[8063] | 4398 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4399 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4400 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4401 | else
|
---|
[8063] | 4402 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4403 | LIBS="-lg $LIBS"
|
---|
[8063] | 4404 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4405 | /* confdefs.h. */
|
---|
| 4406 | _ACEOF
|
---|
| 4407 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4408 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4409 | /* end confdefs.h. */
|
---|
[8059] | 4410 |
|
---|
[10192] | 4411 |
|
---|
[8063] | 4412 | int
|
---|
| 4413 | main ()
|
---|
| 4414 | {
|
---|
| 4415 | main ();
|
---|
| 4416 | ;
|
---|
| 4417 | return 0;
|
---|
| 4418 | }
|
---|
| 4419 | _ACEOF
|
---|
| 4420 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4422 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4423 | ac_status=$?
|
---|
[10192] | 4424 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4425 | rm -f conftest.er1
|
---|
| 4426 | cat conftest.err >&5
|
---|
| 4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4428 | (exit $ac_status); } &&
|
---|
[10192] | 4429 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4430 | || test ! -s conftest.err'
|
---|
| 4431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4432 | (eval $ac_try) 2>&5
|
---|
| 4433 | ac_status=$?
|
---|
[10192] | 4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4435 | (exit $ac_status); }; } &&
|
---|
| 4436 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4438 | (eval $ac_try) 2>&5
|
---|
| 4439 | ac_status=$?
|
---|
| 4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4441 | (exit $ac_status); }; }; then
|
---|
| 4442 | ac_cv_lib_g_main=yes
|
---|
[8059] | 4443 | else
|
---|
[8063] | 4444 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4445 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4446 |
|
---|
[8063] | 4447 | ac_cv_lib_g_main=no
|
---|
[8059] | 4448 | fi
|
---|
[10192] | 4449 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4450 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4451 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4452 | fi
|
---|
[10192] | 4453 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
[8063] | 4454 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4455 | if test $ac_cv_lib_g_main = yes; then
|
---|
[10192] | 4456 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4457 | #define HAVE_LIBG 1
|
---|
[10192] | 4458 | _ACEOF
|
---|
[8059] | 4459 |
|
---|
| 4460 | LIBS="-lg $LIBS"
|
---|
| 4461 |
|
---|
| 4462 | fi
|
---|
| 4463 |
|
---|
[10192] | 4464 |
|
---|
| 4465 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
[8063] | 4466 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4467 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4468 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4469 | else
|
---|
[8063] | 4470 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 4471 | LIBS="-lm $LIBS"
|
---|
[8063] | 4472 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4473 | /* confdefs.h. */
|
---|
| 4474 | _ACEOF
|
---|
| 4475 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4476 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4477 | /* end confdefs.h. */
|
---|
[3365] | 4478 |
|
---|
[10192] | 4479 |
|
---|
[8063] | 4480 | int
|
---|
| 4481 | main ()
|
---|
| 4482 | {
|
---|
| 4483 | main ();
|
---|
| 4484 | ;
|
---|
| 4485 | return 0;
|
---|
| 4486 | }
|
---|
| 4487 | _ACEOF
|
---|
| 4488 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4490 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4491 | ac_status=$?
|
---|
[10192] | 4492 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4493 | rm -f conftest.er1
|
---|
| 4494 | cat conftest.err >&5
|
---|
| 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4496 | (exit $ac_status); } &&
|
---|
[10192] | 4497 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4498 | || test ! -s conftest.err'
|
---|
| 4499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4500 | (eval $ac_try) 2>&5
|
---|
| 4501 | ac_status=$?
|
---|
[10192] | 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4503 | (exit $ac_status); }; } &&
|
---|
| 4504 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4506 | (eval $ac_try) 2>&5
|
---|
| 4507 | ac_status=$?
|
---|
| 4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4509 | (exit $ac_status); }; }; then
|
---|
| 4510 | ac_cv_lib_m_main=yes
|
---|
[3365] | 4511 | else
|
---|
[8063] | 4512 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4513 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4514 |
|
---|
[8063] | 4515 | ac_cv_lib_m_main=no
|
---|
[3365] | 4516 | fi
|
---|
[10192] | 4517 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4518 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4519 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 4520 | fi
|
---|
[10192] | 4521 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
[8063] | 4522 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4523 | if test $ac_cv_lib_m_main = yes; then
|
---|
[10192] | 4524 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4525 | #define HAVE_LIBM 1
|
---|
[10192] | 4526 | _ACEOF
|
---|
[3365] | 4527 |
|
---|
| 4528 | LIBS="-lm $LIBS"
|
---|
| 4529 |
|
---|
| 4530 | fi
|
---|
| 4531 |
|
---|
[10192] | 4532 |
|
---|
| 4533 | echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
|
---|
[8063] | 4534 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
|
---|
| 4535 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then
|
---|
| 4536 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4537 | else
|
---|
[8063] | 4538 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4539 | LIBS="-lstdc++ $LIBS"
|
---|
[8063] | 4540 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4541 | /* confdefs.h. */
|
---|
| 4542 | _ACEOF
|
---|
| 4543 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4544 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4545 | /* end confdefs.h. */
|
---|
[8059] | 4546 |
|
---|
[10192] | 4547 |
|
---|
[8063] | 4548 | int
|
---|
| 4549 | main ()
|
---|
| 4550 | {
|
---|
| 4551 | main ();
|
---|
| 4552 | ;
|
---|
| 4553 | return 0;
|
---|
| 4554 | }
|
---|
| 4555 | _ACEOF
|
---|
| 4556 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4558 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4559 | ac_status=$?
|
---|
[10192] | 4560 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4561 | rm -f conftest.er1
|
---|
| 4562 | cat conftest.err >&5
|
---|
| 4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4564 | (exit $ac_status); } &&
|
---|
[10192] | 4565 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4566 | || test ! -s conftest.err'
|
---|
| 4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4568 | (eval $ac_try) 2>&5
|
---|
| 4569 | ac_status=$?
|
---|
[10192] | 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4571 | (exit $ac_status); }; } &&
|
---|
| 4572 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4574 | (eval $ac_try) 2>&5
|
---|
| 4575 | ac_status=$?
|
---|
| 4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4577 | (exit $ac_status); }; }; then
|
---|
| 4578 | ac_cv_lib_stdcpp_main=yes
|
---|
[8059] | 4579 | else
|
---|
[8063] | 4580 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4581 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4582 |
|
---|
[8063] | 4583 | ac_cv_lib_stdcpp_main=no
|
---|
[8059] | 4584 | fi
|
---|
[10192] | 4585 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4586 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4587 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4588 | fi
|
---|
[10192] | 4589 | echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
[8063] | 4590 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
|
---|
| 4591 | if test $ac_cv_lib_stdcpp_main = yes; then
|
---|
[10192] | 4592 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4593 | #define HAVE_LIBSTDC__ 1
|
---|
[10192] | 4594 | _ACEOF
|
---|
[8059] | 4595 |
|
---|
| 4596 | LIBS="-lstdc++ $LIBS"
|
---|
| 4597 |
|
---|
| 4598 | fi
|
---|
| 4599 |
|
---|
[10192] | 4600 |
|
---|
| 4601 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
[8063] | 4602 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4603 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4604 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4605 | else
|
---|
[8063] | 4606 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4607 | LIBS="-lcrypt $LIBS"
|
---|
[8063] | 4608 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4609 | /* confdefs.h. */
|
---|
| 4610 | _ACEOF
|
---|
| 4611 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4612 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4613 | /* end confdefs.h. */
|
---|
[8059] | 4614 |
|
---|
[10192] | 4615 |
|
---|
[8063] | 4616 | int
|
---|
| 4617 | main ()
|
---|
| 4618 | {
|
---|
| 4619 | main ();
|
---|
| 4620 | ;
|
---|
| 4621 | return 0;
|
---|
| 4622 | }
|
---|
| 4623 | _ACEOF
|
---|
| 4624 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4626 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4627 | ac_status=$?
|
---|
[10192] | 4628 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4629 | rm -f conftest.er1
|
---|
| 4630 | cat conftest.err >&5
|
---|
| 4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4632 | (exit $ac_status); } &&
|
---|
[10192] | 4633 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4634 | || test ! -s conftest.err'
|
---|
| 4635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4636 | (eval $ac_try) 2>&5
|
---|
| 4637 | ac_status=$?
|
---|
[10192] | 4638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4639 | (exit $ac_status); }; } &&
|
---|
| 4640 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4642 | (eval $ac_try) 2>&5
|
---|
| 4643 | ac_status=$?
|
---|
| 4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4645 | (exit $ac_status); }; }; then
|
---|
| 4646 | ac_cv_lib_crypt_main=yes
|
---|
[8059] | 4647 | else
|
---|
[8063] | 4648 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4649 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4650 |
|
---|
[8063] | 4651 | ac_cv_lib_crypt_main=no
|
---|
[8059] | 4652 | fi
|
---|
[10192] | 4653 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4654 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4655 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4656 | fi
|
---|
[10192] | 4657 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
[8063] | 4658 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4659 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[10192] | 4660 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4661 | #define HAVE_LIBCRYPT 1
|
---|
[10192] | 4662 | _ACEOF
|
---|
[8059] | 4663 |
|
---|
| 4664 | LIBS="-lcrypt $LIBS"
|
---|
| 4665 |
|
---|
| 4666 | fi
|
---|
| 4667 |
|
---|
[13482] | 4668 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
[10192] | 4669 |
|
---|
[14170] | 4670 | echo "$as_me:$LINENO: checking for main in -liconv" >&5
|
---|
| 4671 | echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
|
---|
| 4672 | if test "${ac_cv_lib_iconv_main+set}" = set; then
|
---|
[13482] | 4673 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4674 | else
|
---|
| 4675 | ac_check_lib_save_LIBS=$LIBS
|
---|
[14170] | 4676 | LIBS="-liconv $LIBS"
|
---|
[13482] | 4677 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4678 | /* confdefs.h. */
|
---|
| 4679 | _ACEOF
|
---|
| 4680 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4681 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4682 | /* end confdefs.h. */
|
---|
[10192] | 4683 |
|
---|
| 4684 |
|
---|
[13482] | 4685 | int
|
---|
| 4686 | main ()
|
---|
| 4687 | {
|
---|
| 4688 | main ();
|
---|
| 4689 | ;
|
---|
| 4690 | return 0;
|
---|
| 4691 | }
|
---|
| 4692 | _ACEOF
|
---|
| 4693 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4694 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4695 | (eval $ac_link) 2>conftest.er1
|
---|
| 4696 | ac_status=$?
|
---|
| 4697 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4698 | rm -f conftest.er1
|
---|
| 4699 | cat conftest.err >&5
|
---|
| 4700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4701 | (exit $ac_status); } &&
|
---|
| 4702 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4703 | || test ! -s conftest.err'
|
---|
| 4704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4705 | (eval $ac_try) 2>&5
|
---|
| 4706 | ac_status=$?
|
---|
| 4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4708 | (exit $ac_status); }; } &&
|
---|
| 4709 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4711 | (eval $ac_try) 2>&5
|
---|
| 4712 | ac_status=$?
|
---|
| 4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4714 | (exit $ac_status); }; }; then
|
---|
[14170] | 4715 | ac_cv_lib_iconv_main=yes
|
---|
[13482] | 4716 | else
|
---|
| 4717 | echo "$as_me: failed program was:" >&5
|
---|
| 4718 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[10192] | 4719 |
|
---|
[14170] | 4720 | ac_cv_lib_iconv_main=no
|
---|
[13482] | 4721 | fi
|
---|
| 4722 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4723 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4724 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4725 | fi
|
---|
[14170] | 4726 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
|
---|
| 4727 | echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
|
---|
| 4728 | if test $ac_cv_lib_iconv_main = yes; then
|
---|
[13482] | 4729 | cat >>confdefs.h <<_ACEOF
|
---|
| 4730 | #define HAVE_LIBICONV 1
|
---|
| 4731 | _ACEOF
|
---|
[10192] | 4732 |
|
---|
[14170] | 4733 | LIBS="-liconv $LIBS"
|
---|
[10192] | 4734 |
|
---|
[13482] | 4735 | fi
|
---|
[14170] | 4736 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
[13482] | 4737 |
|
---|
| 4738 | fi
|
---|
| 4739 |
|
---|
| 4740 |
|
---|
| 4741 |
|
---|
| 4742 |
|
---|
| 4743 |
|
---|
| 4744 |
|
---|
| 4745 |
|
---|
[3365] | 4746 | ac_header_dirent=no
|
---|
[8063] | 4747 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[10192] | 4748 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4749 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
[8063] | 4750 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
[10192] | 4751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 4752 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4753 | else
|
---|
[8063] | 4754 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4755 | /* confdefs.h. */
|
---|
| 4756 | _ACEOF
|
---|
| 4757 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4758 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4759 | /* end confdefs.h. */
|
---|
[3365] | 4760 | #include <sys/types.h>
|
---|
| 4761 | #include <$ac_hdr>
|
---|
[8063] | 4762 |
|
---|
| 4763 | int
|
---|
| 4764 | main ()
|
---|
| 4765 | {
|
---|
[10192] | 4766 | if ((DIR *) 0)
|
---|
| 4767 | return 0;
|
---|
[8063] | 4768 | ;
|
---|
| 4769 | return 0;
|
---|
| 4770 | }
|
---|
| 4771 | _ACEOF
|
---|
| 4772 | rm -f conftest.$ac_objext
|
---|
[10192] | 4773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4774 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4775 | ac_status=$?
|
---|
[10192] | 4776 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4777 | rm -f conftest.er1
|
---|
| 4778 | cat conftest.err >&5
|
---|
| 4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4780 | (exit $ac_status); } &&
|
---|
[10192] | 4781 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4782 | || test ! -s conftest.err'
|
---|
| 4783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4784 | (eval $ac_try) 2>&5
|
---|
| 4785 | ac_status=$?
|
---|
[10192] | 4786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4787 | (exit $ac_status); }; } &&
|
---|
| 4788 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4790 | (eval $ac_try) 2>&5
|
---|
| 4791 | ac_status=$?
|
---|
| 4792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4793 | (exit $ac_status); }; }; then
|
---|
[10192] | 4794 | eval "$as_ac_Header=yes"
|
---|
[3365] | 4795 | else
|
---|
[8063] | 4796 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4797 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4798 |
|
---|
| 4799 | eval "$as_ac_Header=no"
|
---|
[3365] | 4800 | fi
|
---|
[10192] | 4801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4802 | fi
|
---|
[10192] | 4803 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4804 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4805 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4806 | cat >>confdefs.h <<_ACEOF
|
---|
| 4807 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4808 | _ACEOF
|
---|
[8063] | 4809 |
|
---|
| 4810 | ac_header_dirent=$ac_hdr; break
|
---|
[3365] | 4811 | fi
|
---|
[8063] | 4812 |
|
---|
[3365] | 4813 | done
|
---|
| 4814 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4815 | if test $ac_header_dirent = dirent.h; then
|
---|
[10192] | 4816 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4817 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4818 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4819 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4820 | else
|
---|
[10192] | 4821 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4822 | ac_cv_search_opendir=no
|
---|
[8063] | 4823 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4824 | /* confdefs.h. */
|
---|
| 4825 | _ACEOF
|
---|
| 4826 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4827 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4828 | /* end confdefs.h. */
|
---|
[8063] | 4829 |
|
---|
[3365] | 4830 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4831 | #ifdef __cplusplus
|
---|
| 4832 | extern "C"
|
---|
| 4833 | #endif
|
---|
[3365] | 4834 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4835 | builtin and then its argument prototype would still apply. */
|
---|
| 4836 | char opendir ();
|
---|
| 4837 | int
|
---|
| 4838 | main ()
|
---|
| 4839 | {
|
---|
| 4840 | opendir ();
|
---|
| 4841 | ;
|
---|
| 4842 | return 0;
|
---|
| 4843 | }
|
---|
| 4844 | _ACEOF
|
---|
| 4845 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4847 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4848 | ac_status=$?
|
---|
[10192] | 4849 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4850 | rm -f conftest.er1
|
---|
| 4851 | cat conftest.err >&5
|
---|
| 4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4853 | (exit $ac_status); } &&
|
---|
[10192] | 4854 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4855 | || test ! -s conftest.err'
|
---|
| 4856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4857 | (eval $ac_try) 2>&5
|
---|
| 4858 | ac_status=$?
|
---|
[10192] | 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4860 | (exit $ac_status); }; } &&
|
---|
| 4861 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4863 | (eval $ac_try) 2>&5
|
---|
| 4864 | ac_status=$?
|
---|
| 4865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4866 | (exit $ac_status); }; }; then
|
---|
[10192] | 4867 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4868 | else
|
---|
[8063] | 4869 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4870 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4871 |
|
---|
[3365] | 4872 | fi
|
---|
[10192] | 4873 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4874 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4875 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4876 | for ac_lib in dir; do
|
---|
| 4877 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4878 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4879 | /* confdefs.h. */
|
---|
| 4880 | _ACEOF
|
---|
| 4881 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4882 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4883 | /* end confdefs.h. */
|
---|
| 4884 |
|
---|
| 4885 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4886 | #ifdef __cplusplus
|
---|
| 4887 | extern "C"
|
---|
| 4888 | #endif
|
---|
| 4889 | /* We use char because int might match the return type of a gcc2
|
---|
| 4890 | builtin and then its argument prototype would still apply. */
|
---|
| 4891 | char opendir ();
|
---|
| 4892 | int
|
---|
| 4893 | main ()
|
---|
| 4894 | {
|
---|
| 4895 | opendir ();
|
---|
| 4896 | ;
|
---|
| 4897 | return 0;
|
---|
| 4898 | }
|
---|
| 4899 | _ACEOF
|
---|
| 4900 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4902 | (eval $ac_link) 2>conftest.er1
|
---|
| 4903 | ac_status=$?
|
---|
| 4904 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4905 | rm -f conftest.er1
|
---|
| 4906 | cat conftest.err >&5
|
---|
| 4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4908 | (exit $ac_status); } &&
|
---|
| 4909 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4910 | || test ! -s conftest.err'
|
---|
| 4911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4912 | (eval $ac_try) 2>&5
|
---|
| 4913 | ac_status=$?
|
---|
| 4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4915 | (exit $ac_status); }; } &&
|
---|
| 4916 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4918 | (eval $ac_try) 2>&5
|
---|
| 4919 | ac_status=$?
|
---|
| 4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4921 | (exit $ac_status); }; }; then
|
---|
| 4922 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4923 | break
|
---|
| 4924 | else
|
---|
| 4925 | echo "$as_me: failed program was:" >&5
|
---|
| 4926 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4927 |
|
---|
[3365] | 4928 | fi
|
---|
[10192] | 4929 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4930 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4931 | done
|
---|
[3365] | 4932 | fi
|
---|
[10192] | 4933 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4934 | fi
|
---|
| 4935 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4936 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4937 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4938 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 4939 |
|
---|
[10192] | 4940 | fi
|
---|
| 4941 |
|
---|
[3365] | 4942 | else
|
---|
[10192] | 4943 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4944 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4945 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4946 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4947 | else
|
---|
[10192] | 4948 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4949 | ac_cv_search_opendir=no
|
---|
[8063] | 4950 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4951 | /* confdefs.h. */
|
---|
| 4952 | _ACEOF
|
---|
| 4953 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4954 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4955 | /* end confdefs.h. */
|
---|
[8063] | 4956 |
|
---|
[3365] | 4957 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4958 | #ifdef __cplusplus
|
---|
| 4959 | extern "C"
|
---|
| 4960 | #endif
|
---|
[3365] | 4961 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4962 | builtin and then its argument prototype would still apply. */
|
---|
| 4963 | char opendir ();
|
---|
| 4964 | int
|
---|
| 4965 | main ()
|
---|
| 4966 | {
|
---|
| 4967 | opendir ();
|
---|
| 4968 | ;
|
---|
| 4969 | return 0;
|
---|
| 4970 | }
|
---|
| 4971 | _ACEOF
|
---|
| 4972 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4974 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4975 | ac_status=$?
|
---|
[10192] | 4976 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4977 | rm -f conftest.er1
|
---|
| 4978 | cat conftest.err >&5
|
---|
| 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4980 | (exit $ac_status); } &&
|
---|
[10192] | 4981 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4982 | || test ! -s conftest.err'
|
---|
| 4983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4984 | (eval $ac_try) 2>&5
|
---|
| 4985 | ac_status=$?
|
---|
[10192] | 4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4987 | (exit $ac_status); }; } &&
|
---|
| 4988 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4990 | (eval $ac_try) 2>&5
|
---|
| 4991 | ac_status=$?
|
---|
| 4992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4993 | (exit $ac_status); }; }; then
|
---|
[10192] | 4994 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4995 | else
|
---|
[8063] | 4996 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4997 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4998 |
|
---|
[3365] | 4999 | fi
|
---|
[10192] | 5000 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5001 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5002 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5003 | for ac_lib in x; do
|
---|
| 5004 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5005 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5006 | /* confdefs.h. */
|
---|
| 5007 | _ACEOF
|
---|
| 5008 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5009 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5010 | /* end confdefs.h. */
|
---|
| 5011 |
|
---|
| 5012 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5013 | #ifdef __cplusplus
|
---|
| 5014 | extern "C"
|
---|
| 5015 | #endif
|
---|
| 5016 | /* We use char because int might match the return type of a gcc2
|
---|
| 5017 | builtin and then its argument prototype would still apply. */
|
---|
| 5018 | char opendir ();
|
---|
| 5019 | int
|
---|
| 5020 | main ()
|
---|
| 5021 | {
|
---|
| 5022 | opendir ();
|
---|
| 5023 | ;
|
---|
| 5024 | return 0;
|
---|
| 5025 | }
|
---|
| 5026 | _ACEOF
|
---|
| 5027 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5029 | (eval $ac_link) 2>conftest.er1
|
---|
| 5030 | ac_status=$?
|
---|
| 5031 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5032 | rm -f conftest.er1
|
---|
| 5033 | cat conftest.err >&5
|
---|
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5035 | (exit $ac_status); } &&
|
---|
| 5036 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5037 | || test ! -s conftest.err'
|
---|
| 5038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5039 | (eval $ac_try) 2>&5
|
---|
| 5040 | ac_status=$?
|
---|
| 5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5042 | (exit $ac_status); }; } &&
|
---|
| 5043 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5045 | (eval $ac_try) 2>&5
|
---|
| 5046 | ac_status=$?
|
---|
| 5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5048 | (exit $ac_status); }; }; then
|
---|
| 5049 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5050 | break
|
---|
| 5051 | else
|
---|
| 5052 | echo "$as_me: failed program was:" >&5
|
---|
| 5053 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5054 |
|
---|
[3365] | 5055 | fi
|
---|
[10192] | 5056 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5057 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5058 | done
|
---|
[3365] | 5059 | fi
|
---|
[10192] | 5060 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5061 | fi
|
---|
| 5062 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5063 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5064 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5065 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 5066 |
|
---|
| 5067 | fi
|
---|
| 5068 |
|
---|
[10192] | 5069 | fi
|
---|
| 5070 |
|
---|
| 5071 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
[8063] | 5072 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5073 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5074 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5075 | else
|
---|
[8063] | 5076 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5077 | /* confdefs.h. */
|
---|
| 5078 | _ACEOF
|
---|
| 5079 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5080 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5081 | /* end confdefs.h. */
|
---|
[3365] | 5082 | #include <stdlib.h>
|
---|
| 5083 | #include <stdarg.h>
|
---|
| 5084 | #include <string.h>
|
---|
| 5085 | #include <float.h>
|
---|
[8063] | 5086 |
|
---|
[10192] | 5087 | int
|
---|
| 5088 | main ()
|
---|
| 5089 | {
|
---|
| 5090 |
|
---|
| 5091 | ;
|
---|
| 5092 | return 0;
|
---|
| 5093 | }
|
---|
[8063] | 5094 | _ACEOF
|
---|
[10192] | 5095 | rm -f conftest.$ac_objext
|
---|
| 5096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5097 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 5098 | ac_status=$?
|
---|
[10192] | 5099 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 5100 | rm -f conftest.er1
|
---|
| 5101 | cat conftest.err >&5
|
---|
[10192] | 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5103 | (exit $ac_status); } &&
|
---|
| 5104 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5105 | || test ! -s conftest.err'
|
---|
| 5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5107 | (eval $ac_try) 2>&5
|
---|
| 5108 | ac_status=$?
|
---|
| 5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5110 | (exit $ac_status); }; } &&
|
---|
| 5111 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5113 | (eval $ac_try) 2>&5
|
---|
| 5114 | ac_status=$?
|
---|
| 5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5116 | (exit $ac_status); }; }; then
|
---|
[3365] | 5117 | ac_cv_header_stdc=yes
|
---|
| 5118 | else
|
---|
[8063] | 5119 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5120 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5121 |
|
---|
| 5122 | ac_cv_header_stdc=no
|
---|
[3365] | 5123 | fi
|
---|
[10192] | 5124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5125 |
|
---|
| 5126 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5127 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8063] | 5128 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5129 | /* confdefs.h. */
|
---|
| 5130 | _ACEOF
|
---|
| 5131 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5132 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5133 | /* end confdefs.h. */
|
---|
[3365] | 5134 | #include <string.h>
|
---|
[8063] | 5135 |
|
---|
| 5136 | _ACEOF
|
---|
[3365] | 5137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5138 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[3365] | 5139 | :
|
---|
| 5140 | else
|
---|
| 5141 | ac_cv_header_stdc=no
|
---|
| 5142 | fi
|
---|
| 5143 | rm -f conftest*
|
---|
| 5144 |
|
---|
| 5145 | fi
|
---|
| 5146 |
|
---|
| 5147 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5148 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8063] | 5149 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5150 | /* confdefs.h. */
|
---|
| 5151 | _ACEOF
|
---|
| 5152 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5153 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5154 | /* end confdefs.h. */
|
---|
[3365] | 5155 | #include <stdlib.h>
|
---|
[8063] | 5156 |
|
---|
| 5157 | _ACEOF
|
---|
[3365] | 5158 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5159 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[3365] | 5160 | :
|
---|
| 5161 | else
|
---|
| 5162 | ac_cv_header_stdc=no
|
---|
| 5163 | fi
|
---|
| 5164 | rm -f conftest*
|
---|
| 5165 |
|
---|
| 5166 | fi
|
---|
| 5167 |
|
---|
| 5168 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5169 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8063] | 5170 | if test "$cross_compiling" = yes; then
|
---|
[3365] | 5171 | :
|
---|
| 5172 | else
|
---|
[8063] | 5173 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5174 | /* confdefs.h. */
|
---|
| 5175 | _ACEOF
|
---|
| 5176 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5177 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5178 | /* end confdefs.h. */
|
---|
[3365] | 5179 | #include <ctype.h>
|
---|
[8063] | 5180 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5181 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5182 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5183 | #else
|
---|
[10192] | 5184 | # define ISLOWER(c) \
|
---|
| 5185 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5186 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5187 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[8063] | 5188 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5189 | #endif
|
---|
| 5190 |
|
---|
[8059] | 5191 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8063] | 5192 | int
|
---|
| 5193 | main ()
|
---|
| 5194 | {
|
---|
| 5195 | int i;
|
---|
| 5196 | for (i = 0; i < 256; i++)
|
---|
| 5197 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10192] | 5198 | || toupper (i) != TOUPPER (i))
|
---|
[8063] | 5199 | exit(2);
|
---|
| 5200 | exit (0);
|
---|
| 5201 | }
|
---|
| 5202 | _ACEOF
|
---|
| 5203 | rm -f conftest$ac_exeext
|
---|
[10192] | 5204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 5205 | (eval $ac_link) 2>&5
|
---|
| 5206 | ac_status=$?
|
---|
[10192] | 5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 5209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5210 | (eval $ac_try) 2>&5
|
---|
| 5211 | ac_status=$?
|
---|
[10192] | 5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5213 | (exit $ac_status); }; }; then
|
---|
[3365] | 5214 | :
|
---|
| 5215 | else
|
---|
[8063] | 5216 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5217 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5218 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5219 |
|
---|
| 5220 | ( exit $ac_status )
|
---|
[8063] | 5221 | ac_cv_header_stdc=no
|
---|
[3365] | 5222 | fi
|
---|
[10192] | 5223 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5224 | fi
|
---|
| 5225 | fi
|
---|
| 5226 | fi
|
---|
[10192] | 5227 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
[8063] | 5228 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5229 | if test $ac_cv_header_stdc = yes; then
|
---|
[8059] | 5230 |
|
---|
[10192] | 5231 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5232 | #define STDC_HEADERS 1
|
---|
[10192] | 5233 | _ACEOF
|
---|
[3365] | 5234 |
|
---|
| 5235 | fi
|
---|
| 5236 |
|
---|
[10192] | 5237 |
|
---|
| 5238 |
|
---|
| 5239 |
|
---|
| 5240 |
|
---|
| 5241 |
|
---|
| 5242 |
|
---|
| 5243 |
|
---|
| 5244 |
|
---|
[8063] | 5245 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
[3365] | 5246 | do
|
---|
[10192] | 5247 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5248 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5249 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
[8063] | 5250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
[10192] | 5251 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 5252 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 5253 | fi
|
---|
| 5254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5255 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[3365] | 5256 | else
|
---|
[10192] | 5257 | # Is the header compilable?
|
---|
| 5258 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5259 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5260 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5261 | /* confdefs.h. */
|
---|
| 5262 | _ACEOF
|
---|
| 5263 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5264 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5265 | /* end confdefs.h. */
|
---|
| 5266 | $ac_includes_default
|
---|
[8063] | 5267 | #include <$ac_header>
|
---|
| 5268 | _ACEOF
|
---|
[10192] | 5269 | rm -f conftest.$ac_objext
|
---|
| 5270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5271 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5272 | ac_status=$?
|
---|
| 5273 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5274 | rm -f conftest.er1
|
---|
| 5275 | cat conftest.err >&5
|
---|
| 5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5277 | (exit $ac_status); } &&
|
---|
| 5278 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5279 | || test ! -s conftest.err'
|
---|
| 5280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5281 | (eval $ac_try) 2>&5
|
---|
| 5282 | ac_status=$?
|
---|
| 5283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5284 | (exit $ac_status); }; } &&
|
---|
| 5285 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5287 | (eval $ac_try) 2>&5
|
---|
| 5288 | ac_status=$?
|
---|
| 5289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5290 | (exit $ac_status); }; }; then
|
---|
| 5291 | ac_header_compiler=yes
|
---|
| 5292 | else
|
---|
| 5293 | echo "$as_me: failed program was:" >&5
|
---|
| 5294 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5295 |
|
---|
| 5296 | ac_header_compiler=no
|
---|
| 5297 | fi
|
---|
| 5298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5299 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5300 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5301 |
|
---|
| 5302 | # Is the header present?
|
---|
| 5303 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5304 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5305 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5306 | /* confdefs.h. */
|
---|
| 5307 | _ACEOF
|
---|
| 5308 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5309 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5310 | /* end confdefs.h. */
|
---|
| 5311 | #include <$ac_header>
|
---|
| 5312 | _ACEOF
|
---|
| 5313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 5314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5315 | ac_status=$?
|
---|
[10192] | 5316 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 5317 | rm -f conftest.er1
|
---|
| 5318 | cat conftest.err >&5
|
---|
[10192] | 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5320 | (exit $ac_status); } >/dev/null; then
|
---|
| 5321 | if test -s conftest.err; then
|
---|
| 5322 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 5323 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 5324 | else
|
---|
| 5325 | ac_cpp_err=
|
---|
| 5326 | fi
|
---|
[3365] | 5327 | else
|
---|
[8063] | 5328 | ac_cpp_err=yes
|
---|
| 5329 | fi
|
---|
| 5330 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 5331 | ac_header_preproc=yes
|
---|
[8063] | 5332 | else
|
---|
| 5333 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5334 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5335 |
|
---|
| 5336 | ac_header_preproc=no
|
---|
[3365] | 5337 | fi
|
---|
[8063] | 5338 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 5339 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5340 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5341 |
|
---|
| 5342 | # So? What about this header?
|
---|
| 5343 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5344 | yes:no: )
|
---|
| 5345 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5346 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5347 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5348 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5349 | ac_header_preproc=yes
|
---|
| 5350 | ;;
|
---|
| 5351 | no:yes:* )
|
---|
| 5352 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5353 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5354 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5355 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5356 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5357 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5358 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5359 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5360 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5361 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5362 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5363 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5364 | (
|
---|
| 5365 | cat <<\_ASBOX
|
---|
| 5366 | ## ------------------------------------------ ##
|
---|
| 5367 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5368 | ## ------------------------------------------ ##
|
---|
| 5369 | _ASBOX
|
---|
| 5370 | ) |
|
---|
| 5371 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5372 | ;;
|
---|
| 5373 | esac
|
---|
| 5374 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5375 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5376 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5377 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5378 | else
|
---|
| 5379 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
[3365] | 5380 | fi
|
---|
[10192] | 5381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5382 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[8063] | 5383 |
|
---|
[3365] | 5384 | fi
|
---|
[10192] | 5385 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5386 | cat >>confdefs.h <<_ACEOF
|
---|
| 5387 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5388 | _ACEOF
|
---|
| 5389 |
|
---|
| 5390 | fi
|
---|
| 5391 |
|
---|
[3365] | 5392 | done
|
---|
| 5393 |
|
---|
[8063] | 5394 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5395 | /* confdefs.h. */
|
---|
| 5396 | _ACEOF
|
---|
| 5397 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5398 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5399 | /* end confdefs.h. */
|
---|
[3365] | 5400 | #include <stdio.h>
|
---|
[8063] | 5401 |
|
---|
| 5402 | _ACEOF
|
---|
[3365] | 5403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5404 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5405 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5406 | #define HAVE_FREAD_DECL 1
|
---|
[10192] | 5407 | _ACEOF
|
---|
[3365] | 5408 |
|
---|
| 5409 | fi
|
---|
| 5410 | rm -f conftest*
|
---|
| 5411 |
|
---|
[8063] | 5412 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5413 | /* confdefs.h. */
|
---|
| 5414 | _ACEOF
|
---|
| 5415 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5416 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5417 | /* end confdefs.h. */
|
---|
[3365] | 5418 | #include <stdio.h>
|
---|
[8063] | 5419 |
|
---|
| 5420 | _ACEOF
|
---|
[3365] | 5421 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5422 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5423 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5424 | #define HAVE_FGETC_DECL 1
|
---|
[10192] | 5425 | _ACEOF
|
---|
[3365] | 5426 |
|
---|
| 5427 | fi
|
---|
| 5428 | rm -f conftest*
|
---|
| 5429 |
|
---|
[8063] | 5430 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5431 | /* confdefs.h. */
|
---|
| 5432 | _ACEOF
|
---|
| 5433 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5434 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5435 | /* end confdefs.h. */
|
---|
[3365] | 5436 | #include <sys/procfs.h>
|
---|
[8063] | 5437 |
|
---|
| 5438 | _ACEOF
|
---|
[3365] | 5439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5440 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5441 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5442 | #define HAVE_PR_BRKSIZE 1
|
---|
[10192] | 5443 | _ACEOF
|
---|
[3365] | 5444 |
|
---|
| 5445 | fi
|
---|
| 5446 | rm -f conftest*
|
---|
| 5447 |
|
---|
[10192] | 5448 |
|
---|
[3365] | 5449 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5450 | # for constant arguments. Useless!
|
---|
[10192] | 5451 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
[8063] | 5452 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5453 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5454 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5455 | else
|
---|
[8063] | 5456 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5457 | /* confdefs.h. */
|
---|
| 5458 | _ACEOF
|
---|
| 5459 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5460 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5461 | /* end confdefs.h. */
|
---|
[3365] | 5462 | #include <alloca.h>
|
---|
[8063] | 5463 | int
|
---|
| 5464 | main ()
|
---|
| 5465 | {
|
---|
| 5466 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5467 | ;
|
---|
| 5468 | return 0;
|
---|
| 5469 | }
|
---|
| 5470 | _ACEOF
|
---|
| 5471 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5473 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5474 | ac_status=$?
|
---|
[10192] | 5475 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5476 | rm -f conftest.er1
|
---|
| 5477 | cat conftest.err >&5
|
---|
| 5478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5479 | (exit $ac_status); } &&
|
---|
[10192] | 5480 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5481 | || test ! -s conftest.err'
|
---|
| 5482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5483 | (eval $ac_try) 2>&5
|
---|
| 5484 | ac_status=$?
|
---|
[10192] | 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5486 | (exit $ac_status); }; } &&
|
---|
| 5487 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5489 | (eval $ac_try) 2>&5
|
---|
| 5490 | ac_status=$?
|
---|
| 5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5492 | (exit $ac_status); }; }; then
|
---|
| 5493 | ac_cv_working_alloca_h=yes
|
---|
[3365] | 5494 | else
|
---|
[8063] | 5495 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5496 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5497 |
|
---|
[8063] | 5498 | ac_cv_working_alloca_h=no
|
---|
[3365] | 5499 | fi
|
---|
[10192] | 5500 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5501 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5502 | fi
|
---|
[10192] | 5503 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
[8063] | 5504 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5505 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[3365] | 5506 |
|
---|
[10192] | 5507 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5508 | #define HAVE_ALLOCA_H 1
|
---|
[10192] | 5509 | _ACEOF
|
---|
[3365] | 5510 |
|
---|
| 5511 | fi
|
---|
| 5512 |
|
---|
[10192] | 5513 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
[8063] | 5514 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5515 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5516 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5517 | else
|
---|
[8063] | 5518 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5519 | /* confdefs.h. */
|
---|
| 5520 | _ACEOF
|
---|
| 5521 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5522 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5523 | /* end confdefs.h. */
|
---|
[3365] | 5524 | #ifdef __GNUC__
|
---|
| 5525 | # define alloca __builtin_alloca
|
---|
| 5526 | #else
|
---|
| 5527 | # ifdef _MSC_VER
|
---|
| 5528 | # include <malloc.h>
|
---|
| 5529 | # define alloca _alloca
|
---|
| 5530 | # else
|
---|
| 5531 | # if HAVE_ALLOCA_H
|
---|
| 5532 | # include <alloca.h>
|
---|
| 5533 | # else
|
---|
| 5534 | # ifdef _AIX
|
---|
| 5535 | #pragma alloca
|
---|
| 5536 | # else
|
---|
| 5537 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5538 | char *alloca ();
|
---|
| 5539 | # endif
|
---|
| 5540 | # endif
|
---|
| 5541 | # endif
|
---|
| 5542 | # endif
|
---|
| 5543 | #endif
|
---|
| 5544 |
|
---|
[8063] | 5545 | int
|
---|
| 5546 | main ()
|
---|
| 5547 | {
|
---|
| 5548 | char *p = (char *) alloca (1);
|
---|
| 5549 | ;
|
---|
| 5550 | return 0;
|
---|
| 5551 | }
|
---|
| 5552 | _ACEOF
|
---|
| 5553 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5555 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5556 | ac_status=$?
|
---|
[10192] | 5557 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5558 | rm -f conftest.er1
|
---|
| 5559 | cat conftest.err >&5
|
---|
| 5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5561 | (exit $ac_status); } &&
|
---|
[10192] | 5562 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5563 | || test ! -s conftest.err'
|
---|
| 5564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5565 | (eval $ac_try) 2>&5
|
---|
| 5566 | ac_status=$?
|
---|
[10192] | 5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5568 | (exit $ac_status); }; } &&
|
---|
| 5569 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5571 | (eval $ac_try) 2>&5
|
---|
| 5572 | ac_status=$?
|
---|
| 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5574 | (exit $ac_status); }; }; then
|
---|
[3365] | 5575 | ac_cv_func_alloca_works=yes
|
---|
| 5576 | else
|
---|
[8063] | 5577 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5578 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5579 |
|
---|
[8063] | 5580 | ac_cv_func_alloca_works=no
|
---|
[3365] | 5581 | fi
|
---|
[10192] | 5582 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5583 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5584 | fi
|
---|
[10192] | 5585 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
[8063] | 5586 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[3365] | 5587 |
|
---|
| 5588 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8063] | 5589 |
|
---|
[10192] | 5590 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5591 | #define HAVE_ALLOCA 1
|
---|
[10192] | 5592 | _ACEOF
|
---|
[3365] | 5593 |
|
---|
[8063] | 5594 | else
|
---|
| 5595 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5596 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5597 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5598 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8059] | 5599 |
|
---|
[8063] | 5600 | ALLOCA=alloca.$ac_objext
|
---|
| 5601 |
|
---|
[10192] | 5602 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5603 | #define C_ALLOCA 1
|
---|
[10192] | 5604 | _ACEOF
|
---|
[3365] | 5605 |
|
---|
[10192] | 5606 |
|
---|
| 5607 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[8063] | 5608 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5609 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5610 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5611 | else
|
---|
[8063] | 5612 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5613 | /* confdefs.h. */
|
---|
| 5614 | _ACEOF
|
---|
| 5615 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5616 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5617 | /* end confdefs.h. */
|
---|
[3365] | 5618 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5619 | webecray
|
---|
| 5620 | #else
|
---|
| 5621 | wenotbecray
|
---|
| 5622 | #endif
|
---|
| 5623 |
|
---|
[8063] | 5624 | _ACEOF
|
---|
[3365] | 5625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5626 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[3365] | 5627 | ac_cv_os_cray=yes
|
---|
| 5628 | else
|
---|
| 5629 | ac_cv_os_cray=no
|
---|
| 5630 | fi
|
---|
| 5631 | rm -f conftest*
|
---|
| 5632 |
|
---|
| 5633 | fi
|
---|
[10192] | 5634 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
[8063] | 5635 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[3365] | 5636 | if test $ac_cv_os_cray = yes; then
|
---|
[8063] | 5637 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[10192] | 5638 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5639 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5640 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5641 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5642 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5643 | else
|
---|
[8063] | 5644 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5645 | /* confdefs.h. */
|
---|
| 5646 | _ACEOF
|
---|
| 5647 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5648 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5649 | /* end confdefs.h. */
|
---|
| 5650 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5651 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5652 | #define $ac_func innocuous_$ac_func
|
---|
| 5653 |
|
---|
[3365] | 5654 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5655 | which can conflict with char $ac_func (); below.
|
---|
| 5656 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5657 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5658 |
|
---|
| 5659 | #ifdef __STDC__
|
---|
| 5660 | # include <limits.h>
|
---|
| 5661 | #else
|
---|
| 5662 | # include <assert.h>
|
---|
| 5663 | #endif
|
---|
| 5664 |
|
---|
| 5665 | #undef $ac_func
|
---|
| 5666 |
|
---|
[3365] | 5667 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5668 | #ifdef __cplusplus
|
---|
| 5669 | extern "C"
|
---|
[10192] | 5670 | {
|
---|
[8063] | 5671 | #endif
|
---|
[3365] | 5672 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5673 | builtin and then its argument prototype would still apply. */
|
---|
| 5674 | char $ac_func ();
|
---|
[3365] | 5675 | /* The GNU C library defines this for functions which it implements
|
---|
| 5676 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5677 | something starting with __ and the normal name is an alias. */
|
---|
| 5678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5679 | choke me
|
---|
| 5680 | #else
|
---|
[10192] | 5681 | char (*f) () = $ac_func;
|
---|
[3365] | 5682 | #endif
|
---|
[10192] | 5683 | #ifdef __cplusplus
|
---|
| 5684 | }
|
---|
| 5685 | #endif
|
---|
[3365] | 5686 |
|
---|
[10192] | 5687 | int
|
---|
| 5688 | main ()
|
---|
| 5689 | {
|
---|
| 5690 | return f != $ac_func;
|
---|
[8063] | 5691 | ;
|
---|
| 5692 | return 0;
|
---|
| 5693 | }
|
---|
| 5694 | _ACEOF
|
---|
| 5695 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5697 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5698 | ac_status=$?
|
---|
[10192] | 5699 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5700 | rm -f conftest.er1
|
---|
| 5701 | cat conftest.err >&5
|
---|
| 5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5703 | (exit $ac_status); } &&
|
---|
[10192] | 5704 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5705 | || test ! -s conftest.err'
|
---|
| 5706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5707 | (eval $ac_try) 2>&5
|
---|
| 5708 | ac_status=$?
|
---|
[10192] | 5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5710 | (exit $ac_status); }; } &&
|
---|
| 5711 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5713 | (eval $ac_try) 2>&5
|
---|
| 5714 | ac_status=$?
|
---|
| 5715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5716 | (exit $ac_status); }; }; then
|
---|
[10192] | 5717 | eval "$as_ac_var=yes"
|
---|
[3365] | 5718 | else
|
---|
[8063] | 5719 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5720 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5721 |
|
---|
| 5722 | eval "$as_ac_var=no"
|
---|
[3365] | 5723 | fi
|
---|
[10192] | 5724 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5725 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5726 | fi
|
---|
[10192] | 5727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5728 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5729 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[3365] | 5730 |
|
---|
[10192] | 5731 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5732 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10192] | 5733 | _ACEOF
|
---|
[3365] | 5734 |
|
---|
[8063] | 5735 | break
|
---|
[3365] | 5736 | fi
|
---|
| 5737 |
|
---|
[8063] | 5738 | done
|
---|
[3365] | 5739 | fi
|
---|
| 5740 |
|
---|
[10192] | 5741 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
[8063] | 5742 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5743 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5744 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5745 | else
|
---|
| 5746 | if test "$cross_compiling" = yes; then
|
---|
| 5747 | ac_cv_c_stack_direction=0
|
---|
| 5748 | else
|
---|
[8063] | 5749 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5750 | /* confdefs.h. */
|
---|
| 5751 | _ACEOF
|
---|
| 5752 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5753 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5754 | /* end confdefs.h. */
|
---|
[8063] | 5755 | int
|
---|
[3365] | 5756 | find_stack_direction ()
|
---|
| 5757 | {
|
---|
| 5758 | static char *addr = 0;
|
---|
| 5759 | auto char dummy;
|
---|
| 5760 | if (addr == 0)
|
---|
| 5761 | {
|
---|
| 5762 | addr = &dummy;
|
---|
| 5763 | return find_stack_direction ();
|
---|
| 5764 | }
|
---|
| 5765 | else
|
---|
| 5766 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5767 | }
|
---|
[8063] | 5768 |
|
---|
| 5769 | int
|
---|
[3365] | 5770 | main ()
|
---|
| 5771 | {
|
---|
[8063] | 5772 | exit (find_stack_direction () < 0);
|
---|
[3365] | 5773 | }
|
---|
[8063] | 5774 | _ACEOF
|
---|
| 5775 | rm -f conftest$ac_exeext
|
---|
[10192] | 5776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 5777 | (eval $ac_link) 2>&5
|
---|
| 5778 | ac_status=$?
|
---|
[10192] | 5779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5780 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5782 | (eval $ac_try) 2>&5
|
---|
| 5783 | ac_status=$?
|
---|
[10192] | 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5785 | (exit $ac_status); }; }; then
|
---|
[3365] | 5786 | ac_cv_c_stack_direction=1
|
---|
| 5787 | else
|
---|
[8063] | 5788 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5789 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5790 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5791 |
|
---|
| 5792 | ( exit $ac_status )
|
---|
[8063] | 5793 | ac_cv_c_stack_direction=-1
|
---|
[3365] | 5794 | fi
|
---|
[10192] | 5795 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5796 | fi
|
---|
| 5797 | fi
|
---|
[10192] | 5798 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
[8063] | 5799 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[3365] | 5800 |
|
---|
[10192] | 5801 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5802 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10192] | 5803 | _ACEOF
|
---|
[3365] | 5804 |
|
---|
[10192] | 5805 |
|
---|
[3365] | 5806 | fi
|
---|
| 5807 |
|
---|
[8063] | 5808 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[10192] | 5809 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
[8063] | 5810 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5811 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5812 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5813 | else
|
---|
| 5814 | ac_pattern="Autoconf.*'x'"
|
---|
[8063] | 5815 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5816 | /* confdefs.h. */
|
---|
| 5817 | _ACEOF
|
---|
| 5818 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5819 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5820 | /* end confdefs.h. */
|
---|
[3365] | 5821 | #include <sgtty.h>
|
---|
| 5822 | Autoconf TIOCGETP
|
---|
[8063] | 5823 | _ACEOF
|
---|
[3365] | 5824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5825 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5826 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5827 | else
|
---|
| 5828 | ac_cv_prog_gcc_traditional=no
|
---|
| 5829 | fi
|
---|
| 5830 | rm -f conftest*
|
---|
| 5831 |
|
---|
[10192] | 5832 |
|
---|
[3365] | 5833 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8063] | 5834 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5835 | /* confdefs.h. */
|
---|
| 5836 | _ACEOF
|
---|
| 5837 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5838 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5839 | /* end confdefs.h. */
|
---|
[3365] | 5840 | #include <termio.h>
|
---|
| 5841 | Autoconf TCGETA
|
---|
[8063] | 5842 | _ACEOF
|
---|
[3365] | 5843 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5844 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5845 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5846 | fi
|
---|
| 5847 | rm -f conftest*
|
---|
| 5848 |
|
---|
| 5849 | fi
|
---|
| 5850 | fi
|
---|
[10192] | 5851 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[8063] | 5852 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[3365] | 5853 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5854 | CC="$CC -traditional"
|
---|
| 5855 | fi
|
---|
| 5856 | fi
|
---|
| 5857 |
|
---|
[10192] | 5858 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
[8063] | 5859 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5860 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5861 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5862 | else
|
---|
[8063] | 5863 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5864 | /* confdefs.h. */
|
---|
| 5865 | _ACEOF
|
---|
| 5866 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5867 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5868 | /* end confdefs.h. */
|
---|
[3365] | 5869 | #include <sys/types.h>
|
---|
| 5870 | #include <signal.h>
|
---|
| 5871 | #ifdef signal
|
---|
[8063] | 5872 | # undef signal
|
---|
[3365] | 5873 | #endif
|
---|
| 5874 | #ifdef __cplusplus
|
---|
| 5875 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5876 | #else
|
---|
| 5877 | void (*signal ()) ();
|
---|
| 5878 | #endif
|
---|
| 5879 |
|
---|
[8063] | 5880 | int
|
---|
| 5881 | main ()
|
---|
| 5882 | {
|
---|
[3365] | 5883 | int i;
|
---|
[8063] | 5884 | ;
|
---|
| 5885 | return 0;
|
---|
| 5886 | }
|
---|
| 5887 | _ACEOF
|
---|
| 5888 | rm -f conftest.$ac_objext
|
---|
[10192] | 5889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5890 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 5891 | ac_status=$?
|
---|
[10192] | 5892 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5893 | rm -f conftest.er1
|
---|
| 5894 | cat conftest.err >&5
|
---|
| 5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5896 | (exit $ac_status); } &&
|
---|
[10192] | 5897 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5898 | || test ! -s conftest.err'
|
---|
| 5899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5900 | (eval $ac_try) 2>&5
|
---|
| 5901 | ac_status=$?
|
---|
[10192] | 5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5903 | (exit $ac_status); }; } &&
|
---|
| 5904 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5906 | (eval $ac_try) 2>&5
|
---|
| 5907 | ac_status=$?
|
---|
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5909 | (exit $ac_status); }; }; then
|
---|
[3365] | 5910 | ac_cv_type_signal=void
|
---|
| 5911 | else
|
---|
[8063] | 5912 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5913 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5914 |
|
---|
[8063] | 5915 | ac_cv_type_signal=int
|
---|
[3365] | 5916 | fi
|
---|
[10192] | 5917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5918 | fi
|
---|
[10192] | 5919 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
[8063] | 5920 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[3365] | 5921 |
|
---|
[10192] | 5922 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5923 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10192] | 5924 | _ACEOF
|
---|
[3365] | 5925 |
|
---|
[10192] | 5926 |
|
---|
| 5927 |
|
---|
[8063] | 5928 | for ac_func in vprintf
|
---|
| 5929 | do
|
---|
[10192] | 5930 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5931 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5932 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5933 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5934 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5935 | else
|
---|
[8063] | 5936 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5937 | /* confdefs.h. */
|
---|
| 5938 | _ACEOF
|
---|
| 5939 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5940 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5941 | /* end confdefs.h. */
|
---|
| 5942 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5943 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5944 | #define $ac_func innocuous_$ac_func
|
---|
| 5945 |
|
---|
[3365] | 5946 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5947 | which can conflict with char $ac_func (); below.
|
---|
| 5948 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5949 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5950 |
|
---|
| 5951 | #ifdef __STDC__
|
---|
| 5952 | # include <limits.h>
|
---|
| 5953 | #else
|
---|
| 5954 | # include <assert.h>
|
---|
| 5955 | #endif
|
---|
| 5956 |
|
---|
| 5957 | #undef $ac_func
|
---|
| 5958 |
|
---|
[3365] | 5959 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5960 | #ifdef __cplusplus
|
---|
| 5961 | extern "C"
|
---|
[10192] | 5962 | {
|
---|
[8063] | 5963 | #endif
|
---|
[3365] | 5964 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5965 | builtin and then its argument prototype would still apply. */
|
---|
| 5966 | char $ac_func ();
|
---|
[3365] | 5967 | /* The GNU C library defines this for functions which it implements
|
---|
| 5968 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5969 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 5970 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[3365] | 5971 | choke me
|
---|
| 5972 | #else
|
---|
[10192] | 5973 | char (*f) () = $ac_func;
|
---|
[3365] | 5974 | #endif
|
---|
[10192] | 5975 | #ifdef __cplusplus
|
---|
| 5976 | }
|
---|
| 5977 | #endif
|
---|
[3365] | 5978 |
|
---|
[10192] | 5979 | int
|
---|
| 5980 | main ()
|
---|
| 5981 | {
|
---|
| 5982 | return f != $ac_func;
|
---|
[8063] | 5983 | ;
|
---|
| 5984 | return 0;
|
---|
| 5985 | }
|
---|
| 5986 | _ACEOF
|
---|
| 5987 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5989 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5990 | ac_status=$?
|
---|
[10192] | 5991 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5992 | rm -f conftest.er1
|
---|
| 5993 | cat conftest.err >&5
|
---|
| 5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5995 | (exit $ac_status); } &&
|
---|
[10192] | 5996 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5997 | || test ! -s conftest.err'
|
---|
| 5998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5999 | (eval $ac_try) 2>&5
|
---|
| 6000 | ac_status=$?
|
---|
[10192] | 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6002 | (exit $ac_status); }; } &&
|
---|
| 6003 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6005 | (eval $ac_try) 2>&5
|
---|
| 6006 | ac_status=$?
|
---|
| 6007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6008 | (exit $ac_status); }; }; then
|
---|
[10192] | 6009 | eval "$as_ac_var=yes"
|
---|
[3365] | 6010 | else
|
---|
[8063] | 6011 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6012 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6013 |
|
---|
| 6014 | eval "$as_ac_var=no"
|
---|
[3365] | 6015 | fi
|
---|
[10192] | 6016 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6017 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6018 | fi
|
---|
[10192] | 6019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6020 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6021 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6022 | cat >>confdefs.h <<_ACEOF
|
---|
| 6023 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6024 | _ACEOF
|
---|
[3365] | 6025 |
|
---|
[10192] | 6026 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
[8063] | 6027 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6028 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6029 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6030 | else
|
---|
[8063] | 6031 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6032 | /* confdefs.h. */
|
---|
| 6033 | _ACEOF
|
---|
| 6034 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6035 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6036 | /* end confdefs.h. */
|
---|
| 6037 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6038 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6039 | #define _doprnt innocuous__doprnt
|
---|
| 6040 |
|
---|
[3365] | 6041 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6042 | which can conflict with char _doprnt (); below.
|
---|
| 6043 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6044 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6045 |
|
---|
| 6046 | #ifdef __STDC__
|
---|
| 6047 | # include <limits.h>
|
---|
| 6048 | #else
|
---|
| 6049 | # include <assert.h>
|
---|
| 6050 | #endif
|
---|
| 6051 |
|
---|
| 6052 | #undef _doprnt
|
---|
| 6053 |
|
---|
[3365] | 6054 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6055 | #ifdef __cplusplus
|
---|
| 6056 | extern "C"
|
---|
[10192] | 6057 | {
|
---|
[8063] | 6058 | #endif
|
---|
[3365] | 6059 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6060 | builtin and then its argument prototype would still apply. */
|
---|
| 6061 | char _doprnt ();
|
---|
[3365] | 6062 | /* The GNU C library defines this for functions which it implements
|
---|
| 6063 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6064 | something starting with __ and the normal name is an alias. */
|
---|
| 6065 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6066 | choke me
|
---|
| 6067 | #else
|
---|
[10192] | 6068 | char (*f) () = _doprnt;
|
---|
[3365] | 6069 | #endif
|
---|
[10192] | 6070 | #ifdef __cplusplus
|
---|
| 6071 | }
|
---|
| 6072 | #endif
|
---|
[3365] | 6073 |
|
---|
[10192] | 6074 | int
|
---|
| 6075 | main ()
|
---|
| 6076 | {
|
---|
| 6077 | return f != _doprnt;
|
---|
[8063] | 6078 | ;
|
---|
| 6079 | return 0;
|
---|
| 6080 | }
|
---|
| 6081 | _ACEOF
|
---|
| 6082 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6084 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6085 | ac_status=$?
|
---|
[10192] | 6086 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6087 | rm -f conftest.er1
|
---|
| 6088 | cat conftest.err >&5
|
---|
| 6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6090 | (exit $ac_status); } &&
|
---|
[10192] | 6091 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6092 | || test ! -s conftest.err'
|
---|
| 6093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6094 | (eval $ac_try) 2>&5
|
---|
| 6095 | ac_status=$?
|
---|
[10192] | 6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6097 | (exit $ac_status); }; } &&
|
---|
| 6098 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6100 | (eval $ac_try) 2>&5
|
---|
| 6101 | ac_status=$?
|
---|
| 6102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6103 | (exit $ac_status); }; }; then
|
---|
| 6104 | ac_cv_func__doprnt=yes
|
---|
[3365] | 6105 | else
|
---|
[8063] | 6106 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6108 |
|
---|
[8063] | 6109 | ac_cv_func__doprnt=no
|
---|
[3365] | 6110 | fi
|
---|
[10192] | 6111 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6112 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6113 | fi
|
---|
[10192] | 6114 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
[8063] | 6115 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6116 | if test $ac_cv_func__doprnt = yes; then
|
---|
[3365] | 6117 |
|
---|
[10192] | 6118 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6119 | #define HAVE_DOPRNT 1
|
---|
[10192] | 6120 | _ACEOF
|
---|
[3365] | 6121 |
|
---|
| 6122 | fi
|
---|
| 6123 |
|
---|
| 6124 | fi
|
---|
[8063] | 6125 | done
|
---|
[3365] | 6126 |
|
---|
[10192] | 6127 |
|
---|
| 6128 |
|
---|
| 6129 |
|
---|
| 6130 |
|
---|
| 6131 |
|
---|
| 6132 |
|
---|
| 6133 |
|
---|
| 6134 |
|
---|
| 6135 |
|
---|
| 6136 |
|
---|
| 6137 |
|
---|
[3365] | 6138 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 6139 | do
|
---|
[10192] | 6140 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6141 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6142 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6143 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6144 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6145 | else
|
---|
[8063] | 6146 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6147 | /* confdefs.h. */
|
---|
| 6148 | _ACEOF
|
---|
| 6149 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6150 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6151 | /* end confdefs.h. */
|
---|
| 6152 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6154 | #define $ac_func innocuous_$ac_func
|
---|
| 6155 |
|
---|
[3365] | 6156 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6157 | which can conflict with char $ac_func (); below.
|
---|
| 6158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6159 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6160 |
|
---|
| 6161 | #ifdef __STDC__
|
---|
| 6162 | # include <limits.h>
|
---|
| 6163 | #else
|
---|
| 6164 | # include <assert.h>
|
---|
| 6165 | #endif
|
---|
| 6166 |
|
---|
| 6167 | #undef $ac_func
|
---|
| 6168 |
|
---|
[3365] | 6169 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6170 | #ifdef __cplusplus
|
---|
| 6171 | extern "C"
|
---|
[10192] | 6172 | {
|
---|
[8063] | 6173 | #endif
|
---|
[3365] | 6174 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6175 | builtin and then its argument prototype would still apply. */
|
---|
| 6176 | char $ac_func ();
|
---|
[3365] | 6177 | /* The GNU C library defines this for functions which it implements
|
---|
| 6178 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6179 | something starting with __ and the normal name is an alias. */
|
---|
| 6180 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6181 | choke me
|
---|
| 6182 | #else
|
---|
[10192] | 6183 | char (*f) () = $ac_func;
|
---|
[3365] | 6184 | #endif
|
---|
[10192] | 6185 | #ifdef __cplusplus
|
---|
| 6186 | }
|
---|
| 6187 | #endif
|
---|
[3365] | 6188 |
|
---|
[10192] | 6189 | int
|
---|
| 6190 | main ()
|
---|
| 6191 | {
|
---|
| 6192 | return f != $ac_func;
|
---|
[8063] | 6193 | ;
|
---|
| 6194 | return 0;
|
---|
| 6195 | }
|
---|
| 6196 | _ACEOF
|
---|
| 6197 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6199 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6200 | ac_status=$?
|
---|
[10192] | 6201 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6202 | rm -f conftest.er1
|
---|
| 6203 | cat conftest.err >&5
|
---|
| 6204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6205 | (exit $ac_status); } &&
|
---|
[10192] | 6206 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6207 | || test ! -s conftest.err'
|
---|
| 6208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6209 | (eval $ac_try) 2>&5
|
---|
| 6210 | ac_status=$?
|
---|
[10192] | 6211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6212 | (exit $ac_status); }; } &&
|
---|
| 6213 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6215 | (eval $ac_try) 2>&5
|
---|
| 6216 | ac_status=$?
|
---|
| 6217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6218 | (exit $ac_status); }; }; then
|
---|
[10192] | 6219 | eval "$as_ac_var=yes"
|
---|
[3365] | 6220 | else
|
---|
[8063] | 6221 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6222 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6223 |
|
---|
| 6224 | eval "$as_ac_var=no"
|
---|
[3365] | 6225 | fi
|
---|
[10192] | 6226 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6227 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6228 | fi
|
---|
[10192] | 6229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6231 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6232 | cat >>confdefs.h <<_ACEOF
|
---|
| 6233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6234 | _ACEOF
|
---|
[8059] | 6235 |
|
---|
[3365] | 6236 | fi
|
---|
| 6237 | done
|
---|
| 6238 |
|
---|
[10192] | 6239 |
|
---|
| 6240 |
|
---|
| 6241 |
|
---|
[3365] | 6242 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6243 | do
|
---|
[10192] | 6244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6245 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6247 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6248 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6249 | else
|
---|
[8063] | 6250 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6251 | /* confdefs.h. */
|
---|
| 6252 | _ACEOF
|
---|
| 6253 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6254 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6255 | /* end confdefs.h. */
|
---|
| 6256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6258 | #define $ac_func innocuous_$ac_func
|
---|
| 6259 |
|
---|
[3365] | 6260 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6261 | which can conflict with char $ac_func (); below.
|
---|
| 6262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6263 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6264 |
|
---|
| 6265 | #ifdef __STDC__
|
---|
| 6266 | # include <limits.h>
|
---|
| 6267 | #else
|
---|
| 6268 | # include <assert.h>
|
---|
| 6269 | #endif
|
---|
| 6270 |
|
---|
| 6271 | #undef $ac_func
|
---|
| 6272 |
|
---|
[3365] | 6273 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6274 | #ifdef __cplusplus
|
---|
| 6275 | extern "C"
|
---|
[10192] | 6276 | {
|
---|
[8063] | 6277 | #endif
|
---|
[3365] | 6278 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6279 | builtin and then its argument prototype would still apply. */
|
---|
| 6280 | char $ac_func ();
|
---|
[3365] | 6281 | /* The GNU C library defines this for functions which it implements
|
---|
| 6282 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6283 | something starting with __ and the normal name is an alias. */
|
---|
| 6284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6285 | choke me
|
---|
| 6286 | #else
|
---|
[10192] | 6287 | char (*f) () = $ac_func;
|
---|
[3365] | 6288 | #endif
|
---|
[10192] | 6289 | #ifdef __cplusplus
|
---|
| 6290 | }
|
---|
| 6291 | #endif
|
---|
[3365] | 6292 |
|
---|
[10192] | 6293 | int
|
---|
| 6294 | main ()
|
---|
| 6295 | {
|
---|
| 6296 | return f != $ac_func;
|
---|
[8063] | 6297 | ;
|
---|
| 6298 | return 0;
|
---|
| 6299 | }
|
---|
| 6300 | _ACEOF
|
---|
| 6301 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6303 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6304 | ac_status=$?
|
---|
[10192] | 6305 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6306 | rm -f conftest.er1
|
---|
| 6307 | cat conftest.err >&5
|
---|
| 6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6309 | (exit $ac_status); } &&
|
---|
[10192] | 6310 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6311 | || test ! -s conftest.err'
|
---|
| 6312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6313 | (eval $ac_try) 2>&5
|
---|
| 6314 | ac_status=$?
|
---|
[10192] | 6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6316 | (exit $ac_status); }; } &&
|
---|
| 6317 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6319 | (eval $ac_try) 2>&5
|
---|
| 6320 | ac_status=$?
|
---|
| 6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6322 | (exit $ac_status); }; }; then
|
---|
[10192] | 6323 | eval "$as_ac_var=yes"
|
---|
[3365] | 6324 | else
|
---|
[8063] | 6325 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6326 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6327 |
|
---|
| 6328 | eval "$as_ac_var=no"
|
---|
[3365] | 6329 | fi
|
---|
[10192] | 6330 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6331 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6332 | fi
|
---|
[10192] | 6333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6334 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6335 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6336 | cat >>confdefs.h <<_ACEOF
|
---|
| 6337 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6338 | _ACEOF
|
---|
[8059] | 6339 |
|
---|
[3365] | 6340 | else
|
---|
[10192] | 6341 | case $LIBOBJS in
|
---|
| 6342 | "$ac_func.$ac_objext" | \
|
---|
| 6343 | *" $ac_func.$ac_objext" | \
|
---|
| 6344 | "$ac_func.$ac_objext "* | \
|
---|
| 6345 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6346 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6347 | esac
|
---|
| 6348 |
|
---|
[3365] | 6349 | fi
|
---|
| 6350 | done
|
---|
| 6351 |
|
---|
[10192] | 6352 |
|
---|
| 6353 |
|
---|
| 6354 |
|
---|
| 6355 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
[8063] | 6356 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6357 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6358 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 6359 | else
|
---|
[8063] | 6360 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6361 | /* confdefs.h. */
|
---|
| 6362 | _ACEOF
|
---|
| 6363 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6364 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6365 | /* end confdefs.h. */
|
---|
| 6366 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6367 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6368 | #define textdomain innocuous_textdomain
|
---|
| 6369 |
|
---|
[8059] | 6370 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6371 | which can conflict with char textdomain (); below.
|
---|
| 6372 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6373 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6374 |
|
---|
| 6375 | #ifdef __STDC__
|
---|
| 6376 | # include <limits.h>
|
---|
| 6377 | #else
|
---|
| 6378 | # include <assert.h>
|
---|
| 6379 | #endif
|
---|
| 6380 |
|
---|
| 6381 | #undef textdomain
|
---|
| 6382 |
|
---|
[8059] | 6383 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6384 | #ifdef __cplusplus
|
---|
| 6385 | extern "C"
|
---|
[10192] | 6386 | {
|
---|
[8063] | 6387 | #endif
|
---|
[8059] | 6388 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6389 | builtin and then its argument prototype would still apply. */
|
---|
[8059] | 6390 | char textdomain ();
|
---|
| 6391 | /* The GNU C library defines this for functions which it implements
|
---|
| 6392 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6393 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 6394 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[8059] | 6395 | choke me
|
---|
| 6396 | #else
|
---|
[10192] | 6397 | char (*f) () = textdomain;
|
---|
[8059] | 6398 | #endif
|
---|
[10192] | 6399 | #ifdef __cplusplus
|
---|
| 6400 | }
|
---|
| 6401 | #endif
|
---|
[8059] | 6402 |
|
---|
[10192] | 6403 | int
|
---|
| 6404 | main ()
|
---|
| 6405 | {
|
---|
| 6406 | return f != textdomain;
|
---|
[8063] | 6407 | ;
|
---|
| 6408 | return 0;
|
---|
| 6409 | }
|
---|
| 6410 | _ACEOF
|
---|
| 6411 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6413 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6414 | ac_status=$?
|
---|
[10192] | 6415 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6416 | rm -f conftest.er1
|
---|
| 6417 | cat conftest.err >&5
|
---|
| 6418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6419 | (exit $ac_status); } &&
|
---|
[10192] | 6420 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6421 | || test ! -s conftest.err'
|
---|
| 6422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6423 | (eval $ac_try) 2>&5
|
---|
| 6424 | ac_status=$?
|
---|
[10192] | 6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6426 | (exit $ac_status); }; } &&
|
---|
| 6427 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6429 | (eval $ac_try) 2>&5
|
---|
| 6430 | ac_status=$?
|
---|
| 6431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6432 | (exit $ac_status); }; }; then
|
---|
| 6433 | ac_cv_func_textdomain=yes
|
---|
[8059] | 6434 | else
|
---|
[8063] | 6435 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6436 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6437 |
|
---|
[8063] | 6438 | ac_cv_func_textdomain=no
|
---|
[8059] | 6439 | fi
|
---|
[10192] | 6440 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6441 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8059] | 6442 | fi
|
---|
[10192] | 6443 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
[8063] | 6444 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6445 | if test $ac_cv_func_textdomain = yes; then
|
---|
[10192] | 6446 | cat >>confdefs.h <<\_ACEOF
|
---|
[8059] | 6447 | #define ENABLE_NLS 1
|
---|
[10192] | 6448 | _ACEOF
|
---|
[8063] | 6449 |
|
---|
[8059] | 6450 | fi
|
---|
| 6451 |
|
---|
[10192] | 6452 |
|
---|
| 6453 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 6454 | # a non-standard Path
|
---|
[10917] | 6455 | # is there a better way to do this??
|
---|
| 6456 | echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
|
---|
| 6457 | echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
|
---|
| 6458 | # set defaults
|
---|
| 6459 | JNIINC=""
|
---|
| 6460 | JNISUFFIX="so"
|
---|
| 6461 | JNIFLAGS="-shared"
|
---|
| 6462 |
|
---|
[10192] | 6463 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[10917] | 6464 | echo "$as_me:$LINENO: result: Darwin" >&5
|
---|
| 6465 | echo "${ECHO_T}Darwin" >&6
|
---|
[10192] | 6466 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 6467 | JNISUFFIX="jnilib"
|
---|
[10917] | 6468 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10192] | 6469 | fi
|
---|
[10917] | 6470 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
| 6471 | echo "$as_me:$LINENO: result: Solaris" >&5
|
---|
| 6472 | echo "${ECHO_T}Solaris" >&6
|
---|
| 6473 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 6474 | fi
|
---|
| 6475 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
| 6476 | echo "$as_me:$LINENO: result: Linux" >&5
|
---|
| 6477 | echo "${ECHO_T}Linux" >&6
|
---|
| 6478 | JNIINC="-I\$(JAVA_HOME)/include/linux "
|
---|
| 6479 | fi
|
---|
[10192] | 6480 |
|
---|
| 6481 |
|
---|
| 6482 |
|
---|
| 6483 |
|
---|
[10917] | 6484 |
|
---|
[3365] | 6485 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6486 | # ---------------------------------------------------------------------------
|
---|
[10192] | 6487 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
[8063] | 6488 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[3365] | 6489 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[10192] | 6490 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6491 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6492 | case $LIBOBJS in
|
---|
| 6493 | "gmalloc.$ac_objext" | \
|
---|
| 6494 | *" gmalloc.$ac_objext" | \
|
---|
| 6495 | "gmalloc.$ac_objext "* | \
|
---|
| 6496 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6497 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6498 | esac
|
---|
| 6499 |
|
---|
| 6500 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6501 | #define HAVE_VALLOC 1
|
---|
[10192] | 6502 | _ACEOF
|
---|
[3365] | 6503 |
|
---|
| 6504 | else
|
---|
[10192] | 6505 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6506 | echo "${ECHO_T}no" >&6
|
---|
| 6507 |
|
---|
| 6508 | for ac_func in valloc
|
---|
[3365] | 6509 | do
|
---|
[10192] | 6510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6511 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6513 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6514 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6515 | else
|
---|
[8063] | 6516 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6517 | /* confdefs.h. */
|
---|
| 6518 | _ACEOF
|
---|
| 6519 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6520 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6521 | /* end confdefs.h. */
|
---|
| 6522 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6523 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6524 | #define $ac_func innocuous_$ac_func
|
---|
| 6525 |
|
---|
[3365] | 6526 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6527 | which can conflict with char $ac_func (); below.
|
---|
| 6528 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6529 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6530 |
|
---|
| 6531 | #ifdef __STDC__
|
---|
| 6532 | # include <limits.h>
|
---|
| 6533 | #else
|
---|
| 6534 | # include <assert.h>
|
---|
| 6535 | #endif
|
---|
| 6536 |
|
---|
| 6537 | #undef $ac_func
|
---|
| 6538 |
|
---|
[3365] | 6539 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6540 | #ifdef __cplusplus
|
---|
| 6541 | extern "C"
|
---|
[10192] | 6542 | {
|
---|
[8063] | 6543 | #endif
|
---|
[3365] | 6544 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6545 | builtin and then its argument prototype would still apply. */
|
---|
| 6546 | char $ac_func ();
|
---|
[3365] | 6547 | /* The GNU C library defines this for functions which it implements
|
---|
| 6548 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6549 | something starting with __ and the normal name is an alias. */
|
---|
| 6550 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6551 | choke me
|
---|
| 6552 | #else
|
---|
[10192] | 6553 | char (*f) () = $ac_func;
|
---|
[3365] | 6554 | #endif
|
---|
[10192] | 6555 | #ifdef __cplusplus
|
---|
| 6556 | }
|
---|
| 6557 | #endif
|
---|
[3365] | 6558 |
|
---|
[10192] | 6559 | int
|
---|
| 6560 | main ()
|
---|
| 6561 | {
|
---|
| 6562 | return f != $ac_func;
|
---|
[8063] | 6563 | ;
|
---|
| 6564 | return 0;
|
---|
| 6565 | }
|
---|
| 6566 | _ACEOF
|
---|
| 6567 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6569 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6570 | ac_status=$?
|
---|
[10192] | 6571 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6572 | rm -f conftest.er1
|
---|
| 6573 | cat conftest.err >&5
|
---|
| 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6575 | (exit $ac_status); } &&
|
---|
[10192] | 6576 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6577 | || test ! -s conftest.err'
|
---|
| 6578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6579 | (eval $ac_try) 2>&5
|
---|
| 6580 | ac_status=$?
|
---|
[10192] | 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6582 | (exit $ac_status); }; } &&
|
---|
| 6583 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6585 | (eval $ac_try) 2>&5
|
---|
| 6586 | ac_status=$?
|
---|
| 6587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6588 | (exit $ac_status); }; }; then
|
---|
[10192] | 6589 | eval "$as_ac_var=yes"
|
---|
[3365] | 6590 | else
|
---|
[8063] | 6591 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6592 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6593 |
|
---|
| 6594 | eval "$as_ac_var=no"
|
---|
[3365] | 6595 | fi
|
---|
[10192] | 6596 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6597 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6598 | fi
|
---|
[10192] | 6599 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6600 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6601 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6602 | cat >>confdefs.h <<_ACEOF
|
---|
| 6603 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6604 | _ACEOF
|
---|
[8059] | 6605 |
|
---|
[3365] | 6606 | fi
|
---|
| 6607 | done
|
---|
| 6608 |
|
---|
| 6609 | fi
|
---|
| 6610 |
|
---|
[10192] | 6611 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
[8063] | 6612 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6613 |
|
---|
[3365] | 6614 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6615 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6616 | withval="$with_dmalloc"
|
---|
| 6617 | if test "$withval" = yes; then
|
---|
[10192] | 6618 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6619 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6620 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6621 | #define WITH_DMALLOC 1
|
---|
[10192] | 6622 | _ACEOF
|
---|
[3365] | 6623 |
|
---|
| 6624 | LIBS="$LIBS -ldmalloc"
|
---|
| 6625 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6626 | else
|
---|
[10192] | 6627 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6628 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 6629 | fi
|
---|
| 6630 | else
|
---|
[10192] | 6631 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6632 | echo "${ECHO_T}no" >&6
|
---|
| 6633 | fi;
|
---|
[3365] | 6634 |
|
---|
[10192] | 6635 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
[8063] | 6636 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[3365] | 6637 |
|
---|
| 6638 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6639 | if test "${with_regex+set}" = set; then
|
---|
| 6640 | withval="$with_regex"
|
---|
| 6641 | if test "$withval" = yes; then
|
---|
| 6642 | ac_with_regex=1
|
---|
[10192] | 6643 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
[8063] | 6644 | echo "${ECHO_T}regex" >&6
|
---|
[10192] | 6645 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6646 | #define WITH_REGEX 1
|
---|
[10192] | 6647 | _ACEOF
|
---|
[3365] | 6648 |
|
---|
[10848] | 6649 | case $LIBOBJS in
|
---|
| 6650 | "regex.$ac_objext" | \
|
---|
| 6651 | *" regex.$ac_objext" | \
|
---|
| 6652 | "regex.$ac_objext "* | \
|
---|
| 6653 | *" regex.$ac_objext "* ) ;;
|
---|
| 6654 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6655 | esac
|
---|
| 6656 |
|
---|
[3365] | 6657 | fi
|
---|
[8063] | 6658 | fi;
|
---|
[3365] | 6659 | if test -z "$ac_with_regex"; then
|
---|
[10192] | 6660 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
[8063] | 6661 | echo "${ECHO_T}rx" >&6
|
---|
[10192] | 6662 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
[8063] | 6663 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6664 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6665 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6666 | else
|
---|
[8063] | 6667 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6668 | /* confdefs.h. */
|
---|
| 6669 | _ACEOF
|
---|
| 6670 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6671 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6672 | /* end confdefs.h. */
|
---|
| 6673 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6674 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6675 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6676 |
|
---|
[3365] | 6677 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6678 | which can conflict with char re_rx_search (); below.
|
---|
| 6679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6680 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6681 |
|
---|
| 6682 | #ifdef __STDC__
|
---|
| 6683 | # include <limits.h>
|
---|
| 6684 | #else
|
---|
| 6685 | # include <assert.h>
|
---|
| 6686 | #endif
|
---|
| 6687 |
|
---|
| 6688 | #undef re_rx_search
|
---|
| 6689 |
|
---|
[3365] | 6690 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6691 | #ifdef __cplusplus
|
---|
| 6692 | extern "C"
|
---|
[10192] | 6693 | {
|
---|
[8063] | 6694 | #endif
|
---|
[3365] | 6695 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6696 | builtin and then its argument prototype would still apply. */
|
---|
| 6697 | char re_rx_search ();
|
---|
[3365] | 6698 | /* The GNU C library defines this for functions which it implements
|
---|
| 6699 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6700 | something starting with __ and the normal name is an alias. */
|
---|
| 6701 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6702 | choke me
|
---|
| 6703 | #else
|
---|
[10192] | 6704 | char (*f) () = re_rx_search;
|
---|
[3365] | 6705 | #endif
|
---|
[10192] | 6706 | #ifdef __cplusplus
|
---|
| 6707 | }
|
---|
| 6708 | #endif
|
---|
[3365] | 6709 |
|
---|
[10192] | 6710 | int
|
---|
| 6711 | main ()
|
---|
| 6712 | {
|
---|
| 6713 | return f != re_rx_search;
|
---|
[8063] | 6714 | ;
|
---|
| 6715 | return 0;
|
---|
| 6716 | }
|
---|
| 6717 | _ACEOF
|
---|
| 6718 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6719 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6720 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6721 | ac_status=$?
|
---|
[10192] | 6722 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6723 | rm -f conftest.er1
|
---|
| 6724 | cat conftest.err >&5
|
---|
| 6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6726 | (exit $ac_status); } &&
|
---|
[10192] | 6727 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6728 | || test ! -s conftest.err'
|
---|
| 6729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6730 | (eval $ac_try) 2>&5
|
---|
| 6731 | ac_status=$?
|
---|
[10192] | 6732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6733 | (exit $ac_status); }; } &&
|
---|
| 6734 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6736 | (eval $ac_try) 2>&5
|
---|
| 6737 | ac_status=$?
|
---|
| 6738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6739 | (exit $ac_status); }; }; then
|
---|
| 6740 | ac_cv_func_re_rx_search=yes
|
---|
[3365] | 6741 | else
|
---|
[8063] | 6742 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6743 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6744 |
|
---|
[8063] | 6745 | ac_cv_func_re_rx_search=no
|
---|
[3365] | 6746 | fi
|
---|
[10192] | 6747 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6748 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6749 | fi
|
---|
[10192] | 6750 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
[8063] | 6751 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6752 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[3365] | 6753 | :
|
---|
| 6754 | else
|
---|
[10192] | 6755 | echo "$as_me:$LINENO: checking for unsigned char *" >&5
|
---|
[8063] | 6756 | echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
|
---|
| 6757 | if test "${ac_cv_type_unsigned_char_p+set}" = set; then
|
---|
| 6758 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6759 | else
|
---|
[8063] | 6760 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6761 | /* confdefs.h. */
|
---|
| 6762 | _ACEOF
|
---|
| 6763 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6764 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6765 | /* end confdefs.h. */
|
---|
[8063] | 6766 | $ac_includes_default
|
---|
| 6767 | int
|
---|
| 6768 | main ()
|
---|
| 6769 | {
|
---|
| 6770 | if ((unsigned char * *) 0)
|
---|
| 6771 | return 0;
|
---|
| 6772 | if (sizeof (unsigned char *))
|
---|
| 6773 | return 0;
|
---|
| 6774 | ;
|
---|
| 6775 | return 0;
|
---|
| 6776 | }
|
---|
| 6777 | _ACEOF
|
---|
| 6778 | rm -f conftest.$ac_objext
|
---|
[10192] | 6779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6780 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6781 | ac_status=$?
|
---|
[10192] | 6782 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6783 | rm -f conftest.er1
|
---|
| 6784 | cat conftest.err >&5
|
---|
| 6785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6786 | (exit $ac_status); } &&
|
---|
[10192] | 6787 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6788 | || test ! -s conftest.err'
|
---|
| 6789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6790 | (eval $ac_try) 2>&5
|
---|
| 6791 | ac_status=$?
|
---|
[10192] | 6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6793 | (exit $ac_status); }; } &&
|
---|
| 6794 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6796 | (eval $ac_try) 2>&5
|
---|
| 6797 | ac_status=$?
|
---|
| 6798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6799 | (exit $ac_status); }; }; then
|
---|
| 6800 | ac_cv_type_unsigned_char_p=yes
|
---|
| 6801 | else
|
---|
| 6802 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6803 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6804 |
|
---|
[8063] | 6805 | ac_cv_type_unsigned_char_p=no
|
---|
| 6806 | fi
|
---|
[10192] | 6807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6808 | fi
|
---|
[10192] | 6809 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
|
---|
[8063] | 6810 | echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
|
---|
| 6811 |
|
---|
[10192] | 6812 | echo "$as_me:$LINENO: checking size of unsigned char *" >&5
|
---|
[8063] | 6813 | echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
|
---|
| 6814 | if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
|
---|
| 6815 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6816 | else
|
---|
| 6817 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
[10192] | 6818 | # The cast to unsigned long works around a bug in the HP C Compiler
|
---|
| 6819 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
| 6820 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
| 6821 | # This bug is HP SR number 8606223364.
|
---|
[3365] | 6822 | if test "$cross_compiling" = yes; then
|
---|
[8063] | 6823 | # Depending upon the size, compute the lo and hi bounds.
|
---|
| 6824 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6825 | /* confdefs.h. */
|
---|
| 6826 | _ACEOF
|
---|
| 6827 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6828 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6829 | /* end confdefs.h. */
|
---|
[8063] | 6830 | $ac_includes_default
|
---|
| 6831 | int
|
---|
| 6832 | main ()
|
---|
| 6833 | {
|
---|
[10192] | 6834 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= 0)];
|
---|
| 6835 | test_array [0] = 0
|
---|
| 6836 |
|
---|
[8063] | 6837 | ;
|
---|
| 6838 | return 0;
|
---|
| 6839 | }
|
---|
| 6840 | _ACEOF
|
---|
| 6841 | rm -f conftest.$ac_objext
|
---|
[10192] | 6842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6843 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6844 | ac_status=$?
|
---|
[10192] | 6845 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6846 | rm -f conftest.er1
|
---|
| 6847 | cat conftest.err >&5
|
---|
| 6848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6849 | (exit $ac_status); } &&
|
---|
[10192] | 6850 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6851 | || test ! -s conftest.err'
|
---|
| 6852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6853 | (eval $ac_try) 2>&5
|
---|
| 6854 | ac_status=$?
|
---|
[10192] | 6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6856 | (exit $ac_status); }; } &&
|
---|
| 6857 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6859 | (eval $ac_try) 2>&5
|
---|
| 6860 | ac_status=$?
|
---|
| 6861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6862 | (exit $ac_status); }; }; then
|
---|
| 6863 | ac_lo=0 ac_mid=0
|
---|
| 6864 | while :; do
|
---|
| 6865 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6866 | /* confdefs.h. */
|
---|
| 6867 | _ACEOF
|
---|
| 6868 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6869 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6870 | /* end confdefs.h. */
|
---|
[8063] | 6871 | $ac_includes_default
|
---|
| 6872 | int
|
---|
| 6873 | main ()
|
---|
| 6874 | {
|
---|
[10192] | 6875 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 6876 | test_array [0] = 0
|
---|
| 6877 |
|
---|
[8063] | 6878 | ;
|
---|
| 6879 | return 0;
|
---|
| 6880 | }
|
---|
| 6881 | _ACEOF
|
---|
| 6882 | rm -f conftest.$ac_objext
|
---|
[10192] | 6883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6884 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6885 | ac_status=$?
|
---|
[10192] | 6886 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6887 | rm -f conftest.er1
|
---|
| 6888 | cat conftest.err >&5
|
---|
| 6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6890 | (exit $ac_status); } &&
|
---|
[10192] | 6891 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6892 | || test ! -s conftest.err'
|
---|
| 6893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6894 | (eval $ac_try) 2>&5
|
---|
| 6895 | ac_status=$?
|
---|
[10192] | 6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6897 | (exit $ac_status); }; } &&
|
---|
| 6898 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6900 | (eval $ac_try) 2>&5
|
---|
| 6901 | ac_status=$?
|
---|
| 6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6903 | (exit $ac_status); }; }; then
|
---|
| 6904 | ac_hi=$ac_mid; break
|
---|
[3365] | 6905 | else
|
---|
[8063] | 6906 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6907 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6908 |
|
---|
| 6909 | ac_lo=`expr $ac_mid + 1`
|
---|
| 6910 | if test $ac_lo -le $ac_mid; then
|
---|
| 6911 | ac_lo= ac_hi=
|
---|
| 6912 | break
|
---|
| 6913 | fi
|
---|
| 6914 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
[8063] | 6915 | fi
|
---|
[10192] | 6916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6917 | done
|
---|
| 6918 | else
|
---|
| 6919 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6920 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6921 |
|
---|
| 6922 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6923 | /* confdefs.h. */
|
---|
| 6924 | _ACEOF
|
---|
| 6925 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6926 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6927 | /* end confdefs.h. */
|
---|
| 6928 | $ac_includes_default
|
---|
| 6929 | int
|
---|
| 6930 | main ()
|
---|
| 6931 | {
|
---|
| 6932 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) < 0)];
|
---|
| 6933 | test_array [0] = 0
|
---|
| 6934 |
|
---|
| 6935 | ;
|
---|
| 6936 | return 0;
|
---|
| 6937 | }
|
---|
| 6938 | _ACEOF
|
---|
| 6939 | rm -f conftest.$ac_objext
|
---|
| 6940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6941 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6942 | ac_status=$?
|
---|
| 6943 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6944 | rm -f conftest.er1
|
---|
| 6945 | cat conftest.err >&5
|
---|
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6947 | (exit $ac_status); } &&
|
---|
| 6948 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6949 | || test ! -s conftest.err'
|
---|
| 6950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6951 | (eval $ac_try) 2>&5
|
---|
| 6952 | ac_status=$?
|
---|
| 6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6954 | (exit $ac_status); }; } &&
|
---|
| 6955 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6957 | (eval $ac_try) 2>&5
|
---|
| 6958 | ac_status=$?
|
---|
| 6959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6960 | (exit $ac_status); }; }; then
|
---|
| 6961 | ac_hi=-1 ac_mid=-1
|
---|
[8063] | 6962 | while :; do
|
---|
| 6963 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6964 | /* confdefs.h. */
|
---|
| 6965 | _ACEOF
|
---|
| 6966 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6967 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6968 | /* end confdefs.h. */
|
---|
[8063] | 6969 | $ac_includes_default
|
---|
| 6970 | int
|
---|
| 6971 | main ()
|
---|
[3365] | 6972 | {
|
---|
[10192] | 6973 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= $ac_mid)];
|
---|
| 6974 | test_array [0] = 0
|
---|
| 6975 |
|
---|
[8063] | 6976 | ;
|
---|
| 6977 | return 0;
|
---|
[3365] | 6978 | }
|
---|
[8063] | 6979 | _ACEOF
|
---|
| 6980 | rm -f conftest.$ac_objext
|
---|
[10192] | 6981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6982 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6983 | ac_status=$?
|
---|
[10192] | 6984 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6985 | rm -f conftest.er1
|
---|
| 6986 | cat conftest.err >&5
|
---|
| 6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6988 | (exit $ac_status); } &&
|
---|
[10192] | 6989 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6990 | || test ! -s conftest.err'
|
---|
| 6991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6992 | (eval $ac_try) 2>&5
|
---|
| 6993 | ac_status=$?
|
---|
[10192] | 6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6995 | (exit $ac_status); }; } &&
|
---|
| 6996 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6998 | (eval $ac_try) 2>&5
|
---|
| 6999 | ac_status=$?
|
---|
| 7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7001 | (exit $ac_status); }; }; then
|
---|
| 7002 | ac_lo=$ac_mid; break
|
---|
[3365] | 7003 | else
|
---|
[8063] | 7004 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7005 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7006 |
|
---|
| 7007 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
| 7008 | if test $ac_mid -le $ac_hi; then
|
---|
| 7009 | ac_lo= ac_hi=
|
---|
| 7010 | break
|
---|
| 7011 | fi
|
---|
| 7012 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
[8063] | 7013 | fi
|
---|
[10192] | 7014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 7015 | done
|
---|
[10192] | 7016 | else
|
---|
| 7017 | echo "$as_me: failed program was:" >&5
|
---|
| 7018 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7019 |
|
---|
| 7020 | ac_lo= ac_hi=
|
---|
[8063] | 7021 | fi
|
---|
[10192] | 7022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7023 | fi
|
---|
| 7024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 7025 | # Binary search between lo and hi bounds.
|
---|
| 7026 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
| 7027 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
| 7028 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7029 | /* confdefs.h. */
|
---|
| 7030 | _ACEOF
|
---|
| 7031 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7032 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7033 | /* end confdefs.h. */
|
---|
[8063] | 7034 | $ac_includes_default
|
---|
| 7035 | int
|
---|
| 7036 | main ()
|
---|
| 7037 | {
|
---|
[10192] | 7038 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 7039 | test_array [0] = 0
|
---|
| 7040 |
|
---|
[8063] | 7041 | ;
|
---|
| 7042 | return 0;
|
---|
| 7043 | }
|
---|
| 7044 | _ACEOF
|
---|
| 7045 | rm -f conftest.$ac_objext
|
---|
[10192] | 7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7047 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 7048 | ac_status=$?
|
---|
[10192] | 7049 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7050 | rm -f conftest.er1
|
---|
| 7051 | cat conftest.err >&5
|
---|
| 7052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7053 | (exit $ac_status); } &&
|
---|
[10192] | 7054 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7055 | || test ! -s conftest.err'
|
---|
| 7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7057 | (eval $ac_try) 2>&5
|
---|
| 7058 | ac_status=$?
|
---|
[10192] | 7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7060 | (exit $ac_status); }; } &&
|
---|
| 7061 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7063 | (eval $ac_try) 2>&5
|
---|
| 7064 | ac_status=$?
|
---|
| 7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7066 | (exit $ac_status); }; }; then
|
---|
| 7067 | ac_hi=$ac_mid
|
---|
| 7068 | else
|
---|
| 7069 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7070 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7071 |
|
---|
| 7072 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
[8063] | 7073 | fi
|
---|
[10192] | 7074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 7075 | done
|
---|
[10192] | 7076 | case $ac_lo in
|
---|
| 7077 | ?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
|
---|
| 7078 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7079 | See \`config.log' for more details." >&5
|
---|
| 7080 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7081 | See \`config.log' for more details." >&2;}
|
---|
| 7082 | { (exit 1); exit 1; }; } ;;
|
---|
| 7083 | esac
|
---|
[8063] | 7084 | else
|
---|
| 7085 | if test "$cross_compiling" = yes; then
|
---|
[10192] | 7086 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
---|
| 7087 | See \`config.log' for more details." >&5
|
---|
| 7088 | echo "$as_me: error: cannot run test program while cross compiling
|
---|
| 7089 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 7090 | { (exit 1); exit 1; }; }
|
---|
| 7091 | else
|
---|
| 7092 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7093 | /* confdefs.h. */
|
---|
| 7094 | _ACEOF
|
---|
| 7095 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7096 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7097 | /* end confdefs.h. */
|
---|
[8063] | 7098 | $ac_includes_default
|
---|
[10192] | 7099 | long longval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 7100 | unsigned long ulongval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 7101 | #include <stdio.h>
|
---|
| 7102 | #include <stdlib.h>
|
---|
[8063] | 7103 | int
|
---|
| 7104 | main ()
|
---|
| 7105 | {
|
---|
[10192] | 7106 |
|
---|
| 7107 | FILE *f = fopen ("conftest.val", "w");
|
---|
| 7108 | if (! f)
|
---|
| 7109 | exit (1);
|
---|
| 7110 | if (((long) (sizeof (unsigned char *))) < 0)
|
---|
| 7111 | {
|
---|
| 7112 | long i = longval ();
|
---|
| 7113 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 7114 | exit (1);
|
---|
| 7115 | fprintf (f, "%ld\n", i);
|
---|
| 7116 | }
|
---|
| 7117 | else
|
---|
| 7118 | {
|
---|
| 7119 | unsigned long i = ulongval ();
|
---|
| 7120 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 7121 | exit (1);
|
---|
| 7122 | fprintf (f, "%lu\n", i);
|
---|
| 7123 | }
|
---|
| 7124 | exit (ferror (f) || fclose (f) != 0);
|
---|
| 7125 |
|
---|
[8063] | 7126 | ;
|
---|
| 7127 | return 0;
|
---|
| 7128 | }
|
---|
| 7129 | _ACEOF
|
---|
| 7130 | rm -f conftest$ac_exeext
|
---|
[10192] | 7131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 7132 | (eval $ac_link) 2>&5
|
---|
| 7133 | ac_status=$?
|
---|
[10192] | 7134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7135 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 7136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7137 | (eval $ac_try) 2>&5
|
---|
| 7138 | ac_status=$?
|
---|
[10192] | 7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7140 | (exit $ac_status); }; }; then
|
---|
| 7141 | ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
|
---|
| 7142 | else
|
---|
| 7143 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7144 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7145 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7146 |
|
---|
| 7147 | ( exit $ac_status )
|
---|
| 7148 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7149 | See \`config.log' for more details." >&5
|
---|
| 7150 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7151 | See \`config.log' for more details." >&2;}
|
---|
| 7152 | { (exit 1); exit 1; }; }
|
---|
[8063] | 7153 | fi
|
---|
[10192] | 7154 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 7155 | fi
|
---|
| 7156 | fi
|
---|
| 7157 | rm -f conftest.val
|
---|
| 7158 | else
|
---|
[8059] | 7159 | ac_cv_sizeof_unsigned_char_p=0
|
---|
[3365] | 7160 | fi
|
---|
| 7161 | fi
|
---|
[10192] | 7162 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
[8063] | 7163 | echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
|
---|
[10192] | 7164 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 7165 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
[10192] | 7166 | _ACEOF
|
---|
[3365] | 7167 |
|
---|
[10192] | 7168 |
|
---|
[3365] | 7169 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
| 7170 | then
|
---|
[10192] | 7171 | { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 7172 | find a local rx library and the one included with this
|
---|
| 7173 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
| 7174 | echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
| 7175 | find a local rx library and the one included with this
|
---|
| 7176 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
[10848] | 7177 | case $LIBOBJS in
|
---|
| 7178 | "regex.$ac_objext" | \
|
---|
| 7179 | *" regex.$ac_objext" | \
|
---|
| 7180 | "regex.$ac_objext "* | \
|
---|
| 7181 | *" regex.$ac_objext "* ) ;;
|
---|
| 7182 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 7183 | esac
|
---|
| 7184 |
|
---|
[3365] | 7185 | else
|
---|
[10848] | 7186 | case $LIBOBJS in
|
---|
| 7187 | "rx.$ac_objext" | \
|
---|
| 7188 | *" rx.$ac_objext" | \
|
---|
| 7189 | "rx.$ac_objext "* | \
|
---|
| 7190 | *" rx.$ac_objext "* ) ;;
|
---|
| 7191 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 7192 | esac
|
---|
| 7193 |
|
---|
[3365] | 7194 | fi
|
---|
[8063] | 7195 |
|
---|
[3365] | 7196 | fi
|
---|
| 7197 |
|
---|
| 7198 | fi
|
---|
| 7199 |
|
---|
[10192] | 7200 | echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
|
---|
[8063] | 7201 | echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
|
---|
| 7202 |
|
---|
| 7203 | # Check whether --with-gnu_readline or --without-gnu_readline was given.
|
---|
[3365] | 7204 | if test "${with_gnu_readline+set}" = set; then
|
---|
| 7205 | withval="$with_gnu_readline"
|
---|
| 7206 | if test "$withval" = yes; then
|
---|
[10192] | 7207 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 7208 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 7209 | ac_with_gnu_readline=1
|
---|
| 7210 | else
|
---|
[10192] | 7211 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7212 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 7213 | fi
|
---|
| 7214 | else
|
---|
[10192] | 7215 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7216 | echo "${ECHO_T}no" >&6
|
---|
| 7217 | fi;
|
---|
[3365] | 7218 |
|
---|
| 7219 | if test -n "$ac_with_gnu_readline"; then
|
---|
[10192] | 7220 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7221 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
[8063] | 7222 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7223 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7224 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 7225 | fi
|
---|
| 7226 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
| 7227 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[3365] | 7228 | else
|
---|
[10192] | 7229 | # Is the header compilable?
|
---|
| 7230 | echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
|
---|
| 7231 | echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
|
---|
| 7232 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7233 | /* confdefs.h. */
|
---|
| 7234 | _ACEOF
|
---|
| 7235 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7236 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7237 | /* end confdefs.h. */
|
---|
| 7238 | $ac_includes_default
|
---|
[3365] | 7239 | #include <readline/readline.h>
|
---|
[8063] | 7240 | _ACEOF
|
---|
[10192] | 7241 | rm -f conftest.$ac_objext
|
---|
| 7242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7243 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7244 | ac_status=$?
|
---|
| 7245 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7246 | rm -f conftest.er1
|
---|
| 7247 | cat conftest.err >&5
|
---|
| 7248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7249 | (exit $ac_status); } &&
|
---|
| 7250 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7251 | || test ! -s conftest.err'
|
---|
| 7252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7253 | (eval $ac_try) 2>&5
|
---|
| 7254 | ac_status=$?
|
---|
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7256 | (exit $ac_status); }; } &&
|
---|
| 7257 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7259 | (eval $ac_try) 2>&5
|
---|
| 7260 | ac_status=$?
|
---|
| 7261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7262 | (exit $ac_status); }; }; then
|
---|
| 7263 | ac_header_compiler=yes
|
---|
| 7264 | else
|
---|
| 7265 | echo "$as_me: failed program was:" >&5
|
---|
| 7266 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7267 |
|
---|
| 7268 | ac_header_compiler=no
|
---|
| 7269 | fi
|
---|
| 7270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7271 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 7272 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 7273 |
|
---|
| 7274 | # Is the header present?
|
---|
| 7275 | echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
|
---|
| 7276 | echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
|
---|
| 7277 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7278 | /* confdefs.h. */
|
---|
| 7279 | _ACEOF
|
---|
| 7280 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7281 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7282 | /* end confdefs.h. */
|
---|
| 7283 | #include <readline/readline.h>
|
---|
| 7284 | _ACEOF
|
---|
| 7285 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 7286 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 7287 | ac_status=$?
|
---|
[10192] | 7288 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 7289 | rm -f conftest.er1
|
---|
| 7290 | cat conftest.err >&5
|
---|
[10192] | 7291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7292 | (exit $ac_status); } >/dev/null; then
|
---|
| 7293 | if test -s conftest.err; then
|
---|
| 7294 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 7295 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 7296 | else
|
---|
| 7297 | ac_cpp_err=
|
---|
| 7298 | fi
|
---|
[3365] | 7299 | else
|
---|
[8063] | 7300 | ac_cpp_err=yes
|
---|
| 7301 | fi
|
---|
| 7302 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 7303 | ac_header_preproc=yes
|
---|
[8063] | 7304 | else
|
---|
| 7305 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7306 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7307 |
|
---|
| 7308 | ac_header_preproc=no
|
---|
[3365] | 7309 | fi
|
---|
[8063] | 7310 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 7311 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 7312 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 7313 |
|
---|
| 7314 | # So? What about this header?
|
---|
| 7315 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 7316 | yes:no: )
|
---|
| 7317 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 7318 | echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 7319 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
|
---|
| 7320 | echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
|
---|
| 7321 | ac_header_preproc=yes
|
---|
| 7322 | ;;
|
---|
| 7323 | no:yes:* )
|
---|
| 7324 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
|
---|
| 7325 | echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
|
---|
| 7326 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
|
---|
| 7327 | echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
|
---|
| 7328 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
|
---|
| 7329 | echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
|
---|
| 7330 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 7331 | echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 7332 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
|
---|
| 7333 | echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 7334 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
|
---|
| 7335 | echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 7336 | (
|
---|
| 7337 | cat <<\_ASBOX
|
---|
| 7338 | ## ------------------------------------------ ##
|
---|
| 7339 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 7340 | ## ------------------------------------------ ##
|
---|
| 7341 | _ASBOX
|
---|
| 7342 | ) |
|
---|
| 7343 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 7344 | ;;
|
---|
| 7345 | esac
|
---|
| 7346 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
| 7347 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7348 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7349 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7350 | else
|
---|
| 7351 | ac_cv_header_readline_readline_h=$ac_header_preproc
|
---|
[3365] | 7352 | fi
|
---|
[10192] | 7353 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
[8063] | 7354 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[10192] | 7355 |
|
---|
| 7356 | fi
|
---|
[8063] | 7357 | if test $ac_cv_header_readline_readline_h = yes; then
|
---|
[3365] | 7358 | ac_mg_readline_header_found=1
|
---|
| 7359 | else
|
---|
[10192] | 7360 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 7361 | GNU readline support" >&5
|
---|
| 7362 | echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
| 7363 | GNU readline support" >&2;}
|
---|
[3365] | 7364 | fi
|
---|
| 7365 |
|
---|
[10192] | 7366 |
|
---|
[3365] | 7367 | if test -n "$ac_mg_readline_header_found"; then
|
---|
| 7368 | # first check whether we can find the readline library itself
|
---|
[10192] | 7369 | echo "$as_me:$LINENO: checking for main in -lreadline" >&5
|
---|
[8063] | 7370 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
|
---|
| 7371 | if test "${ac_cv_lib_readline_main+set}" = set; then
|
---|
| 7372 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7373 | else
|
---|
[8063] | 7374 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7375 | LIBS="-lreadline $LIBS"
|
---|
[8063] | 7376 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7377 | /* confdefs.h. */
|
---|
| 7378 | _ACEOF
|
---|
| 7379 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7380 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7381 | /* end confdefs.h. */
|
---|
[3365] | 7382 |
|
---|
[10192] | 7383 |
|
---|
[8063] | 7384 | int
|
---|
| 7385 | main ()
|
---|
| 7386 | {
|
---|
| 7387 | main ();
|
---|
| 7388 | ;
|
---|
| 7389 | return 0;
|
---|
| 7390 | }
|
---|
| 7391 | _ACEOF
|
---|
| 7392 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7394 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7395 | ac_status=$?
|
---|
[10192] | 7396 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7397 | rm -f conftest.er1
|
---|
| 7398 | cat conftest.err >&5
|
---|
| 7399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7400 | (exit $ac_status); } &&
|
---|
[10192] | 7401 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7402 | || test ! -s conftest.err'
|
---|
| 7403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7404 | (eval $ac_try) 2>&5
|
---|
| 7405 | ac_status=$?
|
---|
[10192] | 7406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7407 | (exit $ac_status); }; } &&
|
---|
| 7408 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7410 | (eval $ac_try) 2>&5
|
---|
| 7411 | ac_status=$?
|
---|
| 7412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7413 | (exit $ac_status); }; }; then
|
---|
| 7414 | ac_cv_lib_readline_main=yes
|
---|
[3365] | 7415 | else
|
---|
[8063] | 7416 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7417 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7418 |
|
---|
[8063] | 7419 | ac_cv_lib_readline_main=no
|
---|
[3365] | 7420 | fi
|
---|
[10192] | 7421 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7422 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7423 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7424 | fi
|
---|
[10192] | 7425 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
|
---|
[8063] | 7426 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
|
---|
| 7427 | if test $ac_cv_lib_readline_main = yes; then
|
---|
[3365] | 7428 | ac_mg_readline_lib_found=1
|
---|
[10192] | 7429 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7430 | #define WITH_GNU_READLINE 1
|
---|
[10192] | 7431 | _ACEOF
|
---|
[3365] | 7432 |
|
---|
| 7433 | LIBS="$LIBS -lreadline"
|
---|
| 7434 | else
|
---|
[10192] | 7435 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 7436 | GNU readline support" >&5
|
---|
| 7437 | echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
| 7438 | GNU readline support" >&2;}
|
---|
[3365] | 7439 | fi
|
---|
| 7440 |
|
---|
| 7441 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
[8063] | 7442 | # on some systems, readline needs curses. It is difficult to
|
---|
[3365] | 7443 | # determine whether this is necessary on the current system,
|
---|
| 7444 | # since other undefined symbols can be turned up by an
|
---|
| 7445 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
| 7446 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
| 7447 | # we just bung it on and hope for the best.
|
---|
[10192] | 7448 | echo "$as_me:$LINENO: checking for main in -lcurses" >&5
|
---|
[8063] | 7449 | echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
|
---|
| 7450 | if test "${ac_cv_lib_curses_main+set}" = set; then
|
---|
| 7451 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7452 | else
|
---|
[8063] | 7453 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7454 | LIBS="-lcurses $LIBS"
|
---|
[8063] | 7455 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7456 | /* confdefs.h. */
|
---|
| 7457 | _ACEOF
|
---|
| 7458 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7459 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7460 | /* end confdefs.h. */
|
---|
[3365] | 7461 |
|
---|
[10192] | 7462 |
|
---|
[8063] | 7463 | int
|
---|
| 7464 | main ()
|
---|
| 7465 | {
|
---|
| 7466 | main ();
|
---|
| 7467 | ;
|
---|
| 7468 | return 0;
|
---|
| 7469 | }
|
---|
| 7470 | _ACEOF
|
---|
| 7471 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7472 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7473 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7474 | ac_status=$?
|
---|
[10192] | 7475 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7476 | rm -f conftest.er1
|
---|
| 7477 | cat conftest.err >&5
|
---|
| 7478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7479 | (exit $ac_status); } &&
|
---|
[10192] | 7480 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7481 | || test ! -s conftest.err'
|
---|
| 7482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7483 | (eval $ac_try) 2>&5
|
---|
| 7484 | ac_status=$?
|
---|
[10192] | 7485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7486 | (exit $ac_status); }; } &&
|
---|
| 7487 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7489 | (eval $ac_try) 2>&5
|
---|
| 7490 | ac_status=$?
|
---|
| 7491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7492 | (exit $ac_status); }; }; then
|
---|
| 7493 | ac_cv_lib_curses_main=yes
|
---|
[3365] | 7494 | else
|
---|
[8063] | 7495 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7496 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7497 |
|
---|
[8063] | 7498 | ac_cv_lib_curses_main=no
|
---|
[3365] | 7499 | fi
|
---|
[10192] | 7500 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7501 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7502 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7503 | fi
|
---|
[10192] | 7504 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
|
---|
[8063] | 7505 | echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
|
---|
| 7506 | if test $ac_cv_lib_curses_main = yes; then
|
---|
[3365] | 7507 | LIBS="$LIBS -lcurses"
|
---|
| 7508 | fi
|
---|
| 7509 |
|
---|
| 7510 | fi
|
---|
| 7511 | fi
|
---|
| 7512 | fi
|
---|
| 7513 |
|
---|
[10192] | 7514 |
|
---|
[10848] | 7515 | # text for endianness
|
---|
| 7516 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7517 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7518 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7519 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7520 | else
|
---|
| 7521 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7522 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7523 | /* confdefs.h. */
|
---|
| 7524 | _ACEOF
|
---|
| 7525 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7526 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7527 | /* end confdefs.h. */
|
---|
| 7528 | #include <sys/types.h>
|
---|
| 7529 | #include <sys/param.h>
|
---|
| 7530 |
|
---|
| 7531 | int
|
---|
| 7532 | main ()
|
---|
| 7533 | {
|
---|
| 7534 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7535 | bogus endian macros
|
---|
| 7536 | #endif
|
---|
| 7537 |
|
---|
| 7538 | ;
|
---|
| 7539 | return 0;
|
---|
| 7540 | }
|
---|
| 7541 | _ACEOF
|
---|
| 7542 | rm -f conftest.$ac_objext
|
---|
| 7543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7544 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7545 | ac_status=$?
|
---|
| 7546 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7547 | rm -f conftest.er1
|
---|
| 7548 | cat conftest.err >&5
|
---|
| 7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7550 | (exit $ac_status); } &&
|
---|
| 7551 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7552 | || test ! -s conftest.err'
|
---|
| 7553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7554 | (eval $ac_try) 2>&5
|
---|
| 7555 | ac_status=$?
|
---|
| 7556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7557 | (exit $ac_status); }; } &&
|
---|
| 7558 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7560 | (eval $ac_try) 2>&5
|
---|
| 7561 | ac_status=$?
|
---|
| 7562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7563 | (exit $ac_status); }; }; then
|
---|
| 7564 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7565 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7566 | /* confdefs.h. */
|
---|
| 7567 | _ACEOF
|
---|
| 7568 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7569 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7570 | /* end confdefs.h. */
|
---|
| 7571 | #include <sys/types.h>
|
---|
| 7572 | #include <sys/param.h>
|
---|
| 7573 |
|
---|
| 7574 | int
|
---|
| 7575 | main ()
|
---|
| 7576 | {
|
---|
| 7577 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7578 | not big endian
|
---|
| 7579 | #endif
|
---|
| 7580 |
|
---|
| 7581 | ;
|
---|
| 7582 | return 0;
|
---|
| 7583 | }
|
---|
| 7584 | _ACEOF
|
---|
| 7585 | rm -f conftest.$ac_objext
|
---|
| 7586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7587 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7588 | ac_status=$?
|
---|
| 7589 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7590 | rm -f conftest.er1
|
---|
| 7591 | cat conftest.err >&5
|
---|
| 7592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7593 | (exit $ac_status); } &&
|
---|
| 7594 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7595 | || test ! -s conftest.err'
|
---|
| 7596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7597 | (eval $ac_try) 2>&5
|
---|
| 7598 | ac_status=$?
|
---|
| 7599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7600 | (exit $ac_status); }; } &&
|
---|
| 7601 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7603 | (eval $ac_try) 2>&5
|
---|
| 7604 | ac_status=$?
|
---|
| 7605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7606 | (exit $ac_status); }; }; then
|
---|
| 7607 | ac_cv_c_bigendian=yes
|
---|
| 7608 | else
|
---|
| 7609 | echo "$as_me: failed program was:" >&5
|
---|
| 7610 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7611 |
|
---|
| 7612 | ac_cv_c_bigendian=no
|
---|
| 7613 | fi
|
---|
| 7614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7615 | else
|
---|
| 7616 | echo "$as_me: failed program was:" >&5
|
---|
| 7617 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7618 |
|
---|
| 7619 | # It does not; compile a test program.
|
---|
| 7620 | if test "$cross_compiling" = yes; then
|
---|
| 7621 | # try to guess the endianness by grepping values into an object file
|
---|
| 7622 | ac_cv_c_bigendian=unknown
|
---|
| 7623 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7624 | /* confdefs.h. */
|
---|
| 7625 | _ACEOF
|
---|
| 7626 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7627 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7628 | /* end confdefs.h. */
|
---|
| 7629 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7630 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7631 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7632 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7633 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7634 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7635 | int
|
---|
| 7636 | main ()
|
---|
| 7637 | {
|
---|
| 7638 | _ascii (); _ebcdic ();
|
---|
| 7639 | ;
|
---|
| 7640 | return 0;
|
---|
| 7641 | }
|
---|
| 7642 | _ACEOF
|
---|
| 7643 | rm -f conftest.$ac_objext
|
---|
| 7644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7645 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7646 | ac_status=$?
|
---|
| 7647 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7648 | rm -f conftest.er1
|
---|
| 7649 | cat conftest.err >&5
|
---|
| 7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7651 | (exit $ac_status); } &&
|
---|
| 7652 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7653 | || test ! -s conftest.err'
|
---|
| 7654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7655 | (eval $ac_try) 2>&5
|
---|
| 7656 | ac_status=$?
|
---|
| 7657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7658 | (exit $ac_status); }; } &&
|
---|
| 7659 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7661 | (eval $ac_try) 2>&5
|
---|
| 7662 | ac_status=$?
|
---|
| 7663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7664 | (exit $ac_status); }; }; then
|
---|
| 7665 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7666 | ac_cv_c_bigendian=yes
|
---|
| 7667 | fi
|
---|
| 7668 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7669 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7670 | ac_cv_c_bigendian=no
|
---|
| 7671 | else
|
---|
| 7672 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7673 | ac_cv_c_bigendian=unknown
|
---|
| 7674 | fi
|
---|
| 7675 | fi
|
---|
| 7676 | else
|
---|
| 7677 | echo "$as_me: failed program was:" >&5
|
---|
| 7678 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7679 |
|
---|
| 7680 | fi
|
---|
| 7681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7682 | else
|
---|
| 7683 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7684 | /* confdefs.h. */
|
---|
| 7685 | _ACEOF
|
---|
| 7686 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7687 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7688 | /* end confdefs.h. */
|
---|
| 7689 | int
|
---|
| 7690 | main ()
|
---|
| 7691 | {
|
---|
| 7692 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7693 | union
|
---|
| 7694 | {
|
---|
| 7695 | long l;
|
---|
| 7696 | char c[sizeof (long)];
|
---|
| 7697 | } u;
|
---|
| 7698 | u.l = 1;
|
---|
| 7699 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7700 | }
|
---|
| 7701 | _ACEOF
|
---|
| 7702 | rm -f conftest$ac_exeext
|
---|
| 7703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7704 | (eval $ac_link) 2>&5
|
---|
| 7705 | ac_status=$?
|
---|
| 7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7709 | (eval $ac_try) 2>&5
|
---|
| 7710 | ac_status=$?
|
---|
| 7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7712 | (exit $ac_status); }; }; then
|
---|
| 7713 | ac_cv_c_bigendian=no
|
---|
| 7714 | else
|
---|
| 7715 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7716 | echo "$as_me: failed program was:" >&5
|
---|
| 7717 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7718 |
|
---|
| 7719 | ( exit $ac_status )
|
---|
| 7720 | ac_cv_c_bigendian=yes
|
---|
| 7721 | fi
|
---|
| 7722 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7723 | fi
|
---|
| 7724 | fi
|
---|
| 7725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7726 | fi
|
---|
| 7727 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7728 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7729 | case $ac_cv_c_bigendian in
|
---|
| 7730 | yes)
|
---|
| 7731 |
|
---|
| 7732 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7733 | #define WORDS_BIGENDIAN 1
|
---|
| 7734 | _ACEOF
|
---|
| 7735 | ;;
|
---|
| 7736 | no)
|
---|
| 7737 | ;;
|
---|
| 7738 | *)
|
---|
| 7739 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7740 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7741 | echo "$as_me: error: unknown endianness
|
---|
| 7742 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7743 | { (exit 1); exit 1; }; } ;;
|
---|
| 7744 | esac
|
---|
| 7745 |
|
---|
| 7746 |
|
---|
[3365] | 7747 | # ---------------------------------------------------------------------------
|
---|
| 7748 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[10192] | 7749 | case $LIBOBJS in
|
---|
| 7750 | "xmalloc.$ac_objext" | \
|
---|
| 7751 | *" xmalloc.$ac_objext" | \
|
---|
| 7752 | "xmalloc.$ac_objext "* | \
|
---|
| 7753 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 7754 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 7755 | esac
|
---|
| 7756 |
|
---|
| 7757 | case $LIBOBJS in
|
---|
| 7758 | "error.$ac_objext" | \
|
---|
| 7759 | *" error.$ac_objext" | \
|
---|
| 7760 | "error.$ac_objext "* | \
|
---|
| 7761 | *" error.$ac_objext "* ) ;;
|
---|
| 7762 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7763 | esac
|
---|
| 7764 |
|
---|
[3365] | 7765 | fi
|
---|
| 7766 |
|
---|
[10192] | 7767 |
|
---|
[3365] | 7768 | # ---------------------------------------------------------------------------
|
---|
| 7769 | # see if the user wants to override use of long long
|
---|
| 7770 | # Check whether --enable-override-longlong or --disable-override-longlong was given.
|
---|
| 7771 | if test "${enable_override_longlong+set}" = set; then
|
---|
| 7772 | enableval="$enable_override_longlong"
|
---|
[10192] | 7773 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7774 | #define DISABLE_LONG_LONG 1
|
---|
[10192] | 7775 | _ACEOF
|
---|
[3365] | 7776 |
|
---|
[8063] | 7777 | fi;
|
---|
[3365] | 7778 |
|
---|
[10848] | 7779 |
|
---|
[3365] | 7780 | # ---------------------------------------------------------------------------
|
---|
| 7781 |
|
---|
[10192] | 7782 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
| 7783 | ac_config_commands="$ac_config_commands default"
|
---|
[8063] | 7784 | cat >confcache <<\_ACEOF
|
---|
[3365] | 7785 | # This file is a shell script that caches the results of configure
|
---|
| 7786 | # tests run on this system so they can be shared between configure
|
---|
[8063] | 7787 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7788 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7789 | # want to keep, you may remove or edit it.
|
---|
[3365] | 7790 | #
|
---|
[8063] | 7791 | # config.status only pays attention to the cache file if you give it
|
---|
| 7792 | # the --recheck option to rerun configure.
|
---|
[3365] | 7793 | #
|
---|
[10192] | 7794 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[8063] | 7795 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7796 | # following values.
|
---|
| 7797 |
|
---|
| 7798 | _ACEOF
|
---|
| 7799 |
|
---|
[3365] | 7800 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7801 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7802 | # So, don't put newlines in cache variables' values.
|
---|
| 7803 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7804 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8063] | 7805 | {
|
---|
| 7806 | (set) 2>&1 |
|
---|
| 7807 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7808 | *ac_space=\ *)
|
---|
| 7809 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7810 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7811 | sed -n \
|
---|
[10192] | 7812 | "s/'/'\\\\''/g;
|
---|
| 7813 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[8063] | 7814 | ;;
|
---|
| 7815 | *)
|
---|
| 7816 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7817 | sed -n \
|
---|
[10192] | 7818 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 7819 | ;;
|
---|
| 7820 | esac;
|
---|
| 7821 | } |
|
---|
| 7822 | sed '
|
---|
| 7823 | t clear
|
---|
| 7824 | : clear
|
---|
| 7825 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7826 | t end
|
---|
| 7827 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7828 | : end' >>confcache
|
---|
[10192] | 7829 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[3365] | 7830 | if test -w $cache_file; then
|
---|
[8063] | 7831 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7832 | cat confcache >$cache_file
|
---|
[3365] | 7833 | else
|
---|
| 7834 | echo "not updating unwritable cache $cache_file"
|
---|
| 7835 | fi
|
---|
| 7836 | fi
|
---|
| 7837 | rm -f confcache
|
---|
| 7838 |
|
---|
| 7839 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7840 | # Let make expand exec_prefix.
|
---|
| 7841 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7842 |
|
---|
[8063] | 7843 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7844 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7845 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7846 | # (actually we leave an empty line to preserve line numbers).
|
---|
[3365] | 7847 | if test "x$srcdir" = x.; then
|
---|
[10192] | 7848 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
[8063] | 7849 | s/:*\$(srcdir):*/:/;
|
---|
| 7850 | s/:*\${srcdir}:*/:/;
|
---|
| 7851 | s/:*@srcdir@:*/:/;
|
---|
[10192] | 7852 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
[8063] | 7853 | s/:*$//;
|
---|
[10192] | 7854 | s/^[^=]*=[ ]*$//;
|
---|
[8063] | 7855 | }'
|
---|
[3365] | 7856 | fi
|
---|
| 7857 |
|
---|
| 7858 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7859 |
|
---|
[10192] | 7860 | ac_libobjs=
|
---|
| 7861 | ac_ltlibobjs=
|
---|
| 7862 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7863 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7864 | ac_i=`echo "$ac_i" |
|
---|
| 7865 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7866 | # 2. Add them.
|
---|
| 7867 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7868 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7869 | done
|
---|
| 7870 | LIBOBJS=$ac_libobjs
|
---|
| 7871 |
|
---|
| 7872 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7873 |
|
---|
| 7874 |
|
---|
| 7875 |
|
---|
[3365] | 7876 | : ${CONFIG_STATUS=./config.status}
|
---|
[8063] | 7877 | ac_clean_files_save=$ac_clean_files
|
---|
| 7878 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[10192] | 7879 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
[8063] | 7880 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7881 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7882 | #! $SHELL
|
---|
[10192] | 7883 | # Generated by $as_me.
|
---|
[3365] | 7884 | # Run this file to recreate the current configuration.
|
---|
| 7885 | # Compiler output produced by configure, useful for debugging
|
---|
[8063] | 7886 | # configure, is in config.log if it exists.
|
---|
[3365] | 7887 |
|
---|
[8063] | 7888 | debug=false
|
---|
[10192] | 7889 | ac_cs_recheck=false
|
---|
| 7890 | ac_cs_silent=false
|
---|
[8063] | 7891 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7892 | _ACEOF
|
---|
| 7893 |
|
---|
| 7894 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[10192] | 7895 | ## --------------------- ##
|
---|
| 7896 | ## M4sh Initialization. ##
|
---|
| 7897 | ## --------------------- ##
|
---|
| 7898 |
|
---|
[8063] | 7899 | # Be Bourne compatible
|
---|
| 7900 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7901 | emulate sh
|
---|
| 7902 | NULLCMD=:
|
---|
[10192] | 7903 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7904 | # is contrary to our usage. Disable this feature.
|
---|
| 7905 | alias -g '${1+"$@"}'='"$@"'
|
---|
[8063] | 7906 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7907 | set -o posix
|
---|
| 7908 | fi
|
---|
[10192] | 7909 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8063] | 7910 |
|
---|
[10192] | 7911 | # Support unset when possible.
|
---|
| 7912 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7913 | as_unset=unset
|
---|
| 7914 | else
|
---|
| 7915 | as_unset=false
|
---|
| 7916 | fi
|
---|
| 7917 |
|
---|
| 7918 |
|
---|
| 7919 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7920 | $as_unset ENV MAIL MAILPATH
|
---|
| 7921 | PS1='$ '
|
---|
| 7922 | PS2='> '
|
---|
| 7923 | PS4='+ '
|
---|
| 7924 |
|
---|
| 7925 | # NLS nuisances.
|
---|
| 7926 | for as_var in \
|
---|
| 7927 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7928 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7929 | LC_TELEPHONE LC_TIME
|
---|
| 7930 | do
|
---|
| 7931 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7932 | eval $as_var=C; export $as_var
|
---|
| 7933 | else
|
---|
| 7934 | $as_unset $as_var
|
---|
| 7935 | fi
|
---|
| 7936 | done
|
---|
| 7937 |
|
---|
| 7938 | # Required to use basename.
|
---|
| 7939 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7940 | as_expr=expr
|
---|
| 7941 | else
|
---|
| 7942 | as_expr=false
|
---|
| 7943 | fi
|
---|
| 7944 |
|
---|
| 7945 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7946 | as_basename=basename
|
---|
| 7947 | else
|
---|
| 7948 | as_basename=false
|
---|
| 7949 | fi
|
---|
| 7950 |
|
---|
| 7951 |
|
---|
[8063] | 7952 | # Name of the executable.
|
---|
[10192] | 7953 | as_me=`$as_basename "$0" ||
|
---|
| 7954 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7955 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7956 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7957 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7958 | echo X/"$0" |
|
---|
| 7959 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7960 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7961 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7962 | s/.*/./; q'`
|
---|
[8063] | 7963 |
|
---|
[10192] | 7964 |
|
---|
| 7965 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7966 | # Avoid depending upon Character Ranges.
|
---|
| 7967 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7968 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7969 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7970 | as_cr_digits='0123456789'
|
---|
| 7971 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7972 |
|
---|
| 7973 | # The user is always right.
|
---|
| 7974 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7975 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7976 | echo "exit 0" >>conf$$.sh
|
---|
| 7977 | chmod +x conf$$.sh
|
---|
| 7978 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7979 | PATH_SEPARATOR=';'
|
---|
| 7980 | else
|
---|
| 7981 | PATH_SEPARATOR=:
|
---|
| 7982 | fi
|
---|
| 7983 | rm -f conf$$.sh
|
---|
| 7984 | fi
|
---|
| 7985 |
|
---|
| 7986 |
|
---|
| 7987 | as_lineno_1=$LINENO
|
---|
| 7988 | as_lineno_2=$LINENO
|
---|
| 7989 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7990 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7991 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7992 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7993 | # relative or not.
|
---|
| 7994 | case $0 in
|
---|
| 7995 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7996 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7997 | for as_dir in $PATH
|
---|
| 7998 | do
|
---|
| 7999 | IFS=$as_save_IFS
|
---|
| 8000 | test -z "$as_dir" && as_dir=.
|
---|
| 8001 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 8002 | done
|
---|
| 8003 |
|
---|
| 8004 | ;;
|
---|
| 8005 | esac
|
---|
| 8006 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 8007 | # in which case we are not to be found in the path.
|
---|
| 8008 | if test "x$as_myself" = x; then
|
---|
| 8009 | as_myself=$0
|
---|
| 8010 | fi
|
---|
| 8011 | if test ! -f "$as_myself"; then
|
---|
| 8012 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 8013 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 8014 | { (exit 1); exit 1; }; }
|
---|
| 8015 | fi
|
---|
| 8016 | case $CONFIG_SHELL in
|
---|
| 8017 | '')
|
---|
| 8018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 8019 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 8020 | do
|
---|
| 8021 | IFS=$as_save_IFS
|
---|
| 8022 | test -z "$as_dir" && as_dir=.
|
---|
| 8023 | for as_base in sh bash ksh sh5; do
|
---|
| 8024 | case $as_dir in
|
---|
| 8025 | /*)
|
---|
| 8026 | if ("$as_dir/$as_base" -c '
|
---|
| 8027 | as_lineno_1=$LINENO
|
---|
| 8028 | as_lineno_2=$LINENO
|
---|
| 8029 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 8030 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 8031 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 8032 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 8033 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 8034 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 8035 | export CONFIG_SHELL
|
---|
| 8036 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 8037 | fi;;
|
---|
| 8038 | esac
|
---|
| 8039 | done
|
---|
| 8040 | done
|
---|
| 8041 | ;;
|
---|
| 8042 | esac
|
---|
| 8043 |
|
---|
| 8044 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 8045 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 8046 | # line-number line before each line; the second 'sed' does the real
|
---|
| 8047 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 8048 | # with the numbered line, and appends trailing '-' during
|
---|
| 8049 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 8050 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 8051 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 8052 | sed '=' <$as_myself |
|
---|
| 8053 | sed '
|
---|
| 8054 | N
|
---|
| 8055 | s,$,-,
|
---|
| 8056 | : loop
|
---|
| 8057 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 8058 | t loop
|
---|
| 8059 | s,-$,,
|
---|
| 8060 | s,^['$as_cr_digits']*\n,,
|
---|
| 8061 | ' >$as_me.lineno &&
|
---|
| 8062 | chmod +x $as_me.lineno ||
|
---|
| 8063 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 8064 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 8065 | { (exit 1); exit 1; }; }
|
---|
| 8066 |
|
---|
| 8067 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 8068 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 8069 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 8070 | . ./$as_me.lineno
|
---|
| 8071 | # Exit status is that of the last command.
|
---|
| 8072 | exit
|
---|
| 8073 | }
|
---|
| 8074 |
|
---|
| 8075 |
|
---|
| 8076 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 8077 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 8078 | ' ECHO_T=' ' ;;
|
---|
| 8079 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 8080 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 8081 | esac
|
---|
| 8082 |
|
---|
[8063] | 8083 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 8084 | as_expr=expr
|
---|
| 8085 | else
|
---|
| 8086 | as_expr=false
|
---|
| 8087 | fi
|
---|
| 8088 |
|
---|
| 8089 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 8090 | echo >conf$$.file
|
---|
| 8091 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8092 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 8093 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 8094 | if test -f conf$$.exe; then
|
---|
| 8095 | # Don't use ln at all; we don't have any links
|
---|
| 8096 | as_ln_s='cp -p'
|
---|
| 8097 | else
|
---|
| 8098 | as_ln_s='ln -s'
|
---|
| 8099 | fi
|
---|
| 8100 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8101 | as_ln_s=ln
|
---|
| 8102 | else
|
---|
| 8103 | as_ln_s='cp -p'
|
---|
| 8104 | fi
|
---|
| 8105 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 8106 |
|
---|
[10192] | 8107 | if mkdir -p . 2>/dev/null; then
|
---|
| 8108 | as_mkdir_p=:
|
---|
[8063] | 8109 | else
|
---|
[10192] | 8110 | test -d ./-p && rmdir ./-p
|
---|
| 8111 | as_mkdir_p=false
|
---|
[8063] | 8112 | fi
|
---|
| 8113 |
|
---|
[10192] | 8114 | as_executable_p="test -f"
|
---|
[8063] | 8115 |
|
---|
[10192] | 8116 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 8117 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8118 |
|
---|
| 8119 | # Sed expression to map a string onto a valid variable name.
|
---|
| 8120 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8121 |
|
---|
| 8122 |
|
---|
[8063] | 8123 | # IFS
|
---|
| 8124 | # We need space, tab and new line, in precisely that order.
|
---|
| 8125 | as_nl='
|
---|
| 8126 | '
|
---|
| 8127 | IFS=" $as_nl"
|
---|
| 8128 |
|
---|
| 8129 | # CDPATH.
|
---|
[10192] | 8130 | $as_unset CDPATH
|
---|
[8063] | 8131 |
|
---|
| 8132 | exec 6>&1
|
---|
| 8133 |
|
---|
[10192] | 8134 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 8135 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 8136 | # values after options handling. Logging --version etc. is OK.
|
---|
| 8137 | exec 5>>config.log
|
---|
| 8138 | {
|
---|
| 8139 | echo
|
---|
| 8140 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 8141 | ## Running $as_me. ##
|
---|
| 8142 | _ASBOX
|
---|
| 8143 | } >&5
|
---|
| 8144 | cat >&5 <<_CSEOF
|
---|
| 8145 |
|
---|
| 8146 | This file was extended by $as_me, which was
|
---|
| 8147 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 8148 |
|
---|
| 8149 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 8150 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 8151 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 8152 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 8153 | $ $0 $@
|
---|
| 8154 |
|
---|
| 8155 | _CSEOF
|
---|
| 8156 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 8157 | echo >&5
|
---|
[8063] | 8158 | _ACEOF
|
---|
| 8159 |
|
---|
| 8160 | # Files that config.status was made for.
|
---|
| 8161 | if test -n "$ac_config_files"; then
|
---|
| 8162 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 8163 | fi
|
---|
| 8164 |
|
---|
| 8165 | if test -n "$ac_config_headers"; then
|
---|
| 8166 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 8167 | fi
|
---|
| 8168 |
|
---|
| 8169 | if test -n "$ac_config_links"; then
|
---|
| 8170 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 8171 | fi
|
---|
| 8172 |
|
---|
| 8173 | if test -n "$ac_config_commands"; then
|
---|
| 8174 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 8175 | fi
|
---|
| 8176 |
|
---|
[10192] | 8177 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8178 |
|
---|
| 8179 | ac_cs_usage="\
|
---|
| 8180 | \`$as_me' instantiates files from templates according to the
|
---|
| 8181 | current configuration.
|
---|
| 8182 |
|
---|
| 8183 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 8184 |
|
---|
| 8185 | -h, --help print this help, then exit
|
---|
| 8186 | -V, --version print version number, then exit
|
---|
[10192] | 8187 | -q, --quiet do not print progress messages
|
---|
[8063] | 8188 | -d, --debug don't remove temporary files
|
---|
| 8189 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 8190 | --file=FILE[:TEMPLATE]
|
---|
[10192] | 8191 | instantiate the configuration file FILE
|
---|
[8063] | 8192 | --header=FILE[:TEMPLATE]
|
---|
[10192] | 8193 | instantiate the configuration header FILE
|
---|
[8063] | 8194 |
|
---|
| 8195 | Configuration files:
|
---|
| 8196 | $config_files
|
---|
| 8197 |
|
---|
| 8198 | Configuration headers:
|
---|
| 8199 | $config_headers
|
---|
| 8200 |
|
---|
| 8201 | Configuration commands:
|
---|
| 8202 | $config_commands
|
---|
| 8203 |
|
---|
| 8204 | Report bugs to <[email protected]>."
|
---|
[10192] | 8205 | _ACEOF
|
---|
[8063] | 8206 |
|
---|
[10192] | 8207 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8208 | ac_cs_version="\\
|
---|
| 8209 | config.status
|
---|
[10192] | 8210 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
[8063] | 8211 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 8212 |
|
---|
[10192] | 8213 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 8214 | This config.status script is free software; the Free Software Foundation
|
---|
| 8215 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 8216 | srcdir=$srcdir
|
---|
| 8217 | INSTALL="$INSTALL"
|
---|
[10192] | 8218 | _ACEOF
|
---|
[8063] | 8219 |
|
---|
[10192] | 8220 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8221 | # If no file are specified by the user, then we need to provide default
|
---|
| 8222 | # value. By we need to know if files were specified by the user.
|
---|
| 8223 | ac_need_defaults=:
|
---|
| 8224 | while test $# != 0
|
---|
[3365] | 8225 | do
|
---|
[8063] | 8226 | case $1 in
|
---|
| 8227 | --*=*)
|
---|
| 8228 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 8229 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[10192] | 8230 | ac_shift=:
|
---|
[8063] | 8231 | ;;
|
---|
[10192] | 8232 | -*)
|
---|
| 8233 | ac_option=$1
|
---|
| 8234 | ac_optarg=$2
|
---|
| 8235 | ac_shift=shift
|
---|
| 8236 | ;;
|
---|
[8063] | 8237 | *) # This is not an option, so the user has probably given explicit
|
---|
| 8238 | # arguments.
|
---|
[10192] | 8239 | ac_option=$1
|
---|
[8063] | 8240 | ac_need_defaults=false;;
|
---|
| 8241 | esac
|
---|
| 8242 |
|
---|
[10192] | 8243 | case $ac_option in
|
---|
[8063] | 8244 | # Handling of the options.
|
---|
[10192] | 8245 | _ACEOF
|
---|
| 8246 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8247 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10192] | 8248 | ac_cs_recheck=: ;;
|
---|
[8063] | 8249 | --version | --vers* | -V )
|
---|
| 8250 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 8251 | --he | --h)
|
---|
| 8252 | # Conflict between --help and --header
|
---|
[10192] | 8253 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
[8063] | 8254 | Try \`$0 --help' for more information." >&5
|
---|
| 8255 | echo "$as_me: error: ambiguous option: $1
|
---|
| 8256 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8257 | { (exit 1); exit 1; }; };;
|
---|
| 8258 | --help | --hel | -h )
|
---|
| 8259 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 8260 | --debug | --d* | -d )
|
---|
| 8261 | debug=: ;;
|
---|
| 8262 | --file | --fil | --fi | --f )
|
---|
[10192] | 8263 | $ac_shift
|
---|
| 8264 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[8063] | 8265 | ac_need_defaults=false;;
|
---|
| 8266 | --header | --heade | --head | --hea )
|
---|
[10192] | 8267 | $ac_shift
|
---|
| 8268 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[8063] | 8269 | ac_need_defaults=false;;
|
---|
[10192] | 8270 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8271 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8272 | ac_cs_silent=: ;;
|
---|
[8063] | 8273 |
|
---|
| 8274 | # This is an error.
|
---|
[10192] | 8275 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
[8063] | 8276 | Try \`$0 --help' for more information." >&5
|
---|
| 8277 | echo "$as_me: error: unrecognized option: $1
|
---|
| 8278 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8279 | { (exit 1); exit 1; }; } ;;
|
---|
[10192] | 8280 |
|
---|
| 8281 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 8282 |
|
---|
[3365] | 8283 | esac
|
---|
[8063] | 8284 | shift
|
---|
[3365] | 8285 | done
|
---|
| 8286 |
|
---|
[10192] | 8287 | ac_configure_extra_args=
|
---|
[3365] | 8288 |
|
---|
[10192] | 8289 | if $ac_cs_silent; then
|
---|
| 8290 | exec 6>/dev/null
|
---|
| 8291 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 8292 | fi
|
---|
[8063] | 8293 |
|
---|
[10192] | 8294 | _ACEOF
|
---|
| 8295 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8296 | if \$ac_cs_recheck; then
|
---|
| 8297 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8298 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 8299 | fi
|
---|
[8063] | 8300 |
|
---|
| 8301 | _ACEOF
|
---|
[3365] | 8302 |
|
---|
[10192] | 8303 |
|
---|
| 8304 |
|
---|
| 8305 |
|
---|
| 8306 |
|
---|
| 8307 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8308 | for ac_config_target in $ac_config_targets
|
---|
| 8309 | do
|
---|
| 8310 | case "$ac_config_target" in
|
---|
| 8311 | # Handling of arguments.
|
---|
| 8312 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8313 | "text/Makefile" ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
| 8314 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 8315 | "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 8316 | "java/org/greenstone/mgpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
| 8317 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 8318 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8319 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8320 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8321 | { (exit 1); exit 1; }; };;
|
---|
| 8322 | esac
|
---|
| 8323 | done
|
---|
| 8324 |
|
---|
[8063] | 8325 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8326 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8327 | # We use the long form for the default assignment because of an extremely
|
---|
| 8328 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8329 | if $ac_need_defaults; then
|
---|
| 8330 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8331 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8332 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 8333 | fi
|
---|
[3365] | 8334 |
|
---|
[10192] | 8335 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 8336 | # simply because there is no reason to put it here, and in addition,
|
---|
| 8337 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[8063] | 8338 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 8339 | $debug ||
|
---|
| 8340 | {
|
---|
| 8341 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[10192] | 8342 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[8063] | 8343 | }
|
---|
| 8344 |
|
---|
| 8345 | # Create a (secure) tmp directory for tmp files.
|
---|
[10192] | 8346 |
|
---|
[8063] | 8347 | {
|
---|
[10192] | 8348 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[8063] | 8349 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8350 | } ||
|
---|
| 8351 | {
|
---|
[10192] | 8352 | tmp=./confstat$$-$RANDOM
|
---|
[8063] | 8353 | (umask 077 && mkdir $tmp)
|
---|
| 8354 | } ||
|
---|
| 8355 | {
|
---|
[10192] | 8356 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
[8063] | 8357 | { (exit 1); exit 1; }
|
---|
| 8358 | }
|
---|
| 8359 |
|
---|
[10192] | 8360 | _ACEOF
|
---|
[8063] | 8361 |
|
---|
[10192] | 8362 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8363 |
|
---|
| 8364 | #
|
---|
| 8365 | # CONFIG_FILES section.
|
---|
| 8366 | #
|
---|
| 8367 |
|
---|
| 8368 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8369 | # This happens for instance when ./config.status config.h
|
---|
| 8370 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8371 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8372 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8373 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8374 | s,@SHELL@,$SHELL,;t t
|
---|
[10192] | 8375 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8376 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8377 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8378 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8379 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8380 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
[8063] | 8381 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8382 | s,@prefix@,$prefix,;t t
|
---|
| 8383 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8384 | s,@bindir@,$bindir,;t t
|
---|
| 8385 | s,@sbindir@,$sbindir,;t t
|
---|
| 8386 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8387 | s,@datadir@,$datadir,;t t
|
---|
| 8388 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8389 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8390 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8391 | s,@libdir@,$libdir,;t t
|
---|
| 8392 | s,@includedir@,$includedir,;t t
|
---|
| 8393 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8394 | s,@infodir@,$infodir,;t t
|
---|
| 8395 | s,@mandir@,$mandir,;t t
|
---|
[10192] | 8396 | s,@build_alias@,$build_alias,;t t
|
---|
| 8397 | s,@host_alias@,$host_alias,;t t
|
---|
| 8398 | s,@target_alias@,$target_alias,;t t
|
---|
| 8399 | s,@DEFS@,$DEFS,;t t
|
---|
[8063] | 8400 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8401 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8402 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8403 | s,@LIBS@,$LIBS,;t t
|
---|
[15560] | 8404 | s,@build@,$build,;t t
|
---|
| 8405 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 8406 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 8407 | s,@build_os@,$build_os,;t t
|
---|
| 8408 | s,@host@,$host,;t t
|
---|
| 8409 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 8410 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 8411 | s,@host_os@,$host_os,;t t
|
---|
| 8412 | s,@target@,$target,;t t
|
---|
| 8413 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 8414 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 8415 | s,@target_os@,$target_os,;t t
|
---|
[8063] | 8416 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8417 | s,@VERSION@,$VERSION,;t t
|
---|
[15560] | 8418 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
[13482] | 8419 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[8063] | 8420 | s,@CXX@,$CXX,;t t
|
---|
| 8421 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8422 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8423 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8424 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8425 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8426 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8427 | s,@AWK@,$AWK,;t t
|
---|
| 8428 | s,@YACC@,$YACC,;t t
|
---|
| 8429 | s,@CC@,$CC,;t t
|
---|
| 8430 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8431 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8432 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8433 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8434 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8435 | s,@LN_S@,$LN_S,;t t
|
---|
| 8436 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8437 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8438 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8439 | s,@CPP@,$CPP,;t t
|
---|
[10192] | 8440 | s,@EGREP@,$EGREP,;t t
|
---|
[8063] | 8441 | s,@U@,$U,;t t
|
---|
| 8442 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
[13698] | 8443 | s,@UNAC_DIR@,$UNAC_DIR,;t t
|
---|
[8063] | 8444 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8445 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
[10192] | 8446 | s,@JNIINC@,$JNIINC,;t t
|
---|
| 8447 | s,@JNISUFFIX@,$JNISUFFIX,;t t
|
---|
| 8448 | s,@JNIFLAGS@,$JNIFLAGS,;t t
|
---|
| 8449 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
[8059] | 8450 | CEOF
|
---|
[8063] | 8451 |
|
---|
[10192] | 8452 | _ACEOF
|
---|
[3365] | 8453 |
|
---|
[10192] | 8454 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8455 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8456 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8457 | ac_max_sed_lines=48
|
---|
| 8458 | ac_sed_frag=1 # Number of current file.
|
---|
| 8459 | ac_beg=1 # First line for current file.
|
---|
| 8460 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8461 | ac_more_lines=:
|
---|
| 8462 | ac_sed_cmds=
|
---|
| 8463 | while $ac_more_lines; do
|
---|
| 8464 | if test $ac_beg -gt 1; then
|
---|
| 8465 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8466 | else
|
---|
[8063] | 8467 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8468 | fi
|
---|
[8063] | 8469 | if test ! -s $tmp/subs.frag; then
|
---|
| 8470 | ac_more_lines=false
|
---|
| 8471 | else
|
---|
| 8472 | # The purpose of the label and of the branching condition is to
|
---|
| 8473 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8474 | # is no need to browse any of the substitutions).
|
---|
| 8475 | # These are the two extra sed commands mentioned above.
|
---|
| 8476 | (echo ':t
|
---|
| 8477 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8478 | if test -z "$ac_sed_cmds"; then
|
---|
[10192] | 8479 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8480 | else
|
---|
[10192] | 8481 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8482 | fi
|
---|
| 8483 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8484 | ac_beg=$ac_end
|
---|
| 8485 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8486 | fi
|
---|
| 8487 | done
|
---|
| 8488 | if test -z "$ac_sed_cmds"; then
|
---|
| 8489 | ac_sed_cmds=cat
|
---|
[3365] | 8490 | fi
|
---|
[8063] | 8491 | fi # test -n "$CONFIG_FILES"
|
---|
[3365] | 8492 |
|
---|
[10192] | 8493 | _ACEOF
|
---|
| 8494 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8495 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8496 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8497 | case $ac_file in
|
---|
| 8498 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8499 | cat >$tmp/stdin
|
---|
| 8500 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8501 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8502 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8503 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8504 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8505 | esac
|
---|
| 8506 |
|
---|
[8063] | 8507 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
[10192] | 8508 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8509 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8510 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8511 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8512 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8513 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8514 | echo X"$ac_file" |
|
---|
| 8515 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8516 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8517 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8518 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8519 | s/.*/./; q'`
|
---|
[10192] | 8520 | { if $as_mkdir_p; then
|
---|
| 8521 | mkdir -p "$ac_dir"
|
---|
[3365] | 8522 | else
|
---|
[10192] | 8523 | as_dir="$ac_dir"
|
---|
| 8524 | as_dirs=
|
---|
| 8525 | while test ! -d "$as_dir"; do
|
---|
| 8526 | as_dirs="$as_dir $as_dirs"
|
---|
| 8527 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8528 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8529 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8530 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8531 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8532 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8533 | echo X"$as_dir" |
|
---|
| 8534 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8535 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8536 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8537 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8538 | s/.*/./; q'`
|
---|
| 8539 | done
|
---|
| 8540 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8541 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8542 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8543 | { (exit 1); exit 1; }; }; }
|
---|
[3365] | 8544 |
|
---|
[10192] | 8545 | ac_builddir=.
|
---|
| 8546 |
|
---|
| 8547 | if test "$ac_dir" != .; then
|
---|
| 8548 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8549 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8550 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8551 | else
|
---|
| 8552 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8553 | fi
|
---|
| 8554 |
|
---|
| 8555 | case $srcdir in
|
---|
| 8556 | .) # No --srcdir option. We are building in place.
|
---|
| 8557 | ac_srcdir=.
|
---|
| 8558 | if test -z "$ac_top_builddir"; then
|
---|
| 8559 | ac_top_srcdir=.
|
---|
| 8560 | else
|
---|
| 8561 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8562 | fi ;;
|
---|
| 8563 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8564 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8565 | ac_top_srcdir=$srcdir ;;
|
---|
[3365] | 8566 | *) # Relative path.
|
---|
[10192] | 8567 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8568 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8569 | esac
|
---|
[3365] | 8570 |
|
---|
[10192] | 8571 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8572 | # the directories may not exist.
|
---|
| 8573 | case `pwd` in
|
---|
| 8574 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8575 | *)
|
---|
| 8576 | case "$ac_dir" in
|
---|
| 8577 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8578 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8579 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8580 | esac;;
|
---|
| 8581 | esac
|
---|
| 8582 | case $ac_abs_builddir in
|
---|
| 8583 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8584 | *)
|
---|
| 8585 | case ${ac_top_builddir}. in
|
---|
| 8586 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8587 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8588 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8589 | esac;;
|
---|
| 8590 | esac
|
---|
| 8591 | case $ac_abs_builddir in
|
---|
| 8592 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8593 | *)
|
---|
| 8594 | case $ac_srcdir in
|
---|
| 8595 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8596 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8597 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8598 | esac;;
|
---|
| 8599 | esac
|
---|
| 8600 | case $ac_abs_builddir in
|
---|
| 8601 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8602 | *)
|
---|
| 8603 | case $ac_top_srcdir in
|
---|
| 8604 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8605 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8606 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8607 | esac;;
|
---|
| 8608 | esac
|
---|
| 8609 |
|
---|
| 8610 |
|
---|
[8063] | 8611 | case $INSTALL in
|
---|
| 8612 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[10192] | 8613 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[3365] | 8614 | esac
|
---|
| 8615 |
|
---|
[8063] | 8616 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8617 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8618 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8619 | rm -f "$ac_file"
|
---|
| 8620 | fi
|
---|
| 8621 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8622 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8623 | # /* config.h. Generated by config.status. */
|
---|
| 8624 | if test x"$ac_file" = x-; then
|
---|
| 8625 | configure_input=
|
---|
| 8626 | else
|
---|
| 8627 | configure_input="$ac_file. "
|
---|
| 8628 | fi
|
---|
| 8629 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8630 | sed 's,.*/,,'` by configure."
|
---|
[3365] | 8631 |
|
---|
[8063] | 8632 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8633 | # src tree.
|
---|
| 8634 | ac_file_inputs=`IFS=:
|
---|
| 8635 | for f in $ac_file_in; do
|
---|
| 8636 | case $f in
|
---|
| 8637 | -) echo $tmp/stdin ;;
|
---|
| 8638 | [\\/$]*)
|
---|
[10192] | 8639 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8640 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8641 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8642 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8643 | echo "$f";;
|
---|
[8063] | 8644 | *) # Relative
|
---|
[10192] | 8645 | if test -f "$f"; then
|
---|
| 8646 | # Build tree
|
---|
| 8647 | echo "$f"
|
---|
| 8648 | elif test -f "$srcdir/$f"; then
|
---|
| 8649 | # Source tree
|
---|
| 8650 | echo "$srcdir/$f"
|
---|
| 8651 | else
|
---|
| 8652 | # /dev/null tree
|
---|
| 8653 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8654 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8655 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8656 | fi;;
|
---|
[8063] | 8657 | esac
|
---|
| 8658 | done` || { (exit 1); exit 1; }
|
---|
[10192] | 8659 | _ACEOF
|
---|
| 8660 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8661 | sed "$ac_vpsub
|
---|
| 8662 | $extrasub
|
---|
[10192] | 8663 | _ACEOF
|
---|
| 8664 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8665 | :t
|
---|
| 8666 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8667 | s,@configure_input@,$configure_input,;t t
|
---|
| 8668 | s,@srcdir@,$ac_srcdir,;t t
|
---|
[10192] | 8669 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
[8063] | 8670 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
[10192] | 8671 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8672 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8673 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8674 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8675 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
[8063] | 8676 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8677 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8678 | rm -f $tmp/stdin
|
---|
| 8679 | if test x"$ac_file" != x-; then
|
---|
| 8680 | mv $tmp/out $ac_file
|
---|
| 8681 | else
|
---|
| 8682 | cat $tmp/out
|
---|
| 8683 | rm -f $tmp/out
|
---|
| 8684 | fi
|
---|
[3365] | 8685 |
|
---|
[8063] | 8686 | done
|
---|
[10192] | 8687 | _ACEOF
|
---|
| 8688 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8689 |
|
---|
| 8690 | #
|
---|
| 8691 | # CONFIG_HEADER section.
|
---|
| 8692 | #
|
---|
| 8693 |
|
---|
[3365] | 8694 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8695 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8696 | #
|
---|
| 8697 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[10192] | 8698 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8699 | ac_dB='[ ].*$,\1#\2'
|
---|
[8063] | 8700 | ac_dC=' '
|
---|
| 8701 | ac_dD=',;t'
|
---|
| 8702 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
[10192] | 8703 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
[8063] | 8704 | ac_uB='$,\1#\2define\3'
|
---|
[3365] | 8705 | ac_uC=' '
|
---|
[8063] | 8706 | ac_uD=',;t'
|
---|
[3365] | 8707 |
|
---|
[8063] | 8708 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8709 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8710 | case $ac_file in
|
---|
| 8711 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8712 | cat >$tmp/stdin
|
---|
| 8713 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8714 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8715 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8716 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8717 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8718 | esac
|
---|
| 8719 |
|
---|
[10192] | 8720 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8721 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[3365] | 8722 |
|
---|
[8063] | 8723 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8724 | # src tree.
|
---|
| 8725 | ac_file_inputs=`IFS=:
|
---|
| 8726 | for f in $ac_file_in; do
|
---|
| 8727 | case $f in
|
---|
| 8728 | -) echo $tmp/stdin ;;
|
---|
| 8729 | [\\/$]*)
|
---|
[10192] | 8730 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8731 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8732 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8733 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8734 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8735 | echo "$f";;
|
---|
[8063] | 8736 | *) # Relative
|
---|
[10192] | 8737 | if test -f "$f"; then
|
---|
| 8738 | # Build tree
|
---|
| 8739 | echo "$f"
|
---|
| 8740 | elif test -f "$srcdir/$f"; then
|
---|
| 8741 | # Source tree
|
---|
| 8742 | echo "$srcdir/$f"
|
---|
| 8743 | else
|
---|
| 8744 | # /dev/null tree
|
---|
| 8745 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8746 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8747 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8748 | fi;;
|
---|
[8063] | 8749 | esac
|
---|
| 8750 | done` || { (exit 1); exit 1; }
|
---|
| 8751 | # Remove the trailing spaces.
|
---|
[10192] | 8752 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[3365] | 8753 |
|
---|
[10192] | 8754 | _ACEOF
|
---|
[3365] | 8755 |
|
---|
[8063] | 8756 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8757 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8758 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8759 | # templates, and the second `#undef' templates.
|
---|
| 8760 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8761 | # config.status. Protect against being in an unquoted here document
|
---|
| 8762 | # in config.status.
|
---|
| 8763 | rm -f conftest.defines conftest.undefs
|
---|
| 8764 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8765 | # Putting comments in sed scripts is not portable.
|
---|
| 8766 | #
|
---|
| 8767 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8768 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8769 | # See the Autoconf documentation for `clear'.
|
---|
[10192] | 8770 | cat >confdef2sed.sed <<\_ACEOF
|
---|
[8063] | 8771 | s/[\\&,]/\\&/g
|
---|
| 8772 | s,[\\$`],\\&,g
|
---|
| 8773 | t clear
|
---|
| 8774 | : clear
|
---|
[10192] | 8775 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
[8063] | 8776 | t end
|
---|
[10192] | 8777 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
[8063] | 8778 | : end
|
---|
[10192] | 8779 | _ACEOF
|
---|
[8063] | 8780 | # If some macros were called several times there might be several times
|
---|
| 8781 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8782 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8783 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8784 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8785 | rm -f confdef2sed.sed
|
---|
[3365] | 8786 |
|
---|
| 8787 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8788 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8789 | # on some systems where configure will not decide to define it.
|
---|
[10192] | 8790 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8791 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8792 | _ACEOF
|
---|
[3365] | 8793 |
|
---|
[8063] | 8794 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8795 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8796 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
[10192] | 8797 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
[8063] | 8798 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8799 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8800 | rm -f conftest.tail
|
---|
| 8801 | while grep . conftest.defines >/dev/null
|
---|
| 8802 | do
|
---|
| 8803 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8804 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8805 | # Speed up: don't consider the non `#define' lines.
|
---|
[10192] | 8806 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8807 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8808 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8809 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8810 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8811 | echo 'CEOF
|
---|
| 8812 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8813 | rm -f $tmp/in
|
---|
| 8814 | mv $tmp/out $tmp/in
|
---|
| 8815 | ' >>$CONFIG_STATUS
|
---|
| 8816 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8817 | rm -f conftest.defines
|
---|
| 8818 | mv conftest.tail conftest.defines
|
---|
| 8819 | done
|
---|
| 8820 | rm -f conftest.defines
|
---|
[10192] | 8821 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
[8063] | 8822 | echo >>$CONFIG_STATUS
|
---|
[3365] | 8823 |
|
---|
[8063] | 8824 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8825 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8826 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[3365] | 8827 | rm -f conftest.tail
|
---|
[8063] | 8828 | while grep . conftest.undefs >/dev/null
|
---|
[3365] | 8829 | do
|
---|
[8063] | 8830 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8831 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8832 | # Speed up: don't consider the non `#undef'
|
---|
[10192] | 8833 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8834 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8835 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8836 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8837 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[3365] | 8838 | echo 'CEOF
|
---|
[8063] | 8839 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8840 | rm -f $tmp/in
|
---|
| 8841 | mv $tmp/out $tmp/in
|
---|
| 8842 | ' >>$CONFIG_STATUS
|
---|
| 8843 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8844 | rm -f conftest.undefs
|
---|
| 8845 | mv conftest.tail conftest.undefs
|
---|
[3365] | 8846 | done
|
---|
[8063] | 8847 | rm -f conftest.undefs
|
---|
[3365] | 8848 |
|
---|
[10192] | 8849 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8850 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8851 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8852 | # /* config.h. Generated by config.status. */
|
---|
[8063] | 8853 | if test x"$ac_file" = x-; then
|
---|
[10192] | 8854 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[3365] | 8855 | else
|
---|
[10192] | 8856 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
[8063] | 8857 | fi
|
---|
| 8858 | cat $tmp/in >>$tmp/config.h
|
---|
| 8859 | rm -f $tmp/in
|
---|
| 8860 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8861 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8862 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
[8063] | 8863 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8864 | else
|
---|
[10192] | 8865 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8866 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8867 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8868 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8869 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8870 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8871 | echo X"$ac_file" |
|
---|
| 8872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8874 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8875 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8876 | s/.*/./; q'`
|
---|
[10192] | 8877 | { if $as_mkdir_p; then
|
---|
| 8878 | mkdir -p "$ac_dir"
|
---|
| 8879 | else
|
---|
| 8880 | as_dir="$ac_dir"
|
---|
| 8881 | as_dirs=
|
---|
| 8882 | while test ! -d "$as_dir"; do
|
---|
| 8883 | as_dirs="$as_dir $as_dirs"
|
---|
| 8884 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8885 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8886 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8887 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8888 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8889 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8890 | echo X"$as_dir" |
|
---|
| 8891 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8892 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8893 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8894 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8895 | s/.*/./; q'`
|
---|
| 8896 | done
|
---|
| 8897 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8898 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8899 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8900 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8901 |
|
---|
| 8902 | rm -f $ac_file
|
---|
| 8903 | mv $tmp/config.h $ac_file
|
---|
[3365] | 8904 | fi
|
---|
[8063] | 8905 | else
|
---|
| 8906 | cat $tmp/config.h
|
---|
| 8907 | rm -f $tmp/config.h
|
---|
[3365] | 8908 | fi
|
---|
[8063] | 8909 | done
|
---|
[10192] | 8910 | _ACEOF
|
---|
| 8911 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8912 |
|
---|
[8063] | 8913 | #
|
---|
| 8914 | # CONFIG_COMMANDS section.
|
---|
| 8915 | #
|
---|
| 8916 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
| 8917 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
| 8918 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8919 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
| 8920 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8921 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
| 8922 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
| 8923 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
| 8924 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8925 | echo X"$ac_dest" |
|
---|
| 8926 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8927 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8928 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8929 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8930 | s/.*/./; q'`
|
---|
| 8931 | { if $as_mkdir_p; then
|
---|
| 8932 | mkdir -p "$ac_dir"
|
---|
| 8933 | else
|
---|
| 8934 | as_dir="$ac_dir"
|
---|
| 8935 | as_dirs=
|
---|
| 8936 | while test ! -d "$as_dir"; do
|
---|
| 8937 | as_dirs="$as_dir $as_dirs"
|
---|
| 8938 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8939 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8940 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8941 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8942 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8943 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8944 | echo X"$as_dir" |
|
---|
| 8945 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8946 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8947 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8948 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8949 | s/.*/./; q'`
|
---|
| 8950 | done
|
---|
| 8951 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8952 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8953 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8954 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8955 |
|
---|
[10192] | 8956 | ac_builddir=.
|
---|
| 8957 |
|
---|
| 8958 | if test "$ac_dir" != .; then
|
---|
| 8959 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8960 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8961 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8962 | else
|
---|
| 8963 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8964 | fi
|
---|
| 8965 |
|
---|
| 8966 | case $srcdir in
|
---|
| 8967 | .) # No --srcdir option. We are building in place.
|
---|
| 8968 | ac_srcdir=.
|
---|
| 8969 | if test -z "$ac_top_builddir"; then
|
---|
| 8970 | ac_top_srcdir=.
|
---|
| 8971 | else
|
---|
| 8972 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8973 | fi ;;
|
---|
| 8974 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8975 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8976 | ac_top_srcdir=$srcdir ;;
|
---|
| 8977 | *) # Relative path.
|
---|
| 8978 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8979 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8980 | esac
|
---|
| 8981 |
|
---|
| 8982 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8983 | # the directories may not exist.
|
---|
| 8984 | case `pwd` in
|
---|
| 8985 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8986 | *)
|
---|
| 8987 | case "$ac_dir" in
|
---|
| 8988 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8989 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8990 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8991 | esac;;
|
---|
| 8992 | esac
|
---|
| 8993 | case $ac_abs_builddir in
|
---|
| 8994 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8995 | *)
|
---|
| 8996 | case ${ac_top_builddir}. in
|
---|
| 8997 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8998 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8999 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 9000 | esac;;
|
---|
| 9001 | esac
|
---|
| 9002 | case $ac_abs_builddir in
|
---|
| 9003 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9004 | *)
|
---|
| 9005 | case $ac_srcdir in
|
---|
| 9006 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 9007 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9008 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 9009 | esac;;
|
---|
| 9010 | esac
|
---|
| 9011 | case $ac_abs_builddir in
|
---|
| 9012 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9013 | *)
|
---|
| 9014 | case $ac_top_srcdir in
|
---|
| 9015 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 9016 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9017 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 9018 | esac;;
|
---|
| 9019 | esac
|
---|
| 9020 |
|
---|
| 9021 |
|
---|
| 9022 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
| 9023 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
[8063] | 9024 | case $ac_dest in
|
---|
| 9025 | default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
| 9026 | esac
|
---|
| 9027 | done
|
---|
[10192] | 9028 | _ACEOF
|
---|
[3365] | 9029 |
|
---|
[10192] | 9030 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 9031 |
|
---|
| 9032 | { (exit 0); exit 0; }
|
---|
[10192] | 9033 | _ACEOF
|
---|
[3365] | 9034 | chmod +x $CONFIG_STATUS
|
---|
[8063] | 9035 | ac_clean_files=$ac_clean_files_save
|
---|
[3365] | 9036 |
|
---|
[10192] | 9037 |
|
---|
[8063] | 9038 | # configure is writing to config.log, and then calls config.status.
|
---|
| 9039 | # config.status does its own redirection, appending to config.log.
|
---|
| 9040 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 9041 | # by configure, so config.status won't be able to write to it; its
|
---|
| 9042 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 9043 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 9044 | # appended to by config.status. When coming back to configure, we
|
---|
| 9045 | # need to make the FD available again.
|
---|
| 9046 | if test "$no_create" != yes; then
|
---|
| 9047 | ac_cs_success=:
|
---|
[10192] | 9048 | ac_config_status_args=
|
---|
| 9049 | test "$silent" = yes &&
|
---|
| 9050 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[8063] | 9051 | exec 5>/dev/null
|
---|
[10192] | 9052 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[8063] | 9053 | exec 5>>config.log
|
---|
| 9054 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 9055 | # would make configure fail if this is the last instruction.
|
---|
| 9056 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 9057 | fi
|
---|
| 9058 |
|
---|