[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[8756] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[562] | 4 | #
|
---|
[8756] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[562] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[8756] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[562] | 11 |
|
---|
[8756] | 12 | # Be Bourne compatible
|
---|
| 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+"$@"}'='"$@"'
|
---|
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
| 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 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.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
| 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
| 39 | for as_var in \
|
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 42 | LC_TELEPHONE LC_TIME
|
---|
| 43 | do
|
---|
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
| 46 | else
|
---|
| 47 | $as_unset $as_var
|
---|
| 48 | fi
|
---|
| 49 | done
|
---|
| 50 |
|
---|
| 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | # Name of the executable.
|
---|
| 66 | as_me=`$as_basename "$0" ||
|
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
| 69 | X"$0" : 'X\(/\)$' \| \
|
---|
| 70 | . : '\(.\)' 2>/dev/null ||
|
---|
| 71 | echo X/"$0" |
|
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 75 | s/.*/./; q'`
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 79 | # Avoid depending upon Character Ranges.
|
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 83 | as_cr_digits='0123456789'
|
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 85 |
|
---|
| 86 | # The user is always right.
|
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 88 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 89 | echo "exit 0" >>conf$$.sh
|
---|
| 90 | chmod +x conf$$.sh
|
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 92 | PATH_SEPARATOR=';'
|
---|
| 93 | else
|
---|
| 94 | PATH_SEPARATOR=:
|
---|
| 95 | fi
|
---|
| 96 | rm -f conf$$.sh
|
---|
| 97 | fi
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 | as_lineno_1=$LINENO
|
---|
| 101 | as_lineno_2=$LINENO
|
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 105 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 106 | # relative or not.
|
---|
| 107 | case $0 in
|
---|
| 108 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 110 | for as_dir in $PATH
|
---|
| 111 | do
|
---|
| 112 | IFS=$as_save_IFS
|
---|
| 113 | test -z "$as_dir" && as_dir=.
|
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 115 | done
|
---|
| 116 |
|
---|
| 117 | ;;
|
---|
| 118 | esac
|
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 120 | # in which case we are not to be found in the path.
|
---|
| 121 | if test "x$as_myself" = x; then
|
---|
| 122 | as_myself=$0
|
---|
| 123 | fi
|
---|
| 124 | if test ! -f "$as_myself"; then
|
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
| 126 | { (exit 1); exit 1; }; }
|
---|
| 127 | fi
|
---|
| 128 | case $CONFIG_SHELL in
|
---|
| 129 | '')
|
---|
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 132 | do
|
---|
| 133 | IFS=$as_save_IFS
|
---|
| 134 | test -z "$as_dir" && as_dir=.
|
---|
| 135 | for as_base in sh bash ksh sh5; do
|
---|
| 136 | case $as_dir in
|
---|
| 137 | /*)
|
---|
| 138 | if ("$as_dir/$as_base" -c '
|
---|
| 139 | as_lineno_1=$LINENO
|
---|
| 140 | as_lineno_2=$LINENO
|
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 147 | export CONFIG_SHELL
|
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 149 | fi;;
|
---|
| 150 | esac
|
---|
| 151 | done
|
---|
| 152 | done
|
---|
| 153 | ;;
|
---|
| 154 | esac
|
---|
| 155 |
|
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 158 | # line-number line before each line; the second 'sed' does the real
|
---|
| 159 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 160 | # with the numbered line, and appends trailing '-' during
|
---|
| 161 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 164 | sed '=' <$as_myself |
|
---|
| 165 | sed '
|
---|
| 166 | N
|
---|
| 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 170 | t loop
|
---|
| 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
| 173 | ' >$as_me.lineno &&
|
---|
| 174 | chmod +x $as_me.lineno ||
|
---|
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 176 | { (exit 1); exit 1; }; }
|
---|
| 177 |
|
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 179 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
| 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 |
|
---|
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 189 | ' ECHO_T=' ' ;;
|
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 192 | esac
|
---|
| 193 |
|
---|
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 195 | as_expr=expr
|
---|
| 196 | else
|
---|
| 197 | as_expr=false
|
---|
| 198 | fi
|
---|
| 199 |
|
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 201 | echo >conf$$.file
|
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 205 | if test -f conf$$.exe; then
|
---|
| 206 | # Don't use ln at all; we don't have any links
|
---|
| 207 | as_ln_s='cp -p'
|
---|
| 208 | else
|
---|
| 209 | as_ln_s='ln -s'
|
---|
| 210 | fi
|
---|
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
| 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 217 |
|
---|
| 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 |
|
---|
| 225 | as_executable_p="test -f"
|
---|
| 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 |
|
---|
| 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
| 239 |
|
---|
| 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
| 242 |
|
---|
| 243 |
|
---|
| 244 | # Name of the host.
|
---|
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
| 249 | exec 6>&1
|
---|
| 250 |
|
---|
| 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
[562] | 254 | ac_default_prefix=/usr/local
|
---|
[8756] | 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[562] | 261 |
|
---|
[8756] | 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 |
|
---|
| 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
| 273 |
|
---|
| 274 | # Factoring default headers for most tests.
|
---|
| 275 | ac_includes_default="\
|
---|
| 276 | #include <stdio.h>
|
---|
| 277 | #if HAVE_SYS_TYPES_H
|
---|
| 278 | # include <sys/types.h>
|
---|
| 279 | #endif
|
---|
| 280 | #if HAVE_SYS_STAT_H
|
---|
| 281 | # include <sys/stat.h>
|
---|
| 282 | #endif
|
---|
| 283 | #if STDC_HEADERS
|
---|
| 284 | # include <stdlib.h>
|
---|
| 285 | # include <stddef.h>
|
---|
| 286 | #else
|
---|
| 287 | # if HAVE_STDLIB_H
|
---|
| 288 | # include <stdlib.h>
|
---|
| 289 | # endif
|
---|
| 290 | #endif
|
---|
| 291 | #if HAVE_STRING_H
|
---|
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
| 293 | # include <memory.h>
|
---|
| 294 | # endif
|
---|
| 295 | # include <string.h>
|
---|
| 296 | #endif
|
---|
| 297 | #if HAVE_STRINGS_H
|
---|
| 298 | # include <strings.h>
|
---|
| 299 | #endif
|
---|
| 300 | #if HAVE_INTTYPES_H
|
---|
| 301 | # include <inttypes.h>
|
---|
| 302 | #else
|
---|
| 303 | # if HAVE_STDINT_H
|
---|
| 304 | # include <stdint.h>
|
---|
| 305 | # endif
|
---|
| 306 | #endif
|
---|
| 307 | #if HAVE_UNISTD_H
|
---|
| 308 | # include <unistd.h>
|
---|
| 309 | #endif"
|
---|
| 310 |
|
---|
[16572] | 311 | ac_subdirs_all="$ac_subdirs_all common-src build-src runtime-src"
|
---|
[18487] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE USE_APACHE_HTTPD 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'
|
---|
[8756] | 313 | ac_subst_files=''
|
---|
| 314 |
|
---|
[562] | 315 | # Initialize some variables set by options.
|
---|
[8756] | 316 | ac_init_help=
|
---|
| 317 | ac_init_version=false
|
---|
[562] | 318 | # The variables have the same names as the options, with
|
---|
| 319 | # dashes changed to underlines.
|
---|
[8756] | 320 | cache_file=/dev/null
|
---|
[562] | 321 | exec_prefix=NONE
|
---|
| 322 | no_create=
|
---|
| 323 | no_recursion=
|
---|
| 324 | prefix=NONE
|
---|
| 325 | program_prefix=NONE
|
---|
| 326 | program_suffix=NONE
|
---|
| 327 | program_transform_name=s,x,x,
|
---|
| 328 | silent=
|
---|
| 329 | site=
|
---|
| 330 | srcdir=
|
---|
| 331 | verbose=
|
---|
| 332 | x_includes=NONE
|
---|
| 333 | x_libraries=NONE
|
---|
[8756] | 334 |
|
---|
| 335 | # Installation directory options.
|
---|
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 337 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 338 | # by default will actually change.
|
---|
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[562] | 340 | bindir='${exec_prefix}/bin'
|
---|
| 341 | sbindir='${exec_prefix}/sbin'
|
---|
| 342 | libexecdir='${exec_prefix}/libexec'
|
---|
| 343 | datadir='${prefix}/share'
|
---|
| 344 | sysconfdir='${prefix}/etc'
|
---|
| 345 | sharedstatedir='${prefix}/com'
|
---|
| 346 | localstatedir='${prefix}/var'
|
---|
| 347 | libdir='${exec_prefix}/lib'
|
---|
| 348 | includedir='${prefix}/include'
|
---|
| 349 | oldincludedir='/usr/include'
|
---|
| 350 | infodir='${prefix}/info'
|
---|
| 351 | mandir='${prefix}/man'
|
---|
| 352 |
|
---|
| 353 | ac_prev=
|
---|
| 354 | for ac_option
|
---|
| 355 | do
|
---|
| 356 | # If the previous option needs an argument, assign it.
|
---|
| 357 | if test -n "$ac_prev"; then
|
---|
| 358 | eval "$ac_prev=\$ac_option"
|
---|
| 359 | ac_prev=
|
---|
| 360 | continue
|
---|
| 361 | fi
|
---|
| 362 |
|
---|
[8756] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[562] | 364 |
|
---|
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 366 |
|
---|
[8756] | 367 | case $ac_option in
|
---|
[562] | 368 |
|
---|
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 370 | ac_prev=bindir ;;
|
---|
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 372 | bindir=$ac_optarg ;;
|
---|
[562] | 373 |
|
---|
| 374 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 375 | ac_prev=build_alias ;;
|
---|
[562] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 377 | build_alias=$ac_optarg ;;
|
---|
[562] | 378 |
|
---|
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 381 | ac_prev=cache_file ;;
|
---|
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8756] | 384 | cache_file=$ac_optarg ;;
|
---|
[562] | 385 |
|
---|
[8756] | 386 | --config-cache | -C)
|
---|
| 387 | cache_file=config.cache ;;
|
---|
| 388 |
|
---|
[562] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 390 | ac_prev=datadir ;;
|
---|
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 392 | | --da=*)
|
---|
[8756] | 393 | datadir=$ac_optarg ;;
|
---|
[562] | 394 |
|
---|
| 395 | -disable-* | --disable-*)
|
---|
[8756] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 397 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 400 | { (exit 1); exit 1; }; }
|
---|
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 402 | eval "enable_$ac_feature=no" ;;
|
---|
[562] | 403 |
|
---|
| 404 | -enable-* | --enable-*)
|
---|
[8756] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 406 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 409 | { (exit 1); exit 1; }; }
|
---|
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 411 | case $ac_option in
|
---|
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[562] | 413 | *) ac_optarg=yes ;;
|
---|
| 414 | esac
|
---|
[8756] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[562] | 416 |
|
---|
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 419 | | --exec | --exe | --ex)
|
---|
| 420 | ac_prev=exec_prefix ;;
|
---|
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 423 | | --exec=* | --exe=* | --ex=*)
|
---|
[8756] | 424 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 425 |
|
---|
| 426 | -gas | --gas | --ga | --g)
|
---|
| 427 | # Obsolete; use --with-gas.
|
---|
| 428 | with_gas=yes ;;
|
---|
| 429 |
|
---|
[8756] | 430 | -help | --help | --hel | --he | -h)
|
---|
| 431 | ac_init_help=long ;;
|
---|
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 433 | ac_init_help=recursive ;;
|
---|
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 435 | ac_init_help=short ;;
|
---|
[562] | 436 |
|
---|
| 437 | -host | --host | --hos | --ho)
|
---|
[8756] | 438 | ac_prev=host_alias ;;
|
---|
[562] | 439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 440 | host_alias=$ac_optarg ;;
|
---|
[562] | 441 |
|
---|
| 442 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 443 | | --includ | --inclu | --incl | --inc)
|
---|
| 444 | ac_prev=includedir ;;
|
---|
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8756] | 447 | includedir=$ac_optarg ;;
|
---|
[562] | 448 |
|
---|
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 450 | ac_prev=infodir ;;
|
---|
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 452 | infodir=$ac_optarg ;;
|
---|
[562] | 453 |
|
---|
| 454 | -libdir | --libdir | --libdi | --libd)
|
---|
| 455 | ac_prev=libdir ;;
|
---|
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 457 | libdir=$ac_optarg ;;
|
---|
[562] | 458 |
|
---|
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 460 | | --libexe | --libex | --libe)
|
---|
| 461 | ac_prev=libexecdir ;;
|
---|
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 463 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8756] | 464 | libexecdir=$ac_optarg ;;
|
---|
[562] | 465 |
|
---|
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 467 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 468 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 469 | ac_prev=localstatedir ;;
|
---|
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[8756] | 473 | localstatedir=$ac_optarg ;;
|
---|
[562] | 474 |
|
---|
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 476 | ac_prev=mandir ;;
|
---|
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 478 | mandir=$ac_optarg ;;
|
---|
[562] | 479 |
|
---|
| 480 | -nfp | --nfp | --nf)
|
---|
| 481 | # Obsolete; use --without-fp.
|
---|
| 482 | with_fp=no ;;
|
---|
| 483 |
|
---|
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[8756] | 485 | | --no-cr | --no-c | -n)
|
---|
[562] | 486 | no_create=yes ;;
|
---|
| 487 |
|
---|
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 490 | no_recursion=yes ;;
|
---|
| 491 |
|
---|
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 494 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 495 | ac_prev=oldincludedir ;;
|
---|
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8756] | 499 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 500 |
|
---|
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 502 | ac_prev=prefix ;;
|
---|
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 504 | prefix=$ac_optarg ;;
|
---|
[562] | 505 |
|
---|
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 507 | | --program-pre | --program-pr | --program-p)
|
---|
| 508 | ac_prev=program_prefix ;;
|
---|
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8756] | 511 | program_prefix=$ac_optarg ;;
|
---|
[562] | 512 |
|
---|
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 514 | | --program-suf | --program-su | --program-s)
|
---|
| 515 | ac_prev=program_suffix ;;
|
---|
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8756] | 518 | program_suffix=$ac_optarg ;;
|
---|
[562] | 519 |
|
---|
| 520 | -program-transform-name | --program-transform-name \
|
---|
| 521 | | --program-transform-nam | --program-transform-na \
|
---|
| 522 | | --program-transform-n | --program-transform- \
|
---|
| 523 | | --program-transform | --program-transfor \
|
---|
| 524 | | --program-transfo | --program-transf \
|
---|
| 525 | | --program-trans | --program-tran \
|
---|
| 526 | | --progr-tra | --program-tr | --program-t)
|
---|
| 527 | ac_prev=program_transform_name ;;
|
---|
| 528 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 529 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 530 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 531 | | --program-transform=* | --program-transfor=* \
|
---|
| 532 | | --program-transfo=* | --program-transf=* \
|
---|
| 533 | | --program-trans=* | --program-tran=* \
|
---|
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8756] | 535 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 536 |
|
---|
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 538 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 539 | silent=yes ;;
|
---|
| 540 |
|
---|
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 542 | ac_prev=sbindir ;;
|
---|
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 544 | | --sbi=* | --sb=*)
|
---|
[8756] | 545 | sbindir=$ac_optarg ;;
|
---|
[562] | 546 |
|
---|
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 549 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 550 | | --sha | --sh)
|
---|
| 551 | ac_prev=sharedstatedir ;;
|
---|
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 555 | | --sha=* | --sh=*)
|
---|
[8756] | 556 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 557 |
|
---|
| 558 | -site | --site | --sit)
|
---|
| 559 | ac_prev=site ;;
|
---|
| 560 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 561 | site=$ac_optarg ;;
|
---|
[562] | 562 |
|
---|
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 564 | ac_prev=srcdir ;;
|
---|
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 566 | srcdir=$ac_optarg ;;
|
---|
[562] | 567 |
|
---|
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 569 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 570 | ac_prev=sysconfdir ;;
|
---|
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8756] | 573 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 574 |
|
---|
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 576 | ac_prev=target_alias ;;
|
---|
[562] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 578 | target_alias=$ac_optarg ;;
|
---|
[562] | 579 |
|
---|
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 581 | verbose=yes ;;
|
---|
| 582 |
|
---|
[8756] | 583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 584 | ac_init_version=: ;;
|
---|
[562] | 585 |
|
---|
| 586 | -with-* | --with-*)
|
---|
[8756] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 588 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 591 | { (exit 1); exit 1; }; }
|
---|
[562] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
[8756] | 593 | case $ac_option in
|
---|
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[562] | 595 | *) ac_optarg=yes ;;
|
---|
| 596 | esac
|
---|
[8756] | 597 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[562] | 598 |
|
---|
| 599 | -without-* | --without-*)
|
---|
[8756] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 601 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 604 | { (exit 1); exit 1; }; }
|
---|
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 606 | eval "with_$ac_package=no" ;;
|
---|
[562] | 607 |
|
---|
| 608 | --x)
|
---|
| 609 | # Obsolete; use --with-x.
|
---|
| 610 | with_x=yes ;;
|
---|
| 611 |
|
---|
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 613 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 614 | ac_prev=x_includes ;;
|
---|
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8756] | 617 | x_includes=$ac_optarg ;;
|
---|
[562] | 618 |
|
---|
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 621 | ac_prev=x_libraries ;;
|
---|
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8756] | 624 | x_libraries=$ac_optarg ;;
|
---|
[562] | 625 |
|
---|
[8756] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 627 | Try \`$0 --help' for more information." >&2
|
---|
| 628 | { (exit 1); exit 1; }; }
|
---|
[562] | 629 | ;;
|
---|
| 630 |
|
---|
[8756] | 631 | *=*)
|
---|
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 633 | # Reject names that are not valid shell variable names.
|
---|
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 636 | { (exit 1); exit 1; }; }
|
---|
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 638 | eval "$ac_envvar='$ac_optarg'"
|
---|
| 639 | export $ac_envvar ;;
|
---|
| 640 |
|
---|
[562] | 641 | *)
|
---|
[8756] | 642 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 647 | ;;
|
---|
| 648 |
|
---|
| 649 | esac
|
---|
| 650 | done
|
---|
| 651 |
|
---|
| 652 | if test -n "$ac_prev"; then
|
---|
[8756] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 655 | { (exit 1); exit 1; }; }
|
---|
[562] | 656 | fi
|
---|
| 657 |
|
---|
[8756] | 658 | # Be sure to have absolute paths.
|
---|
| 659 | for ac_var in exec_prefix prefix
|
---|
| 660 | do
|
---|
| 661 | eval ac_val=$`echo $ac_var`
|
---|
| 662 | case $ac_val in
|
---|
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 665 | { (exit 1); exit 1; }; };;
|
---|
| 666 | esac
|
---|
| 667 | done
|
---|
[8200] | 668 |
|
---|
[8756] | 669 | # Be sure to have absolute paths.
|
---|
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[562] | 672 | do
|
---|
[8756] | 673 | eval ac_val=$`echo $ac_var`
|
---|
| 674 | case $ac_val in
|
---|
| 675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 677 | { (exit 1); exit 1; }; };;
|
---|
[562] | 678 | esac
|
---|
| 679 | done
|
---|
| 680 |
|
---|
[8756] | 681 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 682 | # used to hold the argument of --host etc.
|
---|
| 683 | # FIXME: To remove some day.
|
---|
| 684 | build=$build_alias
|
---|
| 685 | host=$host_alias
|
---|
| 686 | target=$target_alias
|
---|
[562] | 687 |
|
---|
[8756] | 688 | # FIXME: To remove some day.
|
---|
| 689 | if test "x$host_alias" != x; then
|
---|
| 690 | if test "x$build_alias" = x; then
|
---|
| 691 | cross_compiling=maybe
|
---|
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 694 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 695 | cross_compiling=yes
|
---|
| 696 | fi
|
---|
| 697 | fi
|
---|
[562] | 698 |
|
---|
[8756] | 699 | ac_tool_prefix=
|
---|
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 701 |
|
---|
[8756] | 702 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 703 |
|
---|
| 704 |
|
---|
[562] | 705 | # Find the source files, if location was not specified.
|
---|
| 706 | if test -z "$srcdir"; then
|
---|
| 707 | ac_srcdir_defaulted=yes
|
---|
| 708 | # Try the directory containing this script, then its parent.
|
---|
[8756] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 712 | X"$0" : 'X\(//\)$' \| \
|
---|
| 713 | X"$0" : 'X\(/\)' \| \
|
---|
| 714 | . : '\(.\)' 2>/dev/null ||
|
---|
| 715 | echo X"$0" |
|
---|
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 720 | s/.*/./; q'`
|
---|
[562] | 721 | srcdir=$ac_confdir
|
---|
| 722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 723 | srcdir=..
|
---|
| 724 | fi
|
---|
| 725 | else
|
---|
| 726 | ac_srcdir_defaulted=no
|
---|
| 727 | fi
|
---|
| 728 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 729 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
[8756] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
| 731 | { (exit 1); exit 1; }; }
|
---|
[562] | 732 | else
|
---|
[8756] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 734 | { (exit 1); exit 1; }; }
|
---|
[562] | 735 | fi
|
---|
| 736 | fi
|
---|
[8756] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 739 | { (exit 1); exit 1; }; }
|
---|
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 741 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 742 | ac_env_build_alias_value=$build_alias
|
---|
| 743 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 744 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 745 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 746 | ac_env_host_alias_value=$host_alias
|
---|
| 747 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 748 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 749 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 750 | ac_env_target_alias_value=$target_alias
|
---|
| 751 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 752 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 753 | ac_env_CC_set=${CC+set}
|
---|
| 754 | ac_env_CC_value=$CC
|
---|
| 755 | ac_cv_env_CC_set=${CC+set}
|
---|
| 756 | ac_cv_env_CC_value=$CC
|
---|
| 757 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 758 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 762 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 769 | ac_env_CXX_set=${CXX+set}
|
---|
| 770 | ac_env_CXX_value=$CXX
|
---|
| 771 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 772 | ac_cv_env_CXX_value=$CXX
|
---|
| 773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 774 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 777 | ac_env_CPP_set=${CPP+set}
|
---|
| 778 | ac_env_CPP_value=$CPP
|
---|
| 779 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 780 | ac_cv_env_CPP_value=$CPP
|
---|
[562] | 781 |
|
---|
[8756] | 782 | #
|
---|
| 783 | # Report the --help message.
|
---|
| 784 | #
|
---|
| 785 | if test "$ac_init_help" = "long"; then
|
---|
| 786 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 787 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 788 | cat <<_ACEOF
|
---|
| 789 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 790 |
|
---|
| 791 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 792 |
|
---|
| 793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 794 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 795 |
|
---|
| 796 | Defaults for the options are specified in brackets.
|
---|
| 797 |
|
---|
| 798 | Configuration:
|
---|
| 799 | -h, --help display this help and exit
|
---|
| 800 | --help=short display options specific to this package
|
---|
| 801 | --help=recursive display the short help of all the included packages
|
---|
| 802 | -V, --version display version information and exit
|
---|
| 803 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 804 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 805 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 806 | -n, --no-create do not create output files
|
---|
| 807 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 808 |
|
---|
| 809 | _ACEOF
|
---|
| 810 |
|
---|
| 811 | cat <<_ACEOF
|
---|
| 812 | Installation directories:
|
---|
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 814 | [$ac_default_prefix]
|
---|
| 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 816 | [PREFIX]
|
---|
| 817 |
|
---|
| 818 | By default, \`make install' will install all the files in
|
---|
| 819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 821 | for instance \`--prefix=\$HOME'.
|
---|
| 822 |
|
---|
| 823 | For better control, use the options below.
|
---|
| 824 |
|
---|
| 825 | Fine tuning of the installation directories:
|
---|
| 826 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 827 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 828 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 833 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 834 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 835 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 836 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 837 | --mandir=DIR man documentation [PREFIX/man]
|
---|
| 838 | _ACEOF
|
---|
| 839 |
|
---|
| 840 | cat <<\_ACEOF
|
---|
| 841 |
|
---|
| 842 | System types:
|
---|
| 843 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 844 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 845 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 846 | _ACEOF
|
---|
| 847 | fi
|
---|
| 848 |
|
---|
| 849 | if test -n "$ac_init_help"; then
|
---|
| 850 |
|
---|
| 851 | cat <<\_ACEOF
|
---|
| 852 |
|
---|
| 853 | Optional Features:
|
---|
| 854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 856 | --enable-corba Enable CORBA support
|
---|
| 857 | --enable-z3950 Enable Z39.50 client support
|
---|
[15816] | 858 | --disable-yaz Disable YAZ compilation
|
---|
| 859 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[16288] | 860 | --disable-sqlite Disable SQLite support
|
---|
[19263] | 861 | --disable-apache-httpd Disable Apache httpd support
|
---|
[8756] | 862 |
|
---|
| 863 | Optional Packages:
|
---|
| 864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 866 | --with-micodir Use installed MICO directory
|
---|
| 867 | --with-dmalloc use dmalloc, as in
|
---|
| 868 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 869 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 870 |
|
---|
| 871 | Some influential environment variables:
|
---|
| 872 | CC C compiler command
|
---|
| 873 | CFLAGS C compiler flags
|
---|
| 874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 875 | nonstandard directory <lib dir>
|
---|
| 876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 877 | headers in a nonstandard directory <include dir>
|
---|
| 878 | CXX C++ compiler command
|
---|
| 879 | CXXFLAGS C++ compiler flags
|
---|
| 880 | CPP C preprocessor
|
---|
| 881 |
|
---|
| 882 | Use these variables to override the choices made by `configure' or to help
|
---|
| 883 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 884 |
|
---|
| 885 | _ACEOF
|
---|
| 886 | fi
|
---|
| 887 |
|
---|
| 888 | if test "$ac_init_help" = "recursive"; then
|
---|
| 889 | # If there are subdirs, report their specific --help.
|
---|
| 890 | ac_popdir=`pwd`
|
---|
| 891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 892 | test -d $ac_dir || continue
|
---|
| 893 | ac_builddir=.
|
---|
| 894 |
|
---|
| 895 | if test "$ac_dir" != .; then
|
---|
| 896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 897 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 899 | else
|
---|
| 900 | ac_dir_suffix= ac_top_builddir=
|
---|
| 901 | fi
|
---|
| 902 |
|
---|
| 903 | case $srcdir in
|
---|
| 904 | .) # No --srcdir option. We are building in place.
|
---|
| 905 | ac_srcdir=.
|
---|
| 906 | if test -z "$ac_top_builddir"; then
|
---|
| 907 | ac_top_srcdir=.
|
---|
| 908 | else
|
---|
| 909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 910 | fi ;;
|
---|
| 911 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 912 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 913 | ac_top_srcdir=$srcdir ;;
|
---|
| 914 | *) # Relative path.
|
---|
| 915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 916 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 917 | esac
|
---|
| 918 |
|
---|
| 919 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 920 | # the directories may not exist.
|
---|
| 921 | case `pwd` in
|
---|
| 922 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 923 | *)
|
---|
| 924 | case "$ac_dir" in
|
---|
| 925 | .) ac_abs_builddir=`pwd`;;
|
---|
| 926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 927 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 928 | esac;;
|
---|
| 929 | esac
|
---|
| 930 | case $ac_abs_builddir in
|
---|
| 931 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 932 | *)
|
---|
| 933 | case ${ac_top_builddir}. in
|
---|
| 934 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 937 | esac;;
|
---|
| 938 | esac
|
---|
| 939 | case $ac_abs_builddir in
|
---|
| 940 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 941 | *)
|
---|
| 942 | case $ac_srcdir in
|
---|
| 943 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 946 | esac;;
|
---|
| 947 | esac
|
---|
| 948 | case $ac_abs_builddir in
|
---|
| 949 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 950 | *)
|
---|
| 951 | case $ac_top_srcdir in
|
---|
| 952 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 955 | esac;;
|
---|
| 956 | esac
|
---|
| 957 |
|
---|
| 958 | cd $ac_dir
|
---|
| 959 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 960 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 961 | echo
|
---|
| 962 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 963 | elif test -f $ac_srcdir/configure; then
|
---|
| 964 | echo
|
---|
| 965 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 966 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 967 | test -f $ac_srcdir/configure.in; then
|
---|
| 968 | echo
|
---|
| 969 | $ac_configure --help
|
---|
| 970 | else
|
---|
| 971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 972 | fi
|
---|
| 973 | cd $ac_popdir
|
---|
| 974 | done
|
---|
| 975 | fi
|
---|
| 976 |
|
---|
| 977 | test -n "$ac_init_help" && exit 0
|
---|
| 978 | if $ac_init_version; then
|
---|
| 979 | cat <<\_ACEOF
|
---|
| 980 |
|
---|
| 981 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 982 | This configure script is free software; the Free Software Foundation
|
---|
| 983 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 984 | _ACEOF
|
---|
| 985 | exit 0
|
---|
| 986 | fi
|
---|
| 987 | exec 5>config.log
|
---|
| 988 | cat >&5 <<_ACEOF
|
---|
| 989 | This file contains any messages produced by compilers while
|
---|
| 990 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 991 |
|
---|
| 992 | It was created by $as_me, which was
|
---|
| 993 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 994 |
|
---|
| 995 | $ $0 $@
|
---|
| 996 |
|
---|
| 997 | _ACEOF
|
---|
| 998 | {
|
---|
| 999 | cat <<_ASUNAME
|
---|
| 1000 | ## --------- ##
|
---|
| 1001 | ## Platform. ##
|
---|
| 1002 | ## --------- ##
|
---|
| 1003 |
|
---|
| 1004 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1005 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1006 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1007 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1008 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1009 |
|
---|
| 1010 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1011 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1012 |
|
---|
| 1013 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1014 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1015 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1016 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1018 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1019 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1020 |
|
---|
| 1021 | _ASUNAME
|
---|
| 1022 |
|
---|
| 1023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1024 | for as_dir in $PATH
|
---|
| 1025 | do
|
---|
| 1026 | IFS=$as_save_IFS
|
---|
| 1027 | test -z "$as_dir" && as_dir=.
|
---|
| 1028 | echo "PATH: $as_dir"
|
---|
| 1029 | done
|
---|
| 1030 |
|
---|
| 1031 | } >&5
|
---|
| 1032 |
|
---|
| 1033 | cat >&5 <<_ACEOF
|
---|
| 1034 |
|
---|
| 1035 |
|
---|
| 1036 | ## ----------- ##
|
---|
| 1037 | ## Core tests. ##
|
---|
| 1038 | ## ----------- ##
|
---|
| 1039 |
|
---|
| 1040 | _ACEOF
|
---|
| 1041 |
|
---|
| 1042 |
|
---|
| 1043 | # Keep a trace of the command line.
|
---|
| 1044 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1045 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1046 | # Also quote any args containing shell meta-characters.
|
---|
| 1047 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1048 | ac_configure_args=
|
---|
| 1049 | ac_configure_args0=
|
---|
| 1050 | ac_configure_args1=
|
---|
| 1051 | ac_sep=
|
---|
| 1052 | ac_must_keep_next=false
|
---|
| 1053 | for ac_pass in 1 2
|
---|
| 1054 | do
|
---|
| 1055 | for ac_arg
|
---|
| 1056 | do
|
---|
| 1057 | case $ac_arg in
|
---|
| 1058 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1060 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1061 | continue ;;
|
---|
| 1062 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1063 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1064 | esac
|
---|
| 1065 | case $ac_pass in
|
---|
| 1066 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1067 | 2)
|
---|
| 1068 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1069 | if test $ac_must_keep_next = true; then
|
---|
| 1070 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1071 | else
|
---|
| 1072 | case $ac_arg in
|
---|
| 1073 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1074 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1075 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1076 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1077 | case "$ac_configure_args0 " in
|
---|
| 1078 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1079 | esac
|
---|
| 1080 | ;;
|
---|
| 1081 | -* ) ac_must_keep_next=true ;;
|
---|
| 1082 | esac
|
---|
| 1083 | fi
|
---|
| 1084 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1085 | # Get rid of the leading space.
|
---|
| 1086 | ac_sep=" "
|
---|
| 1087 | ;;
|
---|
| 1088 | esac
|
---|
| 1089 | done
|
---|
| 1090 | done
|
---|
| 1091 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1092 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1093 |
|
---|
| 1094 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1095 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1096 | # would cause problems or look ugly.
|
---|
| 1097 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1098 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
| 1099 | trap 'exit_status=$?
|
---|
| 1100 | # Save into config.log some information that might help in debugging.
|
---|
| 1101 | {
|
---|
| 1102 | echo
|
---|
| 1103 |
|
---|
| 1104 | cat <<\_ASBOX
|
---|
| 1105 | ## ---------------- ##
|
---|
| 1106 | ## Cache variables. ##
|
---|
| 1107 | ## ---------------- ##
|
---|
| 1108 | _ASBOX
|
---|
| 1109 | echo
|
---|
| 1110 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1111 | {
|
---|
| 1112 | (set) 2>&1 |
|
---|
| 1113 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1114 | *ac_space=\ *)
|
---|
| 1115 | sed -n \
|
---|
| 1116 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1118 | ;;
|
---|
| 1119 | *)
|
---|
| 1120 | sed -n \
|
---|
| 1121 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 1122 | ;;
|
---|
| 1123 | esac;
|
---|
| 1124 | }
|
---|
| 1125 | echo
|
---|
| 1126 |
|
---|
| 1127 | cat <<\_ASBOX
|
---|
| 1128 | ## ----------------- ##
|
---|
| 1129 | ## Output variables. ##
|
---|
| 1130 | ## ----------------- ##
|
---|
| 1131 | _ASBOX
|
---|
| 1132 | echo
|
---|
| 1133 | for ac_var in $ac_subst_vars
|
---|
| 1134 | do
|
---|
| 1135 | eval ac_val=$`echo $ac_var`
|
---|
| 1136 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1137 | done | sort
|
---|
| 1138 | echo
|
---|
| 1139 |
|
---|
| 1140 | if test -n "$ac_subst_files"; then
|
---|
| 1141 | cat <<\_ASBOX
|
---|
| 1142 | ## ------------- ##
|
---|
| 1143 | ## Output files. ##
|
---|
| 1144 | ## ------------- ##
|
---|
| 1145 | _ASBOX
|
---|
| 1146 | echo
|
---|
| 1147 | for ac_var in $ac_subst_files
|
---|
| 1148 | do
|
---|
| 1149 | eval ac_val=$`echo $ac_var`
|
---|
| 1150 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1151 | done | sort
|
---|
| 1152 | echo
|
---|
| 1153 | fi
|
---|
| 1154 |
|
---|
| 1155 | if test -s confdefs.h; then
|
---|
| 1156 | cat <<\_ASBOX
|
---|
| 1157 | ## ----------- ##
|
---|
| 1158 | ## confdefs.h. ##
|
---|
| 1159 | ## ----------- ##
|
---|
| 1160 | _ASBOX
|
---|
| 1161 | echo
|
---|
| 1162 | sed "/^$/d" confdefs.h | sort
|
---|
| 1163 | echo
|
---|
| 1164 | fi
|
---|
| 1165 | test "$ac_signal" != 0 &&
|
---|
| 1166 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1167 | echo "$as_me: exit $exit_status"
|
---|
| 1168 | } >&5
|
---|
| 1169 | rm -f core *.core &&
|
---|
| 1170 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 1171 | exit $exit_status
|
---|
| 1172 | ' 0
|
---|
| 1173 | for ac_signal in 1 2 13 15; do
|
---|
| 1174 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1175 | done
|
---|
| 1176 | ac_signal=0
|
---|
| 1177 |
|
---|
| 1178 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1179 | rm -rf conftest* confdefs.h
|
---|
| 1180 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1181 | echo >confdefs.h
|
---|
| 1182 |
|
---|
| 1183 | # Predefined preprocessor variables.
|
---|
| 1184 |
|
---|
| 1185 | cat >>confdefs.h <<_ACEOF
|
---|
| 1186 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1187 | _ACEOF
|
---|
| 1188 |
|
---|
| 1189 |
|
---|
| 1190 | cat >>confdefs.h <<_ACEOF
|
---|
| 1191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1192 | _ACEOF
|
---|
| 1193 |
|
---|
| 1194 |
|
---|
| 1195 | cat >>confdefs.h <<_ACEOF
|
---|
| 1196 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1197 | _ACEOF
|
---|
| 1198 |
|
---|
| 1199 |
|
---|
| 1200 | cat >>confdefs.h <<_ACEOF
|
---|
| 1201 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1202 | _ACEOF
|
---|
| 1203 |
|
---|
| 1204 |
|
---|
| 1205 | cat >>confdefs.h <<_ACEOF
|
---|
| 1206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1207 | _ACEOF
|
---|
| 1208 |
|
---|
| 1209 |
|
---|
| 1210 | # Let the site file select an alternate cache file if it wants to.
|
---|
[562] | 1211 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1212 | if test -z "$CONFIG_SITE"; then
|
---|
| 1213 | if test "x$prefix" != xNONE; then
|
---|
| 1214 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1215 | else
|
---|
| 1216 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1217 | fi
|
---|
| 1218 | fi
|
---|
| 1219 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1220 | if test -r "$ac_site_file"; then
|
---|
[8756] | 1221 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1222 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1223 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[562] | 1224 | . "$ac_site_file"
|
---|
| 1225 | fi
|
---|
| 1226 | done
|
---|
| 1227 |
|
---|
| 1228 | if test -r "$cache_file"; then
|
---|
[8756] | 1229 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1230 | # files actually), so we avoid doing that.
|
---|
| 1231 | if test -f "$cache_file"; then
|
---|
| 1232 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1233 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1234 | case $cache_file in
|
---|
| 1235 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1236 | *) . ./$cache_file;;
|
---|
| 1237 | esac
|
---|
| 1238 | fi
|
---|
[562] | 1239 | else
|
---|
[8756] | 1240 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1241 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1242 | >$cache_file
|
---|
[562] | 1243 | fi
|
---|
| 1244 |
|
---|
[8756] | 1245 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1246 | # value.
|
---|
| 1247 | ac_cache_corrupted=false
|
---|
| 1248 | for ac_var in `(set) 2>&1 |
|
---|
| 1249 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
| 1250 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1251 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1252 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1253 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1254 | case $ac_old_set,$ac_new_set in
|
---|
| 1255 | set,)
|
---|
| 1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1257 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1258 | ac_cache_corrupted=: ;;
|
---|
| 1259 | ,set)
|
---|
| 1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1261 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1262 | ac_cache_corrupted=: ;;
|
---|
| 1263 | ,);;
|
---|
| 1264 | *)
|
---|
| 1265 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1266 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1267 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1268 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1269 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1270 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1271 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1272 | ac_cache_corrupted=:
|
---|
| 1273 | fi;;
|
---|
| 1274 | esac
|
---|
| 1275 | # Pass precious variables to config.status.
|
---|
| 1276 | if test "$ac_new_set" = set; then
|
---|
| 1277 | case $ac_new_val in
|
---|
| 1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1279 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1280 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1281 | esac
|
---|
| 1282 | case " $ac_configure_args " in
|
---|
| 1283 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1284 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1285 | esac
|
---|
| 1286 | fi
|
---|
| 1287 | done
|
---|
| 1288 | if $ac_cache_corrupted; then
|
---|
| 1289 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1290 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1291 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1292 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1293 | { (exit 1); exit 1; }; }
|
---|
| 1294 | fi
|
---|
| 1295 |
|
---|
[562] | 1296 | ac_ext=c
|
---|
| 1297 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8756] | 1298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 1301 |
|
---|
| 1302 |
|
---|
| 1303 |
|
---|
[8200] | 1304 |
|
---|
| 1305 |
|
---|
[8756] | 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
[562] | 1323 | PACKAGE=gsdl
|
---|
[16572] | 1324 | VERSION=2.82-svn
|
---|
[8756] | 1325 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1326 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1327 | _ACEOF
|
---|
[562] | 1328 |
|
---|
[8756] | 1329 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1330 | #define VERSION "$VERSION"
|
---|
[8756] | 1331 | _ACEOF
|
---|
[562] | 1332 |
|
---|
[8200] | 1333 |
|
---|
| 1334 |
|
---|
| 1335 |
|
---|
[18487] | 1336 |
|
---|
[567] | 1337 | USE_FASTCGI=0
|
---|
| 1338 | if test USE_FASTCGI = 1; then
|
---|
[8756] | 1339 | cat >>confdefs.h <<\_ACEOF
|
---|
[567] | 1340 | #define USE_FASTCGI 1
|
---|
[8756] | 1341 | _ACEOF
|
---|
[567] | 1342 |
|
---|
[8200] | 1343 |
|
---|
[3631] | 1344 | fi
|
---|
[567] | 1345 |
|
---|
[3631] | 1346 | if test USE_LANGACTION = 1; then
|
---|
[8756] | 1347 | cat >>confdefs.h <<\_ACEOF
|
---|
[3631] | 1348 | #define USE_LANGACTION 1
|
---|
[8756] | 1349 | _ACEOF
|
---|
[3631] | 1350 |
|
---|
[8200] | 1351 |
|
---|
[567] | 1352 | fi
|
---|
| 1353 |
|
---|
[1860] | 1354 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1355 | if test "${enable_corba+set}" = set; then
|
---|
| 1356 | enableval="$enable_corba"
|
---|
[2471] | 1357 | USE_CORBA=1
|
---|
[1860] | 1358 | else
|
---|
[2471] | 1359 | USE_CORBA=0
|
---|
[8756] | 1360 | fi;
|
---|
| 1361 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1362 | #define USE_CORBA $USE_CORBA
|
---|
[8756] | 1363 | _ACEOF
|
---|
[1860] | 1364 |
|
---|
[8200] | 1365 |
|
---|
| 1366 |
|
---|
[8756] | 1367 |
|
---|
[1860] | 1368 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1369 | if test "${with_micodir+set}" = set; then
|
---|
| 1370 | withval="$with_micodir"
|
---|
[2471] | 1371 | MICO_DIR=$enableval
|
---|
[1860] | 1372 | else
|
---|
[2471] | 1373 | MICO_DIR="default"
|
---|
[8756] | 1374 | fi;
|
---|
| 1375 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1376 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1377 | _ACEOF
|
---|
[1860] | 1378 |
|
---|
[8200] | 1379 |
|
---|
| 1380 |
|
---|
[1938] | 1381 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1382 | if test "${enable_z3950+set}" = set; then
|
---|
| 1383 | enableval="$enable_z3950"
|
---|
| 1384 | USE_Z3950=1
|
---|
| 1385 | else
|
---|
| 1386 | USE_Z3950=0
|
---|
[8756] | 1387 | fi;
|
---|
[2297] | 1388 | if test USE_Z3950 = 1; then
|
---|
[8756] | 1389 | cat >>confdefs.h <<\_ACEOF
|
---|
[2297] | 1390 | #define USE_Z3950 $USE_Z3950
|
---|
[8756] | 1391 | _ACEOF
|
---|
[1938] | 1392 |
|
---|
[8200] | 1393 |
|
---|
[2297] | 1394 | fi
|
---|
[1938] | 1395 |
|
---|
[12492] | 1396 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1397 | if test "${enable_yaz+set}" = set; then
|
---|
| 1398 | enableval="$enable_yaz"
|
---|
| 1399 | USE_YAZ=0
|
---|
| 1400 | else
|
---|
| 1401 | USE_YAZ=1
|
---|
| 1402 | fi;
|
---|
| 1403 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1404 | #define USE_YAZ $USE_YAZ
|
---|
| 1405 | _ACEOF
|
---|
[8756] | 1406 |
|
---|
[12492] | 1407 |
|
---|
| 1408 |
|
---|
[12922] | 1409 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1410 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1411 | enableval="$enable_accentfold"
|
---|
| 1412 | ENABLE_ACCENTFOLD=0
|
---|
| 1413 | else
|
---|
| 1414 | ENABLE_ACCENTFOLD=1
|
---|
| 1415 | fi;
|
---|
| 1416 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1417 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1418 | _ACEOF
|
---|
| 1419 |
|
---|
| 1420 |
|
---|
[15901] | 1421 |
|
---|
[15794] | 1422 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
| 1423 | if test "${enable_sqlite+set}" = set; then
|
---|
| 1424 | enableval="$enable_sqlite"
|
---|
[16288] | 1425 | USE_SQLITE=0
|
---|
| 1426 | else
|
---|
[15794] | 1427 | USE_SQLITE=1
|
---|
| 1428 | fi;
|
---|
| 1429 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1430 | #define USE_SQLITE $USE_SQLITE
|
---|
| 1431 | _ACEOF
|
---|
[12922] | 1432 |
|
---|
[15794] | 1433 |
|
---|
[15901] | 1434 |
|
---|
[18487] | 1435 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
| 1436 | if test "${enable_apache_httpd+set}" = set; then
|
---|
| 1437 | enableval="$enable_apache_httpd"
|
---|
[19263] | 1438 | USE_APACHE_HTTPD=0
|
---|
| 1439 | else
|
---|
[18487] | 1440 | USE_APACHE_HTTPD=1
|
---|
| 1441 | fi;
|
---|
| 1442 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1443 | #define USE_APACHE_HTTPD $USE_APACHE_HTTPD
|
---|
| 1444 | _ACEOF
|
---|
| 1445 |
|
---|
| 1446 |
|
---|
| 1447 |
|
---|
| 1448 |
|
---|
[14169] | 1449 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 1450 |
|
---|
[1722] | 1451 | if test -z "$CFLAGS"; then
|
---|
[794] | 1452 | CFLAGS=-O2
|
---|
[1722] | 1453 | fi
|
---|
[576] | 1454 |
|
---|
| 1455 |
|
---|
[15551] | 1456 |
|
---|
[8756] | 1457 | ac_ext=c
|
---|
| 1458 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1459 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1460 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1461 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1462 | if test -n "$ac_tool_prefix"; then
|
---|
| 1463 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1464 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 1465 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1467 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1468 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1469 | else
|
---|
| 1470 | if test -n "$CC"; then
|
---|
| 1471 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1472 | else
|
---|
| 1473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1474 | for as_dir in $PATH
|
---|
| 1475 | do
|
---|
| 1476 | IFS=$as_save_IFS
|
---|
| 1477 | test -z "$as_dir" && as_dir=.
|
---|
| 1478 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1480 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1482 | break 2
|
---|
| 1483 | fi
|
---|
| 1484 | done
|
---|
| 1485 | done
|
---|
| 1486 |
|
---|
| 1487 | fi
|
---|
| 1488 | fi
|
---|
| 1489 | CC=$ac_cv_prog_CC
|
---|
| 1490 | if test -n "$CC"; then
|
---|
| 1491 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1492 | echo "${ECHO_T}$CC" >&6
|
---|
| 1493 | else
|
---|
| 1494 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1495 | echo "${ECHO_T}no" >&6
|
---|
| 1496 | fi
|
---|
| 1497 |
|
---|
| 1498 | fi
|
---|
| 1499 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1500 | ac_ct_CC=$CC
|
---|
| 1501 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 1502 | set dummy gcc; ac_word=$2
|
---|
[8756] | 1503 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1505 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1506 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1507 | else
|
---|
[8756] | 1508 | if test -n "$ac_ct_CC"; then
|
---|
| 1509 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1510 | else
|
---|
| 1511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1512 | for as_dir in $PATH
|
---|
| 1513 | do
|
---|
| 1514 | IFS=$as_save_IFS
|
---|
| 1515 | test -z "$as_dir" && as_dir=.
|
---|
| 1516 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1518 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1520 | break 2
|
---|
| 1521 | fi
|
---|
| 1522 | done
|
---|
| 1523 | done
|
---|
| 1524 |
|
---|
| 1525 | fi
|
---|
| 1526 | fi
|
---|
| 1527 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1528 | if test -n "$ac_ct_CC"; then
|
---|
| 1529 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1530 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1531 | else
|
---|
| 1532 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1533 | echo "${ECHO_T}no" >&6
|
---|
| 1534 | fi
|
---|
| 1535 |
|
---|
| 1536 | CC=$ac_ct_CC
|
---|
| 1537 | else
|
---|
| 1538 | CC="$ac_cv_prog_CC"
|
---|
| 1539 | fi
|
---|
| 1540 |
|
---|
| 1541 | if test -z "$CC"; then
|
---|
| 1542 | if test -n "$ac_tool_prefix"; then
|
---|
| 1543 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 1544 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 1545 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1547 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1548 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1549 | else
|
---|
[562] | 1550 | if test -n "$CC"; then
|
---|
| 1551 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1552 | else
|
---|
[8756] | 1553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1554 | for as_dir in $PATH
|
---|
| 1555 | do
|
---|
| 1556 | IFS=$as_save_IFS
|
---|
| 1557 | test -z "$as_dir" && as_dir=.
|
---|
| 1558 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1560 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1562 | break 2
|
---|
| 1563 | fi
|
---|
| 1564 | done
|
---|
| 1565 | done
|
---|
| 1566 |
|
---|
[562] | 1567 | fi
|
---|
| 1568 | fi
|
---|
[8756] | 1569 | CC=$ac_cv_prog_CC
|
---|
[562] | 1570 | if test -n "$CC"; then
|
---|
[8756] | 1571 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1572 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1573 | else
|
---|
[8756] | 1574 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1575 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1576 | fi
|
---|
| 1577 |
|
---|
[8756] | 1578 | fi
|
---|
| 1579 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1580 | ac_ct_CC=$CC
|
---|
| 1581 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1582 | set dummy cc; ac_word=$2
|
---|
| 1583 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1584 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1585 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1586 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1587 | else
|
---|
| 1588 | if test -n "$ac_ct_CC"; then
|
---|
| 1589 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1590 | else
|
---|
| 1591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1592 | for as_dir in $PATH
|
---|
| 1593 | do
|
---|
| 1594 | IFS=$as_save_IFS
|
---|
| 1595 | test -z "$as_dir" && as_dir=.
|
---|
| 1596 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1597 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1598 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1599 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1600 | break 2
|
---|
| 1601 | fi
|
---|
| 1602 | done
|
---|
| 1603 | done
|
---|
| 1604 |
|
---|
| 1605 | fi
|
---|
| 1606 | fi
|
---|
| 1607 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1608 | if test -n "$ac_ct_CC"; then
|
---|
| 1609 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1610 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1611 | else
|
---|
| 1612 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1613 | echo "${ECHO_T}no" >&6
|
---|
| 1614 | fi
|
---|
| 1615 |
|
---|
| 1616 | CC=$ac_ct_CC
|
---|
| 1617 | else
|
---|
| 1618 | CC="$ac_cv_prog_CC"
|
---|
| 1619 | fi
|
---|
| 1620 |
|
---|
| 1621 | fi
|
---|
[562] | 1622 | if test -z "$CC"; then
|
---|
| 1623 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1624 | set dummy cc; ac_word=$2
|
---|
[8756] | 1625 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1627 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1628 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1629 | else
|
---|
| 1630 | if test -n "$CC"; then
|
---|
| 1631 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1632 | else
|
---|
| 1633 | ac_prog_rejected=no
|
---|
[8756] | 1634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1635 | for as_dir in $PATH
|
---|
| 1636 | do
|
---|
| 1637 | IFS=$as_save_IFS
|
---|
| 1638 | test -z "$as_dir" && as_dir=.
|
---|
| 1639 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1641 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1642 | ac_prog_rejected=yes
|
---|
| 1643 | continue
|
---|
| 1644 | fi
|
---|
| 1645 | ac_cv_prog_CC="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 |
|
---|
[562] | 1652 | if test $ac_prog_rejected = yes; then
|
---|
| 1653 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1654 | set dummy $ac_cv_prog_CC
|
---|
| 1655 | shift
|
---|
[8756] | 1656 | if test $# != 0; then
|
---|
[562] | 1657 | # We chose a different compiler from the bogus one.
|
---|
| 1658 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1659 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1660 | shift
|
---|
[8756] | 1661 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 1662 | fi
|
---|
| 1663 | fi
|
---|
| 1664 | fi
|
---|
| 1665 | fi
|
---|
[8756] | 1666 | CC=$ac_cv_prog_CC
|
---|
[562] | 1667 | if test -n "$CC"; then
|
---|
[8756] | 1668 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1669 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1670 | else
|
---|
[8756] | 1671 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1672 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1673 | fi
|
---|
| 1674 |
|
---|
[8756] | 1675 | fi
|
---|
| 1676 | if test -z "$CC"; then
|
---|
| 1677 | if test -n "$ac_tool_prefix"; then
|
---|
| 1678 | for ac_prog in cl
|
---|
| 1679 | do
|
---|
| 1680 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1681 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 1682 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1683 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1684 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1685 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1686 | else
|
---|
| 1687 | if test -n "$CC"; then
|
---|
| 1688 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1689 | else
|
---|
[8756] | 1690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1691 | for as_dir in $PATH
|
---|
| 1692 | do
|
---|
| 1693 | IFS=$as_save_IFS
|
---|
| 1694 | test -z "$as_dir" && as_dir=.
|
---|
| 1695 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1696 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1697 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1698 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1699 | break 2
|
---|
| 1700 | fi
|
---|
| 1701 | done
|
---|
| 1702 | done
|
---|
| 1703 |
|
---|
[562] | 1704 | fi
|
---|
| 1705 | fi
|
---|
[8756] | 1706 | CC=$ac_cv_prog_CC
|
---|
[562] | 1707 | if test -n "$CC"; then
|
---|
[8756] | 1708 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1709 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1710 | else
|
---|
[8756] | 1711 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1712 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1713 | fi
|
---|
[8756] | 1714 |
|
---|
| 1715 | test -n "$CC" && break
|
---|
| 1716 | done
|
---|
| 1717 | fi
|
---|
| 1718 | if test -z "$CC"; then
|
---|
| 1719 | ac_ct_CC=$CC
|
---|
| 1720 | for ac_prog in cl
|
---|
| 1721 | do
|
---|
| 1722 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1723 | set dummy $ac_prog; ac_word=$2
|
---|
| 1724 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1725 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1726 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1727 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1728 | else
|
---|
| 1729 | if test -n "$ac_ct_CC"; then
|
---|
| 1730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1731 | else
|
---|
| 1732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1733 | for as_dir in $PATH
|
---|
| 1734 | do
|
---|
| 1735 | IFS=$as_save_IFS
|
---|
| 1736 | test -z "$as_dir" && as_dir=.
|
---|
| 1737 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1738 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1739 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1740 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1741 | break 2
|
---|
[8200] | 1742 | fi
|
---|
[8756] | 1743 | done
|
---|
| 1744 | done
|
---|
| 1745 |
|
---|
[562] | 1746 | fi
|
---|
[8756] | 1747 | fi
|
---|
| 1748 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1749 | if test -n "$ac_ct_CC"; then
|
---|
| 1750 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1751 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1752 | else
|
---|
| 1753 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1754 | echo "${ECHO_T}no" >&6
|
---|
| 1755 | fi
|
---|
[562] | 1756 |
|
---|
[8756] | 1757 | test -n "$ac_ct_CC" && break
|
---|
| 1758 | done
|
---|
[562] | 1759 |
|
---|
[8756] | 1760 | CC=$ac_ct_CC
|
---|
| 1761 | fi
|
---|
[562] | 1762 |
|
---|
[8756] | 1763 | fi
|
---|
[562] | 1764 |
|
---|
| 1765 |
|
---|
[8756] | 1766 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1767 | See \`config.log' for more details." >&5
|
---|
| 1768 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1769 | See \`config.log' for more details." >&2;}
|
---|
| 1770 | { (exit 1); exit 1; }; }
|
---|
| 1771 |
|
---|
| 1772 | # Provide some information about the compiler.
|
---|
| 1773 | echo "$as_me:$LINENO:" \
|
---|
| 1774 | "checking for C compiler version" >&5
|
---|
| 1775 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1776 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1777 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1778 | ac_status=$?
|
---|
| 1779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1780 | (exit $ac_status); }
|
---|
| 1781 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1782 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1783 | ac_status=$?
|
---|
| 1784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1785 | (exit $ac_status); }
|
---|
| 1786 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1787 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1788 | ac_status=$?
|
---|
| 1789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1790 | (exit $ac_status); }
|
---|
| 1791 |
|
---|
| 1792 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1793 | /* confdefs.h. */
|
---|
| 1794 | _ACEOF
|
---|
| 1795 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1796 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1797 | /* end confdefs.h. */
|
---|
| 1798 |
|
---|
| 1799 | int
|
---|
| 1800 | main ()
|
---|
| 1801 | {
|
---|
| 1802 |
|
---|
| 1803 | ;
|
---|
| 1804 | return 0;
|
---|
| 1805 | }
|
---|
| 1806 | _ACEOF
|
---|
| 1807 | ac_clean_files_save=$ac_clean_files
|
---|
| 1808 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1809 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1810 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1811 | # of exeext.
|
---|
| 1812 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1813 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1814 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1815 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1816 | (eval $ac_link_default) 2>&5
|
---|
| 1817 | ac_status=$?
|
---|
| 1818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1819 | (exit $ac_status); }; then
|
---|
| 1820 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1821 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1822 | # resort.
|
---|
| 1823 |
|
---|
| 1824 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1825 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1826 | ac_cv_exeext=
|
---|
| 1827 | # b.out is created by i960 compilers.
|
---|
| 1828 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1829 | do
|
---|
| 1830 | test -f "$ac_file" || continue
|
---|
| 1831 | case $ac_file in
|
---|
| 1832 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1833 | ;;
|
---|
| 1834 | conftest.$ac_ext )
|
---|
| 1835 | # This is the source file.
|
---|
| 1836 | ;;
|
---|
| 1837 | [ab].out )
|
---|
| 1838 | # We found the default executable, but exeext='' is most
|
---|
| 1839 | # certainly right.
|
---|
| 1840 | break;;
|
---|
| 1841 | *.* )
|
---|
| 1842 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1843 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1844 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1845 | # maintain Libtool? --akim.
|
---|
| 1846 | export ac_cv_exeext
|
---|
| 1847 | break;;
|
---|
| 1848 | * )
|
---|
| 1849 | break;;
|
---|
| 1850 | esac
|
---|
| 1851 | done
|
---|
| 1852 | else
|
---|
| 1853 | echo "$as_me: failed program was:" >&5
|
---|
| 1854 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1855 |
|
---|
| 1856 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1857 | See \`config.log' for more details." >&5
|
---|
| 1858 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1859 | See \`config.log' for more details." >&2;}
|
---|
| 1860 | { (exit 77); exit 77; }; }
|
---|
| 1861 | fi
|
---|
| 1862 |
|
---|
| 1863 | ac_exeext=$ac_cv_exeext
|
---|
| 1864 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1865 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1866 |
|
---|
| 1867 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1868 | # the compiler is broken, or we cross compile.
|
---|
| 1869 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1870 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 1871 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1872 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1873 | if test "$cross_compiling" != yes; then
|
---|
| 1874 | if { ac_try='./$ac_file'
|
---|
| 1875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1876 | (eval $ac_try) 2>&5
|
---|
| 1877 | ac_status=$?
|
---|
| 1878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1879 | (exit $ac_status); }; }; then
|
---|
| 1880 | cross_compiling=no
|
---|
[562] | 1881 | else
|
---|
[8756] | 1882 | if test "$cross_compiling" = maybe; then
|
---|
| 1883 | cross_compiling=yes
|
---|
| 1884 | else
|
---|
| 1885 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1886 | If you meant to cross compile, use \`--host'.
|
---|
| 1887 | See \`config.log' for more details." >&5
|
---|
| 1888 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1889 | If you meant to cross compile, use \`--host'.
|
---|
| 1890 | See \`config.log' for more details." >&2;}
|
---|
| 1891 | { (exit 1); exit 1; }; }
|
---|
| 1892 | fi
|
---|
[562] | 1893 | fi
|
---|
| 1894 | fi
|
---|
[8756] | 1895 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1896 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 1897 |
|
---|
[8756] | 1898 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1899 | ac_clean_files=$ac_clean_files_save
|
---|
| 1900 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1901 | # the compiler is broken, or we cross compile.
|
---|
| 1902 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1903 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1904 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1905 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1906 |
|
---|
| 1907 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1908 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1910 | (eval $ac_link) 2>&5
|
---|
| 1911 | ac_status=$?
|
---|
| 1912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1913 | (exit $ac_status); }; then
|
---|
| 1914 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1915 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1916 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1917 | # `rm'.
|
---|
| 1918 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1919 | test -f "$ac_file" || continue
|
---|
| 1920 | case $ac_file in
|
---|
| 1921 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
| 1922 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1923 | export ac_cv_exeext
|
---|
| 1924 | break;;
|
---|
| 1925 | * ) break;;
|
---|
| 1926 | esac
|
---|
| 1927 | done
|
---|
| 1928 | else
|
---|
| 1929 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1930 | See \`config.log' for more details." >&5
|
---|
| 1931 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1932 | See \`config.log' for more details." >&2;}
|
---|
| 1933 | { (exit 1); exit 1; }; }
|
---|
[562] | 1934 | fi
|
---|
| 1935 |
|
---|
[8756] | 1936 | rm -f conftest$ac_cv_exeext
|
---|
| 1937 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 1938 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1939 |
|
---|
| 1940 | rm -f conftest.$ac_ext
|
---|
| 1941 | EXEEXT=$ac_cv_exeext
|
---|
| 1942 | ac_exeext=$EXEEXT
|
---|
| 1943 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1944 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 1945 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1946 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1947 | else
|
---|
[8756] | 1948 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1949 | /* confdefs.h. */
|
---|
| 1950 | _ACEOF
|
---|
| 1951 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1952 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1953 | /* end confdefs.h. */
|
---|
| 1954 |
|
---|
| 1955 | int
|
---|
| 1956 | main ()
|
---|
| 1957 | {
|
---|
| 1958 |
|
---|
| 1959 | ;
|
---|
| 1960 | return 0;
|
---|
| 1961 | }
|
---|
| 1962 | _ACEOF
|
---|
| 1963 | rm -f conftest.o conftest.obj
|
---|
| 1964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1965 | (eval $ac_compile) 2>&5
|
---|
| 1966 | ac_status=$?
|
---|
| 1967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1968 | (exit $ac_status); }; then
|
---|
| 1969 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1970 | case $ac_file in
|
---|
| 1971 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
| 1972 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1973 | break;;
|
---|
| 1974 | esac
|
---|
| 1975 | done
|
---|
[562] | 1976 | else
|
---|
[8756] | 1977 | echo "$as_me: failed program was:" >&5
|
---|
| 1978 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1979 |
|
---|
| 1980 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1981 | See \`config.log' for more details." >&5
|
---|
| 1982 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1983 | See \`config.log' for more details." >&2;}
|
---|
| 1984 | { (exit 1); exit 1; }; }
|
---|
[562] | 1985 | fi
|
---|
[8756] | 1986 |
|
---|
| 1987 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 1988 | fi
|
---|
[8756] | 1989 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 1990 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1991 | OBJEXT=$ac_cv_objext
|
---|
| 1992 | ac_objext=$OBJEXT
|
---|
| 1993 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 1994 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 1995 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 1996 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1997 | else
|
---|
| 1998 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1999 | /* confdefs.h. */
|
---|
| 2000 | _ACEOF
|
---|
| 2001 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2002 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2003 | /* end confdefs.h. */
|
---|
[562] | 2004 |
|
---|
[8756] | 2005 | int
|
---|
| 2006 | main ()
|
---|
| 2007 | {
|
---|
| 2008 | #ifndef __GNUC__
|
---|
| 2009 | choke me
|
---|
| 2010 | #endif
|
---|
[562] | 2011 |
|
---|
[8756] | 2012 | ;
|
---|
| 2013 | return 0;
|
---|
| 2014 | }
|
---|
| 2015 | _ACEOF
|
---|
| 2016 | rm -f conftest.$ac_objext
|
---|
| 2017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2018 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2019 | ac_status=$?
|
---|
| 2020 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2021 | rm -f conftest.er1
|
---|
| 2022 | cat conftest.err >&5
|
---|
| 2023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2024 | (exit $ac_status); } &&
|
---|
| 2025 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2026 | || test ! -s conftest.err'
|
---|
| 2027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2028 | (eval $ac_try) 2>&5
|
---|
| 2029 | ac_status=$?
|
---|
| 2030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2031 | (exit $ac_status); }; } &&
|
---|
| 2032 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2034 | (eval $ac_try) 2>&5
|
---|
| 2035 | ac_status=$?
|
---|
| 2036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2037 | (exit $ac_status); }; }; then
|
---|
| 2038 | ac_compiler_gnu=yes
|
---|
[562] | 2039 | else
|
---|
[8756] | 2040 | echo "$as_me: failed program was:" >&5
|
---|
| 2041 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2042 |
|
---|
| 2043 | ac_compiler_gnu=no
|
---|
[562] | 2044 | fi
|
---|
[8756] | 2045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2046 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 2047 |
|
---|
[8756] | 2048 | fi
|
---|
| 2049 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2050 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2051 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2052 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2053 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2054 | CFLAGS="-g"
|
---|
| 2055 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2056 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2057 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2058 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2059 | else
|
---|
[8756] | 2060 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2061 | /* confdefs.h. */
|
---|
| 2062 | _ACEOF
|
---|
| 2063 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2064 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2065 | /* end confdefs.h. */
|
---|
| 2066 |
|
---|
| 2067 | int
|
---|
| 2068 | main ()
|
---|
| 2069 | {
|
---|
| 2070 |
|
---|
| 2071 | ;
|
---|
| 2072 | return 0;
|
---|
| 2073 | }
|
---|
| 2074 | _ACEOF
|
---|
| 2075 | rm -f conftest.$ac_objext
|
---|
| 2076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2077 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2078 | ac_status=$?
|
---|
| 2079 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2080 | rm -f conftest.er1
|
---|
| 2081 | cat conftest.err >&5
|
---|
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2083 | (exit $ac_status); } &&
|
---|
| 2084 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2085 | || test ! -s conftest.err'
|
---|
| 2086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2087 | (eval $ac_try) 2>&5
|
---|
| 2088 | ac_status=$?
|
---|
| 2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2090 | (exit $ac_status); }; } &&
|
---|
| 2091 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2093 | (eval $ac_try) 2>&5
|
---|
| 2094 | ac_status=$?
|
---|
| 2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2096 | (exit $ac_status); }; }; then
|
---|
[562] | 2097 | ac_cv_prog_cc_g=yes
|
---|
| 2098 | else
|
---|
[8756] | 2099 | echo "$as_me: failed program was:" >&5
|
---|
| 2100 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2101 |
|
---|
[8756] | 2102 | ac_cv_prog_cc_g=no
|
---|
[562] | 2103 | fi
|
---|
[8756] | 2104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2105 | fi
|
---|
| 2106 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2107 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[562] | 2108 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2109 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2110 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2111 | if test "$GCC" = yes; then
|
---|
| 2112 | CFLAGS="-g -O2"
|
---|
| 2113 | else
|
---|
| 2114 | CFLAGS="-g"
|
---|
| 2115 | fi
|
---|
| 2116 | else
|
---|
| 2117 | if test "$GCC" = yes; then
|
---|
| 2118 | CFLAGS="-O2"
|
---|
| 2119 | else
|
---|
| 2120 | CFLAGS=
|
---|
| 2121 | fi
|
---|
| 2122 | fi
|
---|
[8756] | 2123 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2124 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2125 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2126 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2127 | else
|
---|
| 2128 | ac_cv_prog_cc_stdc=no
|
---|
| 2129 | ac_save_CC=$CC
|
---|
| 2130 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2131 | /* confdefs.h. */
|
---|
| 2132 | _ACEOF
|
---|
| 2133 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2134 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2135 | /* end confdefs.h. */
|
---|
| 2136 | #include <stdarg.h>
|
---|
| 2137 | #include <stdio.h>
|
---|
| 2138 | #include <sys/types.h>
|
---|
| 2139 | #include <sys/stat.h>
|
---|
| 2140 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2141 | struct buf { int x; };
|
---|
| 2142 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2143 | static char *e (p, i)
|
---|
| 2144 | char **p;
|
---|
| 2145 | int i;
|
---|
| 2146 | {
|
---|
| 2147 | return p[i];
|
---|
| 2148 | }
|
---|
| 2149 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2150 | {
|
---|
| 2151 | char *s;
|
---|
| 2152 | va_list v;
|
---|
| 2153 | va_start (v,p);
|
---|
| 2154 | s = g (p, va_arg (v,int));
|
---|
| 2155 | va_end (v);
|
---|
| 2156 | return s;
|
---|
| 2157 | }
|
---|
[8200] | 2158 |
|
---|
[8756] | 2159 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2160 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2161 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2162 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2163 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2164 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2165 | that's true only with -std1. */
|
---|
| 2166 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2167 |
|
---|
| 2168 | int test (int i, double x);
|
---|
| 2169 | struct s1 {int (*f) (int a);};
|
---|
| 2170 | struct s2 {int (*f) (double a);};
|
---|
| 2171 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2172 | int argc;
|
---|
| 2173 | char **argv;
|
---|
| 2174 | int
|
---|
| 2175 | main ()
|
---|
| 2176 | {
|
---|
| 2177 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2178 | ;
|
---|
| 2179 | return 0;
|
---|
| 2180 | }
|
---|
| 2181 | _ACEOF
|
---|
| 2182 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2183 | # breaks some systems' header files.
|
---|
| 2184 | # AIX -qlanglvl=ansi
|
---|
| 2185 | # Ultrix and OSF/1 -std1
|
---|
| 2186 | # HP-UX 10.20 and later -Ae
|
---|
| 2187 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2188 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2189 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 2190 | do
|
---|
[8756] | 2191 | CC="$ac_save_CC $ac_arg"
|
---|
| 2192 | rm -f conftest.$ac_objext
|
---|
| 2193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2194 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2195 | ac_status=$?
|
---|
| 2196 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2197 | rm -f conftest.er1
|
---|
| 2198 | cat conftest.err >&5
|
---|
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2200 | (exit $ac_status); } &&
|
---|
| 2201 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2202 | || test ! -s conftest.err'
|
---|
| 2203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2204 | (eval $ac_try) 2>&5
|
---|
| 2205 | ac_status=$?
|
---|
| 2206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2207 | (exit $ac_status); }; } &&
|
---|
| 2208 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2210 | (eval $ac_try) 2>&5
|
---|
| 2211 | ac_status=$?
|
---|
| 2212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2213 | (exit $ac_status); }; }; then
|
---|
| 2214 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2215 | break
|
---|
[562] | 2216 | else
|
---|
[8756] | 2217 | echo "$as_me: failed program was:" >&5
|
---|
| 2218 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2219 |
|
---|
[562] | 2220 | fi
|
---|
[8756] | 2221 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2222 | done
|
---|
| 2223 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2224 | CC=$ac_save_CC
|
---|
| 2225 |
|
---|
[562] | 2226 | fi
|
---|
[8756] | 2227 |
|
---|
| 2228 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2229 | x|xno)
|
---|
| 2230 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2231 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2232 | *)
|
---|
| 2233 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2234 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2235 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2236 | esac
|
---|
| 2237 |
|
---|
| 2238 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2239 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2240 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2241 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2242 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2243 | #ifndef __cplusplus
|
---|
| 2244 | choke me
|
---|
| 2245 | #endif
|
---|
| 2246 | _ACEOF
|
---|
| 2247 | rm -f conftest.$ac_objext
|
---|
| 2248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2249 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2250 | ac_status=$?
|
---|
| 2251 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2252 | rm -f conftest.er1
|
---|
| 2253 | cat conftest.err >&5
|
---|
| 2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2255 | (exit $ac_status); } &&
|
---|
| 2256 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2257 | || test ! -s conftest.err'
|
---|
| 2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2259 | (eval $ac_try) 2>&5
|
---|
| 2260 | ac_status=$?
|
---|
| 2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2262 | (exit $ac_status); }; } &&
|
---|
| 2263 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2265 | (eval $ac_try) 2>&5
|
---|
| 2266 | ac_status=$?
|
---|
| 2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2268 | (exit $ac_status); }; }; then
|
---|
| 2269 | for ac_declaration in \
|
---|
| 2270 | '' \
|
---|
| 2271 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2272 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2273 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2274 | 'extern "C" void exit (int);' \
|
---|
| 2275 | 'void exit (int);'
|
---|
| 2276 | do
|
---|
| 2277 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2278 | /* confdefs.h. */
|
---|
| 2279 | _ACEOF
|
---|
| 2280 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2281 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2282 | /* end confdefs.h. */
|
---|
| 2283 | $ac_declaration
|
---|
| 2284 | #include <stdlib.h>
|
---|
| 2285 | int
|
---|
| 2286 | main ()
|
---|
| 2287 | {
|
---|
| 2288 | exit (42);
|
---|
| 2289 | ;
|
---|
| 2290 | return 0;
|
---|
| 2291 | }
|
---|
| 2292 | _ACEOF
|
---|
| 2293 | rm -f conftest.$ac_objext
|
---|
| 2294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2295 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2296 | ac_status=$?
|
---|
| 2297 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2298 | rm -f conftest.er1
|
---|
| 2299 | cat conftest.err >&5
|
---|
| 2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2301 | (exit $ac_status); } &&
|
---|
| 2302 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2303 | || test ! -s conftest.err'
|
---|
| 2304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2305 | (eval $ac_try) 2>&5
|
---|
| 2306 | ac_status=$?
|
---|
| 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2308 | (exit $ac_status); }; } &&
|
---|
| 2309 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2311 | (eval $ac_try) 2>&5
|
---|
| 2312 | ac_status=$?
|
---|
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2314 | (exit $ac_status); }; }; then
|
---|
| 2315 | :
|
---|
[562] | 2316 | else
|
---|
[8756] | 2317 | echo "$as_me: failed program was:" >&5
|
---|
| 2318 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2319 |
|
---|
| 2320 | continue
|
---|
[562] | 2321 | fi
|
---|
[8756] | 2322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2323 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2324 | /* confdefs.h. */
|
---|
| 2325 | _ACEOF
|
---|
| 2326 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2327 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2328 | /* end confdefs.h. */
|
---|
| 2329 | $ac_declaration
|
---|
| 2330 | int
|
---|
| 2331 | main ()
|
---|
| 2332 | {
|
---|
| 2333 | exit (42);
|
---|
| 2334 | ;
|
---|
| 2335 | return 0;
|
---|
| 2336 | }
|
---|
| 2337 | _ACEOF
|
---|
| 2338 | rm -f conftest.$ac_objext
|
---|
| 2339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2340 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2341 | ac_status=$?
|
---|
| 2342 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2343 | rm -f conftest.er1
|
---|
| 2344 | cat conftest.err >&5
|
---|
| 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2346 | (exit $ac_status); } &&
|
---|
| 2347 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2348 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 2354 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2356 | (eval $ac_try) 2>&5
|
---|
| 2357 | ac_status=$?
|
---|
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2359 | (exit $ac_status); }; }; then
|
---|
| 2360 | break
|
---|
| 2361 | else
|
---|
| 2362 | echo "$as_me: failed program was:" >&5
|
---|
| 2363 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 2364 |
|
---|
[8756] | 2365 | fi
|
---|
| 2366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 2367 | done
|
---|
[8756] | 2368 | rm -f conftest*
|
---|
| 2369 | if test -n "$ac_declaration"; then
|
---|
| 2370 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2371 | echo $ac_declaration >>confdefs.h
|
---|
| 2372 | echo '#endif' >>confdefs.h
|
---|
| 2373 | fi
|
---|
[562] | 2374 |
|
---|
[8756] | 2375 | else
|
---|
| 2376 | echo "$as_me: failed program was:" >&5
|
---|
| 2377 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2378 |
|
---|
[8756] | 2379 | fi
|
---|
| 2380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2381 | ac_ext=c
|
---|
| 2382 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 2386 |
|
---|
[8756] | 2387 | ac_ext=cc
|
---|
[8200] | 2388 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 2389 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2390 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2391 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 2392 | if test -n "$ac_tool_prefix"; then
|
---|
| 2393 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2394 | do
|
---|
| 2395 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2396 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 2397 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2399 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2400 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2401 | else
|
---|
| 2402 | if test -n "$CXX"; then
|
---|
| 2403 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2404 | else
|
---|
| 2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2406 | for as_dir in $PATH
|
---|
| 2407 | do
|
---|
| 2408 | IFS=$as_save_IFS
|
---|
| 2409 | test -z "$as_dir" && as_dir=.
|
---|
| 2410 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2412 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2414 | break 2
|
---|
| 2415 | fi
|
---|
| 2416 | done
|
---|
| 2417 | done
|
---|
[8200] | 2418 |
|
---|
[8756] | 2419 | fi
|
---|
| 2420 | fi
|
---|
| 2421 | CXX=$ac_cv_prog_CXX
|
---|
| 2422 | if test -n "$CXX"; then
|
---|
| 2423 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2424 | echo "${ECHO_T}$CXX" >&6
|
---|
| 2425 | else
|
---|
| 2426 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2427 | echo "${ECHO_T}no" >&6
|
---|
| 2428 | fi
|
---|
[8200] | 2429 |
|
---|
[8756] | 2430 | test -n "$CXX" && break
|
---|
| 2431 | done
|
---|
| 2432 | fi
|
---|
| 2433 | if test -z "$CXX"; then
|
---|
| 2434 | ac_ct_CXX=$CXX
|
---|
| 2435 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2436 | do
|
---|
| 2437 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2438 | set dummy $ac_prog; ac_word=$2
|
---|
| 2439 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2441 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2442 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2443 | else
|
---|
| 2444 | if test -n "$ac_ct_CXX"; then
|
---|
| 2445 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2446 | else
|
---|
| 2447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2448 | for as_dir in $PATH
|
---|
| 2449 | do
|
---|
| 2450 | IFS=$as_save_IFS
|
---|
| 2451 | test -z "$as_dir" && as_dir=.
|
---|
| 2452 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2454 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2456 | break 2
|
---|
| 2457 | fi
|
---|
| 2458 | done
|
---|
| 2459 | done
|
---|
[8200] | 2460 |
|
---|
[8756] | 2461 | fi
|
---|
| 2462 | fi
|
---|
| 2463 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2464 | if test -n "$ac_ct_CXX"; then
|
---|
| 2465 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2466 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3631] | 2467 | else
|
---|
[8756] | 2468 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2469 | echo "${ECHO_T}no" >&6
|
---|
[3631] | 2470 | fi
|
---|
[562] | 2471 |
|
---|
[8756] | 2472 | test -n "$ac_ct_CXX" && break
|
---|
| 2473 | done
|
---|
| 2474 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 2475 |
|
---|
| 2476 | CXX=$ac_ct_CXX
|
---|
[3631] | 2477 | fi
|
---|
[562] | 2478 |
|
---|
[8756] | 2479 |
|
---|
| 2480 | # Provide some information about the compiler.
|
---|
| 2481 | echo "$as_me:$LINENO:" \
|
---|
| 2482 | "checking for C++ compiler version" >&5
|
---|
| 2483 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2484 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2485 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2486 | ac_status=$?
|
---|
| 2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2488 | (exit $ac_status); }
|
---|
| 2489 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2490 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2491 | ac_status=$?
|
---|
| 2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2493 | (exit $ac_status); }
|
---|
| 2494 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2495 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2496 | ac_status=$?
|
---|
| 2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2498 | (exit $ac_status); }
|
---|
| 2499 |
|
---|
| 2500 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2501 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2502 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2503 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 2504 | else
|
---|
[8756] | 2505 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2506 | /* confdefs.h. */
|
---|
| 2507 | _ACEOF
|
---|
| 2508 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2509 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2510 | /* end confdefs.h. */
|
---|
| 2511 |
|
---|
| 2512 | int
|
---|
| 2513 | main ()
|
---|
| 2514 | {
|
---|
| 2515 | #ifndef __GNUC__
|
---|
| 2516 | choke me
|
---|
[3631] | 2517 | #endif
|
---|
[8756] | 2518 |
|
---|
| 2519 | ;
|
---|
| 2520 | return 0;
|
---|
| 2521 | }
|
---|
| 2522 | _ACEOF
|
---|
| 2523 | rm -f conftest.$ac_objext
|
---|
| 2524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2525 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2526 | ac_status=$?
|
---|
| 2527 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2528 | rm -f conftest.er1
|
---|
| 2529 | cat conftest.err >&5
|
---|
| 2530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2531 | (exit $ac_status); } &&
|
---|
| 2532 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2533 | || test ! -s conftest.err'
|
---|
| 2534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2535 | (eval $ac_try) 2>&5
|
---|
| 2536 | ac_status=$?
|
---|
| 2537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2538 | (exit $ac_status); }; } &&
|
---|
| 2539 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2541 | (eval $ac_try) 2>&5
|
---|
| 2542 | ac_status=$?
|
---|
| 2543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2544 | (exit $ac_status); }; }; then
|
---|
| 2545 | ac_compiler_gnu=yes
|
---|
[8200] | 2546 | else
|
---|
[8756] | 2547 | echo "$as_me: failed program was:" >&5
|
---|
| 2548 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2549 |
|
---|
| 2550 | ac_compiler_gnu=no
|
---|
[8200] | 2551 | fi
|
---|
[8756] | 2552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2553 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2554 |
|
---|
[8200] | 2555 | fi
|
---|
[8756] | 2556 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2557 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2558 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2559 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2560 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 2561 | CXXFLAGS="-g"
|
---|
| 2562 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2563 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2564 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2565 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2566 | else
|
---|
| 2567 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2568 | /* confdefs.h. */
|
---|
| 2569 | _ACEOF
|
---|
| 2570 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2571 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2572 | /* end confdefs.h. */
|
---|
[3631] | 2573 |
|
---|
[8756] | 2574 | int
|
---|
| 2575 | main ()
|
---|
| 2576 | {
|
---|
[8200] | 2577 |
|
---|
[8756] | 2578 | ;
|
---|
| 2579 | return 0;
|
---|
| 2580 | }
|
---|
| 2581 | _ACEOF
|
---|
| 2582 | rm -f conftest.$ac_objext
|
---|
| 2583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2584 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2585 | ac_status=$?
|
---|
| 2586 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2587 | rm -f conftest.er1
|
---|
| 2588 | cat conftest.err >&5
|
---|
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2590 | (exit $ac_status); } &&
|
---|
| 2591 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2592 | || test ! -s conftest.err'
|
---|
| 2593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2594 | (eval $ac_try) 2>&5
|
---|
| 2595 | ac_status=$?
|
---|
| 2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2597 | (exit $ac_status); }; } &&
|
---|
| 2598 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2600 | (eval $ac_try) 2>&5
|
---|
| 2601 | ac_status=$?
|
---|
| 2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2603 | (exit $ac_status); }; }; then
|
---|
[562] | 2604 | ac_cv_prog_cxx_g=yes
|
---|
| 2605 | else
|
---|
[8756] | 2606 | echo "$as_me: failed program was:" >&5
|
---|
| 2607 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2608 |
|
---|
[8756] | 2609 | ac_cv_prog_cxx_g=no
|
---|
[562] | 2610 | fi
|
---|
[8756] | 2611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2612 | fi
|
---|
| 2613 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2614 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[562] | 2615 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8756] | 2616 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[562] | 2617 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2618 | if test "$GXX" = yes; then
|
---|
| 2619 | CXXFLAGS="-g -O2"
|
---|
| 2620 | else
|
---|
| 2621 | CXXFLAGS="-g"
|
---|
| 2622 | fi
|
---|
| 2623 | else
|
---|
| 2624 | if test "$GXX" = yes; then
|
---|
| 2625 | CXXFLAGS="-O2"
|
---|
| 2626 | else
|
---|
| 2627 | CXXFLAGS=
|
---|
| 2628 | fi
|
---|
| 2629 | fi
|
---|
[8756] | 2630 | for ac_declaration in \
|
---|
| 2631 | '' \
|
---|
| 2632 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2633 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2634 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2635 | 'extern "C" void exit (int);' \
|
---|
| 2636 | 'void exit (int);'
|
---|
| 2637 | do
|
---|
| 2638 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2639 | /* confdefs.h. */
|
---|
| 2640 | _ACEOF
|
---|
| 2641 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2642 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2643 | /* end confdefs.h. */
|
---|
| 2644 | $ac_declaration
|
---|
| 2645 | #include <stdlib.h>
|
---|
| 2646 | int
|
---|
| 2647 | main ()
|
---|
| 2648 | {
|
---|
| 2649 | exit (42);
|
---|
| 2650 | ;
|
---|
| 2651 | return 0;
|
---|
| 2652 | }
|
---|
| 2653 | _ACEOF
|
---|
| 2654 | rm -f conftest.$ac_objext
|
---|
| 2655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2656 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2657 | ac_status=$?
|
---|
| 2658 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2659 | rm -f conftest.er1
|
---|
| 2660 | cat conftest.err >&5
|
---|
| 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2662 | (exit $ac_status); } &&
|
---|
| 2663 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2664 | || test ! -s conftest.err'
|
---|
| 2665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2666 | (eval $ac_try) 2>&5
|
---|
| 2667 | ac_status=$?
|
---|
| 2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2669 | (exit $ac_status); }; } &&
|
---|
| 2670 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2672 | (eval $ac_try) 2>&5
|
---|
| 2673 | ac_status=$?
|
---|
| 2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2675 | (exit $ac_status); }; }; then
|
---|
| 2676 | :
|
---|
| 2677 | else
|
---|
| 2678 | echo "$as_me: failed program was:" >&5
|
---|
| 2679 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[3063] | 2680 |
|
---|
[8756] | 2681 | continue
|
---|
| 2682 | fi
|
---|
| 2683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2684 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2685 | /* confdefs.h. */
|
---|
| 2686 | _ACEOF
|
---|
| 2687 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2688 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2689 | /* end confdefs.h. */
|
---|
| 2690 | $ac_declaration
|
---|
| 2691 | int
|
---|
| 2692 | main ()
|
---|
| 2693 | {
|
---|
| 2694 | exit (42);
|
---|
| 2695 | ;
|
---|
| 2696 | return 0;
|
---|
| 2697 | }
|
---|
| 2698 | _ACEOF
|
---|
| 2699 | rm -f conftest.$ac_objext
|
---|
| 2700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2701 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2702 | ac_status=$?
|
---|
| 2703 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2704 | rm -f conftest.er1
|
---|
| 2705 | cat conftest.err >&5
|
---|
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2707 | (exit $ac_status); } &&
|
---|
| 2708 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2709 | || test ! -s conftest.err'
|
---|
| 2710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2711 | (eval $ac_try) 2>&5
|
---|
| 2712 | ac_status=$?
|
---|
| 2713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2714 | (exit $ac_status); }; } &&
|
---|
| 2715 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2717 | (eval $ac_try) 2>&5
|
---|
| 2718 | ac_status=$?
|
---|
| 2719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2720 | (exit $ac_status); }; }; then
|
---|
| 2721 | break
|
---|
| 2722 | else
|
---|
| 2723 | echo "$as_me: failed program was:" >&5
|
---|
| 2724 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2725 |
|
---|
| 2726 | fi
|
---|
| 2727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2728 | done
|
---|
| 2729 | rm -f conftest*
|
---|
| 2730 | if test -n "$ac_declaration"; then
|
---|
| 2731 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2732 | echo $ac_declaration >>confdefs.h
|
---|
| 2733 | echo '#endif' >>confdefs.h
|
---|
| 2734 | fi
|
---|
| 2735 |
|
---|
| 2736 | ac_ext=c
|
---|
| 2737 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2738 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2739 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2740 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2741 |
|
---|
| 2742 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 2743 | do
|
---|
[8756] | 2744 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2745 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2746 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2747 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2748 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2749 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2750 | else
|
---|
| 2751 | if test -n "$AWK"; then
|
---|
| 2752 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2753 | else
|
---|
[8756] | 2754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2755 | for as_dir in $PATH
|
---|
| 2756 | do
|
---|
| 2757 | IFS=$as_save_IFS
|
---|
| 2758 | test -z "$as_dir" && as_dir=.
|
---|
| 2759 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2760 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2761 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2763 | break 2
|
---|
| 2764 | fi
|
---|
| 2765 | done
|
---|
| 2766 | done
|
---|
| 2767 |
|
---|
[687] | 2768 | fi
|
---|
| 2769 | fi
|
---|
[8756] | 2770 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 2771 | if test -n "$AWK"; then
|
---|
[8756] | 2772 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2773 | echo "${ECHO_T}$AWK" >&6
|
---|
[687] | 2774 | else
|
---|
[8756] | 2775 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2776 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2777 | fi
|
---|
| 2778 |
|
---|
[8756] | 2779 | test -n "$AWK" && break
|
---|
[687] | 2780 | done
|
---|
| 2781 |
|
---|
| 2782 | for ac_prog in 'bison -y' byacc
|
---|
| 2783 | do
|
---|
[8756] | 2784 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2785 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2786 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2788 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2789 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2790 | else
|
---|
| 2791 | if test -n "$YACC"; then
|
---|
| 2792 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2793 | else
|
---|
[8756] | 2794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2795 | for as_dir in $PATH
|
---|
| 2796 | do
|
---|
| 2797 | IFS=$as_save_IFS
|
---|
| 2798 | test -z "$as_dir" && as_dir=.
|
---|
| 2799 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2800 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2801 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2803 | break 2
|
---|
| 2804 | fi
|
---|
| 2805 | done
|
---|
| 2806 | done
|
---|
| 2807 |
|
---|
[687] | 2808 | fi
|
---|
| 2809 | fi
|
---|
[8756] | 2810 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 2811 | if test -n "$YACC"; then
|
---|
[8756] | 2812 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2813 | echo "${ECHO_T}$YACC" >&6
|
---|
[687] | 2814 | else
|
---|
[8756] | 2815 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2816 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2817 | fi
|
---|
| 2818 |
|
---|
[8756] | 2819 | test -n "$YACC" && break
|
---|
[687] | 2820 | done
|
---|
| 2821 | test -n "$YACC" || YACC="yacc"
|
---|
| 2822 |
|
---|
[703] | 2823 | ac_aux_dir=
|
---|
| 2824 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2825 | if test -f $ac_dir/install-sh; then
|
---|
| 2826 | ac_aux_dir=$ac_dir
|
---|
| 2827 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2828 | break
|
---|
| 2829 | elif test -f $ac_dir/install.sh; then
|
---|
| 2830 | ac_aux_dir=$ac_dir
|
---|
| 2831 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2832 | break
|
---|
[8756] | 2833 | elif test -f $ac_dir/shtool; then
|
---|
| 2834 | ac_aux_dir=$ac_dir
|
---|
| 2835 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2836 | break
|
---|
[703] | 2837 | fi
|
---|
| 2838 | done
|
---|
| 2839 | if test -z "$ac_aux_dir"; then
|
---|
[8756] | 2840 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2841 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2842 | { (exit 1); exit 1; }; }
|
---|
[703] | 2843 | fi
|
---|
[8756] | 2844 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2845 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2846 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[703] | 2847 |
|
---|
[8756] | 2848 | # Make sure we can run config.sub.
|
---|
| 2849 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2850 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2851 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 2852 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2853 |
|
---|
[8756] | 2854 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2855 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 2856 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2857 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2858 | else
|
---|
| 2859 | ac_cv_build_alias=$build_alias
|
---|
| 2860 | test -z "$ac_cv_build_alias" &&
|
---|
| 2861 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2862 | test -z "$ac_cv_build_alias" &&
|
---|
| 2863 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2864 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2865 | { (exit 1); exit 1; }; }
|
---|
| 2866 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2867 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2868 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 2869 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2870 |
|
---|
| 2871 | fi
|
---|
[8756] | 2872 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2873 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 2874 | build=$ac_cv_build
|
---|
| 2875 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2876 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2877 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[2279] | 2878 |
|
---|
| 2879 |
|
---|
[8756] | 2880 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2881 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 2882 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2883 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2884 | else
|
---|
| 2885 | ac_cv_host_alias=$host_alias
|
---|
| 2886 | test -z "$ac_cv_host_alias" &&
|
---|
| 2887 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2888 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2889 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2890 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 2891 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2892 |
|
---|
[8756] | 2893 | fi
|
---|
| 2894 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2895 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 2896 | host=$ac_cv_host
|
---|
| 2897 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2898 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2899 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2900 |
|
---|
| 2901 |
|
---|
[8756] | 2902 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2903 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 2904 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2905 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2906 | else
|
---|
| 2907 | ac_cv_target_alias=$target_alias
|
---|
| 2908 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2909 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2910 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2911 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2912 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 2913 | { (exit 1); exit 1; }; }
|
---|
[8200] | 2914 |
|
---|
[8756] | 2915 | fi
|
---|
| 2916 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2917 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 2918 | target=$ac_cv_target
|
---|
| 2919 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2920 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2921 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2922 |
|
---|
| 2923 |
|
---|
[8756] | 2924 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2925 | # will get canonicalized.
|
---|
| 2926 | test -n "$target_alias" &&
|
---|
[2279] | 2927 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2928 | NONENONEs,x,x, &&
|
---|
| 2929 | program_prefix=${target_alias}-
|
---|
[703] | 2930 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2931 | # so one script is as good as another. But avoid the broken or
|
---|
| 2932 | # incompatible versions:
|
---|
| 2933 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2934 | # SunOS /usr/etc/install
|
---|
| 2935 | # IRIX /sbin/install
|
---|
| 2936 | # AIX /bin/install
|
---|
[8756] | 2937 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 2938 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2939 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2940 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 2941 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 2942 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[8756] | 2943 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2944 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[703] | 2945 | if test -z "$INSTALL"; then
|
---|
[8756] | 2946 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2947 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 2948 | else
|
---|
[8756] | 2949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2950 | for as_dir in $PATH
|
---|
| 2951 | do
|
---|
| 2952 | IFS=$as_save_IFS
|
---|
| 2953 | test -z "$as_dir" && as_dir=.
|
---|
| 2954 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2955 | case $as_dir/ in
|
---|
| 2956 | ./ | .// | /cC/* | \
|
---|
| 2957 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2958 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2959 | /usr/ucb/* ) ;;
|
---|
| 2960 | *)
|
---|
| 2961 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2962 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2963 | # by default.
|
---|
| 2964 | for ac_prog in ginstall scoinst install; do
|
---|
| 2965 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2966 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[703] | 2967 | if test $ac_prog = install &&
|
---|
[8756] | 2968 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 2969 | # AIX install. It has an incompatible calling convention.
|
---|
| 2970 | :
|
---|
[8756] | 2971 | elif test $ac_prog = install &&
|
---|
| 2972 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2973 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2974 | :
|
---|
[703] | 2975 | else
|
---|
[8756] | 2976 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2977 | break 3
|
---|
[703] | 2978 | fi
|
---|
| 2979 | fi
|
---|
| 2980 | done
|
---|
[8756] | 2981 | done
|
---|
| 2982 | ;;
|
---|
| 2983 | esac
|
---|
| 2984 | done
|
---|
[703] | 2985 |
|
---|
[8756] | 2986 |
|
---|
[703] | 2987 | fi
|
---|
| 2988 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 2989 | INSTALL=$ac_cv_path_install
|
---|
[703] | 2990 | else
|
---|
| 2991 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2992 | # path for INSTALL within a source directory, because that will
|
---|
| 2993 | # break other packages using the cache if that directory is
|
---|
| 2994 | # removed, or if the path is relative.
|
---|
[8756] | 2995 | INSTALL=$ac_install_sh
|
---|
[703] | 2996 | fi
|
---|
| 2997 | fi
|
---|
[8756] | 2998 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 2999 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[703] | 3000 |
|
---|
| 3001 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3002 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3003 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3004 |
|
---|
[8756] | 3005 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 3006 |
|
---|
| 3007 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3008 |
|
---|
[8756] | 3009 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3010 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 3011 | LN_S=$as_ln_s
|
---|
| 3012 | if test "$LN_S" = "ln -s"; then
|
---|
| 3013 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3014 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3015 | else
|
---|
[8756] | 3016 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3017 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[562] | 3018 | fi
|
---|
| 3019 |
|
---|
[8756] | 3020 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3021 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3022 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3023 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 3024 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3025 | else
|
---|
[8756] | 3026 | cat >conftest.make <<\_ACEOF
|
---|
[562] | 3027 | all:
|
---|
[8756] | 3028 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 3029 | _ACEOF
|
---|
[562] | 3030 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8756] | 3031 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[562] | 3032 | if test -n "$ac_maketemp"; then
|
---|
| 3033 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3034 | else
|
---|
| 3035 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3036 | fi
|
---|
[8756] | 3037 | rm -f conftest.make
|
---|
[562] | 3038 | fi
|
---|
| 3039 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[8756] | 3040 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3041 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3042 | SET_MAKE=
|
---|
| 3043 | else
|
---|
[8756] | 3044 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3045 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3046 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3047 | fi
|
---|
| 3048 |
|
---|
[8756] | 3049 | if test -n "$ac_tool_prefix"; then
|
---|
| 3050 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3051 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
| 3052 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3054 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3055 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3056 | else
|
---|
| 3057 | if test -n "$RANLIB"; then
|
---|
| 3058 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3059 | else
|
---|
[8756] | 3060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3061 | for as_dir in $PATH
|
---|
| 3062 | do
|
---|
| 3063 | IFS=$as_save_IFS
|
---|
| 3064 | test -z "$as_dir" && as_dir=.
|
---|
| 3065 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3066 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3067 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3069 | break 2
|
---|
| 3070 | fi
|
---|
| 3071 | done
|
---|
| 3072 | done
|
---|
| 3073 |
|
---|
[562] | 3074 | fi
|
---|
| 3075 | fi
|
---|
[8756] | 3076 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3077 | if test -n "$RANLIB"; then
|
---|
[8756] | 3078 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3079 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[562] | 3080 | else
|
---|
[8756] | 3081 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3082 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3083 | fi
|
---|
| 3084 |
|
---|
[8756] | 3085 | fi
|
---|
| 3086 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3087 | ac_ct_RANLIB=$RANLIB
|
---|
| 3088 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3089 | set dummy ranlib; ac_word=$2
|
---|
| 3090 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3092 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3093 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3094 | else
|
---|
| 3095 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3096 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3097 | else
|
---|
| 3098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3099 | for as_dir in $PATH
|
---|
| 3100 | do
|
---|
| 3101 | IFS=$as_save_IFS
|
---|
| 3102 | test -z "$as_dir" && as_dir=.
|
---|
| 3103 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3105 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3107 | break 2
|
---|
| 3108 | fi
|
---|
| 3109 | done
|
---|
| 3110 | done
|
---|
[562] | 3111 |
|
---|
[8756] | 3112 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 3113 | fi
|
---|
| 3114 | fi
|
---|
| 3115 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3116 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3117 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3118 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 3119 | else
|
---|
| 3120 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3121 | echo "${ECHO_T}no" >&6
|
---|
| 3122 | fi
|
---|
| 3123 |
|
---|
| 3124 | RANLIB=$ac_ct_RANLIB
|
---|
| 3125 | else
|
---|
| 3126 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3127 | fi
|
---|
| 3128 |
|
---|
| 3129 |
|
---|
[15551] | 3130 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3131 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
| 3132 | arch_64bit=no
|
---|
| 3133 | case "$host_cpu" in
|
---|
| 3134 | x86_64) arch_64bit=yes ;;
|
---|
| 3135 | esac
|
---|
| 3136 |
|
---|
| 3137 | if test "$arch_64bit" = yes; then
|
---|
| 3138 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3139 | echo "${ECHO_T}yes" >&6
|
---|
| 3140 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3141 | COMPAT32BITFLAGS="-m32"
|
---|
| 3142 | fi
|
---|
| 3143 | else
|
---|
| 3144 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3145 | echo "${ECHO_T}no" >&6
|
---|
| 3146 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3147 | COMPAT32BITFLAGS=
|
---|
| 3148 | fi
|
---|
| 3149 | fi
|
---|
| 3150 | export COMPAT32BITFLAGS
|
---|
| 3151 |
|
---|
| 3152 |
|
---|
| 3153 |
|
---|
[2173] | 3154 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3155 | if test $USE_CORBA = 1; then
|
---|
| 3156 |
|
---|
[2213] | 3157 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3158 | #do something
|
---|
| 3159 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3160 | else
|
---|
| 3161 | #build the micotest program
|
---|
| 3162 | MICO_INC= ""
|
---|
| 3163 | if test $MICO_DIR != yes; then
|
---|
| 3164 | MICO_INC="-I $MICO_DIR"
|
---|
| 3165 | fi
|
---|
| 3166 | fi
|
---|
| 3167 |
|
---|
| 3168 | #get MICO_VER value
|
---|
| 3169 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3170 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3171 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3172 | sh -c "rm micotest"
|
---|
| 3173 | sh -c "rm micotest.o"
|
---|
| 3174 |
|
---|
| 3175 | #do test of MICO_VER
|
---|
| 3176 | if test MICO_VER != 0; then
|
---|
[8756] | 3177 | cat >>confdefs.h <<\_ACEOF
|
---|
[2173] | 3178 | #define MICO_VER 1
|
---|
[8756] | 3179 | _ACEOF
|
---|
[2173] | 3180 |
|
---|
[8200] | 3181 |
|
---|
[2173] | 3182 | fi
|
---|
| 3183 | #end USE_CORBA test
|
---|
| 3184 | fi
|
---|
| 3185 |
|
---|
[8756] | 3186 |
|
---|
| 3187 | ac_ext=c
|
---|
| 3188 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3192 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3193 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[687] | 3194 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3195 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3196 | CPP=
|
---|
| 3197 | fi
|
---|
| 3198 | if test -z "$CPP"; then
|
---|
[8756] | 3199 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3200 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3201 | else
|
---|
[8756] | 3202 | # Double quotes because CPP needs to be expanded
|
---|
| 3203 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3204 | do
|
---|
| 3205 | ac_preproc_ok=false
|
---|
| 3206 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3207 | do
|
---|
| 3208 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3209 | # with a fresh cross-compiler works.
|
---|
| 3210 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3211 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3212 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3213 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3214 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3215 | /* confdefs.h. */
|
---|
| 3216 | _ACEOF
|
---|
| 3217 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3218 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3219 | /* end confdefs.h. */
|
---|
| 3220 | #ifdef __STDC__
|
---|
| 3221 | # include <limits.h>
|
---|
| 3222 | #else
|
---|
| 3223 | # include <assert.h>
|
---|
| 3224 | #endif
|
---|
| 3225 | Syntax error
|
---|
| 3226 | _ACEOF
|
---|
| 3227 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3228 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3229 | ac_status=$?
|
---|
| 3230 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3231 | rm -f conftest.er1
|
---|
| 3232 | cat conftest.err >&5
|
---|
| 3233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3234 | (exit $ac_status); } >/dev/null; then
|
---|
| 3235 | if test -s conftest.err; then
|
---|
| 3236 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3237 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3238 | else
|
---|
| 3239 | ac_cpp_err=
|
---|
| 3240 | fi
|
---|
[687] | 3241 | else
|
---|
[8756] | 3242 | ac_cpp_err=yes
|
---|
| 3243 | fi
|
---|
| 3244 | if test -z "$ac_cpp_err"; then
|
---|
[8200] | 3245 | :
|
---|
[687] | 3246 | else
|
---|
[8756] | 3247 | echo "$as_me: failed program was:" >&5
|
---|
| 3248 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3249 |
|
---|
| 3250 | # Broken: fails on valid input.
|
---|
| 3251 | continue
|
---|
| 3252 | fi
|
---|
| 3253 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3254 |
|
---|
| 3255 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3256 | # can be detected and how.
|
---|
| 3257 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3258 | /* confdefs.h. */
|
---|
| 3259 | _ACEOF
|
---|
| 3260 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3261 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3262 | /* end confdefs.h. */
|
---|
| 3263 | #include <ac_nonexistent.h>
|
---|
| 3264 | _ACEOF
|
---|
| 3265 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3266 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3267 | ac_status=$?
|
---|
| 3268 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3269 | rm -f conftest.er1
|
---|
| 3270 | cat conftest.err >&5
|
---|
| 3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3272 | (exit $ac_status); } >/dev/null; then
|
---|
| 3273 | if test -s conftest.err; then
|
---|
| 3274 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3275 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3276 | else
|
---|
| 3277 | ac_cpp_err=
|
---|
| 3278 | fi
|
---|
| 3279 | else
|
---|
| 3280 | ac_cpp_err=yes
|
---|
| 3281 | fi
|
---|
| 3282 | if test -z "$ac_cpp_err"; then
|
---|
| 3283 | # Broken: success on invalid input.
|
---|
| 3284 | continue
|
---|
| 3285 | else
|
---|
| 3286 | echo "$as_me: failed program was:" >&5
|
---|
| 3287 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3288 |
|
---|
| 3289 | # Passes both tests.
|
---|
| 3290 | ac_preproc_ok=:
|
---|
| 3291 | break
|
---|
| 3292 | fi
|
---|
| 3293 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3294 |
|
---|
| 3295 | done
|
---|
| 3296 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3297 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3298 | if $ac_preproc_ok; then
|
---|
| 3299 | break
|
---|
| 3300 | fi
|
---|
| 3301 |
|
---|
| 3302 | done
|
---|
| 3303 | ac_cv_prog_CPP=$CPP
|
---|
| 3304 |
|
---|
| 3305 | fi
|
---|
| 3306 | CPP=$ac_cv_prog_CPP
|
---|
| 3307 | else
|
---|
| 3308 | ac_cv_prog_CPP=$CPP
|
---|
| 3309 | fi
|
---|
| 3310 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3311 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3312 | ac_preproc_ok=false
|
---|
| 3313 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3314 | do
|
---|
| 3315 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3316 | # with a fresh cross-compiler works.
|
---|
| 3317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3318 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3319 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3320 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3321 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3322 | /* confdefs.h. */
|
---|
| 3323 | _ACEOF
|
---|
| 3324 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3325 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3326 | /* end confdefs.h. */
|
---|
| 3327 | #ifdef __STDC__
|
---|
| 3328 | # include <limits.h>
|
---|
| 3329 | #else
|
---|
| 3330 | # include <assert.h>
|
---|
| 3331 | #endif
|
---|
| 3332 | Syntax error
|
---|
| 3333 | _ACEOF
|
---|
| 3334 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3335 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3336 | ac_status=$?
|
---|
| 3337 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3338 | rm -f conftest.er1
|
---|
| 3339 | cat conftest.err >&5
|
---|
| 3340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3341 | (exit $ac_status); } >/dev/null; then
|
---|
| 3342 | if test -s conftest.err; then
|
---|
| 3343 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3344 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3345 | else
|
---|
| 3346 | ac_cpp_err=
|
---|
| 3347 | fi
|
---|
| 3348 | else
|
---|
| 3349 | ac_cpp_err=yes
|
---|
| 3350 | fi
|
---|
| 3351 | if test -z "$ac_cpp_err"; then
|
---|
[687] | 3352 | :
|
---|
| 3353 | else
|
---|
[8756] | 3354 | echo "$as_me: failed program was:" >&5
|
---|
| 3355 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3356 |
|
---|
| 3357 | # Broken: fails on valid input.
|
---|
| 3358 | continue
|
---|
[687] | 3359 | fi
|
---|
[8756] | 3360 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3361 |
|
---|
| 3362 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3363 | # can be detected and how.
|
---|
| 3364 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3365 | /* confdefs.h. */
|
---|
| 3366 | _ACEOF
|
---|
| 3367 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3368 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3369 | /* end confdefs.h. */
|
---|
| 3370 | #include <ac_nonexistent.h>
|
---|
| 3371 | _ACEOF
|
---|
| 3372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3374 | ac_status=$?
|
---|
| 3375 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3376 | rm -f conftest.er1
|
---|
| 3377 | cat conftest.err >&5
|
---|
| 3378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3379 | (exit $ac_status); } >/dev/null; then
|
---|
| 3380 | if test -s conftest.err; then
|
---|
| 3381 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3382 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3383 | else
|
---|
| 3384 | ac_cpp_err=
|
---|
| 3385 | fi
|
---|
| 3386 | else
|
---|
| 3387 | ac_cpp_err=yes
|
---|
[687] | 3388 | fi
|
---|
[8756] | 3389 | if test -z "$ac_cpp_err"; then
|
---|
| 3390 | # Broken: success on invalid input.
|
---|
| 3391 | continue
|
---|
| 3392 | else
|
---|
| 3393 | echo "$as_me: failed program was:" >&5
|
---|
| 3394 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3395 |
|
---|
| 3396 | # Passes both tests.
|
---|
| 3397 | ac_preproc_ok=:
|
---|
| 3398 | break
|
---|
[687] | 3399 | fi
|
---|
[8756] | 3400 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3401 |
|
---|
| 3402 | done
|
---|
| 3403 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3404 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3405 | if $ac_preproc_ok; then
|
---|
| 3406 | :
|
---|
| 3407 | else
|
---|
| 3408 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3409 | See \`config.log' for more details." >&5
|
---|
| 3410 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3411 | See \`config.log' for more details." >&2;}
|
---|
| 3412 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3413 | fi
|
---|
[8756] | 3414 |
|
---|
| 3415 | ac_ext=c
|
---|
| 3416 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3420 |
|
---|
| 3421 |
|
---|
| 3422 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3423 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3424 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3425 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3426 | else
|
---|
[8756] | 3427 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3428 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3429 | else ac_cv_prog_egrep='egrep'
|
---|
| 3430 | fi
|
---|
[687] | 3431 | fi
|
---|
[8756] | 3432 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3433 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3434 | EGREP=$ac_cv_prog_egrep
|
---|
[687] | 3435 |
|
---|
[8756] | 3436 |
|
---|
| 3437 |
|
---|
| 3438 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3439 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3440 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3441 | /* confdefs.h. */
|
---|
| 3442 | _ACEOF
|
---|
| 3443 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3444 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3445 | /* end confdefs.h. */
|
---|
[687] | 3446 | #ifdef _AIX
|
---|
| 3447 | yes
|
---|
| 3448 | #endif
|
---|
| 3449 |
|
---|
[8756] | 3450 | _ACEOF
|
---|
[687] | 3451 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 3452 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3453 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3454 | echo "${ECHO_T}yes" >&6
|
---|
| 3455 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3456 | #define _ALL_SOURCE 1
|
---|
[8756] | 3457 | _ACEOF
|
---|
[687] | 3458 |
|
---|
| 3459 | else
|
---|
[8756] | 3460 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3461 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3462 | fi
|
---|
| 3463 | rm -f conftest*
|
---|
| 3464 |
|
---|
[8200] | 3465 |
|
---|
[8756] | 3466 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3467 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3468 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3469 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3470 | else
|
---|
| 3471 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3472 | ac_cv_search_strerror=no
|
---|
| 3473 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3474 | /* confdefs.h. */
|
---|
| 3475 | _ACEOF
|
---|
| 3476 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3477 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3478 | /* end confdefs.h. */
|
---|
[687] | 3479 |
|
---|
[8756] | 3480 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3481 | #ifdef __cplusplus
|
---|
| 3482 | extern "C"
|
---|
| 3483 | #endif
|
---|
| 3484 | /* We use char because int might match the return type of a gcc2
|
---|
| 3485 | builtin and then its argument prototype would still apply. */
|
---|
| 3486 | char strerror ();
|
---|
| 3487 | int
|
---|
| 3488 | main ()
|
---|
| 3489 | {
|
---|
| 3490 | strerror ();
|
---|
| 3491 | ;
|
---|
| 3492 | return 0;
|
---|
| 3493 | }
|
---|
| 3494 | _ACEOF
|
---|
| 3495 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3497 | (eval $ac_link) 2>conftest.er1
|
---|
| 3498 | ac_status=$?
|
---|
| 3499 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3500 | rm -f conftest.er1
|
---|
| 3501 | cat conftest.err >&5
|
---|
| 3502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3503 | (exit $ac_status); } &&
|
---|
| 3504 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3505 | || test ! -s conftest.err'
|
---|
| 3506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3507 | (eval $ac_try) 2>&5
|
---|
| 3508 | ac_status=$?
|
---|
| 3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3510 | (exit $ac_status); }; } &&
|
---|
| 3511 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3513 | (eval $ac_try) 2>&5
|
---|
| 3514 | ac_status=$?
|
---|
| 3515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3516 | (exit $ac_status); }; }; then
|
---|
| 3517 | ac_cv_search_strerror="none required"
|
---|
[687] | 3518 | else
|
---|
[8756] | 3519 | echo "$as_me: failed program was:" >&5
|
---|
| 3520 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3521 |
|
---|
[687] | 3522 | fi
|
---|
[8756] | 3523 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3524 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3525 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3526 | for ac_lib in cposix; do
|
---|
| 3527 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3528 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3529 | /* confdefs.h. */
|
---|
| 3530 | _ACEOF
|
---|
| 3531 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3532 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3533 | /* end confdefs.h. */
|
---|
[687] | 3534 |
|
---|
[8756] | 3535 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3536 | #ifdef __cplusplus
|
---|
| 3537 | extern "C"
|
---|
| 3538 | #endif
|
---|
| 3539 | /* We use char because int might match the return type of a gcc2
|
---|
| 3540 | builtin and then its argument prototype would still apply. */
|
---|
| 3541 | char strerror ();
|
---|
| 3542 | int
|
---|
| 3543 | main ()
|
---|
| 3544 | {
|
---|
| 3545 | strerror ();
|
---|
| 3546 | ;
|
---|
| 3547 | return 0;
|
---|
| 3548 | }
|
---|
| 3549 | _ACEOF
|
---|
| 3550 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3552 | (eval $ac_link) 2>conftest.er1
|
---|
| 3553 | ac_status=$?
|
---|
| 3554 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3555 | rm -f conftest.er1
|
---|
| 3556 | cat conftest.err >&5
|
---|
| 3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3558 | (exit $ac_status); } &&
|
---|
| 3559 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3560 | || test ! -s conftest.err'
|
---|
| 3561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3562 | (eval $ac_try) 2>&5
|
---|
| 3563 | ac_status=$?
|
---|
| 3564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3565 | (exit $ac_status); }; } &&
|
---|
| 3566 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3568 | (eval $ac_try) 2>&5
|
---|
| 3569 | ac_status=$?
|
---|
| 3570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3571 | (exit $ac_status); }; }; then
|
---|
| 3572 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3573 | break
|
---|
[687] | 3574 | else
|
---|
[8756] | 3575 | echo "$as_me: failed program was:" >&5
|
---|
| 3576 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3577 |
|
---|
| 3578 | fi
|
---|
| 3579 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3580 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3581 | done
|
---|
| 3582 | fi
|
---|
| 3583 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3584 | fi
|
---|
| 3585 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3586 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3587 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3588 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3589 |
|
---|
| 3590 | fi
|
---|
| 3591 |
|
---|
| 3592 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3593 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3594 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3595 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3596 | else
|
---|
[8756] | 3597 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3598 | /* confdefs.h. */
|
---|
| 3599 | _ACEOF
|
---|
| 3600 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3601 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3602 | /* end confdefs.h. */
|
---|
| 3603 | #include <stdlib.h>
|
---|
| 3604 | #include <stdarg.h>
|
---|
| 3605 | #include <string.h>
|
---|
| 3606 | #include <float.h>
|
---|
| 3607 |
|
---|
| 3608 | int
|
---|
| 3609 | main ()
|
---|
| 3610 | {
|
---|
| 3611 |
|
---|
| 3612 | ;
|
---|
| 3613 | return 0;
|
---|
| 3614 | }
|
---|
| 3615 | _ACEOF
|
---|
| 3616 | rm -f conftest.$ac_objext
|
---|
| 3617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3618 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3619 | ac_status=$?
|
---|
| 3620 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3621 | rm -f conftest.er1
|
---|
| 3622 | cat conftest.err >&5
|
---|
| 3623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3624 | (exit $ac_status); } &&
|
---|
| 3625 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3626 | || test ! -s conftest.err'
|
---|
| 3627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3628 | (eval $ac_try) 2>&5
|
---|
| 3629 | ac_status=$?
|
---|
| 3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3631 | (exit $ac_status); }; } &&
|
---|
| 3632 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3634 | (eval $ac_try) 2>&5
|
---|
| 3635 | ac_status=$?
|
---|
| 3636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3637 | (exit $ac_status); }; }; then
|
---|
| 3638 | ac_cv_header_stdc=yes
|
---|
| 3639 | else
|
---|
| 3640 | echo "$as_me: failed program was:" >&5
|
---|
| 3641 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3642 |
|
---|
| 3643 | ac_cv_header_stdc=no
|
---|
[687] | 3644 | fi
|
---|
[8756] | 3645 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3646 |
|
---|
| 3647 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3648 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3649 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3650 | /* confdefs.h. */
|
---|
| 3651 | _ACEOF
|
---|
| 3652 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3653 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3654 | /* end confdefs.h. */
|
---|
| 3655 | #include <string.h>
|
---|
| 3656 |
|
---|
| 3657 | _ACEOF
|
---|
| 3658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3659 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3660 | :
|
---|
| 3661 | else
|
---|
| 3662 | ac_cv_header_stdc=no
|
---|
| 3663 | fi
|
---|
[8200] | 3664 | rm -f conftest*
|
---|
[8756] | 3665 |
|
---|
[687] | 3666 | fi
|
---|
[8756] | 3667 |
|
---|
| 3668 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3669 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3670 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3671 | /* confdefs.h. */
|
---|
| 3672 | _ACEOF
|
---|
| 3673 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3674 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3675 | /* end confdefs.h. */
|
---|
| 3676 | #include <stdlib.h>
|
---|
| 3677 |
|
---|
| 3678 | _ACEOF
|
---|
| 3679 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3680 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3681 | :
|
---|
| 3682 | else
|
---|
| 3683 | ac_cv_header_stdc=no
|
---|
| 3684 | fi
|
---|
| 3685 | rm -f conftest*
|
---|
| 3686 |
|
---|
| 3687 | fi
|
---|
| 3688 |
|
---|
| 3689 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3690 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3691 | if test "$cross_compiling" = yes; then
|
---|
| 3692 | :
|
---|
| 3693 | else
|
---|
| 3694 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3695 | /* confdefs.h. */
|
---|
| 3696 | _ACEOF
|
---|
| 3697 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3698 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3699 | /* end confdefs.h. */
|
---|
| 3700 | #include <ctype.h>
|
---|
| 3701 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3702 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3703 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3704 | #else
|
---|
| 3705 | # define ISLOWER(c) \
|
---|
| 3706 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3707 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3708 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3709 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3710 | #endif
|
---|
| 3711 |
|
---|
| 3712 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3713 | int
|
---|
| 3714 | main ()
|
---|
| 3715 | {
|
---|
| 3716 | int i;
|
---|
| 3717 | for (i = 0; i < 256; i++)
|
---|
| 3718 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3719 | || toupper (i) != TOUPPER (i))
|
---|
| 3720 | exit(2);
|
---|
| 3721 | exit (0);
|
---|
| 3722 | }
|
---|
| 3723 | _ACEOF
|
---|
| 3724 | rm -f conftest$ac_exeext
|
---|
| 3725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3726 | (eval $ac_link) 2>&5
|
---|
| 3727 | ac_status=$?
|
---|
| 3728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3731 | (eval $ac_try) 2>&5
|
---|
| 3732 | ac_status=$?
|
---|
| 3733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3734 | (exit $ac_status); }; }; then
|
---|
| 3735 | :
|
---|
| 3736 | else
|
---|
| 3737 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3738 | echo "$as_me: failed program was:" >&5
|
---|
| 3739 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3740 |
|
---|
| 3741 | ( exit $ac_status )
|
---|
| 3742 | ac_cv_header_stdc=no
|
---|
| 3743 | fi
|
---|
| 3744 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3745 | fi
|
---|
| 3746 | fi
|
---|
| 3747 | fi
|
---|
| 3748 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3749 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3750 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3751 |
|
---|
| 3752 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3753 | #define STDC_HEADERS 1
|
---|
| 3754 | _ACEOF
|
---|
| 3755 |
|
---|
| 3756 | fi
|
---|
| 3757 |
|
---|
| 3758 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3759 |
|
---|
| 3760 |
|
---|
| 3761 |
|
---|
| 3762 |
|
---|
| 3763 |
|
---|
| 3764 |
|
---|
| 3765 |
|
---|
| 3766 |
|
---|
| 3767 |
|
---|
| 3768 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3769 | inttypes.h stdint.h unistd.h
|
---|
| 3770 | do
|
---|
| 3771 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3772 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3773 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3775 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3776 | else
|
---|
| 3777 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3778 | /* confdefs.h. */
|
---|
| 3779 | _ACEOF
|
---|
| 3780 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3781 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3782 | /* end confdefs.h. */
|
---|
| 3783 | $ac_includes_default
|
---|
| 3784 |
|
---|
| 3785 | #include <$ac_header>
|
---|
| 3786 | _ACEOF
|
---|
| 3787 | rm -f conftest.$ac_objext
|
---|
| 3788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3789 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3790 | ac_status=$?
|
---|
| 3791 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3792 | rm -f conftest.er1
|
---|
| 3793 | cat conftest.err >&5
|
---|
| 3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3795 | (exit $ac_status); } &&
|
---|
| 3796 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3797 | || test ! -s conftest.err'
|
---|
| 3798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3799 | (eval $ac_try) 2>&5
|
---|
| 3800 | ac_status=$?
|
---|
| 3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3802 | (exit $ac_status); }; } &&
|
---|
| 3803 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3805 | (eval $ac_try) 2>&5
|
---|
| 3806 | ac_status=$?
|
---|
| 3807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3808 | (exit $ac_status); }; }; then
|
---|
| 3809 | eval "$as_ac_Header=yes"
|
---|
| 3810 | else
|
---|
| 3811 | echo "$as_me: failed program was:" >&5
|
---|
| 3812 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3813 |
|
---|
| 3814 | eval "$as_ac_Header=no"
|
---|
| 3815 | fi
|
---|
| 3816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3817 | fi
|
---|
| 3818 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3819 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3820 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3821 | cat >>confdefs.h <<_ACEOF
|
---|
| 3822 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3823 | _ACEOF
|
---|
| 3824 |
|
---|
| 3825 | fi
|
---|
| 3826 |
|
---|
| 3827 | done
|
---|
| 3828 |
|
---|
| 3829 |
|
---|
| 3830 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3831 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3832 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3833 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3834 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3835 | fi
|
---|
| 3836 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3837 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3838 | else
|
---|
| 3839 | # Is the header compilable?
|
---|
| 3840 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3841 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3842 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3843 | /* confdefs.h. */
|
---|
| 3844 | _ACEOF
|
---|
| 3845 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3846 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3847 | /* end confdefs.h. */
|
---|
| 3848 | $ac_includes_default
|
---|
| 3849 | #include <minix/config.h>
|
---|
| 3850 | _ACEOF
|
---|
| 3851 | rm -f conftest.$ac_objext
|
---|
| 3852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3853 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3854 | ac_status=$?
|
---|
| 3855 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3856 | rm -f conftest.er1
|
---|
| 3857 | cat conftest.err >&5
|
---|
| 3858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3859 | (exit $ac_status); } &&
|
---|
| 3860 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3861 | || test ! -s conftest.err'
|
---|
| 3862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3863 | (eval $ac_try) 2>&5
|
---|
| 3864 | ac_status=$?
|
---|
| 3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3866 | (exit $ac_status); }; } &&
|
---|
| 3867 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3869 | (eval $ac_try) 2>&5
|
---|
| 3870 | ac_status=$?
|
---|
| 3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3872 | (exit $ac_status); }; }; then
|
---|
| 3873 | ac_header_compiler=yes
|
---|
| 3874 | else
|
---|
| 3875 | echo "$as_me: failed program was:" >&5
|
---|
| 3876 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3877 |
|
---|
| 3878 | ac_header_compiler=no
|
---|
| 3879 | fi
|
---|
| 3880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3881 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3882 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3883 |
|
---|
| 3884 | # Is the header present?
|
---|
| 3885 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3886 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3887 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3888 | /* confdefs.h. */
|
---|
| 3889 | _ACEOF
|
---|
| 3890 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3891 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3892 | /* end confdefs.h. */
|
---|
| 3893 | #include <minix/config.h>
|
---|
| 3894 | _ACEOF
|
---|
| 3895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3897 | ac_status=$?
|
---|
| 3898 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3899 | rm -f conftest.er1
|
---|
| 3900 | cat conftest.err >&5
|
---|
| 3901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3902 | (exit $ac_status); } >/dev/null; then
|
---|
| 3903 | if test -s conftest.err; then
|
---|
| 3904 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3905 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3906 | else
|
---|
| 3907 | ac_cpp_err=
|
---|
| 3908 | fi
|
---|
| 3909 | else
|
---|
| 3910 | ac_cpp_err=yes
|
---|
| 3911 | fi
|
---|
| 3912 | if test -z "$ac_cpp_err"; then
|
---|
| 3913 | ac_header_preproc=yes
|
---|
| 3914 | else
|
---|
| 3915 | echo "$as_me: failed program was:" >&5
|
---|
| 3916 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3917 |
|
---|
| 3918 | ac_header_preproc=no
|
---|
| 3919 | fi
|
---|
| 3920 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3921 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3922 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3923 |
|
---|
| 3924 | # So? What about this header?
|
---|
| 3925 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3926 | yes:no: )
|
---|
| 3927 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3928 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3929 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3930 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3931 | ac_header_preproc=yes
|
---|
| 3932 | ;;
|
---|
| 3933 | no:yes:* )
|
---|
| 3934 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3935 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3936 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3937 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3938 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3939 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3940 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3941 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3942 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3943 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3944 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3945 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3946 | (
|
---|
| 3947 | cat <<\_ASBOX
|
---|
| 3948 | ## ------------------------------------------ ##
|
---|
| 3949 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3950 | ## ------------------------------------------ ##
|
---|
| 3951 | _ASBOX
|
---|
| 3952 | ) |
|
---|
| 3953 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3954 | ;;
|
---|
| 3955 | esac
|
---|
| 3956 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3957 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3958 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3959 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3960 | else
|
---|
| 3961 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 3962 | fi
|
---|
| 3963 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3964 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3965 |
|
---|
| 3966 | fi
|
---|
| 3967 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[687] | 3968 | MINIX=yes
|
---|
| 3969 | else
|
---|
[8756] | 3970 | MINIX=
|
---|
[687] | 3971 | fi
|
---|
| 3972 |
|
---|
[8756] | 3973 |
|
---|
[687] | 3974 | if test "$MINIX" = yes; then
|
---|
[8756] | 3975 |
|
---|
| 3976 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3977 | #define _POSIX_SOURCE 1
|
---|
[8756] | 3978 | _ACEOF
|
---|
[687] | 3979 |
|
---|
[8756] | 3980 |
|
---|
| 3981 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3982 | #define _POSIX_1_SOURCE 2
|
---|
[8756] | 3983 | _ACEOF
|
---|
[687] | 3984 |
|
---|
[8756] | 3985 |
|
---|
| 3986 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3987 | #define _MINIX 1
|
---|
[8756] | 3988 | _ACEOF
|
---|
[687] | 3989 |
|
---|
| 3990 | fi
|
---|
| 3991 |
|
---|
[8756] | 3992 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 3993 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3994 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3995 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 3996 | else
|
---|
| 3997 | ac_cv_prog_cc_stdc=no
|
---|
| 3998 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3999 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4000 | # breaks some systems' header files.
|
---|
| 4001 | # AIX -qlanglvl=ansi
|
---|
| 4002 | # Ultrix and OSF/1 -std1
|
---|
| 4003 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4004 | # SVR4 -Xc
|
---|
| 4005 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4006 | do
|
---|
| 4007 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8756] | 4008 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4009 | /* confdefs.h. */
|
---|
| 4010 | _ACEOF
|
---|
| 4011 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4012 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4013 | /* end confdefs.h. */
|
---|
[700] | 4014 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4015 | choke me
|
---|
[8756] | 4016 | #endif
|
---|
[700] | 4017 |
|
---|
[8756] | 4018 | int
|
---|
| 4019 | main ()
|
---|
| 4020 | {
|
---|
[700] | 4021 | int test (int i, double x);
|
---|
| 4022 | struct s1 {int (*f) (int a);};
|
---|
| 4023 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 4024 | ;
|
---|
| 4025 | return 0;
|
---|
| 4026 | }
|
---|
| 4027 | _ACEOF
|
---|
| 4028 | rm -f conftest.$ac_objext
|
---|
| 4029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4030 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4031 | ac_status=$?
|
---|
| 4032 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4033 | rm -f conftest.er1
|
---|
| 4034 | cat conftest.err >&5
|
---|
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4036 | (exit $ac_status); } &&
|
---|
| 4037 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4038 | || test ! -s conftest.err'
|
---|
| 4039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4040 | (eval $ac_try) 2>&5
|
---|
| 4041 | ac_status=$?
|
---|
| 4042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4043 | (exit $ac_status); }; } &&
|
---|
| 4044 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4046 | (eval $ac_try) 2>&5
|
---|
| 4047 | ac_status=$?
|
---|
| 4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4049 | (exit $ac_status); }; }; then
|
---|
[700] | 4050 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4051 | else
|
---|
[8756] | 4052 | echo "$as_me: failed program was:" >&5
|
---|
| 4053 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4054 |
|
---|
[700] | 4055 | fi
|
---|
[8756] | 4056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4057 | done
|
---|
| 4058 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4059 |
|
---|
| 4060 | fi
|
---|
| 4061 |
|
---|
[8756] | 4062 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4063 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[700] | 4064 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4065 | x|xno) ;;
|
---|
| 4066 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4067 | esac
|
---|
| 4068 |
|
---|
[8200] | 4069 |
|
---|
[8756] | 4070 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4071 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[700] | 4072 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[8756] | 4073 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4074 | echo "${ECHO_T}yes" >&6
|
---|
| 4075 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 4076 | #define PROTOTYPES 1
|
---|
[8756] | 4077 | _ACEOF
|
---|
[700] | 4078 |
|
---|
| 4079 | U= ANSI2KNR=
|
---|
| 4080 | else
|
---|
[8756] | 4081 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4082 | echo "${ECHO_T}no" >&6
|
---|
[700] | 4083 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4084 | fi
|
---|
| 4085 |
|
---|
[8756] | 4086 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4087 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4088 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4089 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4090 | else
|
---|
[8756] | 4091 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4092 | /* confdefs.h. */
|
---|
| 4093 | _ACEOF
|
---|
| 4094 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4095 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4096 | /* end confdefs.h. */
|
---|
[8200] | 4097 |
|
---|
[8756] | 4098 | int
|
---|
| 4099 | main ()
|
---|
| 4100 | {
|
---|
| 4101 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4102 | #ifndef __cplusplus
|
---|
| 4103 | /* Ultrix mips cc rejects this. */
|
---|
| 4104 | typedef int charset[2];
|
---|
| 4105 | const charset x;
|
---|
| 4106 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 4107 | char const *const *ccp;
|
---|
| 4108 | char **p;
|
---|
| 4109 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4110 | struct point {int x, y;};
|
---|
| 4111 | static struct point const zero = {0,0};
|
---|
| 4112 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4113 | It does not let you subtract one const X* pointer from another in
|
---|
| 4114 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4115 | expression */
|
---|
| 4116 | const char *g = "string";
|
---|
| 4117 | ccp = &g + (g ? g-g : 0);
|
---|
| 4118 | /* HPUX 7.0 cc rejects these. */
|
---|
| 4119 | ++ccp;
|
---|
| 4120 | p = (char**) ccp;
|
---|
| 4121 | ccp = (char const *const *) p;
|
---|
| 4122 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4123 | char *t;
|
---|
| 4124 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4125 |
|
---|
[8756] | 4126 | *t++ = 0;
|
---|
| 4127 | }
|
---|
| 4128 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4129 | int x[] = {25, 17};
|
---|
| 4130 | const int *foo = &x[0];
|
---|
| 4131 | ++foo;
|
---|
| 4132 | }
|
---|
| 4133 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4134 | typedef const int *iptr;
|
---|
| 4135 | iptr p = 0;
|
---|
| 4136 | ++p;
|
---|
| 4137 | }
|
---|
| 4138 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4139 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4140 | struct s { int j; const int *ap[3]; };
|
---|
| 4141 | struct s *b; b->j = 5;
|
---|
| 4142 | }
|
---|
| 4143 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4144 | const int foo = 10;
|
---|
| 4145 | }
|
---|
| 4146 | #endif
|
---|
[8200] | 4147 |
|
---|
[8756] | 4148 | ;
|
---|
| 4149 | return 0;
|
---|
[3631] | 4150 | }
|
---|
[8756] | 4151 | _ACEOF
|
---|
| 4152 | rm -f conftest.$ac_objext
|
---|
| 4153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4154 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4155 | ac_status=$?
|
---|
| 4156 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4157 | rm -f conftest.er1
|
---|
| 4158 | cat conftest.err >&5
|
---|
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4160 | (exit $ac_status); } &&
|
---|
| 4161 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4162 | || test ! -s conftest.err'
|
---|
| 4163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4164 | (eval $ac_try) 2>&5
|
---|
| 4165 | ac_status=$?
|
---|
| 4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4167 | (exit $ac_status); }; } &&
|
---|
| 4168 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4170 | (eval $ac_try) 2>&5
|
---|
| 4171 | ac_status=$?
|
---|
| 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4173 | (exit $ac_status); }; }; then
|
---|
[687] | 4174 | ac_cv_c_const=yes
|
---|
| 4175 | else
|
---|
[8756] | 4176 | echo "$as_me: failed program was:" >&5
|
---|
| 4177 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4178 |
|
---|
| 4179 | ac_cv_c_const=no
|
---|
[687] | 4180 | fi
|
---|
[8756] | 4181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4182 | fi
|
---|
[8756] | 4183 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4184 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[3631] | 4185 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4186 |
|
---|
[8756] | 4187 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4188 | #define const
|
---|
| 4189 | _ACEOF
|
---|
| 4190 |
|
---|
[687] | 4191 | fi
|
---|
| 4192 |
|
---|
[8756] | 4193 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4194 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4195 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4196 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4197 | else
|
---|
[8756] | 4198 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4199 | /* confdefs.h. */
|
---|
| 4200 | _ACEOF
|
---|
| 4201 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4202 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4203 | /* end confdefs.h. */
|
---|
| 4204 | $ac_includes_default
|
---|
| 4205 | int
|
---|
| 4206 | main ()
|
---|
| 4207 | {
|
---|
| 4208 | if ((off_t *) 0)
|
---|
| 4209 | return 0;
|
---|
| 4210 | if (sizeof (off_t))
|
---|
| 4211 | return 0;
|
---|
| 4212 | ;
|
---|
| 4213 | return 0;
|
---|
| 4214 | }
|
---|
| 4215 | _ACEOF
|
---|
| 4216 | rm -f conftest.$ac_objext
|
---|
| 4217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4218 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4219 | ac_status=$?
|
---|
| 4220 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4221 | rm -f conftest.er1
|
---|
| 4222 | cat conftest.err >&5
|
---|
| 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4224 | (exit $ac_status); } &&
|
---|
| 4225 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4226 | || test ! -s conftest.err'
|
---|
| 4227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4228 | (eval $ac_try) 2>&5
|
---|
| 4229 | ac_status=$?
|
---|
| 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4231 | (exit $ac_status); }; } &&
|
---|
| 4232 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4234 | (eval $ac_try) 2>&5
|
---|
| 4235 | ac_status=$?
|
---|
| 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4237 | (exit $ac_status); }; }; then
|
---|
| 4238 | ac_cv_type_off_t=yes
|
---|
[687] | 4239 | else
|
---|
[8756] | 4240 | echo "$as_me: failed program was:" >&5
|
---|
| 4241 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 4242 |
|
---|
[8756] | 4243 | ac_cv_type_off_t=no
|
---|
[687] | 4244 | fi
|
---|
[8756] | 4245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4246 | fi
|
---|
[8756] | 4247 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4248 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4249 | if test $ac_cv_type_off_t = yes; then
|
---|
[687] | 4250 | :
|
---|
| 4251 | else
|
---|
| 4252 |
|
---|
[8756] | 4253 | cat >>confdefs.h <<_ACEOF
|
---|
| 4254 | #define off_t long
|
---|
| 4255 | _ACEOF
|
---|
[687] | 4256 |
|
---|
| 4257 | fi
|
---|
[8200] | 4258 |
|
---|
[8756] | 4259 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4260 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4261 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4262 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4263 | else
|
---|
[8756] | 4264 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4265 | /* confdefs.h. */
|
---|
| 4266 | _ACEOF
|
---|
| 4267 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4268 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4269 | /* end confdefs.h. */
|
---|
| 4270 | $ac_includes_default
|
---|
| 4271 | int
|
---|
| 4272 | main ()
|
---|
| 4273 | {
|
---|
| 4274 | if ((size_t *) 0)
|
---|
| 4275 | return 0;
|
---|
| 4276 | if (sizeof (size_t))
|
---|
| 4277 | return 0;
|
---|
| 4278 | ;
|
---|
| 4279 | return 0;
|
---|
| 4280 | }
|
---|
| 4281 | _ACEOF
|
---|
| 4282 | rm -f conftest.$ac_objext
|
---|
| 4283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4284 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4285 | ac_status=$?
|
---|
| 4286 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4287 | rm -f conftest.er1
|
---|
| 4288 | cat conftest.err >&5
|
---|
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4290 | (exit $ac_status); } &&
|
---|
| 4291 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4292 | || test ! -s conftest.err'
|
---|
| 4293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4294 | (eval $ac_try) 2>&5
|
---|
| 4295 | ac_status=$?
|
---|
| 4296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4297 | (exit $ac_status); }; } &&
|
---|
| 4298 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4300 | (eval $ac_try) 2>&5
|
---|
| 4301 | ac_status=$?
|
---|
| 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4303 | (exit $ac_status); }; }; then
|
---|
| 4304 | ac_cv_type_size_t=yes
|
---|
[687] | 4305 | else
|
---|
[8756] | 4306 | echo "$as_me: failed program was:" >&5
|
---|
| 4307 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4308 |
|
---|
[8756] | 4309 | ac_cv_type_size_t=no
|
---|
[3631] | 4310 | fi
|
---|
[8756] | 4311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4312 | fi
|
---|
[8756] | 4313 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4314 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4315 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4316 | :
|
---|
[687] | 4317 | else
|
---|
[8200] | 4318 |
|
---|
[8756] | 4319 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 4320 | #define size_t unsigned
|
---|
[8756] | 4321 | _ACEOF
|
---|
[687] | 4322 |
|
---|
| 4323 | fi
|
---|
| 4324 |
|
---|
[8756] | 4325 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4326 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4327 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4328 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4329 | else
|
---|
[8756] | 4330 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4331 | /* confdefs.h. */
|
---|
| 4332 | _ACEOF
|
---|
| 4333 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4334 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4335 | /* end confdefs.h. */
|
---|
[687] | 4336 | #include <sys/types.h>
|
---|
| 4337 | #include <sys/time.h>
|
---|
| 4338 | #include <time.h>
|
---|
[8756] | 4339 |
|
---|
| 4340 | int
|
---|
| 4341 | main ()
|
---|
| 4342 | {
|
---|
| 4343 | if ((struct tm *) 0)
|
---|
| 4344 | return 0;
|
---|
| 4345 | ;
|
---|
| 4346 | return 0;
|
---|
| 4347 | }
|
---|
| 4348 | _ACEOF
|
---|
| 4349 | rm -f conftest.$ac_objext
|
---|
| 4350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4351 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4352 | ac_status=$?
|
---|
| 4353 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4354 | rm -f conftest.er1
|
---|
| 4355 | cat conftest.err >&5
|
---|
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4357 | (exit $ac_status); } &&
|
---|
| 4358 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4359 | || test ! -s conftest.err'
|
---|
| 4360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4361 | (eval $ac_try) 2>&5
|
---|
| 4362 | ac_status=$?
|
---|
| 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4364 | (exit $ac_status); }; } &&
|
---|
| 4365 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4367 | (eval $ac_try) 2>&5
|
---|
| 4368 | ac_status=$?
|
---|
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4370 | (exit $ac_status); }; }; then
|
---|
[687] | 4371 | ac_cv_header_time=yes
|
---|
| 4372 | else
|
---|
[8756] | 4373 | echo "$as_me: failed program was:" >&5
|
---|
| 4374 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4375 |
|
---|
| 4376 | ac_cv_header_time=no
|
---|
[687] | 4377 | fi
|
---|
[8756] | 4378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4379 | fi
|
---|
[8756] | 4380 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4381 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4382 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4383 |
|
---|
[8756] | 4384 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4385 | #define TIME_WITH_SYS_TIME 1
|
---|
[8756] | 4386 | _ACEOF
|
---|
[687] | 4387 |
|
---|
| 4388 | fi
|
---|
| 4389 |
|
---|
[8756] | 4390 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4391 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4392 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4393 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4394 | else
|
---|
[8756] | 4395 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4396 | /* confdefs.h. */
|
---|
| 4397 | _ACEOF
|
---|
| 4398 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4399 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4400 | /* end confdefs.h. */
|
---|
[687] | 4401 | #include <sys/types.h>
|
---|
| 4402 | #include <time.h>
|
---|
[8756] | 4403 |
|
---|
| 4404 | int
|
---|
| 4405 | main ()
|
---|
| 4406 | {
|
---|
[687] | 4407 | struct tm *tp; tp->tm_sec;
|
---|
[8756] | 4408 | ;
|
---|
| 4409 | return 0;
|
---|
| 4410 | }
|
---|
| 4411 | _ACEOF
|
---|
| 4412 | rm -f conftest.$ac_objext
|
---|
| 4413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4414 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4415 | ac_status=$?
|
---|
| 4416 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4417 | rm -f conftest.er1
|
---|
| 4418 | cat conftest.err >&5
|
---|
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4420 | (exit $ac_status); } &&
|
---|
| 4421 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4422 | || test ! -s conftest.err'
|
---|
| 4423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4424 | (eval $ac_try) 2>&5
|
---|
| 4425 | ac_status=$?
|
---|
| 4426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4427 | (exit $ac_status); }; } &&
|
---|
| 4428 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4430 | (eval $ac_try) 2>&5
|
---|
| 4431 | ac_status=$?
|
---|
| 4432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4433 | (exit $ac_status); }; }; then
|
---|
[687] | 4434 | ac_cv_struct_tm=time.h
|
---|
| 4435 | else
|
---|
[8756] | 4436 | echo "$as_me: failed program was:" >&5
|
---|
| 4437 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4438 |
|
---|
| 4439 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4440 | fi
|
---|
[8756] | 4441 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4442 | fi
|
---|
[8756] | 4443 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4444 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4445 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4446 |
|
---|
[8756] | 4447 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4448 | #define TM_IN_SYS_TIME 1
|
---|
[8756] | 4449 | _ACEOF
|
---|
[687] | 4450 |
|
---|
| 4451 | fi
|
---|
| 4452 |
|
---|
[8200] | 4453 |
|
---|
[687] | 4454 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8756] | 4455 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4456 | /* confdefs.h. */
|
---|
| 4457 | _ACEOF
|
---|
| 4458 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4459 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4460 | /* end confdefs.h. */
|
---|
[687] | 4461 | #include <stdio.h>
|
---|
| 4462 |
|
---|
[8756] | 4463 | int
|
---|
| 4464 | main ()
|
---|
| 4465 | {
|
---|
| 4466 | FILE *rubbish = popen("yes", "r");
|
---|
| 4467 | ;
|
---|
| 4468 | return 0;
|
---|
| 4469 | }
|
---|
| 4470 | _ACEOF
|
---|
| 4471 | rm -f conftest.$ac_objext
|
---|
| 4472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4473 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4474 | ac_status=$?
|
---|
| 4475 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4476 | rm -f conftest.er1
|
---|
| 4477 | cat conftest.err >&5
|
---|
| 4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4479 | (exit $ac_status); } &&
|
---|
| 4480 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4481 | || test ! -s conftest.err'
|
---|
| 4482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4483 | (eval $ac_try) 2>&5
|
---|
| 4484 | ac_status=$?
|
---|
| 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4486 | (exit $ac_status); }; } &&
|
---|
| 4487 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4489 | (eval $ac_try) 2>&5
|
---|
| 4490 | ac_status=$?
|
---|
| 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4492 | (exit $ac_status); }; }; then
|
---|
[687] | 4493 | :
|
---|
| 4494 | else
|
---|
[8756] | 4495 | echo "$as_me: failed program was:" >&5
|
---|
| 4496 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4497 |
|
---|
| 4498 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4499 | fi
|
---|
[8756] | 4500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4501 | fi
|
---|
| 4502 |
|
---|
[8200] | 4503 |
|
---|
[8756] | 4504 |
|
---|
| 4505 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4506 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4507 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4508 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4509 | else
|
---|
[8756] | 4510 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4511 | LIBS="-lg $LIBS"
|
---|
[8756] | 4512 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4513 | /* confdefs.h. */
|
---|
| 4514 | _ACEOF
|
---|
| 4515 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4516 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4517 | /* end confdefs.h. */
|
---|
[562] | 4518 |
|
---|
[8756] | 4519 |
|
---|
| 4520 | int
|
---|
| 4521 | main ()
|
---|
| 4522 | {
|
---|
| 4523 | main ();
|
---|
| 4524 | ;
|
---|
| 4525 | return 0;
|
---|
| 4526 | }
|
---|
| 4527 | _ACEOF
|
---|
| 4528 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4530 | (eval $ac_link) 2>conftest.er1
|
---|
| 4531 | ac_status=$?
|
---|
| 4532 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4533 | rm -f conftest.er1
|
---|
| 4534 | cat conftest.err >&5
|
---|
| 4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4536 | (exit $ac_status); } &&
|
---|
| 4537 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4538 | || test ! -s conftest.err'
|
---|
| 4539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4540 | (eval $ac_try) 2>&5
|
---|
| 4541 | ac_status=$?
|
---|
| 4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4543 | (exit $ac_status); }; } &&
|
---|
| 4544 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4546 | (eval $ac_try) 2>&5
|
---|
| 4547 | ac_status=$?
|
---|
| 4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4549 | (exit $ac_status); }; }; then
|
---|
| 4550 | ac_cv_lib_g_main=yes
|
---|
[562] | 4551 | else
|
---|
[8756] | 4552 | echo "$as_me: failed program was:" >&5
|
---|
| 4553 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4554 |
|
---|
[8756] | 4555 | ac_cv_lib_g_main=no
|
---|
[562] | 4556 | fi
|
---|
[8756] | 4557 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4558 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4559 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4560 | fi
|
---|
| 4561 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4562 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4563 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4564 | cat >>confdefs.h <<_ACEOF
|
---|
| 4565 | #define HAVE_LIBG 1
|
---|
| 4566 | _ACEOF
|
---|
[562] | 4567 |
|
---|
| 4568 | LIBS="-lg $LIBS"
|
---|
| 4569 |
|
---|
| 4570 | fi
|
---|
[8756] | 4571 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4572 |
|
---|
| 4573 |
|
---|
[8756] | 4574 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4575 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4576 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4577 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4578 | else
|
---|
[8756] | 4579 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4580 | LIBS="-lm $LIBS"
|
---|
| 4581 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4582 | /* confdefs.h. */
|
---|
| 4583 | _ACEOF
|
---|
| 4584 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4585 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4586 | /* end confdefs.h. */
|
---|
[8200] | 4587 |
|
---|
[562] | 4588 |
|
---|
[8756] | 4589 | int
|
---|
| 4590 | main ()
|
---|
| 4591 | {
|
---|
| 4592 | main ();
|
---|
| 4593 | ;
|
---|
| 4594 | return 0;
|
---|
| 4595 | }
|
---|
| 4596 | _ACEOF
|
---|
| 4597 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4599 | (eval $ac_link) 2>conftest.er1
|
---|
| 4600 | ac_status=$?
|
---|
| 4601 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4602 | rm -f conftest.er1
|
---|
| 4603 | cat conftest.err >&5
|
---|
| 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4605 | (exit $ac_status); } &&
|
---|
| 4606 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4607 | || test ! -s conftest.err'
|
---|
| 4608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4609 | (eval $ac_try) 2>&5
|
---|
| 4610 | ac_status=$?
|
---|
| 4611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4612 | (exit $ac_status); }; } &&
|
---|
| 4613 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4615 | (eval $ac_try) 2>&5
|
---|
| 4616 | ac_status=$?
|
---|
| 4617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4618 | (exit $ac_status); }; }; then
|
---|
| 4619 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4620 | else
|
---|
[8756] | 4621 | echo "$as_me: failed program was:" >&5
|
---|
| 4622 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 4623 |
|
---|
[8756] | 4624 | ac_cv_lib_m_main=no
|
---|
[562] | 4625 | fi
|
---|
[8756] | 4626 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4627 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4628 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4629 | fi
|
---|
[8756] | 4630 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4631 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4632 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4633 | cat >>confdefs.h <<_ACEOF
|
---|
| 4634 | #define HAVE_LIBM 1
|
---|
| 4635 | _ACEOF
|
---|
[562] | 4636 |
|
---|
| 4637 | LIBS="-lm $LIBS"
|
---|
| 4638 |
|
---|
| 4639 | fi
|
---|
[8756] | 4640 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4641 |
|
---|
[8756] | 4642 |
|
---|
| 4643 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4644 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4645 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4646 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4647 | else
|
---|
[8756] | 4648 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4649 | LIBS="-lcrypt $LIBS"
|
---|
| 4650 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4651 | /* confdefs.h. */
|
---|
| 4652 | _ACEOF
|
---|
| 4653 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4654 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4655 | /* end confdefs.h. */
|
---|
[562] | 4656 |
|
---|
[8756] | 4657 |
|
---|
| 4658 | int
|
---|
| 4659 | main ()
|
---|
| 4660 | {
|
---|
| 4661 | main ();
|
---|
| 4662 | ;
|
---|
| 4663 | return 0;
|
---|
| 4664 | }
|
---|
| 4665 | _ACEOF
|
---|
| 4666 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4668 | (eval $ac_link) 2>conftest.er1
|
---|
| 4669 | ac_status=$?
|
---|
| 4670 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4671 | rm -f conftest.er1
|
---|
| 4672 | cat conftest.err >&5
|
---|
| 4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4674 | (exit $ac_status); } &&
|
---|
| 4675 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4676 | || test ! -s conftest.err'
|
---|
| 4677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4678 | (eval $ac_try) 2>&5
|
---|
| 4679 | ac_status=$?
|
---|
| 4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4681 | (exit $ac_status); }; } &&
|
---|
| 4682 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4684 | (eval $ac_try) 2>&5
|
---|
| 4685 | ac_status=$?
|
---|
| 4686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4687 | (exit $ac_status); }; }; then
|
---|
| 4688 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4689 | else
|
---|
[8756] | 4690 | echo "$as_me: failed program was:" >&5
|
---|
| 4691 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4692 |
|
---|
[8756] | 4693 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4694 | fi
|
---|
[8756] | 4695 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4696 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4697 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4698 | fi
|
---|
| 4699 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4700 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4701 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4702 | cat >>confdefs.h <<_ACEOF
|
---|
| 4703 | #define HAVE_LIBCRYPT 1
|
---|
| 4704 | _ACEOF
|
---|
[562] | 4705 |
|
---|
[8756] | 4706 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4707 |
|
---|
| 4708 | fi
|
---|
[8756] | 4709 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4710 |
|
---|
[12922] | 4711 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
[562] | 4712 |
|
---|
[14169] | 4713 | echo "$as_me:$LINENO: checking for main in -liconv" >&5
|
---|
| 4714 | echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
|
---|
| 4715 | if test "${ac_cv_lib_iconv_main+set}" = set; then
|
---|
[12922] | 4716 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4717 | else
|
---|
| 4718 | ac_check_lib_save_LIBS=$LIBS
|
---|
[14169] | 4719 | LIBS="-liconv $LIBS"
|
---|
[12922] | 4720 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4721 | /* confdefs.h. */
|
---|
| 4722 | _ACEOF
|
---|
| 4723 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4724 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4725 | /* end confdefs.h. */
|
---|
[8200] | 4726 |
|
---|
[986] | 4727 |
|
---|
[12922] | 4728 | int
|
---|
| 4729 | main ()
|
---|
| 4730 | {
|
---|
| 4731 | main ();
|
---|
| 4732 | ;
|
---|
| 4733 | return 0;
|
---|
| 4734 | }
|
---|
| 4735 | _ACEOF
|
---|
| 4736 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4738 | (eval $ac_link) 2>conftest.er1
|
---|
| 4739 | ac_status=$?
|
---|
| 4740 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4741 | rm -f conftest.er1
|
---|
| 4742 | cat conftest.err >&5
|
---|
| 4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4744 | (exit $ac_status); } &&
|
---|
| 4745 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4746 | || test ! -s conftest.err'
|
---|
| 4747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4748 | (eval $ac_try) 2>&5
|
---|
| 4749 | ac_status=$?
|
---|
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4751 | (exit $ac_status); }; } &&
|
---|
| 4752 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4754 | (eval $ac_try) 2>&5
|
---|
| 4755 | ac_status=$?
|
---|
| 4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4757 | (exit $ac_status); }; }; then
|
---|
[14169] | 4758 | ac_cv_lib_iconv_main=yes
|
---|
[12922] | 4759 | else
|
---|
| 4760 | echo "$as_me: failed program was:" >&5
|
---|
| 4761 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[986] | 4762 |
|
---|
[14169] | 4763 | ac_cv_lib_iconv_main=no
|
---|
[12922] | 4764 | fi
|
---|
| 4765 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4766 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4767 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4768 | fi
|
---|
[14169] | 4769 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
|
---|
| 4770 | echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
|
---|
| 4771 | if test $ac_cv_lib_iconv_main = yes; then
|
---|
[12922] | 4772 | cat >>confdefs.h <<_ACEOF
|
---|
| 4773 | #define HAVE_LIBICONV 1
|
---|
| 4774 | _ACEOF
|
---|
[986] | 4775 |
|
---|
[14169] | 4776 | LIBS="-liconv $LIBS"
|
---|
[8200] | 4777 |
|
---|
[12922] | 4778 | fi
|
---|
[14169] | 4779 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
[8200] | 4780 |
|
---|
[12922] | 4781 | fi
|
---|
| 4782 |
|
---|
| 4783 |
|
---|
| 4784 |
|
---|
| 4785 |
|
---|
| 4786 |
|
---|
| 4787 |
|
---|
[687] | 4788 | ac_header_dirent=no
|
---|
[8756] | 4789 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4790 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4791 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4792 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4794 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4795 | else
|
---|
[8756] | 4796 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4797 | /* confdefs.h. */
|
---|
| 4798 | _ACEOF
|
---|
| 4799 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4800 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4801 | /* end confdefs.h. */
|
---|
[687] | 4802 | #include <sys/types.h>
|
---|
| 4803 | #include <$ac_hdr>
|
---|
[8756] | 4804 |
|
---|
| 4805 | int
|
---|
| 4806 | main ()
|
---|
| 4807 | {
|
---|
| 4808 | if ((DIR *) 0)
|
---|
| 4809 | return 0;
|
---|
| 4810 | ;
|
---|
| 4811 | return 0;
|
---|
| 4812 | }
|
---|
| 4813 | _ACEOF
|
---|
| 4814 | rm -f conftest.$ac_objext
|
---|
| 4815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4816 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4817 | ac_status=$?
|
---|
| 4818 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4819 | rm -f conftest.er1
|
---|
| 4820 | cat conftest.err >&5
|
---|
| 4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4822 | (exit $ac_status); } &&
|
---|
| 4823 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4824 | || test ! -s conftest.err'
|
---|
| 4825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4826 | (eval $ac_try) 2>&5
|
---|
| 4827 | ac_status=$?
|
---|
| 4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4829 | (exit $ac_status); }; } &&
|
---|
| 4830 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4832 | (eval $ac_try) 2>&5
|
---|
| 4833 | ac_status=$?
|
---|
| 4834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4835 | (exit $ac_status); }; }; then
|
---|
| 4836 | eval "$as_ac_Header=yes"
|
---|
[562] | 4837 | else
|
---|
[8756] | 4838 | echo "$as_me: failed program was:" >&5
|
---|
| 4839 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4840 |
|
---|
| 4841 | eval "$as_ac_Header=no"
|
---|
[687] | 4842 | fi
|
---|
[8756] | 4843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4844 | fi
|
---|
[8756] | 4845 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4846 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4847 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4848 | cat >>confdefs.h <<_ACEOF
|
---|
| 4849 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4850 | _ACEOF
|
---|
| 4851 |
|
---|
| 4852 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 4853 | fi
|
---|
[8756] | 4854 |
|
---|
[687] | 4855 | done
|
---|
| 4856 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4857 | if test $ac_header_dirent = dirent.h; then
|
---|
[8756] | 4858 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4859 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4860 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4861 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4862 | else
|
---|
[8756] | 4863 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4864 | ac_cv_search_opendir=no
|
---|
| 4865 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4866 | /* confdefs.h. */
|
---|
| 4867 | _ACEOF
|
---|
| 4868 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4869 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4870 | /* end confdefs.h. */
|
---|
| 4871 |
|
---|
[687] | 4872 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4873 | #ifdef __cplusplus
|
---|
| 4874 | extern "C"
|
---|
| 4875 | #endif
|
---|
[687] | 4876 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4877 | builtin and then its argument prototype would still apply. */
|
---|
| 4878 | char opendir ();
|
---|
| 4879 | int
|
---|
| 4880 | main ()
|
---|
| 4881 | {
|
---|
| 4882 | opendir ();
|
---|
| 4883 | ;
|
---|
| 4884 | return 0;
|
---|
| 4885 | }
|
---|
| 4886 | _ACEOF
|
---|
| 4887 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4889 | (eval $ac_link) 2>conftest.er1
|
---|
| 4890 | ac_status=$?
|
---|
| 4891 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4892 | rm -f conftest.er1
|
---|
| 4893 | cat conftest.err >&5
|
---|
| 4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4895 | (exit $ac_status); } &&
|
---|
| 4896 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4897 | || test ! -s conftest.err'
|
---|
| 4898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4899 | (eval $ac_try) 2>&5
|
---|
| 4900 | ac_status=$?
|
---|
| 4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4902 | (exit $ac_status); }; } &&
|
---|
| 4903 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4905 | (eval $ac_try) 2>&5
|
---|
| 4906 | ac_status=$?
|
---|
| 4907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4908 | (exit $ac_status); }; }; then
|
---|
| 4909 | ac_cv_search_opendir="none required"
|
---|
| 4910 | else
|
---|
| 4911 | echo "$as_me: failed program was:" >&5
|
---|
| 4912 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4913 |
|
---|
[687] | 4914 | fi
|
---|
[8756] | 4915 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4916 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4917 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4918 | for ac_lib in dir; do
|
---|
| 4919 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4920 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4921 | /* confdefs.h. */
|
---|
| 4922 | _ACEOF
|
---|
| 4923 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4924 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4925 | /* end confdefs.h. */
|
---|
[8200] | 4926 |
|
---|
[8756] | 4927 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4928 | #ifdef __cplusplus
|
---|
| 4929 | extern "C"
|
---|
| 4930 | #endif
|
---|
| 4931 | /* We use char because int might match the return type of a gcc2
|
---|
| 4932 | builtin and then its argument prototype would still apply. */
|
---|
| 4933 | char opendir ();
|
---|
| 4934 | int
|
---|
| 4935 | main ()
|
---|
| 4936 | {
|
---|
| 4937 | opendir ();
|
---|
| 4938 | ;
|
---|
| 4939 | return 0;
|
---|
| 4940 | }
|
---|
| 4941 | _ACEOF
|
---|
| 4942 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4944 | (eval $ac_link) 2>conftest.er1
|
---|
| 4945 | ac_status=$?
|
---|
| 4946 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4947 | rm -f conftest.er1
|
---|
| 4948 | cat conftest.err >&5
|
---|
| 4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4950 | (exit $ac_status); } &&
|
---|
| 4951 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4952 | || test ! -s conftest.err'
|
---|
| 4953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4954 | (eval $ac_try) 2>&5
|
---|
| 4955 | ac_status=$?
|
---|
| 4956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4957 | (exit $ac_status); }; } &&
|
---|
| 4958 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4960 | (eval $ac_try) 2>&5
|
---|
| 4961 | ac_status=$?
|
---|
| 4962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4963 | (exit $ac_status); }; }; then
|
---|
| 4964 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4965 | break
|
---|
[8200] | 4966 | else
|
---|
[8756] | 4967 | echo "$as_me: failed program was:" >&5
|
---|
| 4968 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4969 |
|
---|
[687] | 4970 | fi
|
---|
[8756] | 4971 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4972 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4973 | done
|
---|
| 4974 | fi
|
---|
| 4975 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4976 | fi
|
---|
| 4977 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4978 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4979 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4980 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[687] | 4981 |
|
---|
[8756] | 4982 | fi
|
---|
| 4983 |
|
---|
[687] | 4984 | else
|
---|
[8756] | 4985 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4986 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4987 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4988 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4989 | else
|
---|
[8756] | 4990 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4991 | ac_cv_search_opendir=no
|
---|
| 4992 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4993 | /* confdefs.h. */
|
---|
| 4994 | _ACEOF
|
---|
| 4995 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4996 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4997 | /* end confdefs.h. */
|
---|
| 4998 |
|
---|
[687] | 4999 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5000 | #ifdef __cplusplus
|
---|
| 5001 | extern "C"
|
---|
| 5002 | #endif
|
---|
[687] | 5003 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5004 | builtin and then its argument prototype would still apply. */
|
---|
| 5005 | char opendir ();
|
---|
| 5006 | int
|
---|
| 5007 | main ()
|
---|
| 5008 | {
|
---|
| 5009 | opendir ();
|
---|
| 5010 | ;
|
---|
| 5011 | return 0;
|
---|
| 5012 | }
|
---|
| 5013 | _ACEOF
|
---|
| 5014 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5016 | (eval $ac_link) 2>conftest.er1
|
---|
| 5017 | ac_status=$?
|
---|
| 5018 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5019 | rm -f conftest.er1
|
---|
| 5020 | cat conftest.err >&5
|
---|
| 5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5022 | (exit $ac_status); } &&
|
---|
| 5023 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5024 | || test ! -s conftest.err'
|
---|
| 5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5026 | (eval $ac_try) 2>&5
|
---|
| 5027 | ac_status=$?
|
---|
| 5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5029 | (exit $ac_status); }; } &&
|
---|
| 5030 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5032 | (eval $ac_try) 2>&5
|
---|
| 5033 | ac_status=$?
|
---|
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5035 | (exit $ac_status); }; }; then
|
---|
| 5036 | ac_cv_search_opendir="none required"
|
---|
| 5037 | else
|
---|
| 5038 | echo "$as_me: failed program was:" >&5
|
---|
| 5039 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 5040 |
|
---|
[562] | 5041 | fi
|
---|
[8756] | 5042 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5043 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5044 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5045 | for ac_lib in x; do
|
---|
| 5046 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5047 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5048 | /* confdefs.h. */
|
---|
| 5049 | _ACEOF
|
---|
| 5050 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5051 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5052 | /* end confdefs.h. */
|
---|
[8200] | 5053 |
|
---|
[8756] | 5054 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5055 | #ifdef __cplusplus
|
---|
| 5056 | extern "C"
|
---|
| 5057 | #endif
|
---|
| 5058 | /* We use char because int might match the return type of a gcc2
|
---|
| 5059 | builtin and then its argument prototype would still apply. */
|
---|
| 5060 | char opendir ();
|
---|
| 5061 | int
|
---|
| 5062 | main ()
|
---|
| 5063 | {
|
---|
| 5064 | opendir ();
|
---|
| 5065 | ;
|
---|
| 5066 | return 0;
|
---|
| 5067 | }
|
---|
| 5068 | _ACEOF
|
---|
| 5069 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5071 | (eval $ac_link) 2>conftest.er1
|
---|
| 5072 | ac_status=$?
|
---|
| 5073 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5074 | rm -f conftest.er1
|
---|
| 5075 | cat conftest.err >&5
|
---|
| 5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5077 | (exit $ac_status); } &&
|
---|
| 5078 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5079 | || test ! -s conftest.err'
|
---|
| 5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5081 | (eval $ac_try) 2>&5
|
---|
| 5082 | ac_status=$?
|
---|
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5084 | (exit $ac_status); }; } &&
|
---|
| 5085 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5087 | (eval $ac_try) 2>&5
|
---|
| 5088 | ac_status=$?
|
---|
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5090 | (exit $ac_status); }; }; then
|
---|
| 5091 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5092 | break
|
---|
[8200] | 5093 | else
|
---|
[8756] | 5094 | echo "$as_me: failed program was:" >&5
|
---|
| 5095 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5096 |
|
---|
[562] | 5097 | fi
|
---|
[8756] | 5098 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5099 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5100 | done
|
---|
| 5101 | fi
|
---|
| 5102 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5103 | fi
|
---|
| 5104 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5105 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5106 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5107 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[562] | 5108 |
|
---|
[687] | 5109 | fi
|
---|
| 5110 |
|
---|
[8756] | 5111 | fi
|
---|
| 5112 |
|
---|
| 5113 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5114 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5115 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5116 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5117 | else
|
---|
[8756] | 5118 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5119 | /* confdefs.h. */
|
---|
| 5120 | _ACEOF
|
---|
| 5121 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5122 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5123 | /* end confdefs.h. */
|
---|
[562] | 5124 | #include <stdlib.h>
|
---|
| 5125 | #include <stdarg.h>
|
---|
| 5126 | #include <string.h>
|
---|
| 5127 | #include <float.h>
|
---|
[8756] | 5128 |
|
---|
| 5129 | int
|
---|
| 5130 | main ()
|
---|
| 5131 | {
|
---|
| 5132 |
|
---|
| 5133 | ;
|
---|
| 5134 | return 0;
|
---|
| 5135 | }
|
---|
| 5136 | _ACEOF
|
---|
| 5137 | rm -f conftest.$ac_objext
|
---|
| 5138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5139 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5140 | ac_status=$?
|
---|
| 5141 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5142 | rm -f conftest.er1
|
---|
| 5143 | cat conftest.err >&5
|
---|
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5145 | (exit $ac_status); } &&
|
---|
| 5146 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5147 | || test ! -s conftest.err'
|
---|
| 5148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5149 | (eval $ac_try) 2>&5
|
---|
| 5150 | ac_status=$?
|
---|
| 5151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5152 | (exit $ac_status); }; } &&
|
---|
| 5153 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5155 | (eval $ac_try) 2>&5
|
---|
| 5156 | ac_status=$?
|
---|
| 5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5158 | (exit $ac_status); }; }; then
|
---|
[562] | 5159 | ac_cv_header_stdc=yes
|
---|
| 5160 | else
|
---|
[8756] | 5161 | echo "$as_me: failed program was:" >&5
|
---|
| 5162 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5163 |
|
---|
| 5164 | ac_cv_header_stdc=no
|
---|
[562] | 5165 | fi
|
---|
[8756] | 5166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5167 |
|
---|
| 5168 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5169 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8756] | 5170 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5171 | /* confdefs.h. */
|
---|
| 5172 | _ACEOF
|
---|
| 5173 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5174 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5175 | /* end confdefs.h. */
|
---|
[562] | 5176 | #include <string.h>
|
---|
[8756] | 5177 |
|
---|
| 5178 | _ACEOF
|
---|
[562] | 5179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5180 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[562] | 5181 | :
|
---|
| 5182 | else
|
---|
| 5183 | ac_cv_header_stdc=no
|
---|
| 5184 | fi
|
---|
| 5185 | rm -f conftest*
|
---|
| 5186 |
|
---|
| 5187 | fi
|
---|
| 5188 |
|
---|
| 5189 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5190 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8756] | 5191 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5192 | /* confdefs.h. */
|
---|
| 5193 | _ACEOF
|
---|
| 5194 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5195 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5196 | /* end confdefs.h. */
|
---|
[562] | 5197 | #include <stdlib.h>
|
---|
[8756] | 5198 |
|
---|
| 5199 | _ACEOF
|
---|
[562] | 5200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5201 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[562] | 5202 | :
|
---|
| 5203 | else
|
---|
| 5204 | ac_cv_header_stdc=no
|
---|
| 5205 | fi
|
---|
| 5206 | rm -f conftest*
|
---|
| 5207 |
|
---|
| 5208 | fi
|
---|
| 5209 |
|
---|
| 5210 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5211 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8756] | 5212 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5213 | :
|
---|
| 5214 | else
|
---|
[8756] | 5215 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5216 | /* confdefs.h. */
|
---|
| 5217 | _ACEOF
|
---|
| 5218 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5219 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5220 | /* end confdefs.h. */
|
---|
[562] | 5221 | #include <ctype.h>
|
---|
[8756] | 5222 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5223 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5224 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5225 | #else
|
---|
| 5226 | # define ISLOWER(c) \
|
---|
| 5227 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5228 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5229 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5230 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5231 | #endif
|
---|
| 5232 |
|
---|
[8200] | 5233 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5234 | int
|
---|
| 5235 | main ()
|
---|
| 5236 | {
|
---|
| 5237 | int i;
|
---|
| 5238 | for (i = 0; i < 256; i++)
|
---|
| 5239 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5240 | || toupper (i) != TOUPPER (i))
|
---|
| 5241 | exit(2);
|
---|
| 5242 | exit (0);
|
---|
| 5243 | }
|
---|
| 5244 | _ACEOF
|
---|
| 5245 | rm -f conftest$ac_exeext
|
---|
| 5246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5247 | (eval $ac_link) 2>&5
|
---|
| 5248 | ac_status=$?
|
---|
| 5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5250 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5252 | (eval $ac_try) 2>&5
|
---|
| 5253 | ac_status=$?
|
---|
| 5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5255 | (exit $ac_status); }; }; then
|
---|
[562] | 5256 | :
|
---|
| 5257 | else
|
---|
[8756] | 5258 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5259 | echo "$as_me: failed program was:" >&5
|
---|
| 5260 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5261 |
|
---|
| 5262 | ( exit $ac_status )
|
---|
| 5263 | ac_cv_header_stdc=no
|
---|
[562] | 5264 | fi
|
---|
[8756] | 5265 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5266 | fi
|
---|
| 5267 | fi
|
---|
| 5268 | fi
|
---|
[8756] | 5269 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5270 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5271 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5272 |
|
---|
[8756] | 5273 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 5274 | #define STDC_HEADERS 1
|
---|
[8756] | 5275 | _ACEOF
|
---|
[562] | 5276 |
|
---|
| 5277 | fi
|
---|
| 5278 |
|
---|
[8756] | 5279 |
|
---|
| 5280 |
|
---|
| 5281 |
|
---|
| 5282 |
|
---|
| 5283 |
|
---|
| 5284 |
|
---|
| 5285 |
|
---|
| 5286 |
|
---|
[10181] | 5287 |
|
---|
| 5288 | 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
|
---|
[562] | 5289 | do
|
---|
[8756] | 5290 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5292 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5295 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5296 | fi
|
---|
| 5297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5298 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[562] | 5299 | else
|
---|
[8756] | 5300 | # Is the header compilable?
|
---|
| 5301 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5302 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5303 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5304 | /* confdefs.h. */
|
---|
| 5305 | _ACEOF
|
---|
| 5306 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5307 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5308 | /* end confdefs.h. */
|
---|
| 5309 | $ac_includes_default
|
---|
| 5310 | #include <$ac_header>
|
---|
| 5311 | _ACEOF
|
---|
| 5312 | rm -f conftest.$ac_objext
|
---|
| 5313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5314 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5315 | ac_status=$?
|
---|
| 5316 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5317 | rm -f conftest.er1
|
---|
| 5318 | cat conftest.err >&5
|
---|
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5320 | (exit $ac_status); } &&
|
---|
| 5321 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5322 | || test ! -s conftest.err'
|
---|
| 5323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5324 | (eval $ac_try) 2>&5
|
---|
| 5325 | ac_status=$?
|
---|
| 5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5327 | (exit $ac_status); }; } &&
|
---|
| 5328 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5330 | (eval $ac_try) 2>&5
|
---|
| 5331 | ac_status=$?
|
---|
| 5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5333 | (exit $ac_status); }; }; then
|
---|
| 5334 | ac_header_compiler=yes
|
---|
[562] | 5335 | else
|
---|
[8756] | 5336 | echo "$as_me: failed program was:" >&5
|
---|
| 5337 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5338 |
|
---|
| 5339 | ac_header_compiler=no
|
---|
[562] | 5340 | fi
|
---|
[8756] | 5341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5342 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5343 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5344 |
|
---|
| 5345 | # Is the header present?
|
---|
| 5346 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5347 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5348 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5349 | /* confdefs.h. */
|
---|
| 5350 | _ACEOF
|
---|
| 5351 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5353 | /* end confdefs.h. */
|
---|
| 5354 | #include <$ac_header>
|
---|
| 5355 | _ACEOF
|
---|
| 5356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5358 | ac_status=$?
|
---|
| 5359 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5360 | rm -f conftest.er1
|
---|
| 5361 | cat conftest.err >&5
|
---|
| 5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5363 | (exit $ac_status); } >/dev/null; then
|
---|
| 5364 | if test -s conftest.err; then
|
---|
| 5365 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5366 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5367 | else
|
---|
| 5368 | ac_cpp_err=
|
---|
| 5369 | fi
|
---|
| 5370 | else
|
---|
| 5371 | ac_cpp_err=yes
|
---|
[562] | 5372 | fi
|
---|
[8756] | 5373 | if test -z "$ac_cpp_err"; then
|
---|
| 5374 | ac_header_preproc=yes
|
---|
[8200] | 5375 | else
|
---|
[8756] | 5376 | echo "$as_me: failed program was:" >&5
|
---|
| 5377 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5378 |
|
---|
| 5379 | ac_header_preproc=no
|
---|
[562] | 5380 | fi
|
---|
[8756] | 5381 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5382 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5383 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5384 |
|
---|
| 5385 | # So? What about this header?
|
---|
| 5386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5387 | yes:no: )
|
---|
| 5388 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5389 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5391 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5392 | ac_header_preproc=yes
|
---|
| 5393 | ;;
|
---|
| 5394 | no:yes:* )
|
---|
| 5395 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5396 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5397 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5398 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5399 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5400 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5401 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5402 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5404 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5405 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5406 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5407 | (
|
---|
| 5408 | cat <<\_ASBOX
|
---|
| 5409 | ## ------------------------------------------ ##
|
---|
| 5410 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5411 | ## ------------------------------------------ ##
|
---|
| 5412 | _ASBOX
|
---|
| 5413 | ) |
|
---|
| 5414 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5415 | ;;
|
---|
| 5416 | esac
|
---|
| 5417 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5420 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5421 | else
|
---|
| 5422 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5423 | fi
|
---|
| 5424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5426 |
|
---|
| 5427 | fi
|
---|
| 5428 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5429 | cat >>confdefs.h <<_ACEOF
|
---|
| 5430 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5431 | _ACEOF
|
---|
| 5432 |
|
---|
| 5433 | fi
|
---|
| 5434 |
|
---|
[562] | 5435 | done
|
---|
| 5436 |
|
---|
[8756] | 5437 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5438 | /* confdefs.h. */
|
---|
| 5439 | _ACEOF
|
---|
| 5440 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5441 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5442 | /* end confdefs.h. */
|
---|
[687] | 5443 | #include <stdio.h>
|
---|
[8756] | 5444 |
|
---|
| 5445 | _ACEOF
|
---|
[687] | 5446 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5447 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5448 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5449 | #define HAVE_FREAD_DECL 1
|
---|
[8756] | 5450 | _ACEOF
|
---|
[562] | 5451 |
|
---|
[687] | 5452 | fi
|
---|
| 5453 | rm -f conftest*
|
---|
| 5454 |
|
---|
[8756] | 5455 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5456 | /* confdefs.h. */
|
---|
| 5457 | _ACEOF
|
---|
| 5458 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5459 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5460 | /* end confdefs.h. */
|
---|
[687] | 5461 | #include <stdio.h>
|
---|
[8756] | 5462 |
|
---|
| 5463 | _ACEOF
|
---|
[687] | 5464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5465 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5466 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5467 | #define HAVE_FGETC_DECL 1
|
---|
[8756] | 5468 | _ACEOF
|
---|
[687] | 5469 |
|
---|
| 5470 | fi
|
---|
| 5471 | rm -f conftest*
|
---|
| 5472 |
|
---|
[8756] | 5473 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5474 | /* confdefs.h. */
|
---|
| 5475 | _ACEOF
|
---|
| 5476 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5477 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5478 | /* end confdefs.h. */
|
---|
[687] | 5479 | #include <sys/procfs.h>
|
---|
[8756] | 5480 |
|
---|
| 5481 | _ACEOF
|
---|
[687] | 5482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5483 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5484 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5485 | #define HAVE_PR_BRKSIZE 1
|
---|
[8756] | 5486 | _ACEOF
|
---|
[687] | 5487 |
|
---|
| 5488 | fi
|
---|
| 5489 | rm -f conftest*
|
---|
| 5490 |
|
---|
[8200] | 5491 |
|
---|
[687] | 5492 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5493 | # for constant arguments. Useless!
|
---|
[8756] | 5494 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5495 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5496 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5497 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5498 | else
|
---|
[8756] | 5499 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5500 | /* confdefs.h. */
|
---|
| 5501 | _ACEOF
|
---|
| 5502 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5503 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5504 | /* end confdefs.h. */
|
---|
[687] | 5505 | #include <alloca.h>
|
---|
[8756] | 5506 | int
|
---|
| 5507 | main ()
|
---|
| 5508 | {
|
---|
| 5509 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5510 | ;
|
---|
| 5511 | return 0;
|
---|
| 5512 | }
|
---|
| 5513 | _ACEOF
|
---|
| 5514 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5516 | (eval $ac_link) 2>conftest.er1
|
---|
| 5517 | ac_status=$?
|
---|
| 5518 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5519 | rm -f conftest.er1
|
---|
| 5520 | cat conftest.err >&5
|
---|
| 5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5522 | (exit $ac_status); } &&
|
---|
| 5523 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5524 | || test ! -s conftest.err'
|
---|
| 5525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5526 | (eval $ac_try) 2>&5
|
---|
| 5527 | ac_status=$?
|
---|
| 5528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5529 | (exit $ac_status); }; } &&
|
---|
| 5530 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5532 | (eval $ac_try) 2>&5
|
---|
| 5533 | ac_status=$?
|
---|
| 5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5535 | (exit $ac_status); }; }; then
|
---|
| 5536 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5537 | else
|
---|
[8756] | 5538 | echo "$as_me: failed program was:" >&5
|
---|
| 5539 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5540 |
|
---|
| 5541 | ac_cv_working_alloca_h=no
|
---|
[562] | 5542 | fi
|
---|
[8756] | 5543 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5544 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5545 | fi
|
---|
[8756] | 5546 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5547 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5548 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5549 |
|
---|
[8756] | 5550 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5551 | #define HAVE_ALLOCA_H 1
|
---|
[8756] | 5552 | _ACEOF
|
---|
[562] | 5553 |
|
---|
| 5554 | fi
|
---|
| 5555 |
|
---|
[8756] | 5556 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5557 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5558 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5559 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5560 | else
|
---|
[8756] | 5561 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5562 | /* confdefs.h. */
|
---|
| 5563 | _ACEOF
|
---|
| 5564 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5565 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5566 | /* end confdefs.h. */
|
---|
[687] | 5567 | #ifdef __GNUC__
|
---|
| 5568 | # define alloca __builtin_alloca
|
---|
| 5569 | #else
|
---|
| 5570 | # ifdef _MSC_VER
|
---|
| 5571 | # include <malloc.h>
|
---|
| 5572 | # define alloca _alloca
|
---|
| 5573 | # else
|
---|
| 5574 | # if HAVE_ALLOCA_H
|
---|
| 5575 | # include <alloca.h>
|
---|
| 5576 | # else
|
---|
| 5577 | # ifdef _AIX
|
---|
| 5578 | #pragma alloca
|
---|
| 5579 | # else
|
---|
| 5580 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5581 | char *alloca ();
|
---|
| 5582 | # endif
|
---|
| 5583 | # endif
|
---|
| 5584 | # endif
|
---|
| 5585 | # endif
|
---|
| 5586 | #endif
|
---|
| 5587 |
|
---|
[8756] | 5588 | int
|
---|
| 5589 | main ()
|
---|
| 5590 | {
|
---|
| 5591 | char *p = (char *) alloca (1);
|
---|
| 5592 | ;
|
---|
| 5593 | return 0;
|
---|
| 5594 | }
|
---|
| 5595 | _ACEOF
|
---|
| 5596 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5598 | (eval $ac_link) 2>conftest.er1
|
---|
| 5599 | ac_status=$?
|
---|
| 5600 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5601 | rm -f conftest.er1
|
---|
| 5602 | cat conftest.err >&5
|
---|
| 5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5604 | (exit $ac_status); } &&
|
---|
| 5605 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5606 | || test ! -s conftest.err'
|
---|
| 5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5608 | (eval $ac_try) 2>&5
|
---|
| 5609 | ac_status=$?
|
---|
| 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5611 | (exit $ac_status); }; } &&
|
---|
| 5612 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5614 | (eval $ac_try) 2>&5
|
---|
| 5615 | ac_status=$?
|
---|
| 5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5617 | (exit $ac_status); }; }; then
|
---|
[687] | 5618 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5619 | else
|
---|
[8756] | 5620 | echo "$as_me: failed program was:" >&5
|
---|
| 5621 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5622 |
|
---|
| 5623 | ac_cv_func_alloca_works=no
|
---|
[562] | 5624 | fi
|
---|
[8756] | 5625 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5626 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5627 | fi
|
---|
[8756] | 5628 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5629 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[562] | 5630 |
|
---|
[687] | 5631 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5632 |
|
---|
| 5633 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5634 | #define HAVE_ALLOCA 1
|
---|
[8756] | 5635 | _ACEOF
|
---|
[562] | 5636 |
|
---|
[8756] | 5637 | else
|
---|
| 5638 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5639 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5640 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5641 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5642 |
|
---|
[8756] | 5643 | ALLOCA=alloca.$ac_objext
|
---|
| 5644 |
|
---|
| 5645 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5646 | #define C_ALLOCA 1
|
---|
[8756] | 5647 | _ACEOF
|
---|
[562] | 5648 |
|
---|
[8200] | 5649 |
|
---|
[8756] | 5650 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5651 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5652 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5653 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5654 | else
|
---|
[8756] | 5655 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5656 | /* confdefs.h. */
|
---|
| 5657 | _ACEOF
|
---|
| 5658 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5659 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5660 | /* end confdefs.h. */
|
---|
[687] | 5661 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5662 | webecray
|
---|
| 5663 | #else
|
---|
| 5664 | wenotbecray
|
---|
| 5665 | #endif
|
---|
[562] | 5666 |
|
---|
[8756] | 5667 | _ACEOF
|
---|
[687] | 5668 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5669 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 5670 | ac_cv_os_cray=yes
|
---|
| 5671 | else
|
---|
| 5672 | ac_cv_os_cray=no
|
---|
| 5673 | fi
|
---|
| 5674 | rm -f conftest*
|
---|
[562] | 5675 |
|
---|
[687] | 5676 | fi
|
---|
[8756] | 5677 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5678 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[687] | 5679 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5680 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5681 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5682 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5683 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5684 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5685 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5686 | else
|
---|
[8756] | 5687 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5688 | /* confdefs.h. */
|
---|
| 5689 | _ACEOF
|
---|
| 5690 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5691 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5692 | /* end confdefs.h. */
|
---|
| 5693 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5694 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5695 | #define $ac_func innocuous_$ac_func
|
---|
| 5696 |
|
---|
[687] | 5697 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5698 | which can conflict with char $ac_func (); below.
|
---|
| 5699 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5700 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5701 |
|
---|
| 5702 | #ifdef __STDC__
|
---|
| 5703 | # include <limits.h>
|
---|
| 5704 | #else
|
---|
| 5705 | # include <assert.h>
|
---|
| 5706 | #endif
|
---|
| 5707 |
|
---|
| 5708 | #undef $ac_func
|
---|
| 5709 |
|
---|
[687] | 5710 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5711 | #ifdef __cplusplus
|
---|
| 5712 | extern "C"
|
---|
| 5713 | {
|
---|
| 5714 | #endif
|
---|
[687] | 5715 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5716 | builtin and then its argument prototype would still apply. */
|
---|
| 5717 | char $ac_func ();
|
---|
[687] | 5718 | /* The GNU C library defines this for functions which it implements
|
---|
| 5719 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5720 | something starting with __ and the normal name is an alias. */
|
---|
| 5721 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5722 | choke me
|
---|
| 5723 | #else
|
---|
[8756] | 5724 | char (*f) () = $ac_func;
|
---|
[687] | 5725 | #endif
|
---|
[8756] | 5726 | #ifdef __cplusplus
|
---|
| 5727 | }
|
---|
| 5728 | #endif
|
---|
[687] | 5729 |
|
---|
[8756] | 5730 | int
|
---|
| 5731 | main ()
|
---|
| 5732 | {
|
---|
| 5733 | return f != $ac_func;
|
---|
| 5734 | ;
|
---|
| 5735 | return 0;
|
---|
| 5736 | }
|
---|
| 5737 | _ACEOF
|
---|
| 5738 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5740 | (eval $ac_link) 2>conftest.er1
|
---|
| 5741 | ac_status=$?
|
---|
| 5742 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5743 | rm -f conftest.er1
|
---|
| 5744 | cat conftest.err >&5
|
---|
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5746 | (exit $ac_status); } &&
|
---|
| 5747 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5748 | || test ! -s conftest.err'
|
---|
| 5749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5750 | (eval $ac_try) 2>&5
|
---|
| 5751 | ac_status=$?
|
---|
| 5752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5753 | (exit $ac_status); }; } &&
|
---|
| 5754 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5756 | (eval $ac_try) 2>&5
|
---|
| 5757 | ac_status=$?
|
---|
| 5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5759 | (exit $ac_status); }; }; then
|
---|
| 5760 | eval "$as_ac_var=yes"
|
---|
[562] | 5761 | else
|
---|
[8756] | 5762 | echo "$as_me: failed program was:" >&5
|
---|
| 5763 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5764 |
|
---|
| 5765 | eval "$as_ac_var=no"
|
---|
[562] | 5766 | fi
|
---|
[8756] | 5767 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5768 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 5769 | fi
|
---|
[8756] | 5770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5771 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5772 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[562] | 5773 |
|
---|
[8756] | 5774 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5775 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5776 | _ACEOF
|
---|
[562] | 5777 |
|
---|
[8756] | 5778 | break
|
---|
[687] | 5779 | fi
|
---|
[562] | 5780 |
|
---|
[8756] | 5781 | done
|
---|
[687] | 5782 | fi
|
---|
| 5783 |
|
---|
[8756] | 5784 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5785 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5786 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5787 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5788 | else
|
---|
| 5789 | if test "$cross_compiling" = yes; then
|
---|
| 5790 | ac_cv_c_stack_direction=0
|
---|
| 5791 | else
|
---|
[8756] | 5792 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5793 | /* confdefs.h. */
|
---|
| 5794 | _ACEOF
|
---|
| 5795 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5796 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5797 | /* end confdefs.h. */
|
---|
| 5798 | int
|
---|
[687] | 5799 | find_stack_direction ()
|
---|
| 5800 | {
|
---|
| 5801 | static char *addr = 0;
|
---|
| 5802 | auto char dummy;
|
---|
| 5803 | if (addr == 0)
|
---|
| 5804 | {
|
---|
| 5805 | addr = &dummy;
|
---|
| 5806 | return find_stack_direction ();
|
---|
| 5807 | }
|
---|
| 5808 | else
|
---|
| 5809 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5810 | }
|
---|
[8756] | 5811 |
|
---|
| 5812 | int
|
---|
[687] | 5813 | main ()
|
---|
| 5814 | {
|
---|
[8756] | 5815 | exit (find_stack_direction () < 0);
|
---|
[687] | 5816 | }
|
---|
[8756] | 5817 | _ACEOF
|
---|
| 5818 | rm -f conftest$ac_exeext
|
---|
| 5819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5820 | (eval $ac_link) 2>&5
|
---|
| 5821 | ac_status=$?
|
---|
| 5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5823 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5825 | (eval $ac_try) 2>&5
|
---|
| 5826 | ac_status=$?
|
---|
| 5827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5828 | (exit $ac_status); }; }; then
|
---|
[687] | 5829 | ac_cv_c_stack_direction=1
|
---|
[562] | 5830 | else
|
---|
[8756] | 5831 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5832 | echo "$as_me: failed program was:" >&5
|
---|
| 5833 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5834 |
|
---|
| 5835 | ( exit $ac_status )
|
---|
| 5836 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5837 | fi
|
---|
[8756] | 5838 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5839 | fi
|
---|
| 5840 | fi
|
---|
[8756] | 5841 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5842 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[687] | 5843 |
|
---|
[8756] | 5844 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5845 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5846 | _ACEOF
|
---|
[687] | 5847 |
|
---|
[8756] | 5848 |
|
---|
[687] | 5849 | fi
|
---|
| 5850 |
|
---|
[8756] | 5851 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
| 5852 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5853 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5854 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5855 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5856 | else
|
---|
| 5857 | ac_pattern="Autoconf.*'x'"
|
---|
[8756] | 5858 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5859 | /* confdefs.h. */
|
---|
| 5860 | _ACEOF
|
---|
| 5861 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5862 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5863 | /* end confdefs.h. */
|
---|
[687] | 5864 | #include <sgtty.h>
|
---|
| 5865 | Autoconf TIOCGETP
|
---|
[8756] | 5866 | _ACEOF
|
---|
[687] | 5867 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5868 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5869 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5870 | else
|
---|
| 5871 | ac_cv_prog_gcc_traditional=no
|
---|
| 5872 | fi
|
---|
[562] | 5873 | rm -f conftest*
|
---|
[687] | 5874 |
|
---|
[8200] | 5875 |
|
---|
[687] | 5876 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8756] | 5877 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5878 | /* confdefs.h. */
|
---|
| 5879 | _ACEOF
|
---|
| 5880 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5881 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5882 | /* end confdefs.h. */
|
---|
[687] | 5883 | #include <termio.h>
|
---|
| 5884 | Autoconf TCGETA
|
---|
[8756] | 5885 | _ACEOF
|
---|
[687] | 5886 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5887 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5888 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5889 | fi
|
---|
[687] | 5890 | rm -f conftest*
|
---|
[562] | 5891 |
|
---|
[687] | 5892 | fi
|
---|
| 5893 | fi
|
---|
[8756] | 5894 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5895 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[687] | 5896 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5897 | CC="$CC -traditional"
|
---|
| 5898 | fi
|
---|
| 5899 | fi
|
---|
| 5900 |
|
---|
[8756] | 5901 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5902 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5903 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5904 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5905 | else
|
---|
[8756] | 5906 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5907 | /* confdefs.h. */
|
---|
| 5908 | _ACEOF
|
---|
| 5909 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5910 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5911 | /* end confdefs.h. */
|
---|
[687] | 5912 | #include <sys/types.h>
|
---|
| 5913 | #include <signal.h>
|
---|
| 5914 | #ifdef signal
|
---|
[8756] | 5915 | # undef signal
|
---|
[687] | 5916 | #endif
|
---|
| 5917 | #ifdef __cplusplus
|
---|
| 5918 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5919 | #else
|
---|
| 5920 | void (*signal ()) ();
|
---|
| 5921 | #endif
|
---|
[562] | 5922 |
|
---|
[8756] | 5923 | int
|
---|
| 5924 | main ()
|
---|
| 5925 | {
|
---|
[687] | 5926 | int i;
|
---|
[8756] | 5927 | ;
|
---|
| 5928 | return 0;
|
---|
| 5929 | }
|
---|
| 5930 | _ACEOF
|
---|
| 5931 | rm -f conftest.$ac_objext
|
---|
| 5932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5933 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5934 | ac_status=$?
|
---|
| 5935 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5936 | rm -f conftest.er1
|
---|
| 5937 | cat conftest.err >&5
|
---|
| 5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5939 | (exit $ac_status); } &&
|
---|
| 5940 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5941 | || test ! -s conftest.err'
|
---|
| 5942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5943 | (eval $ac_try) 2>&5
|
---|
| 5944 | ac_status=$?
|
---|
| 5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5946 | (exit $ac_status); }; } &&
|
---|
| 5947 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5949 | (eval $ac_try) 2>&5
|
---|
| 5950 | ac_status=$?
|
---|
| 5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5952 | (exit $ac_status); }; }; then
|
---|
[687] | 5953 | ac_cv_type_signal=void
|
---|
[562] | 5954 | else
|
---|
[8756] | 5955 | echo "$as_me: failed program was:" >&5
|
---|
| 5956 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5957 |
|
---|
| 5958 | ac_cv_type_signal=int
|
---|
[562] | 5959 | fi
|
---|
[8756] | 5960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5961 | fi
|
---|
[8756] | 5962 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5963 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[562] | 5964 |
|
---|
[8756] | 5965 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5966 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5967 | _ACEOF
|
---|
[562] | 5968 |
|
---|
[8200] | 5969 |
|
---|
[8756] | 5970 |
|
---|
| 5971 | for ac_func in vprintf
|
---|
| 5972 | do
|
---|
| 5973 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5974 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5975 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5976 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5977 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5978 | else
|
---|
[8756] | 5979 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5980 | /* confdefs.h. */
|
---|
| 5981 | _ACEOF
|
---|
| 5982 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5983 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5984 | /* end confdefs.h. */
|
---|
| 5985 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5987 | #define $ac_func innocuous_$ac_func
|
---|
| 5988 |
|
---|
[562] | 5989 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5990 | which can conflict with char $ac_func (); below.
|
---|
| 5991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5992 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5993 |
|
---|
| 5994 | #ifdef __STDC__
|
---|
| 5995 | # include <limits.h>
|
---|
| 5996 | #else
|
---|
| 5997 | # include <assert.h>
|
---|
| 5998 | #endif
|
---|
| 5999 |
|
---|
| 6000 | #undef $ac_func
|
---|
| 6001 |
|
---|
[562] | 6002 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6003 | #ifdef __cplusplus
|
---|
| 6004 | extern "C"
|
---|
| 6005 | {
|
---|
| 6006 | #endif
|
---|
[562] | 6007 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6008 | builtin and then its argument prototype would still apply. */
|
---|
| 6009 | char $ac_func ();
|
---|
[562] | 6010 | /* The GNU C library defines this for functions which it implements
|
---|
| 6011 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6012 | something starting with __ and the normal name is an alias. */
|
---|
[8756] | 6013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[562] | 6014 | choke me
|
---|
| 6015 | #else
|
---|
[8756] | 6016 | char (*f) () = $ac_func;
|
---|
[562] | 6017 | #endif
|
---|
[8756] | 6018 | #ifdef __cplusplus
|
---|
| 6019 | }
|
---|
| 6020 | #endif
|
---|
[562] | 6021 |
|
---|
[8756] | 6022 | int
|
---|
| 6023 | main ()
|
---|
| 6024 | {
|
---|
| 6025 | return f != $ac_func;
|
---|
| 6026 | ;
|
---|
| 6027 | return 0;
|
---|
| 6028 | }
|
---|
| 6029 | _ACEOF
|
---|
| 6030 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6032 | (eval $ac_link) 2>conftest.er1
|
---|
| 6033 | ac_status=$?
|
---|
| 6034 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6035 | rm -f conftest.er1
|
---|
| 6036 | cat conftest.err >&5
|
---|
| 6037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6038 | (exit $ac_status); } &&
|
---|
| 6039 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6040 | || test ! -s conftest.err'
|
---|
| 6041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6042 | (eval $ac_try) 2>&5
|
---|
| 6043 | ac_status=$?
|
---|
| 6044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6045 | (exit $ac_status); }; } &&
|
---|
| 6046 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6048 | (eval $ac_try) 2>&5
|
---|
| 6049 | ac_status=$?
|
---|
| 6050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6051 | (exit $ac_status); }; }; then
|
---|
| 6052 | eval "$as_ac_var=yes"
|
---|
[562] | 6053 | else
|
---|
[8756] | 6054 | echo "$as_me: failed program was:" >&5
|
---|
| 6055 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6056 |
|
---|
| 6057 | eval "$as_ac_var=no"
|
---|
[562] | 6058 | fi
|
---|
[8756] | 6059 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6060 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6061 | fi
|
---|
[8756] | 6062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6064 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6065 | cat >>confdefs.h <<_ACEOF
|
---|
| 6066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6067 | _ACEOF
|
---|
[8200] | 6068 |
|
---|
[8756] | 6069 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6070 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6071 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6072 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 6073 | else
|
---|
[8756] | 6074 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6075 | /* confdefs.h. */
|
---|
| 6076 | _ACEOF
|
---|
| 6077 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6078 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6079 | /* end confdefs.h. */
|
---|
| 6080 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6082 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 6083 |
|
---|
[562] | 6084 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6085 | which can conflict with char _doprnt (); below.
|
---|
| 6086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6087 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6088 |
|
---|
| 6089 | #ifdef __STDC__
|
---|
| 6090 | # include <limits.h>
|
---|
| 6091 | #else
|
---|
| 6092 | # include <assert.h>
|
---|
| 6093 | #endif
|
---|
| 6094 |
|
---|
| 6095 | #undef _doprnt
|
---|
| 6096 |
|
---|
[562] | 6097 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6098 | #ifdef __cplusplus
|
---|
| 6099 | extern "C"
|
---|
| 6100 | {
|
---|
| 6101 | #endif
|
---|
[562] | 6102 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6103 | builtin and then its argument prototype would still apply. */
|
---|
| 6104 | char _doprnt ();
|
---|
[562] | 6105 | /* The GNU C library defines this for functions which it implements
|
---|
| 6106 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6107 | something starting with __ and the normal name is an alias. */
|
---|
| 6108 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6109 | choke me
|
---|
| 6110 | #else
|
---|
[8756] | 6111 | char (*f) () = _doprnt;
|
---|
[562] | 6112 | #endif
|
---|
[8756] | 6113 | #ifdef __cplusplus
|
---|
| 6114 | }
|
---|
| 6115 | #endif
|
---|
[562] | 6116 |
|
---|
[8756] | 6117 | int
|
---|
| 6118 | main ()
|
---|
| 6119 | {
|
---|
| 6120 | return f != _doprnt;
|
---|
| 6121 | ;
|
---|
| 6122 | return 0;
|
---|
| 6123 | }
|
---|
| 6124 | _ACEOF
|
---|
| 6125 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6127 | (eval $ac_link) 2>conftest.er1
|
---|
| 6128 | ac_status=$?
|
---|
| 6129 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6130 | rm -f conftest.er1
|
---|
| 6131 | cat conftest.err >&5
|
---|
| 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6133 | (exit $ac_status); } &&
|
---|
| 6134 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6135 | || test ! -s conftest.err'
|
---|
| 6136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6137 | (eval $ac_try) 2>&5
|
---|
| 6138 | ac_status=$?
|
---|
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6140 | (exit $ac_status); }; } &&
|
---|
| 6141 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6143 | (eval $ac_try) 2>&5
|
---|
| 6144 | ac_status=$?
|
---|
| 6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6146 | (exit $ac_status); }; }; then
|
---|
| 6147 | ac_cv_func__doprnt=yes
|
---|
[562] | 6148 | else
|
---|
[8756] | 6149 | echo "$as_me: failed program was:" >&5
|
---|
| 6150 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6151 |
|
---|
| 6152 | ac_cv_func__doprnt=no
|
---|
[562] | 6153 | fi
|
---|
[8756] | 6154 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6155 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6156 | fi
|
---|
[8756] | 6157 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6158 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6159 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6160 |
|
---|
[8756] | 6161 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 6162 | #define HAVE_DOPRNT 1
|
---|
[8756] | 6163 | _ACEOF
|
---|
[562] | 6164 |
|
---|
| 6165 | fi
|
---|
| 6166 |
|
---|
| 6167 | fi
|
---|
[8756] | 6168 | done
|
---|
[562] | 6169 |
|
---|
[8756] | 6170 |
|
---|
| 6171 |
|
---|
| 6172 |
|
---|
| 6173 |
|
---|
| 6174 |
|
---|
| 6175 |
|
---|
| 6176 |
|
---|
| 6177 |
|
---|
| 6178 |
|
---|
| 6179 |
|
---|
| 6180 |
|
---|
[788] | 6181 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[687] | 6182 | do
|
---|
[8756] | 6183 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6184 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6185 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6186 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6187 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6188 | else
|
---|
[8756] | 6189 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6190 | /* confdefs.h. */
|
---|
| 6191 | _ACEOF
|
---|
| 6192 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6193 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6194 | /* end confdefs.h. */
|
---|
| 6195 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6196 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6197 | #define $ac_func innocuous_$ac_func
|
---|
| 6198 |
|
---|
[687] | 6199 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6200 | which can conflict with char $ac_func (); below.
|
---|
| 6201 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6202 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6203 |
|
---|
| 6204 | #ifdef __STDC__
|
---|
| 6205 | # include <limits.h>
|
---|
| 6206 | #else
|
---|
| 6207 | # include <assert.h>
|
---|
| 6208 | #endif
|
---|
| 6209 |
|
---|
| 6210 | #undef $ac_func
|
---|
| 6211 |
|
---|
[687] | 6212 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6213 | #ifdef __cplusplus
|
---|
| 6214 | extern "C"
|
---|
| 6215 | {
|
---|
| 6216 | #endif
|
---|
[687] | 6217 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6218 | builtin and then its argument prototype would still apply. */
|
---|
| 6219 | char $ac_func ();
|
---|
[687] | 6220 | /* The GNU C library defines this for functions which it implements
|
---|
| 6221 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6222 | something starting with __ and the normal name is an alias. */
|
---|
| 6223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6224 | choke me
|
---|
| 6225 | #else
|
---|
[8756] | 6226 | char (*f) () = $ac_func;
|
---|
[687] | 6227 | #endif
|
---|
[8756] | 6228 | #ifdef __cplusplus
|
---|
| 6229 | }
|
---|
| 6230 | #endif
|
---|
[687] | 6231 |
|
---|
[8756] | 6232 | int
|
---|
| 6233 | main ()
|
---|
| 6234 | {
|
---|
| 6235 | return f != $ac_func;
|
---|
| 6236 | ;
|
---|
| 6237 | return 0;
|
---|
| 6238 | }
|
---|
| 6239 | _ACEOF
|
---|
| 6240 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6242 | (eval $ac_link) 2>conftest.er1
|
---|
| 6243 | ac_status=$?
|
---|
| 6244 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6245 | rm -f conftest.er1
|
---|
| 6246 | cat conftest.err >&5
|
---|
| 6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6248 | (exit $ac_status); } &&
|
---|
| 6249 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6250 | || test ! -s conftest.err'
|
---|
| 6251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6252 | (eval $ac_try) 2>&5
|
---|
| 6253 | ac_status=$?
|
---|
| 6254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6255 | (exit $ac_status); }; } &&
|
---|
| 6256 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6258 | (eval $ac_try) 2>&5
|
---|
| 6259 | ac_status=$?
|
---|
| 6260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6261 | (exit $ac_status); }; }; then
|
---|
| 6262 | eval "$as_ac_var=yes"
|
---|
[687] | 6263 | else
|
---|
[8756] | 6264 | echo "$as_me: failed program was:" >&5
|
---|
| 6265 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6266 |
|
---|
| 6267 | eval "$as_ac_var=no"
|
---|
[687] | 6268 | fi
|
---|
[8756] | 6269 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6270 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6271 | fi
|
---|
[8756] | 6272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6273 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6274 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6275 | cat >>confdefs.h <<_ACEOF
|
---|
| 6276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6277 | _ACEOF
|
---|
[8200] | 6278 |
|
---|
[687] | 6279 | fi
|
---|
| 6280 | done
|
---|
| 6281 |
|
---|
[8756] | 6282 |
|
---|
| 6283 |
|
---|
| 6284 |
|
---|
[687] | 6285 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6286 | do
|
---|
[8756] | 6287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6288 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6290 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6291 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6292 | else
|
---|
[8756] | 6293 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6294 | /* confdefs.h. */
|
---|
| 6295 | _ACEOF
|
---|
| 6296 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6297 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6298 | /* end confdefs.h. */
|
---|
| 6299 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6301 | #define $ac_func innocuous_$ac_func
|
---|
| 6302 |
|
---|
[687] | 6303 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6304 | which can conflict with char $ac_func (); below.
|
---|
| 6305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6306 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6307 |
|
---|
| 6308 | #ifdef __STDC__
|
---|
| 6309 | # include <limits.h>
|
---|
| 6310 | #else
|
---|
| 6311 | # include <assert.h>
|
---|
| 6312 | #endif
|
---|
| 6313 |
|
---|
| 6314 | #undef $ac_func
|
---|
| 6315 |
|
---|
[687] | 6316 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6317 | #ifdef __cplusplus
|
---|
| 6318 | extern "C"
|
---|
| 6319 | {
|
---|
| 6320 | #endif
|
---|
[687] | 6321 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6322 | builtin and then its argument prototype would still apply. */
|
---|
| 6323 | char $ac_func ();
|
---|
[687] | 6324 | /* The GNU C library defines this for functions which it implements
|
---|
| 6325 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6326 | something starting with __ and the normal name is an alias. */
|
---|
| 6327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6328 | choke me
|
---|
| 6329 | #else
|
---|
[8756] | 6330 | char (*f) () = $ac_func;
|
---|
[687] | 6331 | #endif
|
---|
[8756] | 6332 | #ifdef __cplusplus
|
---|
| 6333 | }
|
---|
| 6334 | #endif
|
---|
[687] | 6335 |
|
---|
[8756] | 6336 | int
|
---|
| 6337 | main ()
|
---|
| 6338 | {
|
---|
| 6339 | return f != $ac_func;
|
---|
| 6340 | ;
|
---|
| 6341 | return 0;
|
---|
| 6342 | }
|
---|
| 6343 | _ACEOF
|
---|
| 6344 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6346 | (eval $ac_link) 2>conftest.er1
|
---|
| 6347 | ac_status=$?
|
---|
| 6348 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6349 | rm -f conftest.er1
|
---|
| 6350 | cat conftest.err >&5
|
---|
| 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6352 | (exit $ac_status); } &&
|
---|
| 6353 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6354 | || test ! -s conftest.err'
|
---|
| 6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6356 | (eval $ac_try) 2>&5
|
---|
| 6357 | ac_status=$?
|
---|
| 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6359 | (exit $ac_status); }; } &&
|
---|
| 6360 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6362 | (eval $ac_try) 2>&5
|
---|
| 6363 | ac_status=$?
|
---|
| 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6365 | (exit $ac_status); }; }; then
|
---|
| 6366 | eval "$as_ac_var=yes"
|
---|
[687] | 6367 | else
|
---|
[8756] | 6368 | echo "$as_me: failed program was:" >&5
|
---|
| 6369 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6370 |
|
---|
| 6371 | eval "$as_ac_var=no"
|
---|
[687] | 6372 | fi
|
---|
[8756] | 6373 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6374 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6375 | fi
|
---|
[8756] | 6376 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6377 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6378 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6379 | cat >>confdefs.h <<_ACEOF
|
---|
| 6380 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6381 | _ACEOF
|
---|
[8200] | 6382 |
|
---|
[687] | 6383 | else
|
---|
[8756] | 6384 | case $LIBOBJS in
|
---|
| 6385 | "$ac_func.$ac_objext" | \
|
---|
| 6386 | *" $ac_func.$ac_objext" | \
|
---|
| 6387 | "$ac_func.$ac_objext "* | \
|
---|
| 6388 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6389 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6390 | esac
|
---|
| 6391 |
|
---|
[687] | 6392 | fi
|
---|
| 6393 | done
|
---|
| 6394 |
|
---|
[8200] | 6395 |
|
---|
| 6396 |
|
---|
[8756] | 6397 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6398 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6399 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6400 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3705] | 6401 | else
|
---|
[8756] | 6402 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6403 | /* confdefs.h. */
|
---|
| 6404 | _ACEOF
|
---|
| 6405 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6406 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6407 | /* end confdefs.h. */
|
---|
| 6408 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6410 | #define textdomain innocuous_textdomain
|
---|
| 6411 |
|
---|
[3705] | 6412 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6413 | which can conflict with char textdomain (); below.
|
---|
| 6414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6415 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6416 |
|
---|
| 6417 | #ifdef __STDC__
|
---|
| 6418 | # include <limits.h>
|
---|
| 6419 | #else
|
---|
| 6420 | # include <assert.h>
|
---|
| 6421 | #endif
|
---|
| 6422 |
|
---|
| 6423 | #undef textdomain
|
---|
| 6424 |
|
---|
[3705] | 6425 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6426 | #ifdef __cplusplus
|
---|
| 6427 | extern "C"
|
---|
| 6428 | {
|
---|
| 6429 | #endif
|
---|
[3705] | 6430 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6431 | builtin and then its argument prototype would still apply. */
|
---|
| 6432 | char textdomain ();
|
---|
[3705] | 6433 | /* The GNU C library defines this for functions which it implements
|
---|
| 6434 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6435 | something starting with __ and the normal name is an alias. */
|
---|
[8202] | 6436 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[3705] | 6437 | choke me
|
---|
| 6438 | #else
|
---|
[8756] | 6439 | char (*f) () = textdomain;
|
---|
[3705] | 6440 | #endif
|
---|
[8756] | 6441 | #ifdef __cplusplus
|
---|
| 6442 | }
|
---|
| 6443 | #endif
|
---|
[3705] | 6444 |
|
---|
[8756] | 6445 | int
|
---|
| 6446 | main ()
|
---|
| 6447 | {
|
---|
| 6448 | return f != textdomain;
|
---|
| 6449 | ;
|
---|
| 6450 | return 0;
|
---|
| 6451 | }
|
---|
| 6452 | _ACEOF
|
---|
| 6453 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6455 | (eval $ac_link) 2>conftest.er1
|
---|
| 6456 | ac_status=$?
|
---|
| 6457 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6458 | rm -f conftest.er1
|
---|
| 6459 | cat conftest.err >&5
|
---|
| 6460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6461 | (exit $ac_status); } &&
|
---|
| 6462 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6463 | || test ! -s conftest.err'
|
---|
| 6464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6465 | (eval $ac_try) 2>&5
|
---|
| 6466 | ac_status=$?
|
---|
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6468 | (exit $ac_status); }; } &&
|
---|
| 6469 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6471 | (eval $ac_try) 2>&5
|
---|
| 6472 | ac_status=$?
|
---|
| 6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6474 | (exit $ac_status); }; }; then
|
---|
| 6475 | ac_cv_func_textdomain=yes
|
---|
[3705] | 6476 | else
|
---|
[8756] | 6477 | echo "$as_me: failed program was:" >&5
|
---|
| 6478 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6479 |
|
---|
| 6480 | ac_cv_func_textdomain=no
|
---|
[3705] | 6481 | fi
|
---|
[8756] | 6482 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6483 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3705] | 6484 | fi
|
---|
[8756] | 6485 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6486 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6487 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6488 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6489 | #define ENABLE_NLS 1
|
---|
| 6490 | _ACEOF
|
---|
[8200] | 6491 |
|
---|
[3705] | 6492 | fi
|
---|
| 6493 |
|
---|
[8200] | 6494 |
|
---|
[687] | 6495 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6496 | # ---------------------------------------------------------------------------
|
---|
[8756] | 6497 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6498 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[687] | 6499 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[8756] | 6500 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6501 | echo "${ECHO_T}yes" >&6
|
---|
| 6502 | case $LIBOBJS in
|
---|
| 6503 | "gmalloc.$ac_objext" | \
|
---|
| 6504 | *" gmalloc.$ac_objext" | \
|
---|
| 6505 | "gmalloc.$ac_objext "* | \
|
---|
| 6506 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6507 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6508 | esac
|
---|
| 6509 |
|
---|
| 6510 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 6511 | #define HAVE_VALLOC 1
|
---|
[8756] | 6512 | _ACEOF
|
---|
[687] | 6513 |
|
---|
| 6514 | else
|
---|
[8756] | 6515 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6516 | echo "${ECHO_T}no" >&6
|
---|
| 6517 |
|
---|
| 6518 | for ac_func in valloc
|
---|
[687] | 6519 | do
|
---|
[8756] | 6520 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6521 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6522 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6523 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6524 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6525 | else
|
---|
[8756] | 6526 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6527 | /* confdefs.h. */
|
---|
| 6528 | _ACEOF
|
---|
| 6529 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6530 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6531 | /* end confdefs.h. */
|
---|
| 6532 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6533 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6534 | #define $ac_func innocuous_$ac_func
|
---|
| 6535 |
|
---|
[687] | 6536 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6537 | which can conflict with char $ac_func (); below.
|
---|
| 6538 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6539 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6540 |
|
---|
| 6541 | #ifdef __STDC__
|
---|
| 6542 | # include <limits.h>
|
---|
| 6543 | #else
|
---|
| 6544 | # include <assert.h>
|
---|
| 6545 | #endif
|
---|
| 6546 |
|
---|
| 6547 | #undef $ac_func
|
---|
| 6548 |
|
---|
[687] | 6549 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6550 | #ifdef __cplusplus
|
---|
| 6551 | extern "C"
|
---|
| 6552 | {
|
---|
| 6553 | #endif
|
---|
[687] | 6554 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6555 | builtin and then its argument prototype would still apply. */
|
---|
| 6556 | char $ac_func ();
|
---|
[687] | 6557 | /* The GNU C library defines this for functions which it implements
|
---|
| 6558 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6559 | something starting with __ and the normal name is an alias. */
|
---|
| 6560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6561 | choke me
|
---|
| 6562 | #else
|
---|
[8756] | 6563 | char (*f) () = $ac_func;
|
---|
[687] | 6564 | #endif
|
---|
[8756] | 6565 | #ifdef __cplusplus
|
---|
| 6566 | }
|
---|
| 6567 | #endif
|
---|
[687] | 6568 |
|
---|
[8756] | 6569 | int
|
---|
| 6570 | main ()
|
---|
| 6571 | {
|
---|
| 6572 | return f != $ac_func;
|
---|
| 6573 | ;
|
---|
| 6574 | return 0;
|
---|
| 6575 | }
|
---|
| 6576 | _ACEOF
|
---|
| 6577 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6579 | (eval $ac_link) 2>conftest.er1
|
---|
| 6580 | ac_status=$?
|
---|
| 6581 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6582 | rm -f conftest.er1
|
---|
| 6583 | cat conftest.err >&5
|
---|
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6585 | (exit $ac_status); } &&
|
---|
| 6586 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6587 | || test ! -s conftest.err'
|
---|
| 6588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6589 | (eval $ac_try) 2>&5
|
---|
| 6590 | ac_status=$?
|
---|
| 6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6592 | (exit $ac_status); }; } &&
|
---|
| 6593 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6595 | (eval $ac_try) 2>&5
|
---|
| 6596 | ac_status=$?
|
---|
| 6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6598 | (exit $ac_status); }; }; then
|
---|
| 6599 | eval "$as_ac_var=yes"
|
---|
[687] | 6600 | else
|
---|
[8756] | 6601 | echo "$as_me: failed program was:" >&5
|
---|
| 6602 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6603 |
|
---|
| 6604 | eval "$as_ac_var=no"
|
---|
[687] | 6605 | fi
|
---|
[8756] | 6606 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6607 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6608 | fi
|
---|
[8756] | 6609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6610 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6611 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6612 | cat >>confdefs.h <<_ACEOF
|
---|
| 6613 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6614 | _ACEOF
|
---|
[8200] | 6615 |
|
---|
[687] | 6616 | fi
|
---|
| 6617 | done
|
---|
| 6618 |
|
---|
| 6619 | fi
|
---|
| 6620 |
|
---|
[8200] | 6621 | # we cannot generate static libraries under Darwin
|
---|
[8756] | 6622 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6623 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[8200] | 6624 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[8756] | 6625 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6626 | echo "${ECHO_T}yes" >&6
|
---|
[8200] | 6627 | STATIC=""
|
---|
| 6628 | else
|
---|
[8756] | 6629 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6630 | echo "${ECHO_T}no" >&6
|
---|
[8200] | 6631 | STATIC="-static "
|
---|
| 6632 | fi
|
---|
[3631] | 6633 |
|
---|
[8200] | 6634 |
|
---|
[8756] | 6635 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6636 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6637 |
|
---|
[700] | 6638 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6639 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6640 | withval="$with_dmalloc"
|
---|
| 6641 | if test "$withval" = yes; then
|
---|
[8756] | 6642 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6643 | echo "${ECHO_T}yes" >&6
|
---|
| 6644 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6645 | #define WITH_DMALLOC 1
|
---|
[8756] | 6646 | _ACEOF
|
---|
[687] | 6647 |
|
---|
[700] | 6648 | LIBS="$LIBS -ldmalloc"
|
---|
| 6649 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6650 | else
|
---|
[8756] | 6651 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6652 | echo "${ECHO_T}no" >&6
|
---|
[700] | 6653 | fi
|
---|
| 6654 | else
|
---|
[8756] | 6655 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6656 | echo "${ECHO_T}no" >&6
|
---|
| 6657 | fi;
|
---|
[700] | 6658 |
|
---|
[8756] | 6659 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6660 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[700] | 6661 |
|
---|
| 6662 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6663 | if test "${with_regex+set}" = set; then
|
---|
| 6664 | withval="$with_regex"
|
---|
| 6665 | if test "$withval" = yes; then
|
---|
| 6666 | ac_with_regex=1
|
---|
[8756] | 6667 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6668 | echo "${ECHO_T}regex" >&6
|
---|
| 6669 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6670 | #define WITH_REGEX 1
|
---|
[8756] | 6671 | _ACEOF
|
---|
[700] | 6672 |
|
---|
[8756] | 6673 | case $LIBOBJS in
|
---|
| 6674 | "regex.$ac_objext" | \
|
---|
| 6675 | *" regex.$ac_objext" | \
|
---|
| 6676 | "regex.$ac_objext "* | \
|
---|
| 6677 | *" regex.$ac_objext "* ) ;;
|
---|
| 6678 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6679 | esac
|
---|
| 6680 |
|
---|
[700] | 6681 | fi
|
---|
[8756] | 6682 | fi;
|
---|
[700] | 6683 | if test -z "$ac_with_regex"; then
|
---|
[8756] | 6684 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6685 | echo "${ECHO_T}rx" >&6
|
---|
| 6686 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6687 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6688 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6689 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 6690 | else
|
---|
[8756] | 6691 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6692 | /* confdefs.h. */
|
---|
| 6693 | _ACEOF
|
---|
| 6694 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6695 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6696 | /* end confdefs.h. */
|
---|
| 6697 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6699 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6700 |
|
---|
[700] | 6701 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6702 | which can conflict with char re_rx_search (); below.
|
---|
| 6703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6704 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6705 |
|
---|
| 6706 | #ifdef __STDC__
|
---|
| 6707 | # include <limits.h>
|
---|
| 6708 | #else
|
---|
| 6709 | # include <assert.h>
|
---|
| 6710 | #endif
|
---|
| 6711 |
|
---|
| 6712 | #undef re_rx_search
|
---|
| 6713 |
|
---|
[700] | 6714 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6715 | #ifdef __cplusplus
|
---|
| 6716 | extern "C"
|
---|
| 6717 | {
|
---|
| 6718 | #endif
|
---|
[700] | 6719 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6720 | builtin and then its argument prototype would still apply. */
|
---|
| 6721 | char re_rx_search ();
|
---|
[700] | 6722 | /* The GNU C library defines this for functions which it implements
|
---|
| 6723 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6724 | something starting with __ and the normal name is an alias. */
|
---|
| 6725 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6726 | choke me
|
---|
| 6727 | #else
|
---|
[8756] | 6728 | char (*f) () = re_rx_search;
|
---|
[700] | 6729 | #endif
|
---|
[8756] | 6730 | #ifdef __cplusplus
|
---|
| 6731 | }
|
---|
| 6732 | #endif
|
---|
[700] | 6733 |
|
---|
[8756] | 6734 | int
|
---|
| 6735 | main ()
|
---|
| 6736 | {
|
---|
| 6737 | return f != re_rx_search;
|
---|
| 6738 | ;
|
---|
| 6739 | return 0;
|
---|
| 6740 | }
|
---|
| 6741 | _ACEOF
|
---|
| 6742 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6744 | (eval $ac_link) 2>conftest.er1
|
---|
| 6745 | ac_status=$?
|
---|
| 6746 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6747 | rm -f conftest.er1
|
---|
| 6748 | cat conftest.err >&5
|
---|
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6750 | (exit $ac_status); } &&
|
---|
| 6751 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6752 | || test ! -s conftest.err'
|
---|
| 6753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6754 | (eval $ac_try) 2>&5
|
---|
| 6755 | ac_status=$?
|
---|
| 6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6757 | (exit $ac_status); }; } &&
|
---|
| 6758 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6760 | (eval $ac_try) 2>&5
|
---|
| 6761 | ac_status=$?
|
---|
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6763 | (exit $ac_status); }; }; then
|
---|
| 6764 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 6765 | else
|
---|
[8756] | 6766 | echo "$as_me: failed program was:" >&5
|
---|
| 6767 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6768 |
|
---|
| 6769 | ac_cv_func_re_rx_search=no
|
---|
[700] | 6770 | fi
|
---|
[8756] | 6771 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6772 | conftest$ac_exeext conftest.$ac_ext
|
---|
[700] | 6773 | fi
|
---|
[8756] | 6774 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6775 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6776 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[700] | 6777 | :
|
---|
| 6778 | else
|
---|
[8756] | 6779 | case $LIBOBJS in
|
---|
| 6780 | "rx.$ac_objext" | \
|
---|
| 6781 | *" rx.$ac_objext" | \
|
---|
| 6782 | "rx.$ac_objext "* | \
|
---|
| 6783 | *" rx.$ac_objext "* ) ;;
|
---|
| 6784 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6785 | esac
|
---|
| 6786 |
|
---|
[700] | 6787 | fi
|
---|
| 6788 |
|
---|
| 6789 | fi
|
---|
| 6790 |
|
---|
[8200] | 6791 |
|
---|
[687] | 6792 | # ---------------------------------------------------------------------------
|
---|
| 6793 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 6794 | case $LIBOBJS in
|
---|
| 6795 | "xmalloc.$ac_objext" | \
|
---|
| 6796 | *" xmalloc.$ac_objext" | \
|
---|
| 6797 | "xmalloc.$ac_objext "* | \
|
---|
| 6798 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 6799 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 6800 | esac
|
---|
| 6801 |
|
---|
| 6802 | case $LIBOBJS in
|
---|
| 6803 | "error.$ac_objext" | \
|
---|
| 6804 | *" error.$ac_objext" | \
|
---|
| 6805 | "error.$ac_objext "* | \
|
---|
| 6806 | *" error.$ac_objext "* ) ;;
|
---|
| 6807 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 6808 | esac
|
---|
| 6809 |
|
---|
[687] | 6810 | fi
|
---|
| 6811 |
|
---|
[8200] | 6812 |
|
---|
[687] | 6813 | # ---------------------------------------------------------------------------
|
---|
| 6814 |
|
---|
[8756] | 6815 | ac_ext=cc
|
---|
[687] | 6816 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 6817 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6818 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6819 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 6820 |
|
---|
[8200] | 6821 |
|
---|
[8756] | 6822 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6823 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[687] | 6824 | success="no"
|
---|
| 6825 | pl_path="$PATH"
|
---|
| 6826 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6827 | for pl_dir in $pl_path; do
|
---|
| 6828 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6829 | if test -x $pl_dir/perl; then
|
---|
| 6830 | success="yes"
|
---|
| 6831 | break
|
---|
| 6832 | fi
|
---|
| 6833 | done
|
---|
| 6834 | IFS="$pl_save_ifs"
|
---|
| 6835 |
|
---|
| 6836 | if test $success = "yes"; then
|
---|
| 6837 | try=`perl configtest.pl` || try="0"
|
---|
| 6838 | try=`expr $try \> 5.000`
|
---|
| 6839 | if test $try = "1"; then
|
---|
[8756] | 6840 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6841 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[687] | 6842 | else
|
---|
| 6843 | success="no"
|
---|
| 6844 | fi
|
---|
| 6845 | fi
|
---|
| 6846 |
|
---|
| 6847 | if test $success = "no"; then
|
---|
[8756] | 6848 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6849 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 6850 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 6851 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
| 6852 | { (exit 1); exit 1; }; }
|
---|
[687] | 6853 | fi
|
---|
| 6854 |
|
---|
| 6855 | success=no
|
---|
[8756] | 6856 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6857 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[687] | 6858 |
|
---|
[18214] | 6859 |
|
---|
[8756] | 6860 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6861 | /* confdefs.h. */
|
---|
| 6862 | _ACEOF
|
---|
| 6863 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6864 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6865 | /* end confdefs.h. */
|
---|
[687] | 6866 | #include <vector>
|
---|
| 6867 |
|
---|
[8756] | 6868 | int
|
---|
| 6869 | main ()
|
---|
| 6870 | {
|
---|
[687] | 6871 |
|
---|
[8756] | 6872 | ;
|
---|
| 6873 | return 0;
|
---|
| 6874 | }
|
---|
| 6875 | _ACEOF
|
---|
| 6876 | rm -f conftest.$ac_objext
|
---|
| 6877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6878 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6879 | ac_status=$?
|
---|
| 6880 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6881 | rm -f conftest.er1
|
---|
| 6882 | cat conftest.err >&5
|
---|
| 6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6884 | (exit $ac_status); } &&
|
---|
| 6885 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6886 | || test ! -s conftest.err'
|
---|
| 6887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6888 | (eval $ac_try) 2>&5
|
---|
| 6889 | ac_status=$?
|
---|
| 6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6891 | (exit $ac_status); }; } &&
|
---|
| 6892 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6894 | (eval $ac_try) 2>&5
|
---|
| 6895 | ac_status=$?
|
---|
| 6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6897 | (exit $ac_status); }; }; then
|
---|
[687] | 6898 | success=yes
|
---|
| 6899 | else
|
---|
[8756] | 6900 | echo "$as_me: failed program was:" >&5
|
---|
| 6901 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6902 |
|
---|
[687] | 6903 | fi
|
---|
[8756] | 6904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6905 |
|
---|
| 6906 | if test $success = "no"; then
|
---|
[8756] | 6907 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6908 | /* confdefs.h. */
|
---|
| 6909 | _ACEOF
|
---|
| 6910 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6911 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6912 | /* end confdefs.h. */
|
---|
[687] | 6913 | #include <vector.h>
|
---|
| 6914 |
|
---|
[8756] | 6915 | int
|
---|
| 6916 | main ()
|
---|
| 6917 | {
|
---|
[687] | 6918 |
|
---|
[8756] | 6919 | ;
|
---|
| 6920 | return 0;
|
---|
| 6921 | }
|
---|
| 6922 | _ACEOF
|
---|
| 6923 | rm -f conftest.$ac_objext
|
---|
| 6924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6925 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6926 | ac_status=$?
|
---|
| 6927 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6928 | rm -f conftest.er1
|
---|
| 6929 | cat conftest.err >&5
|
---|
| 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6931 | (exit $ac_status); } &&
|
---|
| 6932 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6933 | || test ! -s conftest.err'
|
---|
| 6934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6935 | (eval $ac_try) 2>&5
|
---|
| 6936 | ac_status=$?
|
---|
| 6937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6938 | (exit $ac_status); }; } &&
|
---|
| 6939 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6941 | (eval $ac_try) 2>&5
|
---|
| 6942 | ac_status=$?
|
---|
| 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6944 | (exit $ac_status); }; }; then
|
---|
[687] | 6945 | success="yes"
|
---|
| 6946 | else
|
---|
[8756] | 6947 | echo "$as_me: failed program was:" >&5
|
---|
| 6948 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6949 |
|
---|
[687] | 6950 | fi
|
---|
[8756] | 6951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6952 | fi
|
---|
| 6953 |
|
---|
| 6954 | if test $success = "no"; then
|
---|
[8756] | 6955 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6956 | /* confdefs.h. */
|
---|
| 6957 | _ACEOF
|
---|
| 6958 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6959 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6960 | /* end confdefs.h. */
|
---|
[687] | 6961 | #include <ospace\\std\\vector>
|
---|
| 6962 |
|
---|
[8756] | 6963 | int
|
---|
| 6964 | main ()
|
---|
| 6965 | {
|
---|
[687] | 6966 |
|
---|
[8756] | 6967 | ;
|
---|
| 6968 | return 0;
|
---|
| 6969 | }
|
---|
| 6970 | _ACEOF
|
---|
| 6971 | rm -f conftest.$ac_objext
|
---|
| 6972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6973 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6974 | ac_status=$?
|
---|
| 6975 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6976 | rm -f conftest.er1
|
---|
| 6977 | cat conftest.err >&5
|
---|
| 6978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6979 | (exit $ac_status); } &&
|
---|
| 6980 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6981 | || test ! -s conftest.err'
|
---|
| 6982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6983 | (eval $ac_try) 2>&5
|
---|
| 6984 | ac_status=$?
|
---|
| 6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6986 | (exit $ac_status); }; } &&
|
---|
| 6987 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6989 | (eval $ac_try) 2>&5
|
---|
| 6990 | ac_status=$?
|
---|
| 6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6992 | (exit $ac_status); }; }; then
|
---|
[687] | 6993 | success="yes"
|
---|
| 6994 | else
|
---|
[8756] | 6995 | echo "$as_me: failed program was:" >&5
|
---|
| 6996 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6997 |
|
---|
[687] | 6998 | fi
|
---|
[8756] | 6999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7000 | fi
|
---|
| 7001 |
|
---|
| 7002 | if test $success = yes; then
|
---|
[8756] | 7003 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7004 | echo "${ECHO_T}\"no\"" >&6
|
---|
[687] | 7005 | else
|
---|
[8756] | 7006 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7007 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7008 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7009 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7010 | { (exit 1); exit 1; }; }
|
---|
[687] | 7011 | fi
|
---|
| 7012 |
|
---|
[2950] | 7013 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7014 | # check for running bash under cygwin
|
---|
| 7015 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7016 | then
|
---|
| 7017 | gsdlos=windows
|
---|
| 7018 | fi
|
---|
[687] | 7019 |
|
---|
[8200] | 7020 |
|
---|
[10856] | 7021 | # check for endianness
|
---|
| 7022 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7023 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7024 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7025 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7026 | else
|
---|
| 7027 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7028 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7029 | /* confdefs.h. */
|
---|
| 7030 | _ACEOF
|
---|
| 7031 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7032 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7033 | /* end confdefs.h. */
|
---|
| 7034 | #include <sys/types.h>
|
---|
| 7035 | #include <sys/param.h>
|
---|
| 7036 |
|
---|
| 7037 | int
|
---|
| 7038 | main ()
|
---|
| 7039 | {
|
---|
| 7040 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7041 | bogus endian macros
|
---|
| 7042 | #endif
|
---|
| 7043 |
|
---|
| 7044 | ;
|
---|
| 7045 | return 0;
|
---|
| 7046 | }
|
---|
| 7047 | _ACEOF
|
---|
| 7048 | rm -f conftest.$ac_objext
|
---|
| 7049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7050 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7051 | ac_status=$?
|
---|
| 7052 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7053 | rm -f conftest.er1
|
---|
| 7054 | cat conftest.err >&5
|
---|
| 7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7056 | (exit $ac_status); } &&
|
---|
| 7057 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7058 | || test ! -s conftest.err'
|
---|
| 7059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7060 | (eval $ac_try) 2>&5
|
---|
| 7061 | ac_status=$?
|
---|
| 7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7063 | (exit $ac_status); }; } &&
|
---|
| 7064 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7066 | (eval $ac_try) 2>&5
|
---|
| 7067 | ac_status=$?
|
---|
| 7068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7069 | (exit $ac_status); }; }; then
|
---|
| 7070 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7071 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7072 | /* confdefs.h. */
|
---|
| 7073 | _ACEOF
|
---|
| 7074 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7075 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7076 | /* end confdefs.h. */
|
---|
| 7077 | #include <sys/types.h>
|
---|
| 7078 | #include <sys/param.h>
|
---|
| 7079 |
|
---|
| 7080 | int
|
---|
| 7081 | main ()
|
---|
| 7082 | {
|
---|
| 7083 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7084 | not big endian
|
---|
| 7085 | #endif
|
---|
| 7086 |
|
---|
| 7087 | ;
|
---|
| 7088 | return 0;
|
---|
| 7089 | }
|
---|
| 7090 | _ACEOF
|
---|
| 7091 | rm -f conftest.$ac_objext
|
---|
| 7092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7093 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7094 | ac_status=$?
|
---|
| 7095 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7096 | rm -f conftest.er1
|
---|
| 7097 | cat conftest.err >&5
|
---|
| 7098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7099 | (exit $ac_status); } &&
|
---|
| 7100 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7101 | || test ! -s conftest.err'
|
---|
| 7102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7103 | (eval $ac_try) 2>&5
|
---|
| 7104 | ac_status=$?
|
---|
| 7105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7106 | (exit $ac_status); }; } &&
|
---|
| 7107 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7109 | (eval $ac_try) 2>&5
|
---|
| 7110 | ac_status=$?
|
---|
| 7111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7112 | (exit $ac_status); }; }; then
|
---|
| 7113 | ac_cv_c_bigendian=yes
|
---|
| 7114 | else
|
---|
| 7115 | echo "$as_me: failed program was:" >&5
|
---|
| 7116 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7117 |
|
---|
| 7118 | ac_cv_c_bigendian=no
|
---|
| 7119 | fi
|
---|
| 7120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7121 | else
|
---|
| 7122 | echo "$as_me: failed program was:" >&5
|
---|
| 7123 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7124 |
|
---|
| 7125 | # It does not; compile a test program.
|
---|
| 7126 | if test "$cross_compiling" = yes; then
|
---|
| 7127 | # try to guess the endianness by grepping values into an object file
|
---|
| 7128 | ac_cv_c_bigendian=unknown
|
---|
| 7129 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7130 | /* confdefs.h. */
|
---|
| 7131 | _ACEOF
|
---|
| 7132 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7133 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7134 | /* end confdefs.h. */
|
---|
| 7135 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7136 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7137 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7138 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7139 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7140 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7141 | int
|
---|
| 7142 | main ()
|
---|
| 7143 | {
|
---|
| 7144 | _ascii (); _ebcdic ();
|
---|
| 7145 | ;
|
---|
| 7146 | return 0;
|
---|
| 7147 | }
|
---|
| 7148 | _ACEOF
|
---|
| 7149 | rm -f conftest.$ac_objext
|
---|
| 7150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7151 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7152 | ac_status=$?
|
---|
| 7153 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7154 | rm -f conftest.er1
|
---|
| 7155 | cat conftest.err >&5
|
---|
| 7156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7157 | (exit $ac_status); } &&
|
---|
| 7158 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7159 | || test ! -s conftest.err'
|
---|
| 7160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7161 | (eval $ac_try) 2>&5
|
---|
| 7162 | ac_status=$?
|
---|
| 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7164 | (exit $ac_status); }; } &&
|
---|
| 7165 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7167 | (eval $ac_try) 2>&5
|
---|
| 7168 | ac_status=$?
|
---|
| 7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7170 | (exit $ac_status); }; }; then
|
---|
| 7171 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7172 | ac_cv_c_bigendian=yes
|
---|
| 7173 | fi
|
---|
| 7174 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7175 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7176 | ac_cv_c_bigendian=no
|
---|
| 7177 | else
|
---|
| 7178 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7179 | ac_cv_c_bigendian=unknown
|
---|
| 7180 | fi
|
---|
| 7181 | fi
|
---|
| 7182 | else
|
---|
| 7183 | echo "$as_me: failed program was:" >&5
|
---|
| 7184 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7185 |
|
---|
| 7186 | fi
|
---|
| 7187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7188 | else
|
---|
| 7189 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7190 | /* confdefs.h. */
|
---|
| 7191 | _ACEOF
|
---|
| 7192 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7193 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7194 | /* end confdefs.h. */
|
---|
| 7195 | int
|
---|
| 7196 | main ()
|
---|
| 7197 | {
|
---|
| 7198 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7199 | union
|
---|
| 7200 | {
|
---|
| 7201 | long l;
|
---|
| 7202 | char c[sizeof (long)];
|
---|
| 7203 | } u;
|
---|
| 7204 | u.l = 1;
|
---|
| 7205 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7206 | }
|
---|
| 7207 | _ACEOF
|
---|
| 7208 | rm -f conftest$ac_exeext
|
---|
| 7209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7210 | (eval $ac_link) 2>&5
|
---|
| 7211 | ac_status=$?
|
---|
| 7212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7213 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7215 | (eval $ac_try) 2>&5
|
---|
| 7216 | ac_status=$?
|
---|
| 7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7218 | (exit $ac_status); }; }; then
|
---|
| 7219 | ac_cv_c_bigendian=no
|
---|
| 7220 | else
|
---|
| 7221 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7222 | echo "$as_me: failed program was:" >&5
|
---|
| 7223 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7224 |
|
---|
| 7225 | ( exit $ac_status )
|
---|
| 7226 | ac_cv_c_bigendian=yes
|
---|
| 7227 | fi
|
---|
| 7228 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7229 | fi
|
---|
| 7230 | fi
|
---|
| 7231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7232 | fi
|
---|
| 7233 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7234 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7235 | case $ac_cv_c_bigendian in
|
---|
| 7236 | yes)
|
---|
| 7237 |
|
---|
| 7238 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7239 | #define WORDS_BIGENDIAN 1
|
---|
| 7240 | _ACEOF
|
---|
| 7241 | ;;
|
---|
| 7242 | no)
|
---|
| 7243 | ;;
|
---|
| 7244 | *)
|
---|
| 7245 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7246 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7247 | echo "$as_me: error: unknown endianness
|
---|
| 7248 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7249 | { (exit 1); exit 1; }; } ;;
|
---|
| 7250 | esac
|
---|
| 7251 |
|
---|
[687] | 7252 | # ---------------------------------------------------------------------------
|
---|
| 7253 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 7254 | case $LIBOBJS in
|
---|
| 7255 | "xmalloc.o.$ac_objext" | \
|
---|
| 7256 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7257 | "xmalloc.o.$ac_objext "* | \
|
---|
| 7258 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
| 7259 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
| 7260 | esac
|
---|
| 7261 |
|
---|
| 7262 | case $LIBOBJS in
|
---|
| 7263 | "error.$ac_objext" | \
|
---|
| 7264 | *" error.$ac_objext" | \
|
---|
| 7265 | "error.$ac_objext "* | \
|
---|
| 7266 | *" error.$ac_objext "* ) ;;
|
---|
| 7267 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7268 | esac
|
---|
| 7269 |
|
---|
[687] | 7270 | fi
|
---|
| 7271 |
|
---|
[3063] | 7272 | # ---------------------------------------------------------------------------
|
---|
[687] | 7273 |
|
---|
[3063] | 7274 | moduleDirs=""
|
---|
| 7275 | MODULEDIRS=""
|
---|
[16619] | 7276 | if test -d modules ; then
|
---|
[15300] | 7277 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7278 | if test -d "$x"; then
|
---|
| 7279 | d="$x/Makefile.in"
|
---|
| 7280 | if test -e "$d"; then
|
---|
| 7281 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7282 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7283 | fi
|
---|
[3063] | 7284 | fi
|
---|
[15300] | 7285 | done
|
---|
| 7286 | echo "Making $moduleDirs in modules directory"
|
---|
[3063] | 7287 |
|
---|
[15300] | 7288 | fi
|
---|
[8200] | 7289 |
|
---|
[15300] | 7290 |
|
---|
[687] | 7291 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7292 |
|
---|
[13777] | 7293 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 7294 | gsdlprefix=`pwd`
|
---|
[19264] | 7295 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[1675] | 7296 |
|
---|
[8756] | 7297 |
|
---|
[16572] | 7298 | subdirs="$subdirs common-src build-src runtime-src"
|
---|
[8756] | 7299 |
|
---|
[13777] | 7300 |
|
---|
[3063] | 7301 | # the list of folders in the src folder
|
---|
[16572] | 7302 | srclist="common-src/Makefile \
|
---|
| 7303 | build-src/Makefile \
|
---|
| 7304 | runtime-src/Makefile"
|
---|
[3063] | 7305 |
|
---|
[16563] | 7306 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
[8756] | 7307 | cat >confcache <<\_ACEOF
|
---|
[562] | 7308 | # This file is a shell script that caches the results of configure
|
---|
| 7309 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7310 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7311 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7312 | # want to keep, you may remove or edit it.
|
---|
[562] | 7313 | #
|
---|
[8756] | 7314 | # config.status only pays attention to the cache file if you give it
|
---|
| 7315 | # the --recheck option to rerun configure.
|
---|
[562] | 7316 | #
|
---|
[8756] | 7317 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7318 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7319 | # following values.
|
---|
| 7320 |
|
---|
| 7321 | _ACEOF
|
---|
| 7322 |
|
---|
[562] | 7323 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7324 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7325 | # So, don't put newlines in cache variables' values.
|
---|
| 7326 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7327 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8756] | 7328 | {
|
---|
| 7329 | (set) 2>&1 |
|
---|
| 7330 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7331 | *ac_space=\ *)
|
---|
| 7332 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7333 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7334 | sed -n \
|
---|
| 7335 | "s/'/'\\\\''/g;
|
---|
| 7336 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 7337 | ;;
|
---|
| 7338 | *)
|
---|
| 7339 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7340 | sed -n \
|
---|
| 7341 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 7342 | ;;
|
---|
| 7343 | esac;
|
---|
| 7344 | } |
|
---|
| 7345 | sed '
|
---|
| 7346 | t clear
|
---|
| 7347 | : clear
|
---|
| 7348 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7349 | t end
|
---|
| 7350 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7351 | : end' >>confcache
|
---|
| 7352 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[562] | 7353 | if test -w $cache_file; then
|
---|
[8756] | 7354 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7355 | cat confcache >$cache_file
|
---|
[562] | 7356 | else
|
---|
| 7357 | echo "not updating unwritable cache $cache_file"
|
---|
| 7358 | fi
|
---|
| 7359 | fi
|
---|
| 7360 | rm -f confcache
|
---|
| 7361 |
|
---|
| 7362 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7363 | # Let make expand exec_prefix.
|
---|
| 7364 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7365 |
|
---|
[8756] | 7366 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7367 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7368 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7369 | # (actually we leave an empty line to preserve line numbers).
|
---|
[562] | 7370 | if test "x$srcdir" = x.; then
|
---|
[8756] | 7371 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7372 | s/:*\$(srcdir):*/:/;
|
---|
| 7373 | s/:*\${srcdir}:*/:/;
|
---|
| 7374 | s/:*@srcdir@:*/:/;
|
---|
| 7375 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7376 | s/:*$//;
|
---|
| 7377 | s/^[^=]*=[ ]*$//;
|
---|
| 7378 | }'
|
---|
[562] | 7379 | fi
|
---|
| 7380 |
|
---|
[687] | 7381 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 7382 |
|
---|
[8756] | 7383 | ac_libobjs=
|
---|
| 7384 | ac_ltlibobjs=
|
---|
| 7385 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7386 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7387 | ac_i=`echo "$ac_i" |
|
---|
| 7388 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7389 | # 2. Add them.
|
---|
| 7390 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7391 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7392 | done
|
---|
| 7393 | LIBOBJS=$ac_libobjs
|
---|
| 7394 |
|
---|
| 7395 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7396 |
|
---|
| 7397 |
|
---|
| 7398 |
|
---|
[562] | 7399 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 7400 | ac_clean_files_save=$ac_clean_files
|
---|
| 7401 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7402 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7403 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7404 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7405 | #! $SHELL
|
---|
| 7406 | # Generated by $as_me.
|
---|
[562] | 7407 | # Run this file to recreate the current configuration.
|
---|
| 7408 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 7409 | # configure, is in config.log if it exists.
|
---|
[562] | 7410 |
|
---|
[8756] | 7411 | debug=false
|
---|
| 7412 | ac_cs_recheck=false
|
---|
| 7413 | ac_cs_silent=false
|
---|
| 7414 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7415 | _ACEOF
|
---|
| 7416 |
|
---|
| 7417 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7418 | ## --------------------- ##
|
---|
| 7419 | ## M4sh Initialization. ##
|
---|
| 7420 | ## --------------------- ##
|
---|
| 7421 |
|
---|
| 7422 | # Be Bourne compatible
|
---|
| 7423 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7424 | emulate sh
|
---|
| 7425 | NULLCMD=:
|
---|
| 7426 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7427 | # is contrary to our usage. Disable this feature.
|
---|
| 7428 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 7429 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7430 | set -o posix
|
---|
| 7431 | fi
|
---|
| 7432 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 7433 |
|
---|
| 7434 | # Support unset when possible.
|
---|
| 7435 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7436 | as_unset=unset
|
---|
| 7437 | else
|
---|
| 7438 | as_unset=false
|
---|
| 7439 | fi
|
---|
| 7440 |
|
---|
| 7441 |
|
---|
| 7442 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7443 | $as_unset ENV MAIL MAILPATH
|
---|
| 7444 | PS1='$ '
|
---|
| 7445 | PS2='> '
|
---|
| 7446 | PS4='+ '
|
---|
| 7447 |
|
---|
| 7448 | # NLS nuisances.
|
---|
| 7449 | for as_var in \
|
---|
| 7450 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7451 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7452 | LC_TELEPHONE LC_TIME
|
---|
[562] | 7453 | do
|
---|
[8756] | 7454 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7455 | eval $as_var=C; export $as_var
|
---|
| 7456 | else
|
---|
| 7457 | $as_unset $as_var
|
---|
| 7458 | fi
|
---|
[562] | 7459 | done
|
---|
| 7460 |
|
---|
[8756] | 7461 | # Required to use basename.
|
---|
| 7462 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7463 | as_expr=expr
|
---|
| 7464 | else
|
---|
| 7465 | as_expr=false
|
---|
| 7466 | fi
|
---|
[562] | 7467 |
|
---|
[8756] | 7468 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7469 | as_basename=basename
|
---|
| 7470 | else
|
---|
| 7471 | as_basename=false
|
---|
| 7472 | fi
|
---|
[562] | 7473 |
|
---|
| 7474 |
|
---|
[8756] | 7475 | # Name of the executable.
|
---|
| 7476 | as_me=`$as_basename "$0" ||
|
---|
| 7477 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7478 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7479 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7480 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7481 | echo X/"$0" |
|
---|
| 7482 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7483 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7484 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7485 | s/.*/./; q'`
|
---|
[3631] | 7486 |
|
---|
| 7487 |
|
---|
[8756] | 7488 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7489 | # Avoid depending upon Character Ranges.
|
---|
| 7490 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7491 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7492 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7493 | as_cr_digits='0123456789'
|
---|
| 7494 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7495 |
|
---|
| 7496 | # The user is always right.
|
---|
| 7497 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7498 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7499 | echo "exit 0" >>conf$$.sh
|
---|
| 7500 | chmod +x conf$$.sh
|
---|
| 7501 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7502 | PATH_SEPARATOR=';'
|
---|
[8200] | 7503 | else
|
---|
[8756] | 7504 | PATH_SEPARATOR=:
|
---|
[8200] | 7505 | fi
|
---|
[8756] | 7506 | rm -f conf$$.sh
|
---|
| 7507 | fi
|
---|
| 7508 |
|
---|
| 7509 |
|
---|
| 7510 | as_lineno_1=$LINENO
|
---|
| 7511 | as_lineno_2=$LINENO
|
---|
| 7512 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7513 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7514 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7515 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7516 | # relative or not.
|
---|
| 7517 | case $0 in
|
---|
| 7518 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7519 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7520 | for as_dir in $PATH
|
---|
| 7521 | do
|
---|
| 7522 | IFS=$as_save_IFS
|
---|
| 7523 | test -z "$as_dir" && as_dir=.
|
---|
| 7524 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7525 | done
|
---|
| 7526 |
|
---|
| 7527 | ;;
|
---|
| 7528 | esac
|
---|
| 7529 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7530 | # in which case we are not to be found in the path.
|
---|
| 7531 | if test "x$as_myself" = x; then
|
---|
| 7532 | as_myself=$0
|
---|
| 7533 | fi
|
---|
| 7534 | if test ! -f "$as_myself"; then
|
---|
| 7535 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7536 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7537 | { (exit 1); exit 1; }; }
|
---|
| 7538 | fi
|
---|
| 7539 | case $CONFIG_SHELL in
|
---|
| 7540 | '')
|
---|
| 7541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7542 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7543 | do
|
---|
| 7544 | IFS=$as_save_IFS
|
---|
| 7545 | test -z "$as_dir" && as_dir=.
|
---|
| 7546 | for as_base in sh bash ksh sh5; do
|
---|
| 7547 | case $as_dir in
|
---|
| 7548 | /*)
|
---|
| 7549 | if ("$as_dir/$as_base" -c '
|
---|
| 7550 | as_lineno_1=$LINENO
|
---|
| 7551 | as_lineno_2=$LINENO
|
---|
| 7552 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7553 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7554 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7555 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7556 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7557 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7558 | export CONFIG_SHELL
|
---|
| 7559 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7560 | fi;;
|
---|
| 7561 | esac
|
---|
| 7562 | done
|
---|
| 7563 | done
|
---|
| 7564 | ;;
|
---|
| 7565 | esac
|
---|
| 7566 |
|
---|
| 7567 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7568 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7569 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7570 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7571 | # with the numbered line, and appends trailing '-' during
|
---|
| 7572 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7573 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7574 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7575 | sed '=' <$as_myself |
|
---|
| 7576 | sed '
|
---|
| 7577 | N
|
---|
| 7578 | s,$,-,
|
---|
| 7579 | : loop
|
---|
| 7580 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7581 | t loop
|
---|
| 7582 | s,-$,,
|
---|
| 7583 | s,^['$as_cr_digits']*\n,,
|
---|
| 7584 | ' >$as_me.lineno &&
|
---|
| 7585 | chmod +x $as_me.lineno ||
|
---|
| 7586 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7587 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7588 | { (exit 1); exit 1; }; }
|
---|
| 7589 |
|
---|
| 7590 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7591 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7592 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7593 | . ./$as_me.lineno
|
---|
| 7594 | # Exit status is that of the last command.
|
---|
| 7595 | exit
|
---|
| 7596 | }
|
---|
| 7597 |
|
---|
| 7598 |
|
---|
| 7599 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7600 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7601 | ' ECHO_T=' ' ;;
|
---|
| 7602 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7603 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7604 | esac
|
---|
| 7605 |
|
---|
| 7606 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7607 | as_expr=expr
|
---|
| 7608 | else
|
---|
| 7609 | as_expr=false
|
---|
| 7610 | fi
|
---|
| 7611 |
|
---|
| 7612 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7613 | echo >conf$$.file
|
---|
| 7614 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7615 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7616 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7617 | if test -f conf$$.exe; then
|
---|
| 7618 | # Don't use ln at all; we don't have any links
|
---|
| 7619 | as_ln_s='cp -p'
|
---|
[8200] | 7620 | else
|
---|
[8756] | 7621 | as_ln_s='ln -s'
|
---|
[562] | 7622 | fi
|
---|
[8756] | 7623 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7624 | as_ln_s=ln
|
---|
| 7625 | else
|
---|
| 7626 | as_ln_s='cp -p'
|
---|
| 7627 | fi
|
---|
| 7628 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7629 |
|
---|
| 7630 | if mkdir -p . 2>/dev/null; then
|
---|
| 7631 | as_mkdir_p=:
|
---|
| 7632 | else
|
---|
| 7633 | test -d ./-p && rmdir ./-p
|
---|
| 7634 | as_mkdir_p=false
|
---|
| 7635 | fi
|
---|
| 7636 |
|
---|
| 7637 | as_executable_p="test -f"
|
---|
| 7638 |
|
---|
| 7639 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7640 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7641 |
|
---|
| 7642 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7643 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7644 |
|
---|
| 7645 |
|
---|
| 7646 | # IFS
|
---|
| 7647 | # We need space, tab and new line, in precisely that order.
|
---|
| 7648 | as_nl='
|
---|
| 7649 | '
|
---|
| 7650 | IFS=" $as_nl"
|
---|
| 7651 |
|
---|
| 7652 | # CDPATH.
|
---|
| 7653 | $as_unset CDPATH
|
---|
| 7654 |
|
---|
| 7655 | exec 6>&1
|
---|
| 7656 |
|
---|
| 7657 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 7658 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 7659 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7660 | exec 5>>config.log
|
---|
| 7661 | {
|
---|
| 7662 | echo
|
---|
| 7663 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7664 | ## Running $as_me. ##
|
---|
| 7665 | _ASBOX
|
---|
| 7666 | } >&5
|
---|
| 7667 | cat >&5 <<_CSEOF
|
---|
| 7668 |
|
---|
| 7669 | This file was extended by $as_me, which was
|
---|
| 7670 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 7671 |
|
---|
| 7672 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7673 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7674 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7675 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7676 | $ $0 $@
|
---|
| 7677 |
|
---|
| 7678 | _CSEOF
|
---|
| 7679 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7680 | echo >&5
|
---|
| 7681 | _ACEOF
|
---|
| 7682 |
|
---|
| 7683 | # Files that config.status was made for.
|
---|
| 7684 | if test -n "$ac_config_files"; then
|
---|
| 7685 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7686 | fi
|
---|
| 7687 |
|
---|
| 7688 | if test -n "$ac_config_headers"; then
|
---|
| 7689 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7690 | fi
|
---|
| 7691 |
|
---|
| 7692 | if test -n "$ac_config_links"; then
|
---|
| 7693 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7694 | fi
|
---|
| 7695 |
|
---|
| 7696 | if test -n "$ac_config_commands"; then
|
---|
| 7697 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7698 | fi
|
---|
| 7699 |
|
---|
| 7700 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7701 |
|
---|
| 7702 | ac_cs_usage="\
|
---|
| 7703 | \`$as_me' instantiates files from templates according to the
|
---|
| 7704 | current configuration.
|
---|
| 7705 |
|
---|
| 7706 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7707 |
|
---|
| 7708 | -h, --help print this help, then exit
|
---|
| 7709 | -V, --version print version number, then exit
|
---|
| 7710 | -q, --quiet do not print progress messages
|
---|
| 7711 | -d, --debug don't remove temporary files
|
---|
| 7712 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7713 | --file=FILE[:TEMPLATE]
|
---|
| 7714 | instantiate the configuration file FILE
|
---|
| 7715 | --header=FILE[:TEMPLATE]
|
---|
| 7716 | instantiate the configuration header FILE
|
---|
| 7717 |
|
---|
| 7718 | Configuration files:
|
---|
| 7719 | $config_files
|
---|
| 7720 |
|
---|
| 7721 | Configuration headers:
|
---|
| 7722 | $config_headers
|
---|
| 7723 |
|
---|
| 7724 | Report bugs to <[email protected]>."
|
---|
| 7725 | _ACEOF
|
---|
| 7726 |
|
---|
| 7727 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7728 | ac_cs_version="\\
|
---|
| 7729 | config.status
|
---|
| 7730 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7731 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 7732 |
|
---|
| 7733 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 7734 | This config.status script is free software; the Free Software Foundation
|
---|
| 7735 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 7736 | srcdir=$srcdir
|
---|
| 7737 | INSTALL="$INSTALL"
|
---|
| 7738 | _ACEOF
|
---|
| 7739 |
|
---|
| 7740 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7741 | # If no file are specified by the user, then we need to provide default
|
---|
| 7742 | # value. By we need to know if files were specified by the user.
|
---|
| 7743 | ac_need_defaults=:
|
---|
| 7744 | while test $# != 0
|
---|
| 7745 | do
|
---|
| 7746 | case $1 in
|
---|
| 7747 | --*=*)
|
---|
| 7748 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7749 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
| 7750 | ac_shift=:
|
---|
| 7751 | ;;
|
---|
| 7752 | -*)
|
---|
| 7753 | ac_option=$1
|
---|
| 7754 | ac_optarg=$2
|
---|
| 7755 | ac_shift=shift
|
---|
| 7756 | ;;
|
---|
| 7757 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7758 | # arguments.
|
---|
| 7759 | ac_option=$1
|
---|
| 7760 | ac_need_defaults=false;;
|
---|
| 7761 | esac
|
---|
| 7762 |
|
---|
| 7763 | case $ac_option in
|
---|
| 7764 | # Handling of the options.
|
---|
| 7765 | _ACEOF
|
---|
| 7766 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7767 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7768 | ac_cs_recheck=: ;;
|
---|
| 7769 | --version | --vers* | -V )
|
---|
| 7770 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7771 | --he | --h)
|
---|
| 7772 | # Conflict between --help and --header
|
---|
| 7773 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7774 | Try \`$0 --help' for more information." >&5
|
---|
| 7775 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7776 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7777 | { (exit 1); exit 1; }; };;
|
---|
| 7778 | --help | --hel | -h )
|
---|
| 7779 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7780 | --debug | --d* | -d )
|
---|
| 7781 | debug=: ;;
|
---|
| 7782 | --file | --fil | --fi | --f )
|
---|
| 7783 | $ac_shift
|
---|
| 7784 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7785 | ac_need_defaults=false;;
|
---|
| 7786 | --header | --heade | --head | --hea )
|
---|
| 7787 | $ac_shift
|
---|
| 7788 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7789 | ac_need_defaults=false;;
|
---|
| 7790 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7791 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7792 | ac_cs_silent=: ;;
|
---|
| 7793 |
|
---|
| 7794 | # This is an error.
|
---|
| 7795 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7796 | Try \`$0 --help' for more information." >&5
|
---|
| 7797 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7798 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7799 | { (exit 1); exit 1; }; } ;;
|
---|
| 7800 |
|
---|
| 7801 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 7802 |
|
---|
| 7803 | esac
|
---|
| 7804 | shift
|
---|
[8200] | 7805 | done
|
---|
[8756] | 7806 |
|
---|
| 7807 | ac_configure_extra_args=
|
---|
| 7808 |
|
---|
| 7809 | if $ac_cs_silent; then
|
---|
| 7810 | exec 6>/dev/null
|
---|
| 7811 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 7812 | fi
|
---|
[562] | 7813 |
|
---|
[8756] | 7814 | _ACEOF
|
---|
| 7815 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7816 | if \$ac_cs_recheck; then
|
---|
| 7817 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7818 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7819 | fi
|
---|
[8200] | 7820 |
|
---|
[8756] | 7821 | _ACEOF
|
---|
| 7822 |
|
---|
| 7823 |
|
---|
| 7824 |
|
---|
| 7825 |
|
---|
| 7826 |
|
---|
| 7827 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7828 | for ac_config_target in $ac_config_targets
|
---|
| 7829 | do
|
---|
| 7830 | case "$ac_config_target" in
|
---|
| 7831 | # Handling of arguments.
|
---|
| 7832 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7833 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7834 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7835 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7836 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7837 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7838 | { (exit 1); exit 1; }; };;
|
---|
[562] | 7839 | esac
|
---|
[8756] | 7840 | done
|
---|
[562] | 7841 |
|
---|
[8756] | 7842 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7843 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7844 | # We use the long form for the default assignment because of an extremely
|
---|
| 7845 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7846 | if $ac_need_defaults; then
|
---|
| 7847 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7848 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7849 | fi
|
---|
[8200] | 7850 |
|
---|
[8756] | 7851 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7852 | # simply because there is no reason to put it here, and in addition,
|
---|
| 7853 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 7854 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 7855 | $debug ||
|
---|
| 7856 | {
|
---|
| 7857 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 7858 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7859 | }
|
---|
| 7860 |
|
---|
| 7861 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7862 |
|
---|
| 7863 | {
|
---|
| 7864 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
| 7865 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7866 | } ||
|
---|
| 7867 | {
|
---|
| 7868 | tmp=./confstat$$-$RANDOM
|
---|
| 7869 | (umask 077 && mkdir $tmp)
|
---|
| 7870 | } ||
|
---|
| 7871 | {
|
---|
| 7872 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7873 | { (exit 1); exit 1; }
|
---|
| 7874 | }
|
---|
| 7875 |
|
---|
| 7876 | _ACEOF
|
---|
| 7877 |
|
---|
| 7878 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7879 |
|
---|
| 7880 | #
|
---|
| 7881 | # CONFIG_FILES section.
|
---|
| 7882 | #
|
---|
| 7883 |
|
---|
| 7884 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7885 | # This happens for instance when ./config.status config.h
|
---|
| 7886 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7887 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7888 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7889 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7890 | s,@SHELL@,$SHELL,;t t
|
---|
| 7891 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7892 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7893 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7894 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7895 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7896 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 7897 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7898 | s,@prefix@,$prefix,;t t
|
---|
| 7899 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7900 | s,@bindir@,$bindir,;t t
|
---|
| 7901 | s,@sbindir@,$sbindir,;t t
|
---|
| 7902 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7903 | s,@datadir@,$datadir,;t t
|
---|
| 7904 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7905 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7906 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7907 | s,@libdir@,$libdir,;t t
|
---|
| 7908 | s,@includedir@,$includedir,;t t
|
---|
| 7909 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7910 | s,@infodir@,$infodir,;t t
|
---|
| 7911 | s,@mandir@,$mandir,;t t
|
---|
| 7912 | s,@build_alias@,$build_alias,;t t
|
---|
| 7913 | s,@host_alias@,$host_alias,;t t
|
---|
| 7914 | s,@target_alias@,$target_alias,;t t
|
---|
| 7915 | s,@DEFS@,$DEFS,;t t
|
---|
| 7916 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7917 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7918 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7919 | s,@LIBS@,$LIBS,;t t
|
---|
| 7920 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7921 | s,@VERSION@,$VERSION,;t t
|
---|
| 7922 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 7923 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 7924 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 7925 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 7926 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
[12492] | 7927 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
[12922] | 7928 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[15794] | 7929 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
[18487] | 7930 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
[15551] | 7931 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
[8756] | 7932 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7933 | s,@CC@,$CC,;t t
|
---|
| 7934 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7935 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7936 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7937 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7938 | s,@CXX@,$CXX,;t t
|
---|
| 7939 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7940 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7941 | s,@AWK@,$AWK,;t t
|
---|
| 7942 | s,@YACC@,$YACC,;t t
|
---|
| 7943 | s,@build@,$build,;t t
|
---|
| 7944 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7945 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7946 | s,@build_os@,$build_os,;t t
|
---|
| 7947 | s,@host@,$host,;t t
|
---|
| 7948 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7949 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7950 | s,@host_os@,$host_os,;t t
|
---|
| 7951 | s,@target@,$target,;t t
|
---|
| 7952 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7953 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7954 | s,@target_os@,$target_os,;t t
|
---|
| 7955 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7956 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7957 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7958 | s,@LN_S@,$LN_S,;t t
|
---|
| 7959 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7960 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7961 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
[15551] | 7962 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
[8756] | 7963 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 7964 | s,@CPP@,$CPP,;t t
|
---|
| 7965 | s,@EGREP@,$EGREP,;t t
|
---|
| 7966 | s,@U@,$U,;t t
|
---|
| 7967 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7968 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7969 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7970 | s,@STATIC@,$STATIC,;t t
|
---|
| 7971 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7972 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 7973 | s,@subdirs@,$subdirs,;t t
|
---|
| 7974 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 7975 | CEOF
|
---|
| 7976 |
|
---|
| 7977 | _ACEOF
|
---|
| 7978 |
|
---|
| 7979 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7980 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7981 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7982 | ac_max_sed_lines=48
|
---|
| 7983 | ac_sed_frag=1 # Number of current file.
|
---|
| 7984 | ac_beg=1 # First line for current file.
|
---|
| 7985 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7986 | ac_more_lines=:
|
---|
| 7987 | ac_sed_cmds=
|
---|
| 7988 | while $ac_more_lines; do
|
---|
| 7989 | if test $ac_beg -gt 1; then
|
---|
| 7990 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7991 | else
|
---|
| 7992 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7993 | fi
|
---|
| 7994 | if test ! -s $tmp/subs.frag; then
|
---|
| 7995 | ac_more_lines=false
|
---|
| 7996 | else
|
---|
| 7997 | # The purpose of the label and of the branching condition is to
|
---|
| 7998 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7999 | # is no need to browse any of the substitutions).
|
---|
| 8000 | # These are the two extra sed commands mentioned above.
|
---|
| 8001 | (echo ':t
|
---|
| 8002 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8003 | if test -z "$ac_sed_cmds"; then
|
---|
| 8004 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8005 | else
|
---|
| 8006 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8007 | fi
|
---|
| 8008 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8009 | ac_beg=$ac_end
|
---|
| 8010 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8011 | fi
|
---|
| 8012 | done
|
---|
| 8013 | if test -z "$ac_sed_cmds"; then
|
---|
| 8014 | ac_sed_cmds=cat
|
---|
[562] | 8015 | fi
|
---|
[8756] | 8016 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 8017 |
|
---|
[8756] | 8018 | _ACEOF
|
---|
| 8019 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8020 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8021 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8022 | case $ac_file in
|
---|
| 8023 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8024 | cat >$tmp/stdin
|
---|
| 8025 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8026 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8027 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8028 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8029 | * ) ac_file_in=$ac_file.in ;;
|
---|
[562] | 8030 | esac
|
---|
| 8031 |
|
---|
[8756] | 8032 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8033 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8034 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8035 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8036 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8037 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8038 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8039 | echo X"$ac_file" |
|
---|
| 8040 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8041 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8042 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8043 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8044 | s/.*/./; q'`
|
---|
| 8045 | { if $as_mkdir_p; then
|
---|
| 8046 | mkdir -p "$ac_dir"
|
---|
| 8047 | else
|
---|
| 8048 | as_dir="$ac_dir"
|
---|
| 8049 | as_dirs=
|
---|
| 8050 | while test ! -d "$as_dir"; do
|
---|
| 8051 | as_dirs="$as_dir $as_dirs"
|
---|
| 8052 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8053 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8054 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8055 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8056 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8057 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8058 | echo X"$as_dir" |
|
---|
| 8059 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8060 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8061 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8062 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8063 | s/.*/./; q'`
|
---|
| 8064 | done
|
---|
| 8065 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8066 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8067 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8068 | { (exit 1); exit 1; }; }; }
|
---|
[562] | 8069 |
|
---|
[8756] | 8070 | ac_builddir=.
|
---|
| 8071 |
|
---|
| 8072 | if test "$ac_dir" != .; then
|
---|
| 8073 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8074 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8075 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8076 | else
|
---|
| 8077 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8078 | fi
|
---|
| 8079 |
|
---|
| 8080 | case $srcdir in
|
---|
| 8081 | .) # No --srcdir option. We are building in place.
|
---|
| 8082 | ac_srcdir=.
|
---|
| 8083 | if test -z "$ac_top_builddir"; then
|
---|
| 8084 | ac_top_srcdir=.
|
---|
| 8085 | else
|
---|
| 8086 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8087 | fi ;;
|
---|
| 8088 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8089 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8090 | ac_top_srcdir=$srcdir ;;
|
---|
| 8091 | *) # Relative path.
|
---|
| 8092 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8093 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8094 | esac
|
---|
| 8095 |
|
---|
| 8096 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8097 | # the directories may not exist.
|
---|
| 8098 | case `pwd` in
|
---|
| 8099 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8100 | *)
|
---|
| 8101 | case "$ac_dir" in
|
---|
| 8102 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8103 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8104 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8105 | esac;;
|
---|
| 8106 | esac
|
---|
| 8107 | case $ac_abs_builddir in
|
---|
| 8108 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8109 | *)
|
---|
| 8110 | case ${ac_top_builddir}. in
|
---|
| 8111 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8112 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8113 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8114 | esac;;
|
---|
| 8115 | esac
|
---|
| 8116 | case $ac_abs_builddir in
|
---|
| 8117 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8118 | *)
|
---|
| 8119 | case $ac_srcdir in
|
---|
| 8120 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8121 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8122 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8123 | esac;;
|
---|
| 8124 | esac
|
---|
| 8125 | case $ac_abs_builddir in
|
---|
| 8126 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8127 | *)
|
---|
| 8128 | case $ac_top_srcdir in
|
---|
| 8129 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8130 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8131 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8132 | esac;;
|
---|
| 8133 | esac
|
---|
| 8134 |
|
---|
| 8135 |
|
---|
| 8136 | case $INSTALL in
|
---|
| 8137 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 8138 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[8200] | 8139 | esac
|
---|
[562] | 8140 |
|
---|
[8756] | 8141 | if test x"$ac_file" != x-; then
|
---|
| 8142 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8143 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8144 | rm -f "$ac_file"
|
---|
| 8145 | fi
|
---|
| 8146 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8147 | # use $as_me), people would be surprised to read:
|
---|
| 8148 | # /* config.h. Generated by config.status. */
|
---|
| 8149 | if test x"$ac_file" = x-; then
|
---|
| 8150 | configure_input=
|
---|
| 8151 | else
|
---|
| 8152 | configure_input="$ac_file. "
|
---|
| 8153 | fi
|
---|
| 8154 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8155 | sed 's,.*/,,'` by configure."
|
---|
[562] | 8156 |
|
---|
[8756] | 8157 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8158 | # src tree.
|
---|
| 8159 | ac_file_inputs=`IFS=:
|
---|
| 8160 | for f in $ac_file_in; do
|
---|
| 8161 | case $f in
|
---|
| 8162 | -) echo $tmp/stdin ;;
|
---|
| 8163 | [\\/$]*)
|
---|
| 8164 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8165 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8166 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8167 | { (exit 1); exit 1; }; }
|
---|
| 8168 | echo "$f";;
|
---|
| 8169 | *) # Relative
|
---|
| 8170 | if test -f "$f"; then
|
---|
| 8171 | # Build tree
|
---|
| 8172 | echo "$f"
|
---|
| 8173 | elif test -f "$srcdir/$f"; then
|
---|
| 8174 | # Source tree
|
---|
| 8175 | echo "$srcdir/$f"
|
---|
| 8176 | else
|
---|
| 8177 | # /dev/null tree
|
---|
| 8178 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8179 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8180 | { (exit 1); exit 1; }; }
|
---|
| 8181 | fi;;
|
---|
| 8182 | esac
|
---|
| 8183 | done` || { (exit 1); exit 1; }
|
---|
| 8184 | _ACEOF
|
---|
| 8185 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8186 | sed "$ac_vpsub
|
---|
| 8187 | $extrasub
|
---|
| 8188 | _ACEOF
|
---|
| 8189 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8190 | :t
|
---|
| 8191 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8192 | s,@configure_input@,$configure_input,;t t
|
---|
| 8193 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8194 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8195 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8196 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8197 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8198 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8199 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8200 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8201 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8202 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8203 | rm -f $tmp/stdin
|
---|
| 8204 | if test x"$ac_file" != x-; then
|
---|
| 8205 | mv $tmp/out $ac_file
|
---|
| 8206 | else
|
---|
| 8207 | cat $tmp/out
|
---|
| 8208 | rm -f $tmp/out
|
---|
| 8209 | fi
|
---|
| 8210 |
|
---|
| 8211 | done
|
---|
| 8212 | _ACEOF
|
---|
| 8213 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8214 |
|
---|
| 8215 | #
|
---|
| 8216 | # CONFIG_HEADER section.
|
---|
| 8217 | #
|
---|
| 8218 |
|
---|
[687] | 8219 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8220 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8221 | #
|
---|
| 8222 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[8756] | 8223 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8224 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8225 | ac_dC=' '
|
---|
| 8226 | ac_dD=',;t'
|
---|
| 8227 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8228 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8229 | ac_uB='$,\1#\2define\3'
|
---|
[687] | 8230 | ac_uC=' '
|
---|
[8756] | 8231 | ac_uD=',;t'
|
---|
[687] | 8232 |
|
---|
[8756] | 8233 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[687] | 8234 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8756] | 8235 | case $ac_file in
|
---|
| 8236 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8237 | cat >$tmp/stdin
|
---|
| 8238 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8239 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8240 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8241 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8242 | * ) ac_file_in=$ac_file.in ;;
|
---|
[687] | 8243 | esac
|
---|
[562] | 8244 |
|
---|
[8756] | 8245 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8246 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[687] | 8247 |
|
---|
[8756] | 8248 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8249 | # src tree.
|
---|
| 8250 | ac_file_inputs=`IFS=:
|
---|
| 8251 | for f in $ac_file_in; do
|
---|
| 8252 | case $f in
|
---|
| 8253 | -) echo $tmp/stdin ;;
|
---|
| 8254 | [\\/$]*)
|
---|
| 8255 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8256 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8257 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8258 | { (exit 1); exit 1; }; }
|
---|
| 8259 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8260 | echo "$f";;
|
---|
| 8261 | *) # Relative
|
---|
| 8262 | if test -f "$f"; then
|
---|
| 8263 | # Build tree
|
---|
| 8264 | echo "$f"
|
---|
| 8265 | elif test -f "$srcdir/$f"; then
|
---|
| 8266 | # Source tree
|
---|
| 8267 | echo "$srcdir/$f"
|
---|
| 8268 | else
|
---|
| 8269 | # /dev/null tree
|
---|
| 8270 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8271 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8272 | { (exit 1); exit 1; }; }
|
---|
| 8273 | fi;;
|
---|
| 8274 | esac
|
---|
| 8275 | done` || { (exit 1); exit 1; }
|
---|
| 8276 | # Remove the trailing spaces.
|
---|
| 8277 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[687] | 8278 |
|
---|
[8756] | 8279 | _ACEOF
|
---|
[687] | 8280 |
|
---|
[8756] | 8281 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8282 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8283 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8284 | # templates, and the second `#undef' templates.
|
---|
| 8285 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8286 | # config.status. Protect against being in an unquoted here document
|
---|
| 8287 | # in config.status.
|
---|
| 8288 | rm -f conftest.defines conftest.undefs
|
---|
| 8289 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8290 | # Putting comments in sed scripts is not portable.
|
---|
| 8291 | #
|
---|
| 8292 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8293 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8294 | # See the Autoconf documentation for `clear'.
|
---|
| 8295 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8296 | s/[\\&,]/\\&/g
|
---|
| 8297 | s,[\\$`],\\&,g
|
---|
| 8298 | t clear
|
---|
| 8299 | : clear
|
---|
| 8300 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8301 | t end
|
---|
| 8302 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8303 | : end
|
---|
| 8304 | _ACEOF
|
---|
| 8305 | # If some macros were called several times there might be several times
|
---|
| 8306 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8307 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8308 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8309 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8310 | rm -f confdef2sed.sed
|
---|
[687] | 8311 |
|
---|
| 8312 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8313 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8314 | # on some systems where configure will not decide to define it.
|
---|
[8756] | 8315 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8316 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8317 | _ACEOF
|
---|
[687] | 8318 |
|
---|
[8756] | 8319 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8320 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8321 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8322 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8323 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8324 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8325 | rm -f conftest.tail
|
---|
| 8326 | while grep . conftest.defines >/dev/null
|
---|
| 8327 | do
|
---|
| 8328 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8329 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8330 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8331 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8332 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8333 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8334 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8335 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8336 | echo 'CEOF
|
---|
| 8337 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8338 | rm -f $tmp/in
|
---|
| 8339 | mv $tmp/out $tmp/in
|
---|
| 8340 | ' >>$CONFIG_STATUS
|
---|
| 8341 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8342 | rm -f conftest.defines
|
---|
| 8343 | mv conftest.tail conftest.defines
|
---|
| 8344 | done
|
---|
| 8345 | rm -f conftest.defines
|
---|
| 8346 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8347 | echo >>$CONFIG_STATUS
|
---|
[687] | 8348 |
|
---|
[8756] | 8349 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8350 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8351 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[687] | 8352 | rm -f conftest.tail
|
---|
[8756] | 8353 | while grep . conftest.undefs >/dev/null
|
---|
[687] | 8354 | do
|
---|
[8756] | 8355 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8356 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8357 | # Speed up: don't consider the non `#undef'
|
---|
| 8358 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8359 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8360 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8361 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8362 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[687] | 8363 | echo 'CEOF
|
---|
[8756] | 8364 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8365 | rm -f $tmp/in
|
---|
| 8366 | mv $tmp/out $tmp/in
|
---|
| 8367 | ' >>$CONFIG_STATUS
|
---|
| 8368 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8369 | rm -f conftest.undefs
|
---|
| 8370 | mv conftest.tail conftest.undefs
|
---|
[687] | 8371 | done
|
---|
[8756] | 8372 | rm -f conftest.undefs
|
---|
[687] | 8373 |
|
---|
[8756] | 8374 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8375 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8376 | # use $as_me), people would be surprised to read:
|
---|
| 8377 | # /* config.h. Generated by config.status. */
|
---|
| 8378 | if test x"$ac_file" = x-; then
|
---|
| 8379 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[687] | 8380 | else
|
---|
[8756] | 8381 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8382 | fi
|
---|
| 8383 | cat $tmp/in >>$tmp/config.h
|
---|
| 8384 | rm -f $tmp/in
|
---|
| 8385 | if test x"$ac_file" != x-; then
|
---|
| 8386 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8387 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8388 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8389 | else
|
---|
| 8390 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8391 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8392 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8393 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8394 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8395 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8396 | echo X"$ac_file" |
|
---|
| 8397 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8398 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8399 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8400 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8401 | s/.*/./; q'`
|
---|
| 8402 | { if $as_mkdir_p; then
|
---|
| 8403 | mkdir -p "$ac_dir"
|
---|
| 8404 | else
|
---|
| 8405 | as_dir="$ac_dir"
|
---|
| 8406 | as_dirs=
|
---|
| 8407 | while test ! -d "$as_dir"; do
|
---|
| 8408 | as_dirs="$as_dir $as_dirs"
|
---|
| 8409 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8410 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8411 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8412 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8413 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8414 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8415 | echo X"$as_dir" |
|
---|
| 8416 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8417 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8418 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8419 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8420 | s/.*/./; q'`
|
---|
| 8421 | done
|
---|
| 8422 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8423 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8424 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8425 | { (exit 1); exit 1; }; }; }
|
---|
| 8426 |
|
---|
| 8427 | rm -f $ac_file
|
---|
| 8428 | mv $tmp/config.h $ac_file
|
---|
[687] | 8429 | fi
|
---|
[8756] | 8430 | else
|
---|
| 8431 | cat $tmp/config.h
|
---|
| 8432 | rm -f $tmp/config.h
|
---|
[687] | 8433 | fi
|
---|
[8756] | 8434 | done
|
---|
| 8435 | _ACEOF
|
---|
[8200] | 8436 |
|
---|
[8756] | 8437 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[687] | 8438 |
|
---|
[8756] | 8439 | { (exit 0); exit 0; }
|
---|
| 8440 | _ACEOF
|
---|
[562] | 8441 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 8442 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 8443 |
|
---|
[8756] | 8444 |
|
---|
| 8445 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8446 | # config.status does its own redirection, appending to config.log.
|
---|
| 8447 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8448 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8449 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8450 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8451 | # appended to by config.status. When coming back to configure, we
|
---|
| 8452 | # need to make the FD available again.
|
---|
| 8453 | if test "$no_create" != yes; then
|
---|
| 8454 | ac_cs_success=:
|
---|
| 8455 | ac_config_status_args=
|
---|
| 8456 | test "$silent" = yes &&
|
---|
| 8457 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8458 | exec 5>/dev/null
|
---|
| 8459 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8460 | exec 5>>config.log
|
---|
| 8461 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8462 | # would make configure fail if this is the last instruction.
|
---|
| 8463 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8464 | fi
|
---|
| 8465 |
|
---|
| 8466 | #
|
---|
| 8467 | # CONFIG_SUBDIRS section.
|
---|
| 8468 | #
|
---|
[1675] | 8469 | if test "$no_recursion" != yes; then
|
---|
[562] | 8470 |
|
---|
[1675] | 8471 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8472 | ac_sub_configure_args=
|
---|
| 8473 | ac_prev=
|
---|
| 8474 | for ac_arg in $ac_configure_args; do
|
---|
| 8475 | if test -n "$ac_prev"; then
|
---|
| 8476 | ac_prev=
|
---|
| 8477 | continue
|
---|
| 8478 | fi
|
---|
[8756] | 8479 | case $ac_arg in
|
---|
[1675] | 8480 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8481 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8482 | ac_prev=cache_file ;;
|
---|
| 8483 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 8484 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8485 | | --c=*)
|
---|
[1675] | 8486 | ;;
|
---|
[8756] | 8487 | --config-cache | -C)
|
---|
| 8488 | ;;
|
---|
[1675] | 8489 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8490 | ac_prev=srcdir ;;
|
---|
| 8491 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8492 | ;;
|
---|
[8756] | 8493 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8494 | ac_prev=prefix ;;
|
---|
| 8495 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8496 | ;;
|
---|
[1675] | 8497 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 8498 | esac
|
---|
| 8499 | done
|
---|
[562] | 8500 |
|
---|
[8756] | 8501 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8502 | # in subdir configurations.
|
---|
| 8503 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[1570] | 8504 |
|
---|
[8756] | 8505 | ac_popdir=`pwd`
|
---|
| 8506 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8507 |
|
---|
[1675] | 8508 | # Do not complain, so a configure script can configure whichever
|
---|
| 8509 | # parts of a large source tree are present.
|
---|
[8756] | 8510 | test -d $srcdir/$ac_dir || continue
|
---|
[1675] | 8511 |
|
---|
[8756] | 8512 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8513 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8514 | { if $as_mkdir_p; then
|
---|
| 8515 | mkdir -p "$ac_dir"
|
---|
| 8516 | else
|
---|
| 8517 | as_dir="$ac_dir"
|
---|
| 8518 | as_dirs=
|
---|
| 8519 | while test ! -d "$as_dir"; do
|
---|
| 8520 | as_dirs="$as_dir $as_dirs"
|
---|
| 8521 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8522 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8523 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8524 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8525 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8526 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8527 | echo X"$as_dir" |
|
---|
| 8528 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8529 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8530 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8531 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8532 | s/.*/./; q'`
|
---|
| 8533 | done
|
---|
| 8534 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8535 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8536 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8537 | { (exit 1); exit 1; }; }; }
|
---|
[8200] | 8538 |
|
---|
[8756] | 8539 | ac_builddir=.
|
---|
[1675] | 8540 |
|
---|
[8756] | 8541 | if test "$ac_dir" != .; then
|
---|
| 8542 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8543 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8544 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8545 | else
|
---|
| 8546 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8547 | fi
|
---|
[1675] | 8548 |
|
---|
[8756] | 8549 | case $srcdir in
|
---|
| 8550 | .) # No --srcdir option. We are building in place.
|
---|
| 8551 | ac_srcdir=.
|
---|
| 8552 | if test -z "$ac_top_builddir"; then
|
---|
| 8553 | ac_top_srcdir=.
|
---|
| 8554 | else
|
---|
| 8555 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8556 | fi ;;
|
---|
| 8557 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8558 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8559 | ac_top_srcdir=$srcdir ;;
|
---|
| 8560 | *) # Relative path.
|
---|
| 8561 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8562 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8563 | esac
|
---|
[1675] | 8564 |
|
---|
[8756] | 8565 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8566 | # the directories may not exist.
|
---|
| 8567 | case `pwd` in
|
---|
| 8568 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8569 | *)
|
---|
| 8570 | case "$ac_dir" in
|
---|
| 8571 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8572 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8573 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8574 | esac;;
|
---|
| 8575 | esac
|
---|
| 8576 | case $ac_abs_builddir in
|
---|
| 8577 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8578 | *)
|
---|
| 8579 | case ${ac_top_builddir}. in
|
---|
| 8580 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8581 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8582 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8583 | esac;;
|
---|
| 8584 | esac
|
---|
| 8585 | case $ac_abs_builddir in
|
---|
| 8586 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8587 | *)
|
---|
| 8588 | case $ac_srcdir in
|
---|
| 8589 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8590 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8591 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8592 | esac;;
|
---|
| 8593 | esac
|
---|
| 8594 | case $ac_abs_builddir in
|
---|
| 8595 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8596 | *)
|
---|
| 8597 | case $ac_top_srcdir in
|
---|
| 8598 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8599 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8600 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8601 | esac;;
|
---|
| 8602 | esac
|
---|
[1675] | 8603 |
|
---|
[8756] | 8604 |
|
---|
| 8605 | cd $ac_dir
|
---|
| 8606 |
|
---|
[1675] | 8607 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[8756] | 8608 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8609 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8610 | elif test -f $ac_srcdir/configure; then
|
---|
| 8611 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8612 | elif test -f $ac_srcdir/configure.in; then
|
---|
[1675] | 8613 | ac_sub_configure=$ac_configure
|
---|
| 8614 | else
|
---|
[8756] | 8615 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8616 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 8617 | ac_sub_configure=
|
---|
| 8618 | fi
|
---|
| 8619 |
|
---|
| 8620 | # The recursion is here.
|
---|
| 8621 | if test -n "$ac_sub_configure"; then
|
---|
| 8622 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 8623 | case $cache_file in
|
---|
| 8624 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[1675] | 8625 | *) # Relative path.
|
---|
[8756] | 8626 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[1675] | 8627 | esac
|
---|
| 8628 |
|
---|
[8756] | 8629 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8630 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 8631 | # The eval makes quoting arguments work.
|
---|
[8756] | 8632 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8633 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 8634 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8635 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8636 | { (exit 1); exit 1; }; }
|
---|
[1675] | 8637 | fi
|
---|
| 8638 |
|
---|
| 8639 | cd $ac_popdir
|
---|
| 8640 | done
|
---|
| 8641 | fi
|
---|
| 8642 |
|
---|
[8200] | 8643 |
|
---|
| 8644 |
|
---|