[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"
|
---|
[21418] | 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 ENABLE_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
|
---|
[21418] | 862 | --disable-jdbm Disable JDBM compilation
|
---|
[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"
|
---|
[21418] | 1433 | ENABLE_JDBM=$enableval
|
---|
[21409] | 1434 | else
|
---|
[21418] | 1435 | ENABLE_JDBM=yes
|
---|
[21409] | 1436 | fi;
|
---|
[21418] | 1437 | if test $ENABLE_JDBM = "yes" -o $ENABLE_JDBM = "1" ; then
|
---|
| 1438 | ENABLE_JDBM=1
|
---|
| 1439 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1440 | #define ENABLE_JDBM
|
---|
[21409] | 1441 | _ACEOF
|
---|
| 1442 |
|
---|
[21418] | 1443 | else
|
---|
| 1444 | ENABLE_JDBM=0
|
---|
| 1445 | fi
|
---|
[21409] | 1446 |
|
---|
| 1447 |
|
---|
[21327] | 1448 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
[16566] | 1449 | if test "${enable_sqlite+set}" = set; then
|
---|
[21327] | 1450 | enableval="$enable_sqlite"
|
---|
| 1451 | USE_SQLITE=0
|
---|
[16566] | 1452 | else
|
---|
| 1453 | USE_SQLITE=1
|
---|
[21327] | 1454 | fi;
|
---|
[16566] | 1455 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1456 | #define USE_SQLITE $USE_SQLITE
|
---|
| 1457 | _ACEOF
|
---|
| 1458 |
|
---|
| 1459 |
|
---|
| 1460 |
|
---|
[21365] | 1461 | # Check whether --enable-jni or --disable-jni was given.
|
---|
| 1462 | if test "${enable_jni+set}" = set; then
|
---|
| 1463 | enableval="$enable_jni"
|
---|
| 1464 | ENABLE_JNI=$enableval
|
---|
| 1465 | else
|
---|
| 1466 | ENABLE_JNI=no
|
---|
| 1467 | fi;
|
---|
| 1468 | if test $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" ; then
|
---|
| 1469 | ENABLE_JNI=1
|
---|
| 1470 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1471 | #define ENABLE_JNI
|
---|
| 1472 | _ACEOF
|
---|
| 1473 |
|
---|
| 1474 | else
|
---|
| 1475 | ENABLE_JNI=0
|
---|
| 1476 | fi
|
---|
| 1477 |
|
---|
| 1478 |
|
---|
[21327] | 1479 | # Check whether --enable-mg or --disable-mg was given.
|
---|
| 1480 | if test "${enable_mg+set}" = set; then
|
---|
| 1481 | enableval="$enable_mg"
|
---|
| 1482 | ENABLE_MG=$enableval
|
---|
| 1483 | else
|
---|
| 1484 | ENABLE_MG=yes
|
---|
| 1485 | fi;
|
---|
| 1486 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 1487 | ENABLE_MG=1
|
---|
| 1488 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1489 | #define ENABLE_MG
|
---|
| 1490 | _ACEOF
|
---|
| 1491 |
|
---|
| 1492 | else
|
---|
| 1493 | ENABLE_MG=0
|
---|
| 1494 | fi
|
---|
| 1495 |
|
---|
| 1496 |
|
---|
| 1497 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
| 1498 | if test "${enable_mgpp+set}" = set; then
|
---|
| 1499 | enableval="$enable_mgpp"
|
---|
| 1500 | ENABLE_MGPP=$enableval
|
---|
| 1501 | else
|
---|
| 1502 | ENABLE_MGPP=yes
|
---|
| 1503 | fi;
|
---|
| 1504 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 1505 | ENABLE_MGPP=1
|
---|
| 1506 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1507 | #define ENABLE_MGPP
|
---|
| 1508 | _ACEOF
|
---|
| 1509 |
|
---|
| 1510 | else
|
---|
| 1511 | ENABLE_MGPP=0
|
---|
| 1512 | fi
|
---|
| 1513 |
|
---|
| 1514 |
|
---|
| 1515 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
| 1516 | if test "${enable_lucene+set}" = set; then
|
---|
| 1517 | enableval="$enable_lucene"
|
---|
| 1518 | ENABLE_LUCENE=$enableval
|
---|
| 1519 | else
|
---|
| 1520 | ENABLE_LUCENE=yes
|
---|
| 1521 | fi;
|
---|
| 1522 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
| 1523 | ENABLE_LUCENE=1
|
---|
| 1524 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1525 | #define ENABLE_LUCENE
|
---|
| 1526 | _ACEOF
|
---|
| 1527 |
|
---|
| 1528 | else
|
---|
| 1529 | ENABLE_LUCENE=0
|
---|
| 1530 | fi
|
---|
| 1531 |
|
---|
| 1532 |
|
---|
| 1533 |
|
---|
[16566] | 1534 | LDFLAGS=$LDFLAGS
|
---|
| 1535 |
|
---|
| 1536 | if test -z "$CFLAGS"; then
|
---|
| 1537 | CFLAGS=-O2
|
---|
| 1538 | fi
|
---|
| 1539 |
|
---|
| 1540 |
|
---|
| 1541 |
|
---|
| 1542 | ac_ext=c
|
---|
| 1543 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1547 | if test -n "$ac_tool_prefix"; then
|
---|
| 1548 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1549 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[21327] | 1550 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1551 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1552 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1553 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1554 | else
|
---|
| 1555 | if test -n "$CC"; then
|
---|
| 1556 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1557 | else
|
---|
| 1558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1559 | for as_dir in $PATH
|
---|
| 1560 | do
|
---|
| 1561 | IFS=$as_save_IFS
|
---|
| 1562 | test -z "$as_dir" && as_dir=.
|
---|
| 1563 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1564 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1565 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1566 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1567 | break 2
|
---|
| 1568 | fi
|
---|
| 1569 | done
|
---|
| 1570 | done
|
---|
| 1571 |
|
---|
| 1572 | fi
|
---|
| 1573 | fi
|
---|
| 1574 | CC=$ac_cv_prog_CC
|
---|
| 1575 | if test -n "$CC"; then
|
---|
[21327] | 1576 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1577 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1578 | else
|
---|
[21327] | 1579 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1580 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1581 | fi
|
---|
| 1582 |
|
---|
| 1583 | fi
|
---|
| 1584 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1585 | ac_ct_CC=$CC
|
---|
| 1586 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 1587 | set dummy gcc; ac_word=$2
|
---|
[21327] | 1588 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1590 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1591 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1592 | else
|
---|
| 1593 | if test -n "$ac_ct_CC"; then
|
---|
| 1594 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1595 | else
|
---|
| 1596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1597 | for as_dir in $PATH
|
---|
| 1598 | do
|
---|
| 1599 | IFS=$as_save_IFS
|
---|
| 1600 | test -z "$as_dir" && as_dir=.
|
---|
| 1601 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1603 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1605 | break 2
|
---|
| 1606 | fi
|
---|
| 1607 | done
|
---|
| 1608 | done
|
---|
| 1609 |
|
---|
| 1610 | fi
|
---|
| 1611 | fi
|
---|
| 1612 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1613 | if test -n "$ac_ct_CC"; then
|
---|
[21327] | 1614 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1615 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16566] | 1616 | else
|
---|
[21327] | 1617 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1618 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1619 | fi
|
---|
| 1620 |
|
---|
[21327] | 1621 | CC=$ac_ct_CC
|
---|
[16566] | 1622 | else
|
---|
| 1623 | CC="$ac_cv_prog_CC"
|
---|
| 1624 | fi
|
---|
| 1625 |
|
---|
| 1626 | if test -z "$CC"; then
|
---|
[21327] | 1627 | if test -n "$ac_tool_prefix"; then
|
---|
| 1628 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[16566] | 1629 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[21327] | 1630 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1632 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1633 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1634 | else
|
---|
| 1635 | if test -n "$CC"; then
|
---|
| 1636 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1637 | else
|
---|
| 1638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1639 | for as_dir in $PATH
|
---|
| 1640 | do
|
---|
| 1641 | IFS=$as_save_IFS
|
---|
| 1642 | test -z "$as_dir" && as_dir=.
|
---|
| 1643 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1645 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1647 | break 2
|
---|
| 1648 | fi
|
---|
| 1649 | done
|
---|
| 1650 | done
|
---|
| 1651 |
|
---|
| 1652 | fi
|
---|
| 1653 | fi
|
---|
| 1654 | CC=$ac_cv_prog_CC
|
---|
| 1655 | if test -n "$CC"; then
|
---|
[21327] | 1656 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1657 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1658 | else
|
---|
[21327] | 1659 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1660 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1661 | fi
|
---|
| 1662 |
|
---|
[21327] | 1663 | fi
|
---|
| 1664 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1665 | ac_ct_CC=$CC
|
---|
| 1666 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1667 | set dummy cc; ac_word=$2
|
---|
| 1668 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1670 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1671 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1672 | else
|
---|
| 1673 | if test -n "$ac_ct_CC"; then
|
---|
| 1674 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1675 | else
|
---|
| 1676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1677 | for as_dir in $PATH
|
---|
| 1678 | do
|
---|
| 1679 | IFS=$as_save_IFS
|
---|
| 1680 | test -z "$as_dir" && as_dir=.
|
---|
| 1681 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1682 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1683 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1685 | break 2
|
---|
| 1686 | fi
|
---|
| 1687 | done
|
---|
| 1688 | done
|
---|
[20846] | 1689 |
|
---|
[16566] | 1690 | fi
|
---|
[21327] | 1691 | fi
|
---|
| 1692 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1693 | if test -n "$ac_ct_CC"; then
|
---|
| 1694 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1695 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1696 | else
|
---|
| 1697 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1698 | echo "${ECHO_T}no" >&6
|
---|
| 1699 | fi
|
---|
| 1700 |
|
---|
| 1701 | CC=$ac_ct_CC
|
---|
| 1702 | else
|
---|
| 1703 | CC="$ac_cv_prog_CC"
|
---|
| 1704 | fi
|
---|
| 1705 |
|
---|
| 1706 | fi
|
---|
[16566] | 1707 | if test -z "$CC"; then
|
---|
| 1708 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1709 | set dummy cc; ac_word=$2
|
---|
[21327] | 1710 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1712 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1713 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1714 | else
|
---|
| 1715 | if test -n "$CC"; then
|
---|
| 1716 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1717 | else
|
---|
| 1718 | ac_prog_rejected=no
|
---|
| 1719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1720 | for as_dir in $PATH
|
---|
| 1721 | do
|
---|
| 1722 | IFS=$as_save_IFS
|
---|
| 1723 | test -z "$as_dir" && as_dir=.
|
---|
| 1724 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1726 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1727 | ac_prog_rejected=yes
|
---|
| 1728 | continue
|
---|
| 1729 | fi
|
---|
| 1730 | ac_cv_prog_CC="cc"
|
---|
| 1731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1732 | break 2
|
---|
| 1733 | fi
|
---|
| 1734 | done
|
---|
| 1735 | done
|
---|
| 1736 |
|
---|
| 1737 | if test $ac_prog_rejected = yes; then
|
---|
| 1738 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1739 | set dummy $ac_cv_prog_CC
|
---|
| 1740 | shift
|
---|
| 1741 | if test $# != 0; then
|
---|
| 1742 | # We chose a different compiler from the bogus one.
|
---|
| 1743 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1744 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1745 | shift
|
---|
| 1746 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 1747 | fi
|
---|
| 1748 | fi
|
---|
| 1749 | fi
|
---|
| 1750 | fi
|
---|
| 1751 | CC=$ac_cv_prog_CC
|
---|
| 1752 | if test -n "$CC"; then
|
---|
[21327] | 1753 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1754 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1755 | else
|
---|
[21327] | 1756 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1757 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1758 | fi
|
---|
| 1759 |
|
---|
| 1760 | fi
|
---|
| 1761 | if test -z "$CC"; then
|
---|
| 1762 | if test -n "$ac_tool_prefix"; then
|
---|
[21327] | 1763 | for ac_prog in cl
|
---|
[16566] | 1764 | do
|
---|
| 1765 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1766 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[21327] | 1767 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1769 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1770 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1771 | else
|
---|
| 1772 | if test -n "$CC"; then
|
---|
| 1773 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1774 | else
|
---|
| 1775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1776 | for as_dir in $PATH
|
---|
| 1777 | do
|
---|
| 1778 | IFS=$as_save_IFS
|
---|
| 1779 | test -z "$as_dir" && as_dir=.
|
---|
| 1780 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1782 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1784 | break 2
|
---|
| 1785 | fi
|
---|
| 1786 | done
|
---|
| 1787 | done
|
---|
| 1788 |
|
---|
| 1789 | fi
|
---|
| 1790 | fi
|
---|
| 1791 | CC=$ac_cv_prog_CC
|
---|
| 1792 | if test -n "$CC"; then
|
---|
[21327] | 1793 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1794 | echo "${ECHO_T}$CC" >&6
|
---|
[16566] | 1795 | else
|
---|
[21327] | 1796 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1797 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1798 | fi
|
---|
| 1799 |
|
---|
| 1800 | test -n "$CC" && break
|
---|
| 1801 | done
|
---|
| 1802 | fi
|
---|
| 1803 | if test -z "$CC"; then
|
---|
| 1804 | ac_ct_CC=$CC
|
---|
[21327] | 1805 | for ac_prog in cl
|
---|
[16566] | 1806 | do
|
---|
| 1807 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1808 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 1809 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 1811 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1812 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1813 | else
|
---|
| 1814 | if test -n "$ac_ct_CC"; then
|
---|
| 1815 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1816 | else
|
---|
| 1817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1818 | for as_dir in $PATH
|
---|
| 1819 | do
|
---|
| 1820 | IFS=$as_save_IFS
|
---|
| 1821 | test -z "$as_dir" && as_dir=.
|
---|
| 1822 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 1823 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 1824 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1826 | break 2
|
---|
| 1827 | fi
|
---|
| 1828 | done
|
---|
| 1829 | done
|
---|
| 1830 |
|
---|
| 1831 | fi
|
---|
| 1832 | fi
|
---|
| 1833 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1834 | if test -n "$ac_ct_CC"; then
|
---|
[21327] | 1835 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1836 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16566] | 1837 | else
|
---|
[21327] | 1838 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1839 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 1840 | fi
|
---|
| 1841 |
|
---|
| 1842 | test -n "$ac_ct_CC" && break
|
---|
| 1843 | done
|
---|
| 1844 |
|
---|
[21327] | 1845 | CC=$ac_ct_CC
|
---|
[16566] | 1846 | fi
|
---|
| 1847 |
|
---|
| 1848 | fi
|
---|
| 1849 |
|
---|
| 1850 |
|
---|
| 1851 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1852 | See \`config.log' for more details." >&5
|
---|
| 1853 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1854 | See \`config.log' for more details." >&2;}
|
---|
| 1855 | { (exit 1); exit 1; }; }
|
---|
| 1856 |
|
---|
| 1857 | # Provide some information about the compiler.
|
---|
[21327] | 1858 | echo "$as_me:$LINENO:" \
|
---|
| 1859 | "checking for C compiler version" >&5
|
---|
[16566] | 1860 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[21327] | 1861 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1862 | (eval $ac_compiler --version </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); }
|
---|
[21327] | 1871 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1872 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
[16566] | 1873 | ac_status=$?
|
---|
| 1874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1875 | (exit $ac_status); }
|
---|
| 1876 |
|
---|
| 1877 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1878 | /* confdefs.h. */
|
---|
| 1879 | _ACEOF
|
---|
| 1880 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1881 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1882 | /* end confdefs.h. */
|
---|
| 1883 |
|
---|
| 1884 | int
|
---|
| 1885 | main ()
|
---|
| 1886 | {
|
---|
| 1887 |
|
---|
| 1888 | ;
|
---|
| 1889 | return 0;
|
---|
| 1890 | }
|
---|
| 1891 | _ACEOF
|
---|
| 1892 | ac_clean_files_save=$ac_clean_files
|
---|
| 1893 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1894 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1895 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1896 | # of exeext.
|
---|
[21327] | 1897 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1898 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
[16566] | 1899 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[21327] | 1900 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1901 | (eval $ac_link_default) 2>&5
|
---|
[16566] | 1902 | ac_status=$?
|
---|
| 1903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1904 | (exit $ac_status); }; then
|
---|
[21327] | 1905 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1906 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1907 | # resort.
|
---|
| 1908 |
|
---|
| 1909 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1910 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1911 | ac_cv_exeext=
|
---|
| 1912 | # b.out is created by i960 compilers.
|
---|
| 1913 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
[16566] | 1914 | do
|
---|
| 1915 | test -f "$ac_file" || continue
|
---|
| 1916 | case $ac_file in
|
---|
[21327] | 1917 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
[16566] | 1918 | ;;
|
---|
[21327] | 1919 | conftest.$ac_ext )
|
---|
| 1920 | # This is the source file.
|
---|
| 1921 | ;;
|
---|
[16566] | 1922 | [ab].out )
|
---|
| 1923 | # We found the default executable, but exeext='' is most
|
---|
| 1924 | # certainly right.
|
---|
| 1925 | break;;
|
---|
| 1926 | *.* )
|
---|
[21327] | 1927 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1928 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1929 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1930 | # maintain Libtool? --akim.
|
---|
| 1931 | export ac_cv_exeext
|
---|
[16566] | 1932 | break;;
|
---|
| 1933 | * )
|
---|
| 1934 | break;;
|
---|
| 1935 | esac
|
---|
| 1936 | done
|
---|
| 1937 | else
|
---|
| 1938 | echo "$as_me: failed program was:" >&5
|
---|
| 1939 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1940 |
|
---|
| 1941 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1942 | See \`config.log' for more details." >&5
|
---|
| 1943 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1944 | See \`config.log' for more details." >&2;}
|
---|
| 1945 | { (exit 77); exit 77; }; }
|
---|
| 1946 | fi
|
---|
| 1947 |
|
---|
| 1948 | ac_exeext=$ac_cv_exeext
|
---|
[21327] | 1949 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1950 | echo "${ECHO_T}$ac_file" >&6
|
---|
[16566] | 1951 |
|
---|
[21327] | 1952 | # Check the compiler produces executables we can run. If not, either
|
---|
[16566] | 1953 | # the compiler is broken, or we cross compile.
|
---|
[21327] | 1954 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1955 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
[16566] | 1956 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1957 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1958 | if test "$cross_compiling" != yes; then
|
---|
| 1959 | if { ac_try='./$ac_file'
|
---|
[21327] | 1960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1961 | (eval $ac_try) 2>&5
|
---|
[16566] | 1962 | ac_status=$?
|
---|
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1964 | (exit $ac_status); }; }; then
|
---|
| 1965 | cross_compiling=no
|
---|
| 1966 | else
|
---|
| 1967 | if test "$cross_compiling" = maybe; then
|
---|
| 1968 | cross_compiling=yes
|
---|
| 1969 | else
|
---|
| 1970 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1971 | If you meant to cross compile, use \`--host'.
|
---|
| 1972 | See \`config.log' for more details." >&5
|
---|
| 1973 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1974 | If you meant to cross compile, use \`--host'.
|
---|
| 1975 | See \`config.log' for more details." >&2;}
|
---|
| 1976 | { (exit 1); exit 1; }; }
|
---|
| 1977 | fi
|
---|
| 1978 | fi
|
---|
| 1979 | fi
|
---|
[21327] | 1980 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1981 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 1982 |
|
---|
| 1983 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1984 | ac_clean_files=$ac_clean_files_save
|
---|
[21327] | 1985 | # Check the compiler produces executables we can run. If not, either
|
---|
[16566] | 1986 | # the compiler is broken, or we cross compile.
|
---|
[21327] | 1987 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1988 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1989 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1990 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
[16566] | 1991 |
|
---|
[21327] | 1992 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1993 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1995 | (eval $ac_link) 2>&5
|
---|
[16566] | 1996 | ac_status=$?
|
---|
| 1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1998 | (exit $ac_status); }; then
|
---|
| 1999 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2000 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2001 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2002 | # `rm'.
|
---|
| 2003 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2004 | test -f "$ac_file" || continue
|
---|
| 2005 | case $ac_file in
|
---|
[21327] | 2006 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[16566] | 2007 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[21327] | 2008 | export ac_cv_exeext
|
---|
[16566] | 2009 | break;;
|
---|
| 2010 | * ) break;;
|
---|
| 2011 | esac
|
---|
| 2012 | done
|
---|
| 2013 | else
|
---|
| 2014 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2015 | See \`config.log' for more details." >&5
|
---|
| 2016 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2017 | See \`config.log' for more details." >&2;}
|
---|
| 2018 | { (exit 1); exit 1; }; }
|
---|
| 2019 | fi
|
---|
| 2020 |
|
---|
| 2021 | rm -f conftest$ac_cv_exeext
|
---|
[21327] | 2022 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2023 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
[16566] | 2024 |
|
---|
| 2025 | rm -f conftest.$ac_ext
|
---|
| 2026 | EXEEXT=$ac_cv_exeext
|
---|
| 2027 | ac_exeext=$EXEEXT
|
---|
[21327] | 2028 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2029 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[16566] | 2030 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2031 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2032 | else
|
---|
| 2033 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2034 | /* confdefs.h. */
|
---|
| 2035 | _ACEOF
|
---|
| 2036 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2037 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2038 | /* end confdefs.h. */
|
---|
| 2039 |
|
---|
| 2040 | int
|
---|
| 2041 | main ()
|
---|
| 2042 | {
|
---|
| 2043 |
|
---|
| 2044 | ;
|
---|
| 2045 | return 0;
|
---|
| 2046 | }
|
---|
| 2047 | _ACEOF
|
---|
| 2048 | rm -f conftest.o conftest.obj
|
---|
[21327] | 2049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2050 | (eval $ac_compile) 2>&5
|
---|
[16566] | 2051 | ac_status=$?
|
---|
| 2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2053 | (exit $ac_status); }; then
|
---|
[21327] | 2054 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
[16566] | 2055 | case $ac_file in
|
---|
[21327] | 2056 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[16566] | 2057 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2058 | break;;
|
---|
| 2059 | esac
|
---|
| 2060 | done
|
---|
| 2061 | else
|
---|
| 2062 | echo "$as_me: failed program was:" >&5
|
---|
| 2063 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2064 |
|
---|
| 2065 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2066 | See \`config.log' for more details." >&5
|
---|
| 2067 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2068 | See \`config.log' for more details." >&2;}
|
---|
| 2069 | { (exit 1); exit 1; }; }
|
---|
| 2070 | fi
|
---|
| 2071 |
|
---|
| 2072 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2073 | fi
|
---|
[21327] | 2074 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2075 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
[16566] | 2076 | OBJEXT=$ac_cv_objext
|
---|
| 2077 | ac_objext=$OBJEXT
|
---|
[21327] | 2078 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2079 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
[16566] | 2080 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2081 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2082 | else
|
---|
| 2083 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2084 | /* confdefs.h. */
|
---|
| 2085 | _ACEOF
|
---|
| 2086 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2087 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2088 | /* end confdefs.h. */
|
---|
| 2089 |
|
---|
| 2090 | int
|
---|
| 2091 | main ()
|
---|
| 2092 | {
|
---|
| 2093 | #ifndef __GNUC__
|
---|
| 2094 | choke me
|
---|
| 2095 | #endif
|
---|
| 2096 |
|
---|
| 2097 | ;
|
---|
| 2098 | return 0;
|
---|
| 2099 | }
|
---|
| 2100 | _ACEOF
|
---|
| 2101 | rm -f conftest.$ac_objext
|
---|
[21327] | 2102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2103 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2104 | ac_status=$?
|
---|
| 2105 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2106 | rm -f conftest.er1
|
---|
| 2107 | cat conftest.err >&5
|
---|
| 2108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2109 | (exit $ac_status); } &&
|
---|
| 2110 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2111 | || test ! -s conftest.err'
|
---|
| 2112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2113 | (eval $ac_try) 2>&5
|
---|
| 2114 | ac_status=$?
|
---|
| 2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2116 | (exit $ac_status); }; } &&
|
---|
| 2117 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2119 | (eval $ac_try) 2>&5
|
---|
| 2120 | ac_status=$?
|
---|
| 2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2122 | (exit $ac_status); }; }; then
|
---|
[16566] | 2123 | ac_compiler_gnu=yes
|
---|
| 2124 | else
|
---|
| 2125 | echo "$as_me: failed program was:" >&5
|
---|
| 2126 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2127 |
|
---|
[21327] | 2128 | ac_compiler_gnu=no
|
---|
[16566] | 2129 | fi
|
---|
[21327] | 2130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2131 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2132 |
|
---|
| 2133 | fi
|
---|
[21327] | 2134 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2135 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
[16566] | 2136 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2137 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2138 | ac_save_CFLAGS=$CFLAGS
|
---|
[21327] | 2139 | CFLAGS="-g"
|
---|
| 2140 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2141 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
[16566] | 2142 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2143 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2144 | else
|
---|
[21327] | 2145 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2146 | /* confdefs.h. */
|
---|
| 2147 | _ACEOF
|
---|
| 2148 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2149 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2150 | /* end confdefs.h. */
|
---|
| 2151 |
|
---|
| 2152 | int
|
---|
| 2153 | main ()
|
---|
| 2154 | {
|
---|
| 2155 |
|
---|
| 2156 | ;
|
---|
| 2157 | return 0;
|
---|
| 2158 | }
|
---|
| 2159 | _ACEOF
|
---|
| 2160 | rm -f conftest.$ac_objext
|
---|
[21327] | 2161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2162 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2163 | ac_status=$?
|
---|
| 2164 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2165 | rm -f conftest.er1
|
---|
| 2166 | cat conftest.err >&5
|
---|
| 2167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2168 | (exit $ac_status); } &&
|
---|
| 2169 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2170 | || test ! -s conftest.err'
|
---|
| 2171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2172 | (eval $ac_try) 2>&5
|
---|
[16566] | 2173 | ac_status=$?
|
---|
| 2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2175 | (exit $ac_status); }; } &&
|
---|
| 2176 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2178 | (eval $ac_try) 2>&5
|
---|
[16566] | 2179 | ac_status=$?
|
---|
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2181 | (exit $ac_status); }; }; then
|
---|
[16566] | 2182 | ac_cv_prog_cc_g=yes
|
---|
| 2183 | else
|
---|
| 2184 | echo "$as_me: failed program was:" >&5
|
---|
| 2185 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2186 |
|
---|
[21327] | 2187 | ac_cv_prog_cc_g=no
|
---|
[16566] | 2188 | fi
|
---|
[21327] | 2189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2190 | fi
|
---|
[21327] | 2191 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2192 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[16566] | 2193 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 2194 | CFLAGS=$ac_save_CFLAGS
|
---|
| 2195 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2196 | if test "$GCC" = yes; then
|
---|
| 2197 | CFLAGS="-g -O2"
|
---|
| 2198 | else
|
---|
| 2199 | CFLAGS="-g"
|
---|
| 2200 | fi
|
---|
| 2201 | else
|
---|
| 2202 | if test "$GCC" = yes; then
|
---|
| 2203 | CFLAGS="-O2"
|
---|
| 2204 | else
|
---|
| 2205 | CFLAGS=
|
---|
| 2206 | fi
|
---|
| 2207 | fi
|
---|
[21327] | 2208 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2209 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2210 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
[16566] | 2211 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2212 | else
|
---|
[21327] | 2213 | ac_cv_prog_cc_stdc=no
|
---|
[16566] | 2214 | ac_save_CC=$CC
|
---|
| 2215 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2216 | /* confdefs.h. */
|
---|
| 2217 | _ACEOF
|
---|
| 2218 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2219 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2220 | /* end confdefs.h. */
|
---|
| 2221 | #include <stdarg.h>
|
---|
| 2222 | #include <stdio.h>
|
---|
| 2223 | #include <sys/types.h>
|
---|
| 2224 | #include <sys/stat.h>
|
---|
| 2225 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2226 | struct buf { int x; };
|
---|
| 2227 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2228 | static char *e (p, i)
|
---|
| 2229 | char **p;
|
---|
| 2230 | int i;
|
---|
| 2231 | {
|
---|
| 2232 | return p[i];
|
---|
| 2233 | }
|
---|
| 2234 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2235 | {
|
---|
| 2236 | char *s;
|
---|
| 2237 | va_list v;
|
---|
| 2238 | va_start (v,p);
|
---|
| 2239 | s = g (p, va_arg (v,int));
|
---|
| 2240 | va_end (v);
|
---|
| 2241 | return s;
|
---|
| 2242 | }
|
---|
| 2243 |
|
---|
| 2244 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2245 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2246 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[21327] | 2247 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
[16566] | 2248 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2249 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[21327] | 2250 | that's true only with -std1. */
|
---|
[16566] | 2251 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2252 |
|
---|
| 2253 | int test (int i, double x);
|
---|
| 2254 | struct s1 {int (*f) (int a);};
|
---|
| 2255 | struct s2 {int (*f) (double a);};
|
---|
| 2256 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2257 | int argc;
|
---|
| 2258 | char **argv;
|
---|
| 2259 | int
|
---|
| 2260 | main ()
|
---|
| 2261 | {
|
---|
| 2262 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2263 | ;
|
---|
| 2264 | return 0;
|
---|
| 2265 | }
|
---|
| 2266 | _ACEOF
|
---|
[21327] | 2267 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2268 | # breaks some systems' header files.
|
---|
| 2269 | # AIX -qlanglvl=ansi
|
---|
| 2270 | # Ultrix and OSF/1 -std1
|
---|
| 2271 | # HP-UX 10.20 and later -Ae
|
---|
| 2272 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2273 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2274 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[16566] | 2275 | do
|
---|
| 2276 | CC="$ac_save_CC $ac_arg"
|
---|
| 2277 | rm -f conftest.$ac_objext
|
---|
[21327] | 2278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2279 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2280 | ac_status=$?
|
---|
| 2281 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2282 | rm -f conftest.er1
|
---|
| 2283 | cat conftest.err >&5
|
---|
| 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2285 | (exit $ac_status); } &&
|
---|
| 2286 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2287 | || test ! -s conftest.err'
|
---|
| 2288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2289 | (eval $ac_try) 2>&5
|
---|
| 2290 | ac_status=$?
|
---|
| 2291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2292 | (exit $ac_status); }; } &&
|
---|
| 2293 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2295 | (eval $ac_try) 2>&5
|
---|
| 2296 | ac_status=$?
|
---|
| 2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2298 | (exit $ac_status); }; }; then
|
---|
| 2299 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2300 | break
|
---|
[16566] | 2301 | else
|
---|
| 2302 | echo "$as_me: failed program was:" >&5
|
---|
| 2303 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2304 |
|
---|
| 2305 | fi
|
---|
[21327] | 2306 | rm -f conftest.err conftest.$ac_objext
|
---|
[16566] | 2307 | done
|
---|
[21327] | 2308 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
[16566] | 2309 | CC=$ac_save_CC
|
---|
| 2310 |
|
---|
| 2311 | fi
|
---|
[21327] | 2312 |
|
---|
| 2313 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2314 | x|xno)
|
---|
| 2315 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2316 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
[16566] | 2317 | *)
|
---|
[21327] | 2318 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2319 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2320 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
[16566] | 2321 | esac
|
---|
| 2322 |
|
---|
[21327] | 2323 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2324 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2325 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2326 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2327 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2328 | #ifndef __cplusplus
|
---|
| 2329 | choke me
|
---|
| 2330 | #endif
|
---|
| 2331 | _ACEOF
|
---|
| 2332 | rm -f conftest.$ac_objext
|
---|
| 2333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2334 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2335 | ac_status=$?
|
---|
| 2336 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2337 | rm -f conftest.er1
|
---|
| 2338 | cat conftest.err >&5
|
---|
| 2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2340 | (exit $ac_status); } &&
|
---|
| 2341 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2342 | || test ! -s conftest.err'
|
---|
| 2343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2344 | (eval $ac_try) 2>&5
|
---|
| 2345 | ac_status=$?
|
---|
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2347 | (exit $ac_status); }; } &&
|
---|
| 2348 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2350 | (eval $ac_try) 2>&5
|
---|
| 2351 | ac_status=$?
|
---|
| 2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2353 | (exit $ac_status); }; }; then
|
---|
| 2354 | for ac_declaration in \
|
---|
| 2355 | '' \
|
---|
| 2356 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2357 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2358 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2359 | 'extern "C" void exit (int);' \
|
---|
| 2360 | 'void exit (int);'
|
---|
| 2361 | do
|
---|
| 2362 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2363 | /* confdefs.h. */
|
---|
| 2364 | _ACEOF
|
---|
| 2365 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2366 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2367 | /* end confdefs.h. */
|
---|
| 2368 | $ac_declaration
|
---|
| 2369 | #include <stdlib.h>
|
---|
| 2370 | int
|
---|
| 2371 | main ()
|
---|
| 2372 | {
|
---|
| 2373 | exit (42);
|
---|
| 2374 | ;
|
---|
| 2375 | return 0;
|
---|
| 2376 | }
|
---|
| 2377 | _ACEOF
|
---|
| 2378 | rm -f conftest.$ac_objext
|
---|
| 2379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2380 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2381 | ac_status=$?
|
---|
| 2382 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2383 | rm -f conftest.er1
|
---|
| 2384 | cat conftest.err >&5
|
---|
| 2385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2386 | (exit $ac_status); } &&
|
---|
| 2387 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2388 | || test ! -s conftest.err'
|
---|
| 2389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2390 | (eval $ac_try) 2>&5
|
---|
| 2391 | ac_status=$?
|
---|
| 2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2393 | (exit $ac_status); }; } &&
|
---|
| 2394 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2396 | (eval $ac_try) 2>&5
|
---|
| 2397 | ac_status=$?
|
---|
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2399 | (exit $ac_status); }; }; then
|
---|
| 2400 | :
|
---|
| 2401 | else
|
---|
| 2402 | echo "$as_me: failed program was:" >&5
|
---|
| 2403 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16566] | 2404 |
|
---|
[21327] | 2405 | continue
|
---|
| 2406 | fi
|
---|
| 2407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2408 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2409 | /* confdefs.h. */
|
---|
| 2410 | _ACEOF
|
---|
| 2411 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2412 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2413 | /* end confdefs.h. */
|
---|
| 2414 | $ac_declaration
|
---|
| 2415 | int
|
---|
| 2416 | main ()
|
---|
| 2417 | {
|
---|
| 2418 | exit (42);
|
---|
| 2419 | ;
|
---|
| 2420 | return 0;
|
---|
| 2421 | }
|
---|
| 2422 | _ACEOF
|
---|
| 2423 | rm -f conftest.$ac_objext
|
---|
| 2424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2425 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2426 | ac_status=$?
|
---|
| 2427 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2428 | rm -f conftest.er1
|
---|
| 2429 | cat conftest.err >&5
|
---|
| 2430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2431 | (exit $ac_status); } &&
|
---|
| 2432 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2433 | || test ! -s conftest.err'
|
---|
| 2434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2435 | (eval $ac_try) 2>&5
|
---|
| 2436 | ac_status=$?
|
---|
| 2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2438 | (exit $ac_status); }; } &&
|
---|
| 2439 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2441 | (eval $ac_try) 2>&5
|
---|
| 2442 | ac_status=$?
|
---|
| 2443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2444 | (exit $ac_status); }; }; then
|
---|
| 2445 | break
|
---|
| 2446 | else
|
---|
| 2447 | echo "$as_me: failed program was:" >&5
|
---|
| 2448 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2449 |
|
---|
| 2450 | fi
|
---|
| 2451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2452 | done
|
---|
| 2453 | rm -f conftest*
|
---|
| 2454 | if test -n "$ac_declaration"; then
|
---|
| 2455 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2456 | echo $ac_declaration >>confdefs.h
|
---|
| 2457 | echo '#endif' >>confdefs.h
|
---|
| 2458 | fi
|
---|
| 2459 |
|
---|
| 2460 | else
|
---|
| 2461 | echo "$as_me: failed program was:" >&5
|
---|
| 2462 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2463 |
|
---|
| 2464 | fi
|
---|
| 2465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2466 | ac_ext=c
|
---|
| 2467 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2468 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2469 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2470 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2471 |
|
---|
[21327] | 2472 | ac_ext=cc
|
---|
[16566] | 2473 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2474 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2475 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2476 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[21327] | 2477 | if test -n "$ac_tool_prefix"; then
|
---|
| 2478 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16566] | 2479 | do
|
---|
| 2480 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2481 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[21327] | 2482 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2484 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2485 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2486 | else
|
---|
| 2487 | if test -n "$CXX"; then
|
---|
| 2488 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2489 | else
|
---|
| 2490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2491 | for as_dir in $PATH
|
---|
| 2492 | do
|
---|
| 2493 | IFS=$as_save_IFS
|
---|
| 2494 | test -z "$as_dir" && as_dir=.
|
---|
| 2495 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2497 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2499 | break 2
|
---|
| 2500 | fi
|
---|
| 2501 | done
|
---|
| 2502 | done
|
---|
| 2503 |
|
---|
| 2504 | fi
|
---|
| 2505 | fi
|
---|
| 2506 | CXX=$ac_cv_prog_CXX
|
---|
| 2507 | if test -n "$CXX"; then
|
---|
[21327] | 2508 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2509 | echo "${ECHO_T}$CXX" >&6
|
---|
[16566] | 2510 | else
|
---|
[21327] | 2511 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2512 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2513 | fi
|
---|
| 2514 |
|
---|
| 2515 | test -n "$CXX" && break
|
---|
| 2516 | done
|
---|
| 2517 | fi
|
---|
| 2518 | if test -z "$CXX"; then
|
---|
| 2519 | ac_ct_CXX=$CXX
|
---|
[21327] | 2520 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16566] | 2521 | do
|
---|
| 2522 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2523 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 2524 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2526 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2527 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2528 | else
|
---|
| 2529 | if test -n "$ac_ct_CXX"; then
|
---|
| 2530 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2531 | else
|
---|
| 2532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2533 | for as_dir in $PATH
|
---|
| 2534 | do
|
---|
| 2535 | IFS=$as_save_IFS
|
---|
| 2536 | test -z "$as_dir" && as_dir=.
|
---|
| 2537 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2539 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2541 | break 2
|
---|
| 2542 | fi
|
---|
| 2543 | done
|
---|
| 2544 | done
|
---|
| 2545 |
|
---|
| 2546 | fi
|
---|
| 2547 | fi
|
---|
| 2548 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2549 | if test -n "$ac_ct_CXX"; then
|
---|
[21327] | 2550 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2551 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[16566] | 2552 | else
|
---|
[21327] | 2553 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2554 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2555 | fi
|
---|
| 2556 |
|
---|
| 2557 | test -n "$ac_ct_CXX" && break
|
---|
| 2558 | done
|
---|
[21327] | 2559 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[16566] | 2560 |
|
---|
[21327] | 2561 | CXX=$ac_ct_CXX
|
---|
[16566] | 2562 | fi
|
---|
| 2563 |
|
---|
[21327] | 2564 |
|
---|
[16566] | 2565 | # Provide some information about the compiler.
|
---|
[21327] | 2566 | echo "$as_me:$LINENO:" \
|
---|
| 2567 | "checking for C++ compiler version" >&5
|
---|
[16566] | 2568 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[21327] | 2569 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2570 | (eval $ac_compiler --version </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); }
|
---|
[21327] | 2579 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2580 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
[16566] | 2581 | ac_status=$?
|
---|
| 2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2583 | (exit $ac_status); }
|
---|
| 2584 |
|
---|
[21327] | 2585 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2586 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
[16566] | 2587 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2588 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2589 | else
|
---|
| 2590 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2591 | /* confdefs.h. */
|
---|
| 2592 | _ACEOF
|
---|
| 2593 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2594 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2595 | /* end confdefs.h. */
|
---|
| 2596 |
|
---|
| 2597 | int
|
---|
| 2598 | main ()
|
---|
| 2599 | {
|
---|
| 2600 | #ifndef __GNUC__
|
---|
| 2601 | choke me
|
---|
| 2602 | #endif
|
---|
| 2603 |
|
---|
| 2604 | ;
|
---|
| 2605 | return 0;
|
---|
| 2606 | }
|
---|
| 2607 | _ACEOF
|
---|
| 2608 | rm -f conftest.$ac_objext
|
---|
[21327] | 2609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2610 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2611 | ac_status=$?
|
---|
| 2612 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2613 | rm -f conftest.er1
|
---|
| 2614 | cat conftest.err >&5
|
---|
| 2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2616 | (exit $ac_status); } &&
|
---|
| 2617 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2618 | || test ! -s conftest.err'
|
---|
| 2619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2620 | (eval $ac_try) 2>&5
|
---|
| 2621 | ac_status=$?
|
---|
| 2622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2623 | (exit $ac_status); }; } &&
|
---|
| 2624 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2626 | (eval $ac_try) 2>&5
|
---|
| 2627 | ac_status=$?
|
---|
| 2628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2629 | (exit $ac_status); }; }; then
|
---|
[16566] | 2630 | ac_compiler_gnu=yes
|
---|
| 2631 | else
|
---|
| 2632 | echo "$as_me: failed program was:" >&5
|
---|
| 2633 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2634 |
|
---|
[21327] | 2635 | ac_compiler_gnu=no
|
---|
[16566] | 2636 | fi
|
---|
[21327] | 2637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 2638 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2639 |
|
---|
| 2640 | fi
|
---|
[21327] | 2641 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2642 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
[16566] | 2643 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2644 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2645 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[21327] | 2646 | CXXFLAGS="-g"
|
---|
| 2647 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2648 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
[16566] | 2649 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2650 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2651 | else
|
---|
[21327] | 2652 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2653 | /* confdefs.h. */
|
---|
| 2654 | _ACEOF
|
---|
| 2655 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2656 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2657 | /* end confdefs.h. */
|
---|
| 2658 |
|
---|
| 2659 | int
|
---|
| 2660 | main ()
|
---|
| 2661 | {
|
---|
| 2662 |
|
---|
| 2663 | ;
|
---|
| 2664 | return 0;
|
---|
| 2665 | }
|
---|
| 2666 | _ACEOF
|
---|
| 2667 | rm -f conftest.$ac_objext
|
---|
[21327] | 2668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2669 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2670 | ac_status=$?
|
---|
| 2671 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2672 | rm -f conftest.er1
|
---|
| 2673 | cat conftest.err >&5
|
---|
| 2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2675 | (exit $ac_status); } &&
|
---|
| 2676 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2677 | || test ! -s conftest.err'
|
---|
| 2678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2679 | (eval $ac_try) 2>&5
|
---|
| 2680 | ac_status=$?
|
---|
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2682 | (exit $ac_status); }; } &&
|
---|
| 2683 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2685 | (eval $ac_try) 2>&5
|
---|
| 2686 | ac_status=$?
|
---|
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2688 | (exit $ac_status); }; }; then
|
---|
[16566] | 2689 | ac_cv_prog_cxx_g=yes
|
---|
| 2690 | else
|
---|
| 2691 | echo "$as_me: failed program was:" >&5
|
---|
| 2692 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2693 |
|
---|
[21327] | 2694 | ac_cv_prog_cxx_g=no
|
---|
| 2695 | fi
|
---|
| 2696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2697 | fi
|
---|
| 2698 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2699 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2700 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2701 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2702 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2703 | if test "$GXX" = yes; then
|
---|
| 2704 | CXXFLAGS="-g -O2"
|
---|
| 2705 | else
|
---|
| 2706 | CXXFLAGS="-g"
|
---|
| 2707 | fi
|
---|
| 2708 | else
|
---|
| 2709 | if test "$GXX" = yes; then
|
---|
| 2710 | CXXFLAGS="-O2"
|
---|
| 2711 | else
|
---|
| 2712 | CXXFLAGS=
|
---|
| 2713 | fi
|
---|
| 2714 | fi
|
---|
| 2715 | for ac_declaration in \
|
---|
| 2716 | '' \
|
---|
| 2717 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2718 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2719 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2720 | 'extern "C" void exit (int);' \
|
---|
| 2721 | 'void exit (int);'
|
---|
| 2722 | do
|
---|
| 2723 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2724 | /* confdefs.h. */
|
---|
| 2725 | _ACEOF
|
---|
| 2726 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2727 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2728 | /* end confdefs.h. */
|
---|
[21327] | 2729 | $ac_declaration
|
---|
| 2730 | #include <stdlib.h>
|
---|
[16566] | 2731 | int
|
---|
| 2732 | main ()
|
---|
| 2733 | {
|
---|
[21327] | 2734 | exit (42);
|
---|
[16566] | 2735 | ;
|
---|
| 2736 | return 0;
|
---|
| 2737 | }
|
---|
| 2738 | _ACEOF
|
---|
| 2739 | rm -f conftest.$ac_objext
|
---|
[21327] | 2740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2741 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2742 | ac_status=$?
|
---|
| 2743 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2744 | rm -f conftest.er1
|
---|
| 2745 | cat conftest.err >&5
|
---|
| 2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2747 | (exit $ac_status); } &&
|
---|
| 2748 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2749 | || test ! -s conftest.err'
|
---|
| 2750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2751 | (eval $ac_try) 2>&5
|
---|
| 2752 | ac_status=$?
|
---|
| 2753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2754 | (exit $ac_status); }; } &&
|
---|
| 2755 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2757 | (eval $ac_try) 2>&5
|
---|
| 2758 | ac_status=$?
|
---|
| 2759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2760 | (exit $ac_status); }; }; then
|
---|
[16566] | 2761 | :
|
---|
| 2762 | else
|
---|
| 2763 | echo "$as_me: failed program was:" >&5
|
---|
| 2764 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2765 |
|
---|
[21327] | 2766 | continue
|
---|
| 2767 | fi
|
---|
| 2768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2769 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[16566] | 2770 | /* confdefs.h. */
|
---|
| 2771 | _ACEOF
|
---|
| 2772 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2773 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2774 | /* end confdefs.h. */
|
---|
[21327] | 2775 | $ac_declaration
|
---|
[16566] | 2776 | int
|
---|
| 2777 | main ()
|
---|
| 2778 | {
|
---|
[21327] | 2779 | exit (42);
|
---|
[16566] | 2780 | ;
|
---|
| 2781 | return 0;
|
---|
| 2782 | }
|
---|
| 2783 | _ACEOF
|
---|
| 2784 | rm -f conftest.$ac_objext
|
---|
[21327] | 2785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2786 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 2787 | ac_status=$?
|
---|
| 2788 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2789 | rm -f conftest.er1
|
---|
| 2790 | cat conftest.err >&5
|
---|
| 2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 2792 | (exit $ac_status); } &&
|
---|
| 2793 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2794 | || test ! -s conftest.err'
|
---|
| 2795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2796 | (eval $ac_try) 2>&5
|
---|
| 2797 | ac_status=$?
|
---|
| 2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2799 | (exit $ac_status); }; } &&
|
---|
| 2800 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2802 | (eval $ac_try) 2>&5
|
---|
| 2803 | ac_status=$?
|
---|
| 2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2805 | (exit $ac_status); }; }; then
|
---|
| 2806 | break
|
---|
[16566] | 2807 | else
|
---|
| 2808 | echo "$as_me: failed program was:" >&5
|
---|
| 2809 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2810 |
|
---|
| 2811 | fi
|
---|
[21327] | 2812 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2813 | done
|
---|
| 2814 | rm -f conftest*
|
---|
| 2815 | if test -n "$ac_declaration"; then
|
---|
| 2816 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2817 | echo $ac_declaration >>confdefs.h
|
---|
| 2818 | echo '#endif' >>confdefs.h
|
---|
[16566] | 2819 | fi
|
---|
| 2820 |
|
---|
| 2821 | ac_ext=c
|
---|
| 2822 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2826 |
|
---|
| 2827 | for ac_prog in gawk mawk nawk awk
|
---|
| 2828 | do
|
---|
| 2829 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2830 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 2831 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2833 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2834 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2835 | else
|
---|
| 2836 | if test -n "$AWK"; then
|
---|
| 2837 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2838 | else
|
---|
| 2839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2840 | for as_dir in $PATH
|
---|
| 2841 | do
|
---|
| 2842 | IFS=$as_save_IFS
|
---|
| 2843 | test -z "$as_dir" && as_dir=.
|
---|
| 2844 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2845 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2846 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2848 | break 2
|
---|
| 2849 | fi
|
---|
| 2850 | done
|
---|
| 2851 | done
|
---|
| 2852 |
|
---|
| 2853 | fi
|
---|
| 2854 | fi
|
---|
| 2855 | AWK=$ac_cv_prog_AWK
|
---|
| 2856 | if test -n "$AWK"; then
|
---|
[21327] | 2857 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2858 | echo "${ECHO_T}$AWK" >&6
|
---|
[16566] | 2859 | else
|
---|
[21327] | 2860 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2861 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2862 | fi
|
---|
| 2863 |
|
---|
| 2864 | test -n "$AWK" && break
|
---|
| 2865 | done
|
---|
| 2866 |
|
---|
| 2867 | for ac_prog in 'bison -y' byacc
|
---|
| 2868 | do
|
---|
| 2869 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2870 | set dummy $ac_prog; ac_word=$2
|
---|
[21327] | 2871 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2872 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 2873 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2874 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2875 | else
|
---|
| 2876 | if test -n "$YACC"; then
|
---|
| 2877 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2878 | else
|
---|
| 2879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2880 | for as_dir in $PATH
|
---|
| 2881 | do
|
---|
| 2882 | IFS=$as_save_IFS
|
---|
| 2883 | test -z "$as_dir" && as_dir=.
|
---|
| 2884 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 2885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 2886 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2888 | break 2
|
---|
| 2889 | fi
|
---|
| 2890 | done
|
---|
| 2891 | done
|
---|
| 2892 |
|
---|
| 2893 | fi
|
---|
| 2894 | fi
|
---|
| 2895 | YACC=$ac_cv_prog_YACC
|
---|
| 2896 | if test -n "$YACC"; then
|
---|
[21327] | 2897 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2898 | echo "${ECHO_T}$YACC" >&6
|
---|
[16566] | 2899 | else
|
---|
[21327] | 2900 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2901 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 2902 | fi
|
---|
| 2903 |
|
---|
| 2904 | test -n "$YACC" && break
|
---|
| 2905 | done
|
---|
| 2906 | test -n "$YACC" || YACC="yacc"
|
---|
| 2907 |
|
---|
| 2908 | ac_aux_dir=
|
---|
[21327] | 2909 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2910 | if test -f $ac_dir/install-sh; then
|
---|
[16566] | 2911 | ac_aux_dir=$ac_dir
|
---|
| 2912 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2913 | break
|
---|
[21327] | 2914 | elif test -f $ac_dir/install.sh; then
|
---|
[16566] | 2915 | ac_aux_dir=$ac_dir
|
---|
| 2916 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2917 | break
|
---|
[21327] | 2918 | elif test -f $ac_dir/shtool; then
|
---|
[16566] | 2919 | ac_aux_dir=$ac_dir
|
---|
| 2920 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2921 | break
|
---|
| 2922 | fi
|
---|
| 2923 | done
|
---|
| 2924 | if test -z "$ac_aux_dir"; then
|
---|
[21327] | 2925 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2926 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
[16566] | 2927 | { (exit 1); exit 1; }; }
|
---|
| 2928 | fi
|
---|
[21327] | 2929 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2930 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2931 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[16566] | 2932 |
|
---|
| 2933 | # Make sure we can run config.sub.
|
---|
[21327] | 2934 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2935 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2936 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
[16566] | 2937 | { (exit 1); exit 1; }; }
|
---|
| 2938 |
|
---|
[21327] | 2939 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2940 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
[16566] | 2941 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2942 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2943 | else
|
---|
[21327] | 2944 | ac_cv_build_alias=$build_alias
|
---|
| 2945 | test -z "$ac_cv_build_alias" &&
|
---|
| 2946 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2947 | test -z "$ac_cv_build_alias" &&
|
---|
[16566] | 2948 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2949 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2950 | { (exit 1); exit 1; }; }
|
---|
[21327] | 2951 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2952 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2953 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
[16566] | 2954 | { (exit 1); exit 1; }; }
|
---|
| 2955 |
|
---|
| 2956 | fi
|
---|
[21327] | 2957 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2958 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
[16566] | 2959 | build=$ac_cv_build
|
---|
[21327] | 2960 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2961 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2962 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16566] | 2963 |
|
---|
| 2964 |
|
---|
[21327] | 2965 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2966 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
[16566] | 2967 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2968 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2969 | else
|
---|
[21327] | 2970 | ac_cv_host_alias=$host_alias
|
---|
| 2971 | test -z "$ac_cv_host_alias" &&
|
---|
| 2972 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2973 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2974 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2975 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
[16566] | 2976 | { (exit 1); exit 1; }; }
|
---|
| 2977 |
|
---|
| 2978 | fi
|
---|
[21327] | 2979 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2980 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
[16566] | 2981 | host=$ac_cv_host
|
---|
[21327] | 2982 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2983 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2984 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16566] | 2985 |
|
---|
| 2986 |
|
---|
[21327] | 2987 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2988 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
[16566] | 2989 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2990 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2991 | else
|
---|
[21327] | 2992 | ac_cv_target_alias=$target_alias
|
---|
| 2993 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2994 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2995 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2996 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2997 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
[16566] | 2998 | { (exit 1); exit 1; }; }
|
---|
| 2999 |
|
---|
| 3000 | fi
|
---|
[21327] | 3001 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 3002 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
[16566] | 3003 | target=$ac_cv_target
|
---|
[21327] | 3004 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3005 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3006 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16566] | 3007 |
|
---|
| 3008 |
|
---|
| 3009 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3010 | # will get canonicalized.
|
---|
| 3011 | test -n "$target_alias" &&
|
---|
| 3012 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3013 | NONENONEs,x,x, &&
|
---|
| 3014 | program_prefix=${target_alias}-
|
---|
| 3015 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3016 | # so one script is as good as another. But avoid the broken or
|
---|
| 3017 | # incompatible versions:
|
---|
| 3018 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3019 | # SunOS /usr/etc/install
|
---|
| 3020 | # IRIX /sbin/install
|
---|
| 3021 | # AIX /bin/install
|
---|
| 3022 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 3023 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3024 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3025 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 3026 | # OS/2's system install, which has a completely different semantic
|
---|
| 3027 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[21327] | 3028 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3029 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[16566] | 3030 | if test -z "$INSTALL"; then
|
---|
| 3031 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3032 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3033 | else
|
---|
| 3034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3035 | for as_dir in $PATH
|
---|
| 3036 | do
|
---|
| 3037 | IFS=$as_save_IFS
|
---|
| 3038 | test -z "$as_dir" && as_dir=.
|
---|
| 3039 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3040 | case $as_dir/ in
|
---|
| 3041 | ./ | .// | /cC/* | \
|
---|
| 3042 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 3043 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 3044 | /usr/ucb/* ) ;;
|
---|
| 3045 | *)
|
---|
| 3046 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3047 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3048 | # by default.
|
---|
| 3049 | for ac_prog in ginstall scoinst install; do
|
---|
| 3050 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 3051 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[16566] | 3052 | if test $ac_prog = install &&
|
---|
| 3053 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3054 | # AIX install. It has an incompatible calling convention.
|
---|
| 3055 | :
|
---|
| 3056 | elif test $ac_prog = install &&
|
---|
| 3057 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3058 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3059 | :
|
---|
| 3060 | else
|
---|
| 3061 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3062 | break 3
|
---|
| 3063 | fi
|
---|
| 3064 | fi
|
---|
| 3065 | done
|
---|
| 3066 | done
|
---|
| 3067 | ;;
|
---|
| 3068 | esac
|
---|
| 3069 | done
|
---|
| 3070 |
|
---|
| 3071 |
|
---|
| 3072 | fi
|
---|
| 3073 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3074 | INSTALL=$ac_cv_path_install
|
---|
| 3075 | else
|
---|
[21327] | 3076 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 3077 | # path for INSTALL within a source directory, because that will
|
---|
[16566] | 3078 | # break other packages using the cache if that directory is
|
---|
[21327] | 3079 | # removed, or if the path is relative.
|
---|
[16566] | 3080 | INSTALL=$ac_install_sh
|
---|
| 3081 | fi
|
---|
| 3082 | fi
|
---|
[21327] | 3083 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3084 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[16566] | 3085 |
|
---|
| 3086 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3087 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3088 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3089 |
|
---|
| 3090 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3091 |
|
---|
| 3092 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3093 |
|
---|
[21327] | 3094 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3095 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
[16566] | 3096 | LN_S=$as_ln_s
|
---|
| 3097 | if test "$LN_S" = "ln -s"; then
|
---|
[21327] | 3098 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3099 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3100 | else
|
---|
[21327] | 3101 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3102 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[16566] | 3103 | fi
|
---|
| 3104 |
|
---|
[21327] | 3105 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3106 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3107 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3108 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
[16566] | 3109 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3110 | else
|
---|
| 3111 | cat >conftest.make <<\_ACEOF
|
---|
| 3112 | all:
|
---|
[21327] | 3113 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
[16566] | 3114 | _ACEOF
|
---|
| 3115 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[21327] | 3116 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 3117 | if test -n "$ac_maketemp"; then
|
---|
| 3118 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3119 | else
|
---|
| 3120 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3121 | fi
|
---|
[16566] | 3122 | rm -f conftest.make
|
---|
| 3123 | fi
|
---|
[21327] | 3124 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 3125 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3126 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3127 | SET_MAKE=
|
---|
| 3128 | else
|
---|
[21327] | 3129 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3130 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3131 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3132 | fi
|
---|
| 3133 |
|
---|
| 3134 | if test -n "$ac_tool_prefix"; then
|
---|
| 3135 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3136 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[21327] | 3137 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3138 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 3139 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3140 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3141 | else
|
---|
| 3142 | if test -n "$RANLIB"; then
|
---|
| 3143 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3144 | else
|
---|
| 3145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3146 | for as_dir in $PATH
|
---|
| 3147 | do
|
---|
| 3148 | IFS=$as_save_IFS
|
---|
| 3149 | test -z "$as_dir" && as_dir=.
|
---|
| 3150 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 3151 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 3152 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3153 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3154 | break 2
|
---|
| 3155 | fi
|
---|
| 3156 | done
|
---|
| 3157 | done
|
---|
| 3158 |
|
---|
| 3159 | fi
|
---|
| 3160 | fi
|
---|
| 3161 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3162 | if test -n "$RANLIB"; then
|
---|
[21327] | 3163 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3164 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[16566] | 3165 | else
|
---|
[21327] | 3166 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3167 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3168 | fi
|
---|
| 3169 |
|
---|
| 3170 | fi
|
---|
| 3171 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3172 | ac_ct_RANLIB=$RANLIB
|
---|
| 3173 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3174 | set dummy ranlib; ac_word=$2
|
---|
[21327] | 3175 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[16566] | 3177 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3178 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3179 | else
|
---|
| 3180 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3181 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3182 | else
|
---|
| 3183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3184 | for as_dir in $PATH
|
---|
| 3185 | do
|
---|
| 3186 | IFS=$as_save_IFS
|
---|
| 3187 | test -z "$as_dir" && as_dir=.
|
---|
| 3188 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[21327] | 3189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16566] | 3190 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3192 | break 2
|
---|
| 3193 | fi
|
---|
| 3194 | done
|
---|
| 3195 | done
|
---|
| 3196 |
|
---|
[21327] | 3197 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
[16566] | 3198 | fi
|
---|
| 3199 | fi
|
---|
| 3200 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3201 | if test -n "$ac_ct_RANLIB"; then
|
---|
[21327] | 3202 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3203 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
[16566] | 3204 | else
|
---|
[21327] | 3205 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3206 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3207 | fi
|
---|
| 3208 |
|
---|
[21327] | 3209 | RANLIB=$ac_ct_RANLIB
|
---|
[16566] | 3210 | else
|
---|
| 3211 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3212 | fi
|
---|
| 3213 |
|
---|
| 3214 |
|
---|
[21327] | 3215 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3216 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
[16566] | 3217 | arch_64bit=no
|
---|
| 3218 | case "$host_cpu" in
|
---|
| 3219 | x86_64) arch_64bit=yes ;;
|
---|
| 3220 | esac
|
---|
| 3221 |
|
---|
| 3222 | if test "$arch_64bit" = yes; then
|
---|
[21327] | 3223 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3224 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3225 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3226 | COMPAT32BITFLAGS="-m32"
|
---|
| 3227 | fi
|
---|
| 3228 | else
|
---|
[21327] | 3229 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3230 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3231 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3232 | COMPAT32BITFLAGS=
|
---|
| 3233 | fi
|
---|
| 3234 | fi
|
---|
| 3235 | export COMPAT32BITFLAGS
|
---|
| 3236 |
|
---|
| 3237 |
|
---|
| 3238 |
|
---|
| 3239 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3240 | if test $USE_CORBA = 1; then
|
---|
| 3241 |
|
---|
| 3242 | if test $MICO_DIR = "default"; then
|
---|
| 3243 | #do something
|
---|
| 3244 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3245 | else
|
---|
| 3246 | #build the micotest program
|
---|
| 3247 | MICO_INC= ""
|
---|
| 3248 | if test $MICO_DIR != yes; then
|
---|
| 3249 | MICO_INC="-I $MICO_DIR"
|
---|
| 3250 | fi
|
---|
| 3251 | fi
|
---|
| 3252 |
|
---|
| 3253 | #get MICO_VER value
|
---|
| 3254 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3255 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
| 3256 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
| 3257 | sh -c "rm micotest"
|
---|
| 3258 | sh -c "rm micotest.o"
|
---|
| 3259 |
|
---|
| 3260 | #do test of MICO_VER
|
---|
| 3261 | if test MICO_VER != 0; then
|
---|
| 3262 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3263 | #define MICO_VER 1
|
---|
| 3264 | _ACEOF
|
---|
| 3265 |
|
---|
| 3266 |
|
---|
| 3267 | fi
|
---|
| 3268 | #end USE_CORBA test
|
---|
| 3269 | fi
|
---|
| 3270 |
|
---|
| 3271 |
|
---|
| 3272 | ac_ext=c
|
---|
| 3273 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3274 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3275 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3276 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[21327] | 3277 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3278 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[16566] | 3279 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3280 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3281 | CPP=
|
---|
| 3282 | fi
|
---|
| 3283 | if test -z "$CPP"; then
|
---|
| 3284 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3285 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3286 | else
|
---|
| 3287 | # Double quotes because CPP needs to be expanded
|
---|
| 3288 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3289 | do
|
---|
| 3290 | ac_preproc_ok=false
|
---|
| 3291 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3292 | do
|
---|
| 3293 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3294 | # with a fresh cross-compiler works.
|
---|
| 3295 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3296 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3297 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3298 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3299 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3300 | /* confdefs.h. */
|
---|
| 3301 | _ACEOF
|
---|
| 3302 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3303 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3304 | /* end confdefs.h. */
|
---|
| 3305 | #ifdef __STDC__
|
---|
| 3306 | # include <limits.h>
|
---|
| 3307 | #else
|
---|
| 3308 | # include <assert.h>
|
---|
| 3309 | #endif
|
---|
| 3310 | Syntax error
|
---|
| 3311 | _ACEOF
|
---|
[21327] | 3312 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3313 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3314 | ac_status=$?
|
---|
| 3315 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3316 | rm -f conftest.er1
|
---|
| 3317 | cat conftest.err >&5
|
---|
| 3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3319 | (exit $ac_status); } >/dev/null; then
|
---|
| 3320 | if test -s conftest.err; then
|
---|
| 3321 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3322 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3323 | else
|
---|
| 3324 | ac_cpp_err=
|
---|
| 3325 | fi
|
---|
| 3326 | else
|
---|
| 3327 | ac_cpp_err=yes
|
---|
| 3328 | fi
|
---|
| 3329 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3330 | :
|
---|
| 3331 | else
|
---|
| 3332 | echo "$as_me: failed program was:" >&5
|
---|
| 3333 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3334 |
|
---|
| 3335 | # Broken: fails on valid input.
|
---|
| 3336 | continue
|
---|
| 3337 | fi
|
---|
| 3338 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3339 |
|
---|
[21327] | 3340 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16566] | 3341 | # can be detected and how.
|
---|
| 3342 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3343 | /* confdefs.h. */
|
---|
| 3344 | _ACEOF
|
---|
| 3345 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3346 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3347 | /* end confdefs.h. */
|
---|
| 3348 | #include <ac_nonexistent.h>
|
---|
| 3349 | _ACEOF
|
---|
[21327] | 3350 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3351 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3352 | ac_status=$?
|
---|
| 3353 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3354 | rm -f conftest.er1
|
---|
| 3355 | cat conftest.err >&5
|
---|
| 3356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3357 | (exit $ac_status); } >/dev/null; then
|
---|
| 3358 | if test -s conftest.err; then
|
---|
| 3359 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3360 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3361 | else
|
---|
| 3362 | ac_cpp_err=
|
---|
| 3363 | fi
|
---|
| 3364 | else
|
---|
| 3365 | ac_cpp_err=yes
|
---|
| 3366 | fi
|
---|
| 3367 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3368 | # Broken: success on invalid input.
|
---|
| 3369 | continue
|
---|
| 3370 | else
|
---|
| 3371 | echo "$as_me: failed program was:" >&5
|
---|
| 3372 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3373 |
|
---|
| 3374 | # Passes both tests.
|
---|
| 3375 | ac_preproc_ok=:
|
---|
| 3376 | break
|
---|
| 3377 | fi
|
---|
| 3378 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3379 |
|
---|
| 3380 | done
|
---|
| 3381 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3382 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3383 | if $ac_preproc_ok; then
|
---|
| 3384 | break
|
---|
| 3385 | fi
|
---|
| 3386 |
|
---|
| 3387 | done
|
---|
| 3388 | ac_cv_prog_CPP=$CPP
|
---|
| 3389 |
|
---|
| 3390 | fi
|
---|
| 3391 | CPP=$ac_cv_prog_CPP
|
---|
| 3392 | else
|
---|
| 3393 | ac_cv_prog_CPP=$CPP
|
---|
| 3394 | fi
|
---|
[21327] | 3395 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3396 | echo "${ECHO_T}$CPP" >&6
|
---|
[16566] | 3397 | ac_preproc_ok=false
|
---|
| 3398 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3399 | do
|
---|
| 3400 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3401 | # with a fresh cross-compiler works.
|
---|
| 3402 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3403 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3404 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3405 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3406 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3407 | /* confdefs.h. */
|
---|
| 3408 | _ACEOF
|
---|
| 3409 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3410 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3411 | /* end confdefs.h. */
|
---|
| 3412 | #ifdef __STDC__
|
---|
| 3413 | # include <limits.h>
|
---|
| 3414 | #else
|
---|
| 3415 | # include <assert.h>
|
---|
| 3416 | #endif
|
---|
| 3417 | Syntax error
|
---|
| 3418 | _ACEOF
|
---|
[21327] | 3419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3421 | ac_status=$?
|
---|
| 3422 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3423 | rm -f conftest.er1
|
---|
| 3424 | cat conftest.err >&5
|
---|
| 3425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3426 | (exit $ac_status); } >/dev/null; then
|
---|
| 3427 | if test -s conftest.err; then
|
---|
| 3428 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3430 | else
|
---|
| 3431 | ac_cpp_err=
|
---|
| 3432 | fi
|
---|
| 3433 | else
|
---|
| 3434 | ac_cpp_err=yes
|
---|
| 3435 | fi
|
---|
| 3436 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3437 | :
|
---|
| 3438 | else
|
---|
| 3439 | echo "$as_me: failed program was:" >&5
|
---|
| 3440 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3441 |
|
---|
| 3442 | # Broken: fails on valid input.
|
---|
| 3443 | continue
|
---|
| 3444 | fi
|
---|
| 3445 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3446 |
|
---|
[21327] | 3447 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16566] | 3448 | # can be detected and how.
|
---|
| 3449 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3450 | /* confdefs.h. */
|
---|
| 3451 | _ACEOF
|
---|
| 3452 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3453 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3454 | /* end confdefs.h. */
|
---|
| 3455 | #include <ac_nonexistent.h>
|
---|
| 3456 | _ACEOF
|
---|
[21327] | 3457 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3458 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3459 | ac_status=$?
|
---|
| 3460 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3461 | rm -f conftest.er1
|
---|
| 3462 | cat conftest.err >&5
|
---|
| 3463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3464 | (exit $ac_status); } >/dev/null; then
|
---|
| 3465 | if test -s conftest.err; then
|
---|
| 3466 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3467 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3468 | else
|
---|
| 3469 | ac_cpp_err=
|
---|
| 3470 | fi
|
---|
| 3471 | else
|
---|
| 3472 | ac_cpp_err=yes
|
---|
| 3473 | fi
|
---|
| 3474 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3475 | # Broken: success on invalid input.
|
---|
| 3476 | continue
|
---|
| 3477 | else
|
---|
| 3478 | echo "$as_me: failed program was:" >&5
|
---|
| 3479 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3480 |
|
---|
| 3481 | # Passes both tests.
|
---|
| 3482 | ac_preproc_ok=:
|
---|
| 3483 | break
|
---|
| 3484 | fi
|
---|
| 3485 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3486 |
|
---|
| 3487 | done
|
---|
| 3488 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3489 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3490 | if $ac_preproc_ok; then
|
---|
| 3491 | :
|
---|
| 3492 | else
|
---|
| 3493 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3494 | See \`config.log' for more details." >&5
|
---|
| 3495 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3496 | See \`config.log' for more details." >&2;}
|
---|
| 3497 | { (exit 1); exit 1; }; }
|
---|
| 3498 | fi
|
---|
| 3499 |
|
---|
| 3500 | ac_ext=c
|
---|
| 3501 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3505 |
|
---|
| 3506 |
|
---|
[21327] | 3507 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3508 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3509 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
[16566] | 3510 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3511 | else
|
---|
[21327] | 3512 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3513 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3514 | else ac_cv_prog_egrep='egrep'
|
---|
[16566] | 3515 | fi
|
---|
| 3516 | fi
|
---|
[21327] | 3517 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3518 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3519 | EGREP=$ac_cv_prog_egrep
|
---|
[16566] | 3520 |
|
---|
| 3521 |
|
---|
| 3522 |
|
---|
[21327] | 3523 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3524 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
[16566] | 3525 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3526 | /* confdefs.h. */
|
---|
| 3527 | _ACEOF
|
---|
| 3528 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3529 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3530 | /* end confdefs.h. */
|
---|
| 3531 | #ifdef _AIX
|
---|
| 3532 | yes
|
---|
| 3533 | #endif
|
---|
| 3534 |
|
---|
| 3535 | _ACEOF
|
---|
| 3536 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3537 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
[21327] | 3538 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3539 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 3540 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3541 | #define _ALL_SOURCE 1
|
---|
| 3542 | _ACEOF
|
---|
| 3543 |
|
---|
| 3544 | else
|
---|
[21327] | 3545 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3546 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 3547 | fi
|
---|
| 3548 | rm -f conftest*
|
---|
| 3549 |
|
---|
| 3550 |
|
---|
[21327] | 3551 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3552 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
[16566] | 3553 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3554 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3555 | else
|
---|
| 3556 | ac_func_search_save_LIBS=$LIBS
|
---|
[21327] | 3557 | ac_cv_search_strerror=no
|
---|
[16566] | 3558 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3559 | /* confdefs.h. */
|
---|
| 3560 | _ACEOF
|
---|
| 3561 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3562 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3563 | /* end confdefs.h. */
|
---|
| 3564 |
|
---|
[21327] | 3565 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 3566 | #ifdef __cplusplus
|
---|
| 3567 | extern "C"
|
---|
| 3568 | #endif
|
---|
[21327] | 3569 | /* We use char because int might match the return type of a gcc2
|
---|
| 3570 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 3571 | char strerror ();
|
---|
| 3572 | int
|
---|
| 3573 | main ()
|
---|
| 3574 | {
|
---|
[21327] | 3575 | strerror ();
|
---|
[16566] | 3576 | ;
|
---|
| 3577 | return 0;
|
---|
| 3578 | }
|
---|
| 3579 | _ACEOF
|
---|
[21327] | 3580 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3582 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 3583 | ac_status=$?
|
---|
| 3584 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3585 | rm -f conftest.er1
|
---|
| 3586 | cat conftest.err >&5
|
---|
| 3587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3588 | (exit $ac_status); } &&
|
---|
| 3589 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3590 | || test ! -s conftest.err'
|
---|
| 3591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3592 | (eval $ac_try) 2>&5
|
---|
| 3593 | ac_status=$?
|
---|
| 3594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3595 | (exit $ac_status); }; } &&
|
---|
| 3596 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3598 | (eval $ac_try) 2>&5
|
---|
| 3599 | ac_status=$?
|
---|
| 3600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3601 | (exit $ac_status); }; }; then
|
---|
| 3602 | ac_cv_search_strerror="none required"
|
---|
[16566] | 3603 | else
|
---|
| 3604 | echo "$as_me: failed program was:" >&5
|
---|
| 3605 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3606 |
|
---|
| 3607 | fi
|
---|
[21327] | 3608 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3609 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3610 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3611 | for ac_lib in cposix; do
|
---|
| 3612 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3613 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3614 | /* confdefs.h. */
|
---|
| 3615 | _ACEOF
|
---|
| 3616 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3617 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3618 | /* end confdefs.h. */
|
---|
[16566] | 3619 |
|
---|
[21327] | 3620 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3621 | #ifdef __cplusplus
|
---|
| 3622 | extern "C"
|
---|
| 3623 | #endif
|
---|
| 3624 | /* We use char because int might match the return type of a gcc2
|
---|
| 3625 | builtin and then its argument prototype would still apply. */
|
---|
| 3626 | char strerror ();
|
---|
| 3627 | int
|
---|
| 3628 | main ()
|
---|
| 3629 | {
|
---|
| 3630 | strerror ();
|
---|
| 3631 | ;
|
---|
| 3632 | return 0;
|
---|
| 3633 | }
|
---|
| 3634 | _ACEOF
|
---|
| 3635 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3637 | (eval $ac_link) 2>conftest.er1
|
---|
| 3638 | ac_status=$?
|
---|
| 3639 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3640 | rm -f conftest.er1
|
---|
| 3641 | cat conftest.err >&5
|
---|
| 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3643 | (exit $ac_status); } &&
|
---|
| 3644 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3645 | || test ! -s conftest.err'
|
---|
| 3646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3647 | (eval $ac_try) 2>&5
|
---|
| 3648 | ac_status=$?
|
---|
| 3649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3650 | (exit $ac_status); }; } &&
|
---|
| 3651 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3653 | (eval $ac_try) 2>&5
|
---|
| 3654 | ac_status=$?
|
---|
| 3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3656 | (exit $ac_status); }; }; then
|
---|
| 3657 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3658 | break
|
---|
[16566] | 3659 | else
|
---|
[21327] | 3660 | echo "$as_me: failed program was:" >&5
|
---|
| 3661 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3662 |
|
---|
[16566] | 3663 | fi
|
---|
[21327] | 3664 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3665 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3666 | done
|
---|
| 3667 | fi
|
---|
[16566] | 3668 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3669 | fi
|
---|
[21327] | 3670 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3671 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3672 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3673 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
[16566] | 3674 |
|
---|
| 3675 | fi
|
---|
| 3676 |
|
---|
[21327] | 3677 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3678 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
[16566] | 3679 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3680 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3681 | else
|
---|
| 3682 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3683 | /* confdefs.h. */
|
---|
| 3684 | _ACEOF
|
---|
| 3685 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3686 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3687 | /* end confdefs.h. */
|
---|
| 3688 | #include <stdlib.h>
|
---|
| 3689 | #include <stdarg.h>
|
---|
| 3690 | #include <string.h>
|
---|
| 3691 | #include <float.h>
|
---|
| 3692 |
|
---|
| 3693 | int
|
---|
| 3694 | main ()
|
---|
| 3695 | {
|
---|
| 3696 |
|
---|
| 3697 | ;
|
---|
| 3698 | return 0;
|
---|
| 3699 | }
|
---|
| 3700 | _ACEOF
|
---|
| 3701 | rm -f conftest.$ac_objext
|
---|
[21327] | 3702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3703 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 3704 | ac_status=$?
|
---|
| 3705 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3706 | rm -f conftest.er1
|
---|
| 3707 | cat conftest.err >&5
|
---|
| 3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3709 | (exit $ac_status); } &&
|
---|
| 3710 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3711 | || test ! -s conftest.err'
|
---|
| 3712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3713 | (eval $ac_try) 2>&5
|
---|
| 3714 | ac_status=$?
|
---|
| 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3716 | (exit $ac_status); }; } &&
|
---|
| 3717 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3719 | (eval $ac_try) 2>&5
|
---|
| 3720 | ac_status=$?
|
---|
| 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3722 | (exit $ac_status); }; }; then
|
---|
[16566] | 3723 | ac_cv_header_stdc=yes
|
---|
| 3724 | else
|
---|
| 3725 | echo "$as_me: failed program was:" >&5
|
---|
| 3726 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3727 |
|
---|
[21327] | 3728 | ac_cv_header_stdc=no
|
---|
[16566] | 3729 | fi
|
---|
[21327] | 3730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 3731 |
|
---|
| 3732 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3733 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3734 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3735 | /* confdefs.h. */
|
---|
| 3736 | _ACEOF
|
---|
| 3737 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3738 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3739 | /* end confdefs.h. */
|
---|
| 3740 | #include <string.h>
|
---|
| 3741 |
|
---|
| 3742 | _ACEOF
|
---|
| 3743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3744 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3745 | :
|
---|
| 3746 | else
|
---|
| 3747 | ac_cv_header_stdc=no
|
---|
| 3748 | fi
|
---|
| 3749 | rm -f conftest*
|
---|
| 3750 |
|
---|
| 3751 | fi
|
---|
| 3752 |
|
---|
| 3753 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3754 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3755 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3756 | /* confdefs.h. */
|
---|
| 3757 | _ACEOF
|
---|
| 3758 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3759 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3760 | /* end confdefs.h. */
|
---|
| 3761 | #include <stdlib.h>
|
---|
| 3762 |
|
---|
| 3763 | _ACEOF
|
---|
| 3764 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3765 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3766 | :
|
---|
| 3767 | else
|
---|
| 3768 | ac_cv_header_stdc=no
|
---|
| 3769 | fi
|
---|
| 3770 | rm -f conftest*
|
---|
| 3771 |
|
---|
| 3772 | fi
|
---|
| 3773 |
|
---|
| 3774 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3775 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3776 | if test "$cross_compiling" = yes; then
|
---|
| 3777 | :
|
---|
| 3778 | else
|
---|
| 3779 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3780 | /* confdefs.h. */
|
---|
| 3781 | _ACEOF
|
---|
| 3782 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3783 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3784 | /* end confdefs.h. */
|
---|
| 3785 | #include <ctype.h>
|
---|
| 3786 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3787 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3788 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3789 | #else
|
---|
| 3790 | # define ISLOWER(c) \
|
---|
| 3791 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3792 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3793 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3794 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3795 | #endif
|
---|
| 3796 |
|
---|
| 3797 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3798 | int
|
---|
| 3799 | main ()
|
---|
| 3800 | {
|
---|
| 3801 | int i;
|
---|
| 3802 | for (i = 0; i < 256; i++)
|
---|
| 3803 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3804 | || toupper (i) != TOUPPER (i))
|
---|
[21327] | 3805 | exit(2);
|
---|
| 3806 | exit (0);
|
---|
[16566] | 3807 | }
|
---|
| 3808 | _ACEOF
|
---|
| 3809 | rm -f conftest$ac_exeext
|
---|
[21327] | 3810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3811 | (eval $ac_link) 2>&5
|
---|
[16566] | 3812 | ac_status=$?
|
---|
| 3813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 3815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3816 | (eval $ac_try) 2>&5
|
---|
[16566] | 3817 | ac_status=$?
|
---|
| 3818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3819 | (exit $ac_status); }; }; then
|
---|
| 3820 | :
|
---|
| 3821 | else
|
---|
| 3822 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3823 | echo "$as_me: failed program was:" >&5
|
---|
| 3824 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3825 |
|
---|
| 3826 | ( exit $ac_status )
|
---|
| 3827 | ac_cv_header_stdc=no
|
---|
| 3828 | fi
|
---|
[21327] | 3829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 3830 | fi
|
---|
| 3831 | fi
|
---|
| 3832 | fi
|
---|
[21327] | 3833 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3834 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16566] | 3835 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3836 |
|
---|
| 3837 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3838 | #define STDC_HEADERS 1
|
---|
| 3839 | _ACEOF
|
---|
| 3840 |
|
---|
| 3841 | fi
|
---|
| 3842 |
|
---|
| 3843 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3844 |
|
---|
| 3845 |
|
---|
| 3846 |
|
---|
| 3847 |
|
---|
| 3848 |
|
---|
| 3849 |
|
---|
| 3850 |
|
---|
| 3851 |
|
---|
| 3852 |
|
---|
| 3853 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3854 | inttypes.h stdint.h unistd.h
|
---|
| 3855 | do
|
---|
| 3856 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[21327] | 3857 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 3860 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3861 | else
|
---|
| 3862 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3863 | /* confdefs.h. */
|
---|
| 3864 | _ACEOF
|
---|
| 3865 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3866 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3867 | /* end confdefs.h. */
|
---|
| 3868 | $ac_includes_default
|
---|
| 3869 |
|
---|
| 3870 | #include <$ac_header>
|
---|
| 3871 | _ACEOF
|
---|
| 3872 | rm -f conftest.$ac_objext
|
---|
[21327] | 3873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3874 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 3875 | ac_status=$?
|
---|
| 3876 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3877 | rm -f conftest.er1
|
---|
| 3878 | cat conftest.err >&5
|
---|
| 3879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3880 | (exit $ac_status); } &&
|
---|
| 3881 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3882 | || test ! -s conftest.err'
|
---|
| 3883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3884 | (eval $ac_try) 2>&5
|
---|
| 3885 | ac_status=$?
|
---|
| 3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3887 | (exit $ac_status); }; } &&
|
---|
| 3888 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3890 | (eval $ac_try) 2>&5
|
---|
| 3891 | ac_status=$?
|
---|
| 3892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3893 | (exit $ac_status); }; }; then
|
---|
[16566] | 3894 | eval "$as_ac_Header=yes"
|
---|
| 3895 | else
|
---|
| 3896 | echo "$as_me: failed program was:" >&5
|
---|
| 3897 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3898 |
|
---|
[21327] | 3899 | eval "$as_ac_Header=no"
|
---|
[16566] | 3900 | fi
|
---|
[21327] | 3901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 3902 | fi
|
---|
[21327] | 3903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 3905 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3906 | cat >>confdefs.h <<_ACEOF
|
---|
| 3907 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3908 | _ACEOF
|
---|
| 3909 |
|
---|
| 3910 | fi
|
---|
| 3911 |
|
---|
| 3912 | done
|
---|
| 3913 |
|
---|
| 3914 |
|
---|
| 3915 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
[21327] | 3916 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3917 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
[16566] | 3918 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3919 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3920 | fi
|
---|
[21327] | 3921 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3922 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16566] | 3923 | else
|
---|
| 3924 | # Is the header compilable?
|
---|
[21327] | 3925 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3926 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
[16566] | 3927 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3928 | /* confdefs.h. */
|
---|
| 3929 | _ACEOF
|
---|
| 3930 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3931 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3932 | /* end confdefs.h. */
|
---|
| 3933 | $ac_includes_default
|
---|
| 3934 | #include <minix/config.h>
|
---|
| 3935 | _ACEOF
|
---|
| 3936 | rm -f conftest.$ac_objext
|
---|
[21327] | 3937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3938 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 3939 | ac_status=$?
|
---|
| 3940 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3941 | rm -f conftest.er1
|
---|
| 3942 | cat conftest.err >&5
|
---|
| 3943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3944 | (exit $ac_status); } &&
|
---|
| 3945 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3946 | || test ! -s conftest.err'
|
---|
| 3947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3948 | (eval $ac_try) 2>&5
|
---|
| 3949 | ac_status=$?
|
---|
| 3950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3951 | (exit $ac_status); }; } &&
|
---|
| 3952 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3954 | (eval $ac_try) 2>&5
|
---|
| 3955 | ac_status=$?
|
---|
| 3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3957 | (exit $ac_status); }; }; then
|
---|
[16566] | 3958 | ac_header_compiler=yes
|
---|
| 3959 | else
|
---|
| 3960 | echo "$as_me: failed program was:" >&5
|
---|
| 3961 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3962 |
|
---|
[21327] | 3963 | ac_header_compiler=no
|
---|
[16566] | 3964 | fi
|
---|
[21327] | 3965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3966 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3967 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[16566] | 3968 |
|
---|
| 3969 | # Is the header present?
|
---|
[21327] | 3970 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3971 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
[16566] | 3972 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3973 | /* confdefs.h. */
|
---|
| 3974 | _ACEOF
|
---|
| 3975 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3976 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3977 | /* end confdefs.h. */
|
---|
| 3978 | #include <minix/config.h>
|
---|
| 3979 | _ACEOF
|
---|
[21327] | 3980 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3981 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 3982 | ac_status=$?
|
---|
| 3983 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3984 | rm -f conftest.er1
|
---|
| 3985 | cat conftest.err >&5
|
---|
| 3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 3987 | (exit $ac_status); } >/dev/null; then
|
---|
| 3988 | if test -s conftest.err; then
|
---|
| 3989 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3990 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3991 | else
|
---|
| 3992 | ac_cpp_err=
|
---|
| 3993 | fi
|
---|
| 3994 | else
|
---|
| 3995 | ac_cpp_err=yes
|
---|
| 3996 | fi
|
---|
| 3997 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 3998 | ac_header_preproc=yes
|
---|
| 3999 | else
|
---|
| 4000 | echo "$as_me: failed program was:" >&5
|
---|
| 4001 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4002 |
|
---|
| 4003 | ac_header_preproc=no
|
---|
| 4004 | fi
|
---|
| 4005 | rm -f conftest.err conftest.$ac_ext
|
---|
[21327] | 4006 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4007 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[16566] | 4008 |
|
---|
| 4009 | # So? What about this header?
|
---|
| 4010 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4011 | yes:no: )
|
---|
| 4012 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4013 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4014 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 4015 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 4016 | ac_header_preproc=yes
|
---|
| 4017 | ;;
|
---|
| 4018 | no:yes:* )
|
---|
| 4019 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 4020 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 4021 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 4022 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 4023 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 4024 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 4025 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4026 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4027 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4028 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4029 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4030 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
[21327] | 4031 | (
|
---|
| 4032 | cat <<\_ASBOX
|
---|
| 4033 | ## ------------------------------------------ ##
|
---|
| 4034 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 4035 | ## ------------------------------------------ ##
|
---|
| 4036 | _ASBOX
|
---|
| 4037 | ) |
|
---|
| 4038 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
[16566] | 4039 | ;;
|
---|
| 4040 | esac
|
---|
[21327] | 4041 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4042 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
[16566] | 4043 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4044 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4045 | else
|
---|
| 4046 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4047 | fi
|
---|
[21327] | 4048 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4049 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16566] | 4050 |
|
---|
| 4051 | fi
|
---|
| 4052 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 4053 | MINIX=yes
|
---|
| 4054 | else
|
---|
| 4055 | MINIX=
|
---|
| 4056 | fi
|
---|
| 4057 |
|
---|
| 4058 |
|
---|
| 4059 | if test "$MINIX" = yes; then
|
---|
| 4060 |
|
---|
| 4061 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4062 | #define _POSIX_SOURCE 1
|
---|
| 4063 | _ACEOF
|
---|
| 4064 |
|
---|
| 4065 |
|
---|
| 4066 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4067 | #define _POSIX_1_SOURCE 2
|
---|
| 4068 | _ACEOF
|
---|
| 4069 |
|
---|
| 4070 |
|
---|
| 4071 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4072 | #define _MINIX 1
|
---|
| 4073 | _ACEOF
|
---|
| 4074 |
|
---|
| 4075 | fi
|
---|
| 4076 |
|
---|
[21327] | 4077 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4078 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
[16566] | 4079 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 4080 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4081 | else
|
---|
| 4082 | ac_cv_prog_cc_stdc=no
|
---|
| 4083 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4084 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4085 | # breaks some systems' header files.
|
---|
| 4086 | # AIX -qlanglvl=ansi
|
---|
| 4087 | # Ultrix and OSF/1 -std1
|
---|
| 4088 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4089 | # SVR4 -Xc
|
---|
| 4090 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4091 | do
|
---|
| 4092 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
| 4093 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4094 | /* confdefs.h. */
|
---|
| 4095 | _ACEOF
|
---|
| 4096 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4097 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4098 | /* end confdefs.h. */
|
---|
| 4099 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4100 | choke me
|
---|
| 4101 | #endif
|
---|
| 4102 |
|
---|
| 4103 | int
|
---|
| 4104 | main ()
|
---|
| 4105 | {
|
---|
| 4106 | int test (int i, double x);
|
---|
| 4107 | struct s1 {int (*f) (int a);};
|
---|
| 4108 | struct s2 {int (*f) (double a);};
|
---|
| 4109 | ;
|
---|
| 4110 | return 0;
|
---|
| 4111 | }
|
---|
| 4112 | _ACEOF
|
---|
| 4113 | rm -f conftest.$ac_objext
|
---|
[21327] | 4114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4115 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4116 | ac_status=$?
|
---|
| 4117 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4118 | rm -f conftest.er1
|
---|
| 4119 | cat conftest.err >&5
|
---|
| 4120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4121 | (exit $ac_status); } &&
|
---|
| 4122 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4123 | || test ! -s conftest.err'
|
---|
| 4124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4125 | (eval $ac_try) 2>&5
|
---|
| 4126 | ac_status=$?
|
---|
| 4127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4128 | (exit $ac_status); }; } &&
|
---|
| 4129 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4131 | (eval $ac_try) 2>&5
|
---|
| 4132 | ac_status=$?
|
---|
| 4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4134 | (exit $ac_status); }; }; then
|
---|
[16566] | 4135 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4136 | else
|
---|
| 4137 | echo "$as_me: failed program was:" >&5
|
---|
| 4138 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4139 |
|
---|
| 4140 | fi
|
---|
[21327] | 4141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4142 | done
|
---|
| 4143 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4144 |
|
---|
| 4145 | fi
|
---|
| 4146 |
|
---|
[21327] | 4147 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4148 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[16566] | 4149 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4150 | x|xno) ;;
|
---|
| 4151 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4152 | esac
|
---|
| 4153 |
|
---|
| 4154 |
|
---|
[21327] | 4155 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4156 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[16566] | 4157 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[21327] | 4158 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4159 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 4160 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4161 | #define PROTOTYPES 1
|
---|
| 4162 | _ACEOF
|
---|
| 4163 |
|
---|
| 4164 | U= ANSI2KNR=
|
---|
| 4165 | else
|
---|
[21327] | 4166 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4167 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 4168 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4169 | fi
|
---|
| 4170 |
|
---|
[21327] | 4171 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4172 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
[16566] | 4173 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4174 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4175 | else
|
---|
| 4176 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4177 | /* confdefs.h. */
|
---|
| 4178 | _ACEOF
|
---|
| 4179 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4180 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4181 | /* end confdefs.h. */
|
---|
| 4182 |
|
---|
| 4183 | int
|
---|
| 4184 | main ()
|
---|
| 4185 | {
|
---|
| 4186 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4187 | #ifndef __cplusplus
|
---|
| 4188 | /* Ultrix mips cc rejects this. */
|
---|
| 4189 | typedef int charset[2];
|
---|
[21327] | 4190 | const charset x;
|
---|
[16566] | 4191 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[21327] | 4192 | char const *const *ccp;
|
---|
| 4193 | char **p;
|
---|
[16566] | 4194 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4195 | struct point {int x, y;};
|
---|
| 4196 | static struct point const zero = {0,0};
|
---|
| 4197 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4198 | It does not let you subtract one const X* pointer from another in
|
---|
| 4199 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4200 | expression */
|
---|
| 4201 | const char *g = "string";
|
---|
[21327] | 4202 | ccp = &g + (g ? g-g : 0);
|
---|
[16566] | 4203 | /* HPUX 7.0 cc rejects these. */
|
---|
[21327] | 4204 | ++ccp;
|
---|
| 4205 | p = (char**) ccp;
|
---|
| 4206 | ccp = (char const *const *) p;
|
---|
[16566] | 4207 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4208 | char *t;
|
---|
| 4209 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4210 |
|
---|
| 4211 | *t++ = 0;
|
---|
| 4212 | }
|
---|
| 4213 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4214 | int x[] = {25, 17};
|
---|
| 4215 | const int *foo = &x[0];
|
---|
| 4216 | ++foo;
|
---|
| 4217 | }
|
---|
| 4218 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4219 | typedef const int *iptr;
|
---|
| 4220 | iptr p = 0;
|
---|
| 4221 | ++p;
|
---|
| 4222 | }
|
---|
| 4223 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4224 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4225 | struct s { int j; const int *ap[3]; };
|
---|
| 4226 | struct s *b; b->j = 5;
|
---|
| 4227 | }
|
---|
| 4228 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4229 | const int foo = 10;
|
---|
| 4230 | }
|
---|
| 4231 | #endif
|
---|
| 4232 |
|
---|
| 4233 | ;
|
---|
| 4234 | return 0;
|
---|
| 4235 | }
|
---|
| 4236 | _ACEOF
|
---|
| 4237 | rm -f conftest.$ac_objext
|
---|
[21327] | 4238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4239 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4240 | ac_status=$?
|
---|
| 4241 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4242 | rm -f conftest.er1
|
---|
| 4243 | cat conftest.err >&5
|
---|
| 4244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4245 | (exit $ac_status); } &&
|
---|
| 4246 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4247 | || test ! -s conftest.err'
|
---|
| 4248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4249 | (eval $ac_try) 2>&5
|
---|
| 4250 | ac_status=$?
|
---|
| 4251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4252 | (exit $ac_status); }; } &&
|
---|
| 4253 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4255 | (eval $ac_try) 2>&5
|
---|
| 4256 | ac_status=$?
|
---|
| 4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4258 | (exit $ac_status); }; }; then
|
---|
[16566] | 4259 | ac_cv_c_const=yes
|
---|
| 4260 | else
|
---|
| 4261 | echo "$as_me: failed program was:" >&5
|
---|
| 4262 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4263 |
|
---|
[21327] | 4264 | ac_cv_c_const=no
|
---|
[16566] | 4265 | fi
|
---|
[21327] | 4266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4267 | fi
|
---|
[21327] | 4268 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4269 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[16566] | 4270 | if test $ac_cv_c_const = no; then
|
---|
| 4271 |
|
---|
| 4272 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4273 | #define const
|
---|
| 4274 | _ACEOF
|
---|
| 4275 |
|
---|
| 4276 | fi
|
---|
| 4277 |
|
---|
[21327] | 4278 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4279 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
[16566] | 4280 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4281 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4282 | else
|
---|
| 4283 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4284 | /* confdefs.h. */
|
---|
| 4285 | _ACEOF
|
---|
| 4286 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4287 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4288 | /* end confdefs.h. */
|
---|
| 4289 | $ac_includes_default
|
---|
| 4290 | int
|
---|
| 4291 | main ()
|
---|
| 4292 | {
|
---|
[21327] | 4293 | if ((off_t *) 0)
|
---|
[16566] | 4294 | return 0;
|
---|
[21327] | 4295 | if (sizeof (off_t))
|
---|
[16566] | 4296 | return 0;
|
---|
| 4297 | ;
|
---|
| 4298 | return 0;
|
---|
| 4299 | }
|
---|
| 4300 | _ACEOF
|
---|
| 4301 | rm -f conftest.$ac_objext
|
---|
[21327] | 4302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4303 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4304 | ac_status=$?
|
---|
| 4305 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4306 | rm -f conftest.er1
|
---|
| 4307 | cat conftest.err >&5
|
---|
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4309 | (exit $ac_status); } &&
|
---|
| 4310 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4311 | || test ! -s conftest.err'
|
---|
| 4312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4313 | (eval $ac_try) 2>&5
|
---|
| 4314 | ac_status=$?
|
---|
| 4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4316 | (exit $ac_status); }; } &&
|
---|
| 4317 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4319 | (eval $ac_try) 2>&5
|
---|
| 4320 | ac_status=$?
|
---|
| 4321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4322 | (exit $ac_status); }; }; then
|
---|
[16566] | 4323 | ac_cv_type_off_t=yes
|
---|
| 4324 | else
|
---|
| 4325 | echo "$as_me: failed program was:" >&5
|
---|
| 4326 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4327 |
|
---|
[21327] | 4328 | ac_cv_type_off_t=no
|
---|
[16566] | 4329 | fi
|
---|
[21327] | 4330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4331 | fi
|
---|
[21327] | 4332 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4333 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
[16566] | 4334 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4335 | :
|
---|
| 4336 | else
|
---|
| 4337 |
|
---|
| 4338 | cat >>confdefs.h <<_ACEOF
|
---|
[21327] | 4339 | #define off_t long
|
---|
[16566] | 4340 | _ACEOF
|
---|
| 4341 |
|
---|
| 4342 | fi
|
---|
| 4343 |
|
---|
[21327] | 4344 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4345 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
[16566] | 4346 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4347 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4348 | else
|
---|
| 4349 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4350 | /* confdefs.h. */
|
---|
| 4351 | _ACEOF
|
---|
| 4352 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4353 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4354 | /* end confdefs.h. */
|
---|
| 4355 | $ac_includes_default
|
---|
| 4356 | int
|
---|
| 4357 | main ()
|
---|
| 4358 | {
|
---|
[21327] | 4359 | if ((size_t *) 0)
|
---|
[16566] | 4360 | return 0;
|
---|
[21327] | 4361 | if (sizeof (size_t))
|
---|
[16566] | 4362 | return 0;
|
---|
| 4363 | ;
|
---|
| 4364 | return 0;
|
---|
| 4365 | }
|
---|
| 4366 | _ACEOF
|
---|
| 4367 | rm -f conftest.$ac_objext
|
---|
[21327] | 4368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4369 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4370 | ac_status=$?
|
---|
| 4371 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4372 | rm -f conftest.er1
|
---|
| 4373 | cat conftest.err >&5
|
---|
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4375 | (exit $ac_status); } &&
|
---|
| 4376 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4377 | || test ! -s conftest.err'
|
---|
| 4378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4379 | (eval $ac_try) 2>&5
|
---|
| 4380 | ac_status=$?
|
---|
| 4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4382 | (exit $ac_status); }; } &&
|
---|
| 4383 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4385 | (eval $ac_try) 2>&5
|
---|
| 4386 | ac_status=$?
|
---|
| 4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4388 | (exit $ac_status); }; }; then
|
---|
[16566] | 4389 | ac_cv_type_size_t=yes
|
---|
| 4390 | else
|
---|
| 4391 | echo "$as_me: failed program was:" >&5
|
---|
| 4392 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4393 |
|
---|
[21327] | 4394 | ac_cv_type_size_t=no
|
---|
[16566] | 4395 | fi
|
---|
[21327] | 4396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4397 | fi
|
---|
[21327] | 4398 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4399 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
[16566] | 4400 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4401 | :
|
---|
| 4402 | else
|
---|
| 4403 |
|
---|
| 4404 | cat >>confdefs.h <<_ACEOF
|
---|
[21327] | 4405 | #define size_t unsigned
|
---|
[16566] | 4406 | _ACEOF
|
---|
| 4407 |
|
---|
| 4408 | fi
|
---|
| 4409 |
|
---|
[21327] | 4410 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4411 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
[16566] | 4412 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4413 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4414 | else
|
---|
| 4415 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4416 | /* confdefs.h. */
|
---|
| 4417 | _ACEOF
|
---|
| 4418 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4419 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4420 | /* end confdefs.h. */
|
---|
| 4421 | #include <sys/types.h>
|
---|
| 4422 | #include <sys/time.h>
|
---|
| 4423 | #include <time.h>
|
---|
| 4424 |
|
---|
| 4425 | int
|
---|
| 4426 | main ()
|
---|
| 4427 | {
|
---|
| 4428 | if ((struct tm *) 0)
|
---|
| 4429 | return 0;
|
---|
| 4430 | ;
|
---|
| 4431 | return 0;
|
---|
| 4432 | }
|
---|
| 4433 | _ACEOF
|
---|
| 4434 | rm -f conftest.$ac_objext
|
---|
[21327] | 4435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4436 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4437 | ac_status=$?
|
---|
| 4438 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4439 | rm -f conftest.er1
|
---|
| 4440 | cat conftest.err >&5
|
---|
| 4441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4442 | (exit $ac_status); } &&
|
---|
| 4443 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4444 | || test ! -s conftest.err'
|
---|
| 4445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4446 | (eval $ac_try) 2>&5
|
---|
| 4447 | ac_status=$?
|
---|
| 4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4449 | (exit $ac_status); }; } &&
|
---|
| 4450 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4452 | (eval $ac_try) 2>&5
|
---|
| 4453 | ac_status=$?
|
---|
| 4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4455 | (exit $ac_status); }; }; then
|
---|
[16566] | 4456 | ac_cv_header_time=yes
|
---|
| 4457 | else
|
---|
| 4458 | echo "$as_me: failed program was:" >&5
|
---|
| 4459 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4460 |
|
---|
[21327] | 4461 | ac_cv_header_time=no
|
---|
[16566] | 4462 | fi
|
---|
[21327] | 4463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4464 | fi
|
---|
[21327] | 4465 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4466 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
[16566] | 4467 | if test $ac_cv_header_time = yes; then
|
---|
| 4468 |
|
---|
| 4469 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4470 | #define TIME_WITH_SYS_TIME 1
|
---|
| 4471 | _ACEOF
|
---|
| 4472 |
|
---|
| 4473 | fi
|
---|
| 4474 |
|
---|
[21327] | 4475 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4476 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
[16566] | 4477 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4478 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4479 | else
|
---|
| 4480 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4481 | /* confdefs.h. */
|
---|
| 4482 | _ACEOF
|
---|
| 4483 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4484 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4485 | /* end confdefs.h. */
|
---|
| 4486 | #include <sys/types.h>
|
---|
| 4487 | #include <time.h>
|
---|
| 4488 |
|
---|
| 4489 | int
|
---|
| 4490 | main ()
|
---|
| 4491 | {
|
---|
[21327] | 4492 | struct tm *tp; tp->tm_sec;
|
---|
[16566] | 4493 | ;
|
---|
| 4494 | return 0;
|
---|
| 4495 | }
|
---|
| 4496 | _ACEOF
|
---|
| 4497 | rm -f conftest.$ac_objext
|
---|
[21327] | 4498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4499 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4500 | ac_status=$?
|
---|
| 4501 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4502 | rm -f conftest.er1
|
---|
| 4503 | cat conftest.err >&5
|
---|
| 4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4505 | (exit $ac_status); } &&
|
---|
| 4506 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4507 | || test ! -s conftest.err'
|
---|
| 4508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4509 | (eval $ac_try) 2>&5
|
---|
| 4510 | ac_status=$?
|
---|
| 4511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4512 | (exit $ac_status); }; } &&
|
---|
| 4513 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4515 | (eval $ac_try) 2>&5
|
---|
| 4516 | ac_status=$?
|
---|
| 4517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4518 | (exit $ac_status); }; }; then
|
---|
[16566] | 4519 | ac_cv_struct_tm=time.h
|
---|
| 4520 | else
|
---|
| 4521 | echo "$as_me: failed program was:" >&5
|
---|
| 4522 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4523 |
|
---|
[21327] | 4524 | ac_cv_struct_tm=sys/time.h
|
---|
[16566] | 4525 | fi
|
---|
[21327] | 4526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4527 | fi
|
---|
[21327] | 4528 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4529 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
[16566] | 4530 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 4531 |
|
---|
| 4532 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4533 | #define TM_IN_SYS_TIME 1
|
---|
| 4534 | _ACEOF
|
---|
| 4535 |
|
---|
| 4536 | fi
|
---|
| 4537 |
|
---|
| 4538 |
|
---|
| 4539 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 4540 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4541 | /* confdefs.h. */
|
---|
| 4542 | _ACEOF
|
---|
| 4543 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4544 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4545 | /* end confdefs.h. */
|
---|
| 4546 | #include <stdio.h>
|
---|
| 4547 |
|
---|
| 4548 | int
|
---|
| 4549 | main ()
|
---|
| 4550 | {
|
---|
| 4551 | FILE *rubbish = popen("yes", "r");
|
---|
| 4552 | ;
|
---|
| 4553 | return 0;
|
---|
| 4554 | }
|
---|
| 4555 | _ACEOF
|
---|
| 4556 | rm -f conftest.$ac_objext
|
---|
[21327] | 4557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4558 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4559 | ac_status=$?
|
---|
| 4560 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4561 | rm -f conftest.er1
|
---|
| 4562 | cat conftest.err >&5
|
---|
| 4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4564 | (exit $ac_status); } &&
|
---|
| 4565 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4566 | || test ! -s conftest.err'
|
---|
| 4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4568 | (eval $ac_try) 2>&5
|
---|
| 4569 | ac_status=$?
|
---|
| 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4571 | (exit $ac_status); }; } &&
|
---|
| 4572 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4574 | (eval $ac_try) 2>&5
|
---|
| 4575 | ac_status=$?
|
---|
| 4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4577 | (exit $ac_status); }; }; then
|
---|
[16566] | 4578 | :
|
---|
| 4579 | else
|
---|
| 4580 | echo "$as_me: failed program was:" >&5
|
---|
| 4581 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4582 |
|
---|
[21327] | 4583 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[16566] | 4584 | fi
|
---|
[21327] | 4585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4586 | fi
|
---|
| 4587 |
|
---|
| 4588 |
|
---|
| 4589 |
|
---|
[21327] | 4590 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4591 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
[16566] | 4592 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4593 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4594 | else
|
---|
| 4595 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4596 | LIBS="-lg $LIBS"
|
---|
| 4597 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4598 | /* confdefs.h. */
|
---|
| 4599 | _ACEOF
|
---|
| 4600 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4601 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4602 | /* end confdefs.h. */
|
---|
| 4603 |
|
---|
| 4604 |
|
---|
| 4605 | int
|
---|
| 4606 | main ()
|
---|
| 4607 | {
|
---|
[21327] | 4608 | main ();
|
---|
[16566] | 4609 | ;
|
---|
| 4610 | return 0;
|
---|
| 4611 | }
|
---|
| 4612 | _ACEOF
|
---|
| 4613 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 4614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4615 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4616 | ac_status=$?
|
---|
| 4617 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4618 | rm -f conftest.er1
|
---|
| 4619 | cat conftest.err >&5
|
---|
| 4620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4621 | (exit $ac_status); } &&
|
---|
| 4622 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4623 | || test ! -s conftest.err'
|
---|
| 4624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4625 | (eval $ac_try) 2>&5
|
---|
| 4626 | ac_status=$?
|
---|
| 4627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4628 | (exit $ac_status); }; } &&
|
---|
| 4629 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4631 | (eval $ac_try) 2>&5
|
---|
| 4632 | ac_status=$?
|
---|
| 4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4634 | (exit $ac_status); }; }; then
|
---|
[16566] | 4635 | ac_cv_lib_g_main=yes
|
---|
| 4636 | else
|
---|
| 4637 | echo "$as_me: failed program was:" >&5
|
---|
| 4638 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4639 |
|
---|
[21327] | 4640 | ac_cv_lib_g_main=no
|
---|
[16566] | 4641 | fi
|
---|
[21327] | 4642 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 4643 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4644 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4645 | fi
|
---|
[21327] | 4646 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4647 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
[16566] | 4648 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4649 | cat >>confdefs.h <<_ACEOF
|
---|
| 4650 | #define HAVE_LIBG 1
|
---|
| 4651 | _ACEOF
|
---|
| 4652 |
|
---|
| 4653 | LIBS="-lg $LIBS"
|
---|
| 4654 |
|
---|
| 4655 | fi
|
---|
| 4656 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
| 4657 |
|
---|
| 4658 |
|
---|
[21327] | 4659 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4660 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
[16566] | 4661 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4662 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4663 | else
|
---|
| 4664 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4665 | LIBS="-lm $LIBS"
|
---|
| 4666 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4667 | /* confdefs.h. */
|
---|
| 4668 | _ACEOF
|
---|
| 4669 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4670 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4671 | /* end confdefs.h. */
|
---|
| 4672 |
|
---|
| 4673 |
|
---|
| 4674 | int
|
---|
| 4675 | main ()
|
---|
| 4676 | {
|
---|
[21327] | 4677 | main ();
|
---|
[16566] | 4678 | ;
|
---|
| 4679 | return 0;
|
---|
| 4680 | }
|
---|
| 4681 | _ACEOF
|
---|
| 4682 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 4683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4684 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4685 | ac_status=$?
|
---|
| 4686 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4687 | rm -f conftest.er1
|
---|
| 4688 | cat conftest.err >&5
|
---|
| 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4690 | (exit $ac_status); } &&
|
---|
| 4691 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4692 | || test ! -s conftest.err'
|
---|
| 4693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4694 | (eval $ac_try) 2>&5
|
---|
| 4695 | ac_status=$?
|
---|
| 4696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4697 | (exit $ac_status); }; } &&
|
---|
| 4698 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4700 | (eval $ac_try) 2>&5
|
---|
| 4701 | ac_status=$?
|
---|
| 4702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4703 | (exit $ac_status); }; }; then
|
---|
[16566] | 4704 | ac_cv_lib_m_main=yes
|
---|
| 4705 | else
|
---|
| 4706 | echo "$as_me: failed program was:" >&5
|
---|
| 4707 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4708 |
|
---|
[21327] | 4709 | ac_cv_lib_m_main=no
|
---|
[16566] | 4710 | fi
|
---|
[21327] | 4711 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 4712 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4713 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4714 | fi
|
---|
[21327] | 4715 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4716 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
[16566] | 4717 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4718 | cat >>confdefs.h <<_ACEOF
|
---|
| 4719 | #define HAVE_LIBM 1
|
---|
| 4720 | _ACEOF
|
---|
| 4721 |
|
---|
| 4722 | LIBS="-lm $LIBS"
|
---|
| 4723 |
|
---|
| 4724 | fi
|
---|
| 4725 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
| 4726 |
|
---|
| 4727 |
|
---|
[21327] | 4728 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4729 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
[16566] | 4730 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4731 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4732 | else
|
---|
| 4733 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4734 | LIBS="-lcrypt $LIBS"
|
---|
| 4735 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4736 | /* confdefs.h. */
|
---|
| 4737 | _ACEOF
|
---|
| 4738 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4739 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4740 | /* end confdefs.h. */
|
---|
| 4741 |
|
---|
| 4742 |
|
---|
| 4743 | int
|
---|
| 4744 | main ()
|
---|
| 4745 | {
|
---|
[21327] | 4746 | main ();
|
---|
[16566] | 4747 | ;
|
---|
| 4748 | return 0;
|
---|
| 4749 | }
|
---|
| 4750 | _ACEOF
|
---|
| 4751 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 4752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4753 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4754 | ac_status=$?
|
---|
| 4755 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4756 | rm -f conftest.er1
|
---|
| 4757 | cat conftest.err >&5
|
---|
| 4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4759 | (exit $ac_status); } &&
|
---|
| 4760 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4761 | || test ! -s conftest.err'
|
---|
| 4762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4763 | (eval $ac_try) 2>&5
|
---|
| 4764 | ac_status=$?
|
---|
| 4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4766 | (exit $ac_status); }; } &&
|
---|
| 4767 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4769 | (eval $ac_try) 2>&5
|
---|
| 4770 | ac_status=$?
|
---|
| 4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4772 | (exit $ac_status); }; }; then
|
---|
[16566] | 4773 | ac_cv_lib_crypt_main=yes
|
---|
| 4774 | else
|
---|
| 4775 | echo "$as_me: failed program was:" >&5
|
---|
| 4776 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4777 |
|
---|
[21327] | 4778 | ac_cv_lib_crypt_main=no
|
---|
[16566] | 4779 | fi
|
---|
[21327] | 4780 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 4781 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4782 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4783 | fi
|
---|
[21327] | 4784 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4785 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
[16566] | 4786 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4787 | cat >>confdefs.h <<_ACEOF
|
---|
| 4788 | #define HAVE_LIBCRYPT 1
|
---|
| 4789 | _ACEOF
|
---|
| 4790 |
|
---|
| 4791 | LIBS="-lcrypt $LIBS"
|
---|
| 4792 |
|
---|
| 4793 | fi
|
---|
| 4794 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
| 4795 |
|
---|
[20846] | 4796 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 4797 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 4798 | #fi
|
---|
[16566] | 4799 |
|
---|
| 4800 |
|
---|
[20846] | 4801 |
|
---|
| 4802 |
|
---|
| 4803 |
|
---|
| 4804 |
|
---|
[16566] | 4805 | ac_header_dirent=no
|
---|
| 4806 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4807 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
[21327] | 4808 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4809 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 4811 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4812 | else
|
---|
| 4813 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4814 | /* confdefs.h. */
|
---|
| 4815 | _ACEOF
|
---|
| 4816 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4817 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4818 | /* end confdefs.h. */
|
---|
| 4819 | #include <sys/types.h>
|
---|
| 4820 | #include <$ac_hdr>
|
---|
| 4821 |
|
---|
| 4822 | int
|
---|
| 4823 | main ()
|
---|
| 4824 | {
|
---|
| 4825 | if ((DIR *) 0)
|
---|
| 4826 | return 0;
|
---|
| 4827 | ;
|
---|
| 4828 | return 0;
|
---|
| 4829 | }
|
---|
| 4830 | _ACEOF
|
---|
| 4831 | rm -f conftest.$ac_objext
|
---|
[21327] | 4832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4833 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 4834 | ac_status=$?
|
---|
| 4835 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4836 | rm -f conftest.er1
|
---|
| 4837 | cat conftest.err >&5
|
---|
| 4838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4839 | (exit $ac_status); } &&
|
---|
| 4840 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4841 | || test ! -s conftest.err'
|
---|
| 4842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4843 | (eval $ac_try) 2>&5
|
---|
| 4844 | ac_status=$?
|
---|
| 4845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4846 | (exit $ac_status); }; } &&
|
---|
| 4847 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4849 | (eval $ac_try) 2>&5
|
---|
| 4850 | ac_status=$?
|
---|
| 4851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4852 | (exit $ac_status); }; }; then
|
---|
[16566] | 4853 | eval "$as_ac_Header=yes"
|
---|
| 4854 | else
|
---|
| 4855 | echo "$as_me: failed program was:" >&5
|
---|
| 4856 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4857 |
|
---|
[21327] | 4858 | eval "$as_ac_Header=no"
|
---|
[16566] | 4859 | fi
|
---|
[21327] | 4860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 4861 | fi
|
---|
[21327] | 4862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4863 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 4864 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4865 | cat >>confdefs.h <<_ACEOF
|
---|
| 4866 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4867 | _ACEOF
|
---|
| 4868 |
|
---|
| 4869 | ac_header_dirent=$ac_hdr; break
|
---|
| 4870 | fi
|
---|
| 4871 |
|
---|
| 4872 | done
|
---|
| 4873 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4874 | if test $ac_header_dirent = dirent.h; then
|
---|
[21327] | 4875 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4876 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
[16566] | 4877 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4878 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4879 | else
|
---|
| 4880 | ac_func_search_save_LIBS=$LIBS
|
---|
[21327] | 4881 | ac_cv_search_opendir=no
|
---|
[16566] | 4882 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4883 | /* confdefs.h. */
|
---|
| 4884 | _ACEOF
|
---|
| 4885 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4886 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4887 | /* end confdefs.h. */
|
---|
| 4888 |
|
---|
[21327] | 4889 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 4890 | #ifdef __cplusplus
|
---|
| 4891 | extern "C"
|
---|
| 4892 | #endif
|
---|
[21327] | 4893 | /* We use char because int might match the return type of a gcc2
|
---|
| 4894 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 4895 | char opendir ();
|
---|
| 4896 | int
|
---|
| 4897 | main ()
|
---|
| 4898 | {
|
---|
[21327] | 4899 | opendir ();
|
---|
[16566] | 4900 | ;
|
---|
| 4901 | return 0;
|
---|
| 4902 | }
|
---|
| 4903 | _ACEOF
|
---|
[21327] | 4904 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4906 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 4907 | ac_status=$?
|
---|
| 4908 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4909 | rm -f conftest.er1
|
---|
| 4910 | cat conftest.err >&5
|
---|
| 4911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 4912 | (exit $ac_status); } &&
|
---|
| 4913 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4914 | || test ! -s conftest.err'
|
---|
| 4915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4916 | (eval $ac_try) 2>&5
|
---|
| 4917 | ac_status=$?
|
---|
| 4918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4919 | (exit $ac_status); }; } &&
|
---|
| 4920 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4922 | (eval $ac_try) 2>&5
|
---|
| 4923 | ac_status=$?
|
---|
| 4924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4925 | (exit $ac_status); }; }; then
|
---|
| 4926 | ac_cv_search_opendir="none required"
|
---|
[16566] | 4927 | else
|
---|
| 4928 | echo "$as_me: failed program was:" >&5
|
---|
| 4929 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4930 |
|
---|
| 4931 | fi
|
---|
[21327] | 4932 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4933 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4934 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4935 | for ac_lib in dir; do
|
---|
| 4936 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4937 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4938 | /* confdefs.h. */
|
---|
| 4939 | _ACEOF
|
---|
| 4940 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4941 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4942 | /* end confdefs.h. */
|
---|
[16566] | 4943 |
|
---|
[21327] | 4944 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4945 | #ifdef __cplusplus
|
---|
| 4946 | extern "C"
|
---|
| 4947 | #endif
|
---|
| 4948 | /* We use char because int might match the return type of a gcc2
|
---|
| 4949 | builtin and then its argument prototype would still apply. */
|
---|
| 4950 | char opendir ();
|
---|
| 4951 | int
|
---|
| 4952 | main ()
|
---|
| 4953 | {
|
---|
| 4954 | opendir ();
|
---|
| 4955 | ;
|
---|
| 4956 | return 0;
|
---|
| 4957 | }
|
---|
| 4958 | _ACEOF
|
---|
| 4959 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4961 | (eval $ac_link) 2>conftest.er1
|
---|
| 4962 | ac_status=$?
|
---|
| 4963 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4964 | rm -f conftest.er1
|
---|
| 4965 | cat conftest.err >&5
|
---|
| 4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4967 | (exit $ac_status); } &&
|
---|
| 4968 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4969 | || test ! -s conftest.err'
|
---|
| 4970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4971 | (eval $ac_try) 2>&5
|
---|
| 4972 | ac_status=$?
|
---|
| 4973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4974 | (exit $ac_status); }; } &&
|
---|
| 4975 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4977 | (eval $ac_try) 2>&5
|
---|
| 4978 | ac_status=$?
|
---|
| 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4980 | (exit $ac_status); }; }; then
|
---|
| 4981 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4982 | break
|
---|
[16566] | 4983 | else
|
---|
[21327] | 4984 | echo "$as_me: failed program was:" >&5
|
---|
| 4985 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4986 |
|
---|
[16566] | 4987 | fi
|
---|
[21327] | 4988 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4989 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4990 | done
|
---|
| 4991 | fi
|
---|
[16566] | 4992 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4993 | fi
|
---|
[21327] | 4994 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4995 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4996 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4997 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16566] | 4998 |
|
---|
| 4999 | fi
|
---|
| 5000 |
|
---|
| 5001 | else
|
---|
[21327] | 5002 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5003 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
[16566] | 5004 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5005 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5006 | else
|
---|
| 5007 | ac_func_search_save_LIBS=$LIBS
|
---|
[21327] | 5008 | ac_cv_search_opendir=no
|
---|
[16566] | 5009 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5010 | /* confdefs.h. */
|
---|
| 5011 | _ACEOF
|
---|
| 5012 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5013 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5014 | /* end confdefs.h. */
|
---|
| 5015 |
|
---|
[21327] | 5016 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 5017 | #ifdef __cplusplus
|
---|
| 5018 | extern "C"
|
---|
| 5019 | #endif
|
---|
[21327] | 5020 | /* We use char because int might match the return type of a gcc2
|
---|
| 5021 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 5022 | char opendir ();
|
---|
| 5023 | int
|
---|
| 5024 | main ()
|
---|
| 5025 | {
|
---|
[21327] | 5026 | opendir ();
|
---|
[16566] | 5027 | ;
|
---|
| 5028 | return 0;
|
---|
| 5029 | }
|
---|
| 5030 | _ACEOF
|
---|
[21327] | 5031 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5033 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5034 | ac_status=$?
|
---|
| 5035 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5036 | rm -f conftest.er1
|
---|
| 5037 | cat conftest.err >&5
|
---|
| 5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5039 | (exit $ac_status); } &&
|
---|
| 5040 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5041 | || test ! -s conftest.err'
|
---|
| 5042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5043 | (eval $ac_try) 2>&5
|
---|
| 5044 | ac_status=$?
|
---|
| 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5046 | (exit $ac_status); }; } &&
|
---|
| 5047 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5049 | (eval $ac_try) 2>&5
|
---|
| 5050 | ac_status=$?
|
---|
| 5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5052 | (exit $ac_status); }; }; then
|
---|
| 5053 | ac_cv_search_opendir="none required"
|
---|
[16566] | 5054 | else
|
---|
| 5055 | echo "$as_me: failed program was:" >&5
|
---|
| 5056 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5057 |
|
---|
| 5058 | fi
|
---|
[21327] | 5059 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5060 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5061 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5062 | for ac_lib in x; do
|
---|
| 5063 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5064 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5065 | /* confdefs.h. */
|
---|
| 5066 | _ACEOF
|
---|
| 5067 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5068 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5069 | /* end confdefs.h. */
|
---|
[16566] | 5070 |
|
---|
[21327] | 5071 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5072 | #ifdef __cplusplus
|
---|
| 5073 | extern "C"
|
---|
| 5074 | #endif
|
---|
| 5075 | /* We use char because int might match the return type of a gcc2
|
---|
| 5076 | builtin and then its argument prototype would still apply. */
|
---|
| 5077 | char opendir ();
|
---|
| 5078 | int
|
---|
| 5079 | main ()
|
---|
| 5080 | {
|
---|
| 5081 | opendir ();
|
---|
| 5082 | ;
|
---|
| 5083 | return 0;
|
---|
| 5084 | }
|
---|
| 5085 | _ACEOF
|
---|
| 5086 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5088 | (eval $ac_link) 2>conftest.er1
|
---|
| 5089 | ac_status=$?
|
---|
| 5090 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5091 | rm -f conftest.er1
|
---|
| 5092 | cat conftest.err >&5
|
---|
| 5093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5094 | (exit $ac_status); } &&
|
---|
| 5095 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5096 | || test ! -s conftest.err'
|
---|
| 5097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5098 | (eval $ac_try) 2>&5
|
---|
| 5099 | ac_status=$?
|
---|
| 5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5101 | (exit $ac_status); }; } &&
|
---|
| 5102 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5104 | (eval $ac_try) 2>&5
|
---|
| 5105 | ac_status=$?
|
---|
| 5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5107 | (exit $ac_status); }; }; then
|
---|
| 5108 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5109 | break
|
---|
[16566] | 5110 | else
|
---|
[21327] | 5111 | echo "$as_me: failed program was:" >&5
|
---|
| 5112 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5113 |
|
---|
[16566] | 5114 | fi
|
---|
[21327] | 5115 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5116 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5117 | done
|
---|
| 5118 | fi
|
---|
[16566] | 5119 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5120 | fi
|
---|
[21327] | 5121 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5122 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5123 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5124 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16566] | 5125 |
|
---|
| 5126 | fi
|
---|
| 5127 |
|
---|
| 5128 | fi
|
---|
| 5129 |
|
---|
[21327] | 5130 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5131 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
[16566] | 5132 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5133 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5134 | else
|
---|
| 5135 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5136 | /* confdefs.h. */
|
---|
| 5137 | _ACEOF
|
---|
| 5138 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5139 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5140 | /* end confdefs.h. */
|
---|
| 5141 | #include <stdlib.h>
|
---|
| 5142 | #include <stdarg.h>
|
---|
| 5143 | #include <string.h>
|
---|
| 5144 | #include <float.h>
|
---|
| 5145 |
|
---|
| 5146 | int
|
---|
| 5147 | main ()
|
---|
| 5148 | {
|
---|
| 5149 |
|
---|
| 5150 | ;
|
---|
| 5151 | return 0;
|
---|
| 5152 | }
|
---|
| 5153 | _ACEOF
|
---|
| 5154 | rm -f conftest.$ac_objext
|
---|
[21327] | 5155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5156 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 5157 | ac_status=$?
|
---|
| 5158 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5159 | rm -f conftest.er1
|
---|
| 5160 | cat conftest.err >&5
|
---|
| 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5162 | (exit $ac_status); } &&
|
---|
| 5163 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5164 | || test ! -s conftest.err'
|
---|
| 5165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5166 | (eval $ac_try) 2>&5
|
---|
| 5167 | ac_status=$?
|
---|
| 5168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5169 | (exit $ac_status); }; } &&
|
---|
| 5170 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5172 | (eval $ac_try) 2>&5
|
---|
| 5173 | ac_status=$?
|
---|
| 5174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5175 | (exit $ac_status); }; }; then
|
---|
[16566] | 5176 | ac_cv_header_stdc=yes
|
---|
| 5177 | else
|
---|
| 5178 | echo "$as_me: failed program was:" >&5
|
---|
| 5179 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5180 |
|
---|
[21327] | 5181 | ac_cv_header_stdc=no
|
---|
[16566] | 5182 | fi
|
---|
[21327] | 5183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5184 |
|
---|
| 5185 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5186 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 5187 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5188 | /* confdefs.h. */
|
---|
| 5189 | _ACEOF
|
---|
| 5190 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5191 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5192 | /* end confdefs.h. */
|
---|
| 5193 | #include <string.h>
|
---|
| 5194 |
|
---|
| 5195 | _ACEOF
|
---|
| 5196 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5197 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5198 | :
|
---|
| 5199 | else
|
---|
| 5200 | ac_cv_header_stdc=no
|
---|
| 5201 | fi
|
---|
| 5202 | rm -f conftest*
|
---|
| 5203 |
|
---|
| 5204 | fi
|
---|
| 5205 |
|
---|
| 5206 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5207 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 5208 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5209 | /* confdefs.h. */
|
---|
| 5210 | _ACEOF
|
---|
| 5211 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5212 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5213 | /* end confdefs.h. */
|
---|
| 5214 | #include <stdlib.h>
|
---|
| 5215 |
|
---|
| 5216 | _ACEOF
|
---|
| 5217 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5218 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5219 | :
|
---|
| 5220 | else
|
---|
| 5221 | ac_cv_header_stdc=no
|
---|
| 5222 | fi
|
---|
| 5223 | rm -f conftest*
|
---|
| 5224 |
|
---|
| 5225 | fi
|
---|
| 5226 |
|
---|
| 5227 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5228 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 5229 | if test "$cross_compiling" = yes; then
|
---|
| 5230 | :
|
---|
| 5231 | else
|
---|
| 5232 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5233 | /* confdefs.h. */
|
---|
| 5234 | _ACEOF
|
---|
| 5235 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5236 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5237 | /* end confdefs.h. */
|
---|
| 5238 | #include <ctype.h>
|
---|
| 5239 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5240 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5241 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5242 | #else
|
---|
| 5243 | # define ISLOWER(c) \
|
---|
| 5244 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5245 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5246 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5247 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5248 | #endif
|
---|
| 5249 |
|
---|
| 5250 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5251 | int
|
---|
| 5252 | main ()
|
---|
| 5253 | {
|
---|
| 5254 | int i;
|
---|
| 5255 | for (i = 0; i < 256; i++)
|
---|
| 5256 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5257 | || toupper (i) != TOUPPER (i))
|
---|
[21327] | 5258 | exit(2);
|
---|
| 5259 | exit (0);
|
---|
[16566] | 5260 | }
|
---|
| 5261 | _ACEOF
|
---|
| 5262 | rm -f conftest$ac_exeext
|
---|
[21327] | 5263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5264 | (eval $ac_link) 2>&5
|
---|
[16566] | 5265 | ac_status=$?
|
---|
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 5268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5269 | (eval $ac_try) 2>&5
|
---|
[16566] | 5270 | ac_status=$?
|
---|
| 5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5272 | (exit $ac_status); }; }; then
|
---|
| 5273 | :
|
---|
| 5274 | else
|
---|
| 5275 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5276 | echo "$as_me: failed program was:" >&5
|
---|
| 5277 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5278 |
|
---|
| 5279 | ( exit $ac_status )
|
---|
| 5280 | ac_cv_header_stdc=no
|
---|
| 5281 | fi
|
---|
[21327] | 5282 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5283 | fi
|
---|
| 5284 | fi
|
---|
| 5285 | fi
|
---|
[21327] | 5286 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5287 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16566] | 5288 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5289 |
|
---|
| 5290 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5291 | #define STDC_HEADERS 1
|
---|
| 5292 | _ACEOF
|
---|
| 5293 |
|
---|
| 5294 | fi
|
---|
| 5295 |
|
---|
| 5296 |
|
---|
| 5297 |
|
---|
| 5298 |
|
---|
| 5299 |
|
---|
| 5300 |
|
---|
| 5301 |
|
---|
| 5302 |
|
---|
| 5303 |
|
---|
| 5304 |
|
---|
| 5305 | 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
|
---|
| 5306 | do
|
---|
| 5307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[21327] | 5308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5309 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 5312 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5313 | fi
|
---|
[21327] | 5314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 5316 | else
|
---|
| 5317 | # Is the header compilable?
|
---|
[21327] | 5318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
[16566] | 5320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5321 | /* confdefs.h. */
|
---|
| 5322 | _ACEOF
|
---|
| 5323 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5325 | /* end confdefs.h. */
|
---|
| 5326 | $ac_includes_default
|
---|
| 5327 | #include <$ac_header>
|
---|
| 5328 | _ACEOF
|
---|
| 5329 | rm -f conftest.$ac_objext
|
---|
[21327] | 5330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5331 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 5332 | ac_status=$?
|
---|
| 5333 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5334 | rm -f conftest.er1
|
---|
| 5335 | cat conftest.err >&5
|
---|
| 5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5337 | (exit $ac_status); } &&
|
---|
| 5338 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5339 | || test ! -s conftest.err'
|
---|
| 5340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5341 | (eval $ac_try) 2>&5
|
---|
| 5342 | ac_status=$?
|
---|
| 5343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5344 | (exit $ac_status); }; } &&
|
---|
| 5345 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5347 | (eval $ac_try) 2>&5
|
---|
| 5348 | ac_status=$?
|
---|
| 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5350 | (exit $ac_status); }; }; then
|
---|
[16566] | 5351 | ac_header_compiler=yes
|
---|
| 5352 | else
|
---|
| 5353 | echo "$as_me: failed program was:" >&5
|
---|
| 5354 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5355 |
|
---|
[21327] | 5356 | ac_header_compiler=no
|
---|
[16566] | 5357 | fi
|
---|
[21327] | 5358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5360 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[16566] | 5361 |
|
---|
| 5362 | # Is the header present?
|
---|
[21327] | 5363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
[16566] | 5365 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5366 | /* confdefs.h. */
|
---|
| 5367 | _ACEOF
|
---|
| 5368 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5369 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5370 | /* end confdefs.h. */
|
---|
| 5371 | #include <$ac_header>
|
---|
| 5372 | _ACEOF
|
---|
[21327] | 5373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[16566] | 5375 | ac_status=$?
|
---|
| 5376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5377 | rm -f conftest.er1
|
---|
| 5378 | cat conftest.err >&5
|
---|
| 5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5380 | (exit $ac_status); } >/dev/null; then
|
---|
| 5381 | if test -s conftest.err; then
|
---|
| 5382 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5384 | else
|
---|
| 5385 | ac_cpp_err=
|
---|
| 5386 | fi
|
---|
| 5387 | else
|
---|
| 5388 | ac_cpp_err=yes
|
---|
| 5389 | fi
|
---|
| 5390 | if test -z "$ac_cpp_err"; then
|
---|
[16566] | 5391 | ac_header_preproc=yes
|
---|
| 5392 | else
|
---|
| 5393 | echo "$as_me: failed program was:" >&5
|
---|
| 5394 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5395 |
|
---|
| 5396 | ac_header_preproc=no
|
---|
| 5397 | fi
|
---|
| 5398 | rm -f conftest.err conftest.$ac_ext
|
---|
[21327] | 5399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5400 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[16566] | 5401 |
|
---|
| 5402 | # So? What about this header?
|
---|
| 5403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5404 | yes:no: )
|
---|
| 5405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5409 | ac_header_preproc=yes
|
---|
| 5410 | ;;
|
---|
| 5411 | no:yes:* )
|
---|
| 5412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
[21327] | 5424 | (
|
---|
| 5425 | cat <<\_ASBOX
|
---|
| 5426 | ## ------------------------------------------ ##
|
---|
| 5427 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5428 | ## ------------------------------------------ ##
|
---|
| 5429 | _ASBOX
|
---|
| 5430 | ) |
|
---|
| 5431 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
[16566] | 5432 | ;;
|
---|
| 5433 | esac
|
---|
[21327] | 5434 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[16566] | 5437 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5438 | else
|
---|
| 5439 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5440 | fi
|
---|
[21327] | 5441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[16566] | 5443 |
|
---|
| 5444 | fi
|
---|
| 5445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5446 | cat >>confdefs.h <<_ACEOF
|
---|
| 5447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5448 | _ACEOF
|
---|
| 5449 |
|
---|
| 5450 | fi
|
---|
| 5451 |
|
---|
| 5452 | done
|
---|
| 5453 |
|
---|
| 5454 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5455 | /* confdefs.h. */
|
---|
| 5456 | _ACEOF
|
---|
| 5457 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5458 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5459 | /* end confdefs.h. */
|
---|
| 5460 | #include <stdio.h>
|
---|
| 5461 |
|
---|
| 5462 | _ACEOF
|
---|
| 5463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5464 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5465 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5466 | #define HAVE_FREAD_DECL 1
|
---|
| 5467 | _ACEOF
|
---|
| 5468 |
|
---|
| 5469 | fi
|
---|
| 5470 | rm -f conftest*
|
---|
| 5471 |
|
---|
| 5472 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5473 | /* confdefs.h. */
|
---|
| 5474 | _ACEOF
|
---|
| 5475 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5476 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5477 | /* end confdefs.h. */
|
---|
| 5478 | #include <stdio.h>
|
---|
| 5479 |
|
---|
| 5480 | _ACEOF
|
---|
| 5481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5482 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5483 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5484 | #define HAVE_FGETC_DECL 1
|
---|
| 5485 | _ACEOF
|
---|
| 5486 |
|
---|
| 5487 | fi
|
---|
| 5488 | rm -f conftest*
|
---|
| 5489 |
|
---|
| 5490 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5491 | /* confdefs.h. */
|
---|
| 5492 | _ACEOF
|
---|
| 5493 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5494 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5495 | /* end confdefs.h. */
|
---|
| 5496 | #include <sys/procfs.h>
|
---|
| 5497 |
|
---|
| 5498 | _ACEOF
|
---|
| 5499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5500 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5501 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5502 | #define HAVE_PR_BRKSIZE 1
|
---|
| 5503 | _ACEOF
|
---|
| 5504 |
|
---|
| 5505 | fi
|
---|
| 5506 | rm -f conftest*
|
---|
| 5507 |
|
---|
| 5508 |
|
---|
| 5509 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5510 | # for constant arguments. Useless!
|
---|
[21327] | 5511 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5512 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
[16566] | 5513 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5514 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5515 | else
|
---|
| 5516 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5517 | /* confdefs.h. */
|
---|
| 5518 | _ACEOF
|
---|
| 5519 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5520 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5521 | /* end confdefs.h. */
|
---|
| 5522 | #include <alloca.h>
|
---|
| 5523 | int
|
---|
| 5524 | main ()
|
---|
| 5525 | {
|
---|
| 5526 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5527 | ;
|
---|
| 5528 | return 0;
|
---|
| 5529 | }
|
---|
| 5530 | _ACEOF
|
---|
| 5531 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 5532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5533 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5534 | ac_status=$?
|
---|
| 5535 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5536 | rm -f conftest.er1
|
---|
| 5537 | cat conftest.err >&5
|
---|
| 5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5539 | (exit $ac_status); } &&
|
---|
| 5540 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5541 | || test ! -s conftest.err'
|
---|
| 5542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5543 | (eval $ac_try) 2>&5
|
---|
| 5544 | ac_status=$?
|
---|
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5546 | (exit $ac_status); }; } &&
|
---|
| 5547 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5549 | (eval $ac_try) 2>&5
|
---|
| 5550 | ac_status=$?
|
---|
| 5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5552 | (exit $ac_status); }; }; then
|
---|
[16566] | 5553 | ac_cv_working_alloca_h=yes
|
---|
| 5554 | else
|
---|
| 5555 | echo "$as_me: failed program was:" >&5
|
---|
| 5556 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5557 |
|
---|
[21327] | 5558 | ac_cv_working_alloca_h=no
|
---|
[16566] | 5559 | fi
|
---|
[21327] | 5560 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 5561 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5562 | fi
|
---|
[21327] | 5563 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5564 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
[16566] | 5565 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5566 |
|
---|
| 5567 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5568 | #define HAVE_ALLOCA_H 1
|
---|
| 5569 | _ACEOF
|
---|
| 5570 |
|
---|
| 5571 | fi
|
---|
| 5572 |
|
---|
[21327] | 5573 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5574 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
[16566] | 5575 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5576 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5577 | else
|
---|
| 5578 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5579 | /* confdefs.h. */
|
---|
| 5580 | _ACEOF
|
---|
| 5581 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5582 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5583 | /* end confdefs.h. */
|
---|
| 5584 | #ifdef __GNUC__
|
---|
| 5585 | # define alloca __builtin_alloca
|
---|
| 5586 | #else
|
---|
| 5587 | # ifdef _MSC_VER
|
---|
| 5588 | # include <malloc.h>
|
---|
| 5589 | # define alloca _alloca
|
---|
| 5590 | # else
|
---|
[21327] | 5591 | # if HAVE_ALLOCA_H
|
---|
[16566] | 5592 | # include <alloca.h>
|
---|
| 5593 | # else
|
---|
| 5594 | # ifdef _AIX
|
---|
| 5595 | #pragma alloca
|
---|
| 5596 | # else
|
---|
| 5597 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5598 | char *alloca ();
|
---|
| 5599 | # endif
|
---|
| 5600 | # endif
|
---|
| 5601 | # endif
|
---|
| 5602 | # endif
|
---|
| 5603 | #endif
|
---|
| 5604 |
|
---|
| 5605 | int
|
---|
| 5606 | main ()
|
---|
| 5607 | {
|
---|
| 5608 | char *p = (char *) alloca (1);
|
---|
| 5609 | ;
|
---|
| 5610 | return 0;
|
---|
| 5611 | }
|
---|
| 5612 | _ACEOF
|
---|
| 5613 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 5614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5615 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5616 | ac_status=$?
|
---|
| 5617 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5618 | rm -f conftest.er1
|
---|
| 5619 | cat conftest.err >&5
|
---|
| 5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5621 | (exit $ac_status); } &&
|
---|
| 5622 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5623 | || test ! -s conftest.err'
|
---|
| 5624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5625 | (eval $ac_try) 2>&5
|
---|
| 5626 | ac_status=$?
|
---|
| 5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5628 | (exit $ac_status); }; } &&
|
---|
| 5629 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5631 | (eval $ac_try) 2>&5
|
---|
| 5632 | ac_status=$?
|
---|
| 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5634 | (exit $ac_status); }; }; then
|
---|
[16566] | 5635 | ac_cv_func_alloca_works=yes
|
---|
| 5636 | else
|
---|
| 5637 | echo "$as_me: failed program was:" >&5
|
---|
| 5638 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5639 |
|
---|
[21327] | 5640 | ac_cv_func_alloca_works=no
|
---|
[16566] | 5641 | fi
|
---|
[21327] | 5642 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 5643 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5644 | fi
|
---|
[21327] | 5645 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5646 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[16566] | 5647 |
|
---|
| 5648 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5649 |
|
---|
| 5650 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5651 | #define HAVE_ALLOCA 1
|
---|
| 5652 | _ACEOF
|
---|
| 5653 |
|
---|
| 5654 | else
|
---|
| 5655 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5656 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5657 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5658 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5659 |
|
---|
[21327] | 5660 | ALLOCA=alloca.$ac_objext
|
---|
[16566] | 5661 |
|
---|
| 5662 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5663 | #define C_ALLOCA 1
|
---|
| 5664 | _ACEOF
|
---|
| 5665 |
|
---|
| 5666 |
|
---|
[21327] | 5667 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5668 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
[16566] | 5669 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5670 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5671 | else
|
---|
| 5672 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5673 | /* confdefs.h. */
|
---|
| 5674 | _ACEOF
|
---|
| 5675 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5676 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5677 | /* end confdefs.h. */
|
---|
[21327] | 5678 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
[16566] | 5679 | webecray
|
---|
| 5680 | #else
|
---|
| 5681 | wenotbecray
|
---|
| 5682 | #endif
|
---|
| 5683 |
|
---|
| 5684 | _ACEOF
|
---|
| 5685 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5686 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
| 5687 | ac_cv_os_cray=yes
|
---|
| 5688 | else
|
---|
| 5689 | ac_cv_os_cray=no
|
---|
| 5690 | fi
|
---|
| 5691 | rm -f conftest*
|
---|
| 5692 |
|
---|
| 5693 | fi
|
---|
[21327] | 5694 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5695 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[16566] | 5696 | if test $ac_cv_os_cray = yes; then
|
---|
| 5697 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 5699 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5701 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 5702 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5703 | else
|
---|
| 5704 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5705 | /* confdefs.h. */
|
---|
| 5706 | _ACEOF
|
---|
| 5707 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5708 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5709 | /* end confdefs.h. */
|
---|
| 5710 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5711 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5712 | #define $ac_func innocuous_$ac_func
|
---|
| 5713 |
|
---|
| 5714 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 5715 | which can conflict with char $ac_func (); below.
|
---|
| 5716 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5717 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5718 |
|
---|
| 5719 | #ifdef __STDC__
|
---|
| 5720 | # include <limits.h>
|
---|
| 5721 | #else
|
---|
| 5722 | # include <assert.h>
|
---|
| 5723 | #endif
|
---|
| 5724 |
|
---|
| 5725 | #undef $ac_func
|
---|
| 5726 |
|
---|
[21327] | 5727 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 5728 | #ifdef __cplusplus
|
---|
| 5729 | extern "C"
|
---|
[21327] | 5730 | {
|
---|
[16566] | 5731 | #endif
|
---|
[21327] | 5732 | /* We use char because int might match the return type of a gcc2
|
---|
| 5733 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 5734 | char $ac_func ();
|
---|
| 5735 | /* The GNU C library defines this for functions which it implements
|
---|
| 5736 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5737 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 5738 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 5739 | choke me
|
---|
[21327] | 5740 | #else
|
---|
| 5741 | char (*f) () = $ac_func;
|
---|
[16566] | 5742 | #endif
|
---|
[21327] | 5743 | #ifdef __cplusplus
|
---|
| 5744 | }
|
---|
| 5745 | #endif
|
---|
[16566] | 5746 |
|
---|
| 5747 | int
|
---|
| 5748 | main ()
|
---|
| 5749 | {
|
---|
[21327] | 5750 | return f != $ac_func;
|
---|
[16566] | 5751 | ;
|
---|
| 5752 | return 0;
|
---|
| 5753 | }
|
---|
| 5754 | _ACEOF
|
---|
| 5755 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 5756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5757 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 5758 | ac_status=$?
|
---|
| 5759 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5760 | rm -f conftest.er1
|
---|
| 5761 | cat conftest.err >&5
|
---|
| 5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5763 | (exit $ac_status); } &&
|
---|
| 5764 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5765 | || test ! -s conftest.err'
|
---|
| 5766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5767 | (eval $ac_try) 2>&5
|
---|
| 5768 | ac_status=$?
|
---|
| 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5770 | (exit $ac_status); }; } &&
|
---|
| 5771 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5773 | (eval $ac_try) 2>&5
|
---|
| 5774 | ac_status=$?
|
---|
| 5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5776 | (exit $ac_status); }; }; then
|
---|
[16566] | 5777 | eval "$as_ac_var=yes"
|
---|
| 5778 | else
|
---|
| 5779 | echo "$as_me: failed program was:" >&5
|
---|
| 5780 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5781 |
|
---|
[21327] | 5782 | eval "$as_ac_var=no"
|
---|
[16566] | 5783 | fi
|
---|
[21327] | 5784 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 5785 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5786 | fi
|
---|
[21327] | 5787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5788 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 5789 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5790 |
|
---|
| 5791 | cat >>confdefs.h <<_ACEOF
|
---|
| 5792 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 5793 | _ACEOF
|
---|
| 5794 |
|
---|
| 5795 | break
|
---|
| 5796 | fi
|
---|
| 5797 |
|
---|
| 5798 | done
|
---|
| 5799 | fi
|
---|
| 5800 |
|
---|
[21327] | 5801 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5802 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
[16566] | 5803 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5804 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5805 | else
|
---|
| 5806 | if test "$cross_compiling" = yes; then
|
---|
| 5807 | ac_cv_c_stack_direction=0
|
---|
| 5808 | else
|
---|
| 5809 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5810 | /* confdefs.h. */
|
---|
| 5811 | _ACEOF
|
---|
| 5812 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5813 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5814 | /* end confdefs.h. */
|
---|
| 5815 | int
|
---|
| 5816 | find_stack_direction ()
|
---|
| 5817 | {
|
---|
| 5818 | static char *addr = 0;
|
---|
| 5819 | auto char dummy;
|
---|
| 5820 | if (addr == 0)
|
---|
| 5821 | {
|
---|
| 5822 | addr = &dummy;
|
---|
| 5823 | return find_stack_direction ();
|
---|
| 5824 | }
|
---|
| 5825 | else
|
---|
| 5826 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5827 | }
|
---|
| 5828 |
|
---|
| 5829 | int
|
---|
| 5830 | main ()
|
---|
| 5831 | {
|
---|
[21327] | 5832 | exit (find_stack_direction () < 0);
|
---|
[16566] | 5833 | }
|
---|
| 5834 | _ACEOF
|
---|
| 5835 | rm -f conftest$ac_exeext
|
---|
[21327] | 5836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5837 | (eval $ac_link) 2>&5
|
---|
[16566] | 5838 | ac_status=$?
|
---|
| 5839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5840 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 5841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5842 | (eval $ac_try) 2>&5
|
---|
[16566] | 5843 | ac_status=$?
|
---|
| 5844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5845 | (exit $ac_status); }; }; then
|
---|
| 5846 | ac_cv_c_stack_direction=1
|
---|
| 5847 | else
|
---|
| 5848 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5849 | echo "$as_me: failed program was:" >&5
|
---|
| 5850 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5851 |
|
---|
| 5852 | ( exit $ac_status )
|
---|
| 5853 | ac_cv_c_stack_direction=-1
|
---|
| 5854 | fi
|
---|
[21327] | 5855 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5856 | fi
|
---|
| 5857 | fi
|
---|
[21327] | 5858 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5859 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[16566] | 5860 |
|
---|
| 5861 | cat >>confdefs.h <<_ACEOF
|
---|
| 5862 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 5863 | _ACEOF
|
---|
| 5864 |
|
---|
| 5865 |
|
---|
| 5866 | fi
|
---|
| 5867 |
|
---|
| 5868 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[21327] | 5869 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5870 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
[16566] | 5871 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5872 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5873 | else
|
---|
| 5874 | ac_pattern="Autoconf.*'x'"
|
---|
| 5875 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5876 | /* confdefs.h. */
|
---|
| 5877 | _ACEOF
|
---|
| 5878 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5879 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5880 | /* end confdefs.h. */
|
---|
| 5881 | #include <sgtty.h>
|
---|
| 5882 | Autoconf TIOCGETP
|
---|
| 5883 | _ACEOF
|
---|
| 5884 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5885 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 5886 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5887 | else
|
---|
| 5888 | ac_cv_prog_gcc_traditional=no
|
---|
| 5889 | fi
|
---|
| 5890 | rm -f conftest*
|
---|
| 5891 |
|
---|
| 5892 |
|
---|
| 5893 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
| 5894 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5895 | /* confdefs.h. */
|
---|
| 5896 | _ACEOF
|
---|
| 5897 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5898 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5899 | /* end confdefs.h. */
|
---|
| 5900 | #include <termio.h>
|
---|
| 5901 | Autoconf TCGETA
|
---|
| 5902 | _ACEOF
|
---|
| 5903 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5904 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 5905 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5906 | fi
|
---|
| 5907 | rm -f conftest*
|
---|
| 5908 |
|
---|
| 5909 | fi
|
---|
| 5910 | fi
|
---|
[21327] | 5911 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5912 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[16566] | 5913 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5914 | CC="$CC -traditional"
|
---|
| 5915 | fi
|
---|
| 5916 | fi
|
---|
| 5917 |
|
---|
[21327] | 5918 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5919 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
[16566] | 5920 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5921 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5922 | else
|
---|
| 5923 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5924 | /* confdefs.h. */
|
---|
| 5925 | _ACEOF
|
---|
| 5926 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5927 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5928 | /* end confdefs.h. */
|
---|
| 5929 | #include <sys/types.h>
|
---|
| 5930 | #include <signal.h>
|
---|
[21327] | 5931 | #ifdef signal
|
---|
| 5932 | # undef signal
|
---|
| 5933 | #endif
|
---|
| 5934 | #ifdef __cplusplus
|
---|
| 5935 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5936 | #else
|
---|
| 5937 | void (*signal ()) ();
|
---|
| 5938 | #endif
|
---|
[16566] | 5939 |
|
---|
| 5940 | int
|
---|
| 5941 | main ()
|
---|
| 5942 | {
|
---|
[21327] | 5943 | int i;
|
---|
[16566] | 5944 | ;
|
---|
| 5945 | return 0;
|
---|
| 5946 | }
|
---|
| 5947 | _ACEOF
|
---|
| 5948 | rm -f conftest.$ac_objext
|
---|
[21327] | 5949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5950 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 5951 | ac_status=$?
|
---|
| 5952 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5953 | rm -f conftest.er1
|
---|
| 5954 | cat conftest.err >&5
|
---|
| 5955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 5956 | (exit $ac_status); } &&
|
---|
| 5957 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5958 | || test ! -s conftest.err'
|
---|
| 5959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5960 | (eval $ac_try) 2>&5
|
---|
| 5961 | ac_status=$?
|
---|
| 5962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5963 | (exit $ac_status); }; } &&
|
---|
| 5964 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5966 | (eval $ac_try) 2>&5
|
---|
| 5967 | ac_status=$?
|
---|
| 5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5969 | (exit $ac_status); }; }; then
|
---|
| 5970 | ac_cv_type_signal=void
|
---|
[16566] | 5971 | else
|
---|
| 5972 | echo "$as_me: failed program was:" >&5
|
---|
| 5973 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5974 |
|
---|
[21327] | 5975 | ac_cv_type_signal=int
|
---|
[16566] | 5976 | fi
|
---|
[21327] | 5977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 5978 | fi
|
---|
[21327] | 5979 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5980 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[16566] | 5981 |
|
---|
| 5982 | cat >>confdefs.h <<_ACEOF
|
---|
| 5983 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
| 5984 | _ACEOF
|
---|
| 5985 |
|
---|
| 5986 |
|
---|
| 5987 |
|
---|
| 5988 | for ac_func in vprintf
|
---|
| 5989 | do
|
---|
| 5990 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 5991 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5992 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5993 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 5994 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5995 | else
|
---|
| 5996 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5997 | /* confdefs.h. */
|
---|
| 5998 | _ACEOF
|
---|
| 5999 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6000 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6001 | /* end confdefs.h. */
|
---|
| 6002 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6003 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6004 | #define $ac_func innocuous_$ac_func
|
---|
| 6005 |
|
---|
| 6006 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6007 | which can conflict with char $ac_func (); below.
|
---|
| 6008 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6009 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6010 |
|
---|
| 6011 | #ifdef __STDC__
|
---|
| 6012 | # include <limits.h>
|
---|
| 6013 | #else
|
---|
| 6014 | # include <assert.h>
|
---|
| 6015 | #endif
|
---|
| 6016 |
|
---|
| 6017 | #undef $ac_func
|
---|
| 6018 |
|
---|
[21327] | 6019 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6020 | #ifdef __cplusplus
|
---|
| 6021 | extern "C"
|
---|
[21327] | 6022 | {
|
---|
[16566] | 6023 | #endif
|
---|
[21327] | 6024 | /* We use char because int might match the return type of a gcc2
|
---|
| 6025 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6026 | char $ac_func ();
|
---|
| 6027 | /* The GNU C library defines this for functions which it implements
|
---|
| 6028 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6029 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6031 | choke me
|
---|
[21327] | 6032 | #else
|
---|
| 6033 | char (*f) () = $ac_func;
|
---|
[16566] | 6034 | #endif
|
---|
[21327] | 6035 | #ifdef __cplusplus
|
---|
| 6036 | }
|
---|
| 6037 | #endif
|
---|
[16566] | 6038 |
|
---|
| 6039 | int
|
---|
| 6040 | main ()
|
---|
| 6041 | {
|
---|
[21327] | 6042 | return f != $ac_func;
|
---|
[16566] | 6043 | ;
|
---|
| 6044 | return 0;
|
---|
| 6045 | }
|
---|
| 6046 | _ACEOF
|
---|
| 6047 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6049 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6050 | ac_status=$?
|
---|
| 6051 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6052 | rm -f conftest.er1
|
---|
| 6053 | cat conftest.err >&5
|
---|
| 6054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6055 | (exit $ac_status); } &&
|
---|
| 6056 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6057 | || test ! -s conftest.err'
|
---|
| 6058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6059 | (eval $ac_try) 2>&5
|
---|
| 6060 | ac_status=$?
|
---|
| 6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6062 | (exit $ac_status); }; } &&
|
---|
| 6063 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6065 | (eval $ac_try) 2>&5
|
---|
| 6066 | ac_status=$?
|
---|
| 6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6068 | (exit $ac_status); }; }; then
|
---|
[16566] | 6069 | eval "$as_ac_var=yes"
|
---|
| 6070 | else
|
---|
| 6071 | echo "$as_me: failed program was:" >&5
|
---|
| 6072 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6073 |
|
---|
[21327] | 6074 | eval "$as_ac_var=no"
|
---|
[16566] | 6075 | fi
|
---|
[21327] | 6076 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6077 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6078 | fi
|
---|
[21327] | 6079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6080 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6081 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6082 | cat >>confdefs.h <<_ACEOF
|
---|
| 6083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6084 | _ACEOF
|
---|
| 6085 |
|
---|
[21327] | 6086 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6087 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
[16566] | 6088 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6089 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6090 | else
|
---|
| 6091 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6092 | /* confdefs.h. */
|
---|
| 6093 | _ACEOF
|
---|
| 6094 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6095 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6096 | /* end confdefs.h. */
|
---|
| 6097 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6098 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6099 | #define _doprnt innocuous__doprnt
|
---|
| 6100 |
|
---|
| 6101 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6102 | which can conflict with char _doprnt (); below.
|
---|
| 6103 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6104 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6105 |
|
---|
| 6106 | #ifdef __STDC__
|
---|
| 6107 | # include <limits.h>
|
---|
| 6108 | #else
|
---|
| 6109 | # include <assert.h>
|
---|
| 6110 | #endif
|
---|
| 6111 |
|
---|
| 6112 | #undef _doprnt
|
---|
| 6113 |
|
---|
[21327] | 6114 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6115 | #ifdef __cplusplus
|
---|
| 6116 | extern "C"
|
---|
[21327] | 6117 | {
|
---|
[16566] | 6118 | #endif
|
---|
[21327] | 6119 | /* We use char because int might match the return type of a gcc2
|
---|
| 6120 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6121 | char _doprnt ();
|
---|
| 6122 | /* The GNU C library defines this for functions which it implements
|
---|
| 6123 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6124 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6125 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
[16566] | 6126 | choke me
|
---|
[21327] | 6127 | #else
|
---|
| 6128 | char (*f) () = _doprnt;
|
---|
[16566] | 6129 | #endif
|
---|
[21327] | 6130 | #ifdef __cplusplus
|
---|
| 6131 | }
|
---|
| 6132 | #endif
|
---|
[16566] | 6133 |
|
---|
| 6134 | int
|
---|
| 6135 | main ()
|
---|
| 6136 | {
|
---|
[21327] | 6137 | return f != _doprnt;
|
---|
[16566] | 6138 | ;
|
---|
| 6139 | return 0;
|
---|
| 6140 | }
|
---|
| 6141 | _ACEOF
|
---|
| 6142 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6144 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6145 | ac_status=$?
|
---|
| 6146 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6147 | rm -f conftest.er1
|
---|
| 6148 | cat conftest.err >&5
|
---|
| 6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6150 | (exit $ac_status); } &&
|
---|
| 6151 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6152 | || test ! -s conftest.err'
|
---|
| 6153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6154 | (eval $ac_try) 2>&5
|
---|
| 6155 | ac_status=$?
|
---|
| 6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6157 | (exit $ac_status); }; } &&
|
---|
| 6158 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6160 | (eval $ac_try) 2>&5
|
---|
| 6161 | ac_status=$?
|
---|
| 6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6163 | (exit $ac_status); }; }; then
|
---|
[16566] | 6164 | ac_cv_func__doprnt=yes
|
---|
| 6165 | else
|
---|
| 6166 | echo "$as_me: failed program was:" >&5
|
---|
| 6167 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6168 |
|
---|
[21327] | 6169 | ac_cv_func__doprnt=no
|
---|
[16566] | 6170 | fi
|
---|
[21327] | 6171 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6172 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6173 | fi
|
---|
[21327] | 6174 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6175 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
[16566] | 6176 | if test $ac_cv_func__doprnt = yes; then
|
---|
| 6177 |
|
---|
| 6178 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6179 | #define HAVE_DOPRNT 1
|
---|
| 6180 | _ACEOF
|
---|
| 6181 |
|
---|
| 6182 | fi
|
---|
| 6183 |
|
---|
| 6184 | fi
|
---|
| 6185 | done
|
---|
| 6186 |
|
---|
| 6187 |
|
---|
| 6188 |
|
---|
| 6189 |
|
---|
| 6190 |
|
---|
| 6191 |
|
---|
| 6192 |
|
---|
| 6193 |
|
---|
| 6194 |
|
---|
| 6195 |
|
---|
| 6196 |
|
---|
| 6197 |
|
---|
| 6198 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 6199 | do
|
---|
| 6200 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 6201 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6202 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6203 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 6204 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6205 | else
|
---|
| 6206 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6207 | /* confdefs.h. */
|
---|
| 6208 | _ACEOF
|
---|
| 6209 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6210 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6211 | /* end confdefs.h. */
|
---|
| 6212 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6213 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6214 | #define $ac_func innocuous_$ac_func
|
---|
| 6215 |
|
---|
| 6216 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6217 | which can conflict with char $ac_func (); below.
|
---|
| 6218 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6219 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6220 |
|
---|
| 6221 | #ifdef __STDC__
|
---|
| 6222 | # include <limits.h>
|
---|
| 6223 | #else
|
---|
| 6224 | # include <assert.h>
|
---|
| 6225 | #endif
|
---|
| 6226 |
|
---|
| 6227 | #undef $ac_func
|
---|
| 6228 |
|
---|
[21327] | 6229 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6230 | #ifdef __cplusplus
|
---|
| 6231 | extern "C"
|
---|
[21327] | 6232 | {
|
---|
[16566] | 6233 | #endif
|
---|
[21327] | 6234 | /* We use char because int might match the return type of a gcc2
|
---|
| 6235 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6236 | char $ac_func ();
|
---|
| 6237 | /* The GNU C library defines this for functions which it implements
|
---|
| 6238 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6239 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6240 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6241 | choke me
|
---|
[21327] | 6242 | #else
|
---|
| 6243 | char (*f) () = $ac_func;
|
---|
[16566] | 6244 | #endif
|
---|
[21327] | 6245 | #ifdef __cplusplus
|
---|
| 6246 | }
|
---|
| 6247 | #endif
|
---|
[16566] | 6248 |
|
---|
| 6249 | int
|
---|
| 6250 | main ()
|
---|
| 6251 | {
|
---|
[21327] | 6252 | return f != $ac_func;
|
---|
[16566] | 6253 | ;
|
---|
| 6254 | return 0;
|
---|
| 6255 | }
|
---|
| 6256 | _ACEOF
|
---|
| 6257 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6259 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6260 | ac_status=$?
|
---|
| 6261 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6262 | rm -f conftest.er1
|
---|
| 6263 | cat conftest.err >&5
|
---|
| 6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6265 | (exit $ac_status); } &&
|
---|
| 6266 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6267 | || test ! -s conftest.err'
|
---|
| 6268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6269 | (eval $ac_try) 2>&5
|
---|
| 6270 | ac_status=$?
|
---|
| 6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6272 | (exit $ac_status); }; } &&
|
---|
| 6273 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6275 | (eval $ac_try) 2>&5
|
---|
| 6276 | ac_status=$?
|
---|
| 6277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6278 | (exit $ac_status); }; }; then
|
---|
[16566] | 6279 | eval "$as_ac_var=yes"
|
---|
| 6280 | else
|
---|
| 6281 | echo "$as_me: failed program was:" >&5
|
---|
| 6282 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6283 |
|
---|
[21327] | 6284 | eval "$as_ac_var=no"
|
---|
[16566] | 6285 | fi
|
---|
[21327] | 6286 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6287 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6288 | fi
|
---|
[21327] | 6289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6290 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6291 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6292 | cat >>confdefs.h <<_ACEOF
|
---|
| 6293 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6294 | _ACEOF
|
---|
| 6295 |
|
---|
| 6296 | fi
|
---|
| 6297 | done
|
---|
| 6298 |
|
---|
| 6299 |
|
---|
| 6300 |
|
---|
| 6301 |
|
---|
| 6302 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6303 | do
|
---|
| 6304 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 6305 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6306 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6307 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 6308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6309 | else
|
---|
| 6310 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6311 | /* confdefs.h. */
|
---|
| 6312 | _ACEOF
|
---|
| 6313 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6314 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6315 | /* end confdefs.h. */
|
---|
| 6316 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6318 | #define $ac_func innocuous_$ac_func
|
---|
| 6319 |
|
---|
| 6320 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6321 | which can conflict with char $ac_func (); below.
|
---|
| 6322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6323 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6324 |
|
---|
| 6325 | #ifdef __STDC__
|
---|
| 6326 | # include <limits.h>
|
---|
| 6327 | #else
|
---|
| 6328 | # include <assert.h>
|
---|
| 6329 | #endif
|
---|
| 6330 |
|
---|
| 6331 | #undef $ac_func
|
---|
| 6332 |
|
---|
[21327] | 6333 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6334 | #ifdef __cplusplus
|
---|
| 6335 | extern "C"
|
---|
[21327] | 6336 | {
|
---|
[16566] | 6337 | #endif
|
---|
[21327] | 6338 | /* We use char because int might match the return type of a gcc2
|
---|
| 6339 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6340 | char $ac_func ();
|
---|
| 6341 | /* The GNU C library defines this for functions which it implements
|
---|
| 6342 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6343 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6344 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6345 | choke me
|
---|
[21327] | 6346 | #else
|
---|
| 6347 | char (*f) () = $ac_func;
|
---|
[16566] | 6348 | #endif
|
---|
[21327] | 6349 | #ifdef __cplusplus
|
---|
| 6350 | }
|
---|
| 6351 | #endif
|
---|
[16566] | 6352 |
|
---|
| 6353 | int
|
---|
| 6354 | main ()
|
---|
| 6355 | {
|
---|
[21327] | 6356 | return f != $ac_func;
|
---|
[16566] | 6357 | ;
|
---|
| 6358 | return 0;
|
---|
| 6359 | }
|
---|
| 6360 | _ACEOF
|
---|
| 6361 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6363 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6364 | ac_status=$?
|
---|
| 6365 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6366 | rm -f conftest.er1
|
---|
| 6367 | cat conftest.err >&5
|
---|
| 6368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6369 | (exit $ac_status); } &&
|
---|
| 6370 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6371 | || test ! -s conftest.err'
|
---|
| 6372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6373 | (eval $ac_try) 2>&5
|
---|
| 6374 | ac_status=$?
|
---|
| 6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6376 | (exit $ac_status); }; } &&
|
---|
| 6377 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6379 | (eval $ac_try) 2>&5
|
---|
| 6380 | ac_status=$?
|
---|
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6382 | (exit $ac_status); }; }; then
|
---|
[16566] | 6383 | eval "$as_ac_var=yes"
|
---|
| 6384 | else
|
---|
| 6385 | echo "$as_me: failed program was:" >&5
|
---|
| 6386 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6387 |
|
---|
[21327] | 6388 | eval "$as_ac_var=no"
|
---|
[16566] | 6389 | fi
|
---|
[21327] | 6390 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6391 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6392 | fi
|
---|
[21327] | 6393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6394 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6395 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6396 | cat >>confdefs.h <<_ACEOF
|
---|
| 6397 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6398 | _ACEOF
|
---|
| 6399 |
|
---|
| 6400 | else
|
---|
[21327] | 6401 | case $LIBOBJS in
|
---|
| 6402 | "$ac_func.$ac_objext" | \
|
---|
| 6403 | *" $ac_func.$ac_objext" | \
|
---|
| 6404 | "$ac_func.$ac_objext "* | \
|
---|
[16566] | 6405 | *" $ac_func.$ac_objext "* ) ;;
|
---|
[21327] | 6406 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
[16566] | 6407 | esac
|
---|
| 6408 |
|
---|
| 6409 | fi
|
---|
| 6410 | done
|
---|
| 6411 |
|
---|
| 6412 |
|
---|
| 6413 |
|
---|
[21327] | 6414 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6415 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
[16566] | 6416 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6417 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6418 | else
|
---|
| 6419 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6420 | /* confdefs.h. */
|
---|
| 6421 | _ACEOF
|
---|
| 6422 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6423 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6424 | /* end confdefs.h. */
|
---|
| 6425 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6426 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6427 | #define textdomain innocuous_textdomain
|
---|
| 6428 |
|
---|
| 6429 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6430 | which can conflict with char textdomain (); below.
|
---|
| 6431 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6432 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6433 |
|
---|
| 6434 | #ifdef __STDC__
|
---|
| 6435 | # include <limits.h>
|
---|
| 6436 | #else
|
---|
| 6437 | # include <assert.h>
|
---|
| 6438 | #endif
|
---|
| 6439 |
|
---|
| 6440 | #undef textdomain
|
---|
| 6441 |
|
---|
[21327] | 6442 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6443 | #ifdef __cplusplus
|
---|
| 6444 | extern "C"
|
---|
[21327] | 6445 | {
|
---|
[16566] | 6446 | #endif
|
---|
[21327] | 6447 | /* We use char because int might match the return type of a gcc2
|
---|
| 6448 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6449 | char textdomain ();
|
---|
| 6450 | /* The GNU C library defines this for functions which it implements
|
---|
| 6451 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6452 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6453 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[16566] | 6454 | choke me
|
---|
[21327] | 6455 | #else
|
---|
| 6456 | char (*f) () = textdomain;
|
---|
[16566] | 6457 | #endif
|
---|
[21327] | 6458 | #ifdef __cplusplus
|
---|
| 6459 | }
|
---|
| 6460 | #endif
|
---|
[16566] | 6461 |
|
---|
| 6462 | int
|
---|
| 6463 | main ()
|
---|
| 6464 | {
|
---|
[21327] | 6465 | return f != textdomain;
|
---|
[16566] | 6466 | ;
|
---|
| 6467 | return 0;
|
---|
| 6468 | }
|
---|
| 6469 | _ACEOF
|
---|
| 6470 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6472 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6473 | ac_status=$?
|
---|
| 6474 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6475 | rm -f conftest.er1
|
---|
| 6476 | cat conftest.err >&5
|
---|
| 6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6478 | (exit $ac_status); } &&
|
---|
| 6479 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6480 | || test ! -s conftest.err'
|
---|
| 6481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6482 | (eval $ac_try) 2>&5
|
---|
| 6483 | ac_status=$?
|
---|
| 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6485 | (exit $ac_status); }; } &&
|
---|
| 6486 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6488 | (eval $ac_try) 2>&5
|
---|
| 6489 | ac_status=$?
|
---|
| 6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6491 | (exit $ac_status); }; }; then
|
---|
[16566] | 6492 | ac_cv_func_textdomain=yes
|
---|
| 6493 | else
|
---|
| 6494 | echo "$as_me: failed program was:" >&5
|
---|
| 6495 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6496 |
|
---|
[21327] | 6497 | ac_cv_func_textdomain=no
|
---|
[16566] | 6498 | fi
|
---|
[21327] | 6499 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6500 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6501 | fi
|
---|
[21327] | 6502 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6503 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
[16566] | 6504 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6505 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6506 | #define ENABLE_NLS 1
|
---|
| 6507 | _ACEOF
|
---|
| 6508 |
|
---|
| 6509 | fi
|
---|
| 6510 |
|
---|
| 6511 |
|
---|
| 6512 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6513 | # ---------------------------------------------------------------------------
|
---|
[21327] | 6514 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6515 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[16566] | 6516 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[21327] | 6517 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6518 | echo "${ECHO_T}yes" >&6
|
---|
| 6519 | case $LIBOBJS in
|
---|
| 6520 | "gmalloc.$ac_objext" | \
|
---|
| 6521 | *" gmalloc.$ac_objext" | \
|
---|
| 6522 | "gmalloc.$ac_objext "* | \
|
---|
[16566] | 6523 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[21327] | 6524 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
[16566] | 6525 | esac
|
---|
| 6526 |
|
---|
| 6527 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6528 | #define HAVE_VALLOC 1
|
---|
| 6529 | _ACEOF
|
---|
| 6530 |
|
---|
| 6531 | else
|
---|
[21327] | 6532 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6533 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 6534 |
|
---|
| 6535 | for ac_func in valloc
|
---|
| 6536 | do
|
---|
| 6537 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[21327] | 6538 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6539 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6540 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[16566] | 6541 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6542 | else
|
---|
| 6543 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6544 | /* confdefs.h. */
|
---|
| 6545 | _ACEOF
|
---|
| 6546 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6547 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6548 | /* end confdefs.h. */
|
---|
| 6549 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6551 | #define $ac_func innocuous_$ac_func
|
---|
| 6552 |
|
---|
| 6553 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6554 | which can conflict with char $ac_func (); below.
|
---|
| 6555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6556 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6557 |
|
---|
| 6558 | #ifdef __STDC__
|
---|
| 6559 | # include <limits.h>
|
---|
| 6560 | #else
|
---|
| 6561 | # include <assert.h>
|
---|
| 6562 | #endif
|
---|
| 6563 |
|
---|
| 6564 | #undef $ac_func
|
---|
| 6565 |
|
---|
[21327] | 6566 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6567 | #ifdef __cplusplus
|
---|
| 6568 | extern "C"
|
---|
[21327] | 6569 | {
|
---|
[16566] | 6570 | #endif
|
---|
[21327] | 6571 | /* We use char because int might match the return type of a gcc2
|
---|
| 6572 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6573 | char $ac_func ();
|
---|
| 6574 | /* The GNU C library defines this for functions which it implements
|
---|
| 6575 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6576 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6577 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[16566] | 6578 | choke me
|
---|
[21327] | 6579 | #else
|
---|
| 6580 | char (*f) () = $ac_func;
|
---|
[16566] | 6581 | #endif
|
---|
[21327] | 6582 | #ifdef __cplusplus
|
---|
| 6583 | }
|
---|
| 6584 | #endif
|
---|
[16566] | 6585 |
|
---|
| 6586 | int
|
---|
| 6587 | main ()
|
---|
| 6588 | {
|
---|
[21327] | 6589 | return f != $ac_func;
|
---|
[16566] | 6590 | ;
|
---|
| 6591 | return 0;
|
---|
| 6592 | }
|
---|
| 6593 | _ACEOF
|
---|
| 6594 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6596 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6597 | ac_status=$?
|
---|
| 6598 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6599 | rm -f conftest.er1
|
---|
| 6600 | cat conftest.err >&5
|
---|
| 6601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6602 | (exit $ac_status); } &&
|
---|
| 6603 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6604 | || test ! -s conftest.err'
|
---|
| 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6606 | (eval $ac_try) 2>&5
|
---|
| 6607 | ac_status=$?
|
---|
| 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6609 | (exit $ac_status); }; } &&
|
---|
| 6610 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6612 | (eval $ac_try) 2>&5
|
---|
| 6613 | ac_status=$?
|
---|
| 6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6615 | (exit $ac_status); }; }; then
|
---|
[16566] | 6616 | eval "$as_ac_var=yes"
|
---|
| 6617 | else
|
---|
| 6618 | echo "$as_me: failed program was:" >&5
|
---|
| 6619 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6620 |
|
---|
[21327] | 6621 | eval "$as_ac_var=no"
|
---|
[16566] | 6622 | fi
|
---|
[21327] | 6623 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6624 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6625 | fi
|
---|
[21327] | 6626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6627 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[16566] | 6628 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6629 | cat >>confdefs.h <<_ACEOF
|
---|
| 6630 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6631 | _ACEOF
|
---|
| 6632 |
|
---|
| 6633 | fi
|
---|
| 6634 | done
|
---|
| 6635 |
|
---|
| 6636 | fi
|
---|
| 6637 |
|
---|
| 6638 | # we cannot generate static libraries under Darwin
|
---|
[21327] | 6639 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6640 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[16566] | 6641 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[21327] | 6642 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6643 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 6644 | STATIC=""
|
---|
| 6645 | else
|
---|
[21327] | 6646 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6647 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 6648 | STATIC="-static "
|
---|
| 6649 | fi
|
---|
| 6650 |
|
---|
| 6651 |
|
---|
[21327] | 6652 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6653 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
[16566] | 6654 |
|
---|
[21327] | 6655 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
[16566] | 6656 | if test "${with_dmalloc+set}" = set; then
|
---|
[21327] | 6657 | withval="$with_dmalloc"
|
---|
| 6658 | if test "$withval" = yes; then
|
---|
| 6659 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6660 | echo "${ECHO_T}yes" >&6
|
---|
[16566] | 6661 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6662 | #define WITH_DMALLOC 1
|
---|
| 6663 | _ACEOF
|
---|
| 6664 |
|
---|
| 6665 | LIBS="$LIBS -ldmalloc"
|
---|
| 6666 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6667 | else
|
---|
[21327] | 6668 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6669 | echo "${ECHO_T}no" >&6
|
---|
[16566] | 6670 | fi
|
---|
| 6671 | else
|
---|
[21327] | 6672 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6673 | echo "${ECHO_T}no" >&6
|
---|
| 6674 | fi;
|
---|
[16566] | 6675 |
|
---|
[21327] | 6676 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6677 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[16566] | 6678 |
|
---|
[21327] | 6679 | # Check whether --with-regex or --without-regex was given.
|
---|
[16566] | 6680 | if test "${with_regex+set}" = set; then
|
---|
[21327] | 6681 | withval="$with_regex"
|
---|
| 6682 | if test "$withval" = yes; then
|
---|
[16566] | 6683 | ac_with_regex=1
|
---|
[21327] | 6684 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6685 | echo "${ECHO_T}regex" >&6
|
---|
[16566] | 6686 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6687 | #define WITH_REGEX 1
|
---|
| 6688 | _ACEOF
|
---|
| 6689 |
|
---|
[21327] | 6690 | case $LIBOBJS in
|
---|
| 6691 | "regex.$ac_objext" | \
|
---|
| 6692 | *" regex.$ac_objext" | \
|
---|
| 6693 | "regex.$ac_objext "* | \
|
---|
[16566] | 6694 | *" regex.$ac_objext "* ) ;;
|
---|
[21327] | 6695 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
[16566] | 6696 | esac
|
---|
| 6697 |
|
---|
| 6698 | fi
|
---|
[21327] | 6699 | fi;
|
---|
[16566] | 6700 | if test -z "$ac_with_regex"; then
|
---|
[21327] | 6701 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6702 | echo "${ECHO_T}rx" >&6
|
---|
| 6703 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6704 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
[16566] | 6705 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6706 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6707 | else
|
---|
| 6708 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6709 | /* confdefs.h. */
|
---|
| 6710 | _ACEOF
|
---|
| 6711 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6712 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6713 | /* end confdefs.h. */
|
---|
| 6714 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6715 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6716 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6717 |
|
---|
| 6718 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6719 | which can conflict with char re_rx_search (); below.
|
---|
| 6720 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6721 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6722 |
|
---|
| 6723 | #ifdef __STDC__
|
---|
| 6724 | # include <limits.h>
|
---|
| 6725 | #else
|
---|
| 6726 | # include <assert.h>
|
---|
| 6727 | #endif
|
---|
| 6728 |
|
---|
| 6729 | #undef re_rx_search
|
---|
| 6730 |
|
---|
[21327] | 6731 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16566] | 6732 | #ifdef __cplusplus
|
---|
| 6733 | extern "C"
|
---|
[21327] | 6734 | {
|
---|
[16566] | 6735 | #endif
|
---|
[21327] | 6736 | /* We use char because int might match the return type of a gcc2
|
---|
| 6737 | builtin and then its argument prototype would still apply. */
|
---|
[16566] | 6738 | char re_rx_search ();
|
---|
| 6739 | /* The GNU C library defines this for functions which it implements
|
---|
| 6740 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6741 | something starting with __ and the normal name is an alias. */
|
---|
[21327] | 6742 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
[16566] | 6743 | choke me
|
---|
[21327] | 6744 | #else
|
---|
| 6745 | char (*f) () = re_rx_search;
|
---|
[16566] | 6746 | #endif
|
---|
[21327] | 6747 | #ifdef __cplusplus
|
---|
| 6748 | }
|
---|
| 6749 | #endif
|
---|
[16566] | 6750 |
|
---|
| 6751 | int
|
---|
| 6752 | main ()
|
---|
| 6753 | {
|
---|
[21327] | 6754 | return f != re_rx_search;
|
---|
[16566] | 6755 | ;
|
---|
| 6756 | return 0;
|
---|
| 6757 | }
|
---|
| 6758 | _ACEOF
|
---|
| 6759 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[21327] | 6760 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6761 | (eval $ac_link) 2>conftest.er1
|
---|
[16566] | 6762 | ac_status=$?
|
---|
| 6763 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6764 | rm -f conftest.er1
|
---|
| 6765 | cat conftest.err >&5
|
---|
| 6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6767 | (exit $ac_status); } &&
|
---|
| 6768 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6769 | || test ! -s conftest.err'
|
---|
| 6770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6771 | (eval $ac_try) 2>&5
|
---|
| 6772 | ac_status=$?
|
---|
| 6773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6774 | (exit $ac_status); }; } &&
|
---|
| 6775 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6777 | (eval $ac_try) 2>&5
|
---|
| 6778 | ac_status=$?
|
---|
| 6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6780 | (exit $ac_status); }; }; then
|
---|
[16566] | 6781 | ac_cv_func_re_rx_search=yes
|
---|
| 6782 | else
|
---|
| 6783 | echo "$as_me: failed program was:" >&5
|
---|
| 6784 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6785 |
|
---|
[21327] | 6786 | ac_cv_func_re_rx_search=no
|
---|
[16566] | 6787 | fi
|
---|
[21327] | 6788 | rm -f conftest.err conftest.$ac_objext \
|
---|
[16566] | 6789 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6790 | fi
|
---|
[21327] | 6791 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6792 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
[16566] | 6793 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 6794 | :
|
---|
| 6795 | else
|
---|
[21327] | 6796 | case $LIBOBJS in
|
---|
| 6797 | "rx.$ac_objext" | \
|
---|
| 6798 | *" rx.$ac_objext" | \
|
---|
| 6799 | "rx.$ac_objext "* | \
|
---|
[16566] | 6800 | *" rx.$ac_objext "* ) ;;
|
---|
[21327] | 6801 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
[16566] | 6802 | esac
|
---|
| 6803 |
|
---|
| 6804 | fi
|
---|
| 6805 |
|
---|
| 6806 | fi
|
---|
| 6807 |
|
---|
| 6808 |
|
---|
| 6809 | # ---------------------------------------------------------------------------
|
---|
| 6810 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[21327] | 6811 | case $LIBOBJS in
|
---|
| 6812 | "xmalloc.$ac_objext" | \
|
---|
| 6813 | *" xmalloc.$ac_objext" | \
|
---|
| 6814 | "xmalloc.$ac_objext "* | \
|
---|
[16566] | 6815 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[21327] | 6816 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
[16566] | 6817 | esac
|
---|
| 6818 |
|
---|
[21327] | 6819 | case $LIBOBJS in
|
---|
| 6820 | "error.$ac_objext" | \
|
---|
| 6821 | *" error.$ac_objext" | \
|
---|
| 6822 | "error.$ac_objext "* | \
|
---|
[16566] | 6823 | *" error.$ac_objext "* ) ;;
|
---|
[21327] | 6824 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16566] | 6825 | esac
|
---|
| 6826 |
|
---|
| 6827 | fi
|
---|
| 6828 |
|
---|
| 6829 |
|
---|
| 6830 | # ---------------------------------------------------------------------------
|
---|
| 6831 |
|
---|
[21327] | 6832 | ac_ext=cc
|
---|
[16566] | 6833 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 6834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 6837 |
|
---|
| 6838 |
|
---|
| 6839 | success=no
|
---|
[21327] | 6840 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6841 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[16566] | 6842 |
|
---|
[18214] | 6843 |
|
---|
[16566] | 6844 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6845 | /* confdefs.h. */
|
---|
| 6846 | _ACEOF
|
---|
| 6847 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6848 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6849 | /* end confdefs.h. */
|
---|
| 6850 | #include <vector>
|
---|
| 6851 |
|
---|
| 6852 | int
|
---|
| 6853 | main ()
|
---|
| 6854 | {
|
---|
| 6855 |
|
---|
| 6856 | ;
|
---|
| 6857 | return 0;
|
---|
| 6858 | }
|
---|
| 6859 | _ACEOF
|
---|
| 6860 | rm -f conftest.$ac_objext
|
---|
[21327] | 6861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6862 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 6863 | ac_status=$?
|
---|
| 6864 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6865 | rm -f conftest.er1
|
---|
| 6866 | cat conftest.err >&5
|
---|
| 6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6868 | (exit $ac_status); } &&
|
---|
| 6869 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6870 | || test ! -s conftest.err'
|
---|
| 6871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6872 | (eval $ac_try) 2>&5
|
---|
| 6873 | ac_status=$?
|
---|
| 6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6875 | (exit $ac_status); }; } &&
|
---|
| 6876 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6878 | (eval $ac_try) 2>&5
|
---|
| 6879 | ac_status=$?
|
---|
| 6880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6881 | (exit $ac_status); }; }; then
|
---|
[16566] | 6882 | success=yes
|
---|
| 6883 | else
|
---|
| 6884 | echo "$as_me: failed program was:" >&5
|
---|
| 6885 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6886 |
|
---|
| 6887 | fi
|
---|
[21327] | 6888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 6889 |
|
---|
| 6890 | if test $success = "no"; then
|
---|
| 6891 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6892 | /* confdefs.h. */
|
---|
| 6893 | _ACEOF
|
---|
| 6894 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6895 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6896 | /* end confdefs.h. */
|
---|
| 6897 | #include <vector.h>
|
---|
| 6898 |
|
---|
| 6899 | int
|
---|
| 6900 | main ()
|
---|
| 6901 | {
|
---|
| 6902 |
|
---|
| 6903 | ;
|
---|
| 6904 | return 0;
|
---|
| 6905 | }
|
---|
| 6906 | _ACEOF
|
---|
| 6907 | rm -f conftest.$ac_objext
|
---|
[21327] | 6908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6909 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 6910 | ac_status=$?
|
---|
| 6911 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6912 | rm -f conftest.er1
|
---|
| 6913 | cat conftest.err >&5
|
---|
| 6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6915 | (exit $ac_status); } &&
|
---|
| 6916 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6917 | || test ! -s conftest.err'
|
---|
| 6918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6919 | (eval $ac_try) 2>&5
|
---|
| 6920 | ac_status=$?
|
---|
| 6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6922 | (exit $ac_status); }; } &&
|
---|
| 6923 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6925 | (eval $ac_try) 2>&5
|
---|
| 6926 | ac_status=$?
|
---|
| 6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6928 | (exit $ac_status); }; }; then
|
---|
[16566] | 6929 | success="yes"
|
---|
| 6930 | else
|
---|
| 6931 | echo "$as_me: failed program was:" >&5
|
---|
| 6932 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6933 |
|
---|
| 6934 | fi
|
---|
[21327] | 6935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 6936 | fi
|
---|
| 6937 |
|
---|
| 6938 | if test $success = "no"; then
|
---|
| 6939 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6940 | /* confdefs.h. */
|
---|
| 6941 | _ACEOF
|
---|
| 6942 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6943 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6944 | /* end confdefs.h. */
|
---|
| 6945 | #include <ospace\\std\\vector>
|
---|
| 6946 |
|
---|
| 6947 | int
|
---|
| 6948 | main ()
|
---|
| 6949 | {
|
---|
| 6950 |
|
---|
| 6951 | ;
|
---|
| 6952 | return 0;
|
---|
| 6953 | }
|
---|
| 6954 | _ACEOF
|
---|
| 6955 | rm -f conftest.$ac_objext
|
---|
[21327] | 6956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6957 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 6958 | ac_status=$?
|
---|
| 6959 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6960 | rm -f conftest.er1
|
---|
| 6961 | cat conftest.err >&5
|
---|
| 6962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 6963 | (exit $ac_status); } &&
|
---|
| 6964 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6965 | || test ! -s conftest.err'
|
---|
| 6966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6967 | (eval $ac_try) 2>&5
|
---|
| 6968 | ac_status=$?
|
---|
| 6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6970 | (exit $ac_status); }; } &&
|
---|
| 6971 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6973 | (eval $ac_try) 2>&5
|
---|
| 6974 | ac_status=$?
|
---|
| 6975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6976 | (exit $ac_status); }; }; then
|
---|
[16566] | 6977 | success="yes"
|
---|
| 6978 | else
|
---|
| 6979 | echo "$as_me: failed program was:" >&5
|
---|
| 6980 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6981 |
|
---|
| 6982 | fi
|
---|
[21327] | 6983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 6984 | fi
|
---|
| 6985 |
|
---|
| 6986 | if test $success = yes; then
|
---|
[21327] | 6987 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6988 | echo "${ECHO_T}\"no\"" >&6
|
---|
[16566] | 6989 | else
|
---|
[21327] | 6990 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6991 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[16566] | 6992 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 6993 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 6994 | { (exit 1); exit 1; }; }
|
---|
| 6995 | fi
|
---|
| 6996 |
|
---|
| 6997 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 6998 | # check for running bash under cygwin
|
---|
| 6999 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7000 | then
|
---|
| 7001 | gsdlos=windows
|
---|
| 7002 | fi
|
---|
| 7003 |
|
---|
| 7004 |
|
---|
| 7005 | # check for endianness
|
---|
[21327] | 7006 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7007 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
[16566] | 7008 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7009 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7010 | else
|
---|
| 7011 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7012 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7013 | /* confdefs.h. */
|
---|
| 7014 | _ACEOF
|
---|
| 7015 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7016 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7017 | /* end confdefs.h. */
|
---|
| 7018 | #include <sys/types.h>
|
---|
| 7019 | #include <sys/param.h>
|
---|
| 7020 |
|
---|
| 7021 | int
|
---|
| 7022 | main ()
|
---|
| 7023 | {
|
---|
[21327] | 7024 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
[16566] | 7025 | bogus endian macros
|
---|
| 7026 | #endif
|
---|
| 7027 |
|
---|
| 7028 | ;
|
---|
| 7029 | return 0;
|
---|
| 7030 | }
|
---|
| 7031 | _ACEOF
|
---|
| 7032 | rm -f conftest.$ac_objext
|
---|
[21327] | 7033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7034 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 7035 | ac_status=$?
|
---|
| 7036 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7037 | rm -f conftest.er1
|
---|
| 7038 | cat conftest.err >&5
|
---|
| 7039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 7040 | (exit $ac_status); } &&
|
---|
| 7041 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7042 | || test ! -s conftest.err'
|
---|
| 7043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7044 | (eval $ac_try) 2>&5
|
---|
| 7045 | ac_status=$?
|
---|
| 7046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7047 | (exit $ac_status); }; } &&
|
---|
| 7048 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7050 | (eval $ac_try) 2>&5
|
---|
| 7051 | ac_status=$?
|
---|
| 7052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7053 | (exit $ac_status); }; }; then
|
---|
[16566] | 7054 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7055 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7056 | /* confdefs.h. */
|
---|
| 7057 | _ACEOF
|
---|
| 7058 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7059 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7060 | /* end confdefs.h. */
|
---|
| 7061 | #include <sys/types.h>
|
---|
| 7062 | #include <sys/param.h>
|
---|
| 7063 |
|
---|
| 7064 | int
|
---|
| 7065 | main ()
|
---|
| 7066 | {
|
---|
| 7067 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7068 | not big endian
|
---|
| 7069 | #endif
|
---|
| 7070 |
|
---|
| 7071 | ;
|
---|
| 7072 | return 0;
|
---|
| 7073 | }
|
---|
| 7074 | _ACEOF
|
---|
| 7075 | rm -f conftest.$ac_objext
|
---|
[21327] | 7076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7077 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 7078 | ac_status=$?
|
---|
| 7079 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7080 | rm -f conftest.er1
|
---|
| 7081 | cat conftest.err >&5
|
---|
| 7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 7083 | (exit $ac_status); } &&
|
---|
| 7084 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7085 | || test ! -s conftest.err'
|
---|
| 7086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7087 | (eval $ac_try) 2>&5
|
---|
| 7088 | ac_status=$?
|
---|
| 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7090 | (exit $ac_status); }; } &&
|
---|
| 7091 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7093 | (eval $ac_try) 2>&5
|
---|
| 7094 | ac_status=$?
|
---|
| 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7096 | (exit $ac_status); }; }; then
|
---|
[16566] | 7097 | ac_cv_c_bigendian=yes
|
---|
| 7098 | else
|
---|
| 7099 | echo "$as_me: failed program was:" >&5
|
---|
| 7100 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7101 |
|
---|
[21327] | 7102 | ac_cv_c_bigendian=no
|
---|
[16566] | 7103 | fi
|
---|
[21327] | 7104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7105 | else
|
---|
| 7106 | echo "$as_me: failed program was:" >&5
|
---|
| 7107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7108 |
|
---|
[21327] | 7109 | # It does not; compile a test program.
|
---|
[16566] | 7110 | if test "$cross_compiling" = yes; then
|
---|
| 7111 | # try to guess the endianness by grepping values into an object file
|
---|
| 7112 | ac_cv_c_bigendian=unknown
|
---|
| 7113 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7114 | /* confdefs.h. */
|
---|
| 7115 | _ACEOF
|
---|
| 7116 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7117 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7118 | /* end confdefs.h. */
|
---|
[21327] | 7119 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7120 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
[16566] | 7121 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
[21327] | 7122 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7123 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
[16566] | 7124 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7125 | int
|
---|
| 7126 | main ()
|
---|
| 7127 | {
|
---|
| 7128 | _ascii (); _ebcdic ();
|
---|
| 7129 | ;
|
---|
| 7130 | return 0;
|
---|
| 7131 | }
|
---|
| 7132 | _ACEOF
|
---|
| 7133 | rm -f conftest.$ac_objext
|
---|
[21327] | 7134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7135 | (eval $ac_compile) 2>conftest.er1
|
---|
[16566] | 7136 | ac_status=$?
|
---|
| 7137 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7138 | rm -f conftest.er1
|
---|
| 7139 | cat conftest.err >&5
|
---|
| 7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[21327] | 7141 | (exit $ac_status); } &&
|
---|
| 7142 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7143 | || test ! -s conftest.err'
|
---|
| 7144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7145 | (eval $ac_try) 2>&5
|
---|
| 7146 | ac_status=$?
|
---|
| 7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7148 | (exit $ac_status); }; } &&
|
---|
| 7149 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7151 | (eval $ac_try) 2>&5
|
---|
| 7152 | ac_status=$?
|
---|
| 7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7154 | (exit $ac_status); }; }; then
|
---|
[16566] | 7155 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7156 | ac_cv_c_bigendian=yes
|
---|
| 7157 | fi
|
---|
| 7158 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7159 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7160 | ac_cv_c_bigendian=no
|
---|
| 7161 | else
|
---|
| 7162 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7163 | ac_cv_c_bigendian=unknown
|
---|
| 7164 | fi
|
---|
| 7165 | fi
|
---|
| 7166 | else
|
---|
| 7167 | echo "$as_me: failed program was:" >&5
|
---|
| 7168 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7169 |
|
---|
| 7170 | fi
|
---|
[21327] | 7171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7172 | else
|
---|
| 7173 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7174 | /* confdefs.h. */
|
---|
| 7175 | _ACEOF
|
---|
| 7176 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7177 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7178 | /* end confdefs.h. */
|
---|
| 7179 | int
|
---|
| 7180 | main ()
|
---|
| 7181 | {
|
---|
| 7182 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7183 | union
|
---|
| 7184 | {
|
---|
[21327] | 7185 | long l;
|
---|
| 7186 | char c[sizeof (long)];
|
---|
[16566] | 7187 | } u;
|
---|
| 7188 | u.l = 1;
|
---|
[21327] | 7189 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
[16566] | 7190 | }
|
---|
| 7191 | _ACEOF
|
---|
| 7192 | rm -f conftest$ac_exeext
|
---|
[21327] | 7193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7194 | (eval $ac_link) 2>&5
|
---|
[16566] | 7195 | ac_status=$?
|
---|
| 7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7197 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[21327] | 7198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7199 | (eval $ac_try) 2>&5
|
---|
[16566] | 7200 | ac_status=$?
|
---|
| 7201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7202 | (exit $ac_status); }; }; then
|
---|
| 7203 | ac_cv_c_bigendian=no
|
---|
| 7204 | else
|
---|
| 7205 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7206 | echo "$as_me: failed program was:" >&5
|
---|
| 7207 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7208 |
|
---|
| 7209 | ( exit $ac_status )
|
---|
| 7210 | ac_cv_c_bigendian=yes
|
---|
| 7211 | fi
|
---|
[21327] | 7212 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7213 | fi
|
---|
| 7214 | fi
|
---|
[21327] | 7215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16566] | 7216 | fi
|
---|
[21327] | 7217 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7218 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
[16566] | 7219 | case $ac_cv_c_bigendian in
|
---|
| 7220 | yes)
|
---|
| 7221 |
|
---|
| 7222 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7223 | #define WORDS_BIGENDIAN 1
|
---|
| 7224 | _ACEOF
|
---|
| 7225 | ;;
|
---|
| 7226 | no)
|
---|
| 7227 | ;;
|
---|
| 7228 | *)
|
---|
| 7229 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7230 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7231 | echo "$as_me: error: unknown endianness
|
---|
| 7232 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7233 | { (exit 1); exit 1; }; } ;;
|
---|
| 7234 | esac
|
---|
| 7235 |
|
---|
| 7236 | # ---------------------------------------------------------------------------
|
---|
| 7237 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[21327] | 7238 | case $LIBOBJS in
|
---|
| 7239 | "xmalloc.o.$ac_objext" | \
|
---|
| 7240 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7241 | "xmalloc.o.$ac_objext "* | \
|
---|
[16566] | 7242 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[21327] | 7243 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
[16566] | 7244 | esac
|
---|
| 7245 |
|
---|
[21327] | 7246 | case $LIBOBJS in
|
---|
| 7247 | "error.$ac_objext" | \
|
---|
| 7248 | *" error.$ac_objext" | \
|
---|
| 7249 | "error.$ac_objext "* | \
|
---|
[16566] | 7250 | *" error.$ac_objext "* ) ;;
|
---|
[21327] | 7251 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16566] | 7252 | esac
|
---|
| 7253 |
|
---|
| 7254 | fi
|
---|
| 7255 |
|
---|
| 7256 | # ---------------------------------------------------------------------------
|
---|
| 7257 |
|
---|
| 7258 |
|
---|
| 7259 | moduleDirs=""
|
---|
| 7260 | MODULEDIRS=""
|
---|
[16593] | 7261 | if test -d modules ; then
|
---|
[16566] | 7262 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7263 | if test -d "$x"; then
|
---|
| 7264 | d="$x/Makefile.in"
|
---|
| 7265 | if test -e "$d"; then
|
---|
| 7266 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7267 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7268 | fi
|
---|
| 7269 | fi
|
---|
| 7270 | done
|
---|
| 7271 | echo "Making $moduleDirs in modules directory"
|
---|
| 7272 |
|
---|
| 7273 | fi
|
---|
| 7274 |
|
---|
| 7275 |
|
---|
| 7276 | # ---------------------------------------------------------------------------
|
---|
| 7277 |
|
---|
[21327] | 7278 |
|
---|
| 7279 |
|
---|
[20832] | 7280 | subdirs="$subdirs packages"
|
---|
[16566] | 7281 |
|
---|
| 7282 |
|
---|
[20832] | 7283 | commonsrcprefix=`pwd`
|
---|
| 7284 | ac_configure_args="$ac_configure_args --with-libiconv-prefix=$commonsrcprefix/packages/iconv"
|
---|
[21327] | 7285 |
|
---|
| 7286 |
|
---|
[20832] | 7287 | subdirs="$subdirs indexers"
|
---|
| 7288 |
|
---|
| 7289 |
|
---|
[16566] | 7290 | # the list of folders in the src folder
|
---|
| 7291 | srclist="src/lib/Makefile \
|
---|
| 7292 | src/gdbmedit/db2txt/Makefile \
|
---|
| 7293 | src/gdbmedit/txt2db/Makefile \
|
---|
| 7294 | src/gdbmedit/gdbmget/Makefile \
|
---|
| 7295 | src/gdbmedit/gdbmset/Makefile \
|
---|
[20832] | 7296 | src/gdbmedit/gdbmkeys/Makefile \
|
---|
| 7297 | src/gdbmedit/gdbmdel/Makefile \
|
---|
[16566] | 7298 | src/getpw/Makefile"
|
---|
| 7299 |
|
---|
[21327] | 7300 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
[16566] | 7301 | cat >confcache <<\_ACEOF
|
---|
| 7302 | # This file is a shell script that caches the results of configure
|
---|
| 7303 | # tests run on this system so they can be shared between configure
|
---|
| 7304 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7305 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7306 | # want to keep, you may remove or edit it.
|
---|
| 7307 | #
|
---|
| 7308 | # config.status only pays attention to the cache file if you give it
|
---|
| 7309 | # the --recheck option to rerun configure.
|
---|
| 7310 | #
|
---|
| 7311 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7312 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7313 | # following values.
|
---|
| 7314 |
|
---|
| 7315 | _ACEOF
|
---|
| 7316 |
|
---|
| 7317 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7318 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[21327] | 7319 | # So, don't put newlines in cache variables' values.
|
---|
[16566] | 7320 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7321 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[21327] | 7322 | {
|
---|
[16566] | 7323 | (set) 2>&1 |
|
---|
[21327] | 7324 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7325 | *ac_space=\ *)
|
---|
[16566] | 7326 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7327 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7328 | sed -n \
|
---|
| 7329 | "s/'/'\\\\''/g;
|
---|
| 7330 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[21327] | 7331 | ;;
|
---|
[16566] | 7332 | *)
|
---|
| 7333 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[21327] | 7334 | sed -n \
|
---|
| 7335 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[16566] | 7336 | ;;
|
---|
[21327] | 7337 | esac;
|
---|
| 7338 | } |
|
---|
[16566] | 7339 | sed '
|
---|
| 7340 | t clear
|
---|
[21327] | 7341 | : clear
|
---|
[16566] | 7342 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7343 | t end
|
---|
[21327] | 7344 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7345 | : end' >>confcache
|
---|
| 7346 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
| 7347 | if test -w $cache_file; then
|
---|
| 7348 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
[16566] | 7349 | cat confcache >$cache_file
|
---|
| 7350 | else
|
---|
[21327] | 7351 | echo "not updating unwritable cache $cache_file"
|
---|
[16566] | 7352 | fi
|
---|
| 7353 | fi
|
---|
| 7354 | rm -f confcache
|
---|
| 7355 |
|
---|
| 7356 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7357 | # Let make expand exec_prefix.
|
---|
| 7358 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7359 |
|
---|
[21327] | 7360 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7361 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7362 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7363 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7364 | if test "x$srcdir" = x.; then
|
---|
| 7365 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7366 | s/:*\$(srcdir):*/:/;
|
---|
| 7367 | s/:*\${srcdir}:*/:/;
|
---|
| 7368 | s/:*@srcdir@:*/:/;
|
---|
| 7369 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7370 | s/:*$//;
|
---|
| 7371 | s/^[^=]*=[ ]*$//;
|
---|
| 7372 | }'
|
---|
| 7373 | fi
|
---|
| 7374 |
|
---|
[16566] | 7375 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7376 |
|
---|
| 7377 | ac_libobjs=
|
---|
| 7378 | ac_ltlibobjs=
|
---|
| 7379 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7380 | # 1. Remove the extension, and $U if already installed.
|
---|
[21327] | 7381 | ac_i=`echo "$ac_i" |
|
---|
| 7382 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7383 | # 2. Add them.
|
---|
| 7384 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7385 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
[16566] | 7386 | done
|
---|
| 7387 | LIBOBJS=$ac_libobjs
|
---|
| 7388 |
|
---|
| 7389 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7390 |
|
---|
| 7391 |
|
---|
| 7392 |
|
---|
| 7393 | : ${CONFIG_STATUS=./config.status}
|
---|
| 7394 | ac_clean_files_save=$ac_clean_files
|
---|
| 7395 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7396 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7397 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7398 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7399 | #! $SHELL
|
---|
| 7400 | # Generated by $as_me.
|
---|
| 7401 | # Run this file to recreate the current configuration.
|
---|
| 7402 | # Compiler output produced by configure, useful for debugging
|
---|
| 7403 | # configure, is in config.log if it exists.
|
---|
| 7404 |
|
---|
| 7405 | debug=false
|
---|
| 7406 | ac_cs_recheck=false
|
---|
| 7407 | ac_cs_silent=false
|
---|
| 7408 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7409 | _ACEOF
|
---|
| 7410 |
|
---|
| 7411 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7412 | ## --------------------- ##
|
---|
| 7413 | ## M4sh Initialization. ##
|
---|
| 7414 | ## --------------------- ##
|
---|
| 7415 |
|
---|
[21327] | 7416 | # Be Bourne compatible
|
---|
[16566] | 7417 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7418 | emulate sh
|
---|
| 7419 | NULLCMD=:
|
---|
| 7420 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7421 | # is contrary to our usage. Disable this feature.
|
---|
| 7422 | alias -g '${1+"$@"}'='"$@"'
|
---|
[21327] | 7423 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7424 | set -o posix
|
---|
[16566] | 7425 | fi
|
---|
[21327] | 7426 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16566] | 7427 |
|
---|
| 7428 | # Support unset when possible.
|
---|
| 7429 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7430 | as_unset=unset
|
---|
| 7431 | else
|
---|
| 7432 | as_unset=false
|
---|
| 7433 | fi
|
---|
| 7434 |
|
---|
| 7435 |
|
---|
| 7436 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[21327] | 7437 | $as_unset ENV MAIL MAILPATH
|
---|
[16566] | 7438 | PS1='$ '
|
---|
| 7439 | PS2='> '
|
---|
| 7440 | PS4='+ '
|
---|
| 7441 |
|
---|
| 7442 | # NLS nuisances.
|
---|
| 7443 | for as_var in \
|
---|
| 7444 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7445 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7446 | LC_TELEPHONE LC_TIME
|
---|
| 7447 | do
|
---|
| 7448 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7449 | eval $as_var=C; export $as_var
|
---|
| 7450 | else
|
---|
[21327] | 7451 | $as_unset $as_var
|
---|
[16566] | 7452 | fi
|
---|
| 7453 | done
|
---|
| 7454 |
|
---|
| 7455 | # Required to use basename.
|
---|
[21327] | 7456 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16566] | 7457 | as_expr=expr
|
---|
| 7458 | else
|
---|
| 7459 | as_expr=false
|
---|
| 7460 | fi
|
---|
| 7461 |
|
---|
[21327] | 7462 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[16566] | 7463 | as_basename=basename
|
---|
| 7464 | else
|
---|
| 7465 | as_basename=false
|
---|
| 7466 | fi
|
---|
| 7467 |
|
---|
| 7468 |
|
---|
| 7469 | # Name of the executable.
|
---|
[21327] | 7470 | as_me=`$as_basename "$0" ||
|
---|
[16566] | 7471 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7472 | X"$0" : 'X\(//\)$' \| \
|
---|
[21327] | 7473 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7474 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 7475 | echo X/"$0" |
|
---|
[21327] | 7476 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7477 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7478 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7479 | s/.*/./; q'`
|
---|
[16566] | 7480 |
|
---|
| 7481 |
|
---|
[21327] | 7482 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7483 | # Avoid depending upon Character Ranges.
|
---|
| 7484 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7485 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7486 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7487 | as_cr_digits='0123456789'
|
---|
| 7488 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[16566] | 7489 |
|
---|
[21327] | 7490 | # The user is always right.
|
---|
| 7491 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7492 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7493 | echo "exit 0" >>conf$$.sh
|
---|
| 7494 | chmod +x conf$$.sh
|
---|
| 7495 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7496 | PATH_SEPARATOR=';'
|
---|
| 7497 | else
|
---|
| 7498 | PATH_SEPARATOR=:
|
---|
| 7499 | fi
|
---|
| 7500 | rm -f conf$$.sh
|
---|
| 7501 | fi
|
---|
[16566] | 7502 |
|
---|
[21327] | 7503 |
|
---|
[16566] | 7504 | as_lineno_1=$LINENO
|
---|
| 7505 | as_lineno_2=$LINENO
|
---|
[21327] | 7506 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
[16566] | 7507 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[21327] | 7508 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7509 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7510 | # relative or not.
|
---|
| 7511 | case $0 in
|
---|
| 7512 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7513 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7514 | for as_dir in $PATH
|
---|
| 7515 | do
|
---|
| 7516 | IFS=$as_save_IFS
|
---|
| 7517 | test -z "$as_dir" && as_dir=.
|
---|
| 7518 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7519 | done
|
---|
[16566] | 7520 |
|
---|
[21327] | 7521 | ;;
|
---|
| 7522 | esac
|
---|
| 7523 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7524 | # in which case we are not to be found in the path.
|
---|
| 7525 | if test "x$as_myself" = x; then
|
---|
| 7526 | as_myself=$0
|
---|
| 7527 | fi
|
---|
| 7528 | if test ! -f "$as_myself"; then
|
---|
| 7529 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7530 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7531 | { (exit 1); exit 1; }; }
|
---|
| 7532 | fi
|
---|
| 7533 | case $CONFIG_SHELL in
|
---|
| 7534 | '')
|
---|
| 7535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7536 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7537 | do
|
---|
| 7538 | IFS=$as_save_IFS
|
---|
| 7539 | test -z "$as_dir" && as_dir=.
|
---|
| 7540 | for as_base in sh bash ksh sh5; do
|
---|
| 7541 | case $as_dir in
|
---|
| 7542 | /*)
|
---|
| 7543 | if ("$as_dir/$as_base" -c '
|
---|
| 7544 | as_lineno_1=$LINENO
|
---|
| 7545 | as_lineno_2=$LINENO
|
---|
| 7546 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7547 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7548 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7549 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7550 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7551 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7552 | export CONFIG_SHELL
|
---|
| 7553 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7554 | fi;;
|
---|
| 7555 | esac
|
---|
| 7556 | done
|
---|
| 7557 | done
|
---|
| 7558 | ;;
|
---|
| 7559 | esac
|
---|
| 7560 |
|
---|
[16566] | 7561 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7562 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[21327] | 7563 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7564 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7565 | # with the numbered line, and appends trailing '-' during
|
---|
| 7566 | # substitution so that $LINENO is not a special case at line end.
|
---|
[16566] | 7567 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[21327] | 7568 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7569 | sed '=' <$as_myself |
|
---|
[16566] | 7570 | sed '
|
---|
| 7571 | N
|
---|
[21327] | 7572 | s,$,-,
|
---|
| 7573 | : loop
|
---|
| 7574 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[16566] | 7575 | t loop
|
---|
[21327] | 7576 | s,-$,,
|
---|
| 7577 | s,^['$as_cr_digits']*\n,,
|
---|
[16566] | 7578 | ' >$as_me.lineno &&
|
---|
[21327] | 7579 | chmod +x $as_me.lineno ||
|
---|
| 7580 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7581 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
[16566] | 7582 | { (exit 1); exit 1; }; }
|
---|
| 7583 |
|
---|
| 7584 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7585 | # (the dirname of $[0] is not the place where we might find the
|
---|
[21327] | 7586 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7587 | . ./$as_me.lineno
|
---|
[16566] | 7588 | # Exit status is that of the last command.
|
---|
| 7589 | exit
|
---|
| 7590 | }
|
---|
| 7591 |
|
---|
| 7592 |
|
---|
[21327] | 7593 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7594 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7595 | ' ECHO_T=' ' ;;
|
---|
| 7596 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7597 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
[16566] | 7598 | esac
|
---|
| 7599 |
|
---|
[21327] | 7600 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16566] | 7601 | as_expr=expr
|
---|
| 7602 | else
|
---|
| 7603 | as_expr=false
|
---|
| 7604 | fi
|
---|
| 7605 |
|
---|
| 7606 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7607 | echo >conf$$.file
|
---|
| 7608 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
[21327] | 7609 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7610 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7611 | if test -f conf$$.exe; then
|
---|
| 7612 | # Don't use ln at all; we don't have any links
|
---|
[16566] | 7613 | as_ln_s='cp -p'
|
---|
[21327] | 7614 | else
|
---|
| 7615 | as_ln_s='ln -s'
|
---|
| 7616 | fi
|
---|
[16566] | 7617 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7618 | as_ln_s=ln
|
---|
| 7619 | else
|
---|
| 7620 | as_ln_s='cp -p'
|
---|
| 7621 | fi
|
---|
[21327] | 7622 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[16566] | 7623 |
|
---|
| 7624 | if mkdir -p . 2>/dev/null; then
|
---|
| 7625 | as_mkdir_p=:
|
---|
| 7626 | else
|
---|
| 7627 | test -d ./-p && rmdir ./-p
|
---|
| 7628 | as_mkdir_p=false
|
---|
| 7629 | fi
|
---|
| 7630 |
|
---|
[21327] | 7631 | as_executable_p="test -f"
|
---|
[16566] | 7632 |
|
---|
| 7633 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7634 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7635 |
|
---|
| 7636 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7637 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7638 |
|
---|
| 7639 |
|
---|
[21327] | 7640 | # IFS
|
---|
| 7641 | # We need space, tab and new line, in precisely that order.
|
---|
| 7642 | as_nl='
|
---|
| 7643 | '
|
---|
| 7644 | IFS=" $as_nl"
|
---|
| 7645 |
|
---|
| 7646 | # CDPATH.
|
---|
| 7647 | $as_unset CDPATH
|
---|
| 7648 |
|
---|
[16566] | 7649 | exec 6>&1
|
---|
| 7650 |
|
---|
[21327] | 7651 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
[16566] | 7652 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[21327] | 7653 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7654 | exec 5>>config.log
|
---|
| 7655 | {
|
---|
| 7656 | echo
|
---|
| 7657 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7658 | ## Running $as_me. ##
|
---|
| 7659 | _ASBOX
|
---|
| 7660 | } >&5
|
---|
| 7661 | cat >&5 <<_CSEOF
|
---|
| 7662 |
|
---|
[16566] | 7663 | This file was extended by $as_me, which was
|
---|
[21327] | 7664 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[16566] | 7665 |
|
---|
| 7666 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7667 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7668 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7669 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7670 | $ $0 $@
|
---|
| 7671 |
|
---|
[21327] | 7672 | _CSEOF
|
---|
| 7673 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7674 | echo >&5
|
---|
[16566] | 7675 | _ACEOF
|
---|
| 7676 |
|
---|
| 7677 | # Files that config.status was made for.
|
---|
[21327] | 7678 | if test -n "$ac_config_files"; then
|
---|
| 7679 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7680 | fi
|
---|
[16566] | 7681 |
|
---|
[21327] | 7682 | if test -n "$ac_config_headers"; then
|
---|
| 7683 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7684 | fi
|
---|
[16566] | 7685 |
|
---|
[21327] | 7686 | if test -n "$ac_config_links"; then
|
---|
| 7687 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7688 | fi
|
---|
| 7689 |
|
---|
| 7690 | if test -n "$ac_config_commands"; then
|
---|
| 7691 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7692 | fi
|
---|
| 7693 |
|
---|
[16566] | 7694 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[21327] | 7695 |
|
---|
[16566] | 7696 | ac_cs_usage="\
|
---|
| 7697 | \`$as_me' instantiates files from templates according to the
|
---|
| 7698 | current configuration.
|
---|
| 7699 |
|
---|
| 7700 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7701 |
|
---|
| 7702 | -h, --help print this help, then exit
|
---|
[21327] | 7703 | -V, --version print version number, then exit
|
---|
[16566] | 7704 | -q, --quiet do not print progress messages
|
---|
| 7705 | -d, --debug don't remove temporary files
|
---|
| 7706 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7707 | --file=FILE[:TEMPLATE]
|
---|
| 7708 | instantiate the configuration file FILE
|
---|
| 7709 | --header=FILE[:TEMPLATE]
|
---|
| 7710 | instantiate the configuration header FILE
|
---|
| 7711 |
|
---|
| 7712 | Configuration files:
|
---|
| 7713 | $config_files
|
---|
| 7714 |
|
---|
| 7715 | Configuration headers:
|
---|
| 7716 | $config_headers
|
---|
| 7717 |
|
---|
| 7718 | Report bugs to <[email protected]>."
|
---|
[21327] | 7719 | _ACEOF
|
---|
[20846] | 7720 |
|
---|
[16566] | 7721 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7722 | ac_cs_version="\\
|
---|
| 7723 | config.status
|
---|
[21327] | 7724 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7725 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[16566] | 7726 |
|
---|
[21327] | 7727 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16566] | 7728 | This config.status script is free software; the Free Software Foundation
|
---|
| 7729 | gives unlimited permission to copy, distribute and modify it."
|
---|
[21327] | 7730 | srcdir=$srcdir
|
---|
| 7731 | INSTALL="$INSTALL"
|
---|
[16566] | 7732 | _ACEOF
|
---|
| 7733 |
|
---|
| 7734 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7735 | # If no file are specified by the user, then we need to provide default
|
---|
| 7736 | # value. By we need to know if files were specified by the user.
|
---|
| 7737 | ac_need_defaults=:
|
---|
| 7738 | while test $# != 0
|
---|
| 7739 | do
|
---|
| 7740 | case $1 in
|
---|
| 7741 | --*=*)
|
---|
[21327] | 7742 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7743 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[16566] | 7744 | ac_shift=:
|
---|
| 7745 | ;;
|
---|
[21327] | 7746 | -*)
|
---|
[16566] | 7747 | ac_option=$1
|
---|
| 7748 | ac_optarg=$2
|
---|
| 7749 | ac_shift=shift
|
---|
| 7750 | ;;
|
---|
[21327] | 7751 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7752 | # arguments.
|
---|
| 7753 | ac_option=$1
|
---|
| 7754 | ac_need_defaults=false;;
|
---|
[16566] | 7755 | esac
|
---|
| 7756 |
|
---|
| 7757 | case $ac_option in
|
---|
| 7758 | # Handling of the options.
|
---|
[21327] | 7759 | _ACEOF
|
---|
| 7760 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 7761 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7762 | ac_cs_recheck=: ;;
|
---|
[21327] | 7763 | --version | --vers* | -V )
|
---|
| 7764 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7765 | --he | --h)
|
---|
| 7766 | # Conflict between --help and --header
|
---|
| 7767 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7768 | Try \`$0 --help' for more information." >&5
|
---|
| 7769 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7770 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7771 | { (exit 1); exit 1; }; };;
|
---|
| 7772 | --help | --hel | -h )
|
---|
| 7773 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7774 | --debug | --d* | -d )
|
---|
[16566] | 7775 | debug=: ;;
|
---|
| 7776 | --file | --fil | --fi | --f )
|
---|
| 7777 | $ac_shift
|
---|
| 7778 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7779 | ac_need_defaults=false;;
|
---|
| 7780 | --header | --heade | --head | --hea )
|
---|
| 7781 | $ac_shift
|
---|
| 7782 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7783 | ac_need_defaults=false;;
|
---|
| 7784 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7785 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7786 | ac_cs_silent=: ;;
|
---|
| 7787 |
|
---|
| 7788 | # This is an error.
|
---|
[21327] | 7789 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7790 | Try \`$0 --help' for more information." >&5
|
---|
| 7791 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7792 | Try \`$0 --help' for more information." >&2;}
|
---|
[16566] | 7793 | { (exit 1); exit 1; }; } ;;
|
---|
| 7794 |
|
---|
[21327] | 7795 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
[16566] | 7796 |
|
---|
| 7797 | esac
|
---|
| 7798 | shift
|
---|
| 7799 | done
|
---|
| 7800 |
|
---|
| 7801 | ac_configure_extra_args=
|
---|
| 7802 |
|
---|
| 7803 | if $ac_cs_silent; then
|
---|
| 7804 | exec 6>/dev/null
|
---|
| 7805 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 7806 | fi
|
---|
| 7807 |
|
---|
| 7808 | _ACEOF
|
---|
| 7809 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7810 | if \$ac_cs_recheck; then
|
---|
[21327] | 7811 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7812 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[16566] | 7813 | fi
|
---|
| 7814 |
|
---|
| 7815 | _ACEOF
|
---|
| 7816 |
|
---|
| 7817 |
|
---|
[21327] | 7818 |
|
---|
| 7819 |
|
---|
| 7820 |
|
---|
[20846] | 7821 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 7822 | for ac_config_target in $ac_config_targets
|
---|
| 7823 | do
|
---|
[21327] | 7824 | case "$ac_config_target" in
|
---|
| 7825 | # Handling of arguments.
|
---|
| 7826 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7827 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7828 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7829 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7830 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
[16566] | 7831 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7832 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7833 | { (exit 1); exit 1; }; };;
|
---|
| 7834 | esac
|
---|
| 7835 | done
|
---|
| 7836 |
|
---|
| 7837 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7838 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7839 | # We use the long form for the default assignment because of an extremely
|
---|
| 7840 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7841 | if $ac_need_defaults; then
|
---|
| 7842 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7843 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7844 | fi
|
---|
| 7845 |
|
---|
| 7846 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[21327] | 7847 | # simply because there is no reason to put it here, and in addition,
|
---|
[16566] | 7848 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[21327] | 7849 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
[16566] | 7850 | $debug ||
|
---|
| 7851 | {
|
---|
[21327] | 7852 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[16566] | 7853 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7854 | }
|
---|
[21327] | 7855 |
|
---|
[16566] | 7856 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7857 |
|
---|
| 7858 | {
|
---|
[21327] | 7859 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[16566] | 7860 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7861 | } ||
|
---|
| 7862 | {
|
---|
[21327] | 7863 | tmp=./confstat$$-$RANDOM
|
---|
| 7864 | (umask 077 && mkdir $tmp)
|
---|
[16566] | 7865 | } ||
|
---|
| 7866 | {
|
---|
| 7867 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7868 | { (exit 1); exit 1; }
|
---|
| 7869 | }
|
---|
| 7870 |
|
---|
[21327] | 7871 | _ACEOF
|
---|
| 7872 |
|
---|
| 7873 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7874 |
|
---|
[16566] | 7875 | #
|
---|
[21327] | 7876 | # CONFIG_FILES section.
|
---|
[16566] | 7877 | #
|
---|
| 7878 |
|
---|
| 7879 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7880 | # This happens for instance when ./config.status config.h
|
---|
[21327] | 7881 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7882 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7883 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7884 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7885 | s,@SHELL@,$SHELL,;t t
|
---|
| 7886 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7887 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7888 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7889 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7890 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7891 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 7892 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7893 | s,@prefix@,$prefix,;t t
|
---|
| 7894 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7895 | s,@bindir@,$bindir,;t t
|
---|
| 7896 | s,@sbindir@,$sbindir,;t t
|
---|
| 7897 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7898 | s,@datadir@,$datadir,;t t
|
---|
| 7899 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7900 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7901 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7902 | s,@libdir@,$libdir,;t t
|
---|
| 7903 | s,@includedir@,$includedir,;t t
|
---|
| 7904 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7905 | s,@infodir@,$infodir,;t t
|
---|
| 7906 | s,@mandir@,$mandir,;t t
|
---|
| 7907 | s,@build_alias@,$build_alias,;t t
|
---|
| 7908 | s,@host_alias@,$host_alias,;t t
|
---|
| 7909 | s,@target_alias@,$target_alias,;t t
|
---|
| 7910 | s,@DEFS@,$DEFS,;t t
|
---|
| 7911 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7912 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7913 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7914 | s,@LIBS@,$LIBS,;t t
|
---|
| 7915 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7916 | s,@VERSION@,$VERSION,;t t
|
---|
| 7917 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 7918 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 7919 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 7920 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 7921 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 7922 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
| 7923 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[21418] | 7924 | s,@ENABLE_JDBM@,$ENABLE_JDBM,;t t
|
---|
[21327] | 7925 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
[21365] | 7926 | s,@ENABLE_JNI@,$ENABLE_JNI,;t t
|
---|
[21327] | 7927 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
| 7928 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
| 7929 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
| 7930 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7931 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7932 | s,@CC@,$CC,;t t
|
---|
| 7933 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7934 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7935 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7936 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7937 | s,@CXX@,$CXX,;t t
|
---|
| 7938 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7939 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7940 | s,@AWK@,$AWK,;t t
|
---|
| 7941 | s,@YACC@,$YACC,;t t
|
---|
| 7942 | s,@build@,$build,;t t
|
---|
| 7943 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7944 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7945 | s,@build_os@,$build_os,;t t
|
---|
| 7946 | s,@host@,$host,;t t
|
---|
| 7947 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7948 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7949 | s,@host_os@,$host_os,;t t
|
---|
| 7950 | s,@target@,$target,;t t
|
---|
| 7951 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7952 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7953 | s,@target_os@,$target_os,;t t
|
---|
| 7954 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7955 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7956 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7957 | s,@LN_S@,$LN_S,;t t
|
---|
| 7958 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7959 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7960 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7961 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
| 7962 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 7963 | s,@CPP@,$CPP,;t t
|
---|
| 7964 | s,@EGREP@,$EGREP,;t t
|
---|
| 7965 | s,@U@,$U,;t t
|
---|
| 7966 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7967 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7968 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7969 | s,@STATIC@,$STATIC,;t t
|
---|
| 7970 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7971 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 7972 | s,@subdirs@,$subdirs,;t t
|
---|
| 7973 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 7974 | CEOF
|
---|
[16566] | 7975 |
|
---|
| 7976 | _ACEOF
|
---|
| 7977 |
|
---|
[21327] | 7978 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7979 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7980 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7981 | ac_max_sed_lines=48
|
---|
| 7982 | ac_sed_frag=1 # Number of current file.
|
---|
| 7983 | ac_beg=1 # First line for current file.
|
---|
| 7984 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7985 | ac_more_lines=:
|
---|
| 7986 | ac_sed_cmds=
|
---|
| 7987 | while $ac_more_lines; do
|
---|
| 7988 | if test $ac_beg -gt 1; then
|
---|
| 7989 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7990 | else
|
---|
| 7991 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7992 | fi
|
---|
| 7993 | if test ! -s $tmp/subs.frag; then
|
---|
| 7994 | ac_more_lines=false
|
---|
| 7995 | else
|
---|
| 7996 | # The purpose of the label and of the branching condition is to
|
---|
| 7997 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7998 | # is no need to browse any of the substitutions).
|
---|
| 7999 | # These are the two extra sed commands mentioned above.
|
---|
| 8000 | (echo ':t
|
---|
| 8001 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8002 | if test -z "$ac_sed_cmds"; then
|
---|
| 8003 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8004 | else
|
---|
| 8005 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8006 | fi
|
---|
| 8007 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8008 | ac_beg=$ac_end
|
---|
| 8009 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8010 | fi
|
---|
| 8011 | done
|
---|
| 8012 | if test -z "$ac_sed_cmds"; then
|
---|
| 8013 | ac_sed_cmds=cat
|
---|
[16566] | 8014 | fi
|
---|
[21327] | 8015 | fi # test -n "$CONFIG_FILES"
|
---|
[16566] | 8016 |
|
---|
| 8017 | _ACEOF
|
---|
| 8018 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[21327] | 8019 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8020 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8021 | case $ac_file in
|
---|
| 8022 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8023 | cat >$tmp/stdin
|
---|
| 8024 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8025 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8026 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8027 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8028 | * ) ac_file_in=$ac_file.in ;;
|
---|
[16566] | 8029 | esac
|
---|
| 8030 |
|
---|
[21327] | 8031 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8032 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
[16566] | 8033 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8034 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8035 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[21327] | 8036 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8037 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 8038 | echo X"$ac_file" |
|
---|
[21327] | 8039 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8040 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8041 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8042 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8043 | s/.*/./; q'`
|
---|
| 8044 | { if $as_mkdir_p; then
|
---|
| 8045 | mkdir -p "$ac_dir"
|
---|
| 8046 | else
|
---|
| 8047 | as_dir="$ac_dir"
|
---|
[16566] | 8048 | as_dirs=
|
---|
[21327] | 8049 | while test ! -d "$as_dir"; do
|
---|
| 8050 | as_dirs="$as_dir $as_dirs"
|
---|
| 8051 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
[16566] | 8052 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8053 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8054 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[21327] | 8055 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8056 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 8057 | echo X"$as_dir" |
|
---|
[21327] | 8058 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8059 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8060 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8061 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8062 | s/.*/./; q'`
|
---|
[16566] | 8063 | done
|
---|
[21327] | 8064 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8065 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8066 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
[16566] | 8067 | { (exit 1); exit 1; }; }; }
|
---|
[21327] | 8068 |
|
---|
[16566] | 8069 | ac_builddir=.
|
---|
| 8070 |
|
---|
[21327] | 8071 | if test "$ac_dir" != .; then
|
---|
[16566] | 8072 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21327] | 8073 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8074 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8075 | else
|
---|
| 8076 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8077 | fi
|
---|
[16566] | 8078 |
|
---|
| 8079 | case $srcdir in
|
---|
[21327] | 8080 | .) # No --srcdir option. We are building in place.
|
---|
[16566] | 8081 | ac_srcdir=.
|
---|
[21327] | 8082 | if test -z "$ac_top_builddir"; then
|
---|
| 8083 | ac_top_srcdir=.
|
---|
| 8084 | else
|
---|
| 8085 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8086 | fi ;;
|
---|
| 8087 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16566] | 8088 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21327] | 8089 | ac_top_srcdir=$srcdir ;;
|
---|
| 8090 | *) # Relative path.
|
---|
| 8091 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8092 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16566] | 8093 | esac
|
---|
| 8094 |
|
---|
[21327] | 8095 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8096 | # the directories may not exist.
|
---|
| 8097 | case `pwd` in
|
---|
| 8098 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8099 | *)
|
---|
| 8100 | case "$ac_dir" in
|
---|
| 8101 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8102 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8103 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8104 | esac;;
|
---|
| 8105 | esac
|
---|
| 8106 | case $ac_abs_builddir in
|
---|
| 8107 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8108 | *)
|
---|
| 8109 | case ${ac_top_builddir}. in
|
---|
| 8110 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8111 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8112 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8113 | esac;;
|
---|
| 8114 | esac
|
---|
| 8115 | case $ac_abs_builddir in
|
---|
| 8116 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8117 | *)
|
---|
| 8118 | case $ac_srcdir in
|
---|
| 8119 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8120 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8121 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8122 | esac;;
|
---|
| 8123 | esac
|
---|
| 8124 | case $ac_abs_builddir in
|
---|
| 8125 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8126 | *)
|
---|
| 8127 | case $ac_top_srcdir in
|
---|
| 8128 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8129 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8130 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8131 | esac;;
|
---|
| 8132 | esac
|
---|
[16566] | 8133 |
|
---|
| 8134 |
|
---|
| 8135 | case $INSTALL in
|
---|
| 8136 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[21327] | 8137 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[16566] | 8138 | esac
|
---|
| 8139 |
|
---|
[21327] | 8140 | if test x"$ac_file" != x-; then
|
---|
| 8141 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8142 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8143 | rm -f "$ac_file"
|
---|
| 8144 | fi
|
---|
| 8145 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8146 | # use $as_me), people would be surprised to read:
|
---|
| 8147 | # /* config.h. Generated by config.status. */
|
---|
| 8148 | if test x"$ac_file" = x-; then
|
---|
| 8149 | configure_input=
|
---|
| 8150 | else
|
---|
| 8151 | configure_input="$ac_file. "
|
---|
| 8152 | fi
|
---|
| 8153 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8154 | sed 's,.*/,,'` by configure."
|
---|
[16566] | 8155 |
|
---|
[21327] | 8156 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8157 | # src tree.
|
---|
| 8158 | ac_file_inputs=`IFS=:
|
---|
| 8159 | for f in $ac_file_in; do
|
---|
| 8160 | case $f in
|
---|
| 8161 | -) echo $tmp/stdin ;;
|
---|
| 8162 | [\\/$]*)
|
---|
| 8163 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8164 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8165 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8166 | { (exit 1); exit 1; }; }
|
---|
| 8167 | echo "$f";;
|
---|
| 8168 | *) # Relative
|
---|
| 8169 | if test -f "$f"; then
|
---|
| 8170 | # Build tree
|
---|
| 8171 | echo "$f"
|
---|
| 8172 | elif test -f "$srcdir/$f"; then
|
---|
| 8173 | # Source tree
|
---|
| 8174 | echo "$srcdir/$f"
|
---|
| 8175 | else
|
---|
| 8176 | # /dev/null tree
|
---|
| 8177 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8178 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8179 | { (exit 1); exit 1; }; }
|
---|
| 8180 | fi;;
|
---|
| 8181 | esac
|
---|
| 8182 | done` || { (exit 1); exit 1; }
|
---|
[16566] | 8183 | _ACEOF
|
---|
| 8184 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8185 | sed "$ac_vpsub
|
---|
| 8186 | $extrasub
|
---|
| 8187 | _ACEOF
|
---|
| 8188 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8189 | :t
|
---|
| 8190 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[21327] | 8191 | s,@configure_input@,$configure_input,;t t
|
---|
| 8192 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8193 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8194 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8195 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8196 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8197 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8198 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8199 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8200 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8201 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8202 | rm -f $tmp/stdin
|
---|
| 8203 | if test x"$ac_file" != x-; then
|
---|
| 8204 | mv $tmp/out $ac_file
|
---|
| 8205 | else
|
---|
| 8206 | cat $tmp/out
|
---|
| 8207 | rm -f $tmp/out
|
---|
| 8208 | fi
|
---|
[16566] | 8209 |
|
---|
[21327] | 8210 | done
|
---|
| 8211 | _ACEOF
|
---|
| 8212 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 8213 |
|
---|
[21327] | 8214 | #
|
---|
| 8215 | # CONFIG_HEADER section.
|
---|
| 8216 | #
|
---|
| 8217 |
|
---|
| 8218 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8219 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8220 | #
|
---|
| 8221 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 8222 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8223 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8224 | ac_dC=' '
|
---|
| 8225 | ac_dD=',;t'
|
---|
| 8226 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8227 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8228 | ac_uB='$,\1#\2define\3'
|
---|
| 8229 | ac_uC=' '
|
---|
| 8230 | ac_uD=',;t'
|
---|
| 8231 |
|
---|
| 8232 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 8233 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[16566] | 8234 | case $ac_file in
|
---|
[21327] | 8235 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8236 | cat >$tmp/stdin
|
---|
| 8237 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8238 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8239 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8240 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8241 | * ) ac_file_in=$ac_file.in ;;
|
---|
[16566] | 8242 | esac
|
---|
[21327] | 8243 |
|
---|
| 8244 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8245 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8246 |
|
---|
| 8247 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8248 | # src tree.
|
---|
| 8249 | ac_file_inputs=`IFS=:
|
---|
| 8250 | for f in $ac_file_in; do
|
---|
| 8251 | case $f in
|
---|
| 8252 | -) echo $tmp/stdin ;;
|
---|
| 8253 | [\\/$]*)
|
---|
| 8254 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8255 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8256 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8257 | { (exit 1); exit 1; }; }
|
---|
| 8258 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8259 | echo "$f";;
|
---|
| 8260 | *) # Relative
|
---|
| 8261 | if test -f "$f"; then
|
---|
| 8262 | # Build tree
|
---|
| 8263 | echo "$f"
|
---|
| 8264 | elif test -f "$srcdir/$f"; then
|
---|
| 8265 | # Source tree
|
---|
| 8266 | echo "$srcdir/$f"
|
---|
| 8267 | else
|
---|
| 8268 | # /dev/null tree
|
---|
| 8269 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8270 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8271 | { (exit 1); exit 1; }; }
|
---|
| 8272 | fi;;
|
---|
| 8273 | esac
|
---|
| 8274 | done` || { (exit 1); exit 1; }
|
---|
| 8275 | # Remove the trailing spaces.
|
---|
| 8276 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
| 8277 |
|
---|
[20846] | 8278 | _ACEOF
|
---|
[16566] | 8279 |
|
---|
[21327] | 8280 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8281 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8282 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8283 | # templates, and the second `#undef' templates.
|
---|
| 8284 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8285 | # config.status. Protect against being in an unquoted here document
|
---|
| 8286 | # in config.status.
|
---|
| 8287 | rm -f conftest.defines conftest.undefs
|
---|
| 8288 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8289 | # Putting comments in sed scripts is not portable.
|
---|
| 8290 | #
|
---|
| 8291 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8292 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8293 | # See the Autoconf documentation for `clear'.
|
---|
| 8294 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8295 | s/[\\&,]/\\&/g
|
---|
| 8296 | s,[\\$`],\\&,g
|
---|
| 8297 | t clear
|
---|
| 8298 | : clear
|
---|
| 8299 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8300 | t end
|
---|
| 8301 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8302 | : end
|
---|
| 8303 | _ACEOF
|
---|
| 8304 | # If some macros were called several times there might be several times
|
---|
| 8305 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8306 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8307 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8308 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8309 | rm -f confdef2sed.sed
|
---|
[16566] | 8310 |
|
---|
[21327] | 8311 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
[16566] | 8312 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8313 | # on some systems where configure will not decide to define it.
|
---|
[21327] | 8314 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8315 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8316 | _ACEOF
|
---|
[16566] | 8317 |
|
---|
[21327] | 8318 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8319 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8320 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8321 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8322 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8323 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8324 | rm -f conftest.tail
|
---|
| 8325 | while grep . conftest.defines >/dev/null
|
---|
[16566] | 8326 | do
|
---|
[21327] | 8327 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8328 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8329 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8330 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8331 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8332 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8333 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8334 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
[16566] | 8335 | echo 'CEOF
|
---|
[21327] | 8336 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8337 | rm -f $tmp/in
|
---|
| 8338 | mv $tmp/out $tmp/in
|
---|
| 8339 | ' >>$CONFIG_STATUS
|
---|
| 8340 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
[16566] | 8341 | rm -f conftest.defines
|
---|
| 8342 | mv conftest.tail conftest.defines
|
---|
| 8343 | done
|
---|
[21327] | 8344 | rm -f conftest.defines
|
---|
| 8345 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8346 | echo >>$CONFIG_STATUS
|
---|
[16566] | 8347 |
|
---|
[21327] | 8348 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8349 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8350 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 8351 | rm -f conftest.tail
|
---|
| 8352 | while grep . conftest.undefs >/dev/null
|
---|
| 8353 | do
|
---|
| 8354 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8355 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8356 | # Speed up: don't consider the non `#undef'
|
---|
| 8357 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8358 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8359 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8360 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8361 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 8362 | echo 'CEOF
|
---|
| 8363 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8364 | rm -f $tmp/in
|
---|
| 8365 | mv $tmp/out $tmp/in
|
---|
| 8366 | ' >>$CONFIG_STATUS
|
---|
| 8367 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8368 | rm -f conftest.undefs
|
---|
| 8369 | mv conftest.tail conftest.undefs
|
---|
| 8370 | done
|
---|
| 8371 | rm -f conftest.undefs
|
---|
| 8372 |
|
---|
[16566] | 8373 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[21327] | 8374 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8375 | # use $as_me), people would be surprised to read:
|
---|
| 8376 | # /* config.h. Generated by config.status. */
|
---|
| 8377 | if test x"$ac_file" = x-; then
|
---|
| 8378 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
| 8379 | else
|
---|
| 8380 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8381 | fi
|
---|
| 8382 | cat $tmp/in >>$tmp/config.h
|
---|
| 8383 | rm -f $tmp/in
|
---|
[16566] | 8384 | if test x"$ac_file" != x-; then
|
---|
[21327] | 8385 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
[16566] | 8386 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8387 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8388 | else
|
---|
[21327] | 8389 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8390 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8391 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8392 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8393 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8394 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8395 | echo X"$ac_file" |
|
---|
| 8396 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8397 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8398 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8399 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8400 | s/.*/./; q'`
|
---|
| 8401 | { if $as_mkdir_p; then
|
---|
| 8402 | mkdir -p "$ac_dir"
|
---|
| 8403 | else
|
---|
| 8404 | as_dir="$ac_dir"
|
---|
| 8405 | as_dirs=
|
---|
| 8406 | while test ! -d "$as_dir"; do
|
---|
| 8407 | as_dirs="$as_dir $as_dirs"
|
---|
| 8408 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8409 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8410 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8411 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8412 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8413 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8414 | echo X"$as_dir" |
|
---|
| 8415 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8416 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8417 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8418 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8419 | s/.*/./; q'`
|
---|
| 8420 | done
|
---|
| 8421 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8422 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8423 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8424 | { (exit 1); exit 1; }; }; }
|
---|
| 8425 |
|
---|
[16566] | 8426 | rm -f $ac_file
|
---|
[21327] | 8427 | mv $tmp/config.h $ac_file
|
---|
[16566] | 8428 | fi
|
---|
| 8429 | else
|
---|
[21327] | 8430 | cat $tmp/config.h
|
---|
| 8431 | rm -f $tmp/config.h
|
---|
[16566] | 8432 | fi
|
---|
[21327] | 8433 | done
|
---|
| 8434 | _ACEOF
|
---|
[16566] | 8435 |
|
---|
[21327] | 8436 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16566] | 8437 |
|
---|
| 8438 | { (exit 0); exit 0; }
|
---|
| 8439 | _ACEOF
|
---|
| 8440 | chmod +x $CONFIG_STATUS
|
---|
| 8441 | ac_clean_files=$ac_clean_files_save
|
---|
| 8442 |
|
---|
| 8443 |
|
---|
| 8444 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8445 | # config.status does its own redirection, appending to config.log.
|
---|
| 8446 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8447 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8448 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8449 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8450 | # appended to by config.status. When coming back to configure, we
|
---|
| 8451 | # need to make the FD available again.
|
---|
| 8452 | if test "$no_create" != yes; then
|
---|
| 8453 | ac_cs_success=:
|
---|
| 8454 | ac_config_status_args=
|
---|
| 8455 | test "$silent" = yes &&
|
---|
| 8456 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8457 | exec 5>/dev/null
|
---|
| 8458 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8459 | exec 5>>config.log
|
---|
| 8460 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8461 | # would make configure fail if this is the last instruction.
|
---|
| 8462 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8463 | fi
|
---|
| 8464 |
|
---|
| 8465 | #
|
---|
| 8466 | # CONFIG_SUBDIRS section.
|
---|
| 8467 | #
|
---|
| 8468 | if test "$no_recursion" != yes; then
|
---|
| 8469 |
|
---|
| 8470 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8471 | ac_sub_configure_args=
|
---|
| 8472 | ac_prev=
|
---|
[21327] | 8473 | for ac_arg in $ac_configure_args; do
|
---|
[16566] | 8474 | if test -n "$ac_prev"; then
|
---|
| 8475 | ac_prev=
|
---|
| 8476 | continue
|
---|
| 8477 | fi
|
---|
| 8478 | case $ac_arg in
|
---|
| 8479 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8480 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8481 | ac_prev=cache_file ;;
|
---|
| 8482 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 8483 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8484 | | --c=*)
|
---|
| 8485 | ;;
|
---|
| 8486 | --config-cache | -C)
|
---|
| 8487 | ;;
|
---|
| 8488 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8489 | ac_prev=srcdir ;;
|
---|
| 8490 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8491 | ;;
|
---|
| 8492 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8493 | ac_prev=prefix ;;
|
---|
| 8494 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8495 | ;;
|
---|
[21327] | 8496 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
[16566] | 8497 | esac
|
---|
| 8498 | done
|
---|
| 8499 |
|
---|
| 8500 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8501 | # in subdir configurations.
|
---|
[21327] | 8502 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[16566] | 8503 |
|
---|
| 8504 | ac_popdir=`pwd`
|
---|
| 8505 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8506 |
|
---|
| 8507 | # Do not complain, so a configure script can configure whichever
|
---|
| 8508 | # parts of a large source tree are present.
|
---|
[21327] | 8509 | test -d $srcdir/$ac_dir || continue
|
---|
[16566] | 8510 |
|
---|
[21327] | 8511 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8512 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8513 | { if $as_mkdir_p; then
|
---|
| 8514 | mkdir -p "$ac_dir"
|
---|
| 8515 | else
|
---|
| 8516 | as_dir="$ac_dir"
|
---|
[16566] | 8517 | as_dirs=
|
---|
[21327] | 8518 | while test ! -d "$as_dir"; do
|
---|
| 8519 | as_dirs="$as_dir $as_dirs"
|
---|
| 8520 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
[16566] | 8521 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8522 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8523 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[21327] | 8524 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8525 | . : '\(.\)' 2>/dev/null ||
|
---|
[16566] | 8526 | echo X"$as_dir" |
|
---|
[21327] | 8527 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8528 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8529 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8530 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8531 | s/.*/./; q'`
|
---|
[16566] | 8532 | done
|
---|
[21327] | 8533 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8534 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8535 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
[16566] | 8536 | { (exit 1); exit 1; }; }; }
|
---|
[21327] | 8537 |
|
---|
[16566] | 8538 | ac_builddir=.
|
---|
| 8539 |
|
---|
[21327] | 8540 | if test "$ac_dir" != .; then
|
---|
[16566] | 8541 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[21327] | 8542 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8543 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8544 | else
|
---|
| 8545 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8546 | fi
|
---|
[16566] | 8547 |
|
---|
| 8548 | case $srcdir in
|
---|
[21327] | 8549 | .) # No --srcdir option. We are building in place.
|
---|
[16566] | 8550 | ac_srcdir=.
|
---|
[21327] | 8551 | if test -z "$ac_top_builddir"; then
|
---|
| 8552 | ac_top_srcdir=.
|
---|
| 8553 | else
|
---|
| 8554 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8555 | fi ;;
|
---|
| 8556 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16566] | 8557 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[21327] | 8558 | ac_top_srcdir=$srcdir ;;
|
---|
| 8559 | *) # Relative path.
|
---|
| 8560 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8561 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16566] | 8562 | esac
|
---|
| 8563 |
|
---|
[21327] | 8564 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8565 | # the directories may not exist.
|
---|
| 8566 | case `pwd` in
|
---|
| 8567 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8568 | *)
|
---|
| 8569 | case "$ac_dir" in
|
---|
| 8570 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8571 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8572 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8573 | esac;;
|
---|
| 8574 | esac
|
---|
| 8575 | case $ac_abs_builddir in
|
---|
| 8576 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8577 | *)
|
---|
| 8578 | case ${ac_top_builddir}. in
|
---|
| 8579 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8580 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8581 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8582 | esac;;
|
---|
| 8583 | esac
|
---|
| 8584 | case $ac_abs_builddir in
|
---|
| 8585 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8586 | *)
|
---|
| 8587 | case $ac_srcdir in
|
---|
| 8588 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8589 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8590 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8591 | esac;;
|
---|
| 8592 | esac
|
---|
| 8593 | case $ac_abs_builddir in
|
---|
| 8594 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8595 | *)
|
---|
| 8596 | case $ac_top_srcdir in
|
---|
| 8597 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8598 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8599 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8600 | esac;;
|
---|
| 8601 | esac
|
---|
[16566] | 8602 |
|
---|
| 8603 |
|
---|
[21327] | 8604 | cd $ac_dir
|
---|
| 8605 |
|
---|
[16566] | 8606 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[21327] | 8607 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8608 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8609 | elif test -f $ac_srcdir/configure; then
|
---|
| 8610 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8611 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 8612 | ac_sub_configure=$ac_configure
|
---|
[16566] | 8613 | else
|
---|
| 8614 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8615 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
| 8616 | ac_sub_configure=
|
---|
| 8617 | fi
|
---|
| 8618 |
|
---|
| 8619 | # The recursion is here.
|
---|
| 8620 | if test -n "$ac_sub_configure"; then
|
---|
| 8621 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 8622 | case $cache_file in
|
---|
| 8623 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[21327] | 8624 | *) # Relative path.
|
---|
| 8625 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[16566] | 8626 | esac
|
---|
| 8627 |
|
---|
[21327] | 8628 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8629 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[16566] | 8630 | # The eval makes quoting arguments work.
|
---|
[21327] | 8631 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8632 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
[16566] | 8633 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8634 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8635 | { (exit 1); exit 1; }; }
|
---|
| 8636 | fi
|
---|
| 8637 |
|
---|
[21327] | 8638 | cd $ac_popdir
|
---|
[16566] | 8639 | done
|
---|
| 8640 | fi
|
---|
| 8641 |
|
---|
| 8642 |
|
---|
| 8643 |
|
---|