[16566] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[21327] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[16566] | 4 | #
|
---|
[21327] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16566] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
| 11 |
|
---|
[21327] | 12 | # Be Bourne compatible
|
---|
[16566] | 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
| 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+"$@"}'='"$@"'
|
---|
[21327] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
[16566] | 21 | fi
|
---|
[21327] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16566] | 23 |
|
---|
| 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.
|
---|
[21327] | 33 | $as_unset ENV MAIL MAILPATH
|
---|
[16566] | 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
|
---|
[21327] | 47 | $as_unset $as_var
|
---|
[16566] | 48 | fi
|
---|
| 49 | done
|
---|
| 50 |
|
---|
| 51 | # Required to use basename.
|
---|
[21327] | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16566] | 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
[21327] | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[16566] | 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | # Name of the executable.
|
---|
[21327] | 66 | as_me=`$as_basename "$0" ||
|
---|
[16566] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
[21327] | 69 | X"$0" : 'X\(/\)$' \| \
|
---|
| 70 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 71 | echo X/"$0" |
|
---|
[21327] | 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 75 | s/.*/./; q'`
|
---|
[16566] | 76 |
|
---|
| 77 |
|
---|
[21327] | 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
|
---|
[16566] | 85 |
|
---|
[21327] | 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
|
---|
[16566] | 97 | fi
|
---|
| 98 |
|
---|
| 99 |
|
---|
[21327] | 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
|
---|
[16566] | 116 |
|
---|
[21327] | 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 | '')
|
---|
[16566] | 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=.
|
---|
[21327] | 135 | for as_base in sh bash ksh sh5; do
|
---|
| 136 | case $as_dir in
|
---|
[16566] | 137 | /*)
|
---|
[21327] | 138 | if ("$as_dir/$as_base" -c '
|
---|
[16566] | 139 | as_lineno_1=$LINENO
|
---|
| 140 | as_lineno_2=$LINENO
|
---|
[21327] | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
[16566] | 142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[21327] | 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
|
---|
[16566] | 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
|
---|
[21327] | 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.
|
---|
[16566] | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[21327] | 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 164 | sed '=' <$as_myself |
|
---|
[16566] | 165 | sed '
|
---|
| 166 | N
|
---|
[21327] | 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[16566] | 170 | t loop
|
---|
[21327] | 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
[16566] | 173 | ' >$as_me.lineno &&
|
---|
[21327] | 174 | chmod +x $as_me.lineno ||
|
---|
[16566] | 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
|
---|
[21327] | 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
[16566] | 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 |
|
---|
[21327] | 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= ;;
|
---|
[16566] | 192 | esac
|
---|
| 193 |
|
---|
[21327] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16566] | 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
|
---|
[21327] | 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
|
---|
[16566] | 207 | as_ln_s='cp -p'
|
---|
[21327] | 208 | else
|
---|
| 209 | as_ln_s='ln -s'
|
---|
| 210 | fi
|
---|
[16566] | 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
|
---|
[21327] | 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[16566] | 217 |
|
---|
| 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
| 220 | else
|
---|
| 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
| 223 | fi
|
---|
| 224 |
|
---|
[21327] | 225 | as_executable_p="test -f"
|
---|
[16566] | 226 |
|
---|
| 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 |
|
---|
[21327] | 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
[16566] | 239 |
|
---|
[21327] | 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
[16566] | 242 |
|
---|
[21327] | 243 |
|
---|
[16566] | 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 |
|
---|
[21327] | 249 | exec 6>&1
|
---|
| 250 |
|
---|
[16566] | 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
| 254 | ac_default_prefix=/usr/local
|
---|
| 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 261 |
|
---|
[21327] | 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 |
|
---|
[16566] | 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
| 273 |
|
---|
| 274 | ac_unique_file="src/lib/text_t.h"
|
---|
| 275 | # Factoring default headers for most tests.
|
---|
| 276 | ac_includes_default="\
|
---|
| 277 | #include <stdio.h>
|
---|
[21327] | 278 | #if HAVE_SYS_TYPES_H
|
---|
[16566] | 279 | # include <sys/types.h>
|
---|
| 280 | #endif
|
---|
[21327] | 281 | #if HAVE_SYS_STAT_H
|
---|
[16566] | 282 | # include <sys/stat.h>
|
---|
| 283 | #endif
|
---|
[21327] | 284 | #if STDC_HEADERS
|
---|
[16566] | 285 | # include <stdlib.h>
|
---|
| 286 | # include <stddef.h>
|
---|
| 287 | #else
|
---|
[21327] | 288 | # if HAVE_STDLIB_H
|
---|
[16566] | 289 | # include <stdlib.h>
|
---|
| 290 | # endif
|
---|
| 291 | #endif
|
---|
[21327] | 292 | #if HAVE_STRING_H
|
---|
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
[16566] | 294 | # include <memory.h>
|
---|
| 295 | # endif
|
---|
| 296 | # include <string.h>
|
---|
| 297 | #endif
|
---|
[21327] | 298 | #if HAVE_STRINGS_H
|
---|
[16566] | 299 | # include <strings.h>
|
---|
| 300 | #endif
|
---|
[21327] | 301 | #if HAVE_INTTYPES_H
|
---|
[16566] | 302 | # include <inttypes.h>
|
---|
[21327] | 303 | #else
|
---|
| 304 | # if HAVE_STDINT_H
|
---|
| 305 | # include <stdint.h>
|
---|
| 306 | # endif
|
---|
[16566] | 307 | #endif
|
---|
[21327] | 308 | #if HAVE_UNISTD_H
|
---|
[16566] | 309 | # include <unistd.h>
|
---|
| 310 | #endif"
|
---|
| 311 |
|
---|
[21327] | 312 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
| 313 | ac_subdirs_all="$ac_subdirs_all indexers"
|
---|
[21409] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_JDBM USE_SQLITE ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
[16566] | 315 | ac_subst_files=''
|
---|
| 316 |
|
---|
| 317 | # Initialize some variables set by options.
|
---|
| 318 | ac_init_help=
|
---|
| 319 | ac_init_version=false
|
---|
| 320 | # The variables have the same names as the options, with
|
---|
| 321 | # dashes changed to underlines.
|
---|
| 322 | cache_file=/dev/null
|
---|
| 323 | exec_prefix=NONE
|
---|
| 324 | no_create=
|
---|
| 325 | no_recursion=
|
---|
| 326 | prefix=NONE
|
---|
| 327 | program_prefix=NONE
|
---|
| 328 | program_suffix=NONE
|
---|
| 329 | program_transform_name=s,x,x,
|
---|
| 330 | silent=
|
---|
| 331 | site=
|
---|
| 332 | srcdir=
|
---|
| 333 | verbose=
|
---|
| 334 | x_includes=NONE
|
---|
| 335 | x_libraries=NONE
|
---|
| 336 |
|
---|
| 337 | # Installation directory options.
|
---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 339 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 340 | # by default will actually change.
|
---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
| 342 | bindir='${exec_prefix}/bin'
|
---|
| 343 | sbindir='${exec_prefix}/sbin'
|
---|
| 344 | libexecdir='${exec_prefix}/libexec'
|
---|
[21327] | 345 | datadir='${prefix}/share'
|
---|
[16566] | 346 | sysconfdir='${prefix}/etc'
|
---|
| 347 | sharedstatedir='${prefix}/com'
|
---|
| 348 | localstatedir='${prefix}/var'
|
---|
[21327] | 349 | libdir='${exec_prefix}/lib'
|
---|
[16566] | 350 | includedir='${prefix}/include'
|
---|
| 351 | oldincludedir='/usr/include'
|
---|
[21327] | 352 | infodir='${prefix}/info'
|
---|
| 353 | mandir='${prefix}/man'
|
---|
[16566] | 354 |
|
---|
| 355 | ac_prev=
|
---|
| 356 | for ac_option
|
---|
| 357 | do
|
---|
| 358 | # If the previous option needs an argument, assign it.
|
---|
| 359 | if test -n "$ac_prev"; then
|
---|
[21327] | 360 | eval "$ac_prev=\$ac_option"
|
---|
[16566] | 361 | ac_prev=
|
---|
| 362 | continue
|
---|
| 363 | fi
|
---|
| 364 |
|
---|
[21327] | 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[16566] | 366 |
|
---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 368 |
|
---|
[21327] | 369 | case $ac_option in
|
---|
[16566] | 370 |
|
---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 372 | ac_prev=bindir ;;
|
---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 374 | bindir=$ac_optarg ;;
|
---|
| 375 |
|
---|
| 376 | -build | --build | --buil | --bui | --bu)
|
---|
| 377 | ac_prev=build_alias ;;
|
---|
| 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 379 | build_alias=$ac_optarg ;;
|
---|
| 380 |
|
---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 383 | ac_prev=cache_file ;;
|
---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 386 | cache_file=$ac_optarg ;;
|
---|
| 387 |
|
---|
| 388 | --config-cache | -C)
|
---|
| 389 | cache_file=config.cache ;;
|
---|
| 390 |
|
---|
[21327] | 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
[16566] | 392 | ac_prev=datadir ;;
|
---|
[21327] | 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 394 | | --da=*)
|
---|
[16566] | 395 | datadir=$ac_optarg ;;
|
---|
| 396 |
|
---|
| 397 | -disable-* | --disable-*)
|
---|
| 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
| 399 | # Reject names that are not valid shell variable names.
|
---|
[21327] | 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[16566] | 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 402 | { (exit 1); exit 1; }; }
|
---|
[21327] | 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 404 | eval "enable_$ac_feature=no" ;;
|
---|
[16566] | 405 |
|
---|
| 406 | -enable-* | --enable-*)
|
---|
| 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
| 408 | # Reject names that are not valid shell variable names.
|
---|
[21327] | 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[16566] | 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 411 | { (exit 1); exit 1; }; }
|
---|
[21327] | 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 413 | case $ac_option in
|
---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 415 | *) ac_optarg=yes ;;
|
---|
| 416 | esac
|
---|
| 417 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[16566] | 418 |
|
---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 421 | | --exec | --exe | --ex)
|
---|
| 422 | ac_prev=exec_prefix ;;
|
---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 425 | | --exec=* | --exe=* | --ex=*)
|
---|
| 426 | exec_prefix=$ac_optarg ;;
|
---|
| 427 |
|
---|
| 428 | -gas | --gas | --ga | --g)
|
---|
| 429 | # Obsolete; use --with-gas.
|
---|
| 430 | with_gas=yes ;;
|
---|
| 431 |
|
---|
| 432 | -help | --help | --hel | --he | -h)
|
---|
| 433 | ac_init_help=long ;;
|
---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 435 | ac_init_help=recursive ;;
|
---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 437 | ac_init_help=short ;;
|
---|
| 438 |
|
---|
| 439 | -host | --host | --hos | --ho)
|
---|
| 440 | ac_prev=host_alias ;;
|
---|
| 441 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 442 | host_alias=$ac_optarg ;;
|
---|
| 443 |
|
---|
| 444 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 445 | | --includ | --inclu | --incl | --inc)
|
---|
| 446 | ac_prev=includedir ;;
|
---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 449 | includedir=$ac_optarg ;;
|
---|
| 450 |
|
---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 452 | ac_prev=infodir ;;
|
---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 454 | infodir=$ac_optarg ;;
|
---|
| 455 |
|
---|
| 456 | -libdir | --libdir | --libdi | --libd)
|
---|
| 457 | ac_prev=libdir ;;
|
---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 459 | libdir=$ac_optarg ;;
|
---|
| 460 |
|
---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 462 | | --libexe | --libex | --libe)
|
---|
| 463 | ac_prev=libexecdir ;;
|
---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 465 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 466 | libexecdir=$ac_optarg ;;
|
---|
| 467 |
|
---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[21327] | 469 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 470 | | --locals | --local | --loca | --loc | --lo)
|
---|
[16566] | 471 | ac_prev=localstatedir ;;
|
---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[21327] | 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[16566] | 475 | localstatedir=$ac_optarg ;;
|
---|
| 476 |
|
---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 478 | ac_prev=mandir ;;
|
---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 480 | mandir=$ac_optarg ;;
|
---|
| 481 |
|
---|
| 482 | -nfp | --nfp | --nf)
|
---|
| 483 | # Obsolete; use --without-fp.
|
---|
| 484 | with_fp=no ;;
|
---|
| 485 |
|
---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 487 | | --no-cr | --no-c | -n)
|
---|
| 488 | no_create=yes ;;
|
---|
| 489 |
|
---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 492 | no_recursion=yes ;;
|
---|
| 493 |
|
---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 496 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 497 | ac_prev=oldincludedir ;;
|
---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 501 | oldincludedir=$ac_optarg ;;
|
---|
| 502 |
|
---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 504 | ac_prev=prefix ;;
|
---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 506 | prefix=$ac_optarg ;;
|
---|
| 507 |
|
---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 509 | | --program-pre | --program-pr | --program-p)
|
---|
| 510 | ac_prev=program_prefix ;;
|
---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 513 | program_prefix=$ac_optarg ;;
|
---|
| 514 |
|
---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 516 | | --program-suf | --program-su | --program-s)
|
---|
| 517 | ac_prev=program_suffix ;;
|
---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 520 | program_suffix=$ac_optarg ;;
|
---|
| 521 |
|
---|
| 522 | -program-transform-name | --program-transform-name \
|
---|
| 523 | | --program-transform-nam | --program-transform-na \
|
---|
| 524 | | --program-transform-n | --program-transform- \
|
---|
| 525 | | --program-transform | --program-transfor \
|
---|
| 526 | | --program-transfo | --program-transf \
|
---|
| 527 | | --program-trans | --program-tran \
|
---|
| 528 | | --progr-tra | --program-tr | --program-t)
|
---|
| 529 | ac_prev=program_transform_name ;;
|
---|
| 530 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 532 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 533 | | --program-transform=* | --program-transfor=* \
|
---|
| 534 | | --program-transfo=* | --program-transf=* \
|
---|
| 535 | | --program-trans=* | --program-tran=* \
|
---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 537 | program_transform_name=$ac_optarg ;;
|
---|
| 538 |
|
---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 540 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 541 | silent=yes ;;
|
---|
| 542 |
|
---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 544 | ac_prev=sbindir ;;
|
---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 546 | | --sbi=* | --sb=*)
|
---|
| 547 | sbindir=$ac_optarg ;;
|
---|
| 548 |
|
---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 552 | | --sha | --sh)
|
---|
| 553 | ac_prev=sharedstatedir ;;
|
---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 557 | | --sha=* | --sh=*)
|
---|
| 558 | sharedstatedir=$ac_optarg ;;
|
---|
| 559 |
|
---|
| 560 | -site | --site | --sit)
|
---|
| 561 | ac_prev=site ;;
|
---|
| 562 | -site=* | --site=* | --sit=*)
|
---|
| 563 | site=$ac_optarg ;;
|
---|
| 564 |
|
---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 566 | ac_prev=srcdir ;;
|
---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 568 | srcdir=$ac_optarg ;;
|
---|
| 569 |
|
---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 572 | ac_prev=sysconfdir ;;
|
---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 575 | sysconfdir=$ac_optarg ;;
|
---|
| 576 |
|
---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 578 | ac_prev=target_alias ;;
|
---|
| 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 580 | target_alias=$ac_optarg ;;
|
---|
| 581 |
|
---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 583 | verbose=yes ;;
|
---|
| 584 |
|
---|
| 585 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 586 | ac_init_version=: ;;
|
---|
| 587 |
|
---|
| 588 | -with-* | --with-*)
|
---|
| 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
| 590 | # Reject names that are not valid shell variable names.
|
---|
[21327] | 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[16566] | 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 593 | { (exit 1); exit 1; }; }
|
---|
[21327] | 594 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 595 | case $ac_option in
|
---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 597 | *) ac_optarg=yes ;;
|
---|
| 598 | esac
|
---|
| 599 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[16566] | 600 |
|
---|
| 601 | -without-* | --without-*)
|
---|
| 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
| 603 | # Reject names that are not valid shell variable names.
|
---|
[21327] | 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[16566] | 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 606 | { (exit 1); exit 1; }; }
|
---|
[21327] | 607 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 608 | eval "with_$ac_package=no" ;;
|
---|
[16566] | 609 |
|
---|
| 610 | --x)
|
---|
| 611 | # Obsolete; use --with-x.
|
---|
| 612 | with_x=yes ;;
|
---|
| 613 |
|
---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 616 | ac_prev=x_includes ;;
|
---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 619 | x_includes=$ac_optarg ;;
|
---|
| 620 |
|
---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 623 | ac_prev=x_libraries ;;
|
---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 626 | x_libraries=$ac_optarg ;;
|
---|
| 627 |
|
---|
| 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 629 | Try \`$0 --help' for more information." >&2
|
---|
| 630 | { (exit 1); exit 1; }; }
|
---|
| 631 | ;;
|
---|
| 632 |
|
---|
| 633 | *=*)
|
---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 635 | # Reject names that are not valid shell variable names.
|
---|
| 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 638 | { (exit 1); exit 1; }; }
|
---|
[21327] | 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 640 | eval "$ac_envvar='$ac_optarg'"
|
---|
[16566] | 641 | export $ac_envvar ;;
|
---|
| 642 |
|
---|
| 643 | *)
|
---|
| 644 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
| 649 | ;;
|
---|
| 650 |
|
---|
| 651 | esac
|
---|
| 652 | done
|
---|
| 653 |
|
---|
| 654 | if test -n "$ac_prev"; then
|
---|
| 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 656 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 657 | { (exit 1); exit 1; }; }
|
---|
| 658 | fi
|
---|
| 659 |
|
---|
[21327] | 660 | # Be sure to have absolute paths.
|
---|
| 661 | for ac_var in exec_prefix prefix
|
---|
[16566] | 662 | do
|
---|
[21327] | 663 | eval ac_val=$`echo $ac_var`
|
---|
[16566] | 664 | case $ac_val in
|
---|
[21327] | 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 667 | { (exit 1); exit 1; }; };;
|
---|
[16566] | 668 | esac
|
---|
| 669 | done
|
---|
| 670 |
|
---|
[21327] | 671 | # Be sure to have absolute paths.
|
---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
| 674 | do
|
---|
| 675 | eval ac_val=$`echo $ac_var`
|
---|
| 676 | case $ac_val in
|
---|
| 677 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 679 | { (exit 1); exit 1; }; };;
|
---|
| 680 | esac
|
---|
| 681 | done
|
---|
| 682 |
|
---|
[16566] | 683 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 684 | # used to hold the argument of --host etc.
|
---|
| 685 | # FIXME: To remove some day.
|
---|
| 686 | build=$build_alias
|
---|
| 687 | host=$host_alias
|
---|
| 688 | target=$target_alias
|
---|
| 689 |
|
---|
| 690 | # FIXME: To remove some day.
|
---|
| 691 | if test "x$host_alias" != x; then
|
---|
| 692 | if test "x$build_alias" = x; then
|
---|
| 693 | cross_compiling=maybe
|
---|
| 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 696 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 697 | cross_compiling=yes
|
---|
| 698 | fi
|
---|
| 699 | fi
|
---|
| 700 |
|
---|
| 701 | ac_tool_prefix=
|
---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 703 |
|
---|
| 704 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 705 |
|
---|
| 706 |
|
---|
| 707 | # Find the source files, if location was not specified.
|
---|
| 708 | if test -z "$srcdir"; then
|
---|
| 709 | ac_srcdir_defaulted=yes
|
---|
[21327] | 710 | # Try the directory containing this script, then its parent.
|
---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
[16566] | 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 714 | X"$0" : 'X\(//\)$' \| \
|
---|
[21327] | 715 | X"$0" : 'X\(/\)' \| \
|
---|
| 716 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 717 | echo X"$0" |
|
---|
[21327] | 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 721 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 722 | s/.*/./; q'`
|
---|
[16566] | 723 | srcdir=$ac_confdir
|
---|
[21327] | 724 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
[16566] | 725 | srcdir=..
|
---|
| 726 | fi
|
---|
| 727 | else
|
---|
| 728 | ac_srcdir_defaulted=no
|
---|
| 729 | fi
|
---|
[21327] | 730 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
[16566] | 733 | { (exit 1); exit 1; }; }
|
---|
[21327] | 734 | else
|
---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 736 | { (exit 1); exit 1; }; }
|
---|
| 737 | fi
|
---|
[20846] | 738 | fi
|
---|
[21327] | 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
[16566] | 741 | { (exit 1); exit 1; }; }
|
---|
[21327] | 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 743 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 744 | ac_env_build_alias_value=$build_alias
|
---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 746 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 747 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 748 | ac_env_host_alias_value=$host_alias
|
---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 750 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 751 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 752 | ac_env_target_alias_value=$target_alias
|
---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 754 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 755 | ac_env_CC_set=${CC+set}
|
---|
| 756 | ac_env_CC_value=$CC
|
---|
| 757 | ac_cv_env_CC_set=${CC+set}
|
---|
| 758 | ac_cv_env_CC_value=$CC
|
---|
| 759 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 760 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 761 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 762 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 771 | ac_env_CXX_set=${CXX+set}
|
---|
| 772 | ac_env_CXX_value=$CXX
|
---|
| 773 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 774 | ac_cv_env_CXX_value=$CXX
|
---|
| 775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 776 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 779 | ac_env_CPP_set=${CPP+set}
|
---|
| 780 | ac_env_CPP_value=$CPP
|
---|
| 781 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 782 | ac_cv_env_CPP_value=$CPP
|
---|
[16566] | 783 |
|
---|
| 784 | #
|
---|
| 785 | # Report the --help message.
|
---|
| 786 | #
|
---|
| 787 | if test "$ac_init_help" = "long"; then
|
---|
| 788 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 789 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 790 | cat <<_ACEOF
|
---|
| 791 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 792 |
|
---|
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 794 |
|
---|
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 797 |
|
---|
| 798 | Defaults for the options are specified in brackets.
|
---|
| 799 |
|
---|
| 800 | Configuration:
|
---|
| 801 | -h, --help display this help and exit
|
---|
| 802 | --help=short display options specific to this package
|
---|
| 803 | --help=recursive display the short help of all the included packages
|
---|
| 804 | -V, --version display version information and exit
|
---|
| 805 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 806 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 807 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 808 | -n, --no-create do not create output files
|
---|
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 810 |
|
---|
[21327] | 811 | _ACEOF
|
---|
| 812 |
|
---|
| 813 | cat <<_ACEOF
|
---|
[16566] | 814 | Installation directories:
|
---|
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 816 | [$ac_default_prefix]
|
---|
| 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 818 | [PREFIX]
|
---|
| 819 |
|
---|
| 820 | By default, \`make install' will install all the files in
|
---|
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 823 | for instance \`--prefix=\$HOME'.
|
---|
| 824 |
|
---|
| 825 | For better control, use the options below.
|
---|
| 826 |
|
---|
| 827 | Fine tuning of the installation directories:
|
---|
| 828 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
[21327] | 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
[16566] | 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 835 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 836 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
[21327] | 838 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 839 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[16566] | 840 | _ACEOF
|
---|
| 841 |
|
---|
| 842 | cat <<\_ACEOF
|
---|
| 843 |
|
---|
| 844 | System types:
|
---|
| 845 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 846 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 847 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 848 | _ACEOF
|
---|
| 849 | fi
|
---|
| 850 |
|
---|
| 851 | if test -n "$ac_init_help"; then
|
---|
| 852 |
|
---|
| 853 | cat <<\_ACEOF
|
---|
| 854 |
|
---|
| 855 | Optional Features:
|
---|
| 856 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 857 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 858 | --enable-corba Enable CORBA support
|
---|
| 859 | --enable-z3950 Enable Z39.50 client support
|
---|
| 860 | --disable-yaz Disable YAZ compilation
|
---|
| 861 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[21409] | 862 | --disable-jdbm Disable JDBM support
|
---|
[16566] | 863 | --disable-sqlite Disable SQLite support
|
---|
[21365] | 864 | --enable-jni Enable JNI compilation
|
---|
[21327] | 865 | --disable-mg Disable MG compilation
|
---|
| 866 | --disable-mgpp Disable MGPP compilation
|
---|
| 867 | --disable-lucene Disable Lucene compilation
|
---|
[16566] | 868 |
|
---|
| 869 | Optional Packages:
|
---|
| 870 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 871 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 872 | --with-micodir Use installed MICO directory
|
---|
| 873 | --with-dmalloc use dmalloc, as in
|
---|
| 874 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 875 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 876 |
|
---|
| 877 | Some influential environment variables:
|
---|
| 878 | CC C compiler command
|
---|
| 879 | CFLAGS C compiler flags
|
---|
| 880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 881 | nonstandard directory <lib dir>
|
---|
[21327] | 882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 883 | headers in a nonstandard directory <include dir>
|
---|
[16566] | 884 | CXX C++ compiler command
|
---|
| 885 | CXXFLAGS C++ compiler flags
|
---|
| 886 | CPP C preprocessor
|
---|
| 887 |
|
---|
| 888 | Use these variables to override the choices made by `configure' or to help
|
---|
| 889 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 890 |
|
---|
| 891 | _ACEOF
|
---|
| 892 | fi
|
---|
| 893 |
|
---|
| 894 | if test "$ac_init_help" = "recursive"; then
|
---|
| 895 | # If there are subdirs, report their specific --help.
|
---|
[21327] | 896 | ac_popdir=`pwd`
|
---|
[16566] | 897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[21327] | 898 | test -d $ac_dir || continue
|
---|
[16566] | 899 | ac_builddir=.
|
---|
| 900 |
|
---|
[21327] | 901 | if test "$ac_dir" != .; then
|
---|
[16566] | 902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21327] | 903 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 905 | else
|
---|
| 906 | ac_dir_suffix= ac_top_builddir=
|
---|
| 907 | fi
|
---|
[16566] | 908 |
|
---|
| 909 | case $srcdir in
|
---|
[21327] | 910 | .) # No --srcdir option. We are building in place.
|
---|
[16566] | 911 | ac_srcdir=.
|
---|
[21327] | 912 | if test -z "$ac_top_builddir"; then
|
---|
| 913 | ac_top_srcdir=.
|
---|
| 914 | else
|
---|
| 915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 916 | fi ;;
|
---|
| 917 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16566] | 918 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21327] | 919 | ac_top_srcdir=$srcdir ;;
|
---|
| 920 | *) # Relative path.
|
---|
| 921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 922 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16566] | 923 | esac
|
---|
| 924 |
|
---|
[21327] | 925 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 926 | # the directories may not exist.
|
---|
| 927 | case `pwd` in
|
---|
| 928 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 929 | *)
|
---|
| 930 | case "$ac_dir" in
|
---|
| 931 | .) ac_abs_builddir=`pwd`;;
|
---|
| 932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 933 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 934 | esac;;
|
---|
| 935 | esac
|
---|
| 936 | case $ac_abs_builddir in
|
---|
| 937 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 938 | *)
|
---|
| 939 | case ${ac_top_builddir}. in
|
---|
| 940 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 943 | esac;;
|
---|
| 944 | esac
|
---|
| 945 | case $ac_abs_builddir in
|
---|
| 946 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 947 | *)
|
---|
| 948 | case $ac_srcdir in
|
---|
| 949 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 952 | esac;;
|
---|
| 953 | esac
|
---|
| 954 | case $ac_abs_builddir in
|
---|
| 955 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 956 | *)
|
---|
| 957 | case $ac_top_srcdir in
|
---|
| 958 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 961 | esac;;
|
---|
| 962 | esac
|
---|
| 963 |
|
---|
| 964 | cd $ac_dir
|
---|
| 965 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 966 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 967 | echo
|
---|
| 968 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 969 | elif test -f $ac_srcdir/configure; then
|
---|
| 970 | echo
|
---|
| 971 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 972 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 973 | test -f $ac_srcdir/configure.in; then
|
---|
| 974 | echo
|
---|
| 975 | $ac_configure --help
|
---|
[16566] | 976 | else
|
---|
| 977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[21327] | 978 | fi
|
---|
| 979 | cd $ac_popdir
|
---|
[16566] | 980 | done
|
---|
| 981 | fi
|
---|
| 982 |
|
---|
[21327] | 983 | test -n "$ac_init_help" && exit 0
|
---|
[16566] | 984 | if $ac_init_version; then
|
---|
| 985 | cat <<\_ACEOF
|
---|
| 986 |
|
---|
[21327] | 987 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16566] | 988 | This configure script is free software; the Free Software Foundation
|
---|
| 989 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 990 | _ACEOF
|
---|
[21327] | 991 | exit 0
|
---|
[16566] | 992 | fi
|
---|
[21327] | 993 | exec 5>config.log
|
---|
| 994 | cat >&5 <<_ACEOF
|
---|
[16566] | 995 | This file contains any messages produced by compilers while
|
---|
| 996 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 997 |
|
---|
| 998 | It was created by $as_me, which was
|
---|
[21327] | 999 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[16566] | 1000 |
|
---|
| 1001 | $ $0 $@
|
---|
| 1002 |
|
---|
| 1003 | _ACEOF
|
---|
| 1004 | {
|
---|
| 1005 | cat <<_ASUNAME
|
---|
| 1006 | ## --------- ##
|
---|
| 1007 | ## Platform. ##
|
---|
| 1008 | ## --------- ##
|
---|
| 1009 |
|
---|
| 1010 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1011 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1012 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1013 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1014 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1015 |
|
---|
| 1016 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1018 |
|
---|
| 1019 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1020 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1021 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[21327] | 1022 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
[16566] | 1023 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1024 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1025 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1026 |
|
---|
| 1027 | _ASUNAME
|
---|
| 1028 |
|
---|
| 1029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1030 | for as_dir in $PATH
|
---|
| 1031 | do
|
---|
| 1032 | IFS=$as_save_IFS
|
---|
| 1033 | test -z "$as_dir" && as_dir=.
|
---|
| 1034 | echo "PATH: $as_dir"
|
---|
| 1035 | done
|
---|
| 1036 |
|
---|
| 1037 | } >&5
|
---|
| 1038 |
|
---|
| 1039 | cat >&5 <<_ACEOF
|
---|
| 1040 |
|
---|
| 1041 |
|
---|
| 1042 | ## ----------- ##
|
---|
| 1043 | ## Core tests. ##
|
---|
| 1044 | ## ----------- ##
|
---|
| 1045 |
|
---|
| 1046 | _ACEOF
|
---|
| 1047 |
|
---|
| 1048 |
|
---|
| 1049 | # Keep a trace of the command line.
|
---|
| 1050 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1051 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1052 | # Also quote any args containing shell meta-characters.
|
---|
| 1053 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1054 | ac_configure_args=
|
---|
| 1055 | ac_configure_args0=
|
---|
| 1056 | ac_configure_args1=
|
---|
[21327] | 1057 | ac_sep=
|
---|
[16566] | 1058 | ac_must_keep_next=false
|
---|
| 1059 | for ac_pass in 1 2
|
---|
| 1060 | do
|
---|
| 1061 | for ac_arg
|
---|
| 1062 | do
|
---|
| 1063 | case $ac_arg in
|
---|
| 1064 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1066 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1067 | continue ;;
|
---|
[21327] | 1068 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
[16566] | 1069 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1070 | esac
|
---|
| 1071 | case $ac_pass in
|
---|
| 1072 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1073 | 2)
|
---|
| 1074 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1075 | if test $ac_must_keep_next = true; then
|
---|
| 1076 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1077 | else
|
---|
| 1078 | case $ac_arg in
|
---|
| 1079 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1080 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1081 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1082 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1083 | case "$ac_configure_args0 " in
|
---|
| 1084 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1085 | esac
|
---|
| 1086 | ;;
|
---|
| 1087 | -* ) ac_must_keep_next=true ;;
|
---|
| 1088 | esac
|
---|
| 1089 | fi
|
---|
[21327] | 1090 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1091 | # Get rid of the leading space.
|
---|
| 1092 | ac_sep=" "
|
---|
[16566] | 1093 | ;;
|
---|
| 1094 | esac
|
---|
| 1095 | done
|
---|
| 1096 | done
|
---|
| 1097 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1098 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1099 |
|
---|
| 1100 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1101 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1102 | # would cause problems or look ugly.
|
---|
[21327] | 1103 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1104 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[16566] | 1105 | trap 'exit_status=$?
|
---|
| 1106 | # Save into config.log some information that might help in debugging.
|
---|
| 1107 | {
|
---|
| 1108 | echo
|
---|
| 1109 |
|
---|
| 1110 | cat <<\_ASBOX
|
---|
| 1111 | ## ---------------- ##
|
---|
| 1112 | ## Cache variables. ##
|
---|
| 1113 | ## ---------------- ##
|
---|
| 1114 | _ASBOX
|
---|
| 1115 | echo
|
---|
| 1116 | # The following way of writing the cache mishandles newlines in values,
|
---|
[21327] | 1117 | {
|
---|
[16566] | 1118 | (set) 2>&1 |
|
---|
[21327] | 1119 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1120 | *ac_space=\ *)
|
---|
[16566] | 1121 | sed -n \
|
---|
[21327] | 1122 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1123 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1124 | ;;
|
---|
[16566] | 1125 | *)
|
---|
[21327] | 1126 | sed -n \
|
---|
| 1127 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[16566] | 1128 | ;;
|
---|
[21327] | 1129 | esac;
|
---|
| 1130 | }
|
---|
[16566] | 1131 | echo
|
---|
| 1132 |
|
---|
| 1133 | cat <<\_ASBOX
|
---|
| 1134 | ## ----------------- ##
|
---|
| 1135 | ## Output variables. ##
|
---|
| 1136 | ## ----------------- ##
|
---|
| 1137 | _ASBOX
|
---|
| 1138 | echo
|
---|
| 1139 | for ac_var in $ac_subst_vars
|
---|
| 1140 | do
|
---|
[21327] | 1141 | eval ac_val=$`echo $ac_var`
|
---|
| 1142 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[16566] | 1143 | done | sort
|
---|
| 1144 | echo
|
---|
| 1145 |
|
---|
| 1146 | if test -n "$ac_subst_files"; then
|
---|
| 1147 | cat <<\_ASBOX
|
---|
[21327] | 1148 | ## ------------- ##
|
---|
| 1149 | ## Output files. ##
|
---|
| 1150 | ## ------------- ##
|
---|
[16566] | 1151 | _ASBOX
|
---|
| 1152 | echo
|
---|
| 1153 | for ac_var in $ac_subst_files
|
---|
| 1154 | do
|
---|
[21327] | 1155 | eval ac_val=$`echo $ac_var`
|
---|
| 1156 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[16566] | 1157 | done | sort
|
---|
| 1158 | echo
|
---|
| 1159 | fi
|
---|
| 1160 |
|
---|
| 1161 | if test -s confdefs.h; then
|
---|
| 1162 | cat <<\_ASBOX
|
---|
| 1163 | ## ----------- ##
|
---|
| 1164 | ## confdefs.h. ##
|
---|
| 1165 | ## ----------- ##
|
---|
| 1166 | _ASBOX
|
---|
| 1167 | echo
|
---|
[21327] | 1168 | sed "/^$/d" confdefs.h | sort
|
---|
[16566] | 1169 | echo
|
---|
| 1170 | fi
|
---|
| 1171 | test "$ac_signal" != 0 &&
|
---|
| 1172 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1173 | echo "$as_me: exit $exit_status"
|
---|
| 1174 | } >&5
|
---|
[21327] | 1175 | rm -f core *.core &&
|
---|
| 1176 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[16566] | 1177 | exit $exit_status
|
---|
[21327] | 1178 | ' 0
|
---|
[16566] | 1179 | for ac_signal in 1 2 13 15; do
|
---|
| 1180 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1181 | done
|
---|
| 1182 | ac_signal=0
|
---|
| 1183 |
|
---|
| 1184 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[21327] | 1185 | rm -rf conftest* confdefs.h
|
---|
| 1186 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1187 | echo >confdefs.h
|
---|
[16566] | 1188 |
|
---|
| 1189 | # Predefined preprocessor variables.
|
---|
| 1190 |
|
---|
| 1191 | cat >>confdefs.h <<_ACEOF
|
---|
| 1192 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1193 | _ACEOF
|
---|
| 1194 |
|
---|
| 1195 |
|
---|
| 1196 | cat >>confdefs.h <<_ACEOF
|
---|
| 1197 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1198 | _ACEOF
|
---|
| 1199 |
|
---|
| 1200 |
|
---|
| 1201 | cat >>confdefs.h <<_ACEOF
|
---|
| 1202 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1203 | _ACEOF
|
---|
| 1204 |
|
---|
| 1205 |
|
---|
| 1206 | cat >>confdefs.h <<_ACEOF
|
---|
| 1207 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1208 | _ACEOF
|
---|
| 1209 |
|
---|
| 1210 |
|
---|
| 1211 | cat >>confdefs.h <<_ACEOF
|
---|
| 1212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1213 | _ACEOF
|
---|
| 1214 |
|
---|
| 1215 |
|
---|
| 1216 | # Let the site file select an alternate cache file if it wants to.
|
---|
| 1217 | # Prefer explicitly selected file to automatically selected ones.
|
---|
[21327] | 1218 | if test -z "$CONFIG_SITE"; then
|
---|
| 1219 | if test "x$prefix" != xNONE; then
|
---|
| 1220 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1221 | else
|
---|
| 1222 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1223 | fi
|
---|
[16566] | 1224 | fi
|
---|
[21327] | 1225 | for ac_site_file in $CONFIG_SITE; do
|
---|
[16566] | 1226 | if test -r "$ac_site_file"; then
|
---|
| 1227 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1228 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1229 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
| 1230 | . "$ac_site_file"
|
---|
| 1231 | fi
|
---|
| 1232 | done
|
---|
| 1233 |
|
---|
| 1234 | if test -r "$cache_file"; then
|
---|
| 1235 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1236 | # files actually), so we avoid doing that.
|
---|
| 1237 | if test -f "$cache_file"; then
|
---|
| 1238 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1239 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1240 | case $cache_file in
|
---|
[21327] | 1241 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1242 | *) . ./$cache_file;;
|
---|
[16566] | 1243 | esac
|
---|
| 1244 | fi
|
---|
| 1245 | else
|
---|
| 1246 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1247 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1248 | >$cache_file
|
---|
| 1249 | fi
|
---|
| 1250 |
|
---|
| 1251 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1252 | # value.
|
---|
| 1253 | ac_cache_corrupted=false
|
---|
[21327] | 1254 | for ac_var in `(set) 2>&1 |
|
---|
| 1255 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[16566] | 1256 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1257 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[21327] | 1258 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1259 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
[16566] | 1260 | case $ac_old_set,$ac_new_set in
|
---|
| 1261 | set,)
|
---|
| 1262 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1263 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1264 | ac_cache_corrupted=: ;;
|
---|
| 1265 | ,set)
|
---|
| 1266 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1267 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1268 | ac_cache_corrupted=: ;;
|
---|
| 1269 | ,);;
|
---|
| 1270 | *)
|
---|
| 1271 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1273 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1274 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1275 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1276 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1277 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1278 | ac_cache_corrupted=:
|
---|
| 1279 | fi;;
|
---|
| 1280 | esac
|
---|
| 1281 | # Pass precious variables to config.status.
|
---|
| 1282 | if test "$ac_new_set" = set; then
|
---|
| 1283 | case $ac_new_val in
|
---|
[21327] | 1284 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1285 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[16566] | 1286 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1287 | esac
|
---|
| 1288 | case " $ac_configure_args " in
|
---|
| 1289 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1290 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1291 | esac
|
---|
| 1292 | fi
|
---|
| 1293 | done
|
---|
| 1294 | if $ac_cache_corrupted; then
|
---|
| 1295 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1296 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1297 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1298 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1299 | { (exit 1); exit 1; }; }
|
---|
| 1300 | fi
|
---|
| 1301 |
|
---|
[21327] | 1302 | ac_ext=c
|
---|
| 1303 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[16566] | 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
| 1323 |
|
---|
| 1324 |
|
---|
| 1325 |
|
---|
[21327] | 1326 | ac_config_headers="$ac_config_headers config.h"
|
---|
[16566] | 1327 |
|
---|
| 1328 |
|
---|
| 1329 |
|
---|
| 1330 |
|
---|
[21327] | 1331 |
|
---|
[16566] | 1332 | PACKAGE=gsdl
|
---|
| 1333 | VERSION=2.82-svn
|
---|
| 1334 | cat >>confdefs.h <<_ACEOF
|
---|
| 1335 | #define PACKAGE "$PACKAGE"
|
---|
| 1336 | _ACEOF
|
---|
| 1337 |
|
---|
| 1338 | cat >>confdefs.h <<_ACEOF
|
---|
| 1339 | #define VERSION "$VERSION"
|
---|
| 1340 | _ACEOF
|
---|
| 1341 |
|
---|
| 1342 |
|
---|
| 1343 |
|
---|
| 1344 |
|
---|
| 1345 | USE_FASTCGI=0
|
---|
| 1346 | if test USE_FASTCGI = 1; then
|
---|
| 1347 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1348 | #define USE_FASTCGI 1
|
---|
| 1349 | _ACEOF
|
---|
| 1350 |
|
---|
| 1351 |
|
---|
| 1352 | fi
|
---|
| 1353 |
|
---|
| 1354 | if test USE_LANGACTION = 1; then
|
---|
| 1355 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1356 | #define USE_LANGACTION 1
|
---|
| 1357 | _ACEOF
|
---|
| 1358 |
|
---|
| 1359 |
|
---|
| 1360 | fi
|
---|
| 1361 |
|
---|
[21327] | 1362 | # Check whether --enable-corba or --disable-corba was given.
|
---|
[16566] | 1363 | if test "${enable_corba+set}" = set; then
|
---|
[21327] | 1364 | enableval="$enable_corba"
|
---|
| 1365 | USE_CORBA=1
|
---|
[16566] | 1366 | else
|
---|
| 1367 | USE_CORBA=0
|
---|
[21327] | 1368 | fi;
|
---|
[16566] | 1369 | cat >>confdefs.h <<_ACEOF
|
---|
| 1370 | #define USE_CORBA $USE_CORBA
|
---|
| 1371 | _ACEOF
|
---|
| 1372 |
|
---|
| 1373 |
|
---|
| 1374 |
|
---|
| 1375 |
|
---|
[21327] | 1376 | # Check whether --with-micodir or --without-micodir was given.
|
---|
[16566] | 1377 | if test "${with_micodir+set}" = set; then
|
---|
[21327] | 1378 | withval="$with_micodir"
|
---|
| 1379 | MICO_DIR=$enableval
|
---|
[16566] | 1380 | else
|
---|
| 1381 | MICO_DIR="default"
|
---|
[21327] | 1382 | fi;
|
---|
[16566] | 1383 | cat >>confdefs.h <<_ACEOF
|
---|
| 1384 | #define MICO_DIR "$MICO_DIR"
|
---|
| 1385 | _ACEOF
|
---|
| 1386 |
|
---|
| 1387 |
|
---|
| 1388 |
|
---|
[21327] | 1389 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
[16566] | 1390 | if test "${enable_z3950+set}" = set; then
|
---|
[21327] | 1391 | enableval="$enable_z3950"
|
---|
| 1392 | USE_Z3950=1
|
---|
[16566] | 1393 | else
|
---|
| 1394 | USE_Z3950=0
|
---|
[21327] | 1395 | fi;
|
---|
[16566] | 1396 | if test USE_Z3950 = 1; then
|
---|
| 1397 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1398 | #define USE_Z3950 $USE_Z3950
|
---|
| 1399 | _ACEOF
|
---|
| 1400 |
|
---|
| 1401 |
|
---|
| 1402 | fi
|
---|
| 1403 |
|
---|
[21327] | 1404 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
[16566] | 1405 | if test "${enable_yaz+set}" = set; then
|
---|
[21327] | 1406 | enableval="$enable_yaz"
|
---|
| 1407 | USE_YAZ=0
|
---|
[16566] | 1408 | else
|
---|
| 1409 | USE_YAZ=1
|
---|
[21327] | 1410 | fi;
|
---|
[16566] | 1411 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1412 | #define USE_YAZ $USE_YAZ
|
---|
| 1413 | _ACEOF
|
---|
| 1414 |
|
---|
| 1415 |
|
---|
| 1416 |
|
---|
[21327] | 1417 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
[16566] | 1418 | if test "${enable_accentfold+set}" = set; then
|
---|
[21327] | 1419 | enableval="$enable_accentfold"
|
---|
| 1420 | ENABLE_ACCENTFOLD=0
|
---|
[16566] | 1421 | else
|
---|
| 1422 | ENABLE_ACCENTFOLD=1
|
---|
[21327] | 1423 | fi;
|
---|
[16566] | 1424 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1425 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1426 | _ACEOF
|
---|
| 1427 |
|
---|
| 1428 |
|
---|
| 1429 |
|
---|
[21409] | 1430 | # Check whether --enable-jdbm or --disable-jdbm was given.
|
---|
| 1431 | if test "${enable_jdbm+set}" = set; then
|
---|
| 1432 | enableval="$enable_jdbm"
|
---|
| 1433 | USE_JDBM=0
|
---|
| 1434 | else
|
---|
| 1435 | USE_JDBM=1
|
---|
| 1436 | fi;
|
---|
| 1437 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1438 | #define USE_JDBM $USE_JDBM
|
---|
| 1439 | _ACEOF
|
---|
| 1440 |
|
---|
| 1441 |
|
---|
| 1442 |
|
---|
[21327] | 1443 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
[16566] | 1444 | if test "${enable_sqlite+set}" = set; then
|
---|
[21327] | 1445 | enableval="$enable_sqlite"
|
---|
| 1446 | USE_SQLITE=0
|
---|
[16566] | 1447 | else
|
---|
| 1448 | USE_SQLITE=1
|
---|
[21327] | 1449 | fi;
|
---|
[16566] | 1450 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1451 | #define USE_SQLITE $USE_SQLITE
|
---|
| 1452 | _ACEOF
|
---|
| 1453 |
|
---|
| 1454 |
|
---|
| 1455 |
|
---|
[21365] | 1456 | # Check whether --enable-jni or --disable-jni was given.
|
---|
| 1457 | if test "${enable_jni+set}" = set; then
|
---|
| 1458 | enableval="$enable_jni"
|
---|
| 1459 | ENABLE_JNI=$enableval
|
---|
| 1460 | else
|
---|
| 1461 | ENABLE_JNI=no
|
---|
| 1462 | fi;
|
---|
| 1463 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
| 1464 | ENABLE_JNI=1
|
---|
| 1465 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1466 | #define ENABLE_JNI
|
---|
| 1467 | _ACEOF
|
---|
| 1468 |
|
---|
| 1469 | else
|
---|
| 1470 | ENABLE_JNI=0
|
---|
| 1471 | fi
|
---|
| 1472 |
|
---|
| 1473 |
|
---|
[21327] | 1474 | # Check whether --enable-mg or --disable-mg was given.
|
---|
| 1475 | if test "${enable_mg+set}" = set; then
|
---|
| 1476 | enableval="$enable_mg"
|
---|
| 1477 | ENABLE_MG=$enableval
|
---|
| 1478 | else
|
---|
| 1479 | ENABLE_MG=yes
|
---|
| 1480 | fi;
|
---|
| 1481 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 1482 | ENABLE_MG=1
|
---|
| 1483 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1484 | #define ENABLE_MG
|
---|
| 1485 | _ACEOF
|
---|
| 1486 |
|
---|
| 1487 | else
|
---|
| 1488 | ENABLE_MG=0
|
---|
| 1489 | fi
|
---|
| 1490 |
|
---|
| 1491 |
|
---|
| 1492 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
| 1493 | if test "${enable_mgpp+set}" = set; then
|
---|
| 1494 | enableval="$enable_mgpp"
|
---|
| 1495 | ENABLE_MGPP=$enableval
|
---|
| 1496 | else
|
---|
| 1497 | ENABLE_MGPP=yes
|
---|
| 1498 | fi;
|
---|
| 1499 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 1500 | ENABLE_MGPP=1
|
---|
| 1501 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1502 | #define ENABLE_MGPP
|
---|
| 1503 | _ACEOF
|
---|
| 1504 |
|
---|
| 1505 | else
|
---|
| 1506 | ENABLE_MGPP=0
|
---|
| 1507 | fi
|
---|
| 1508 |
|
---|
| 1509 |
|
---|
| 1510 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
| 1511 | if test "${enable_lucene+set}" = set; then
|
---|
| 1512 | enableval="$enable_lucene"
|
---|
| 1513 | ENABLE_LUCENE=$enableval
|
---|
| 1514 | else
|
---|
| 1515 | ENABLE_LUCENE=yes
|
---|
| 1516 | fi;
|
---|
| 1517 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
| 1518 | ENABLE_LUCENE=1
|
---|
| 1519 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1520 | #define ENABLE_LUCENE
|
---|
| 1521 | _ACEOF
|
---|
| 1522 |
|
---|
| 1523 | else
|
---|
| 1524 | ENABLE_LUCENE=0
|
---|
| 1525 | fi
|
---|
| 1526 |
|
---|
| 1527 |
|
---|
| 1528 |
|
---|
[16566] | 1529 | LDFLAGS=$LDFLAGS
|
---|
| 1530 |
|
---|
| 1531 | if test -z "$CFLAGS"; then
|
---|
| 1532 | CFLAGS=-O2
|
---|
| 1533 | fi
|
---|
| 1534 |
|
---|
| 1535 |
|
---|
| 1536 |
|
---|
| 1537 | ac_ext=c
|
---|
| 1538 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1542 | if test -n "$ac_tool_prefix"; then
|
---|
| 1543 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1544 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[21327] | 1545 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1547 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1548 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1549 | else
|
---|
| 1550 | if test -n "$CC"; then
|
---|
| 1551 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1552 | else
|
---|
| 1553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1554 | for as_dir in $PATH
|
---|
| 1555 | do
|
---|
| 1556 | IFS=$as_save_IFS
|
---|
| 1557 | test -z "$as_dir" && as_dir=.
|
---|
| 1558 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1560 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1562 | break 2
|
---|
| 1563 | fi
|
---|
| 1564 | done
|
---|
| 1565 | done
|
---|
| 1566 |
|
---|
| 1567 | fi
|
---|
| 1568 | fi
|
---|
| 1569 | CC=$ac_cv_prog_CC
|
---|
| 1570 | if test -n "$CC"; then
|
---|
[21327] | 1571 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1572 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1573 | else
|
---|
[21327] | 1574 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1575 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1576 | fi
|
---|
| 1577 |
|
---|
| 1578 | fi
|
---|
| 1579 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1580 | ac_ct_CC=$CC
|
---|
| 1581 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 1582 | set dummy gcc; ac_word=$2
|
---|
[21327] | 1583 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1585 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1586 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1587 | else
|
---|
| 1588 | if test -n "$ac_ct_CC"; then
|
---|
| 1589 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1590 | else
|
---|
| 1591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1592 | for as_dir in $PATH
|
---|
| 1593 | do
|
---|
| 1594 | IFS=$as_save_IFS
|
---|
| 1595 | test -z "$as_dir" && as_dir=.
|
---|
| 1596 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1598 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1600 | break 2
|
---|
| 1601 | fi
|
---|
| 1602 | done
|
---|
| 1603 | done
|
---|
| 1604 |
|
---|
| 1605 | fi
|
---|
| 1606 | fi
|
---|
| 1607 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1608 | if test -n "$ac_ct_CC"; then
|
---|
[21327] | 1609 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1610 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16566] | 1611 | else
|
---|
[21327] | 1612 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1613 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1614 | fi
|
---|
| 1615 |
|
---|
[21327] | 1616 | CC=$ac_ct_CC
|
---|
[16566] | 1617 | else
|
---|
| 1618 | CC="$ac_cv_prog_CC"
|
---|
| 1619 | fi
|
---|
| 1620 |
|
---|
| 1621 | if test -z "$CC"; then
|
---|
[21327] | 1622 | if test -n "$ac_tool_prefix"; then
|
---|
| 1623 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[16566] | 1624 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[21327] | 1625 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1627 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1628 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1629 | else
|
---|
| 1630 | if test -n "$CC"; then
|
---|
| 1631 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1632 | else
|
---|
| 1633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1634 | for as_dir in $PATH
|
---|
| 1635 | do
|
---|
| 1636 | IFS=$as_save_IFS
|
---|
| 1637 | test -z "$as_dir" && as_dir=.
|
---|
| 1638 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1640 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1642 | break 2
|
---|
| 1643 | fi
|
---|
| 1644 | done
|
---|
| 1645 | done
|
---|
| 1646 |
|
---|
| 1647 | fi
|
---|
| 1648 | fi
|
---|
| 1649 | CC=$ac_cv_prog_CC
|
---|
| 1650 | if test -n "$CC"; then
|
---|
[21327] | 1651 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1652 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1653 | else
|
---|
[21327] | 1654 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1655 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1656 | fi
|
---|
| 1657 |
|
---|
[21327] | 1658 | fi
|
---|
| 1659 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1660 | ac_ct_CC=$CC
|
---|
| 1661 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1662 | set dummy cc; ac_word=$2
|
---|
| 1663 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1665 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1666 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1667 | else
|
---|
| 1668 | if test -n "$ac_ct_CC"; then
|
---|
| 1669 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1670 | else
|
---|
| 1671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1672 | for as_dir in $PATH
|
---|
| 1673 | do
|
---|
| 1674 | IFS=$as_save_IFS
|
---|
| 1675 | test -z "$as_dir" && as_dir=.
|
---|
| 1676 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1678 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1680 | break 2
|
---|
| 1681 | fi
|
---|
| 1682 | done
|
---|
| 1683 | done
|
---|
[20846] | 1684 |
|
---|
[16566] | 1685 | fi
|
---|
[21327] | 1686 | fi
|
---|
| 1687 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1688 | if test -n "$ac_ct_CC"; then
|
---|
| 1689 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1690 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1691 | else
|
---|
| 1692 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1693 | echo "${ECHO_T}no" >&6
|
---|
| 1694 | fi
|
---|
| 1695 |
|
---|
| 1696 | CC=$ac_ct_CC
|
---|
| 1697 | else
|
---|
| 1698 | CC="$ac_cv_prog_CC"
|
---|
| 1699 | fi
|
---|
| 1700 |
|
---|
| 1701 | fi
|
---|
[16566] | 1702 | if test -z "$CC"; then
|
---|
| 1703 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1704 | set dummy cc; ac_word=$2
|
---|
[21327] | 1705 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1707 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1708 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1709 | else
|
---|
| 1710 | if test -n "$CC"; then
|
---|
| 1711 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1712 | else
|
---|
| 1713 | ac_prog_rejected=no
|
---|
| 1714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1715 | for as_dir in $PATH
|
---|
| 1716 | do
|
---|
| 1717 | IFS=$as_save_IFS
|
---|
| 1718 | test -z "$as_dir" && as_dir=.
|
---|
| 1719 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1721 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1722 | ac_prog_rejected=yes
|
---|
| 1723 | continue
|
---|
| 1724 | fi
|
---|
| 1725 | ac_cv_prog_CC="cc"
|
---|
| 1726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1727 | break 2
|
---|
| 1728 | fi
|
---|
| 1729 | done
|
---|
| 1730 | done
|
---|
| 1731 |
|
---|
| 1732 | if test $ac_prog_rejected = yes; then
|
---|
| 1733 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1734 | set dummy $ac_cv_prog_CC
|
---|
| 1735 | shift
|
---|
| 1736 | if test $# != 0; then
|
---|
| 1737 | # We chose a different compiler from the bogus one.
|
---|
| 1738 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1739 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1740 | shift
|
---|
| 1741 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 1742 | fi
|
---|
| 1743 | fi
|
---|
| 1744 | fi
|
---|
| 1745 | fi
|
---|
| 1746 | CC=$ac_cv_prog_CC
|
---|
| 1747 | if test -n "$CC"; then
|
---|
[21327] | 1748 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1749 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1750 | else
|
---|
[21327] | 1751 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1752 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1753 | fi
|
---|
| 1754 |
|
---|
| 1755 | fi
|
---|
| 1756 | if test -z "$CC"; then
|
---|
| 1757 | if test -n "$ac_tool_prefix"; then
|
---|
[21327] | 1758 | for ac_prog in cl
|
---|
[16566] | 1759 | do
|
---|
| 1760 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1761 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[21327] | 1762 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1763 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1764 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1765 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1766 | else
|
---|
| 1767 | if test -n "$CC"; then
|
---|
| 1768 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1769 | else
|
---|
| 1770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1771 | for as_dir in $PATH
|
---|
| 1772 | do
|
---|
| 1773 | IFS=$as_save_IFS
|
---|
| 1774 | test -z "$as_dir" && as_dir=.
|
---|
| 1775 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1776 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1777 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1778 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1779 | break 2
|
---|
| 1780 | fi
|
---|
| 1781 | done
|
---|
| 1782 | done
|
---|
| 1783 |
|
---|
| 1784 | fi
|
---|
| 1785 | fi
|
---|
| 1786 | CC=$ac_cv_prog_CC
|
---|
| 1787 | if test -n "$CC"; then
|
---|
[21327] | 1788 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1789 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1790 | else
|
---|
[21327] | 1791 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1792 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1793 | fi
|
---|
| 1794 |
|
---|
| 1795 | test -n "$CC" && break
|
---|
| 1796 | done
|
---|
| 1797 | fi
|
---|
| 1798 | if test -z "$CC"; then
|
---|
| 1799 | ac_ct_CC=$CC
|
---|
[21327] | 1800 | for ac_prog in cl
|
---|
[16566] | 1801 | do
|
---|
| 1802 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1803 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 1804 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1806 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1807 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1808 | else
|
---|
| 1809 | if test -n "$ac_ct_CC"; then
|
---|
| 1810 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1811 | else
|
---|
| 1812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1813 | for as_dir in $PATH
|
---|
| 1814 | do
|
---|
| 1815 | IFS=$as_save_IFS
|
---|
| 1816 | test -z "$as_dir" && as_dir=.
|
---|
| 1817 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1818 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1819 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1820 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1821 | break 2
|
---|
| 1822 | fi
|
---|
| 1823 | done
|
---|
| 1824 | done
|
---|
| 1825 |
|
---|
| 1826 | fi
|
---|
| 1827 | fi
|
---|
| 1828 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1829 | if test -n "$ac_ct_CC"; then
|
---|
[21327] | 1830 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1831 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16566] | 1832 | else
|
---|
[21327] | 1833 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1834 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1835 | fi
|
---|
| 1836 |
|
---|
| 1837 | test -n "$ac_ct_CC" && break
|
---|
| 1838 | done
|
---|
| 1839 |
|
---|
[21327] | 1840 | CC=$ac_ct_CC
|
---|
[16566] | 1841 | fi
|
---|
| 1842 |
|
---|
| 1843 | fi
|
---|
| 1844 |
|
---|
| 1845 |
|
---|
| 1846 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1847 | See \`config.log' for more details." >&5
|
---|
| 1848 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1849 | See \`config.log' for more details." >&2;}
|
---|
| 1850 | { (exit 1); exit 1; }; }
|
---|
| 1851 |
|
---|
| 1852 | # Provide some information about the compiler.
|
---|
[21327] | 1853 | echo "$as_me:$LINENO:" \
|
---|
| 1854 | "checking for C compiler version" >&5
|
---|
[16566] | 1855 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[21327] | 1856 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1857 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[16566] | 1858 | ac_status=$?
|
---|
| 1859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1860 | (exit $ac_status); }
|
---|
[21327] | 1861 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1862 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
[16566] | 1863 | ac_status=$?
|
---|
| 1864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1865 | (exit $ac_status); }
|
---|
[21327] | 1866 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1867 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
[16566] | 1868 | ac_status=$?
|
---|
| 1869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1870 | (exit $ac_status); }
|
---|
| 1871 |
|
---|
| 1872 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1873 | /* confdefs.h. */
|
---|
| 1874 | _ACEOF
|
---|
| 1875 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1876 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1877 | /* end confdefs.h. */
|
---|
| 1878 |
|
---|
| 1879 | int
|
---|
| 1880 | main ()
|
---|
| 1881 | {
|
---|
| 1882 |
|
---|
| 1883 | ;
|
---|
| 1884 | return 0;
|
---|
| 1885 | }
|
---|
| 1886 | _ACEOF
|
---|
| 1887 | ac_clean_files_save=$ac_clean_files
|
---|
| 1888 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1889 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1890 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1891 | # of exeext.
|
---|
[21327] | 1892 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1893 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
[16566] | 1894 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[21327] | 1895 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1896 | (eval $ac_link_default) 2>&5
|
---|
[16566] | 1897 | ac_status=$?
|
---|
| 1898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1899 | (exit $ac_status); }; then
|
---|
[21327] | 1900 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1901 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1902 | # resort.
|
---|
| 1903 |
|
---|
| 1904 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1905 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1906 | ac_cv_exeext=
|
---|
| 1907 | # b.out is created by i960 compilers.
|
---|
| 1908 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
[16566] | 1909 | do
|
---|
| 1910 | test -f "$ac_file" || continue
|
---|
| 1911 | case $ac_file in
|
---|
[21327] | 1912 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
[16566] | 1913 | ;;
|
---|
[21327] | 1914 | conftest.$ac_ext )
|
---|
| 1915 | # This is the source file.
|
---|
| 1916 | ;;
|
---|
[16566] | 1917 | [ab].out )
|
---|
| 1918 | # We found the default executable, but exeext='' is most
|
---|
| 1919 | # certainly right.
|
---|
| 1920 | break;;
|
---|
| 1921 | *.* )
|
---|
[21327] | 1922 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1923 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1924 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1925 | # maintain Libtool? --akim.
|
---|
| 1926 | export ac_cv_exeext
|
---|
[16566] | 1927 | break;;
|
---|
| 1928 | * )
|
---|
| 1929 | break;;
|
---|
| 1930 | esac
|
---|
| 1931 | done
|
---|
| 1932 | else
|
---|
| 1933 | echo "$as_me: failed program was:" >&5
|
---|
| 1934 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1935 |
|
---|
| 1936 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1937 | See \`config.log' for more details." >&5
|
---|
| 1938 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1939 | See \`config.log' for more details." >&2;}
|
---|
| 1940 | { (exit 77); exit 77; }; }
|
---|
| 1941 | fi
|
---|
| 1942 |
|
---|
| 1943 | ac_exeext=$ac_cv_exeext
|
---|
[21327] | 1944 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1945 | echo "${ECHO_T}$ac_file" >&6
|
---|
[16566] | 1946 |
|
---|
[21327] | 1947 | # Check the compiler produces executables we can run. If not, either
|
---|
[16566] | 1948 | # the compiler is broken, or we cross compile.
|
---|
[21327] | 1949 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1950 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
[16566] | 1951 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1952 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1953 | if test "$cross_compiling" != yes; then
|
---|
| 1954 | if { ac_try='./$ac_file'
|
---|
[21327] | 1955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1956 | (eval $ac_try) 2>&5
|
---|
[16566] | 1957 | ac_status=$?
|
---|
| 1958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1959 | (exit $ac_status); }; }; then
|
---|
| 1960 | cross_compiling=no
|
---|
| 1961 | else
|
---|
| 1962 | if test "$cross_compiling" = maybe; then
|
---|
| 1963 | cross_compiling=yes
|
---|
| 1964 | else
|
---|
| 1965 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1966 | If you meant to cross compile, use \`--host'.
|
---|
| 1967 | See \`config.log' for more details." >&5
|
---|
| 1968 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1969 | If you meant to cross compile, use \`--host'.
|
---|
| 1970 | See \`config.log' for more details." >&2;}
|
---|
| 1971 | { (exit 1); exit 1; }; }
|
---|
| 1972 | fi
|
---|
| 1973 | fi
|
---|
| 1974 | fi
|
---|
[21327] | 1975 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1976 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 1977 |
|
---|
| 1978 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1979 | ac_clean_files=$ac_clean_files_save
|
---|
[21327] | 1980 | # Check the compiler produces executables we can run. If not, either
|
---|
[16566] | 1981 | # the compiler is broken, or we cross compile.
|
---|
[21327] | 1982 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1983 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1984 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1985 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
[16566] | 1986 |
|
---|
[21327] | 1987 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1988 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1990 | (eval $ac_link) 2>&5
|
---|
[16566] | 1991 | ac_status=$?
|
---|
| 1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1993 | (exit $ac_status); }; then
|
---|
| 1994 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1995 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1996 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1997 | # `rm'.
|
---|
| 1998 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1999 | test -f "$ac_file" || continue
|
---|
| 2000 | case $ac_file in
|
---|
[21327] | 2001 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[16566] | 2002 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[21327] | 2003 | export ac_cv_exeext
|
---|
[16566] | 2004 | break;;
|
---|
| 2005 | * ) break;;
|
---|
| 2006 | esac
|
---|
| 2007 | done
|
---|
| 2008 | else
|
---|
| 2009 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2010 | See \`config.log' for more details." >&5
|
---|
| 2011 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2012 | See \`config.log' for more details." >&2;}
|
---|
| 2013 | { (exit 1); exit 1; }; }
|
---|
| 2014 | fi
|
---|
| 2015 |
|
---|
| 2016 | rm -f conftest$ac_cv_exeext
|
---|
[21327] | 2017 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2018 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
[16566] | 2019 |
|
---|
| 2020 | rm -f conftest.$ac_ext
|
---|
| 2021 | EXEEXT=$ac_cv_exeext
|
---|
| 2022 | ac_exeext=$EXEEXT
|
---|
[21327] | 2023 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2024 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[16566] | 2025 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2026 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2027 | else
|
---|
| 2028 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2029 | /* confdefs.h. */
|
---|
| 2030 | _ACEOF
|
---|
| 2031 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2032 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2033 | /* end confdefs.h. */
|
---|
| 2034 |
|
---|
| 2035 | int
|
---|
| 2036 | main ()
|
---|
| 2037 | {
|
---|
| 2038 |
|
---|
| 2039 | ;
|
---|
| 2040 | return 0;
|
---|
| 2041 | }
|
---|
| 2042 | _ACEOF
|
---|
| 2043 | rm -f conftest.o conftest.obj
|
---|
[21327] | 2044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2045 | (eval $ac_compile) 2>&5
|
---|
[16566] | 2046 | ac_status=$?
|
---|
| 2047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2048 | (exit $ac_status); }; then
|
---|
[21327] | 2049 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
[16566] | 2050 | case $ac_file in
|
---|
[21327] | 2051 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[16566] | 2052 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2053 | break;;
|
---|
| 2054 | esac
|
---|
| 2055 | done
|
---|
| 2056 | else
|
---|
| 2057 | echo "$as_me: failed program was:" >&5
|
---|
| 2058 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2059 |
|
---|
| 2060 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2061 | See \`config.log' for more details." >&5
|
---|
| 2062 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2063 | See \`config.log' for more details." >&2;}
|
---|
| 2064 | { (exit 1); exit 1; }; }
|
---|
| 2065 | fi
|
---|
| 2066 |
|
---|
| 2067 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2068 | fi
|
---|
[21327] | 2069 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2070 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
[16566] | 2071 | OBJEXT=$ac_cv_objext
|
---|
| 2072 | ac_objext=$OBJEXT
|
---|
[21327] | 2073 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2074 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
[16566] | 2075 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2076 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2077 | else
|
---|
| 2078 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2079 | /* confdefs.h. */
|
---|
| 2080 | _ACEOF
|
---|
| 2081 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2082 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2083 | /* end confdefs.h. */
|
---|
| 2084 |
|
---|
| 2085 | int
|
---|
| 2086 | main ()
|
---|
| 2087 | {
|
---|
| 2088 | #ifndef __GNUC__
|
---|
| 2089 | choke me
|
---|
| 2090 | #endif
|
---|
| 2091 |
|
---|
| 2092 | ;
|
---|
| 2093 | return 0;
|
---|
| 2094 | }
|
---|
| 2095 | _ACEOF
|
---|
| 2096 | rm -f conftest.$ac_objext
|
---|
[21327] | 2097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2098 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2099 | ac_status=$?
|
---|
| 2100 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2101 | rm -f conftest.er1
|
---|
| 2102 | cat conftest.err >&5
|
---|
| 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2104 | (exit $ac_status); } &&
|
---|
| 2105 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2106 | || test ! -s conftest.err'
|
---|
| 2107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2108 | (eval $ac_try) 2>&5
|
---|
| 2109 | ac_status=$?
|
---|
| 2110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2111 | (exit $ac_status); }; } &&
|
---|
| 2112 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2114 | (eval $ac_try) 2>&5
|
---|
| 2115 | ac_status=$?
|
---|
| 2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2117 | (exit $ac_status); }; }; then
|
---|
[16566] | 2118 | ac_compiler_gnu=yes
|
---|
| 2119 | else
|
---|
| 2120 | echo "$as_me: failed program was:" >&5
|
---|
| 2121 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2122 |
|
---|
[21327] | 2123 | ac_compiler_gnu=no
|
---|
[16566] | 2124 | fi
|
---|
[21327] | 2125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2126 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2127 |
|
---|
| 2128 | fi
|
---|
[21327] | 2129 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2130 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
[16566] | 2131 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2132 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2133 | ac_save_CFLAGS=$CFLAGS
|
---|
[21327] | 2134 | CFLAGS="-g"
|
---|
| 2135 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2136 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
[16566] | 2137 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2138 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2139 | else
|
---|
[21327] | 2140 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2141 | /* confdefs.h. */
|
---|
| 2142 | _ACEOF
|
---|
| 2143 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2144 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2145 | /* end confdefs.h. */
|
---|
| 2146 |
|
---|
| 2147 | int
|
---|
| 2148 | main ()
|
---|
| 2149 | {
|
---|
| 2150 |
|
---|
| 2151 | ;
|
---|
| 2152 | return 0;
|
---|
| 2153 | }
|
---|
| 2154 | _ACEOF
|
---|
| 2155 | rm -f conftest.$ac_objext
|
---|
[21327] | 2156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2157 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2158 | ac_status=$?
|
---|
| 2159 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2160 | rm -f conftest.er1
|
---|
| 2161 | cat conftest.err >&5
|
---|
| 2162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2163 | (exit $ac_status); } &&
|
---|
| 2164 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2165 | || test ! -s conftest.err'
|
---|
| 2166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2167 | (eval $ac_try) 2>&5
|
---|
[16566] | 2168 | ac_status=$?
|
---|
| 2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2170 | (exit $ac_status); }; } &&
|
---|
| 2171 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2173 | (eval $ac_try) 2>&5
|
---|
[16566] | 2174 | ac_status=$?
|
---|
| 2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2176 | (exit $ac_status); }; }; then
|
---|
[16566] | 2177 | ac_cv_prog_cc_g=yes
|
---|
| 2178 | else
|
---|
| 2179 | echo "$as_me: failed program was:" >&5
|
---|
| 2180 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2181 |
|
---|
[21327] | 2182 | ac_cv_prog_cc_g=no
|
---|
[16566] | 2183 | fi
|
---|
[21327] | 2184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2185 | fi
|
---|
[21327] | 2186 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2187 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[16566] | 2188 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 2189 | CFLAGS=$ac_save_CFLAGS
|
---|
| 2190 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2191 | if test "$GCC" = yes; then
|
---|
| 2192 | CFLAGS="-g -O2"
|
---|
| 2193 | else
|
---|
| 2194 | CFLAGS="-g"
|
---|
| 2195 | fi
|
---|
| 2196 | else
|
---|
| 2197 | if test "$GCC" = yes; then
|
---|
| 2198 | CFLAGS="-O2"
|
---|
| 2199 | else
|
---|
| 2200 | CFLAGS=
|
---|
| 2201 | fi
|
---|
| 2202 | fi
|
---|
[21327] | 2203 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2204 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2205 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
[16566] | 2206 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2207 | else
|
---|
[21327] | 2208 | ac_cv_prog_cc_stdc=no
|
---|
[16566] | 2209 | ac_save_CC=$CC
|
---|
| 2210 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2211 | /* confdefs.h. */
|
---|
| 2212 | _ACEOF
|
---|
| 2213 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2214 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2215 | /* end confdefs.h. */
|
---|
| 2216 | #include <stdarg.h>
|
---|
| 2217 | #include <stdio.h>
|
---|
| 2218 | #include <sys/types.h>
|
---|
| 2219 | #include <sys/stat.h>
|
---|
| 2220 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2221 | struct buf { int x; };
|
---|
| 2222 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2223 | static char *e (p, i)
|
---|
| 2224 | char **p;
|
---|
| 2225 | int i;
|
---|
| 2226 | {
|
---|
| 2227 | return p[i];
|
---|
| 2228 | }
|
---|
| 2229 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2230 | {
|
---|
| 2231 | char *s;
|
---|
| 2232 | va_list v;
|
---|
| 2233 | va_start (v,p);
|
---|
| 2234 | s = g (p, va_arg (v,int));
|
---|
| 2235 | va_end (v);
|
---|
| 2236 | return s;
|
---|
| 2237 | }
|
---|
| 2238 |
|
---|
| 2239 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2240 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2241 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[21327] | 2242 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
[16566] | 2243 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2244 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[21327] | 2245 | that's true only with -std1. */
|
---|
[16566] | 2246 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2247 |
|
---|
| 2248 | int test (int i, double x);
|
---|
| 2249 | struct s1 {int (*f) (int a);};
|
---|
| 2250 | struct s2 {int (*f) (double a);};
|
---|
| 2251 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2252 | int argc;
|
---|
| 2253 | char **argv;
|
---|
| 2254 | int
|
---|
| 2255 | main ()
|
---|
| 2256 | {
|
---|
| 2257 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2258 | ;
|
---|
| 2259 | return 0;
|
---|
| 2260 | }
|
---|
| 2261 | _ACEOF
|
---|
[21327] | 2262 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2263 | # breaks some systems' header files.
|
---|
| 2264 | # AIX -qlanglvl=ansi
|
---|
| 2265 | # Ultrix and OSF/1 -std1
|
---|
| 2266 | # HP-UX 10.20 and later -Ae
|
---|
| 2267 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2268 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2269 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[16566] | 2270 | do
|
---|
| 2271 | CC="$ac_save_CC $ac_arg"
|
---|
| 2272 | rm -f conftest.$ac_objext
|
---|
[21327] | 2273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2274 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2275 | ac_status=$?
|
---|
| 2276 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2277 | rm -f conftest.er1
|
---|
| 2278 | cat conftest.err >&5
|
---|
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2280 | (exit $ac_status); } &&
|
---|
| 2281 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2282 | || test ! -s conftest.err'
|
---|
| 2283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2284 | (eval $ac_try) 2>&5
|
---|
| 2285 | ac_status=$?
|
---|
| 2286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2287 | (exit $ac_status); }; } &&
|
---|
| 2288 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2290 | (eval $ac_try) 2>&5
|
---|
| 2291 | ac_status=$?
|
---|
| 2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2293 | (exit $ac_status); }; }; then
|
---|
| 2294 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2295 | break
|
---|
[16566] | 2296 | else
|
---|
| 2297 | echo "$as_me: failed program was:" >&5
|
---|
| 2298 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2299 |
|
---|
| 2300 | fi
|
---|
[21327] | 2301 | rm -f conftest.err conftest.$ac_objext
|
---|
[16566] | 2302 | done
|
---|
[21327] | 2303 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
[16566] | 2304 | CC=$ac_save_CC
|
---|
| 2305 |
|
---|
| 2306 | fi
|
---|
[21327] | 2307 |
|
---|
| 2308 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2309 | x|xno)
|
---|
| 2310 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2311 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
[16566] | 2312 | *)
|
---|
[21327] | 2313 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2314 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2315 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
[16566] | 2316 | esac
|
---|
| 2317 |
|
---|
[21327] | 2318 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2319 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2320 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2321 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2322 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2323 | #ifndef __cplusplus
|
---|
| 2324 | choke me
|
---|
| 2325 | #endif
|
---|
| 2326 | _ACEOF
|
---|
| 2327 | rm -f conftest.$ac_objext
|
---|
| 2328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2329 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2330 | ac_status=$?
|
---|
| 2331 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2332 | rm -f conftest.er1
|
---|
| 2333 | cat conftest.err >&5
|
---|
| 2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2335 | (exit $ac_status); } &&
|
---|
| 2336 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2337 | || test ! -s conftest.err'
|
---|
| 2338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2339 | (eval $ac_try) 2>&5
|
---|
| 2340 | ac_status=$?
|
---|
| 2341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2342 | (exit $ac_status); }; } &&
|
---|
| 2343 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2345 | (eval $ac_try) 2>&5
|
---|
| 2346 | ac_status=$?
|
---|
| 2347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2348 | (exit $ac_status); }; }; then
|
---|
| 2349 | for ac_declaration in \
|
---|
| 2350 | '' \
|
---|
| 2351 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2352 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2353 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2354 | 'extern "C" void exit (int);' \
|
---|
| 2355 | 'void exit (int);'
|
---|
| 2356 | do
|
---|
| 2357 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2358 | /* confdefs.h. */
|
---|
| 2359 | _ACEOF
|
---|
| 2360 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2361 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2362 | /* end confdefs.h. */
|
---|
| 2363 | $ac_declaration
|
---|
| 2364 | #include <stdlib.h>
|
---|
| 2365 | int
|
---|
| 2366 | main ()
|
---|
| 2367 | {
|
---|
| 2368 | exit (42);
|
---|
| 2369 | ;
|
---|
| 2370 | return 0;
|
---|
| 2371 | }
|
---|
| 2372 | _ACEOF
|
---|
| 2373 | rm -f conftest.$ac_objext
|
---|
| 2374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2375 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2376 | ac_status=$?
|
---|
| 2377 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2378 | rm -f conftest.er1
|
---|
| 2379 | cat conftest.err >&5
|
---|
| 2380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2381 | (exit $ac_status); } &&
|
---|
| 2382 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2383 | || test ! -s conftest.err'
|
---|
| 2384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2385 | (eval $ac_try) 2>&5
|
---|
| 2386 | ac_status=$?
|
---|
| 2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2388 | (exit $ac_status); }; } &&
|
---|
| 2389 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2391 | (eval $ac_try) 2>&5
|
---|
| 2392 | ac_status=$?
|
---|
| 2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2394 | (exit $ac_status); }; }; then
|
---|
| 2395 | :
|
---|
| 2396 | else
|
---|
| 2397 | echo "$as_me: failed program was:" >&5
|
---|
| 2398 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16566] | 2399 |
|
---|
[21327] | 2400 | continue
|
---|
| 2401 | fi
|
---|
| 2402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2403 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2404 | /* confdefs.h. */
|
---|
| 2405 | _ACEOF
|
---|
| 2406 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2407 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2408 | /* end confdefs.h. */
|
---|
| 2409 | $ac_declaration
|
---|
| 2410 | int
|
---|
| 2411 | main ()
|
---|
| 2412 | {
|
---|
| 2413 | exit (42);
|
---|
| 2414 | ;
|
---|
| 2415 | return 0;
|
---|
| 2416 | }
|
---|
| 2417 | _ACEOF
|
---|
| 2418 | rm -f conftest.$ac_objext
|
---|
| 2419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2420 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2421 | ac_status=$?
|
---|
| 2422 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2423 | rm -f conftest.er1
|
---|
| 2424 | cat conftest.err >&5
|
---|
| 2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2426 | (exit $ac_status); } &&
|
---|
| 2427 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2428 | || test ! -s conftest.err'
|
---|
| 2429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2430 | (eval $ac_try) 2>&5
|
---|
| 2431 | ac_status=$?
|
---|
| 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2433 | (exit $ac_status); }; } &&
|
---|
| 2434 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2436 | (eval $ac_try) 2>&5
|
---|
| 2437 | ac_status=$?
|
---|
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2439 | (exit $ac_status); }; }; then
|
---|
| 2440 | break
|
---|
| 2441 | else
|
---|
| 2442 | echo "$as_me: failed program was:" >&5
|
---|
| 2443 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2444 |
|
---|
| 2445 | fi
|
---|
| 2446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2447 | done
|
---|
| 2448 | rm -f conftest*
|
---|
| 2449 | if test -n "$ac_declaration"; then
|
---|
| 2450 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2451 | echo $ac_declaration >>confdefs.h
|
---|
| 2452 | echo '#endif' >>confdefs.h
|
---|
| 2453 | fi
|
---|
| 2454 |
|
---|
| 2455 | else
|
---|
| 2456 | echo "$as_me: failed program was:" >&5
|
---|
| 2457 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2458 |
|
---|
| 2459 | fi
|
---|
| 2460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2461 | ac_ext=c
|
---|
| 2462 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2466 |
|
---|
[21327] | 2467 | ac_ext=cc
|
---|
[16566] | 2468 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2469 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2470 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2471 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[21327] | 2472 | if test -n "$ac_tool_prefix"; then
|
---|
| 2473 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16566] | 2474 | do
|
---|
| 2475 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2476 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[21327] | 2477 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2479 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2480 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2481 | else
|
---|
| 2482 | if test -n "$CXX"; then
|
---|
| 2483 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2484 | else
|
---|
| 2485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2486 | for as_dir in $PATH
|
---|
| 2487 | do
|
---|
| 2488 | IFS=$as_save_IFS
|
---|
| 2489 | test -z "$as_dir" && as_dir=.
|
---|
| 2490 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2492 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2494 | break 2
|
---|
| 2495 | fi
|
---|
| 2496 | done
|
---|
| 2497 | done
|
---|
| 2498 |
|
---|
| 2499 | fi
|
---|
| 2500 | fi
|
---|
| 2501 | CXX=$ac_cv_prog_CXX
|
---|
| 2502 | if test -n "$CXX"; then
|
---|
[21327] | 2503 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2504 | echo "${ECHO_T}$CXX" >&6
|
---|
[16566] | 2505 | else
|
---|
[21327] | 2506 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2507 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2508 | fi
|
---|
| 2509 |
|
---|
| 2510 | test -n "$CXX" && break
|
---|
| 2511 | done
|
---|
| 2512 | fi
|
---|
| 2513 | if test -z "$CXX"; then
|
---|
| 2514 | ac_ct_CXX=$CXX
|
---|
[21327] | 2515 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16566] | 2516 | do
|
---|
| 2517 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2518 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 2519 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2521 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2522 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2523 | else
|
---|
| 2524 | if test -n "$ac_ct_CXX"; then
|
---|
| 2525 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2526 | else
|
---|
| 2527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2528 | for as_dir in $PATH
|
---|
| 2529 | do
|
---|
| 2530 | IFS=$as_save_IFS
|
---|
| 2531 | test -z "$as_dir" && as_dir=.
|
---|
| 2532 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2534 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2536 | break 2
|
---|
| 2537 | fi
|
---|
| 2538 | done
|
---|
| 2539 | done
|
---|
| 2540 |
|
---|
| 2541 | fi
|
---|
| 2542 | fi
|
---|
| 2543 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2544 | if test -n "$ac_ct_CXX"; then
|
---|
[21327] | 2545 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2546 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[16566] | 2547 | else
|
---|
[21327] | 2548 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2549 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2550 | fi
|
---|
| 2551 |
|
---|
| 2552 | test -n "$ac_ct_CXX" && break
|
---|
| 2553 | done
|
---|
[21327] | 2554 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[16566] | 2555 |
|
---|
[21327] | 2556 | CXX=$ac_ct_CXX
|
---|
[16566] | 2557 | fi
|
---|
| 2558 |
|
---|
[21327] | 2559 |
|
---|
[16566] | 2560 | # Provide some information about the compiler.
|
---|
[21327] | 2561 | echo "$as_me:$LINENO:" \
|
---|
| 2562 | "checking for C++ compiler version" >&5
|
---|
[16566] | 2563 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[21327] | 2564 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2565 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[16566] | 2566 | ac_status=$?
|
---|
| 2567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2568 | (exit $ac_status); }
|
---|
[21327] | 2569 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2570 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
[16566] | 2571 | ac_status=$?
|
---|
| 2572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2573 | (exit $ac_status); }
|
---|
[21327] | 2574 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2575 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
[16566] | 2576 | ac_status=$?
|
---|
| 2577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2578 | (exit $ac_status); }
|
---|
| 2579 |
|
---|
[21327] | 2580 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2581 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
[16566] | 2582 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2583 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2584 | else
|
---|
| 2585 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2586 | /* confdefs.h. */
|
---|
| 2587 | _ACEOF
|
---|
| 2588 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2589 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2590 | /* end confdefs.h. */
|
---|
| 2591 |
|
---|
| 2592 | int
|
---|
| 2593 | main ()
|
---|
| 2594 | {
|
---|
| 2595 | #ifndef __GNUC__
|
---|
| 2596 | choke me
|
---|
| 2597 | #endif
|
---|
| 2598 |
|
---|
| 2599 | ;
|
---|
| 2600 | return 0;
|
---|
| 2601 | }
|
---|
| 2602 | _ACEOF
|
---|
| 2603 | rm -f conftest.$ac_objext
|
---|
[21327] | 2604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2605 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2606 | ac_status=$?
|
---|
| 2607 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2608 | rm -f conftest.er1
|
---|
| 2609 | cat conftest.err >&5
|
---|
| 2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2611 | (exit $ac_status); } &&
|
---|
| 2612 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2613 | || test ! -s conftest.err'
|
---|
| 2614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2615 | (eval $ac_try) 2>&5
|
---|
| 2616 | ac_status=$?
|
---|
| 2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2618 | (exit $ac_status); }; } &&
|
---|
| 2619 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2621 | (eval $ac_try) 2>&5
|
---|
| 2622 | ac_status=$?
|
---|
| 2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2624 | (exit $ac_status); }; }; then
|
---|
[16566] | 2625 | ac_compiler_gnu=yes
|
---|
| 2626 | else
|
---|
| 2627 | echo "$as_me: failed program was:" >&5
|
---|
| 2628 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2629 |
|
---|
[21327] | 2630 | ac_compiler_gnu=no
|
---|
[16566] | 2631 | fi
|
---|
[21327] | 2632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2633 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2634 |
|
---|
| 2635 | fi
|
---|
[21327] | 2636 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2637 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
[16566] | 2638 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2639 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2640 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[21327] | 2641 | CXXFLAGS="-g"
|
---|
| 2642 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2643 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
[16566] | 2644 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2645 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2646 | else
|
---|
[21327] | 2647 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2648 | /* confdefs.h. */
|
---|
| 2649 | _ACEOF
|
---|
| 2650 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2651 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2652 | /* end confdefs.h. */
|
---|
| 2653 |
|
---|
| 2654 | int
|
---|
| 2655 | main ()
|
---|
| 2656 | {
|
---|
| 2657 |
|
---|
| 2658 | ;
|
---|
| 2659 | return 0;
|
---|
| 2660 | }
|
---|
| 2661 | _ACEOF
|
---|
| 2662 | rm -f conftest.$ac_objext
|
---|
[21327] | 2663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2664 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2665 | ac_status=$?
|
---|
| 2666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2667 | rm -f conftest.er1
|
---|
| 2668 | cat conftest.err >&5
|
---|
| 2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2670 | (exit $ac_status); } &&
|
---|
| 2671 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2672 | || test ! -s conftest.err'
|
---|
| 2673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2674 | (eval $ac_try) 2>&5
|
---|
| 2675 | ac_status=$?
|
---|
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2677 | (exit $ac_status); }; } &&
|
---|
| 2678 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 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); }; }; then
|
---|
[16566] | 2684 | ac_cv_prog_cxx_g=yes
|
---|
| 2685 | else
|
---|
| 2686 | echo "$as_me: failed program was:" >&5
|
---|
| 2687 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2688 |
|
---|
[21327] | 2689 | ac_cv_prog_cxx_g=no
|
---|
| 2690 | fi
|
---|
| 2691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2692 | fi
|
---|
| 2693 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2694 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2695 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2696 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2697 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2698 | if test "$GXX" = yes; then
|
---|
| 2699 | CXXFLAGS="-g -O2"
|
---|
| 2700 | else
|
---|
| 2701 | CXXFLAGS="-g"
|
---|
| 2702 | fi
|
---|
| 2703 | else
|
---|
| 2704 | if test "$GXX" = yes; then
|
---|
| 2705 | CXXFLAGS="-O2"
|
---|
| 2706 | else
|
---|
| 2707 | CXXFLAGS=
|
---|
| 2708 | fi
|
---|
| 2709 | fi
|
---|
| 2710 | for ac_declaration in \
|
---|
| 2711 | '' \
|
---|
| 2712 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2713 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2714 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2715 | 'extern "C" void exit (int);' \
|
---|
| 2716 | 'void exit (int);'
|
---|
| 2717 | do
|
---|
| 2718 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2719 | /* confdefs.h. */
|
---|
| 2720 | _ACEOF
|
---|
| 2721 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2722 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2723 | /* end confdefs.h. */
|
---|
[21327] | 2724 | $ac_declaration
|
---|
| 2725 | #include <stdlib.h>
|
---|
[16566] | 2726 | int
|
---|
| 2727 | main ()
|
---|
| 2728 | {
|
---|
[21327] | 2729 | exit (42);
|
---|
[16566] | 2730 | ;
|
---|
| 2731 | return 0;
|
---|
| 2732 | }
|
---|
| 2733 | _ACEOF
|
---|
| 2734 | rm -f conftest.$ac_objext
|
---|
[21327] | 2735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2736 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2737 | ac_status=$?
|
---|
| 2738 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2739 | rm -f conftest.er1
|
---|
| 2740 | cat conftest.err >&5
|
---|
| 2741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2742 | (exit $ac_status); } &&
|
---|
| 2743 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2744 | || test ! -s conftest.err'
|
---|
| 2745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2746 | (eval $ac_try) 2>&5
|
---|
| 2747 | ac_status=$?
|
---|
| 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2749 | (exit $ac_status); }; } &&
|
---|
| 2750 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2752 | (eval $ac_try) 2>&5
|
---|
| 2753 | ac_status=$?
|
---|
| 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2755 | (exit $ac_status); }; }; then
|
---|
[16566] | 2756 | :
|
---|
| 2757 | else
|
---|
| 2758 | echo "$as_me: failed program was:" >&5
|
---|
| 2759 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2760 |
|
---|
[21327] | 2761 | continue
|
---|
| 2762 | fi
|
---|
| 2763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2764 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2765 | /* confdefs.h. */
|
---|
| 2766 | _ACEOF
|
---|
| 2767 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2768 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2769 | /* end confdefs.h. */
|
---|
[21327] | 2770 | $ac_declaration
|
---|
[16566] | 2771 | int
|
---|
| 2772 | main ()
|
---|
| 2773 | {
|
---|
[21327] | 2774 | exit (42);
|
---|
[16566] | 2775 | ;
|
---|
| 2776 | return 0;
|
---|
| 2777 | }
|
---|
| 2778 | _ACEOF
|
---|
| 2779 | rm -f conftest.$ac_objext
|
---|
[21327] | 2780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2781 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2782 | ac_status=$?
|
---|
| 2783 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2784 | rm -f conftest.er1
|
---|
| 2785 | cat conftest.err >&5
|
---|
| 2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2787 | (exit $ac_status); } &&
|
---|
| 2788 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2789 | || test ! -s conftest.err'
|
---|
| 2790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2791 | (eval $ac_try) 2>&5
|
---|
| 2792 | ac_status=$?
|
---|
| 2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2794 | (exit $ac_status); }; } &&
|
---|
| 2795 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2797 | (eval $ac_try) 2>&5
|
---|
| 2798 | ac_status=$?
|
---|
| 2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2800 | (exit $ac_status); }; }; then
|
---|
| 2801 | break
|
---|
[16566] | 2802 | else
|
---|
| 2803 | echo "$as_me: failed program was:" >&5
|
---|
| 2804 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2805 |
|
---|
| 2806 | fi
|
---|
[21327] | 2807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2808 | done
|
---|
| 2809 | rm -f conftest*
|
---|
| 2810 | if test -n "$ac_declaration"; then
|
---|
| 2811 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2812 | echo $ac_declaration >>confdefs.h
|
---|
| 2813 | echo '#endif' >>confdefs.h
|
---|
[16566] | 2814 | fi
|
---|
| 2815 |
|
---|
| 2816 | ac_ext=c
|
---|
| 2817 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2818 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2819 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2820 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2821 |
|
---|
| 2822 | for ac_prog in gawk mawk nawk awk
|
---|
| 2823 | do
|
---|
| 2824 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2825 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 2826 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2828 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2829 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2830 | else
|
---|
| 2831 | if test -n "$AWK"; then
|
---|
| 2832 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2833 | else
|
---|
| 2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2835 | for as_dir in $PATH
|
---|
| 2836 | do
|
---|
| 2837 | IFS=$as_save_IFS
|
---|
| 2838 | test -z "$as_dir" && as_dir=.
|
---|
| 2839 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2841 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2843 | break 2
|
---|
| 2844 | fi
|
---|
| 2845 | done
|
---|
| 2846 | done
|
---|
| 2847 |
|
---|
| 2848 | fi
|
---|
| 2849 | fi
|
---|
| 2850 | AWK=$ac_cv_prog_AWK
|
---|
| 2851 | if test -n "$AWK"; then
|
---|
[21327] | 2852 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2853 | echo "${ECHO_T}$AWK" >&6
|
---|
[16566] | 2854 | else
|
---|
[21327] | 2855 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2856 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2857 | fi
|
---|
| 2858 |
|
---|
| 2859 | test -n "$AWK" && break
|
---|
| 2860 | done
|
---|
| 2861 |
|
---|
| 2862 | for ac_prog in 'bison -y' byacc
|
---|
| 2863 | do
|
---|
| 2864 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2865 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 2866 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2868 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2869 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2870 | else
|
---|
| 2871 | if test -n "$YACC"; then
|
---|
| 2872 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2873 | else
|
---|
| 2874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2875 | for as_dir in $PATH
|
---|
| 2876 | do
|
---|
| 2877 | IFS=$as_save_IFS
|
---|
| 2878 | test -z "$as_dir" && as_dir=.
|
---|
| 2879 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2881 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2883 | break 2
|
---|
| 2884 | fi
|
---|
| 2885 | done
|
---|
| 2886 | done
|
---|
| 2887 |
|
---|
| 2888 | fi
|
---|
| 2889 | fi
|
---|
| 2890 | YACC=$ac_cv_prog_YACC
|
---|
| 2891 | if test -n "$YACC"; then
|
---|
[21327] | 2892 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2893 | echo "${ECHO_T}$YACC" >&6
|
---|
[16566] | 2894 | else
|
---|
[21327] | 2895 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2896 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2897 | fi
|
---|
| 2898 |
|
---|
| 2899 | test -n "$YACC" && break
|
---|
| 2900 | done
|
---|
| 2901 | test -n "$YACC" || YACC="yacc"
|
---|
| 2902 |
|
---|
| 2903 | ac_aux_dir=
|
---|
[21327] | 2904 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2905 | if test -f $ac_dir/install-sh; then
|
---|
[16566] | 2906 | ac_aux_dir=$ac_dir
|
---|
| 2907 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2908 | break
|
---|
[21327] | 2909 | elif test -f $ac_dir/install.sh; then
|
---|
[16566] | 2910 | ac_aux_dir=$ac_dir
|
---|
| 2911 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2912 | break
|
---|
[21327] | 2913 | elif test -f $ac_dir/shtool; then
|
---|
[16566] | 2914 | ac_aux_dir=$ac_dir
|
---|
| 2915 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2916 | break
|
---|
| 2917 | fi
|
---|
| 2918 | done
|
---|
| 2919 | if test -z "$ac_aux_dir"; then
|
---|
[21327] | 2920 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2921 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
[16566] | 2922 | { (exit 1); exit 1; }; }
|
---|
| 2923 | fi
|
---|
[21327] | 2924 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2925 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2926 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[16566] | 2927 |
|
---|
| 2928 | # Make sure we can run config.sub.
|
---|
[21327] | 2929 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2930 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2931 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
[16566] | 2932 | { (exit 1); exit 1; }; }
|
---|
| 2933 |
|
---|
[21327] | 2934 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2935 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
[16566] | 2936 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2937 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2938 | else
|
---|
[21327] | 2939 | ac_cv_build_alias=$build_alias
|
---|
| 2940 | test -z "$ac_cv_build_alias" &&
|
---|
| 2941 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2942 | test -z "$ac_cv_build_alias" &&
|
---|
[16566] | 2943 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2944 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2945 | { (exit 1); exit 1; }; }
|
---|
[21327] | 2946 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2947 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2948 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
[16566] | 2949 | { (exit 1); exit 1; }; }
|
---|
| 2950 |
|
---|
| 2951 | fi
|
---|
[21327] | 2952 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2953 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
[16566] | 2954 | build=$ac_cv_build
|
---|
[21327] | 2955 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2956 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2957 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16566] | 2958 |
|
---|
| 2959 |
|
---|
[21327] | 2960 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2961 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
[16566] | 2962 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2963 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2964 | else
|
---|
[21327] | 2965 | ac_cv_host_alias=$host_alias
|
---|
| 2966 | test -z "$ac_cv_host_alias" &&
|
---|
| 2967 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2968 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2969 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2970 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
[16566] | 2971 | { (exit 1); exit 1; }; }
|
---|
| 2972 |
|
---|
| 2973 | fi
|
---|
[21327] | 2974 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2975 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
[16566] | 2976 | host=$ac_cv_host
|
---|
[21327] | 2977 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2978 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2979 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16566] | 2980 |
|
---|
| 2981 |
|
---|
[21327] | 2982 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2983 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
[16566] | 2984 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2985 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2986 | else
|
---|
[21327] | 2987 | ac_cv_target_alias=$target_alias
|
---|
| 2988 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2989 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2990 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2991 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2992 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
[16566] | 2993 | { (exit 1); exit 1; }; }
|
---|
| 2994 |
|
---|
| 2995 | fi
|
---|
[21327] | 2996 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2997 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
[16566] | 2998 | target=$ac_cv_target
|
---|
[21327] | 2999 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3000 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3001 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16566] | 3002 |
|
---|
| 3003 |
|
---|
| 3004 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3005 | # will get canonicalized.
|
---|
| 3006 | test -n "$target_alias" &&
|
---|
| 3007 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3008 | NONENONEs,x,x, &&
|
---|
| 3009 | program_prefix=${target_alias}-
|
---|
| 3010 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3011 | # so one script is as good as another. But avoid the broken or
|
---|
| 3012 | # incompatible versions:
|
---|
| 3013 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3014 | # SunOS /usr/etc/install
|
---|
| 3015 | # IRIX /sbin/install
|
---|
| 3016 | # AIX /bin/install
|
---|
| 3017 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 3018 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3019 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3020 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 3021 | # OS/2's system install, which has a completely different semantic
|
---|
| 3022 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[21327] | 3023 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3024 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[16566] | 3025 | if test -z "$INSTALL"; then
|
---|
| 3026 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3027 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3028 | else
|
---|
| 3029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3030 | for as_dir in $PATH
|
---|
| 3031 | do
|
---|
| 3032 | IFS=$as_save_IFS
|
---|
| 3033 | test -z "$as_dir" && as_dir=.
|
---|
| 3034 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3035 | case $as_dir/ in
|
---|
| 3036 | ./ | .// | /cC/* | \
|
---|
| 3037 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 3038 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 3039 | /usr/ucb/* ) ;;
|
---|
| 3040 | *)
|
---|
| 3041 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3042 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3043 | # by default.
|
---|
| 3044 | for ac_prog in ginstall scoinst install; do
|
---|
| 3045 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 3046 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[16566] | 3047 | if test $ac_prog = install &&
|
---|
| 3048 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3049 | # AIX install. It has an incompatible calling convention.
|
---|
| 3050 | :
|
---|
| 3051 | elif test $ac_prog = install &&
|
---|
| 3052 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3053 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3054 | :
|
---|
| 3055 | else
|
---|
| 3056 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3057 | break 3
|
---|
| 3058 | fi
|
---|
| 3059 | fi
|
---|
| 3060 | done
|
---|
| 3061 | done
|
---|
| 3062 | ;;
|
---|
| 3063 | esac
|
---|
| 3064 | done
|
---|
| 3065 |
|
---|
| 3066 |
|
---|
| 3067 | fi
|
---|
| 3068 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3069 | INSTALL=$ac_cv_path_install
|
---|
| 3070 | else
|
---|
[21327] | 3071 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 3072 | # path for INSTALL within a source directory, because that will
|
---|
[16566] | 3073 | # break other packages using the cache if that directory is
|
---|
[21327] | 3074 | # removed, or if the path is relative.
|
---|
[16566] | 3075 | INSTALL=$ac_install_sh
|
---|
| 3076 | fi
|
---|
| 3077 | fi
|
---|
[21327] | 3078 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3079 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[16566] | 3080 |
|
---|
| 3081 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3082 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3083 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3084 |
|
---|
| 3085 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3086 |
|
---|
| 3087 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3088 |
|
---|
[21327] | 3089 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3090 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
[16566] | 3091 | LN_S=$as_ln_s
|
---|
| 3092 | if test "$LN_S" = "ln -s"; then
|
---|
[21327] | 3093 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3094 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3095 | else
|
---|
[21327] | 3096 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3097 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[16566] | 3098 | fi
|
---|
| 3099 |
|
---|
[21327] | 3100 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3101 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3102 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3103 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
[16566] | 3104 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3105 | else
|
---|
| 3106 | cat >conftest.make <<\_ACEOF
|
---|
| 3107 | all:
|
---|
[21327] | 3108 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
[16566] | 3109 | _ACEOF
|
---|
| 3110 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[21327] | 3111 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 3112 | if test -n "$ac_maketemp"; then
|
---|
| 3113 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3114 | else
|
---|
| 3115 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3116 | fi
|
---|
[16566] | 3117 | rm -f conftest.make
|
---|
| 3118 | fi
|
---|
[21327] | 3119 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 3120 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3121 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3122 | SET_MAKE=
|
---|
| 3123 | else
|
---|
[21327] | 3124 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3125 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3126 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3127 | fi
|
---|
| 3128 |
|
---|
| 3129 | if test -n "$ac_tool_prefix"; then
|
---|
| 3130 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3131 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[21327] | 3132 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3133 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 3134 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3135 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3136 | else
|
---|
| 3137 | if test -n "$RANLIB"; then
|
---|
| 3138 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3139 | else
|
---|
| 3140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3141 | for as_dir in $PATH
|
---|
| 3142 | do
|
---|
| 3143 | IFS=$as_save_IFS
|
---|
| 3144 | test -z "$as_dir" && as_dir=.
|
---|
| 3145 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 3146 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 3147 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3149 | break 2
|
---|
| 3150 | fi
|
---|
| 3151 | done
|
---|
| 3152 | done
|
---|
| 3153 |
|
---|
| 3154 | fi
|
---|
| 3155 | fi
|
---|
| 3156 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3157 | if test -n "$RANLIB"; then
|
---|
[21327] | 3158 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3159 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[16566] | 3160 | else
|
---|
[21327] | 3161 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3162 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3163 | fi
|
---|
| 3164 |
|
---|
| 3165 | fi
|
---|
| 3166 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3167 | ac_ct_RANLIB=$RANLIB
|
---|
| 3168 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3169 | set dummy ranlib; ac_word=$2
|
---|
[21327] | 3170 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 3172 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3173 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3174 | else
|
---|
| 3175 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3176 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3177 | else
|
---|
| 3178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3179 | for as_dir in $PATH
|
---|
| 3180 | do
|
---|
| 3181 | IFS=$as_save_IFS
|
---|
| 3182 | test -z "$as_dir" && as_dir=.
|
---|
| 3183 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 3184 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 3185 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3187 | break 2
|
---|
| 3188 | fi
|
---|
| 3189 | done
|
---|
| 3190 | done
|
---|
| 3191 |
|
---|
[21327] | 3192 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
[16566] | 3193 | fi
|
---|
| 3194 | fi
|
---|
| 3195 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3196 | if test -n "$ac_ct_RANLIB"; then
|
---|
[21327] | 3197 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3198 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
[16566] | 3199 | else
|
---|
[21327] | 3200 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3201 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3202 | fi
|
---|
| 3203 |
|
---|
[21327] | 3204 | RANLIB=$ac_ct_RANLIB
|
---|
[16566] | 3205 | else
|
---|
| 3206 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3207 | fi
|
---|
| 3208 |
|
---|
| 3209 |
|
---|
[21327] | 3210 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3211 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
[16566] | 3212 | arch_64bit=no
|
---|
| 3213 | case "$host_cpu" in
|
---|
| 3214 | x86_64) arch_64bit=yes ;;
|
---|
| 3215 | esac
|
---|
| 3216 |
|
---|
| 3217 | if test "$arch_64bit" = yes; then
|
---|
[21327] | 3218 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3219 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3220 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3221 | COMPAT32BITFLAGS="-m32"
|
---|
| 3222 | fi
|
---|
| 3223 | else
|
---|
[21327] | 3224 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3225 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3226 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3227 | COMPAT32BITFLAGS=
|
---|
| 3228 | fi
|
---|
| 3229 | fi
|
---|
| 3230 | export COMPAT32BITFLAGS
|
---|
| 3231 |
|
---|
| 3232 |
|
---|
| 3233 |
|
---|
| 3234 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3235 | if test $USE_CORBA = 1; then
|
---|
| 3236 |
|
---|
| 3237 | if test $MICO_DIR = "default"; then
|
---|
| 3238 | #do something
|
---|
| 3239 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3240 | else
|
---|
| 3241 | #build the micotest program
|
---|
| 3242 | MICO_INC= ""
|
---|
| 3243 | if test $MICO_DIR != yes; then
|
---|
| 3244 | MICO_INC="-I $MICO_DIR"
|
---|
| 3245 | fi
|
---|
| 3246 | fi
|
---|
| 3247 |
|
---|
| 3248 | #get MICO_VER value
|
---|
| 3249 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3250 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
| 3251 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
| 3252 | sh -c "rm micotest"
|
---|
| 3253 | sh -c "rm micotest.o"
|
---|
| 3254 |
|
---|
| 3255 | #do test of MICO_VER
|
---|
| 3256 | if test MICO_VER != 0; then
|
---|
| 3257 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3258 | #define MICO_VER 1
|
---|
| 3259 | _ACEOF
|
---|
| 3260 |
|
---|
| 3261 |
|
---|
| 3262 | fi
|
---|
| 3263 | #end USE_CORBA test
|
---|
| 3264 | fi
|
---|
| 3265 |
|
---|
| 3266 |
|
---|
| 3267 | ac_ext=c
|
---|
| 3268 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[21327] | 3272 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3273 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[16566] | 3274 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3275 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3276 | CPP=
|
---|
| 3277 | fi
|
---|
| 3278 | if test -z "$CPP"; then
|
---|
| 3279 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3280 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3281 | else
|
---|
| 3282 | # Double quotes because CPP needs to be expanded
|
---|
| 3283 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3284 | do
|
---|
| 3285 | ac_preproc_ok=false
|
---|
| 3286 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3287 | do
|
---|
| 3288 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3289 | # with a fresh cross-compiler works.
|
---|
| 3290 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3291 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3292 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3293 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3294 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3295 | /* confdefs.h. */
|
---|
| 3296 | _ACEOF
|
---|
| 3297 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3298 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3299 | /* end confdefs.h. */
|
---|
| 3300 | #ifdef __STDC__
|
---|
| 3301 | # include <limits.h>
|
---|
| 3302 | #else
|
---|
| 3303 | # include <assert.h>
|
---|
| 3304 | #endif
|
---|
| 3305 | Syntax error
|
---|
| 3306 | _ACEOF
|
---|
[21327] | 3307 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3308 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3309 | ac_status=$?
|
---|
| 3310 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3311 | rm -f conftest.er1
|
---|
| 3312 | cat conftest.err >&5
|
---|
| 3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3314 | (exit $ac_status); } >/dev/null; then
|
---|
| 3315 | if test -s conftest.err; then
|
---|
| 3316 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3317 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3318 | else
|
---|
| 3319 | ac_cpp_err=
|
---|
| 3320 | fi
|
---|
| 3321 | else
|
---|
| 3322 | ac_cpp_err=yes
|
---|
| 3323 | fi
|
---|
| 3324 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3325 | :
|
---|
| 3326 | else
|
---|
| 3327 | echo "$as_me: failed program was:" >&5
|
---|
| 3328 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3329 |
|
---|
| 3330 | # Broken: fails on valid input.
|
---|
| 3331 | continue
|
---|
| 3332 | fi
|
---|
| 3333 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3334 |
|
---|
[21327] | 3335 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16566] | 3336 | # can be detected and how.
|
---|
| 3337 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3338 | /* confdefs.h. */
|
---|
| 3339 | _ACEOF
|
---|
| 3340 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3341 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3342 | /* end confdefs.h. */
|
---|
| 3343 | #include <ac_nonexistent.h>
|
---|
| 3344 | _ACEOF
|
---|
[21327] | 3345 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3346 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3347 | ac_status=$?
|
---|
| 3348 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3349 | rm -f conftest.er1
|
---|
| 3350 | cat conftest.err >&5
|
---|
| 3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3352 | (exit $ac_status); } >/dev/null; then
|
---|
| 3353 | if test -s conftest.err; then
|
---|
| 3354 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3355 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3356 | else
|
---|
| 3357 | ac_cpp_err=
|
---|
| 3358 | fi
|
---|
| 3359 | else
|
---|
| 3360 | ac_cpp_err=yes
|
---|
| 3361 | fi
|
---|
| 3362 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3363 | # Broken: success on invalid input.
|
---|
| 3364 | continue
|
---|
| 3365 | else
|
---|
| 3366 | echo "$as_me: failed program was:" >&5
|
---|
| 3367 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3368 |
|
---|
| 3369 | # Passes both tests.
|
---|
| 3370 | ac_preproc_ok=:
|
---|
| 3371 | break
|
---|
| 3372 | fi
|
---|
| 3373 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3374 |
|
---|
| 3375 | done
|
---|
| 3376 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3377 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3378 | if $ac_preproc_ok; then
|
---|
| 3379 | break
|
---|
| 3380 | fi
|
---|
| 3381 |
|
---|
| 3382 | done
|
---|
| 3383 | ac_cv_prog_CPP=$CPP
|
---|
| 3384 |
|
---|
| 3385 | fi
|
---|
| 3386 | CPP=$ac_cv_prog_CPP
|
---|
| 3387 | else
|
---|
| 3388 | ac_cv_prog_CPP=$CPP
|
---|
| 3389 | fi
|
---|
[21327] | 3390 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3391 | echo "${ECHO_T}$CPP" >&6
|
---|
[16566] | 3392 | ac_preproc_ok=false
|
---|
| 3393 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3394 | do
|
---|
| 3395 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3396 | # with a fresh cross-compiler works.
|
---|
| 3397 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3398 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3399 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3400 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3401 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3402 | /* confdefs.h. */
|
---|
| 3403 | _ACEOF
|
---|
| 3404 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3405 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3406 | /* end confdefs.h. */
|
---|
| 3407 | #ifdef __STDC__
|
---|
| 3408 | # include <limits.h>
|
---|
| 3409 | #else
|
---|
| 3410 | # include <assert.h>
|
---|
| 3411 | #endif
|
---|
| 3412 | Syntax error
|
---|
| 3413 | _ACEOF
|
---|
[21327] | 3414 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3415 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3416 | ac_status=$?
|
---|
| 3417 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3418 | rm -f conftest.er1
|
---|
| 3419 | cat conftest.err >&5
|
---|
| 3420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3421 | (exit $ac_status); } >/dev/null; then
|
---|
| 3422 | if test -s conftest.err; then
|
---|
| 3423 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3424 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3425 | else
|
---|
| 3426 | ac_cpp_err=
|
---|
| 3427 | fi
|
---|
| 3428 | else
|
---|
| 3429 | ac_cpp_err=yes
|
---|
| 3430 | fi
|
---|
| 3431 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3432 | :
|
---|
| 3433 | else
|
---|
| 3434 | echo "$as_me: failed program was:" >&5
|
---|
| 3435 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3436 |
|
---|
| 3437 | # Broken: fails on valid input.
|
---|
| 3438 | continue
|
---|
| 3439 | fi
|
---|
| 3440 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3441 |
|
---|
[21327] | 3442 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16566] | 3443 | # can be detected and how.
|
---|
| 3444 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3445 | /* confdefs.h. */
|
---|
| 3446 | _ACEOF
|
---|
| 3447 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3448 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3449 | /* end confdefs.h. */
|
---|
| 3450 | #include <ac_nonexistent.h>
|
---|
| 3451 | _ACEOF
|
---|
[21327] | 3452 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3453 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3454 | ac_status=$?
|
---|
| 3455 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3456 | rm -f conftest.er1
|
---|
| 3457 | cat conftest.err >&5
|
---|
| 3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3459 | (exit $ac_status); } >/dev/null; then
|
---|
| 3460 | if test -s conftest.err; then
|
---|
| 3461 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3462 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3463 | else
|
---|
| 3464 | ac_cpp_err=
|
---|
| 3465 | fi
|
---|
| 3466 | else
|
---|
| 3467 | ac_cpp_err=yes
|
---|
| 3468 | fi
|
---|
| 3469 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3470 | # Broken: success on invalid input.
|
---|
| 3471 | continue
|
---|
| 3472 | else
|
---|
| 3473 | echo "$as_me: failed program was:" >&5
|
---|
| 3474 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3475 |
|
---|
| 3476 | # Passes both tests.
|
---|
| 3477 | ac_preproc_ok=:
|
---|
| 3478 | break
|
---|
| 3479 | fi
|
---|
| 3480 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3481 |
|
---|
| 3482 | done
|
---|
| 3483 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3484 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3485 | if $ac_preproc_ok; then
|
---|
| 3486 | :
|
---|
| 3487 | else
|
---|
| 3488 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3489 | See \`config.log' for more details." >&5
|
---|
| 3490 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3491 | See \`config.log' for more details." >&2;}
|
---|
| 3492 | { (exit 1); exit 1; }; }
|
---|
| 3493 | fi
|
---|
| 3494 |
|
---|
| 3495 | ac_ext=c
|
---|
| 3496 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3500 |
|
---|
| 3501 |
|
---|
[21327] | 3502 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3503 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3504 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
[16566] | 3505 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3506 | else
|
---|
[21327] | 3507 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3508 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3509 | else ac_cv_prog_egrep='egrep'
|
---|
[16566] | 3510 | fi
|
---|
| 3511 | fi
|
---|
[21327] | 3512 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3513 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3514 | EGREP=$ac_cv_prog_egrep
|
---|
[16566] | 3515 |
|
---|
| 3516 |
|
---|
| 3517 |
|
---|
[21327] | 3518 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3519 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
[16566] | 3520 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3521 | /* confdefs.h. */
|
---|
| 3522 | _ACEOF
|
---|
| 3523 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3524 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3525 | /* end confdefs.h. */
|
---|
| 3526 | #ifdef _AIX
|
---|
| 3527 | yes
|
---|
| 3528 | #endif
|
---|
| 3529 |
|
---|
| 3530 | _ACEOF
|
---|
| 3531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3532 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
[21327] | 3533 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3534 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3535 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3536 | #define _ALL_SOURCE 1
|
---|
| 3537 | _ACEOF
|
---|
| 3538 |
|
---|
| 3539 | else
|
---|
[21327] | 3540 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3541 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3542 | fi
|
---|
| 3543 | rm -f conftest*
|
---|
| 3544 |
|
---|
| 3545 |
|
---|
[21327] | 3546 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3547 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
[16566] | 3548 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3549 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3550 | else
|
---|
| 3551 | ac_func_search_save_LIBS=$LIBS
|
---|
[21327] | 3552 | ac_cv_search_strerror=no
|
---|
[16566] | 3553 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3554 | /* confdefs.h. */
|
---|
| 3555 | _ACEOF
|
---|
| 3556 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3557 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3558 | /* end confdefs.h. */
|
---|
| 3559 |
|
---|
[21327] | 3560 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 3561 | #ifdef __cplusplus
|
---|
| 3562 | extern "C"
|
---|
| 3563 | #endif
|
---|
[21327] | 3564 | /* We use char because int might match the return type of a gcc2
|
---|
| 3565 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 3566 | char strerror ();
|
---|
| 3567 | int
|
---|
| 3568 | main ()
|
---|
| 3569 | {
|
---|
[21327] | 3570 | strerror ();
|
---|
[16566] | 3571 | ;
|
---|
| 3572 | return 0;
|
---|
| 3573 | }
|
---|
| 3574 | _ACEOF
|
---|
[21327] | 3575 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3577 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 3578 | ac_status=$?
|
---|
| 3579 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3580 | rm -f conftest.er1
|
---|
| 3581 | cat conftest.err >&5
|
---|
| 3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3583 | (exit $ac_status); } &&
|
---|
| 3584 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3585 | || test ! -s conftest.err'
|
---|
| 3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3587 | (eval $ac_try) 2>&5
|
---|
| 3588 | ac_status=$?
|
---|
| 3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3590 | (exit $ac_status); }; } &&
|
---|
| 3591 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3593 | (eval $ac_try) 2>&5
|
---|
| 3594 | ac_status=$?
|
---|
| 3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3596 | (exit $ac_status); }; }; then
|
---|
| 3597 | ac_cv_search_strerror="none required"
|
---|
[16566] | 3598 | else
|
---|
| 3599 | echo "$as_me: failed program was:" >&5
|
---|
| 3600 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3601 |
|
---|
| 3602 | fi
|
---|
[21327] | 3603 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3604 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3605 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3606 | for ac_lib in cposix; do
|
---|
| 3607 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3608 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3609 | /* confdefs.h. */
|
---|
| 3610 | _ACEOF
|
---|
| 3611 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3612 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3613 | /* end confdefs.h. */
|
---|
[16566] | 3614 |
|
---|
[21327] | 3615 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3616 | #ifdef __cplusplus
|
---|
| 3617 | extern "C"
|
---|
| 3618 | #endif
|
---|
| 3619 | /* We use char because int might match the return type of a gcc2
|
---|
| 3620 | builtin and then its argument prototype would still apply. */
|
---|
| 3621 | char strerror ();
|
---|
| 3622 | int
|
---|
| 3623 | main ()
|
---|
| 3624 | {
|
---|
| 3625 | strerror ();
|
---|
| 3626 | ;
|
---|
| 3627 | return 0;
|
---|
| 3628 | }
|
---|
| 3629 | _ACEOF
|
---|
| 3630 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3631 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3632 | (eval $ac_link) 2>conftest.er1
|
---|
| 3633 | ac_status=$?
|
---|
| 3634 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3635 | rm -f conftest.er1
|
---|
| 3636 | cat conftest.err >&5
|
---|
| 3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3638 | (exit $ac_status); } &&
|
---|
| 3639 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3640 | || test ! -s conftest.err'
|
---|
| 3641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3642 | (eval $ac_try) 2>&5
|
---|
| 3643 | ac_status=$?
|
---|
| 3644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3645 | (exit $ac_status); }; } &&
|
---|
| 3646 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3648 | (eval $ac_try) 2>&5
|
---|
| 3649 | ac_status=$?
|
---|
| 3650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3651 | (exit $ac_status); }; }; then
|
---|
| 3652 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3653 | break
|
---|
[16566] | 3654 | else
|
---|
[21327] | 3655 | echo "$as_me: failed program was:" >&5
|
---|
| 3656 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3657 |
|
---|
[16566] | 3658 | fi
|
---|
[21327] | 3659 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3660 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3661 | done
|
---|
| 3662 | fi
|
---|
[16566] | 3663 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3664 | fi
|
---|
[21327] | 3665 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3666 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3667 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3668 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
[16566] | 3669 |
|
---|
| 3670 | fi
|
---|
| 3671 |
|
---|
[21327] | 3672 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3673 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
[16566] | 3674 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3675 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3676 | else
|
---|
| 3677 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3678 | /* confdefs.h. */
|
---|
| 3679 | _ACEOF
|
---|
| 3680 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3681 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3682 | /* end confdefs.h. */
|
---|
| 3683 | #include <stdlib.h>
|
---|
| 3684 | #include <stdarg.h>
|
---|
| 3685 | #include <string.h>
|
---|
| 3686 | #include <float.h>
|
---|
| 3687 |
|
---|
| 3688 | int
|
---|
| 3689 | main ()
|
---|
| 3690 | {
|
---|
| 3691 |
|
---|
| 3692 | ;
|
---|
| 3693 | return 0;
|
---|
| 3694 | }
|
---|
| 3695 | _ACEOF
|
---|
| 3696 | rm -f conftest.$ac_objext
|
---|
[21327] | 3697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3698 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 3699 | ac_status=$?
|
---|
| 3700 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3701 | rm -f conftest.er1
|
---|
| 3702 | cat conftest.err >&5
|
---|
| 3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3704 | (exit $ac_status); } &&
|
---|
| 3705 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3706 | || test ! -s conftest.err'
|
---|
| 3707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3708 | (eval $ac_try) 2>&5
|
---|
| 3709 | ac_status=$?
|
---|
| 3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3711 | (exit $ac_status); }; } &&
|
---|
| 3712 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3714 | (eval $ac_try) 2>&5
|
---|
| 3715 | ac_status=$?
|
---|
| 3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3717 | (exit $ac_status); }; }; then
|
---|
[16566] | 3718 | ac_cv_header_stdc=yes
|
---|
| 3719 | else
|
---|
| 3720 | echo "$as_me: failed program was:" >&5
|
---|
| 3721 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3722 |
|
---|
[21327] | 3723 | ac_cv_header_stdc=no
|
---|
[16566] | 3724 | fi
|
---|
[21327] | 3725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 3726 |
|
---|
| 3727 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3728 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3729 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3730 | /* confdefs.h. */
|
---|
| 3731 | _ACEOF
|
---|
| 3732 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3733 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3734 | /* end confdefs.h. */
|
---|
| 3735 | #include <string.h>
|
---|
| 3736 |
|
---|
| 3737 | _ACEOF
|
---|
| 3738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3739 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3740 | :
|
---|
| 3741 | else
|
---|
| 3742 | ac_cv_header_stdc=no
|
---|
| 3743 | fi
|
---|
| 3744 | rm -f conftest*
|
---|
| 3745 |
|
---|
| 3746 | fi
|
---|
| 3747 |
|
---|
| 3748 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3749 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3750 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3751 | /* confdefs.h. */
|
---|
| 3752 | _ACEOF
|
---|
| 3753 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3754 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3755 | /* end confdefs.h. */
|
---|
| 3756 | #include <stdlib.h>
|
---|
| 3757 |
|
---|
| 3758 | _ACEOF
|
---|
| 3759 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3760 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3761 | :
|
---|
| 3762 | else
|
---|
| 3763 | ac_cv_header_stdc=no
|
---|
| 3764 | fi
|
---|
| 3765 | rm -f conftest*
|
---|
| 3766 |
|
---|
| 3767 | fi
|
---|
| 3768 |
|
---|
| 3769 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3770 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3771 | if test "$cross_compiling" = yes; then
|
---|
| 3772 | :
|
---|
| 3773 | else
|
---|
| 3774 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3775 | /* confdefs.h. */
|
---|
| 3776 | _ACEOF
|
---|
| 3777 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3778 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3779 | /* end confdefs.h. */
|
---|
| 3780 | #include <ctype.h>
|
---|
| 3781 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3782 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3783 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3784 | #else
|
---|
| 3785 | # define ISLOWER(c) \
|
---|
| 3786 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3787 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3788 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3789 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3790 | #endif
|
---|
| 3791 |
|
---|
| 3792 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3793 | int
|
---|
| 3794 | main ()
|
---|
| 3795 | {
|
---|
| 3796 | int i;
|
---|
| 3797 | for (i = 0; i < 256; i++)
|
---|
| 3798 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3799 | || toupper (i) != TOUPPER (i))
|
---|
[21327] | 3800 | exit(2);
|
---|
| 3801 | exit (0);
|
---|
[16566] | 3802 | }
|
---|
| 3803 | _ACEOF
|
---|
| 3804 | rm -f conftest$ac_exeext
|
---|
[21327] | 3805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3806 | (eval $ac_link) 2>&5
|
---|
[16566] | 3807 | ac_status=$?
|
---|
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 3810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3811 | (eval $ac_try) 2>&5
|
---|
[16566] | 3812 | ac_status=$?
|
---|
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3814 | (exit $ac_status); }; }; then
|
---|
| 3815 | :
|
---|
| 3816 | else
|
---|
| 3817 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3818 | echo "$as_me: failed program was:" >&5
|
---|
| 3819 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3820 |
|
---|
| 3821 | ( exit $ac_status )
|
---|
| 3822 | ac_cv_header_stdc=no
|
---|
| 3823 | fi
|
---|
[21327] | 3824 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 3825 | fi
|
---|
| 3826 | fi
|
---|
| 3827 | fi
|
---|
[21327] | 3828 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3829 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16566] | 3830 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3831 |
|
---|
| 3832 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3833 | #define STDC_HEADERS 1
|
---|
| 3834 | _ACEOF
|
---|
| 3835 |
|
---|
| 3836 | fi
|
---|
| 3837 |
|
---|
| 3838 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3839 |
|
---|
| 3840 |
|
---|
| 3841 |
|
---|
| 3842 |
|
---|
| 3843 |
|
---|
| 3844 |
|
---|
| 3845 |
|
---|
| 3846 |
|
---|
| 3847 |
|
---|
| 3848 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3849 | inttypes.h stdint.h unistd.h
|
---|
| 3850 | do
|
---|
| 3851 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[21327] | 3852 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3853 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3854 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 3855 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3856 | else
|
---|
| 3857 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3858 | /* confdefs.h. */
|
---|
| 3859 | _ACEOF
|
---|
| 3860 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3861 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3862 | /* end confdefs.h. */
|
---|
| 3863 | $ac_includes_default
|
---|
| 3864 |
|
---|
| 3865 | #include <$ac_header>
|
---|
| 3866 | _ACEOF
|
---|
| 3867 | rm -f conftest.$ac_objext
|
---|
[21327] | 3868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3869 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 3870 | ac_status=$?
|
---|
| 3871 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3872 | rm -f conftest.er1
|
---|
| 3873 | cat conftest.err >&5
|
---|
| 3874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3875 | (exit $ac_status); } &&
|
---|
| 3876 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3877 | || test ! -s conftest.err'
|
---|
| 3878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3879 | (eval $ac_try) 2>&5
|
---|
| 3880 | ac_status=$?
|
---|
| 3881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3882 | (exit $ac_status); }; } &&
|
---|
| 3883 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3885 | (eval $ac_try) 2>&5
|
---|
| 3886 | ac_status=$?
|
---|
| 3887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3888 | (exit $ac_status); }; }; then
|
---|
[16566] | 3889 | eval "$as_ac_Header=yes"
|
---|
| 3890 | else
|
---|
| 3891 | echo "$as_me: failed program was:" >&5
|
---|
| 3892 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3893 |
|
---|
[21327] | 3894 | eval "$as_ac_Header=no"
|
---|
[16566] | 3895 | fi
|
---|
[21327] | 3896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 3897 | fi
|
---|
[21327] | 3898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3899 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 3900 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3901 | cat >>confdefs.h <<_ACEOF
|
---|
| 3902 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3903 | _ACEOF
|
---|
| 3904 |
|
---|
| 3905 | fi
|
---|
| 3906 |
|
---|
| 3907 | done
|
---|
| 3908 |
|
---|
| 3909 |
|
---|
| 3910 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
[21327] | 3911 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3912 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
[16566] | 3913 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3914 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3915 | fi
|
---|
[21327] | 3916 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3917 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16566] | 3918 | else
|
---|
| 3919 | # Is the header compilable?
|
---|
[21327] | 3920 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3921 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
[16566] | 3922 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3923 | /* confdefs.h. */
|
---|
| 3924 | _ACEOF
|
---|
| 3925 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3926 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3927 | /* end confdefs.h. */
|
---|
| 3928 | $ac_includes_default
|
---|
| 3929 | #include <minix/config.h>
|
---|
| 3930 | _ACEOF
|
---|
| 3931 | rm -f conftest.$ac_objext
|
---|
[21327] | 3932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3933 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 3934 | ac_status=$?
|
---|
| 3935 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3936 | rm -f conftest.er1
|
---|
| 3937 | cat conftest.err >&5
|
---|
| 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3939 | (exit $ac_status); } &&
|
---|
| 3940 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3941 | || test ! -s conftest.err'
|
---|
| 3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3943 | (eval $ac_try) 2>&5
|
---|
| 3944 | ac_status=$?
|
---|
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3946 | (exit $ac_status); }; } &&
|
---|
| 3947 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3949 | (eval $ac_try) 2>&5
|
---|
| 3950 | ac_status=$?
|
---|
| 3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3952 | (exit $ac_status); }; }; then
|
---|
[16566] | 3953 | ac_header_compiler=yes
|
---|
| 3954 | else
|
---|
| 3955 | echo "$as_me: failed program was:" >&5
|
---|
| 3956 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3957 |
|
---|
[21327] | 3958 | ac_header_compiler=no
|
---|
[16566] | 3959 | fi
|
---|
[21327] | 3960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3961 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3962 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[16566] | 3963 |
|
---|
| 3964 | # Is the header present?
|
---|
[21327] | 3965 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3966 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
[16566] | 3967 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3968 | /* confdefs.h. */
|
---|
| 3969 | _ACEOF
|
---|
| 3970 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3971 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3972 | /* end confdefs.h. */
|
---|
| 3973 | #include <minix/config.h>
|
---|
| 3974 | _ACEOF
|
---|
[21327] | 3975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3977 | ac_status=$?
|
---|
| 3978 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3979 | rm -f conftest.er1
|
---|
| 3980 | cat conftest.err >&5
|
---|
| 3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3982 | (exit $ac_status); } >/dev/null; then
|
---|
| 3983 | if test -s conftest.err; then
|
---|
| 3984 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3985 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3986 | else
|
---|
| 3987 | ac_cpp_err=
|
---|
| 3988 | fi
|
---|
| 3989 | else
|
---|
| 3990 | ac_cpp_err=yes
|
---|
| 3991 | fi
|
---|
| 3992 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3993 | ac_header_preproc=yes
|
---|
| 3994 | else
|
---|
| 3995 | echo "$as_me: failed program was:" >&5
|
---|
| 3996 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3997 |
|
---|
| 3998 | ac_header_preproc=no
|
---|
| 3999 | fi
|
---|
| 4000 | rm -f conftest.err conftest.$ac_ext
|
---|
[21327] | 4001 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4002 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[16566] | 4003 |
|
---|
| 4004 | # So? What about this header?
|
---|
| 4005 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4006 | yes:no: )
|
---|
| 4007 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4008 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4009 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 4010 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 4011 | ac_header_preproc=yes
|
---|
| 4012 | ;;
|
---|
| 4013 | no:yes:* )
|
---|
| 4014 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 4015 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 4016 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 4017 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 4018 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 4019 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 4020 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4021 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4022 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4023 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4024 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4025 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
[21327] | 4026 | (
|
---|
| 4027 | cat <<\_ASBOX
|
---|
| 4028 | ## ------------------------------------------ ##
|
---|
| 4029 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 4030 | ## ------------------------------------------ ##
|
---|
| 4031 | _ASBOX
|
---|
| 4032 | ) |
|
---|
| 4033 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
[16566] | 4034 | ;;
|
---|
| 4035 | esac
|
---|
[21327] | 4036 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4037 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
[16566] | 4038 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4039 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4040 | else
|
---|
| 4041 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4042 | fi
|
---|
[21327] | 4043 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4044 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16566] | 4045 |
|
---|
| 4046 | fi
|
---|
| 4047 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 4048 | MINIX=yes
|
---|
| 4049 | else
|
---|
| 4050 | MINIX=
|
---|
| 4051 | fi
|
---|
| 4052 |
|
---|
| 4053 |
|
---|
| 4054 | if test "$MINIX" = yes; then
|
---|
| 4055 |
|
---|
| 4056 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4057 | #define _POSIX_SOURCE 1
|
---|
| 4058 | _ACEOF
|
---|
| 4059 |
|
---|
| 4060 |
|
---|
| 4061 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4062 | #define _POSIX_1_SOURCE 2
|
---|
| 4063 | _ACEOF
|
---|
| 4064 |
|
---|
| 4065 |
|
---|
| 4066 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4067 | #define _MINIX 1
|
---|
| 4068 | _ACEOF
|
---|
| 4069 |
|
---|
| 4070 | fi
|
---|
| 4071 |
|
---|
[21327] | 4072 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4073 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
[16566] | 4074 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 4075 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4076 | else
|
---|
| 4077 | ac_cv_prog_cc_stdc=no
|
---|
| 4078 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4079 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4080 | # breaks some systems' header files.
|
---|
| 4081 | # AIX -qlanglvl=ansi
|
---|
| 4082 | # Ultrix and OSF/1 -std1
|
---|
| 4083 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4084 | # SVR4 -Xc
|
---|
| 4085 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4086 | do
|
---|
| 4087 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
| 4088 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4089 | /* confdefs.h. */
|
---|
| 4090 | _ACEOF
|
---|
| 4091 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4092 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4093 | /* end confdefs.h. */
|
---|
| 4094 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4095 | choke me
|
---|
| 4096 | #endif
|
---|
| 4097 |
|
---|
| 4098 | int
|
---|
| 4099 | main ()
|
---|
| 4100 | {
|
---|
| 4101 | int test (int i, double x);
|
---|
| 4102 | struct s1 {int (*f) (int a);};
|
---|
| 4103 | struct s2 {int (*f) (double a);};
|
---|
| 4104 | ;
|
---|
| 4105 | return 0;
|
---|
| 4106 | }
|
---|
| 4107 | _ACEOF
|
---|
| 4108 | rm -f conftest.$ac_objext
|
---|
[21327] | 4109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4110 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4111 | ac_status=$?
|
---|
| 4112 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4113 | rm -f conftest.er1
|
---|
| 4114 | cat conftest.err >&5
|
---|
| 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4116 | (exit $ac_status); } &&
|
---|
| 4117 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4118 | || test ! -s conftest.err'
|
---|
| 4119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4120 | (eval $ac_try) 2>&5
|
---|
| 4121 | ac_status=$?
|
---|
| 4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4123 | (exit $ac_status); }; } &&
|
---|
| 4124 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4126 | (eval $ac_try) 2>&5
|
---|
| 4127 | ac_status=$?
|
---|
| 4128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4129 | (exit $ac_status); }; }; then
|
---|
[16566] | 4130 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4131 | else
|
---|
| 4132 | echo "$as_me: failed program was:" >&5
|
---|
| 4133 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4134 |
|
---|
| 4135 | fi
|
---|
[21327] | 4136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4137 | done
|
---|
| 4138 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4139 |
|
---|
| 4140 | fi
|
---|
| 4141 |
|
---|
[21327] | 4142 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4143 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[16566] | 4144 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4145 | x|xno) ;;
|
---|
| 4146 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4147 | esac
|
---|
| 4148 |
|
---|
| 4149 |
|
---|
[21327] | 4150 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4151 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[16566] | 4152 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[21327] | 4153 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4154 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 4155 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4156 | #define PROTOTYPES 1
|
---|
| 4157 | _ACEOF
|
---|
| 4158 |
|
---|
| 4159 | U= ANSI2KNR=
|
---|
| 4160 | else
|
---|
[21327] | 4161 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4162 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 4163 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4164 | fi
|
---|
| 4165 |
|
---|
[21327] | 4166 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4167 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
[16566] | 4168 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4169 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4170 | else
|
---|
| 4171 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4172 | /* confdefs.h. */
|
---|
| 4173 | _ACEOF
|
---|
| 4174 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4175 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4176 | /* end confdefs.h. */
|
---|
| 4177 |
|
---|
| 4178 | int
|
---|
| 4179 | main ()
|
---|
| 4180 | {
|
---|
| 4181 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4182 | #ifndef __cplusplus
|
---|
| 4183 | /* Ultrix mips cc rejects this. */
|
---|
| 4184 | typedef int charset[2];
|
---|
[21327] | 4185 | const charset x;
|
---|
[16566] | 4186 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[21327] | 4187 | char const *const *ccp;
|
---|
| 4188 | char **p;
|
---|
[16566] | 4189 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4190 | struct point {int x, y;};
|
---|
| 4191 | static struct point const zero = {0,0};
|
---|
| 4192 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4193 | It does not let you subtract one const X* pointer from another in
|
---|
| 4194 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4195 | expression */
|
---|
| 4196 | const char *g = "string";
|
---|
[21327] | 4197 | ccp = &g + (g ? g-g : 0);
|
---|
[16566] | 4198 | /* HPUX 7.0 cc rejects these. */
|
---|
[21327] | 4199 | ++ccp;
|
---|
| 4200 | p = (char**) ccp;
|
---|
| 4201 | ccp = (char const *const *) p;
|
---|
[16566] | 4202 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4203 | char *t;
|
---|
| 4204 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4205 |
|
---|
| 4206 | *t++ = 0;
|
---|
| 4207 | }
|
---|
| 4208 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4209 | int x[] = {25, 17};
|
---|
| 4210 | const int *foo = &x[0];
|
---|
| 4211 | ++foo;
|
---|
| 4212 | }
|
---|
| 4213 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4214 | typedef const int *iptr;
|
---|
| 4215 | iptr p = 0;
|
---|
| 4216 | ++p;
|
---|
| 4217 | }
|
---|
| 4218 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4219 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4220 | struct s { int j; const int *ap[3]; };
|
---|
| 4221 | struct s *b; b->j = 5;
|
---|
| 4222 | }
|
---|
| 4223 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4224 | const int foo = 10;
|
---|
| 4225 | }
|
---|
| 4226 | #endif
|
---|
| 4227 |
|
---|
| 4228 | ;
|
---|
| 4229 | return 0;
|
---|
| 4230 | }
|
---|
| 4231 | _ACEOF
|
---|
| 4232 | rm -f conftest.$ac_objext
|
---|
[21327] | 4233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4234 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4235 | ac_status=$?
|
---|
| 4236 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4237 | rm -f conftest.er1
|
---|
| 4238 | cat conftest.err >&5
|
---|
| 4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4240 | (exit $ac_status); } &&
|
---|
| 4241 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4242 | || test ! -s conftest.err'
|
---|
| 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
|
---|
| 4247 | (exit $ac_status); }; } &&
|
---|
| 4248 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4250 | (eval $ac_try) 2>&5
|
---|
| 4251 | ac_status=$?
|
---|
| 4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4253 | (exit $ac_status); }; }; then
|
---|
[16566] | 4254 | ac_cv_c_const=yes
|
---|
| 4255 | else
|
---|
| 4256 | echo "$as_me: failed program was:" >&5
|
---|
| 4257 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4258 |
|
---|
[21327] | 4259 | ac_cv_c_const=no
|
---|
[16566] | 4260 | fi
|
---|
[21327] | 4261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4262 | fi
|
---|
[21327] | 4263 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4264 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[16566] | 4265 | if test $ac_cv_c_const = no; then
|
---|
| 4266 |
|
---|
| 4267 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4268 | #define const
|
---|
| 4269 | _ACEOF
|
---|
| 4270 |
|
---|
| 4271 | fi
|
---|
| 4272 |
|
---|
[21327] | 4273 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4274 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
[16566] | 4275 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4276 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4277 | else
|
---|
| 4278 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4279 | /* confdefs.h. */
|
---|
| 4280 | _ACEOF
|
---|
| 4281 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4282 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4283 | /* end confdefs.h. */
|
---|
| 4284 | $ac_includes_default
|
---|
| 4285 | int
|
---|
| 4286 | main ()
|
---|
| 4287 | {
|
---|
[21327] | 4288 | if ((off_t *) 0)
|
---|
[16566] | 4289 | return 0;
|
---|
[21327] | 4290 | if (sizeof (off_t))
|
---|
[16566] | 4291 | return 0;
|
---|
| 4292 | ;
|
---|
| 4293 | return 0;
|
---|
| 4294 | }
|
---|
| 4295 | _ACEOF
|
---|
| 4296 | rm -f conftest.$ac_objext
|
---|
[21327] | 4297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4298 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4299 | ac_status=$?
|
---|
| 4300 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4301 | rm -f conftest.er1
|
---|
| 4302 | cat conftest.err >&5
|
---|
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4304 | (exit $ac_status); } &&
|
---|
| 4305 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4306 | || test ! -s conftest.err'
|
---|
| 4307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4308 | (eval $ac_try) 2>&5
|
---|
| 4309 | ac_status=$?
|
---|
| 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4311 | (exit $ac_status); }; } &&
|
---|
| 4312 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4314 | (eval $ac_try) 2>&5
|
---|
| 4315 | ac_status=$?
|
---|
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4317 | (exit $ac_status); }; }; then
|
---|
[16566] | 4318 | ac_cv_type_off_t=yes
|
---|
| 4319 | else
|
---|
| 4320 | echo "$as_me: failed program was:" >&5
|
---|
| 4321 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4322 |
|
---|
[21327] | 4323 | ac_cv_type_off_t=no
|
---|
[16566] | 4324 | fi
|
---|
[21327] | 4325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4326 | fi
|
---|
[21327] | 4327 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4328 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
[16566] | 4329 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4330 | :
|
---|
| 4331 | else
|
---|
| 4332 |
|
---|
| 4333 | cat >>confdefs.h <<_ACEOF
|
---|
[21327] | 4334 | #define off_t long
|
---|
[16566] | 4335 | _ACEOF
|
---|
| 4336 |
|
---|
| 4337 | fi
|
---|
| 4338 |
|
---|
[21327] | 4339 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4340 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
[16566] | 4341 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4342 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4343 | else
|
---|
| 4344 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4345 | /* confdefs.h. */
|
---|
| 4346 | _ACEOF
|
---|
| 4347 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4348 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4349 | /* end confdefs.h. */
|
---|
| 4350 | $ac_includes_default
|
---|
| 4351 | int
|
---|
| 4352 | main ()
|
---|
| 4353 | {
|
---|
[21327] | 4354 | if ((size_t *) 0)
|
---|
[16566] | 4355 | return 0;
|
---|
[21327] | 4356 | if (sizeof (size_t))
|
---|
[16566] | 4357 | return 0;
|
---|
| 4358 | ;
|
---|
| 4359 | return 0;
|
---|
| 4360 | }
|
---|
| 4361 | _ACEOF
|
---|
| 4362 | rm -f conftest.$ac_objext
|
---|
[21327] | 4363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4364 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4365 | ac_status=$?
|
---|
| 4366 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4367 | rm -f conftest.er1
|
---|
| 4368 | cat conftest.err >&5
|
---|
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4370 | (exit $ac_status); } &&
|
---|
| 4371 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4372 | || test ! -s conftest.err'
|
---|
| 4373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4374 | (eval $ac_try) 2>&5
|
---|
| 4375 | ac_status=$?
|
---|
| 4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4377 | (exit $ac_status); }; } &&
|
---|
| 4378 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4380 | (eval $ac_try) 2>&5
|
---|
| 4381 | ac_status=$?
|
---|
| 4382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4383 | (exit $ac_status); }; }; then
|
---|
[16566] | 4384 | ac_cv_type_size_t=yes
|
---|
| 4385 | else
|
---|
| 4386 | echo "$as_me: failed program was:" >&5
|
---|
| 4387 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4388 |
|
---|
[21327] | 4389 | ac_cv_type_size_t=no
|
---|
[16566] | 4390 | fi
|
---|
[21327] | 4391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4392 | fi
|
---|
[21327] | 4393 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4394 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
[16566] | 4395 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4396 | :
|
---|
| 4397 | else
|
---|
| 4398 |
|
---|
| 4399 | cat >>confdefs.h <<_ACEOF
|
---|
[21327] | 4400 | #define size_t unsigned
|
---|
[16566] | 4401 | _ACEOF
|
---|
| 4402 |
|
---|
| 4403 | fi
|
---|
| 4404 |
|
---|
[21327] | 4405 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4406 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
[16566] | 4407 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4408 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4409 | else
|
---|
| 4410 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4411 | /* confdefs.h. */
|
---|
| 4412 | _ACEOF
|
---|
| 4413 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4414 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4415 | /* end confdefs.h. */
|
---|
| 4416 | #include <sys/types.h>
|
---|
| 4417 | #include <sys/time.h>
|
---|
| 4418 | #include <time.h>
|
---|
| 4419 |
|
---|
| 4420 | int
|
---|
| 4421 | main ()
|
---|
| 4422 | {
|
---|
| 4423 | if ((struct tm *) 0)
|
---|
| 4424 | return 0;
|
---|
| 4425 | ;
|
---|
| 4426 | return 0;
|
---|
| 4427 | }
|
---|
| 4428 | _ACEOF
|
---|
| 4429 | rm -f conftest.$ac_objext
|
---|
[21327] | 4430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4431 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4432 | ac_status=$?
|
---|
| 4433 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4434 | rm -f conftest.er1
|
---|
| 4435 | cat conftest.err >&5
|
---|
| 4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4437 | (exit $ac_status); } &&
|
---|
| 4438 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4439 | || test ! -s conftest.err'
|
---|
| 4440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4441 | (eval $ac_try) 2>&5
|
---|
| 4442 | ac_status=$?
|
---|
| 4443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4444 | (exit $ac_status); }; } &&
|
---|
| 4445 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4447 | (eval $ac_try) 2>&5
|
---|
| 4448 | ac_status=$?
|
---|
| 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4450 | (exit $ac_status); }; }; then
|
---|
[16566] | 4451 | ac_cv_header_time=yes
|
---|
| 4452 | else
|
---|
| 4453 | echo "$as_me: failed program was:" >&5
|
---|
| 4454 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4455 |
|
---|
[21327] | 4456 | ac_cv_header_time=no
|
---|
[16566] | 4457 | fi
|
---|
[21327] | 4458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4459 | fi
|
---|
[21327] | 4460 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4461 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
[16566] | 4462 | if test $ac_cv_header_time = yes; then
|
---|
| 4463 |
|
---|
| 4464 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4465 | #define TIME_WITH_SYS_TIME 1
|
---|
| 4466 | _ACEOF
|
---|
| 4467 |
|
---|
| 4468 | fi
|
---|
| 4469 |
|
---|
[21327] | 4470 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4471 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
[16566] | 4472 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4473 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4474 | else
|
---|
| 4475 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4476 | /* confdefs.h. */
|
---|
| 4477 | _ACEOF
|
---|
| 4478 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4479 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4480 | /* end confdefs.h. */
|
---|
| 4481 | #include <sys/types.h>
|
---|
| 4482 | #include <time.h>
|
---|
| 4483 |
|
---|
| 4484 | int
|
---|
| 4485 | main ()
|
---|
| 4486 | {
|
---|
[21327] | 4487 | struct tm *tp; tp->tm_sec;
|
---|
[16566] | 4488 | ;
|
---|
| 4489 | return 0;
|
---|
| 4490 | }
|
---|
| 4491 | _ACEOF
|
---|
| 4492 | rm -f conftest.$ac_objext
|
---|
[21327] | 4493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4494 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4495 | ac_status=$?
|
---|
| 4496 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4497 | rm -f conftest.er1
|
---|
| 4498 | cat conftest.err >&5
|
---|
| 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4500 | (exit $ac_status); } &&
|
---|
| 4501 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4502 | || test ! -s conftest.err'
|
---|
| 4503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4504 | (eval $ac_try) 2>&5
|
---|
| 4505 | ac_status=$?
|
---|
| 4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4507 | (exit $ac_status); }; } &&
|
---|
| 4508 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4510 | (eval $ac_try) 2>&5
|
---|
| 4511 | ac_status=$?
|
---|
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4513 | (exit $ac_status); }; }; then
|
---|
[16566] | 4514 | ac_cv_struct_tm=time.h
|
---|
| 4515 | else
|
---|
| 4516 | echo "$as_me: failed program was:" >&5
|
---|
| 4517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4518 |
|
---|
[21327] | 4519 | ac_cv_struct_tm=sys/time.h
|
---|
[16566] | 4520 | fi
|
---|
[21327] | 4521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4522 | fi
|
---|
[21327] | 4523 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4524 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
[16566] | 4525 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 4526 |
|
---|
| 4527 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4528 | #define TM_IN_SYS_TIME 1
|
---|
| 4529 | _ACEOF
|
---|
| 4530 |
|
---|
| 4531 | fi
|
---|
| 4532 |
|
---|
| 4533 |
|
---|
| 4534 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 4535 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4536 | /* confdefs.h. */
|
---|
| 4537 | _ACEOF
|
---|
| 4538 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4539 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4540 | /* end confdefs.h. */
|
---|
| 4541 | #include <stdio.h>
|
---|
| 4542 |
|
---|
| 4543 | int
|
---|
| 4544 | main ()
|
---|
| 4545 | {
|
---|
| 4546 | FILE *rubbish = popen("yes", "r");
|
---|
| 4547 | ;
|
---|
| 4548 | return 0;
|
---|
| 4549 | }
|
---|
| 4550 | _ACEOF
|
---|
| 4551 | rm -f conftest.$ac_objext
|
---|
[21327] | 4552 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4553 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4554 | ac_status=$?
|
---|
| 4555 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4556 | rm -f conftest.er1
|
---|
| 4557 | cat conftest.err >&5
|
---|
| 4558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4559 | (exit $ac_status); } &&
|
---|
| 4560 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4561 | || test ! -s conftest.err'
|
---|
| 4562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4563 | (eval $ac_try) 2>&5
|
---|
| 4564 | ac_status=$?
|
---|
| 4565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4566 | (exit $ac_status); }; } &&
|
---|
| 4567 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4569 | (eval $ac_try) 2>&5
|
---|
| 4570 | ac_status=$?
|
---|
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4572 | (exit $ac_status); }; }; then
|
---|
[16566] | 4573 | :
|
---|
| 4574 | else
|
---|
| 4575 | echo "$as_me: failed program was:" >&5
|
---|
| 4576 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4577 |
|
---|
[21327] | 4578 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[16566] | 4579 | fi
|
---|
[21327] | 4580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4581 | fi
|
---|
| 4582 |
|
---|
| 4583 |
|
---|
| 4584 |
|
---|
[21327] | 4585 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4586 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
[16566] | 4587 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4588 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4589 | else
|
---|
| 4590 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4591 | LIBS="-lg $LIBS"
|
---|
| 4592 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4593 | /* confdefs.h. */
|
---|
| 4594 | _ACEOF
|
---|
| 4595 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4596 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4597 | /* end confdefs.h. */
|
---|
| 4598 |
|
---|
| 4599 |
|
---|
| 4600 | int
|
---|
| 4601 | main ()
|
---|
| 4602 | {
|
---|
[21327] | 4603 | main ();
|
---|
[16566] | 4604 | ;
|
---|
| 4605 | return 0;
|
---|
| 4606 | }
|
---|
| 4607 | _ACEOF
|
---|
| 4608 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 4609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4610 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4611 | ac_status=$?
|
---|
| 4612 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4613 | rm -f conftest.er1
|
---|
| 4614 | cat conftest.err >&5
|
---|
| 4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4616 | (exit $ac_status); } &&
|
---|
| 4617 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4618 | || test ! -s conftest.err'
|
---|
| 4619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4620 | (eval $ac_try) 2>&5
|
---|
| 4621 | ac_status=$?
|
---|
| 4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4623 | (exit $ac_status); }; } &&
|
---|
| 4624 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4626 | (eval $ac_try) 2>&5
|
---|
| 4627 | ac_status=$?
|
---|
| 4628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4629 | (exit $ac_status); }; }; then
|
---|
[16566] | 4630 | ac_cv_lib_g_main=yes
|
---|
| 4631 | else
|
---|
| 4632 | echo "$as_me: failed program was:" >&5
|
---|
| 4633 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4634 |
|
---|
[21327] | 4635 | ac_cv_lib_g_main=no
|
---|
[16566] | 4636 | fi
|
---|
[21327] | 4637 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 4638 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4639 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4640 | fi
|
---|
[21327] | 4641 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4642 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
[16566] | 4643 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4644 | cat >>confdefs.h <<_ACEOF
|
---|
| 4645 | #define HAVE_LIBG 1
|
---|
| 4646 | _ACEOF
|
---|
| 4647 |
|
---|
| 4648 | LIBS="-lg $LIBS"
|
---|
| 4649 |
|
---|
| 4650 | fi
|
---|
| 4651 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
| 4652 |
|
---|
| 4653 |
|
---|
[21327] | 4654 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4655 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
[16566] | 4656 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4657 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4658 | else
|
---|
| 4659 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4660 | LIBS="-lm $LIBS"
|
---|
| 4661 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4662 | /* confdefs.h. */
|
---|
| 4663 | _ACEOF
|
---|
| 4664 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4665 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4666 | /* end confdefs.h. */
|
---|
| 4667 |
|
---|
| 4668 |
|
---|
| 4669 | int
|
---|
| 4670 | main ()
|
---|
| 4671 | {
|
---|
[21327] | 4672 | main ();
|
---|
[16566] | 4673 | ;
|
---|
| 4674 | return 0;
|
---|
| 4675 | }
|
---|
| 4676 | _ACEOF
|
---|
| 4677 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 4678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4679 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4680 | ac_status=$?
|
---|
| 4681 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4682 | rm -f conftest.er1
|
---|
| 4683 | cat conftest.err >&5
|
---|
| 4684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4685 | (exit $ac_status); } &&
|
---|
| 4686 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4687 | || test ! -s conftest.err'
|
---|
| 4688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4689 | (eval $ac_try) 2>&5
|
---|
| 4690 | ac_status=$?
|
---|
| 4691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4692 | (exit $ac_status); }; } &&
|
---|
| 4693 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4695 | (eval $ac_try) 2>&5
|
---|
| 4696 | ac_status=$?
|
---|
| 4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4698 | (exit $ac_status); }; }; then
|
---|
[16566] | 4699 | ac_cv_lib_m_main=yes
|
---|
| 4700 | else
|
---|
| 4701 | echo "$as_me: failed program was:" >&5
|
---|
| 4702 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4703 |
|
---|
[21327] | 4704 | ac_cv_lib_m_main=no
|
---|
[16566] | 4705 | fi
|
---|
[21327] | 4706 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 4707 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4708 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4709 | fi
|
---|
[21327] | 4710 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4711 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
[16566] | 4712 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4713 | cat >>confdefs.h <<_ACEOF
|
---|
| 4714 | #define HAVE_LIBM 1
|
---|
| 4715 | _ACEOF
|
---|
| 4716 |
|
---|
| 4717 | LIBS="-lm $LIBS"
|
---|
| 4718 |
|
---|
| 4719 | fi
|
---|
| 4720 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
| 4721 |
|
---|
| 4722 |
|
---|
[21327] | 4723 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4724 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
[16566] | 4725 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4726 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4727 | else
|
---|
| 4728 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4729 | LIBS="-lcrypt $LIBS"
|
---|
| 4730 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4731 | /* confdefs.h. */
|
---|
| 4732 | _ACEOF
|
---|
| 4733 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4734 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4735 | /* end confdefs.h. */
|
---|
| 4736 |
|
---|
| 4737 |
|
---|
| 4738 | int
|
---|
| 4739 | main ()
|
---|
| 4740 | {
|
---|
[21327] | 4741 | main ();
|
---|
[16566] | 4742 | ;
|
---|
| 4743 | return 0;
|
---|
| 4744 | }
|
---|
| 4745 | _ACEOF
|
---|
| 4746 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 4747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4748 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4749 | ac_status=$?
|
---|
| 4750 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4751 | rm -f conftest.er1
|
---|
| 4752 | cat conftest.err >&5
|
---|
| 4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4754 | (exit $ac_status); } &&
|
---|
| 4755 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4756 | || test ! -s conftest.err'
|
---|
| 4757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4758 | (eval $ac_try) 2>&5
|
---|
| 4759 | ac_status=$?
|
---|
| 4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4761 | (exit $ac_status); }; } &&
|
---|
| 4762 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4764 | (eval $ac_try) 2>&5
|
---|
| 4765 | ac_status=$?
|
---|
| 4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4767 | (exit $ac_status); }; }; then
|
---|
[16566] | 4768 | ac_cv_lib_crypt_main=yes
|
---|
| 4769 | else
|
---|
| 4770 | echo "$as_me: failed program was:" >&5
|
---|
| 4771 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4772 |
|
---|
[21327] | 4773 | ac_cv_lib_crypt_main=no
|
---|
[16566] | 4774 | fi
|
---|
[21327] | 4775 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 4776 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4777 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4778 | fi
|
---|
[21327] | 4779 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4780 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
[16566] | 4781 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4782 | cat >>confdefs.h <<_ACEOF
|
---|
| 4783 | #define HAVE_LIBCRYPT 1
|
---|
| 4784 | _ACEOF
|
---|
| 4785 |
|
---|
| 4786 | LIBS="-lcrypt $LIBS"
|
---|
| 4787 |
|
---|
| 4788 | fi
|
---|
| 4789 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
| 4790 |
|
---|
[20846] | 4791 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 4792 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 4793 | #fi
|
---|
[16566] | 4794 |
|
---|
| 4795 |
|
---|
[20846] | 4796 |
|
---|
| 4797 |
|
---|
| 4798 |
|
---|
| 4799 |
|
---|
[16566] | 4800 | ac_header_dirent=no
|
---|
| 4801 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4802 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
[21327] | 4803 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4804 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 4806 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4807 | else
|
---|
| 4808 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4809 | /* confdefs.h. */
|
---|
| 4810 | _ACEOF
|
---|
| 4811 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4812 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4813 | /* end confdefs.h. */
|
---|
| 4814 | #include <sys/types.h>
|
---|
| 4815 | #include <$ac_hdr>
|
---|
| 4816 |
|
---|
| 4817 | int
|
---|
| 4818 | main ()
|
---|
| 4819 | {
|
---|
| 4820 | if ((DIR *) 0)
|
---|
| 4821 | return 0;
|
---|
| 4822 | ;
|
---|
| 4823 | return 0;
|
---|
| 4824 | }
|
---|
| 4825 | _ACEOF
|
---|
| 4826 | rm -f conftest.$ac_objext
|
---|
[21327] | 4827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4828 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4829 | ac_status=$?
|
---|
| 4830 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4831 | rm -f conftest.er1
|
---|
| 4832 | cat conftest.err >&5
|
---|
| 4833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4834 | (exit $ac_status); } &&
|
---|
| 4835 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4836 | || test ! -s conftest.err'
|
---|
| 4837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4838 | (eval $ac_try) 2>&5
|
---|
| 4839 | ac_status=$?
|
---|
| 4840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4841 | (exit $ac_status); }; } &&
|
---|
| 4842 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4844 | (eval $ac_try) 2>&5
|
---|
| 4845 | ac_status=$?
|
---|
| 4846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4847 | (exit $ac_status); }; }; then
|
---|
[16566] | 4848 | eval "$as_ac_Header=yes"
|
---|
| 4849 | else
|
---|
| 4850 | echo "$as_me: failed program was:" >&5
|
---|
| 4851 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4852 |
|
---|
[21327] | 4853 | eval "$as_ac_Header=no"
|
---|
[16566] | 4854 | fi
|
---|
[21327] | 4855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4856 | fi
|
---|
[21327] | 4857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 4859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4860 | cat >>confdefs.h <<_ACEOF
|
---|
| 4861 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4862 | _ACEOF
|
---|
| 4863 |
|
---|
| 4864 | ac_header_dirent=$ac_hdr; break
|
---|
| 4865 | fi
|
---|
| 4866 |
|
---|
| 4867 | done
|
---|
| 4868 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4869 | if test $ac_header_dirent = dirent.h; then
|
---|
[21327] | 4870 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4871 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
[16566] | 4872 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4873 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4874 | else
|
---|
| 4875 | ac_func_search_save_LIBS=$LIBS
|
---|
[21327] | 4876 | ac_cv_search_opendir=no
|
---|
[16566] | 4877 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4878 | /* confdefs.h. */
|
---|
| 4879 | _ACEOF
|
---|
| 4880 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4881 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4882 | /* end confdefs.h. */
|
---|
| 4883 |
|
---|
[21327] | 4884 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 4885 | #ifdef __cplusplus
|
---|
| 4886 | extern "C"
|
---|
| 4887 | #endif
|
---|
[21327] | 4888 | /* We use char because int might match the return type of a gcc2
|
---|
| 4889 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 4890 | char opendir ();
|
---|
| 4891 | int
|
---|
| 4892 | main ()
|
---|
| 4893 | {
|
---|
[21327] | 4894 | opendir ();
|
---|
[16566] | 4895 | ;
|
---|
| 4896 | return 0;
|
---|
| 4897 | }
|
---|
| 4898 | _ACEOF
|
---|
[21327] | 4899 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4901 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4902 | ac_status=$?
|
---|
| 4903 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4904 | rm -f conftest.er1
|
---|
| 4905 | cat conftest.err >&5
|
---|
| 4906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4907 | (exit $ac_status); } &&
|
---|
| 4908 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4909 | || test ! -s conftest.err'
|
---|
| 4910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4911 | (eval $ac_try) 2>&5
|
---|
| 4912 | ac_status=$?
|
---|
| 4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4914 | (exit $ac_status); }; } &&
|
---|
| 4915 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4917 | (eval $ac_try) 2>&5
|
---|
| 4918 | ac_status=$?
|
---|
| 4919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4920 | (exit $ac_status); }; }; then
|
---|
| 4921 | ac_cv_search_opendir="none required"
|
---|
[16566] | 4922 | else
|
---|
| 4923 | echo "$as_me: failed program was:" >&5
|
---|
| 4924 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4925 |
|
---|
| 4926 | fi
|
---|
[21327] | 4927 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4928 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4929 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4930 | for ac_lib in dir; do
|
---|
| 4931 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4932 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4933 | /* confdefs.h. */
|
---|
| 4934 | _ACEOF
|
---|
| 4935 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4936 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4937 | /* end confdefs.h. */
|
---|
[16566] | 4938 |
|
---|
[21327] | 4939 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4940 | #ifdef __cplusplus
|
---|
| 4941 | extern "C"
|
---|
| 4942 | #endif
|
---|
| 4943 | /* We use char because int might match the return type of a gcc2
|
---|
| 4944 | builtin and then its argument prototype would still apply. */
|
---|
| 4945 | char opendir ();
|
---|
| 4946 | int
|
---|
| 4947 | main ()
|
---|
| 4948 | {
|
---|
| 4949 | opendir ();
|
---|
| 4950 | ;
|
---|
| 4951 | return 0;
|
---|
| 4952 | }
|
---|
| 4953 | _ACEOF
|
---|
| 4954 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4956 | (eval $ac_link) 2>conftest.er1
|
---|
| 4957 | ac_status=$?
|
---|
| 4958 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4959 | rm -f conftest.er1
|
---|
| 4960 | cat conftest.err >&5
|
---|
| 4961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4962 | (exit $ac_status); } &&
|
---|
| 4963 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4964 | || test ! -s conftest.err'
|
---|
| 4965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4966 | (eval $ac_try) 2>&5
|
---|
| 4967 | ac_status=$?
|
---|
| 4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4969 | (exit $ac_status); }; } &&
|
---|
| 4970 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4972 | (eval $ac_try) 2>&5
|
---|
| 4973 | ac_status=$?
|
---|
| 4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4975 | (exit $ac_status); }; }; then
|
---|
| 4976 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4977 | break
|
---|
[16566] | 4978 | else
|
---|
[21327] | 4979 | echo "$as_me: failed program was:" >&5
|
---|
| 4980 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4981 |
|
---|
[16566] | 4982 | fi
|
---|
[21327] | 4983 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4984 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4985 | done
|
---|
| 4986 | fi
|
---|
[16566] | 4987 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4988 | fi
|
---|
[21327] | 4989 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4990 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4991 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4992 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16566] | 4993 |
|
---|
| 4994 | fi
|
---|
| 4995 |
|
---|
| 4996 | else
|
---|
[21327] | 4997 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4998 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
[16566] | 4999 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5000 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5001 | else
|
---|
| 5002 | ac_func_search_save_LIBS=$LIBS
|
---|
[21327] | 5003 | ac_cv_search_opendir=no
|
---|
[16566] | 5004 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5005 | /* confdefs.h. */
|
---|
| 5006 | _ACEOF
|
---|
| 5007 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5008 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5009 | /* end confdefs.h. */
|
---|
| 5010 |
|
---|
[21327] | 5011 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 5012 | #ifdef __cplusplus
|
---|
| 5013 | extern "C"
|
---|
| 5014 | #endif
|
---|
[21327] | 5015 | /* We use char because int might match the return type of a gcc2
|
---|
| 5016 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 5017 | char opendir ();
|
---|
| 5018 | int
|
---|
| 5019 | main ()
|
---|
| 5020 | {
|
---|
[21327] | 5021 | opendir ();
|
---|
[16566] | 5022 | ;
|
---|
| 5023 | return 0;
|
---|
| 5024 | }
|
---|
| 5025 | _ACEOF
|
---|
[21327] | 5026 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5028 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5029 | ac_status=$?
|
---|
| 5030 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5031 | rm -f conftest.er1
|
---|
| 5032 | cat conftest.err >&5
|
---|
| 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5034 | (exit $ac_status); } &&
|
---|
| 5035 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5036 | || test ! -s conftest.err'
|
---|
| 5037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5038 | (eval $ac_try) 2>&5
|
---|
| 5039 | ac_status=$?
|
---|
| 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5041 | (exit $ac_status); }; } &&
|
---|
| 5042 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5044 | (eval $ac_try) 2>&5
|
---|
| 5045 | ac_status=$?
|
---|
| 5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5047 | (exit $ac_status); }; }; then
|
---|
| 5048 | ac_cv_search_opendir="none required"
|
---|
[16566] | 5049 | else
|
---|
| 5050 | echo "$as_me: failed program was:" >&5
|
---|
| 5051 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5052 |
|
---|
| 5053 | fi
|
---|
[21327] | 5054 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5055 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5056 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5057 | for ac_lib in x; do
|
---|
| 5058 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5059 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5060 | /* confdefs.h. */
|
---|
| 5061 | _ACEOF
|
---|
| 5062 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5063 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5064 | /* end confdefs.h. */
|
---|
[16566] | 5065 |
|
---|
[21327] | 5066 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5067 | #ifdef __cplusplus
|
---|
| 5068 | extern "C"
|
---|
| 5069 | #endif
|
---|
| 5070 | /* We use char because int might match the return type of a gcc2
|
---|
| 5071 | builtin and then its argument prototype would still apply. */
|
---|
| 5072 | char opendir ();
|
---|
| 5073 | int
|
---|
| 5074 | main ()
|
---|
| 5075 | {
|
---|
| 5076 | opendir ();
|
---|
| 5077 | ;
|
---|
| 5078 | return 0;
|
---|
| 5079 | }
|
---|
| 5080 | _ACEOF
|
---|
| 5081 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5083 | (eval $ac_link) 2>conftest.er1
|
---|
| 5084 | ac_status=$?
|
---|
| 5085 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5086 | rm -f conftest.er1
|
---|
| 5087 | cat conftest.err >&5
|
---|
| 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5089 | (exit $ac_status); } &&
|
---|
| 5090 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5091 | || test ! -s conftest.err'
|
---|
| 5092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5093 | (eval $ac_try) 2>&5
|
---|
| 5094 | ac_status=$?
|
---|
| 5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5096 | (exit $ac_status); }; } &&
|
---|
| 5097 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5099 | (eval $ac_try) 2>&5
|
---|
| 5100 | ac_status=$?
|
---|
| 5101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5102 | (exit $ac_status); }; }; then
|
---|
| 5103 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5104 | break
|
---|
[16566] | 5105 | else
|
---|
[21327] | 5106 | echo "$as_me: failed program was:" >&5
|
---|
| 5107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5108 |
|
---|
[16566] | 5109 | fi
|
---|
[21327] | 5110 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5111 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5112 | done
|
---|
| 5113 | fi
|
---|
[16566] | 5114 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5115 | fi
|
---|
[21327] | 5116 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5117 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5118 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5119 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16566] | 5120 |
|
---|
| 5121 | fi
|
---|
| 5122 |
|
---|
| 5123 | fi
|
---|
| 5124 |
|
---|
[21327] | 5125 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5126 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
[16566] | 5127 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5128 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5129 | else
|
---|
| 5130 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5131 | /* confdefs.h. */
|
---|
| 5132 | _ACEOF
|
---|
| 5133 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5134 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5135 | /* end confdefs.h. */
|
---|
| 5136 | #include <stdlib.h>
|
---|
| 5137 | #include <stdarg.h>
|
---|
| 5138 | #include <string.h>
|
---|
| 5139 | #include <float.h>
|
---|
| 5140 |
|
---|
| 5141 | int
|
---|
| 5142 | main ()
|
---|
| 5143 | {
|
---|
| 5144 |
|
---|
| 5145 | ;
|
---|
| 5146 | return 0;
|
---|
| 5147 | }
|
---|
| 5148 | _ACEOF
|
---|
| 5149 | rm -f conftest.$ac_objext
|
---|
[21327] | 5150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5151 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 5152 | ac_status=$?
|
---|
| 5153 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5154 | rm -f conftest.er1
|
---|
| 5155 | cat conftest.err >&5
|
---|
| 5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5157 | (exit $ac_status); } &&
|
---|
| 5158 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5159 | || test ! -s conftest.err'
|
---|
| 5160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5161 | (eval $ac_try) 2>&5
|
---|
| 5162 | ac_status=$?
|
---|
| 5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5164 | (exit $ac_status); }; } &&
|
---|
| 5165 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5167 | (eval $ac_try) 2>&5
|
---|
| 5168 | ac_status=$?
|
---|
| 5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5170 | (exit $ac_status); }; }; then
|
---|
[16566] | 5171 | ac_cv_header_stdc=yes
|
---|
| 5172 | else
|
---|
| 5173 | echo "$as_me: failed program was:" >&5
|
---|
| 5174 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5175 |
|
---|
[21327] | 5176 | ac_cv_header_stdc=no
|
---|
[16566] | 5177 | fi
|
---|
[21327] | 5178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5179 |
|
---|
| 5180 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5181 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 5182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5183 | /* confdefs.h. */
|
---|
| 5184 | _ACEOF
|
---|
| 5185 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5186 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5187 | /* end confdefs.h. */
|
---|
| 5188 | #include <string.h>
|
---|
| 5189 |
|
---|
| 5190 | _ACEOF
|
---|
| 5191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5192 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5193 | :
|
---|
| 5194 | else
|
---|
| 5195 | ac_cv_header_stdc=no
|
---|
| 5196 | fi
|
---|
| 5197 | rm -f conftest*
|
---|
| 5198 |
|
---|
| 5199 | fi
|
---|
| 5200 |
|
---|
| 5201 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5202 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 5203 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5204 | /* confdefs.h. */
|
---|
| 5205 | _ACEOF
|
---|
| 5206 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5207 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5208 | /* end confdefs.h. */
|
---|
| 5209 | #include <stdlib.h>
|
---|
| 5210 |
|
---|
| 5211 | _ACEOF
|
---|
| 5212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5213 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5214 | :
|
---|
| 5215 | else
|
---|
| 5216 | ac_cv_header_stdc=no
|
---|
| 5217 | fi
|
---|
| 5218 | rm -f conftest*
|
---|
| 5219 |
|
---|
| 5220 | fi
|
---|
| 5221 |
|
---|
| 5222 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5223 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 5224 | if test "$cross_compiling" = yes; then
|
---|
| 5225 | :
|
---|
| 5226 | else
|
---|
| 5227 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5228 | /* confdefs.h. */
|
---|
| 5229 | _ACEOF
|
---|
| 5230 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5231 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5232 | /* end confdefs.h. */
|
---|
| 5233 | #include <ctype.h>
|
---|
| 5234 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5235 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5236 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5237 | #else
|
---|
| 5238 | # define ISLOWER(c) \
|
---|
| 5239 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5240 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5241 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5242 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5243 | #endif
|
---|
| 5244 |
|
---|
| 5245 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5246 | int
|
---|
| 5247 | main ()
|
---|
| 5248 | {
|
---|
| 5249 | int i;
|
---|
| 5250 | for (i = 0; i < 256; i++)
|
---|
| 5251 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5252 | || toupper (i) != TOUPPER (i))
|
---|
[21327] | 5253 | exit(2);
|
---|
| 5254 | exit (0);
|
---|
[16566] | 5255 | }
|
---|
| 5256 | _ACEOF
|
---|
| 5257 | rm -f conftest$ac_exeext
|
---|
[21327] | 5258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5259 | (eval $ac_link) 2>&5
|
---|
[16566] | 5260 | ac_status=$?
|
---|
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5262 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 5263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5264 | (eval $ac_try) 2>&5
|
---|
[16566] | 5265 | ac_status=$?
|
---|
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5267 | (exit $ac_status); }; }; then
|
---|
| 5268 | :
|
---|
| 5269 | else
|
---|
| 5270 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5271 | echo "$as_me: failed program was:" >&5
|
---|
| 5272 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5273 |
|
---|
| 5274 | ( exit $ac_status )
|
---|
| 5275 | ac_cv_header_stdc=no
|
---|
| 5276 | fi
|
---|
[21327] | 5277 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5278 | fi
|
---|
| 5279 | fi
|
---|
| 5280 | fi
|
---|
[21327] | 5281 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5282 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16566] | 5283 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5284 |
|
---|
| 5285 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5286 | #define STDC_HEADERS 1
|
---|
| 5287 | _ACEOF
|
---|
| 5288 |
|
---|
| 5289 | fi
|
---|
| 5290 |
|
---|
| 5291 |
|
---|
| 5292 |
|
---|
| 5293 |
|
---|
| 5294 |
|
---|
| 5295 |
|
---|
| 5296 |
|
---|
| 5297 |
|
---|
| 5298 |
|
---|
| 5299 |
|
---|
| 5300 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
| 5301 | do
|
---|
| 5302 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[21327] | 5303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5304 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5305 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 5307 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5308 | fi
|
---|
[21327] | 5309 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5310 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 5311 | else
|
---|
| 5312 | # Is the header compilable?
|
---|
[21327] | 5313 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5314 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
[16566] | 5315 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5316 | /* confdefs.h. */
|
---|
| 5317 | _ACEOF
|
---|
| 5318 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5319 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5320 | /* end confdefs.h. */
|
---|
| 5321 | $ac_includes_default
|
---|
| 5322 | #include <$ac_header>
|
---|
| 5323 | _ACEOF
|
---|
| 5324 | rm -f conftest.$ac_objext
|
---|
[21327] | 5325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5326 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 5327 | ac_status=$?
|
---|
| 5328 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5329 | rm -f conftest.er1
|
---|
| 5330 | cat conftest.err >&5
|
---|
| 5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5332 | (exit $ac_status); } &&
|
---|
| 5333 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5334 | || test ! -s conftest.err'
|
---|
| 5335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5336 | (eval $ac_try) 2>&5
|
---|
| 5337 | ac_status=$?
|
---|
| 5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5339 | (exit $ac_status); }; } &&
|
---|
| 5340 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5342 | (eval $ac_try) 2>&5
|
---|
| 5343 | ac_status=$?
|
---|
| 5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5345 | (exit $ac_status); }; }; then
|
---|
[16566] | 5346 | ac_header_compiler=yes
|
---|
| 5347 | else
|
---|
| 5348 | echo "$as_me: failed program was:" >&5
|
---|
| 5349 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5350 |
|
---|
[21327] | 5351 | ac_header_compiler=no
|
---|
[16566] | 5352 | fi
|
---|
[21327] | 5353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5354 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5355 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[16566] | 5356 |
|
---|
| 5357 | # Is the header present?
|
---|
[21327] | 5358 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5359 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
[16566] | 5360 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5361 | /* confdefs.h. */
|
---|
| 5362 | _ACEOF
|
---|
| 5363 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5364 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5365 | /* end confdefs.h. */
|
---|
| 5366 | #include <$ac_header>
|
---|
| 5367 | _ACEOF
|
---|
[21327] | 5368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 5370 | ac_status=$?
|
---|
| 5371 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5372 | rm -f conftest.er1
|
---|
| 5373 | cat conftest.err >&5
|
---|
| 5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5375 | (exit $ac_status); } >/dev/null; then
|
---|
| 5376 | if test -s conftest.err; then
|
---|
| 5377 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5378 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5379 | else
|
---|
| 5380 | ac_cpp_err=
|
---|
| 5381 | fi
|
---|
| 5382 | else
|
---|
| 5383 | ac_cpp_err=yes
|
---|
| 5384 | fi
|
---|
| 5385 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 5386 | ac_header_preproc=yes
|
---|
| 5387 | else
|
---|
| 5388 | echo "$as_me: failed program was:" >&5
|
---|
| 5389 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5390 |
|
---|
| 5391 | ac_header_preproc=no
|
---|
| 5392 | fi
|
---|
| 5393 | rm -f conftest.err conftest.$ac_ext
|
---|
[21327] | 5394 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5395 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[16566] | 5396 |
|
---|
| 5397 | # So? What about this header?
|
---|
| 5398 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5399 | yes:no: )
|
---|
| 5400 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5401 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5403 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5404 | ac_header_preproc=yes
|
---|
| 5405 | ;;
|
---|
| 5406 | no:yes:* )
|
---|
| 5407 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5408 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5409 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5410 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5411 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5412 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5413 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5414 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5416 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5417 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5418 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
[21327] | 5419 | (
|
---|
| 5420 | cat <<\_ASBOX
|
---|
| 5421 | ## ------------------------------------------ ##
|
---|
| 5422 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5423 | ## ------------------------------------------ ##
|
---|
| 5424 | _ASBOX
|
---|
| 5425 | ) |
|
---|
| 5426 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
[16566] | 5427 | ;;
|
---|
| 5428 | esac
|
---|
[21327] | 5429 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 5432 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5433 | else
|
---|
| 5434 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5435 | fi
|
---|
[21327] | 5436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 5438 |
|
---|
| 5439 | fi
|
---|
| 5440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5441 | cat >>confdefs.h <<_ACEOF
|
---|
| 5442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5443 | _ACEOF
|
---|
| 5444 |
|
---|
| 5445 | fi
|
---|
| 5446 |
|
---|
| 5447 | done
|
---|
| 5448 |
|
---|
| 5449 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5450 | /* confdefs.h. */
|
---|
| 5451 | _ACEOF
|
---|
| 5452 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5453 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5454 | /* end confdefs.h. */
|
---|
| 5455 | #include <stdio.h>
|
---|
| 5456 |
|
---|
| 5457 | _ACEOF
|
---|
| 5458 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5459 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5460 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5461 | #define HAVE_FREAD_DECL 1
|
---|
| 5462 | _ACEOF
|
---|
| 5463 |
|
---|
| 5464 | fi
|
---|
| 5465 | rm -f conftest*
|
---|
| 5466 |
|
---|
| 5467 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5468 | /* confdefs.h. */
|
---|
| 5469 | _ACEOF
|
---|
| 5470 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5471 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5472 | /* end confdefs.h. */
|
---|
| 5473 | #include <stdio.h>
|
---|
| 5474 |
|
---|
| 5475 | _ACEOF
|
---|
| 5476 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5477 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5478 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5479 | #define HAVE_FGETC_DECL 1
|
---|
| 5480 | _ACEOF
|
---|
| 5481 |
|
---|
| 5482 | fi
|
---|
| 5483 | rm -f conftest*
|
---|
| 5484 |
|
---|
| 5485 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5486 | /* confdefs.h. */
|
---|
| 5487 | _ACEOF
|
---|
| 5488 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5489 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5490 | /* end confdefs.h. */
|
---|
| 5491 | #include <sys/procfs.h>
|
---|
| 5492 |
|
---|
| 5493 | _ACEOF
|
---|
| 5494 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5495 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5496 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5497 | #define HAVE_PR_BRKSIZE 1
|
---|
| 5498 | _ACEOF
|
---|
| 5499 |
|
---|
| 5500 | fi
|
---|
| 5501 | rm -f conftest*
|
---|
| 5502 |
|
---|
| 5503 |
|
---|
| 5504 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5505 | # for constant arguments. Useless!
|
---|
[21327] | 5506 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5507 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
[16566] | 5508 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5509 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5510 | else
|
---|
| 5511 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5512 | /* confdefs.h. */
|
---|
| 5513 | _ACEOF
|
---|
| 5514 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5515 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5516 | /* end confdefs.h. */
|
---|
| 5517 | #include <alloca.h>
|
---|
| 5518 | int
|
---|
| 5519 | main ()
|
---|
| 5520 | {
|
---|
| 5521 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5522 | ;
|
---|
| 5523 | return 0;
|
---|
| 5524 | }
|
---|
| 5525 | _ACEOF
|
---|
| 5526 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 5527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5528 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5529 | ac_status=$?
|
---|
| 5530 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5531 | rm -f conftest.er1
|
---|
| 5532 | cat conftest.err >&5
|
---|
| 5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5534 | (exit $ac_status); } &&
|
---|
| 5535 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5536 | || test ! -s conftest.err'
|
---|
| 5537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5538 | (eval $ac_try) 2>&5
|
---|
| 5539 | ac_status=$?
|
---|
| 5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5541 | (exit $ac_status); }; } &&
|
---|
| 5542 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5544 | (eval $ac_try) 2>&5
|
---|
| 5545 | ac_status=$?
|
---|
| 5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5547 | (exit $ac_status); }; }; then
|
---|
[16566] | 5548 | ac_cv_working_alloca_h=yes
|
---|
| 5549 | else
|
---|
| 5550 | echo "$as_me: failed program was:" >&5
|
---|
| 5551 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5552 |
|
---|
[21327] | 5553 | ac_cv_working_alloca_h=no
|
---|
[16566] | 5554 | fi
|
---|
[21327] | 5555 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 5556 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5557 | fi
|
---|
[21327] | 5558 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5559 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
[16566] | 5560 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5561 |
|
---|
| 5562 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5563 | #define HAVE_ALLOCA_H 1
|
---|
| 5564 | _ACEOF
|
---|
| 5565 |
|
---|
| 5566 | fi
|
---|
| 5567 |
|
---|
[21327] | 5568 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5569 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
[16566] | 5570 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5571 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5572 | else
|
---|
| 5573 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5574 | /* confdefs.h. */
|
---|
| 5575 | _ACEOF
|
---|
| 5576 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5577 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5578 | /* end confdefs.h. */
|
---|
| 5579 | #ifdef __GNUC__
|
---|
| 5580 | # define alloca __builtin_alloca
|
---|
| 5581 | #else
|
---|
| 5582 | # ifdef _MSC_VER
|
---|
| 5583 | # include <malloc.h>
|
---|
| 5584 | # define alloca _alloca
|
---|
| 5585 | # else
|
---|
[21327] | 5586 | # if HAVE_ALLOCA_H
|
---|
[16566] | 5587 | # include <alloca.h>
|
---|
| 5588 | # else
|
---|
| 5589 | # ifdef _AIX
|
---|
| 5590 | #pragma alloca
|
---|
| 5591 | # else
|
---|
| 5592 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5593 | char *alloca ();
|
---|
| 5594 | # endif
|
---|
| 5595 | # endif
|
---|
| 5596 | # endif
|
---|
| 5597 | # endif
|
---|
| 5598 | #endif
|
---|
| 5599 |
|
---|
| 5600 | int
|
---|
| 5601 | main ()
|
---|
| 5602 | {
|
---|
| 5603 | char *p = (char *) alloca (1);
|
---|
| 5604 | ;
|
---|
| 5605 | return 0;
|
---|
| 5606 | }
|
---|
| 5607 | _ACEOF
|
---|
| 5608 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 5609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5610 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5611 | ac_status=$?
|
---|
| 5612 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5613 | rm -f conftest.er1
|
---|
| 5614 | cat conftest.err >&5
|
---|
| 5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5616 | (exit $ac_status); } &&
|
---|
| 5617 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5618 | || test ! -s conftest.err'
|
---|
| 5619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5620 | (eval $ac_try) 2>&5
|
---|
| 5621 | ac_status=$?
|
---|
| 5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5623 | (exit $ac_status); }; } &&
|
---|
| 5624 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5626 | (eval $ac_try) 2>&5
|
---|
| 5627 | ac_status=$?
|
---|
| 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5629 | (exit $ac_status); }; }; then
|
---|
[16566] | 5630 | ac_cv_func_alloca_works=yes
|
---|
| 5631 | else
|
---|
| 5632 | echo "$as_me: failed program was:" >&5
|
---|
| 5633 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5634 |
|
---|
[21327] | 5635 | ac_cv_func_alloca_works=no
|
---|
[16566] | 5636 | fi
|
---|
[21327] | 5637 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 5638 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5639 | fi
|
---|
[21327] | 5640 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5641 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[16566] | 5642 |
|
---|
| 5643 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5644 |
|
---|
| 5645 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5646 | #define HAVE_ALLOCA 1
|
---|
| 5647 | _ACEOF
|
---|
| 5648 |
|
---|
| 5649 | else
|
---|
| 5650 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5651 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5652 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5653 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5654 |
|
---|
[21327] | 5655 | ALLOCA=alloca.$ac_objext
|
---|
[16566] | 5656 |
|
---|
| 5657 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5658 | #define C_ALLOCA 1
|
---|
| 5659 | _ACEOF
|
---|
| 5660 |
|
---|
| 5661 |
|
---|
[21327] | 5662 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5663 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
[16566] | 5664 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5665 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5666 | else
|
---|
| 5667 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5668 | /* confdefs.h. */
|
---|
| 5669 | _ACEOF
|
---|
| 5670 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5671 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5672 | /* end confdefs.h. */
|
---|
[21327] | 5673 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
[16566] | 5674 | webecray
|
---|
| 5675 | #else
|
---|
| 5676 | wenotbecray
|
---|
| 5677 | #endif
|
---|
| 5678 |
|
---|
| 5679 | _ACEOF
|
---|
| 5680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5681 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
| 5682 | ac_cv_os_cray=yes
|
---|
| 5683 | else
|
---|
| 5684 | ac_cv_os_cray=no
|
---|
| 5685 | fi
|
---|
| 5686 | rm -f conftest*
|
---|
| 5687 |
|
---|
| 5688 | fi
|
---|
[21327] | 5689 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5690 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[16566] | 5691 | if test $ac_cv_os_cray = yes; then
|
---|
| 5692 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5693 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 5694 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5695 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5696 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 5697 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5698 | else
|
---|
| 5699 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5700 | /* confdefs.h. */
|
---|
| 5701 | _ACEOF
|
---|
| 5702 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5703 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5704 | /* end confdefs.h. */
|
---|
| 5705 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5706 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5707 | #define $ac_func innocuous_$ac_func
|
---|
| 5708 |
|
---|
| 5709 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 5710 | which can conflict with char $ac_func (); below.
|
---|
| 5711 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5712 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5713 |
|
---|
| 5714 | #ifdef __STDC__
|
---|
| 5715 | # include <limits.h>
|
---|
| 5716 | #else
|
---|
| 5717 | # include <assert.h>
|
---|
| 5718 | #endif
|
---|
| 5719 |
|
---|
| 5720 | #undef $ac_func
|
---|
| 5721 |
|
---|
[21327] | 5722 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 5723 | #ifdef __cplusplus
|
---|
| 5724 | extern "C"
|
---|
[21327] | 5725 | {
|
---|
[16566] | 5726 | #endif
|
---|
[21327] | 5727 | /* We use char because int might match the return type of a gcc2
|
---|
| 5728 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 5729 | char $ac_func ();
|
---|
| 5730 | /* The GNU C library defines this for functions which it implements
|
---|
| 5731 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5732 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 5733 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 5734 | choke me
|
---|
[21327] | 5735 | #else
|
---|
| 5736 | char (*f) () = $ac_func;
|
---|
[16566] | 5737 | #endif
|
---|
[21327] | 5738 | #ifdef __cplusplus
|
---|
| 5739 | }
|
---|
| 5740 | #endif
|
---|
[16566] | 5741 |
|
---|
| 5742 | int
|
---|
| 5743 | main ()
|
---|
| 5744 | {
|
---|
[21327] | 5745 | return f != $ac_func;
|
---|
[16566] | 5746 | ;
|
---|
| 5747 | return 0;
|
---|
| 5748 | }
|
---|
| 5749 | _ACEOF
|
---|
| 5750 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 5751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5752 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5753 | ac_status=$?
|
---|
| 5754 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5755 | rm -f conftest.er1
|
---|
| 5756 | cat conftest.err >&5
|
---|
| 5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5758 | (exit $ac_status); } &&
|
---|
| 5759 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5760 | || test ! -s conftest.err'
|
---|
| 5761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5762 | (eval $ac_try) 2>&5
|
---|
| 5763 | ac_status=$?
|
---|
| 5764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5765 | (exit $ac_status); }; } &&
|
---|
| 5766 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5768 | (eval $ac_try) 2>&5
|
---|
| 5769 | ac_status=$?
|
---|
| 5770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5771 | (exit $ac_status); }; }; then
|
---|
[16566] | 5772 | eval "$as_ac_var=yes"
|
---|
| 5773 | else
|
---|
| 5774 | echo "$as_me: failed program was:" >&5
|
---|
| 5775 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5776 |
|
---|
[21327] | 5777 | eval "$as_ac_var=no"
|
---|
[16566] | 5778 | fi
|
---|
[21327] | 5779 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 5780 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5781 | fi
|
---|
[21327] | 5782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5783 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 5784 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5785 |
|
---|
| 5786 | cat >>confdefs.h <<_ACEOF
|
---|
| 5787 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 5788 | _ACEOF
|
---|
| 5789 |
|
---|
| 5790 | break
|
---|
| 5791 | fi
|
---|
| 5792 |
|
---|
| 5793 | done
|
---|
| 5794 | fi
|
---|
| 5795 |
|
---|
[21327] | 5796 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5797 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
[16566] | 5798 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5799 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5800 | else
|
---|
| 5801 | if test "$cross_compiling" = yes; then
|
---|
| 5802 | ac_cv_c_stack_direction=0
|
---|
| 5803 | else
|
---|
| 5804 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5805 | /* confdefs.h. */
|
---|
| 5806 | _ACEOF
|
---|
| 5807 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5808 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5809 | /* end confdefs.h. */
|
---|
| 5810 | int
|
---|
| 5811 | find_stack_direction ()
|
---|
| 5812 | {
|
---|
| 5813 | static char *addr = 0;
|
---|
| 5814 | auto char dummy;
|
---|
| 5815 | if (addr == 0)
|
---|
| 5816 | {
|
---|
| 5817 | addr = &dummy;
|
---|
| 5818 | return find_stack_direction ();
|
---|
| 5819 | }
|
---|
| 5820 | else
|
---|
| 5821 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5822 | }
|
---|
| 5823 |
|
---|
| 5824 | int
|
---|
| 5825 | main ()
|
---|
| 5826 | {
|
---|
[21327] | 5827 | exit (find_stack_direction () < 0);
|
---|
[16566] | 5828 | }
|
---|
| 5829 | _ACEOF
|
---|
| 5830 | rm -f conftest$ac_exeext
|
---|
[21327] | 5831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5832 | (eval $ac_link) 2>&5
|
---|
[16566] | 5833 | ac_status=$?
|
---|
| 5834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 5836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5837 | (eval $ac_try) 2>&5
|
---|
[16566] | 5838 | ac_status=$?
|
---|
| 5839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5840 | (exit $ac_status); }; }; then
|
---|
| 5841 | ac_cv_c_stack_direction=1
|
---|
| 5842 | else
|
---|
| 5843 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5844 | echo "$as_me: failed program was:" >&5
|
---|
| 5845 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5846 |
|
---|
| 5847 | ( exit $ac_status )
|
---|
| 5848 | ac_cv_c_stack_direction=-1
|
---|
| 5849 | fi
|
---|
[21327] | 5850 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5851 | fi
|
---|
| 5852 | fi
|
---|
[21327] | 5853 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5854 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[16566] | 5855 |
|
---|
| 5856 | cat >>confdefs.h <<_ACEOF
|
---|
| 5857 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 5858 | _ACEOF
|
---|
| 5859 |
|
---|
| 5860 |
|
---|
| 5861 | fi
|
---|
| 5862 |
|
---|
| 5863 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[21327] | 5864 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5865 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
[16566] | 5866 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5867 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5868 | else
|
---|
| 5869 | ac_pattern="Autoconf.*'x'"
|
---|
| 5870 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5871 | /* confdefs.h. */
|
---|
| 5872 | _ACEOF
|
---|
| 5873 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5874 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5875 | /* end confdefs.h. */
|
---|
| 5876 | #include <sgtty.h>
|
---|
| 5877 | Autoconf TIOCGETP
|
---|
| 5878 | _ACEOF
|
---|
| 5879 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5880 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 5881 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5882 | else
|
---|
| 5883 | ac_cv_prog_gcc_traditional=no
|
---|
| 5884 | fi
|
---|
| 5885 | rm -f conftest*
|
---|
| 5886 |
|
---|
| 5887 |
|
---|
| 5888 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
| 5889 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5890 | /* confdefs.h. */
|
---|
| 5891 | _ACEOF
|
---|
| 5892 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5893 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5894 | /* end confdefs.h. */
|
---|
| 5895 | #include <termio.h>
|
---|
| 5896 | Autoconf TCGETA
|
---|
| 5897 | _ACEOF
|
---|
| 5898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5899 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 5900 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5901 | fi
|
---|
| 5902 | rm -f conftest*
|
---|
| 5903 |
|
---|
| 5904 | fi
|
---|
| 5905 | fi
|
---|
[21327] | 5906 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5907 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[16566] | 5908 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5909 | CC="$CC -traditional"
|
---|
| 5910 | fi
|
---|
| 5911 | fi
|
---|
| 5912 |
|
---|
[21327] | 5913 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5914 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
[16566] | 5915 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5916 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5917 | else
|
---|
| 5918 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5919 | /* confdefs.h. */
|
---|
| 5920 | _ACEOF
|
---|
| 5921 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5922 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5923 | /* end confdefs.h. */
|
---|
| 5924 | #include <sys/types.h>
|
---|
| 5925 | #include <signal.h>
|
---|
[21327] | 5926 | #ifdef signal
|
---|
| 5927 | # undef signal
|
---|
| 5928 | #endif
|
---|
| 5929 | #ifdef __cplusplus
|
---|
| 5930 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5931 | #else
|
---|
| 5932 | void (*signal ()) ();
|
---|
| 5933 | #endif
|
---|
[16566] | 5934 |
|
---|
| 5935 | int
|
---|
| 5936 | main ()
|
---|
| 5937 | {
|
---|
[21327] | 5938 | int i;
|
---|
[16566] | 5939 | ;
|
---|
| 5940 | return 0;
|
---|
| 5941 | }
|
---|
| 5942 | _ACEOF
|
---|
| 5943 | rm -f conftest.$ac_objext
|
---|
[21327] | 5944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5945 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 5946 | ac_status=$?
|
---|
| 5947 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5948 | rm -f conftest.er1
|
---|
| 5949 | cat conftest.err >&5
|
---|
| 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5951 | (exit $ac_status); } &&
|
---|
| 5952 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5953 | || test ! -s conftest.err'
|
---|
| 5954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5955 | (eval $ac_try) 2>&5
|
---|
| 5956 | ac_status=$?
|
---|
| 5957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5958 | (exit $ac_status); }; } &&
|
---|
| 5959 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5961 | (eval $ac_try) 2>&5
|
---|
| 5962 | ac_status=$?
|
---|
| 5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5964 | (exit $ac_status); }; }; then
|
---|
| 5965 | ac_cv_type_signal=void
|
---|
[16566] | 5966 | else
|
---|
| 5967 | echo "$as_me: failed program was:" >&5
|
---|
| 5968 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5969 |
|
---|
[21327] | 5970 | ac_cv_type_signal=int
|
---|
[16566] | 5971 | fi
|
---|
[21327] | 5972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5973 | fi
|
---|
[21327] | 5974 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5975 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[16566] | 5976 |
|
---|
| 5977 | cat >>confdefs.h <<_ACEOF
|
---|
| 5978 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
| 5979 | _ACEOF
|
---|
| 5980 |
|
---|
| 5981 |
|
---|
| 5982 |
|
---|
| 5983 | for ac_func in vprintf
|
---|
| 5984 | do
|
---|
| 5985 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 5986 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5987 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5988 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 5989 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5990 | else
|
---|
| 5991 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5992 | /* confdefs.h. */
|
---|
| 5993 | _ACEOF
|
---|
| 5994 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5995 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5996 | /* end confdefs.h. */
|
---|
| 5997 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5998 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5999 | #define $ac_func innocuous_$ac_func
|
---|
| 6000 |
|
---|
| 6001 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6002 | which can conflict with char $ac_func (); below.
|
---|
| 6003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6004 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6005 |
|
---|
| 6006 | #ifdef __STDC__
|
---|
| 6007 | # include <limits.h>
|
---|
| 6008 | #else
|
---|
| 6009 | # include <assert.h>
|
---|
| 6010 | #endif
|
---|
| 6011 |
|
---|
| 6012 | #undef $ac_func
|
---|
| 6013 |
|
---|
[21327] | 6014 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6015 | #ifdef __cplusplus
|
---|
| 6016 | extern "C"
|
---|
[21327] | 6017 | {
|
---|
[16566] | 6018 | #endif
|
---|
[21327] | 6019 | /* We use char because int might match the return type of a gcc2
|
---|
| 6020 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6021 | char $ac_func ();
|
---|
| 6022 | /* The GNU C library defines this for functions which it implements
|
---|
| 6023 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6024 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6026 | choke me
|
---|
[21327] | 6027 | #else
|
---|
| 6028 | char (*f) () = $ac_func;
|
---|
[16566] | 6029 | #endif
|
---|
[21327] | 6030 | #ifdef __cplusplus
|
---|
| 6031 | }
|
---|
| 6032 | #endif
|
---|
[16566] | 6033 |
|
---|
| 6034 | int
|
---|
| 6035 | main ()
|
---|
| 6036 | {
|
---|
[21327] | 6037 | return f != $ac_func;
|
---|
[16566] | 6038 | ;
|
---|
| 6039 | return 0;
|
---|
| 6040 | }
|
---|
| 6041 | _ACEOF
|
---|
| 6042 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6044 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6045 | ac_status=$?
|
---|
| 6046 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6047 | rm -f conftest.er1
|
---|
| 6048 | cat conftest.err >&5
|
---|
| 6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6050 | (exit $ac_status); } &&
|
---|
| 6051 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6052 | || test ! -s conftest.err'
|
---|
| 6053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6054 | (eval $ac_try) 2>&5
|
---|
| 6055 | ac_status=$?
|
---|
| 6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6057 | (exit $ac_status); }; } &&
|
---|
| 6058 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6060 | (eval $ac_try) 2>&5
|
---|
| 6061 | ac_status=$?
|
---|
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6063 | (exit $ac_status); }; }; then
|
---|
[16566] | 6064 | eval "$as_ac_var=yes"
|
---|
| 6065 | else
|
---|
| 6066 | echo "$as_me: failed program was:" >&5
|
---|
| 6067 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6068 |
|
---|
[21327] | 6069 | eval "$as_ac_var=no"
|
---|
[16566] | 6070 | fi
|
---|
[21327] | 6071 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6072 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6073 | fi
|
---|
[21327] | 6074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6075 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6076 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6077 | cat >>confdefs.h <<_ACEOF
|
---|
| 6078 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6079 | _ACEOF
|
---|
| 6080 |
|
---|
[21327] | 6081 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6082 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
[16566] | 6083 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6084 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6085 | else
|
---|
| 6086 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6087 | /* confdefs.h. */
|
---|
| 6088 | _ACEOF
|
---|
| 6089 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6090 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6091 | /* end confdefs.h. */
|
---|
| 6092 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6093 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6094 | #define _doprnt innocuous__doprnt
|
---|
| 6095 |
|
---|
| 6096 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6097 | which can conflict with char _doprnt (); below.
|
---|
| 6098 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6099 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6100 |
|
---|
| 6101 | #ifdef __STDC__
|
---|
| 6102 | # include <limits.h>
|
---|
| 6103 | #else
|
---|
| 6104 | # include <assert.h>
|
---|
| 6105 | #endif
|
---|
| 6106 |
|
---|
| 6107 | #undef _doprnt
|
---|
| 6108 |
|
---|
[21327] | 6109 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6110 | #ifdef __cplusplus
|
---|
| 6111 | extern "C"
|
---|
[21327] | 6112 | {
|
---|
[16566] | 6113 | #endif
|
---|
[21327] | 6114 | /* We use char because int might match the return type of a gcc2
|
---|
| 6115 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6116 | char _doprnt ();
|
---|
| 6117 | /* The GNU C library defines this for functions which it implements
|
---|
| 6118 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6119 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6120 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
[16566] | 6121 | choke me
|
---|
[21327] | 6122 | #else
|
---|
| 6123 | char (*f) () = _doprnt;
|
---|
[16566] | 6124 | #endif
|
---|
[21327] | 6125 | #ifdef __cplusplus
|
---|
| 6126 | }
|
---|
| 6127 | #endif
|
---|
[16566] | 6128 |
|
---|
| 6129 | int
|
---|
| 6130 | main ()
|
---|
| 6131 | {
|
---|
[21327] | 6132 | return f != _doprnt;
|
---|
[16566] | 6133 | ;
|
---|
| 6134 | return 0;
|
---|
| 6135 | }
|
---|
| 6136 | _ACEOF
|
---|
| 6137 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6139 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6140 | ac_status=$?
|
---|
| 6141 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6142 | rm -f conftest.er1
|
---|
| 6143 | cat conftest.err >&5
|
---|
| 6144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6145 | (exit $ac_status); } &&
|
---|
| 6146 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6147 | || test ! -s conftest.err'
|
---|
| 6148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6149 | (eval $ac_try) 2>&5
|
---|
| 6150 | ac_status=$?
|
---|
| 6151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6152 | (exit $ac_status); }; } &&
|
---|
| 6153 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6155 | (eval $ac_try) 2>&5
|
---|
| 6156 | ac_status=$?
|
---|
| 6157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6158 | (exit $ac_status); }; }; then
|
---|
[16566] | 6159 | ac_cv_func__doprnt=yes
|
---|
| 6160 | else
|
---|
| 6161 | echo "$as_me: failed program was:" >&5
|
---|
| 6162 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6163 |
|
---|
[21327] | 6164 | ac_cv_func__doprnt=no
|
---|
[16566] | 6165 | fi
|
---|
[21327] | 6166 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6167 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6168 | fi
|
---|
[21327] | 6169 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6170 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
[16566] | 6171 | if test $ac_cv_func__doprnt = yes; then
|
---|
| 6172 |
|
---|
| 6173 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6174 | #define HAVE_DOPRNT 1
|
---|
| 6175 | _ACEOF
|
---|
| 6176 |
|
---|
| 6177 | fi
|
---|
| 6178 |
|
---|
| 6179 | fi
|
---|
| 6180 | done
|
---|
| 6181 |
|
---|
| 6182 |
|
---|
| 6183 |
|
---|
| 6184 |
|
---|
| 6185 |
|
---|
| 6186 |
|
---|
| 6187 |
|
---|
| 6188 |
|
---|
| 6189 |
|
---|
| 6190 |
|
---|
| 6191 |
|
---|
| 6192 |
|
---|
| 6193 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 6194 | do
|
---|
| 6195 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 6196 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6197 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6198 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 6199 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6200 | else
|
---|
| 6201 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6202 | /* confdefs.h. */
|
---|
| 6203 | _ACEOF
|
---|
| 6204 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6205 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6206 | /* end confdefs.h. */
|
---|
| 6207 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6208 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6209 | #define $ac_func innocuous_$ac_func
|
---|
| 6210 |
|
---|
| 6211 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6212 | which can conflict with char $ac_func (); below.
|
---|
| 6213 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6214 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6215 |
|
---|
| 6216 | #ifdef __STDC__
|
---|
| 6217 | # include <limits.h>
|
---|
| 6218 | #else
|
---|
| 6219 | # include <assert.h>
|
---|
| 6220 | #endif
|
---|
| 6221 |
|
---|
| 6222 | #undef $ac_func
|
---|
| 6223 |
|
---|
[21327] | 6224 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6225 | #ifdef __cplusplus
|
---|
| 6226 | extern "C"
|
---|
[21327] | 6227 | {
|
---|
[16566] | 6228 | #endif
|
---|
[21327] | 6229 | /* We use char because int might match the return type of a gcc2
|
---|
| 6230 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6231 | char $ac_func ();
|
---|
| 6232 | /* The GNU C library defines this for functions which it implements
|
---|
| 6233 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6234 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6235 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6236 | choke me
|
---|
[21327] | 6237 | #else
|
---|
| 6238 | char (*f) () = $ac_func;
|
---|
[16566] | 6239 | #endif
|
---|
[21327] | 6240 | #ifdef __cplusplus
|
---|
| 6241 | }
|
---|
| 6242 | #endif
|
---|
[16566] | 6243 |
|
---|
| 6244 | int
|
---|
| 6245 | main ()
|
---|
| 6246 | {
|
---|
[21327] | 6247 | return f != $ac_func;
|
---|
[16566] | 6248 | ;
|
---|
| 6249 | return 0;
|
---|
| 6250 | }
|
---|
| 6251 | _ACEOF
|
---|
| 6252 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6254 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6255 | ac_status=$?
|
---|
| 6256 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6257 | rm -f conftest.er1
|
---|
| 6258 | cat conftest.err >&5
|
---|
| 6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6260 | (exit $ac_status); } &&
|
---|
| 6261 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6262 | || test ! -s conftest.err'
|
---|
| 6263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6264 | (eval $ac_try) 2>&5
|
---|
| 6265 | ac_status=$?
|
---|
| 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6267 | (exit $ac_status); }; } &&
|
---|
| 6268 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6270 | (eval $ac_try) 2>&5
|
---|
| 6271 | ac_status=$?
|
---|
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6273 | (exit $ac_status); }; }; then
|
---|
[16566] | 6274 | eval "$as_ac_var=yes"
|
---|
| 6275 | else
|
---|
| 6276 | echo "$as_me: failed program was:" >&5
|
---|
| 6277 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6278 |
|
---|
[21327] | 6279 | eval "$as_ac_var=no"
|
---|
[16566] | 6280 | fi
|
---|
[21327] | 6281 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6282 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6283 | fi
|
---|
[21327] | 6284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6285 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6286 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6287 | cat >>confdefs.h <<_ACEOF
|
---|
| 6288 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6289 | _ACEOF
|
---|
| 6290 |
|
---|
| 6291 | fi
|
---|
| 6292 | done
|
---|
| 6293 |
|
---|
| 6294 |
|
---|
| 6295 |
|
---|
| 6296 |
|
---|
| 6297 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6298 | do
|
---|
| 6299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 6300 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6302 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6304 | else
|
---|
| 6305 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6306 | /* confdefs.h. */
|
---|
| 6307 | _ACEOF
|
---|
| 6308 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6309 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6310 | /* end confdefs.h. */
|
---|
| 6311 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6312 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6313 | #define $ac_func innocuous_$ac_func
|
---|
| 6314 |
|
---|
| 6315 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6316 | which can conflict with char $ac_func (); below.
|
---|
| 6317 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6318 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6319 |
|
---|
| 6320 | #ifdef __STDC__
|
---|
| 6321 | # include <limits.h>
|
---|
| 6322 | #else
|
---|
| 6323 | # include <assert.h>
|
---|
| 6324 | #endif
|
---|
| 6325 |
|
---|
| 6326 | #undef $ac_func
|
---|
| 6327 |
|
---|
[21327] | 6328 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6329 | #ifdef __cplusplus
|
---|
| 6330 | extern "C"
|
---|
[21327] | 6331 | {
|
---|
[16566] | 6332 | #endif
|
---|
[21327] | 6333 | /* We use char because int might match the return type of a gcc2
|
---|
| 6334 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6335 | char $ac_func ();
|
---|
| 6336 | /* The GNU C library defines this for functions which it implements
|
---|
| 6337 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6338 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6339 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6340 | choke me
|
---|
[21327] | 6341 | #else
|
---|
| 6342 | char (*f) () = $ac_func;
|
---|
[16566] | 6343 | #endif
|
---|
[21327] | 6344 | #ifdef __cplusplus
|
---|
| 6345 | }
|
---|
| 6346 | #endif
|
---|
[16566] | 6347 |
|
---|
| 6348 | int
|
---|
| 6349 | main ()
|
---|
| 6350 | {
|
---|
[21327] | 6351 | return f != $ac_func;
|
---|
[16566] | 6352 | ;
|
---|
| 6353 | return 0;
|
---|
| 6354 | }
|
---|
| 6355 | _ACEOF
|
---|
| 6356 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6357 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6358 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6359 | ac_status=$?
|
---|
| 6360 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6361 | rm -f conftest.er1
|
---|
| 6362 | cat conftest.err >&5
|
---|
| 6363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6364 | (exit $ac_status); } &&
|
---|
| 6365 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6366 | || test ! -s conftest.err'
|
---|
| 6367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6368 | (eval $ac_try) 2>&5
|
---|
| 6369 | ac_status=$?
|
---|
| 6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6371 | (exit $ac_status); }; } &&
|
---|
| 6372 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6374 | (eval $ac_try) 2>&5
|
---|
| 6375 | ac_status=$?
|
---|
| 6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6377 | (exit $ac_status); }; }; then
|
---|
[16566] | 6378 | eval "$as_ac_var=yes"
|
---|
| 6379 | else
|
---|
| 6380 | echo "$as_me: failed program was:" >&5
|
---|
| 6381 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6382 |
|
---|
[21327] | 6383 | eval "$as_ac_var=no"
|
---|
[16566] | 6384 | fi
|
---|
[21327] | 6385 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6386 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6387 | fi
|
---|
[21327] | 6388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6389 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6390 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6391 | cat >>confdefs.h <<_ACEOF
|
---|
| 6392 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6393 | _ACEOF
|
---|
| 6394 |
|
---|
| 6395 | else
|
---|
[21327] | 6396 | case $LIBOBJS in
|
---|
| 6397 | "$ac_func.$ac_objext" | \
|
---|
| 6398 | *" $ac_func.$ac_objext" | \
|
---|
| 6399 | "$ac_func.$ac_objext "* | \
|
---|
[16566] | 6400 | *" $ac_func.$ac_objext "* ) ;;
|
---|
[21327] | 6401 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
[16566] | 6402 | esac
|
---|
| 6403 |
|
---|
| 6404 | fi
|
---|
| 6405 | done
|
---|
| 6406 |
|
---|
| 6407 |
|
---|
| 6408 |
|
---|
[21327] | 6409 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6410 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
[16566] | 6411 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6412 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6413 | else
|
---|
| 6414 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6415 | /* confdefs.h. */
|
---|
| 6416 | _ACEOF
|
---|
| 6417 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6418 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6419 | /* end confdefs.h. */
|
---|
| 6420 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6422 | #define textdomain innocuous_textdomain
|
---|
| 6423 |
|
---|
| 6424 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6425 | which can conflict with char textdomain (); below.
|
---|
| 6426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6427 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6428 |
|
---|
| 6429 | #ifdef __STDC__
|
---|
| 6430 | # include <limits.h>
|
---|
| 6431 | #else
|
---|
| 6432 | # include <assert.h>
|
---|
| 6433 | #endif
|
---|
| 6434 |
|
---|
| 6435 | #undef textdomain
|
---|
| 6436 |
|
---|
[21327] | 6437 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6438 | #ifdef __cplusplus
|
---|
| 6439 | extern "C"
|
---|
[21327] | 6440 | {
|
---|
[16566] | 6441 | #endif
|
---|
[21327] | 6442 | /* We use char because int might match the return type of a gcc2
|
---|
| 6443 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6444 | char textdomain ();
|
---|
| 6445 | /* The GNU C library defines this for functions which it implements
|
---|
| 6446 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6447 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6448 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[16566] | 6449 | choke me
|
---|
[21327] | 6450 | #else
|
---|
| 6451 | char (*f) () = textdomain;
|
---|
[16566] | 6452 | #endif
|
---|
[21327] | 6453 | #ifdef __cplusplus
|
---|
| 6454 | }
|
---|
| 6455 | #endif
|
---|
[16566] | 6456 |
|
---|
| 6457 | int
|
---|
| 6458 | main ()
|
---|
| 6459 | {
|
---|
[21327] | 6460 | return f != textdomain;
|
---|
[16566] | 6461 | ;
|
---|
| 6462 | return 0;
|
---|
| 6463 | }
|
---|
| 6464 | _ACEOF
|
---|
| 6465 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6467 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6468 | ac_status=$?
|
---|
| 6469 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6470 | rm -f conftest.er1
|
---|
| 6471 | cat conftest.err >&5
|
---|
| 6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6473 | (exit $ac_status); } &&
|
---|
| 6474 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6475 | || test ! -s conftest.err'
|
---|
| 6476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6477 | (eval $ac_try) 2>&5
|
---|
| 6478 | ac_status=$?
|
---|
| 6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6480 | (exit $ac_status); }; } &&
|
---|
| 6481 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6483 | (eval $ac_try) 2>&5
|
---|
| 6484 | ac_status=$?
|
---|
| 6485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6486 | (exit $ac_status); }; }; then
|
---|
[16566] | 6487 | ac_cv_func_textdomain=yes
|
---|
| 6488 | else
|
---|
| 6489 | echo "$as_me: failed program was:" >&5
|
---|
| 6490 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6491 |
|
---|
[21327] | 6492 | ac_cv_func_textdomain=no
|
---|
[16566] | 6493 | fi
|
---|
[21327] | 6494 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6495 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6496 | fi
|
---|
[21327] | 6497 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6498 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
[16566] | 6499 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6500 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6501 | #define ENABLE_NLS 1
|
---|
| 6502 | _ACEOF
|
---|
| 6503 |
|
---|
| 6504 | fi
|
---|
| 6505 |
|
---|
| 6506 |
|
---|
| 6507 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6508 | # ---------------------------------------------------------------------------
|
---|
[21327] | 6509 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6510 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[16566] | 6511 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[21327] | 6512 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6513 | echo "${ECHO_T}yes" >&6
|
---|
| 6514 | case $LIBOBJS in
|
---|
| 6515 | "gmalloc.$ac_objext" | \
|
---|
| 6516 | *" gmalloc.$ac_objext" | \
|
---|
| 6517 | "gmalloc.$ac_objext "* | \
|
---|
[16566] | 6518 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[21327] | 6519 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
[16566] | 6520 | esac
|
---|
| 6521 |
|
---|
| 6522 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6523 | #define HAVE_VALLOC 1
|
---|
| 6524 | _ACEOF
|
---|
| 6525 |
|
---|
| 6526 | else
|
---|
[21327] | 6527 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6528 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 6529 |
|
---|
| 6530 | for ac_func in valloc
|
---|
| 6531 | do
|
---|
| 6532 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 6533 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6534 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6535 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 6536 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6537 | else
|
---|
| 6538 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6539 | /* confdefs.h. */
|
---|
| 6540 | _ACEOF
|
---|
| 6541 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6542 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6543 | /* end confdefs.h. */
|
---|
| 6544 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6546 | #define $ac_func innocuous_$ac_func
|
---|
| 6547 |
|
---|
| 6548 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6549 | which can conflict with char $ac_func (); below.
|
---|
| 6550 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6551 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6552 |
|
---|
| 6553 | #ifdef __STDC__
|
---|
| 6554 | # include <limits.h>
|
---|
| 6555 | #else
|
---|
| 6556 | # include <assert.h>
|
---|
| 6557 | #endif
|
---|
| 6558 |
|
---|
| 6559 | #undef $ac_func
|
---|
| 6560 |
|
---|
[21327] | 6561 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6562 | #ifdef __cplusplus
|
---|
| 6563 | extern "C"
|
---|
[21327] | 6564 | {
|
---|
[16566] | 6565 | #endif
|
---|
[21327] | 6566 | /* We use char because int might match the return type of a gcc2
|
---|
| 6567 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6568 | char $ac_func ();
|
---|
| 6569 | /* The GNU C library defines this for functions which it implements
|
---|
| 6570 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6571 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6572 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6573 | choke me
|
---|
[21327] | 6574 | #else
|
---|
| 6575 | char (*f) () = $ac_func;
|
---|
[16566] | 6576 | #endif
|
---|
[21327] | 6577 | #ifdef __cplusplus
|
---|
| 6578 | }
|
---|
| 6579 | #endif
|
---|
[16566] | 6580 |
|
---|
| 6581 | int
|
---|
| 6582 | main ()
|
---|
| 6583 | {
|
---|
[21327] | 6584 | return f != $ac_func;
|
---|
[16566] | 6585 | ;
|
---|
| 6586 | return 0;
|
---|
| 6587 | }
|
---|
| 6588 | _ACEOF
|
---|
| 6589 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6591 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6592 | ac_status=$?
|
---|
| 6593 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6594 | rm -f conftest.er1
|
---|
| 6595 | cat conftest.err >&5
|
---|
| 6596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6597 | (exit $ac_status); } &&
|
---|
| 6598 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6599 | || test ! -s conftest.err'
|
---|
| 6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6601 | (eval $ac_try) 2>&5
|
---|
| 6602 | ac_status=$?
|
---|
| 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6604 | (exit $ac_status); }; } &&
|
---|
| 6605 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6607 | (eval $ac_try) 2>&5
|
---|
| 6608 | ac_status=$?
|
---|
| 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6610 | (exit $ac_status); }; }; then
|
---|
[16566] | 6611 | eval "$as_ac_var=yes"
|
---|
| 6612 | else
|
---|
| 6613 | echo "$as_me: failed program was:" >&5
|
---|
| 6614 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6615 |
|
---|
[21327] | 6616 | eval "$as_ac_var=no"
|
---|
[16566] | 6617 | fi
|
---|
[21327] | 6618 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6619 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6620 | fi
|
---|
[21327] | 6621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6622 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6623 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6624 | cat >>confdefs.h <<_ACEOF
|
---|
| 6625 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6626 | _ACEOF
|
---|
| 6627 |
|
---|
| 6628 | fi
|
---|
| 6629 | done
|
---|
| 6630 |
|
---|
| 6631 | fi
|
---|
| 6632 |
|
---|
| 6633 | # we cannot generate static libraries under Darwin
|
---|
[21327] | 6634 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6635 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[16566] | 6636 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[21327] | 6637 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6638 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 6639 | STATIC=""
|
---|
| 6640 | else
|
---|
[21327] | 6641 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6642 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 6643 | STATIC="-static "
|
---|
| 6644 | fi
|
---|
| 6645 |
|
---|
| 6646 |
|
---|
[21327] | 6647 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6648 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
[16566] | 6649 |
|
---|
[21327] | 6650 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
[16566] | 6651 | if test "${with_dmalloc+set}" = set; then
|
---|
[21327] | 6652 | withval="$with_dmalloc"
|
---|
| 6653 | if test "$withval" = yes; then
|
---|
| 6654 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6655 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 6656 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6657 | #define WITH_DMALLOC 1
|
---|
| 6658 | _ACEOF
|
---|
| 6659 |
|
---|
| 6660 | LIBS="$LIBS -ldmalloc"
|
---|
| 6661 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6662 | else
|
---|
[21327] | 6663 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6664 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 6665 | fi
|
---|
| 6666 | else
|
---|
[21327] | 6667 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6668 | echo "${ECHO_T}no" >&6
|
---|
| 6669 | fi;
|
---|
[16566] | 6670 |
|
---|
[21327] | 6671 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6672 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[16566] | 6673 |
|
---|
[21327] | 6674 | # Check whether --with-regex or --without-regex was given.
|
---|
[16566] | 6675 | if test "${with_regex+set}" = set; then
|
---|
[21327] | 6676 | withval="$with_regex"
|
---|
| 6677 | if test "$withval" = yes; then
|
---|
[16566] | 6678 | ac_with_regex=1
|
---|
[21327] | 6679 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6680 | echo "${ECHO_T}regex" >&6
|
---|
[16566] | 6681 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6682 | #define WITH_REGEX 1
|
---|
| 6683 | _ACEOF
|
---|
| 6684 |
|
---|
[21327] | 6685 | case $LIBOBJS in
|
---|
| 6686 | "regex.$ac_objext" | \
|
---|
| 6687 | *" regex.$ac_objext" | \
|
---|
| 6688 | "regex.$ac_objext "* | \
|
---|
[16566] | 6689 | *" regex.$ac_objext "* ) ;;
|
---|
[21327] | 6690 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
[16566] | 6691 | esac
|
---|
| 6692 |
|
---|
| 6693 | fi
|
---|
[21327] | 6694 | fi;
|
---|
[16566] | 6695 | if test -z "$ac_with_regex"; then
|
---|
[21327] | 6696 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6697 | echo "${ECHO_T}rx" >&6
|
---|
| 6698 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6699 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
[16566] | 6700 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6701 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6702 | else
|
---|
| 6703 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6704 | /* confdefs.h. */
|
---|
| 6705 | _ACEOF
|
---|
| 6706 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6707 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6708 | /* end confdefs.h. */
|
---|
| 6709 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6711 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6712 |
|
---|
| 6713 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6714 | which can conflict with char re_rx_search (); below.
|
---|
| 6715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6716 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6717 |
|
---|
| 6718 | #ifdef __STDC__
|
---|
| 6719 | # include <limits.h>
|
---|
| 6720 | #else
|
---|
| 6721 | # include <assert.h>
|
---|
| 6722 | #endif
|
---|
| 6723 |
|
---|
| 6724 | #undef re_rx_search
|
---|
| 6725 |
|
---|
[21327] | 6726 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6727 | #ifdef __cplusplus
|
---|
| 6728 | extern "C"
|
---|
[21327] | 6729 | {
|
---|
[16566] | 6730 | #endif
|
---|
[21327] | 6731 | /* We use char because int might match the return type of a gcc2
|
---|
| 6732 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6733 | char re_rx_search ();
|
---|
| 6734 | /* The GNU C library defines this for functions which it implements
|
---|
| 6735 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6736 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6737 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
[16566] | 6738 | choke me
|
---|
[21327] | 6739 | #else
|
---|
| 6740 | char (*f) () = re_rx_search;
|
---|
[16566] | 6741 | #endif
|
---|
[21327] | 6742 | #ifdef __cplusplus
|
---|
| 6743 | }
|
---|
| 6744 | #endif
|
---|
[16566] | 6745 |
|
---|
| 6746 | int
|
---|
| 6747 | main ()
|
---|
| 6748 | {
|
---|
[21327] | 6749 | return f != re_rx_search;
|
---|
[16566] | 6750 | ;
|
---|
| 6751 | return 0;
|
---|
| 6752 | }
|
---|
| 6753 | _ACEOF
|
---|
| 6754 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6756 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6757 | ac_status=$?
|
---|
| 6758 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6759 | rm -f conftest.er1
|
---|
| 6760 | cat conftest.err >&5
|
---|
| 6761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6762 | (exit $ac_status); } &&
|
---|
| 6763 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6764 | || test ! -s conftest.err'
|
---|
| 6765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6766 | (eval $ac_try) 2>&5
|
---|
| 6767 | ac_status=$?
|
---|
| 6768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6769 | (exit $ac_status); }; } &&
|
---|
| 6770 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6772 | (eval $ac_try) 2>&5
|
---|
| 6773 | ac_status=$?
|
---|
| 6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6775 | (exit $ac_status); }; }; then
|
---|
[16566] | 6776 | ac_cv_func_re_rx_search=yes
|
---|
| 6777 | else
|
---|
| 6778 | echo "$as_me: failed program was:" >&5
|
---|
| 6779 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6780 |
|
---|
[21327] | 6781 | ac_cv_func_re_rx_search=no
|
---|
[16566] | 6782 | fi
|
---|
[21327] | 6783 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6784 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6785 | fi
|
---|
[21327] | 6786 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6787 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
[16566] | 6788 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 6789 | :
|
---|
| 6790 | else
|
---|
[21327] | 6791 | case $LIBOBJS in
|
---|
| 6792 | "rx.$ac_objext" | \
|
---|
| 6793 | *" rx.$ac_objext" | \
|
---|
| 6794 | "rx.$ac_objext "* | \
|
---|
[16566] | 6795 | *" rx.$ac_objext "* ) ;;
|
---|
[21327] | 6796 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
[16566] | 6797 | esac
|
---|
| 6798 |
|
---|
| 6799 | fi
|
---|
| 6800 |
|
---|
| 6801 | fi
|
---|
| 6802 |
|
---|
| 6803 |
|
---|
| 6804 | # ---------------------------------------------------------------------------
|
---|
| 6805 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[21327] | 6806 | case $LIBOBJS in
|
---|
| 6807 | "xmalloc.$ac_objext" | \
|
---|
| 6808 | *" xmalloc.$ac_objext" | \
|
---|
| 6809 | "xmalloc.$ac_objext "* | \
|
---|
[16566] | 6810 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[21327] | 6811 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
[16566] | 6812 | esac
|
---|
| 6813 |
|
---|
[21327] | 6814 | case $LIBOBJS in
|
---|
| 6815 | "error.$ac_objext" | \
|
---|
| 6816 | *" error.$ac_objext" | \
|
---|
| 6817 | "error.$ac_objext "* | \
|
---|
[16566] | 6818 | *" error.$ac_objext "* ) ;;
|
---|
[21327] | 6819 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16566] | 6820 | esac
|
---|
| 6821 |
|
---|
| 6822 | fi
|
---|
| 6823 |
|
---|
| 6824 |
|
---|
| 6825 | # ---------------------------------------------------------------------------
|
---|
| 6826 |
|
---|
[21327] | 6827 | ac_ext=cc
|
---|
[16566] | 6828 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 6829 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6830 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6831 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 6832 |
|
---|
| 6833 |
|
---|
| 6834 | success=no
|
---|
[21327] | 6835 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6836 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[16566] | 6837 |
|
---|
[18214] | 6838 |
|
---|
[16566] | 6839 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6840 | /* confdefs.h. */
|
---|
| 6841 | _ACEOF
|
---|
| 6842 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6843 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6844 | /* end confdefs.h. */
|
---|
| 6845 | #include <vector>
|
---|
| 6846 |
|
---|
| 6847 | int
|
---|
| 6848 | main ()
|
---|
| 6849 | {
|
---|
| 6850 |
|
---|
| 6851 | ;
|
---|
| 6852 | return 0;
|
---|
| 6853 | }
|
---|
| 6854 | _ACEOF
|
---|
| 6855 | rm -f conftest.$ac_objext
|
---|
[21327] | 6856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6857 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 6858 | ac_status=$?
|
---|
| 6859 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6860 | rm -f conftest.er1
|
---|
| 6861 | cat conftest.err >&5
|
---|
| 6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6863 | (exit $ac_status); } &&
|
---|
| 6864 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6865 | || test ! -s conftest.err'
|
---|
| 6866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6867 | (eval $ac_try) 2>&5
|
---|
| 6868 | ac_status=$?
|
---|
| 6869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6870 | (exit $ac_status); }; } &&
|
---|
| 6871 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6873 | (eval $ac_try) 2>&5
|
---|
| 6874 | ac_status=$?
|
---|
| 6875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6876 | (exit $ac_status); }; }; then
|
---|
[16566] | 6877 | success=yes
|
---|
| 6878 | else
|
---|
| 6879 | echo "$as_me: failed program was:" >&5
|
---|
| 6880 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6881 |
|
---|
| 6882 | fi
|
---|
[21327] | 6883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 6884 |
|
---|
| 6885 | if test $success = "no"; then
|
---|
| 6886 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6887 | /* confdefs.h. */
|
---|
| 6888 | _ACEOF
|
---|
| 6889 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6890 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6891 | /* end confdefs.h. */
|
---|
| 6892 | #include <vector.h>
|
---|
| 6893 |
|
---|
| 6894 | int
|
---|
| 6895 | main ()
|
---|
| 6896 | {
|
---|
| 6897 |
|
---|
| 6898 | ;
|
---|
| 6899 | return 0;
|
---|
| 6900 | }
|
---|
| 6901 | _ACEOF
|
---|
| 6902 | rm -f conftest.$ac_objext
|
---|
[21327] | 6903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6904 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 6905 | ac_status=$?
|
---|
| 6906 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6907 | rm -f conftest.er1
|
---|
| 6908 | cat conftest.err >&5
|
---|
| 6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6910 | (exit $ac_status); } &&
|
---|
| 6911 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6912 | || test ! -s conftest.err'
|
---|
| 6913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6914 | (eval $ac_try) 2>&5
|
---|
| 6915 | ac_status=$?
|
---|
| 6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6917 | (exit $ac_status); }; } &&
|
---|
| 6918 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6920 | (eval $ac_try) 2>&5
|
---|
| 6921 | ac_status=$?
|
---|
| 6922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6923 | (exit $ac_status); }; }; then
|
---|
[16566] | 6924 | success="yes"
|
---|
| 6925 | else
|
---|
| 6926 | echo "$as_me: failed program was:" >&5
|
---|
| 6927 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6928 |
|
---|
| 6929 | fi
|
---|
[21327] | 6930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 6931 | fi
|
---|
| 6932 |
|
---|
| 6933 | if test $success = "no"; then
|
---|
| 6934 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6935 | /* confdefs.h. */
|
---|
| 6936 | _ACEOF
|
---|
| 6937 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6938 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6939 | /* end confdefs.h. */
|
---|
| 6940 | #include <ospace\\std\\vector>
|
---|
| 6941 |
|
---|
| 6942 | int
|
---|
| 6943 | main ()
|
---|
| 6944 | {
|
---|
| 6945 |
|
---|
| 6946 | ;
|
---|
| 6947 | return 0;
|
---|
| 6948 | }
|
---|
| 6949 | _ACEOF
|
---|
| 6950 | rm -f conftest.$ac_objext
|
---|
[21327] | 6951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6952 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 6953 | ac_status=$?
|
---|
| 6954 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6955 | rm -f conftest.er1
|
---|
| 6956 | cat conftest.err >&5
|
---|
| 6957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6958 | (exit $ac_status); } &&
|
---|
| 6959 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6960 | || test ! -s conftest.err'
|
---|
| 6961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6962 | (eval $ac_try) 2>&5
|
---|
| 6963 | ac_status=$?
|
---|
| 6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6965 | (exit $ac_status); }; } &&
|
---|
| 6966 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6968 | (eval $ac_try) 2>&5
|
---|
| 6969 | ac_status=$?
|
---|
| 6970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6971 | (exit $ac_status); }; }; then
|
---|
[16566] | 6972 | success="yes"
|
---|
| 6973 | else
|
---|
| 6974 | echo "$as_me: failed program was:" >&5
|
---|
| 6975 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6976 |
|
---|
| 6977 | fi
|
---|
[21327] | 6978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 6979 | fi
|
---|
| 6980 |
|
---|
| 6981 | if test $success = yes; then
|
---|
[21327] | 6982 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6983 | echo "${ECHO_T}\"no\"" >&6
|
---|
[16566] | 6984 | else
|
---|
[21327] | 6985 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6986 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[16566] | 6987 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 6988 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 6989 | { (exit 1); exit 1; }; }
|
---|
| 6990 | fi
|
---|
| 6991 |
|
---|
| 6992 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 6993 | # check for running bash under cygwin
|
---|
| 6994 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 6995 | then
|
---|
| 6996 | gsdlos=windows
|
---|
| 6997 | fi
|
---|
| 6998 |
|
---|
| 6999 |
|
---|
| 7000 | # check for endianness
|
---|
[21327] | 7001 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7002 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
[16566] | 7003 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7004 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7005 | else
|
---|
| 7006 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7007 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7008 | /* confdefs.h. */
|
---|
| 7009 | _ACEOF
|
---|
| 7010 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7011 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7012 | /* end confdefs.h. */
|
---|
| 7013 | #include <sys/types.h>
|
---|
| 7014 | #include <sys/param.h>
|
---|
| 7015 |
|
---|
| 7016 | int
|
---|
| 7017 | main ()
|
---|
| 7018 | {
|
---|
[21327] | 7019 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
[16566] | 7020 | bogus endian macros
|
---|
| 7021 | #endif
|
---|
| 7022 |
|
---|
| 7023 | ;
|
---|
| 7024 | return 0;
|
---|
| 7025 | }
|
---|
| 7026 | _ACEOF
|
---|
| 7027 | rm -f conftest.$ac_objext
|
---|
[21327] | 7028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7029 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 7030 | ac_status=$?
|
---|
| 7031 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7032 | rm -f conftest.er1
|
---|
| 7033 | cat conftest.err >&5
|
---|
| 7034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 7035 | (exit $ac_status); } &&
|
---|
| 7036 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7037 | || test ! -s conftest.err'
|
---|
| 7038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7039 | (eval $ac_try) 2>&5
|
---|
| 7040 | ac_status=$?
|
---|
| 7041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7042 | (exit $ac_status); }; } &&
|
---|
| 7043 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7045 | (eval $ac_try) 2>&5
|
---|
| 7046 | ac_status=$?
|
---|
| 7047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7048 | (exit $ac_status); }; }; then
|
---|
[16566] | 7049 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7050 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7051 | /* confdefs.h. */
|
---|
| 7052 | _ACEOF
|
---|
| 7053 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7054 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7055 | /* end confdefs.h. */
|
---|
| 7056 | #include <sys/types.h>
|
---|
| 7057 | #include <sys/param.h>
|
---|
| 7058 |
|
---|
| 7059 | int
|
---|
| 7060 | main ()
|
---|
| 7061 | {
|
---|
| 7062 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7063 | not big endian
|
---|
| 7064 | #endif
|
---|
| 7065 |
|
---|
| 7066 | ;
|
---|
| 7067 | return 0;
|
---|
| 7068 | }
|
---|
| 7069 | _ACEOF
|
---|
| 7070 | rm -f conftest.$ac_objext
|
---|
[21327] | 7071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7072 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 7073 | ac_status=$?
|
---|
| 7074 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7075 | rm -f conftest.er1
|
---|
| 7076 | cat conftest.err >&5
|
---|
| 7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 7078 | (exit $ac_status); } &&
|
---|
| 7079 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7080 | || test ! -s conftest.err'
|
---|
| 7081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7082 | (eval $ac_try) 2>&5
|
---|
| 7083 | ac_status=$?
|
---|
| 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7085 | (exit $ac_status); }; } &&
|
---|
| 7086 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7088 | (eval $ac_try) 2>&5
|
---|
| 7089 | ac_status=$?
|
---|
| 7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7091 | (exit $ac_status); }; }; then
|
---|
[16566] | 7092 | ac_cv_c_bigendian=yes
|
---|
| 7093 | else
|
---|
| 7094 | echo "$as_me: failed program was:" >&5
|
---|
| 7095 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7096 |
|
---|
[21327] | 7097 | ac_cv_c_bigendian=no
|
---|
[16566] | 7098 | fi
|
---|
[21327] | 7099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7100 | else
|
---|
| 7101 | echo "$as_me: failed program was:" >&5
|
---|
| 7102 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7103 |
|
---|
[21327] | 7104 | # It does not; compile a test program.
|
---|
[16566] | 7105 | if test "$cross_compiling" = yes; then
|
---|
| 7106 | # try to guess the endianness by grepping values into an object file
|
---|
| 7107 | ac_cv_c_bigendian=unknown
|
---|
| 7108 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7109 | /* confdefs.h. */
|
---|
| 7110 | _ACEOF
|
---|
| 7111 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7112 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7113 | /* end confdefs.h. */
|
---|
[21327] | 7114 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7115 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
[16566] | 7116 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
[21327] | 7117 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7118 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
[16566] | 7119 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7120 | int
|
---|
| 7121 | main ()
|
---|
| 7122 | {
|
---|
| 7123 | _ascii (); _ebcdic ();
|
---|
| 7124 | ;
|
---|
| 7125 | return 0;
|
---|
| 7126 | }
|
---|
| 7127 | _ACEOF
|
---|
| 7128 | rm -f conftest.$ac_objext
|
---|
[21327] | 7129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7130 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 7131 | ac_status=$?
|
---|
| 7132 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7133 | rm -f conftest.er1
|
---|
| 7134 | cat conftest.err >&5
|
---|
| 7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 7136 | (exit $ac_status); } &&
|
---|
| 7137 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7138 | || test ! -s conftest.err'
|
---|
| 7139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7140 | (eval $ac_try) 2>&5
|
---|
| 7141 | ac_status=$?
|
---|
| 7142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7143 | (exit $ac_status); }; } &&
|
---|
| 7144 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7146 | (eval $ac_try) 2>&5
|
---|
| 7147 | ac_status=$?
|
---|
| 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7149 | (exit $ac_status); }; }; then
|
---|
[16566] | 7150 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7151 | ac_cv_c_bigendian=yes
|
---|
| 7152 | fi
|
---|
| 7153 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7154 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7155 | ac_cv_c_bigendian=no
|
---|
| 7156 | else
|
---|
| 7157 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7158 | ac_cv_c_bigendian=unknown
|
---|
| 7159 | fi
|
---|
| 7160 | fi
|
---|
| 7161 | else
|
---|
| 7162 | echo "$as_me: failed program was:" >&5
|
---|
| 7163 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7164 |
|
---|
| 7165 | fi
|
---|
[21327] | 7166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7167 | else
|
---|
| 7168 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7169 | /* confdefs.h. */
|
---|
| 7170 | _ACEOF
|
---|
| 7171 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7172 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7173 | /* end confdefs.h. */
|
---|
| 7174 | int
|
---|
| 7175 | main ()
|
---|
| 7176 | {
|
---|
| 7177 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7178 | union
|
---|
| 7179 | {
|
---|
[21327] | 7180 | long l;
|
---|
| 7181 | char c[sizeof (long)];
|
---|
[16566] | 7182 | } u;
|
---|
| 7183 | u.l = 1;
|
---|
[21327] | 7184 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
[16566] | 7185 | }
|
---|
| 7186 | _ACEOF
|
---|
| 7187 | rm -f conftest$ac_exeext
|
---|
[21327] | 7188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7189 | (eval $ac_link) 2>&5
|
---|
[16566] | 7190 | ac_status=$?
|
---|
| 7191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7192 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 7193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7194 | (eval $ac_try) 2>&5
|
---|
[16566] | 7195 | ac_status=$?
|
---|
| 7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7197 | (exit $ac_status); }; }; then
|
---|
| 7198 | ac_cv_c_bigendian=no
|
---|
| 7199 | else
|
---|
| 7200 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7201 | echo "$as_me: failed program was:" >&5
|
---|
| 7202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7203 |
|
---|
| 7204 | ( exit $ac_status )
|
---|
| 7205 | ac_cv_c_bigendian=yes
|
---|
| 7206 | fi
|
---|
[21327] | 7207 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7208 | fi
|
---|
| 7209 | fi
|
---|
[21327] | 7210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7211 | fi
|
---|
[21327] | 7212 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7213 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
[16566] | 7214 | case $ac_cv_c_bigendian in
|
---|
| 7215 | yes)
|
---|
| 7216 |
|
---|
| 7217 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7218 | #define WORDS_BIGENDIAN 1
|
---|
| 7219 | _ACEOF
|
---|
| 7220 | ;;
|
---|
| 7221 | no)
|
---|
| 7222 | ;;
|
---|
| 7223 | *)
|
---|
| 7224 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7225 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7226 | echo "$as_me: error: unknown endianness
|
---|
| 7227 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7228 | { (exit 1); exit 1; }; } ;;
|
---|
| 7229 | esac
|
---|
| 7230 |
|
---|
| 7231 | # ---------------------------------------------------------------------------
|
---|
| 7232 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[21327] | 7233 | case $LIBOBJS in
|
---|
| 7234 | "xmalloc.o.$ac_objext" | \
|
---|
| 7235 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7236 | "xmalloc.o.$ac_objext "* | \
|
---|
[16566] | 7237 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[21327] | 7238 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
[16566] | 7239 | esac
|
---|
| 7240 |
|
---|
[21327] | 7241 | case $LIBOBJS in
|
---|
| 7242 | "error.$ac_objext" | \
|
---|
| 7243 | *" error.$ac_objext" | \
|
---|
| 7244 | "error.$ac_objext "* | \
|
---|
[16566] | 7245 | *" error.$ac_objext "* ) ;;
|
---|
[21327] | 7246 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16566] | 7247 | esac
|
---|
| 7248 |
|
---|
| 7249 | fi
|
---|
| 7250 |
|
---|
| 7251 | # ---------------------------------------------------------------------------
|
---|
| 7252 |
|
---|
| 7253 |
|
---|
| 7254 | moduleDirs=""
|
---|
| 7255 | MODULEDIRS=""
|
---|
[16593] | 7256 | if test -d modules ; then
|
---|
[16566] | 7257 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7258 | if test -d "$x"; then
|
---|
| 7259 | d="$x/Makefile.in"
|
---|
| 7260 | if test -e "$d"; then
|
---|
| 7261 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7262 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7263 | fi
|
---|
| 7264 | fi
|
---|
| 7265 | done
|
---|
| 7266 | echo "Making $moduleDirs in modules directory"
|
---|
| 7267 |
|
---|
| 7268 | fi
|
---|
| 7269 |
|
---|
| 7270 |
|
---|
| 7271 | # ---------------------------------------------------------------------------
|
---|
| 7272 |
|
---|
[21327] | 7273 |
|
---|
| 7274 |
|
---|
[20832] | 7275 | subdirs="$subdirs packages"
|
---|
[16566] | 7276 |
|
---|
| 7277 |
|
---|
[20832] | 7278 | commonsrcprefix=`pwd`
|
---|
| 7279 | ac_configure_args="$ac_configure_args --with-libiconv-prefix=$commonsrcprefix/packages/iconv"
|
---|
[21327] | 7280 |
|
---|
| 7281 |
|
---|
[20832] | 7282 | subdirs="$subdirs indexers"
|
---|
| 7283 |
|
---|
| 7284 |
|
---|
[16566] | 7285 | # the list of folders in the src folder
|
---|
| 7286 | srclist="src/lib/Makefile \
|
---|
| 7287 | src/gdbmedit/db2txt/Makefile \
|
---|
| 7288 | src/gdbmedit/txt2db/Makefile \
|
---|
| 7289 | src/gdbmedit/gdbmget/Makefile \
|
---|
| 7290 | src/gdbmedit/gdbmset/Makefile \
|
---|
[20832] | 7291 | src/gdbmedit/gdbmkeys/Makefile \
|
---|
| 7292 | src/gdbmedit/gdbmdel/Makefile \
|
---|
[16566] | 7293 | src/getpw/Makefile"
|
---|
| 7294 |
|
---|
[21327] | 7295 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
[16566] | 7296 | cat >confcache <<\_ACEOF
|
---|
| 7297 | # This file is a shell script that caches the results of configure
|
---|
| 7298 | # tests run on this system so they can be shared between configure
|
---|
| 7299 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7300 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7301 | # want to keep, you may remove or edit it.
|
---|
| 7302 | #
|
---|
| 7303 | # config.status only pays attention to the cache file if you give it
|
---|
| 7304 | # the --recheck option to rerun configure.
|
---|
| 7305 | #
|
---|
| 7306 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7307 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7308 | # following values.
|
---|
| 7309 |
|
---|
| 7310 | _ACEOF
|
---|
| 7311 |
|
---|
| 7312 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7313 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[21327] | 7314 | # So, don't put newlines in cache variables' values.
|
---|
[16566] | 7315 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7316 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[21327] | 7317 | {
|
---|
[16566] | 7318 | (set) 2>&1 |
|
---|
[21327] | 7319 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7320 | *ac_space=\ *)
|
---|
[16566] | 7321 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7322 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7323 | sed -n \
|
---|
| 7324 | "s/'/'\\\\''/g;
|
---|
| 7325 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[21327] | 7326 | ;;
|
---|
[16566] | 7327 | *)
|
---|
| 7328 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[21327] | 7329 | sed -n \
|
---|
| 7330 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[16566] | 7331 | ;;
|
---|
[21327] | 7332 | esac;
|
---|
| 7333 | } |
|
---|
[16566] | 7334 | sed '
|
---|
| 7335 | t clear
|
---|
[21327] | 7336 | : clear
|
---|
[16566] | 7337 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7338 | t end
|
---|
[21327] | 7339 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7340 | : end' >>confcache
|
---|
| 7341 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
| 7342 | if test -w $cache_file; then
|
---|
| 7343 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
[16566] | 7344 | cat confcache >$cache_file
|
---|
| 7345 | else
|
---|
[21327] | 7346 | echo "not updating unwritable cache $cache_file"
|
---|
[16566] | 7347 | fi
|
---|
| 7348 | fi
|
---|
| 7349 | rm -f confcache
|
---|
| 7350 |
|
---|
| 7351 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7352 | # Let make expand exec_prefix.
|
---|
| 7353 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7354 |
|
---|
[21327] | 7355 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7356 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7357 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7358 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7359 | if test "x$srcdir" = x.; then
|
---|
| 7360 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7361 | s/:*\$(srcdir):*/:/;
|
---|
| 7362 | s/:*\${srcdir}:*/:/;
|
---|
| 7363 | s/:*@srcdir@:*/:/;
|
---|
| 7364 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7365 | s/:*$//;
|
---|
| 7366 | s/^[^=]*=[ ]*$//;
|
---|
| 7367 | }'
|
---|
| 7368 | fi
|
---|
| 7369 |
|
---|
[16566] | 7370 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7371 |
|
---|
| 7372 | ac_libobjs=
|
---|
| 7373 | ac_ltlibobjs=
|
---|
| 7374 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7375 | # 1. Remove the extension, and $U if already installed.
|
---|
[21327] | 7376 | ac_i=`echo "$ac_i" |
|
---|
| 7377 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7378 | # 2. Add them.
|
---|
| 7379 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7380 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
[16566] | 7381 | done
|
---|
| 7382 | LIBOBJS=$ac_libobjs
|
---|
| 7383 |
|
---|
| 7384 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7385 |
|
---|
| 7386 |
|
---|
| 7387 |
|
---|
| 7388 | : ${CONFIG_STATUS=./config.status}
|
---|
| 7389 | ac_clean_files_save=$ac_clean_files
|
---|
| 7390 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7391 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7392 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7393 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7394 | #! $SHELL
|
---|
| 7395 | # Generated by $as_me.
|
---|
| 7396 | # Run this file to recreate the current configuration.
|
---|
| 7397 | # Compiler output produced by configure, useful for debugging
|
---|
| 7398 | # configure, is in config.log if it exists.
|
---|
| 7399 |
|
---|
| 7400 | debug=false
|
---|
| 7401 | ac_cs_recheck=false
|
---|
| 7402 | ac_cs_silent=false
|
---|
| 7403 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7404 | _ACEOF
|
---|
| 7405 |
|
---|
| 7406 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7407 | ## --------------------- ##
|
---|
| 7408 | ## M4sh Initialization. ##
|
---|
| 7409 | ## --------------------- ##
|
---|
| 7410 |
|
---|
[21327] | 7411 | # Be Bourne compatible
|
---|
[16566] | 7412 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7413 | emulate sh
|
---|
| 7414 | NULLCMD=:
|
---|
| 7415 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7416 | # is contrary to our usage. Disable this feature.
|
---|
| 7417 | alias -g '${1+"$@"}'='"$@"'
|
---|
[21327] | 7418 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7419 | set -o posix
|
---|
[16566] | 7420 | fi
|
---|
[21327] | 7421 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16566] | 7422 |
|
---|
| 7423 | # Support unset when possible.
|
---|
| 7424 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7425 | as_unset=unset
|
---|
| 7426 | else
|
---|
| 7427 | as_unset=false
|
---|
| 7428 | fi
|
---|
| 7429 |
|
---|
| 7430 |
|
---|
| 7431 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[21327] | 7432 | $as_unset ENV MAIL MAILPATH
|
---|
[16566] | 7433 | PS1='$ '
|
---|
| 7434 | PS2='> '
|
---|
| 7435 | PS4='+ '
|
---|
| 7436 |
|
---|
| 7437 | # NLS nuisances.
|
---|
| 7438 | for as_var in \
|
---|
| 7439 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7440 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7441 | LC_TELEPHONE LC_TIME
|
---|
| 7442 | do
|
---|
| 7443 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7444 | eval $as_var=C; export $as_var
|
---|
| 7445 | else
|
---|
[21327] | 7446 | $as_unset $as_var
|
---|
[16566] | 7447 | fi
|
---|
| 7448 | done
|
---|
| 7449 |
|
---|
| 7450 | # Required to use basename.
|
---|
[21327] | 7451 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16566] | 7452 | as_expr=expr
|
---|
| 7453 | else
|
---|
| 7454 | as_expr=false
|
---|
| 7455 | fi
|
---|
| 7456 |
|
---|
[21327] | 7457 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[16566] | 7458 | as_basename=basename
|
---|
| 7459 | else
|
---|
| 7460 | as_basename=false
|
---|
| 7461 | fi
|
---|
| 7462 |
|
---|
| 7463 |
|
---|
| 7464 | # Name of the executable.
|
---|
[21327] | 7465 | as_me=`$as_basename "$0" ||
|
---|
[16566] | 7466 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7467 | X"$0" : 'X\(//\)$' \| \
|
---|
[21327] | 7468 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7469 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 7470 | echo X/"$0" |
|
---|
[21327] | 7471 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7472 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7473 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7474 | s/.*/./; q'`
|
---|
[16566] | 7475 |
|
---|
| 7476 |
|
---|
[21327] | 7477 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7478 | # Avoid depending upon Character Ranges.
|
---|
| 7479 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7480 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7481 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7482 | as_cr_digits='0123456789'
|
---|
| 7483 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[16566] | 7484 |
|
---|
[21327] | 7485 | # The user is always right.
|
---|
| 7486 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7487 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7488 | echo "exit 0" >>conf$$.sh
|
---|
| 7489 | chmod +x conf$$.sh
|
---|
| 7490 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7491 | PATH_SEPARATOR=';'
|
---|
| 7492 | else
|
---|
| 7493 | PATH_SEPARATOR=:
|
---|
| 7494 | fi
|
---|
| 7495 | rm -f conf$$.sh
|
---|
| 7496 | fi
|
---|
[16566] | 7497 |
|
---|
[21327] | 7498 |
|
---|
[16566] | 7499 | as_lineno_1=$LINENO
|
---|
| 7500 | as_lineno_2=$LINENO
|
---|
[21327] | 7501 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
[16566] | 7502 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[21327] | 7503 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7504 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7505 | # relative or not.
|
---|
| 7506 | case $0 in
|
---|
| 7507 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7508 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7509 | for as_dir in $PATH
|
---|
| 7510 | do
|
---|
| 7511 | IFS=$as_save_IFS
|
---|
| 7512 | test -z "$as_dir" && as_dir=.
|
---|
| 7513 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7514 | done
|
---|
[16566] | 7515 |
|
---|
[21327] | 7516 | ;;
|
---|
| 7517 | esac
|
---|
| 7518 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7519 | # in which case we are not to be found in the path.
|
---|
| 7520 | if test "x$as_myself" = x; then
|
---|
| 7521 | as_myself=$0
|
---|
| 7522 | fi
|
---|
| 7523 | if test ! -f "$as_myself"; then
|
---|
| 7524 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7525 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7526 | { (exit 1); exit 1; }; }
|
---|
| 7527 | fi
|
---|
| 7528 | case $CONFIG_SHELL in
|
---|
| 7529 | '')
|
---|
| 7530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7531 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7532 | do
|
---|
| 7533 | IFS=$as_save_IFS
|
---|
| 7534 | test -z "$as_dir" && as_dir=.
|
---|
| 7535 | for as_base in sh bash ksh sh5; do
|
---|
| 7536 | case $as_dir in
|
---|
| 7537 | /*)
|
---|
| 7538 | if ("$as_dir/$as_base" -c '
|
---|
| 7539 | as_lineno_1=$LINENO
|
---|
| 7540 | as_lineno_2=$LINENO
|
---|
| 7541 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7542 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7543 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7544 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7545 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7546 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7547 | export CONFIG_SHELL
|
---|
| 7548 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7549 | fi;;
|
---|
| 7550 | esac
|
---|
| 7551 | done
|
---|
| 7552 | done
|
---|
| 7553 | ;;
|
---|
| 7554 | esac
|
---|
| 7555 |
|
---|
[16566] | 7556 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7557 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[21327] | 7558 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7559 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7560 | # with the numbered line, and appends trailing '-' during
|
---|
| 7561 | # substitution so that $LINENO is not a special case at line end.
|
---|
[16566] | 7562 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[21327] | 7563 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7564 | sed '=' <$as_myself |
|
---|
[16566] | 7565 | sed '
|
---|
| 7566 | N
|
---|
[21327] | 7567 | s,$,-,
|
---|
| 7568 | : loop
|
---|
| 7569 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[16566] | 7570 | t loop
|
---|
[21327] | 7571 | s,-$,,
|
---|
| 7572 | s,^['$as_cr_digits']*\n,,
|
---|
[16566] | 7573 | ' >$as_me.lineno &&
|
---|
[21327] | 7574 | chmod +x $as_me.lineno ||
|
---|
| 7575 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7576 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
[16566] | 7577 | { (exit 1); exit 1; }; }
|
---|
| 7578 |
|
---|
| 7579 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7580 | # (the dirname of $[0] is not the place where we might find the
|
---|
[21327] | 7581 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7582 | . ./$as_me.lineno
|
---|
[16566] | 7583 | # Exit status is that of the last command.
|
---|
| 7584 | exit
|
---|
| 7585 | }
|
---|
| 7586 |
|
---|
| 7587 |
|
---|
[21327] | 7588 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7589 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7590 | ' ECHO_T=' ' ;;
|
---|
| 7591 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7592 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
[16566] | 7593 | esac
|
---|
| 7594 |
|
---|
[21327] | 7595 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16566] | 7596 | as_expr=expr
|
---|
| 7597 | else
|
---|
| 7598 | as_expr=false
|
---|
| 7599 | fi
|
---|
| 7600 |
|
---|
| 7601 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7602 | echo >conf$$.file
|
---|
| 7603 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
[21327] | 7604 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7605 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7606 | if test -f conf$$.exe; then
|
---|
| 7607 | # Don't use ln at all; we don't have any links
|
---|
[16566] | 7608 | as_ln_s='cp -p'
|
---|
[21327] | 7609 | else
|
---|
| 7610 | as_ln_s='ln -s'
|
---|
| 7611 | fi
|
---|
[16566] | 7612 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7613 | as_ln_s=ln
|
---|
| 7614 | else
|
---|
| 7615 | as_ln_s='cp -p'
|
---|
| 7616 | fi
|
---|
[21327] | 7617 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[16566] | 7618 |
|
---|
| 7619 | if mkdir -p . 2>/dev/null; then
|
---|
| 7620 | as_mkdir_p=:
|
---|
| 7621 | else
|
---|
| 7622 | test -d ./-p && rmdir ./-p
|
---|
| 7623 | as_mkdir_p=false
|
---|
| 7624 | fi
|
---|
| 7625 |
|
---|
[21327] | 7626 | as_executable_p="test -f"
|
---|
[16566] | 7627 |
|
---|
| 7628 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7629 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7630 |
|
---|
| 7631 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7632 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7633 |
|
---|
| 7634 |
|
---|
[21327] | 7635 | # IFS
|
---|
| 7636 | # We need space, tab and new line, in precisely that order.
|
---|
| 7637 | as_nl='
|
---|
| 7638 | '
|
---|
| 7639 | IFS=" $as_nl"
|
---|
| 7640 |
|
---|
| 7641 | # CDPATH.
|
---|
| 7642 | $as_unset CDPATH
|
---|
| 7643 |
|
---|
[16566] | 7644 | exec 6>&1
|
---|
| 7645 |
|
---|
[21327] | 7646 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
[16566] | 7647 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[21327] | 7648 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7649 | exec 5>>config.log
|
---|
| 7650 | {
|
---|
| 7651 | echo
|
---|
| 7652 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7653 | ## Running $as_me. ##
|
---|
| 7654 | _ASBOX
|
---|
| 7655 | } >&5
|
---|
| 7656 | cat >&5 <<_CSEOF
|
---|
| 7657 |
|
---|
[16566] | 7658 | This file was extended by $as_me, which was
|
---|
[21327] | 7659 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[16566] | 7660 |
|
---|
| 7661 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7662 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7663 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7664 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7665 | $ $0 $@
|
---|
| 7666 |
|
---|
[21327] | 7667 | _CSEOF
|
---|
| 7668 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7669 | echo >&5
|
---|
[16566] | 7670 | _ACEOF
|
---|
| 7671 |
|
---|
| 7672 | # Files that config.status was made for.
|
---|
[21327] | 7673 | if test -n "$ac_config_files"; then
|
---|
| 7674 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7675 | fi
|
---|
[16566] | 7676 |
|
---|
[21327] | 7677 | if test -n "$ac_config_headers"; then
|
---|
| 7678 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7679 | fi
|
---|
[16566] | 7680 |
|
---|
[21327] | 7681 | if test -n "$ac_config_links"; then
|
---|
| 7682 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7683 | fi
|
---|
| 7684 |
|
---|
| 7685 | if test -n "$ac_config_commands"; then
|
---|
| 7686 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7687 | fi
|
---|
| 7688 |
|
---|
[16566] | 7689 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[21327] | 7690 |
|
---|
[16566] | 7691 | ac_cs_usage="\
|
---|
| 7692 | \`$as_me' instantiates files from templates according to the
|
---|
| 7693 | current configuration.
|
---|
| 7694 |
|
---|
| 7695 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7696 |
|
---|
| 7697 | -h, --help print this help, then exit
|
---|
[21327] | 7698 | -V, --version print version number, then exit
|
---|
[16566] | 7699 | -q, --quiet do not print progress messages
|
---|
| 7700 | -d, --debug don't remove temporary files
|
---|
| 7701 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7702 | --file=FILE[:TEMPLATE]
|
---|
| 7703 | instantiate the configuration file FILE
|
---|
| 7704 | --header=FILE[:TEMPLATE]
|
---|
| 7705 | instantiate the configuration header FILE
|
---|
| 7706 |
|
---|
| 7707 | Configuration files:
|
---|
| 7708 | $config_files
|
---|
| 7709 |
|
---|
| 7710 | Configuration headers:
|
---|
| 7711 | $config_headers
|
---|
| 7712 |
|
---|
| 7713 | Report bugs to <[email protected]>."
|
---|
[21327] | 7714 | _ACEOF
|
---|
[20846] | 7715 |
|
---|
[16566] | 7716 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7717 | ac_cs_version="\\
|
---|
| 7718 | config.status
|
---|
[21327] | 7719 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7720 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[16566] | 7721 |
|
---|
[21327] | 7722 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16566] | 7723 | This config.status script is free software; the Free Software Foundation
|
---|
| 7724 | gives unlimited permission to copy, distribute and modify it."
|
---|
[21327] | 7725 | srcdir=$srcdir
|
---|
| 7726 | INSTALL="$INSTALL"
|
---|
[16566] | 7727 | _ACEOF
|
---|
| 7728 |
|
---|
| 7729 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7730 | # If no file are specified by the user, then we need to provide default
|
---|
| 7731 | # value. By we need to know if files were specified by the user.
|
---|
| 7732 | ac_need_defaults=:
|
---|
| 7733 | while test $# != 0
|
---|
| 7734 | do
|
---|
| 7735 | case $1 in
|
---|
| 7736 | --*=*)
|
---|
[21327] | 7737 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7738 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[16566] | 7739 | ac_shift=:
|
---|
| 7740 | ;;
|
---|
[21327] | 7741 | -*)
|
---|
[16566] | 7742 | ac_option=$1
|
---|
| 7743 | ac_optarg=$2
|
---|
| 7744 | ac_shift=shift
|
---|
| 7745 | ;;
|
---|
[21327] | 7746 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7747 | # arguments.
|
---|
| 7748 | ac_option=$1
|
---|
| 7749 | ac_need_defaults=false;;
|
---|
[16566] | 7750 | esac
|
---|
| 7751 |
|
---|
| 7752 | case $ac_option in
|
---|
| 7753 | # Handling of the options.
|
---|
[21327] | 7754 | _ACEOF
|
---|
| 7755 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 7756 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7757 | ac_cs_recheck=: ;;
|
---|
[21327] | 7758 | --version | --vers* | -V )
|
---|
| 7759 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7760 | --he | --h)
|
---|
| 7761 | # Conflict between --help and --header
|
---|
| 7762 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7763 | Try \`$0 --help' for more information." >&5
|
---|
| 7764 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7765 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7766 | { (exit 1); exit 1; }; };;
|
---|
| 7767 | --help | --hel | -h )
|
---|
| 7768 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7769 | --debug | --d* | -d )
|
---|
[16566] | 7770 | debug=: ;;
|
---|
| 7771 | --file | --fil | --fi | --f )
|
---|
| 7772 | $ac_shift
|
---|
| 7773 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7774 | ac_need_defaults=false;;
|
---|
| 7775 | --header | --heade | --head | --hea )
|
---|
| 7776 | $ac_shift
|
---|
| 7777 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7778 | ac_need_defaults=false;;
|
---|
| 7779 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7780 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7781 | ac_cs_silent=: ;;
|
---|
| 7782 |
|
---|
| 7783 | # This is an error.
|
---|
[21327] | 7784 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7785 | Try \`$0 --help' for more information." >&5
|
---|
| 7786 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7787 | Try \`$0 --help' for more information." >&2;}
|
---|
[16566] | 7788 | { (exit 1); exit 1; }; } ;;
|
---|
| 7789 |
|
---|
[21327] | 7790 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
[16566] | 7791 |
|
---|
| 7792 | esac
|
---|
| 7793 | shift
|
---|
| 7794 | done
|
---|
| 7795 |
|
---|
| 7796 | ac_configure_extra_args=
|
---|
| 7797 |
|
---|
| 7798 | if $ac_cs_silent; then
|
---|
| 7799 | exec 6>/dev/null
|
---|
| 7800 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 7801 | fi
|
---|
| 7802 |
|
---|
| 7803 | _ACEOF
|
---|
| 7804 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7805 | if \$ac_cs_recheck; then
|
---|
[21327] | 7806 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7807 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[16566] | 7808 | fi
|
---|
| 7809 |
|
---|
| 7810 | _ACEOF
|
---|
| 7811 |
|
---|
| 7812 |
|
---|
[21327] | 7813 |
|
---|
| 7814 |
|
---|
| 7815 |
|
---|
[20846] | 7816 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 7817 | for ac_config_target in $ac_config_targets
|
---|
| 7818 | do
|
---|
[21327] | 7819 | case "$ac_config_target" in
|
---|
| 7820 | # Handling of arguments.
|
---|
| 7821 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7822 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7823 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7824 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7825 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
[16566] | 7826 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7827 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7828 | { (exit 1); exit 1; }; };;
|
---|
| 7829 | esac
|
---|
| 7830 | done
|
---|
| 7831 |
|
---|
| 7832 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7833 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7834 | # We use the long form for the default assignment because of an extremely
|
---|
| 7835 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7836 | if $ac_need_defaults; then
|
---|
| 7837 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7838 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7839 | fi
|
---|
| 7840 |
|
---|
| 7841 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[21327] | 7842 | # simply because there is no reason to put it here, and in addition,
|
---|
[16566] | 7843 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[21327] | 7844 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
[16566] | 7845 | $debug ||
|
---|
| 7846 | {
|
---|
[21327] | 7847 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[16566] | 7848 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7849 | }
|
---|
[21327] | 7850 |
|
---|
[16566] | 7851 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7852 |
|
---|
| 7853 | {
|
---|
[21327] | 7854 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[16566] | 7855 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7856 | } ||
|
---|
| 7857 | {
|
---|
[21327] | 7858 | tmp=./confstat$$-$RANDOM
|
---|
| 7859 | (umask 077 && mkdir $tmp)
|
---|
[16566] | 7860 | } ||
|
---|
| 7861 | {
|
---|
| 7862 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7863 | { (exit 1); exit 1; }
|
---|
| 7864 | }
|
---|
| 7865 |
|
---|
[21327] | 7866 | _ACEOF
|
---|
| 7867 |
|
---|
| 7868 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7869 |
|
---|
[16566] | 7870 | #
|
---|
[21327] | 7871 | # CONFIG_FILES section.
|
---|
[16566] | 7872 | #
|
---|
| 7873 |
|
---|
| 7874 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7875 | # This happens for instance when ./config.status config.h
|
---|
[21327] | 7876 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7877 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7878 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7879 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7880 | s,@SHELL@,$SHELL,;t t
|
---|
| 7881 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7882 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7883 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7884 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7885 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7886 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 7887 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7888 | s,@prefix@,$prefix,;t t
|
---|
| 7889 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7890 | s,@bindir@,$bindir,;t t
|
---|
| 7891 | s,@sbindir@,$sbindir,;t t
|
---|
| 7892 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7893 | s,@datadir@,$datadir,;t t
|
---|
| 7894 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7895 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7896 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7897 | s,@libdir@,$libdir,;t t
|
---|
| 7898 | s,@includedir@,$includedir,;t t
|
---|
| 7899 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7900 | s,@infodir@,$infodir,;t t
|
---|
| 7901 | s,@mandir@,$mandir,;t t
|
---|
| 7902 | s,@build_alias@,$build_alias,;t t
|
---|
| 7903 | s,@host_alias@,$host_alias,;t t
|
---|
| 7904 | s,@target_alias@,$target_alias,;t t
|
---|
| 7905 | s,@DEFS@,$DEFS,;t t
|
---|
| 7906 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7907 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7908 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7909 | s,@LIBS@,$LIBS,;t t
|
---|
| 7910 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7911 | s,@VERSION@,$VERSION,;t t
|
---|
| 7912 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 7913 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 7914 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 7915 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 7916 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 7917 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
| 7918 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[21409] | 7919 | s,@USE_JDBM@,$USE_JDBM,;t t
|
---|
[21327] | 7920 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
[21365] | 7921 | s,@ENABLE_JNI@,$ENABLE_JNI,;t t
|
---|
[21327] | 7922 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
| 7923 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
| 7924 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
| 7925 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7926 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7927 | s,@CC@,$CC,;t t
|
---|
| 7928 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7929 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7930 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7931 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7932 | s,@CXX@,$CXX,;t t
|
---|
| 7933 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7934 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7935 | s,@AWK@,$AWK,;t t
|
---|
| 7936 | s,@YACC@,$YACC,;t t
|
---|
| 7937 | s,@build@,$build,;t t
|
---|
| 7938 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7939 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7940 | s,@build_os@,$build_os,;t t
|
---|
| 7941 | s,@host@,$host,;t t
|
---|
| 7942 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7943 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7944 | s,@host_os@,$host_os,;t t
|
---|
| 7945 | s,@target@,$target,;t t
|
---|
| 7946 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7947 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7948 | s,@target_os@,$target_os,;t t
|
---|
| 7949 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7950 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7951 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7952 | s,@LN_S@,$LN_S,;t t
|
---|
| 7953 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7954 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7955 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7956 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
| 7957 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 7958 | s,@CPP@,$CPP,;t t
|
---|
| 7959 | s,@EGREP@,$EGREP,;t t
|
---|
| 7960 | s,@U@,$U,;t t
|
---|
| 7961 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7962 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7963 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7964 | s,@STATIC@,$STATIC,;t t
|
---|
| 7965 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7966 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 7967 | s,@subdirs@,$subdirs,;t t
|
---|
| 7968 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 7969 | CEOF
|
---|
[16566] | 7970 |
|
---|
| 7971 | _ACEOF
|
---|
| 7972 |
|
---|
[21327] | 7973 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7974 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7975 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7976 | ac_max_sed_lines=48
|
---|
| 7977 | ac_sed_frag=1 # Number of current file.
|
---|
| 7978 | ac_beg=1 # First line for current file.
|
---|
| 7979 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7980 | ac_more_lines=:
|
---|
| 7981 | ac_sed_cmds=
|
---|
| 7982 | while $ac_more_lines; do
|
---|
| 7983 | if test $ac_beg -gt 1; then
|
---|
| 7984 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7985 | else
|
---|
| 7986 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7987 | fi
|
---|
| 7988 | if test ! -s $tmp/subs.frag; then
|
---|
| 7989 | ac_more_lines=false
|
---|
| 7990 | else
|
---|
| 7991 | # The purpose of the label and of the branching condition is to
|
---|
| 7992 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7993 | # is no need to browse any of the substitutions).
|
---|
| 7994 | # These are the two extra sed commands mentioned above.
|
---|
| 7995 | (echo ':t
|
---|
| 7996 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 7997 | if test -z "$ac_sed_cmds"; then
|
---|
| 7998 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 7999 | else
|
---|
| 8000 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8001 | fi
|
---|
| 8002 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8003 | ac_beg=$ac_end
|
---|
| 8004 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8005 | fi
|
---|
| 8006 | done
|
---|
| 8007 | if test -z "$ac_sed_cmds"; then
|
---|
| 8008 | ac_sed_cmds=cat
|
---|
[16566] | 8009 | fi
|
---|
[21327] | 8010 | fi # test -n "$CONFIG_FILES"
|
---|
[16566] | 8011 |
|
---|
| 8012 | _ACEOF
|
---|
| 8013 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[21327] | 8014 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8015 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8016 | case $ac_file in
|
---|
| 8017 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8018 | cat >$tmp/stdin
|
---|
| 8019 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8020 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8021 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8022 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8023 | * ) ac_file_in=$ac_file.in ;;
|
---|
[16566] | 8024 | esac
|
---|
| 8025 |
|
---|
[21327] | 8026 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8027 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
[16566] | 8028 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8029 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8030 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[21327] | 8031 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8032 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 8033 | echo X"$ac_file" |
|
---|
[21327] | 8034 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8035 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8036 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8037 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8038 | s/.*/./; q'`
|
---|
| 8039 | { if $as_mkdir_p; then
|
---|
| 8040 | mkdir -p "$ac_dir"
|
---|
| 8041 | else
|
---|
| 8042 | as_dir="$ac_dir"
|
---|
[16566] | 8043 | as_dirs=
|
---|
[21327] | 8044 | while test ! -d "$as_dir"; do
|
---|
| 8045 | as_dirs="$as_dir $as_dirs"
|
---|
| 8046 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
[16566] | 8047 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8048 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8049 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[21327] | 8050 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8051 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 8052 | echo X"$as_dir" |
|
---|
[21327] | 8053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8054 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8055 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8056 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8057 | s/.*/./; q'`
|
---|
[16566] | 8058 | done
|
---|
[21327] | 8059 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8060 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8061 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
[16566] | 8062 | { (exit 1); exit 1; }; }; }
|
---|
[21327] | 8063 |
|
---|
[16566] | 8064 | ac_builddir=.
|
---|
| 8065 |
|
---|
[21327] | 8066 | if test "$ac_dir" != .; then
|
---|
[16566] | 8067 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21327] | 8068 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8069 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8070 | else
|
---|
| 8071 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8072 | fi
|
---|
[16566] | 8073 |
|
---|
| 8074 | case $srcdir in
|
---|
[21327] | 8075 | .) # No --srcdir option. We are building in place.
|
---|
[16566] | 8076 | ac_srcdir=.
|
---|
[21327] | 8077 | if test -z "$ac_top_builddir"; then
|
---|
| 8078 | ac_top_srcdir=.
|
---|
| 8079 | else
|
---|
| 8080 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8081 | fi ;;
|
---|
| 8082 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16566] | 8083 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21327] | 8084 | ac_top_srcdir=$srcdir ;;
|
---|
| 8085 | *) # Relative path.
|
---|
| 8086 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8087 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16566] | 8088 | esac
|
---|
| 8089 |
|
---|
[21327] | 8090 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8091 | # the directories may not exist.
|
---|
| 8092 | case `pwd` in
|
---|
| 8093 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8094 | *)
|
---|
| 8095 | case "$ac_dir" in
|
---|
| 8096 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8097 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8098 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8099 | esac;;
|
---|
| 8100 | esac
|
---|
| 8101 | case $ac_abs_builddir in
|
---|
| 8102 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8103 | *)
|
---|
| 8104 | case ${ac_top_builddir}. in
|
---|
| 8105 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8106 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8107 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8108 | esac;;
|
---|
| 8109 | esac
|
---|
| 8110 | case $ac_abs_builddir in
|
---|
| 8111 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8112 | *)
|
---|
| 8113 | case $ac_srcdir in
|
---|
| 8114 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8115 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8116 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8117 | esac;;
|
---|
| 8118 | esac
|
---|
| 8119 | case $ac_abs_builddir in
|
---|
| 8120 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8121 | *)
|
---|
| 8122 | case $ac_top_srcdir in
|
---|
| 8123 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8124 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8125 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8126 | esac;;
|
---|
| 8127 | esac
|
---|
[16566] | 8128 |
|
---|
| 8129 |
|
---|
| 8130 | case $INSTALL in
|
---|
| 8131 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[21327] | 8132 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[16566] | 8133 | esac
|
---|
| 8134 |
|
---|
[21327] | 8135 | if test x"$ac_file" != x-; then
|
---|
| 8136 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8137 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8138 | rm -f "$ac_file"
|
---|
| 8139 | fi
|
---|
| 8140 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8141 | # use $as_me), people would be surprised to read:
|
---|
| 8142 | # /* config.h. Generated by config.status. */
|
---|
| 8143 | if test x"$ac_file" = x-; then
|
---|
| 8144 | configure_input=
|
---|
| 8145 | else
|
---|
| 8146 | configure_input="$ac_file. "
|
---|
| 8147 | fi
|
---|
| 8148 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8149 | sed 's,.*/,,'` by configure."
|
---|
[16566] | 8150 |
|
---|
[21327] | 8151 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8152 | # src tree.
|
---|
| 8153 | ac_file_inputs=`IFS=:
|
---|
| 8154 | for f in $ac_file_in; do
|
---|
| 8155 | case $f in
|
---|
| 8156 | -) echo $tmp/stdin ;;
|
---|
| 8157 | [\\/$]*)
|
---|
| 8158 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8159 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8160 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8161 | { (exit 1); exit 1; }; }
|
---|
| 8162 | echo "$f";;
|
---|
| 8163 | *) # Relative
|
---|
| 8164 | if test -f "$f"; then
|
---|
| 8165 | # Build tree
|
---|
| 8166 | echo "$f"
|
---|
| 8167 | elif test -f "$srcdir/$f"; then
|
---|
| 8168 | # Source tree
|
---|
| 8169 | echo "$srcdir/$f"
|
---|
| 8170 | else
|
---|
| 8171 | # /dev/null tree
|
---|
| 8172 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8173 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8174 | { (exit 1); exit 1; }; }
|
---|
| 8175 | fi;;
|
---|
| 8176 | esac
|
---|
| 8177 | done` || { (exit 1); exit 1; }
|
---|
[16566] | 8178 | _ACEOF
|
---|
| 8179 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8180 | sed "$ac_vpsub
|
---|
| 8181 | $extrasub
|
---|
| 8182 | _ACEOF
|
---|
| 8183 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8184 | :t
|
---|
| 8185 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[21327] | 8186 | s,@configure_input@,$configure_input,;t t
|
---|
| 8187 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8188 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8189 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8190 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8191 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8192 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8193 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8194 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8195 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8196 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8197 | rm -f $tmp/stdin
|
---|
| 8198 | if test x"$ac_file" != x-; then
|
---|
| 8199 | mv $tmp/out $ac_file
|
---|
| 8200 | else
|
---|
| 8201 | cat $tmp/out
|
---|
| 8202 | rm -f $tmp/out
|
---|
| 8203 | fi
|
---|
[16566] | 8204 |
|
---|
[21327] | 8205 | done
|
---|
| 8206 | _ACEOF
|
---|
| 8207 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 8208 |
|
---|
[21327] | 8209 | #
|
---|
| 8210 | # CONFIG_HEADER section.
|
---|
| 8211 | #
|
---|
| 8212 |
|
---|
| 8213 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8214 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8215 | #
|
---|
| 8216 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 8217 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8218 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8219 | ac_dC=' '
|
---|
| 8220 | ac_dD=',;t'
|
---|
| 8221 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8222 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8223 | ac_uB='$,\1#\2define\3'
|
---|
| 8224 | ac_uC=' '
|
---|
| 8225 | ac_uD=',;t'
|
---|
| 8226 |
|
---|
| 8227 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 8228 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[16566] | 8229 | case $ac_file in
|
---|
[21327] | 8230 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8231 | cat >$tmp/stdin
|
---|
| 8232 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8233 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8234 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8235 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8236 | * ) ac_file_in=$ac_file.in ;;
|
---|
[16566] | 8237 | esac
|
---|
[21327] | 8238 |
|
---|
| 8239 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8240 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8241 |
|
---|
| 8242 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8243 | # src tree.
|
---|
| 8244 | ac_file_inputs=`IFS=:
|
---|
| 8245 | for f in $ac_file_in; do
|
---|
| 8246 | case $f in
|
---|
| 8247 | -) echo $tmp/stdin ;;
|
---|
| 8248 | [\\/$]*)
|
---|
| 8249 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8250 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8251 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8252 | { (exit 1); exit 1; }; }
|
---|
| 8253 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8254 | echo "$f";;
|
---|
| 8255 | *) # Relative
|
---|
| 8256 | if test -f "$f"; then
|
---|
| 8257 | # Build tree
|
---|
| 8258 | echo "$f"
|
---|
| 8259 | elif test -f "$srcdir/$f"; then
|
---|
| 8260 | # Source tree
|
---|
| 8261 | echo "$srcdir/$f"
|
---|
| 8262 | else
|
---|
| 8263 | # /dev/null tree
|
---|
| 8264 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8265 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8266 | { (exit 1); exit 1; }; }
|
---|
| 8267 | fi;;
|
---|
| 8268 | esac
|
---|
| 8269 | done` || { (exit 1); exit 1; }
|
---|
| 8270 | # Remove the trailing spaces.
|
---|
| 8271 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
| 8272 |
|
---|
[20846] | 8273 | _ACEOF
|
---|
[16566] | 8274 |
|
---|
[21327] | 8275 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8276 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8277 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8278 | # templates, and the second `#undef' templates.
|
---|
| 8279 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8280 | # config.status. Protect against being in an unquoted here document
|
---|
| 8281 | # in config.status.
|
---|
| 8282 | rm -f conftest.defines conftest.undefs
|
---|
| 8283 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8284 | # Putting comments in sed scripts is not portable.
|
---|
| 8285 | #
|
---|
| 8286 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8287 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8288 | # See the Autoconf documentation for `clear'.
|
---|
| 8289 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8290 | s/[\\&,]/\\&/g
|
---|
| 8291 | s,[\\$`],\\&,g
|
---|
| 8292 | t clear
|
---|
| 8293 | : clear
|
---|
| 8294 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8295 | t end
|
---|
| 8296 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8297 | : end
|
---|
| 8298 | _ACEOF
|
---|
| 8299 | # If some macros were called several times there might be several times
|
---|
| 8300 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8301 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8302 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8303 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8304 | rm -f confdef2sed.sed
|
---|
[16566] | 8305 |
|
---|
[21327] | 8306 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
[16566] | 8307 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8308 | # on some systems where configure will not decide to define it.
|
---|
[21327] | 8309 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8310 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8311 | _ACEOF
|
---|
[16566] | 8312 |
|
---|
[21327] | 8313 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8314 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8315 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8316 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8317 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8318 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8319 | rm -f conftest.tail
|
---|
| 8320 | while grep . conftest.defines >/dev/null
|
---|
[16566] | 8321 | do
|
---|
[21327] | 8322 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8323 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8324 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8325 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8326 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8327 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8328 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8329 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
[16566] | 8330 | echo 'CEOF
|
---|
[21327] | 8331 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8332 | rm -f $tmp/in
|
---|
| 8333 | mv $tmp/out $tmp/in
|
---|
| 8334 | ' >>$CONFIG_STATUS
|
---|
| 8335 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
[16566] | 8336 | rm -f conftest.defines
|
---|
| 8337 | mv conftest.tail conftest.defines
|
---|
| 8338 | done
|
---|
[21327] | 8339 | rm -f conftest.defines
|
---|
| 8340 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8341 | echo >>$CONFIG_STATUS
|
---|
[16566] | 8342 |
|
---|
[21327] | 8343 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8344 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8345 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 8346 | rm -f conftest.tail
|
---|
| 8347 | while grep . conftest.undefs >/dev/null
|
---|
| 8348 | do
|
---|
| 8349 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8350 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8351 | # Speed up: don't consider the non `#undef'
|
---|
| 8352 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8353 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8354 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8355 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8356 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 8357 | echo 'CEOF
|
---|
| 8358 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8359 | rm -f $tmp/in
|
---|
| 8360 | mv $tmp/out $tmp/in
|
---|
| 8361 | ' >>$CONFIG_STATUS
|
---|
| 8362 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8363 | rm -f conftest.undefs
|
---|
| 8364 | mv conftest.tail conftest.undefs
|
---|
| 8365 | done
|
---|
| 8366 | rm -f conftest.undefs
|
---|
| 8367 |
|
---|
[16566] | 8368 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[21327] | 8369 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8370 | # use $as_me), people would be surprised to read:
|
---|
| 8371 | # /* config.h. Generated by config.status. */
|
---|
| 8372 | if test x"$ac_file" = x-; then
|
---|
| 8373 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
| 8374 | else
|
---|
| 8375 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8376 | fi
|
---|
| 8377 | cat $tmp/in >>$tmp/config.h
|
---|
| 8378 | rm -f $tmp/in
|
---|
[16566] | 8379 | if test x"$ac_file" != x-; then
|
---|
[21327] | 8380 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
[16566] | 8381 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8382 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8383 | else
|
---|
[21327] | 8384 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8385 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8386 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8387 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8388 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8389 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8390 | echo X"$ac_file" |
|
---|
| 8391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8392 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8393 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8394 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8395 | s/.*/./; q'`
|
---|
| 8396 | { if $as_mkdir_p; then
|
---|
| 8397 | mkdir -p "$ac_dir"
|
---|
| 8398 | else
|
---|
| 8399 | as_dir="$ac_dir"
|
---|
| 8400 | as_dirs=
|
---|
| 8401 | while test ! -d "$as_dir"; do
|
---|
| 8402 | as_dirs="$as_dir $as_dirs"
|
---|
| 8403 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8404 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8405 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8406 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8407 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8408 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8409 | echo X"$as_dir" |
|
---|
| 8410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8411 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8412 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8413 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8414 | s/.*/./; q'`
|
---|
| 8415 | done
|
---|
| 8416 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8417 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8418 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8419 | { (exit 1); exit 1; }; }; }
|
---|
| 8420 |
|
---|
[16566] | 8421 | rm -f $ac_file
|
---|
[21327] | 8422 | mv $tmp/config.h $ac_file
|
---|
[16566] | 8423 | fi
|
---|
| 8424 | else
|
---|
[21327] | 8425 | cat $tmp/config.h
|
---|
| 8426 | rm -f $tmp/config.h
|
---|
[16566] | 8427 | fi
|
---|
[21327] | 8428 | done
|
---|
| 8429 | _ACEOF
|
---|
[16566] | 8430 |
|
---|
[21327] | 8431 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 8432 |
|
---|
| 8433 | { (exit 0); exit 0; }
|
---|
| 8434 | _ACEOF
|
---|
| 8435 | chmod +x $CONFIG_STATUS
|
---|
| 8436 | ac_clean_files=$ac_clean_files_save
|
---|
| 8437 |
|
---|
| 8438 |
|
---|
| 8439 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8440 | # config.status does its own redirection, appending to config.log.
|
---|
| 8441 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8442 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8443 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8444 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8445 | # appended to by config.status. When coming back to configure, we
|
---|
| 8446 | # need to make the FD available again.
|
---|
| 8447 | if test "$no_create" != yes; then
|
---|
| 8448 | ac_cs_success=:
|
---|
| 8449 | ac_config_status_args=
|
---|
| 8450 | test "$silent" = yes &&
|
---|
| 8451 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8452 | exec 5>/dev/null
|
---|
| 8453 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8454 | exec 5>>config.log
|
---|
| 8455 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8456 | # would make configure fail if this is the last instruction.
|
---|
| 8457 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8458 | fi
|
---|
| 8459 |
|
---|
| 8460 | #
|
---|
| 8461 | # CONFIG_SUBDIRS section.
|
---|
| 8462 | #
|
---|
| 8463 | if test "$no_recursion" != yes; then
|
---|
| 8464 |
|
---|
| 8465 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8466 | ac_sub_configure_args=
|
---|
| 8467 | ac_prev=
|
---|
[21327] | 8468 | for ac_arg in $ac_configure_args; do
|
---|
[16566] | 8469 | if test -n "$ac_prev"; then
|
---|
| 8470 | ac_prev=
|
---|
| 8471 | continue
|
---|
| 8472 | fi
|
---|
| 8473 | case $ac_arg in
|
---|
| 8474 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8475 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8476 | ac_prev=cache_file ;;
|
---|
| 8477 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 8478 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8479 | | --c=*)
|
---|
| 8480 | ;;
|
---|
| 8481 | --config-cache | -C)
|
---|
| 8482 | ;;
|
---|
| 8483 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8484 | ac_prev=srcdir ;;
|
---|
| 8485 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8486 | ;;
|
---|
| 8487 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8488 | ac_prev=prefix ;;
|
---|
| 8489 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8490 | ;;
|
---|
[21327] | 8491 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
[16566] | 8492 | esac
|
---|
| 8493 | done
|
---|
| 8494 |
|
---|
| 8495 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8496 | # in subdir configurations.
|
---|
[21327] | 8497 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[16566] | 8498 |
|
---|
| 8499 | ac_popdir=`pwd`
|
---|
| 8500 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8501 |
|
---|
| 8502 | # Do not complain, so a configure script can configure whichever
|
---|
| 8503 | # parts of a large source tree are present.
|
---|
[21327] | 8504 | test -d $srcdir/$ac_dir || continue
|
---|
[16566] | 8505 |
|
---|
[21327] | 8506 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8507 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8508 | { if $as_mkdir_p; then
|
---|
| 8509 | mkdir -p "$ac_dir"
|
---|
| 8510 | else
|
---|
| 8511 | as_dir="$ac_dir"
|
---|
[16566] | 8512 | as_dirs=
|
---|
[21327] | 8513 | while test ! -d "$as_dir"; do
|
---|
| 8514 | as_dirs="$as_dir $as_dirs"
|
---|
| 8515 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
[16566] | 8516 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8517 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8518 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[21327] | 8519 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8520 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 8521 | echo X"$as_dir" |
|
---|
[21327] | 8522 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8523 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8524 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8525 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8526 | s/.*/./; q'`
|
---|
[16566] | 8527 | done
|
---|
[21327] | 8528 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8529 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8530 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
[16566] | 8531 | { (exit 1); exit 1; }; }; }
|
---|
[21327] | 8532 |
|
---|
[16566] | 8533 | ac_builddir=.
|
---|
| 8534 |
|
---|
[21327] | 8535 | if test "$ac_dir" != .; then
|
---|
[16566] | 8536 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21327] | 8537 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8538 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8539 | else
|
---|
| 8540 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8541 | fi
|
---|
[16566] | 8542 |
|
---|
| 8543 | case $srcdir in
|
---|
[21327] | 8544 | .) # No --srcdir option. We are building in place.
|
---|
[16566] | 8545 | ac_srcdir=.
|
---|
[21327] | 8546 | if test -z "$ac_top_builddir"; then
|
---|
| 8547 | ac_top_srcdir=.
|
---|
| 8548 | else
|
---|
| 8549 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8550 | fi ;;
|
---|
| 8551 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16566] | 8552 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21327] | 8553 | ac_top_srcdir=$srcdir ;;
|
---|
| 8554 | *) # Relative path.
|
---|
| 8555 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8556 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16566] | 8557 | esac
|
---|
| 8558 |
|
---|
[21327] | 8559 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8560 | # the directories may not exist.
|
---|
| 8561 | case `pwd` in
|
---|
| 8562 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8563 | *)
|
---|
| 8564 | case "$ac_dir" in
|
---|
| 8565 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8566 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8567 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8568 | esac;;
|
---|
| 8569 | esac
|
---|
| 8570 | case $ac_abs_builddir in
|
---|
| 8571 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8572 | *)
|
---|
| 8573 | case ${ac_top_builddir}. in
|
---|
| 8574 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8575 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8576 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8577 | esac;;
|
---|
| 8578 | esac
|
---|
| 8579 | case $ac_abs_builddir in
|
---|
| 8580 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8581 | *)
|
---|
| 8582 | case $ac_srcdir in
|
---|
| 8583 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8584 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8585 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8586 | esac;;
|
---|
| 8587 | esac
|
---|
| 8588 | case $ac_abs_builddir in
|
---|
| 8589 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8590 | *)
|
---|
| 8591 | case $ac_top_srcdir in
|
---|
| 8592 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8593 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8594 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8595 | esac;;
|
---|
| 8596 | esac
|
---|
[16566] | 8597 |
|
---|
| 8598 |
|
---|
[21327] | 8599 | cd $ac_dir
|
---|
| 8600 |
|
---|
[16566] | 8601 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[21327] | 8602 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8603 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8604 | elif test -f $ac_srcdir/configure; then
|
---|
| 8605 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8606 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 8607 | ac_sub_configure=$ac_configure
|
---|
[16566] | 8608 | else
|
---|
| 8609 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8610 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
| 8611 | ac_sub_configure=
|
---|
| 8612 | fi
|
---|
| 8613 |
|
---|
| 8614 | # The recursion is here.
|
---|
| 8615 | if test -n "$ac_sub_configure"; then
|
---|
| 8616 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 8617 | case $cache_file in
|
---|
| 8618 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[21327] | 8619 | *) # Relative path.
|
---|
| 8620 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[16566] | 8621 | esac
|
---|
| 8622 |
|
---|
[21327] | 8623 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8624 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[16566] | 8625 | # The eval makes quoting arguments work.
|
---|
[21327] | 8626 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8627 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
[16566] | 8628 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8629 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8630 | { (exit 1); exit 1; }; }
|
---|
| 8631 | fi
|
---|
| 8632 |
|
---|
[21327] | 8633 | cd $ac_popdir
|
---|
[16566] | 8634 | done
|
---|
| 8635 | fi
|
---|
| 8636 |
|
---|
| 8637 |
|
---|
| 8638 |
|
---|