[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[23802] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[562] | 4 | #
|
---|
[23802] | 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.
|
---|
[23802] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[562] | 11 |
|
---|
[23802] | 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[8756] | 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
[23802] | 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[8756] | 17 | # is contrary to our usage. Disable this feature.
|
---|
| 18 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23802] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
[8756] | 21 | fi
|
---|
[23802] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8756] | 23 |
|
---|
[23802] | 24 | # Support unset when possible.
|
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 26 | as_unset=unset
|
---|
[8756] | 27 | else
|
---|
[23802] | 28 | as_unset=false
|
---|
[8756] | 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
[23802] | 32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
[8756] | 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
[23802] | 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
|
---|
[8756] | 43 | do
|
---|
[23802] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
[8756] | 46 | else
|
---|
[23802] | 47 | $as_unset $as_var
|
---|
[8756] | 48 | fi
|
---|
[23802] | 49 | done
|
---|
[8756] | 50 |
|
---|
[23802] | 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[8756] | 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
[23802] | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[8756] | 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
[23802] | 65 | # Name of the executable.
|
---|
| 66 | as_me=`$as_basename "$0" ||
|
---|
[8756] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
[23802] | 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'`
|
---|
[8756] | 76 |
|
---|
[23802] | 77 |
|
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
[20853] | 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
|
---|
[8756] | 85 |
|
---|
[23802] | 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
|
---|
[8756] | 98 |
|
---|
[23802] | 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 |
|
---|
[8756] | 165 | sed '
|
---|
| 166 | N
|
---|
[23802] | 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[8756] | 170 | t loop
|
---|
[23802] | 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
[8756] | 173 | ' >$as_me.lineno &&
|
---|
[23802] | 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; }; }
|
---|
[8756] | 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
|
---|
[23802] | 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
[8756] | 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
[23802] | 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= ;;
|
---|
[8756] | 192 | esac
|
---|
| 193 |
|
---|
[23802] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 195 | as_expr=expr
|
---|
[8756] | 196 | else
|
---|
[23802] | 197 | as_expr=false
|
---|
[8756] | 198 | fi
|
---|
[23802] | 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
|
---|
[22378] | 209 | as_ln_s='ln -s'
|
---|
[20853] | 210 | fi
|
---|
[23802] | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
[8756] | 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
[23802] | 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[8756] | 217 |
|
---|
| 218 | if mkdir -p . 2>/dev/null; then
|
---|
[23802] | 219 | as_mkdir_p=:
|
---|
[8756] | 220 | else
|
---|
| 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
| 223 | fi
|
---|
| 224 |
|
---|
[23802] | 225 | as_executable_p="test -f"
|
---|
[8756] | 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 |
|
---|
[23802] | 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
[8756] | 239 |
|
---|
[23802] | 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
| 242 |
|
---|
| 243 |
|
---|
[8756] | 244 | # Name of the host.
|
---|
[23802] | 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
[8756] | 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
[23802] | 249 | exec 6>&1
|
---|
| 250 |
|
---|
[8756] | 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=
|
---|
[23802] | 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[562] | 261 |
|
---|
[23802] | 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 |
|
---|
[8756] | 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>
|
---|
[23802] | 277 | #if HAVE_SYS_TYPES_H
|
---|
[8756] | 278 | # include <sys/types.h>
|
---|
| 279 | #endif
|
---|
[23802] | 280 | #if HAVE_SYS_STAT_H
|
---|
[8756] | 281 | # include <sys/stat.h>
|
---|
| 282 | #endif
|
---|
[23802] | 283 | #if STDC_HEADERS
|
---|
[8756] | 284 | # include <stdlib.h>
|
---|
| 285 | # include <stddef.h>
|
---|
| 286 | #else
|
---|
[23802] | 287 | # if HAVE_STDLIB_H
|
---|
[8756] | 288 | # include <stdlib.h>
|
---|
| 289 | # endif
|
---|
| 290 | #endif
|
---|
[23802] | 291 | #if HAVE_STRING_H
|
---|
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
[8756] | 293 | # include <memory.h>
|
---|
| 294 | # endif
|
---|
| 295 | # include <string.h>
|
---|
| 296 | #endif
|
---|
[23802] | 297 | #if HAVE_STRINGS_H
|
---|
[8756] | 298 | # include <strings.h>
|
---|
| 299 | #endif
|
---|
[23802] | 300 | #if HAVE_INTTYPES_H
|
---|
[8756] | 301 | # include <inttypes.h>
|
---|
[23802] | 302 | #else
|
---|
| 303 | # if HAVE_STDINT_H
|
---|
| 304 | # include <stdint.h>
|
---|
| 305 | # endif
|
---|
[8756] | 306 | #endif
|
---|
[23802] | 307 | #if HAVE_UNISTD_H
|
---|
[8756] | 308 | # include <unistd.h>
|
---|
| 309 | #endif"
|
---|
| 310 |
|
---|
[23802] | 311 | ac_subdirs_all="$ac_subdirs_all common-src"
|
---|
| 312 | ac_subdirs_all="$ac_subdirs_all build-src"
|
---|
| 313 | ac_subdirs_all="$ac_subdirs_all runtime-src"
|
---|
[24958] | 314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR ENABLE_JAVA USE_Z3950 USE_YAZ USE_WVWARE USE_JDBM USE_GDBM ENABLE_ACCENTFOLD USE_SQLITE USE_RSS USE_APACHE_HTTPD ENABLE_JNI ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
[8756] | 315 | ac_subst_files=''
|
---|
| 316 |
|
---|
[562] | 317 | # Initialize some variables set by options.
|
---|
[8756] | 318 | ac_init_help=
|
---|
| 319 | ac_init_version=false
|
---|
[562] | 320 | # The variables have the same names as the options, with
|
---|
| 321 | # dashes changed to underlines.
|
---|
[8756] | 322 | cache_file=/dev/null
|
---|
[562] | 323 | exec_prefix=NONE
|
---|
| 324 | no_create=
|
---|
| 325 | no_recursion=
|
---|
| 326 | prefix=NONE
|
---|
| 327 | program_prefix=NONE
|
---|
| 328 | program_suffix=NONE
|
---|
| 329 | program_transform_name=s,x,x,
|
---|
| 330 | silent=
|
---|
| 331 | site=
|
---|
| 332 | srcdir=
|
---|
| 333 | verbose=
|
---|
| 334 | x_includes=NONE
|
---|
| 335 | x_libraries=NONE
|
---|
[8756] | 336 |
|
---|
| 337 | # Installation directory options.
|
---|
| 338 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 339 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 340 | # by default will actually change.
|
---|
| 341 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[562] | 342 | bindir='${exec_prefix}/bin'
|
---|
| 343 | sbindir='${exec_prefix}/sbin'
|
---|
| 344 | libexecdir='${exec_prefix}/libexec'
|
---|
[23802] | 345 | datadir='${prefix}/share'
|
---|
[562] | 346 | sysconfdir='${prefix}/etc'
|
---|
| 347 | sharedstatedir='${prefix}/com'
|
---|
| 348 | localstatedir='${prefix}/var'
|
---|
[23802] | 349 | libdir='${exec_prefix}/lib'
|
---|
[562] | 350 | includedir='${prefix}/include'
|
---|
| 351 | oldincludedir='/usr/include'
|
---|
[23802] | 352 | infodir='${prefix}/info'
|
---|
| 353 | mandir='${prefix}/man'
|
---|
[562] | 354 |
|
---|
| 355 | ac_prev=
|
---|
| 356 | for ac_option
|
---|
| 357 | do
|
---|
| 358 | # If the previous option needs an argument, assign it.
|
---|
| 359 | if test -n "$ac_prev"; then
|
---|
[23802] | 360 | eval "$ac_prev=\$ac_option"
|
---|
[562] | 361 | ac_prev=
|
---|
| 362 | continue
|
---|
| 363 | fi
|
---|
| 364 |
|
---|
[23802] | 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[562] | 366 |
|
---|
| 367 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 368 |
|
---|
[23802] | 369 | case $ac_option in
|
---|
[562] | 370 |
|
---|
| 371 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 372 | ac_prev=bindir ;;
|
---|
| 373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 374 | bindir=$ac_optarg ;;
|
---|
[562] | 375 |
|
---|
| 376 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 377 | ac_prev=build_alias ;;
|
---|
[562] | 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 379 | build_alias=$ac_optarg ;;
|
---|
[562] | 380 |
|
---|
| 381 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 383 | ac_prev=cache_file ;;
|
---|
| 384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8756] | 386 | cache_file=$ac_optarg ;;
|
---|
[562] | 387 |
|
---|
[8756] | 388 | --config-cache | -C)
|
---|
| 389 | cache_file=config.cache ;;
|
---|
| 390 |
|
---|
[23802] | 391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
[562] | 392 | ac_prev=datadir ;;
|
---|
[23802] | 393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 394 | | --da=*)
|
---|
[8756] | 395 | datadir=$ac_optarg ;;
|
---|
[562] | 396 |
|
---|
| 397 | -disable-* | --disable-*)
|
---|
[23802] | 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 399 | # Reject names that are not valid shell variable names.
|
---|
[23802] | 400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 402 | { (exit 1); exit 1; }; }
|
---|
| 403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 404 | eval "enable_$ac_feature=no" ;;
|
---|
[562] | 405 |
|
---|
| 406 | -enable-* | --enable-*)
|
---|
[23802] | 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 408 | # Reject names that are not valid shell variable names.
|
---|
[23802] | 409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 411 | { (exit 1); exit 1; }; }
|
---|
| 412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 413 | case $ac_option in
|
---|
| 414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 415 | *) ac_optarg=yes ;;
|
---|
[20853] | 416 | esac
|
---|
[23802] | 417 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[562] | 418 |
|
---|
| 419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 421 | | --exec | --exe | --ex)
|
---|
| 422 | ac_prev=exec_prefix ;;
|
---|
| 423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 425 | | --exec=* | --exe=* | --ex=*)
|
---|
[8756] | 426 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 427 |
|
---|
| 428 | -gas | --gas | --ga | --g)
|
---|
| 429 | # Obsolete; use --with-gas.
|
---|
| 430 | with_gas=yes ;;
|
---|
| 431 |
|
---|
[8756] | 432 | -help | --help | --hel | --he | -h)
|
---|
| 433 | ac_init_help=long ;;
|
---|
| 434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 435 | ac_init_help=recursive ;;
|
---|
| 436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 437 | ac_init_help=short ;;
|
---|
[562] | 438 |
|
---|
| 439 | -host | --host | --hos | --ho)
|
---|
[8756] | 440 | ac_prev=host_alias ;;
|
---|
[562] | 441 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 442 | host_alias=$ac_optarg ;;
|
---|
[562] | 443 |
|
---|
| 444 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 445 | | --includ | --inclu | --incl | --inc)
|
---|
| 446 | ac_prev=includedir ;;
|
---|
| 447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 448 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8756] | 449 | includedir=$ac_optarg ;;
|
---|
[562] | 450 |
|
---|
| 451 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 452 | ac_prev=infodir ;;
|
---|
| 453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 454 | infodir=$ac_optarg ;;
|
---|
[562] | 455 |
|
---|
| 456 | -libdir | --libdir | --libdi | --libd)
|
---|
| 457 | ac_prev=libdir ;;
|
---|
| 458 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 459 | libdir=$ac_optarg ;;
|
---|
[562] | 460 |
|
---|
| 461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 462 | | --libexe | --libex | --libe)
|
---|
| 463 | ac_prev=libexecdir ;;
|
---|
| 464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 465 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8756] | 466 | libexecdir=$ac_optarg ;;
|
---|
[562] | 467 |
|
---|
| 468 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[23802] | 469 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 470 | | --locals | --local | --loca | --loc | --lo)
|
---|
[562] | 471 | ac_prev=localstatedir ;;
|
---|
| 472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[23802] | 473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[8756] | 475 | localstatedir=$ac_optarg ;;
|
---|
[562] | 476 |
|
---|
| 477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 478 | ac_prev=mandir ;;
|
---|
| 479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 480 | mandir=$ac_optarg ;;
|
---|
[562] | 481 |
|
---|
| 482 | -nfp | --nfp | --nf)
|
---|
| 483 | # Obsolete; use --without-fp.
|
---|
| 484 | with_fp=no ;;
|
---|
| 485 |
|
---|
| 486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[8756] | 487 | | --no-cr | --no-c | -n)
|
---|
[562] | 488 | no_create=yes ;;
|
---|
| 489 |
|
---|
| 490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 492 | no_recursion=yes ;;
|
---|
| 493 |
|
---|
| 494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 496 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 497 | ac_prev=oldincludedir ;;
|
---|
| 498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8756] | 501 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 502 |
|
---|
| 503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 504 | ac_prev=prefix ;;
|
---|
| 505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 506 | prefix=$ac_optarg ;;
|
---|
[562] | 507 |
|
---|
| 508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 509 | | --program-pre | --program-pr | --program-p)
|
---|
| 510 | ac_prev=program_prefix ;;
|
---|
| 511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8756] | 513 | program_prefix=$ac_optarg ;;
|
---|
[562] | 514 |
|
---|
| 515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 516 | | --program-suf | --program-su | --program-s)
|
---|
| 517 | ac_prev=program_suffix ;;
|
---|
| 518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8756] | 520 | program_suffix=$ac_optarg ;;
|
---|
[562] | 521 |
|
---|
| 522 | -program-transform-name | --program-transform-name \
|
---|
| 523 | | --program-transform-nam | --program-transform-na \
|
---|
| 524 | | --program-transform-n | --program-transform- \
|
---|
| 525 | | --program-transform | --program-transfor \
|
---|
| 526 | | --program-transfo | --program-transf \
|
---|
| 527 | | --program-trans | --program-tran \
|
---|
| 528 | | --progr-tra | --program-tr | --program-t)
|
---|
| 529 | ac_prev=program_transform_name ;;
|
---|
| 530 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 531 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 532 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 533 | | --program-transform=* | --program-transfor=* \
|
---|
| 534 | | --program-transfo=* | --program-transf=* \
|
---|
| 535 | | --program-trans=* | --program-tran=* \
|
---|
| 536 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8756] | 537 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 538 |
|
---|
| 539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 540 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 541 | silent=yes ;;
|
---|
| 542 |
|
---|
| 543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 544 | ac_prev=sbindir ;;
|
---|
| 545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 546 | | --sbi=* | --sb=*)
|
---|
[8756] | 547 | sbindir=$ac_optarg ;;
|
---|
[562] | 548 |
|
---|
| 549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 551 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 552 | | --sha | --sh)
|
---|
| 553 | ac_prev=sharedstatedir ;;
|
---|
| 554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 557 | | --sha=* | --sh=*)
|
---|
[8756] | 558 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 559 |
|
---|
| 560 | -site | --site | --sit)
|
---|
| 561 | ac_prev=site ;;
|
---|
| 562 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 563 | site=$ac_optarg ;;
|
---|
[562] | 564 |
|
---|
| 565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 566 | ac_prev=srcdir ;;
|
---|
| 567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 568 | srcdir=$ac_optarg ;;
|
---|
[562] | 569 |
|
---|
| 570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 571 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 572 | ac_prev=sysconfdir ;;
|
---|
| 573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8756] | 575 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 576 |
|
---|
| 577 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 578 | ac_prev=target_alias ;;
|
---|
[562] | 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 580 | target_alias=$ac_optarg ;;
|
---|
[562] | 581 |
|
---|
| 582 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 583 | verbose=yes ;;
|
---|
| 584 |
|
---|
[8756] | 585 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 586 | ac_init_version=: ;;
|
---|
[562] | 587 |
|
---|
| 588 | -with-* | --with-*)
|
---|
[23802] | 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 590 | # Reject names that are not valid shell variable names.
|
---|
[23802] | 591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 592 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 593 | { (exit 1); exit 1; }; }
|
---|
| 594 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 595 | case $ac_option in
|
---|
| 596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 597 | *) ac_optarg=yes ;;
|
---|
[20853] | 598 | esac
|
---|
[23802] | 599 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[562] | 600 |
|
---|
| 601 | -without-* | --without-*)
|
---|
[23802] | 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 603 | # Reject names that are not valid shell variable names.
|
---|
[23802] | 604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 605 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 606 | { (exit 1); exit 1; }; }
|
---|
| 607 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 608 | eval "with_$ac_package=no" ;;
|
---|
[562] | 609 |
|
---|
| 610 | --x)
|
---|
| 611 | # Obsolete; use --with-x.
|
---|
| 612 | with_x=yes ;;
|
---|
| 613 |
|
---|
| 614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 615 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 616 | ac_prev=x_includes ;;
|
---|
| 617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8756] | 619 | x_includes=$ac_optarg ;;
|
---|
[562] | 620 |
|
---|
| 621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 623 | ac_prev=x_libraries ;;
|
---|
| 624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8756] | 626 | x_libraries=$ac_optarg ;;
|
---|
[562] | 627 |
|
---|
[23802] | 628 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 629 | Try \`$0 --help' for more information." >&2
|
---|
| 630 | { (exit 1); exit 1; }; }
|
---|
[562] | 631 | ;;
|
---|
| 632 |
|
---|
[8756] | 633 | *=*)
|
---|
| 634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 635 | # Reject names that are not valid shell variable names.
|
---|
[23802] | 636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 638 | { (exit 1); exit 1; }; }
|
---|
| 639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 640 | eval "$ac_envvar='$ac_optarg'"
|
---|
[8756] | 641 | export $ac_envvar ;;
|
---|
| 642 |
|
---|
[562] | 643 | *)
|
---|
[8756] | 644 | # FIXME: should be removed in autoconf 3.0.
|
---|
[23802] | 645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[8756] | 646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[23802] | 647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[8756] | 648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 649 | ;;
|
---|
| 650 |
|
---|
| 651 | esac
|
---|
| 652 | done
|
---|
| 653 |
|
---|
| 654 | if test -n "$ac_prev"; then
|
---|
[8756] | 655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[23802] | 656 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 657 | { (exit 1); exit 1; }; }
|
---|
[562] | 658 | fi
|
---|
| 659 |
|
---|
[23802] | 660 | # Be sure to have absolute paths.
|
---|
| 661 | for ac_var in exec_prefix prefix
|
---|
| 662 | do
|
---|
| 663 | eval ac_val=$`echo $ac_var`
|
---|
| 664 | case $ac_val in
|
---|
| 665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 667 | { (exit 1); exit 1; }; };;
|
---|
[8756] | 668 | esac
|
---|
[23802] | 669 | done
|
---|
[8200] | 670 |
|
---|
[23802] | 671 | # Be sure to have absolute paths.
|
---|
| 672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 673 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[20853] | 674 | do
|
---|
[23802] | 675 | eval ac_val=$`echo $ac_var`
|
---|
[20853] | 676 | case $ac_val in
|
---|
[23802] | 677 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 679 | { (exit 1); exit 1; }; };;
|
---|
[20853] | 680 | esac
|
---|
| 681 | done
|
---|
| 682 |
|
---|
[8756] | 683 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 684 | # used to hold the argument of --host etc.
|
---|
| 685 | # FIXME: To remove some day.
|
---|
| 686 | build=$build_alias
|
---|
| 687 | host=$host_alias
|
---|
| 688 | target=$target_alias
|
---|
[562] | 689 |
|
---|
[8756] | 690 | # FIXME: To remove some day.
|
---|
| 691 | if test "x$host_alias" != x; then
|
---|
| 692 | if test "x$build_alias" = x; then
|
---|
| 693 | cross_compiling=maybe
|
---|
[23802] | 694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 695 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
[8756] | 696 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 697 | cross_compiling=yes
|
---|
| 698 | fi
|
---|
| 699 | fi
|
---|
[562] | 700 |
|
---|
[8756] | 701 | ac_tool_prefix=
|
---|
| 702 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 703 |
|
---|
[8756] | 704 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 705 |
|
---|
| 706 |
|
---|
[562] | 707 | # Find the source files, if location was not specified.
|
---|
| 708 | if test -z "$srcdir"; then
|
---|
| 709 | ac_srcdir_defaulted=yes
|
---|
[23802] | 710 | # Try the directory containing this script, then its parent.
|
---|
| 711 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 713 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 714 | X"$0" : 'X\(//\)$' \| \
|
---|
| 715 | X"$0" : 'X\(/\)' \| \
|
---|
| 716 | . : '\(.\)' 2>/dev/null ||
|
---|
| 717 | echo X"$0" |
|
---|
| 718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 720 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 721 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 722 | s/.*/./; q'`
|
---|
[562] | 723 | srcdir=$ac_confdir
|
---|
[23802] | 724 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
[562] | 725 | srcdir=..
|
---|
| 726 | fi
|
---|
| 727 | else
|
---|
| 728 | ac_srcdir_defaulted=no
|
---|
| 729 | fi
|
---|
[23802] | 730 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 731 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
| 733 | { (exit 1); exit 1; }; }
|
---|
| 734 | else
|
---|
| 735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 736 | { (exit 1); exit 1; }; }
|
---|
| 737 | fi
|
---|
[20842] | 738 | fi
|
---|
[23802] | 739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 741 | { (exit 1); exit 1; }; }
|
---|
| 742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 743 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 744 | ac_env_build_alias_value=$build_alias
|
---|
| 745 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 746 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 747 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 748 | ac_env_host_alias_value=$host_alias
|
---|
| 749 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 750 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 751 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 752 | ac_env_target_alias_value=$target_alias
|
---|
| 753 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 754 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 755 | ac_env_CC_set=${CC+set}
|
---|
| 756 | ac_env_CC_value=$CC
|
---|
| 757 | ac_cv_env_CC_set=${CC+set}
|
---|
| 758 | ac_cv_env_CC_value=$CC
|
---|
| 759 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 760 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 761 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 762 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 763 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 764 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 766 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 768 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 771 | ac_env_CXX_set=${CXX+set}
|
---|
| 772 | ac_env_CXX_value=$CXX
|
---|
| 773 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 774 | ac_cv_env_CXX_value=$CXX
|
---|
| 775 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 776 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 777 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 778 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 779 | ac_env_CPP_set=${CPP+set}
|
---|
| 780 | ac_env_CPP_value=$CPP
|
---|
| 781 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 782 | ac_cv_env_CPP_value=$CPP
|
---|
[562] | 783 |
|
---|
[8756] | 784 | #
|
---|
| 785 | # Report the --help message.
|
---|
| 786 | #
|
---|
| 787 | if test "$ac_init_help" = "long"; then
|
---|
| 788 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 789 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 790 | cat <<_ACEOF
|
---|
| 791 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 792 |
|
---|
| 793 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 794 |
|
---|
| 795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 796 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 797 |
|
---|
| 798 | Defaults for the options are specified in brackets.
|
---|
| 799 |
|
---|
| 800 | Configuration:
|
---|
| 801 | -h, --help display this help and exit
|
---|
| 802 | --help=short display options specific to this package
|
---|
| 803 | --help=recursive display the short help of all the included packages
|
---|
| 804 | -V, --version display version information and exit
|
---|
[23802] | 805 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
[8756] | 806 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 807 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 808 | -n, --no-create do not create output files
|
---|
| 809 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 810 |
|
---|
[23802] | 811 | _ACEOF
|
---|
| 812 |
|
---|
| 813 | cat <<_ACEOF
|
---|
[8756] | 814 | Installation directories:
|
---|
| 815 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[23802] | 816 | [$ac_default_prefix]
|
---|
[8756] | 817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[23802] | 818 | [PREFIX]
|
---|
[8756] | 819 |
|
---|
| 820 | By default, \`make install' will install all the files in
|
---|
| 821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 823 | for instance \`--prefix=\$HOME'.
|
---|
| 824 |
|
---|
| 825 | For better control, use the options below.
|
---|
| 826 |
|
---|
| 827 | Fine tuning of the installation directories:
|
---|
[23802] | 828 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 829 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 830 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 831 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 835 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 836 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 837 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 838 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 839 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[8756] | 840 | _ACEOF
|
---|
| 841 |
|
---|
| 842 | cat <<\_ACEOF
|
---|
| 843 |
|
---|
| 844 | System types:
|
---|
| 845 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 846 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 847 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 848 | _ACEOF
|
---|
| 849 | fi
|
---|
| 850 |
|
---|
| 851 | if test -n "$ac_init_help"; then
|
---|
| 852 |
|
---|
| 853 | cat <<\_ACEOF
|
---|
| 854 |
|
---|
| 855 | Optional Features:
|
---|
| 856 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 857 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 858 | --enable-corba Enable CORBA support
|
---|
[23356] | 859 | --disable-java Disable Java compilation
|
---|
[8756] | 860 | --enable-z3950 Enable Z39.50 client support
|
---|
[15816] | 861 | --disable-yaz Disable YAZ compilation
|
---|
[23802] | 862 | --disable-wvware Disable wvWare compilation
|
---|
[23356] | 863 | --disable-jdbm Disable JDBM compilation
|
---|
| 864 | --disable-gdbm Disable GDBM compilation
|
---|
[15816] | 865 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[16288] | 866 | --disable-sqlite Disable SQLite support
|
---|
[24958] | 867 | --disable-rss Disable RSS support
|
---|
[23356] | 868 | --enable-apache-httpd Enable Apache httpd support
|
---|
| 869 | --enable-jni Enable JNI compilation
|
---|
| 870 | --disable-mg Disable MG compilation
|
---|
| 871 | --disable-mgpp Disable MGPP compilation
|
---|
[21330] | 872 | --disable-lucene Disable Lucene compilation
|
---|
[8756] | 873 |
|
---|
| 874 | Optional Packages:
|
---|
| 875 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 876 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 877 | --with-micodir Use installed MICO directory
|
---|
| 878 | --with-dmalloc use dmalloc, as in
|
---|
| 879 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 880 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 881 |
|
---|
| 882 | Some influential environment variables:
|
---|
| 883 | CC C compiler command
|
---|
| 884 | CFLAGS C compiler flags
|
---|
| 885 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 886 | nonstandard directory <lib dir>
|
---|
[23802] | 887 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 888 | headers in a nonstandard directory <include dir>
|
---|
[8756] | 889 | CXX C++ compiler command
|
---|
| 890 | CXXFLAGS C++ compiler flags
|
---|
| 891 | CPP C preprocessor
|
---|
| 892 |
|
---|
| 893 | Use these variables to override the choices made by `configure' or to help
|
---|
| 894 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 895 |
|
---|
| 896 | _ACEOF
|
---|
| 897 | fi
|
---|
| 898 |
|
---|
| 899 | if test "$ac_init_help" = "recursive"; then
|
---|
| 900 | # If there are subdirs, report their specific --help.
|
---|
[23802] | 901 | ac_popdir=`pwd`
|
---|
[8756] | 902 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[23802] | 903 | test -d $ac_dir || continue
|
---|
[8756] | 904 | ac_builddir=.
|
---|
| 905 |
|
---|
[23802] | 906 | if test "$ac_dir" != .; then
|
---|
| 907 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 908 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 909 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 910 | else
|
---|
| 911 | ac_dir_suffix= ac_top_builddir=
|
---|
| 912 | fi
|
---|
[8756] | 913 |
|
---|
| 914 | case $srcdir in
|
---|
[23802] | 915 | .) # No --srcdir option. We are building in place.
|
---|
[8756] | 916 | ac_srcdir=.
|
---|
[23802] | 917 | if test -z "$ac_top_builddir"; then
|
---|
| 918 | ac_top_srcdir=.
|
---|
| 919 | else
|
---|
| 920 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 921 | fi ;;
|
---|
| 922 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[8756] | 923 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23802] | 924 | ac_top_srcdir=$srcdir ;;
|
---|
| 925 | *) # Relative path.
|
---|
| 926 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 927 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[8756] | 928 | esac
|
---|
| 929 |
|
---|
[23802] | 930 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 931 | # the directories may not exist.
|
---|
| 932 | case `pwd` in
|
---|
| 933 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 934 | *)
|
---|
| 935 | case "$ac_dir" in
|
---|
| 936 | .) ac_abs_builddir=`pwd`;;
|
---|
| 937 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 938 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 939 | esac;;
|
---|
| 940 | esac
|
---|
| 941 | case $ac_abs_builddir in
|
---|
| 942 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 943 | *)
|
---|
| 944 | case ${ac_top_builddir}. in
|
---|
| 945 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 946 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 947 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 948 | esac;;
|
---|
| 949 | esac
|
---|
| 950 | case $ac_abs_builddir in
|
---|
| 951 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 952 | *)
|
---|
| 953 | case $ac_srcdir in
|
---|
| 954 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 955 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 956 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 957 | esac;;
|
---|
| 958 | esac
|
---|
| 959 | case $ac_abs_builddir in
|
---|
| 960 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 961 | *)
|
---|
| 962 | case $ac_top_srcdir in
|
---|
| 963 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 964 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 965 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 966 | esac;;
|
---|
| 967 | esac
|
---|
| 968 |
|
---|
| 969 | cd $ac_dir
|
---|
| 970 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 971 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 972 | echo
|
---|
| 973 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 974 | elif test -f $ac_srcdir/configure; then
|
---|
| 975 | echo
|
---|
| 976 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 977 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 978 | test -f $ac_srcdir/configure.in; then
|
---|
| 979 | echo
|
---|
| 980 | $ac_configure --help
|
---|
[8756] | 981 | else
|
---|
[23802] | 982 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 983 | fi
|
---|
| 984 | cd $ac_popdir
|
---|
[8756] | 985 | done
|
---|
| 986 | fi
|
---|
| 987 |
|
---|
[23802] | 988 | test -n "$ac_init_help" && exit 0
|
---|
[8756] | 989 | if $ac_init_version; then
|
---|
| 990 | cat <<\_ACEOF
|
---|
| 991 |
|
---|
[23802] | 992 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8756] | 993 | This configure script is free software; the Free Software Foundation
|
---|
| 994 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 995 | _ACEOF
|
---|
[23802] | 996 | exit 0
|
---|
[8756] | 997 | fi
|
---|
[23802] | 998 | exec 5>config.log
|
---|
| 999 | cat >&5 <<_ACEOF
|
---|
[8756] | 1000 | This file contains any messages produced by compilers while
|
---|
| 1001 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 1002 |
|
---|
| 1003 | It was created by $as_me, which was
|
---|
[23802] | 1004 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8756] | 1005 |
|
---|
| 1006 | $ $0 $@
|
---|
| 1007 |
|
---|
| 1008 | _ACEOF
|
---|
| 1009 | {
|
---|
| 1010 | cat <<_ASUNAME
|
---|
| 1011 | ## --------- ##
|
---|
| 1012 | ## Platform. ##
|
---|
| 1013 | ## --------- ##
|
---|
| 1014 |
|
---|
| 1015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1016 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1017 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1018 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1019 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1020 |
|
---|
| 1021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1023 |
|
---|
| 1024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[23802] | 1027 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
[8756] | 1028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1031 |
|
---|
| 1032 | _ASUNAME
|
---|
| 1033 |
|
---|
| 1034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1035 | for as_dir in $PATH
|
---|
| 1036 | do
|
---|
| 1037 | IFS=$as_save_IFS
|
---|
| 1038 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 1039 | echo "PATH: $as_dir"
|
---|
| 1040 | done
|
---|
[8756] | 1041 |
|
---|
| 1042 | } >&5
|
---|
| 1043 |
|
---|
| 1044 | cat >&5 <<_ACEOF
|
---|
| 1045 |
|
---|
| 1046 |
|
---|
| 1047 | ## ----------- ##
|
---|
| 1048 | ## Core tests. ##
|
---|
| 1049 | ## ----------- ##
|
---|
| 1050 |
|
---|
| 1051 | _ACEOF
|
---|
| 1052 |
|
---|
| 1053 |
|
---|
| 1054 | # Keep a trace of the command line.
|
---|
| 1055 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1056 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1057 | # Also quote any args containing shell meta-characters.
|
---|
| 1058 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1059 | ac_configure_args=
|
---|
| 1060 | ac_configure_args0=
|
---|
| 1061 | ac_configure_args1=
|
---|
[23802] | 1062 | ac_sep=
|
---|
[8756] | 1063 | ac_must_keep_next=false
|
---|
| 1064 | for ac_pass in 1 2
|
---|
| 1065 | do
|
---|
| 1066 | for ac_arg
|
---|
| 1067 | do
|
---|
| 1068 | case $ac_arg in
|
---|
| 1069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1071 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1072 | continue ;;
|
---|
[23802] | 1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1074 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 1075 | esac
|
---|
| 1076 | case $ac_pass in
|
---|
[23802] | 1077 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
[8756] | 1078 | 2)
|
---|
[23802] | 1079 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
[8756] | 1080 | if test $ac_must_keep_next = true; then
|
---|
| 1081 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1082 | else
|
---|
| 1083 | case $ac_arg in
|
---|
| 1084 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1087 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1088 | case "$ac_configure_args0 " in
|
---|
| 1089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1090 | esac
|
---|
| 1091 | ;;
|
---|
| 1092 | -* ) ac_must_keep_next=true ;;
|
---|
| 1093 | esac
|
---|
| 1094 | fi
|
---|
[23802] | 1095 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1096 | # Get rid of the leading space.
|
---|
| 1097 | ac_sep=" "
|
---|
[8756] | 1098 | ;;
|
---|
| 1099 | esac
|
---|
| 1100 | done
|
---|
| 1101 | done
|
---|
[23802] | 1102 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1103 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[8756] | 1104 |
|
---|
| 1105 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1106 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1107 | # would cause problems or look ugly.
|
---|
[23802] | 1108 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1109 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[8756] | 1110 | trap 'exit_status=$?
|
---|
| 1111 | # Save into config.log some information that might help in debugging.
|
---|
| 1112 | {
|
---|
| 1113 | echo
|
---|
| 1114 |
|
---|
[23802] | 1115 | cat <<\_ASBOX
|
---|
| 1116 | ## ---------------- ##
|
---|
[8756] | 1117 | ## Cache variables. ##
|
---|
[23802] | 1118 | ## ---------------- ##
|
---|
| 1119 | _ASBOX
|
---|
[8756] | 1120 | echo
|
---|
| 1121 | # The following way of writing the cache mishandles newlines in values,
|
---|
[23802] | 1122 | {
|
---|
[8756] | 1123 | (set) 2>&1 |
|
---|
[23802] | 1124 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1125 | *ac_space=\ *)
|
---|
[8756] | 1126 | sed -n \
|
---|
[23802] | 1127 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1129 | ;;
|
---|
[8756] | 1130 | *)
|
---|
[23802] | 1131 | sed -n \
|
---|
| 1132 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8756] | 1133 | ;;
|
---|
[23802] | 1134 | esac;
|
---|
| 1135 | }
|
---|
[8756] | 1136 | echo
|
---|
| 1137 |
|
---|
[23802] | 1138 | cat <<\_ASBOX
|
---|
| 1139 | ## ----------------- ##
|
---|
[8756] | 1140 | ## Output variables. ##
|
---|
[23802] | 1141 | ## ----------------- ##
|
---|
| 1142 | _ASBOX
|
---|
[8756] | 1143 | echo
|
---|
| 1144 | for ac_var in $ac_subst_vars
|
---|
| 1145 | do
|
---|
[23802] | 1146 | eval ac_val=$`echo $ac_var`
|
---|
| 1147 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[8756] | 1148 | done | sort
|
---|
| 1149 | echo
|
---|
| 1150 |
|
---|
| 1151 | if test -n "$ac_subst_files"; then
|
---|
[23802] | 1152 | cat <<\_ASBOX
|
---|
| 1153 | ## ------------- ##
|
---|
| 1154 | ## Output files. ##
|
---|
| 1155 | ## ------------- ##
|
---|
| 1156 | _ASBOX
|
---|
[8756] | 1157 | echo
|
---|
| 1158 | for ac_var in $ac_subst_files
|
---|
| 1159 | do
|
---|
[23802] | 1160 | eval ac_val=$`echo $ac_var`
|
---|
| 1161 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[8756] | 1162 | done | sort
|
---|
| 1163 | echo
|
---|
| 1164 | fi
|
---|
| 1165 |
|
---|
| 1166 | if test -s confdefs.h; then
|
---|
[23802] | 1167 | cat <<\_ASBOX
|
---|
| 1168 | ## ----------- ##
|
---|
[8756] | 1169 | ## confdefs.h. ##
|
---|
[23802] | 1170 | ## ----------- ##
|
---|
| 1171 | _ASBOX
|
---|
[8756] | 1172 | echo
|
---|
[23802] | 1173 | sed "/^$/d" confdefs.h | sort
|
---|
[8756] | 1174 | echo
|
---|
| 1175 | fi
|
---|
| 1176 | test "$ac_signal" != 0 &&
|
---|
[23802] | 1177 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1178 | echo "$as_me: exit $exit_status"
|
---|
[8756] | 1179 | } >&5
|
---|
[23802] | 1180 | rm -f core *.core &&
|
---|
| 1181 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8756] | 1182 | exit $exit_status
|
---|
[23802] | 1183 | ' 0
|
---|
[8756] | 1184 | for ac_signal in 1 2 13 15; do
|
---|
[23802] | 1185 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[8756] | 1186 | done
|
---|
| 1187 | ac_signal=0
|
---|
| 1188 |
|
---|
| 1189 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[23802] | 1190 | rm -rf conftest* confdefs.h
|
---|
| 1191 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1192 | echo >confdefs.h
|
---|
[8756] | 1193 |
|
---|
| 1194 | # Predefined preprocessor variables.
|
---|
| 1195 |
|
---|
| 1196 | cat >>confdefs.h <<_ACEOF
|
---|
| 1197 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1198 | _ACEOF
|
---|
| 1199 |
|
---|
[23802] | 1200 |
|
---|
[8756] | 1201 | cat >>confdefs.h <<_ACEOF
|
---|
| 1202 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1203 | _ACEOF
|
---|
| 1204 |
|
---|
[23802] | 1205 |
|
---|
[8756] | 1206 | cat >>confdefs.h <<_ACEOF
|
---|
| 1207 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1208 | _ACEOF
|
---|
| 1209 |
|
---|
[23802] | 1210 |
|
---|
[8756] | 1211 | cat >>confdefs.h <<_ACEOF
|
---|
| 1212 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1213 | _ACEOF
|
---|
| 1214 |
|
---|
[23802] | 1215 |
|
---|
[8756] | 1216 | cat >>confdefs.h <<_ACEOF
|
---|
| 1217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1218 | _ACEOF
|
---|
| 1219 |
|
---|
| 1220 |
|
---|
| 1221 | # Let the site file select an alternate cache file if it wants to.
|
---|
[23802] | 1222 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1223 | if test -z "$CONFIG_SITE"; then
|
---|
| 1224 | if test "x$prefix" != xNONE; then
|
---|
| 1225 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1226 | else
|
---|
| 1227 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1228 | fi
|
---|
[562] | 1229 | fi
|
---|
[23802] | 1230 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1231 | if test -r "$ac_site_file"; then
|
---|
| 1232 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1233 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[8756] | 1234 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[23802] | 1235 | . "$ac_site_file"
|
---|
[562] | 1236 | fi
|
---|
| 1237 | done
|
---|
| 1238 |
|
---|
| 1239 | if test -r "$cache_file"; then
|
---|
[23802] | 1240 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1241 | # files actually), so we avoid doing that.
|
---|
| 1242 | if test -f "$cache_file"; then
|
---|
| 1243 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1244 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[8756] | 1245 | case $cache_file in
|
---|
[23802] | 1246 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1247 | *) . ./$cache_file;;
|
---|
[8756] | 1248 | esac
|
---|
| 1249 | fi
|
---|
[562] | 1250 | else
|
---|
[23802] | 1251 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1252 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[8756] | 1253 | >$cache_file
|
---|
[562] | 1254 | fi
|
---|
| 1255 |
|
---|
[8756] | 1256 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1257 | # value.
|
---|
| 1258 | ac_cache_corrupted=false
|
---|
[23802] | 1259 | for ac_var in `(set) 2>&1 |
|
---|
| 1260 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[8756] | 1261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1262 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[23802] | 1263 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1264 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
[8756] | 1265 | case $ac_old_set,$ac_new_set in
|
---|
| 1266 | set,)
|
---|
[23802] | 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1268 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[8756] | 1269 | ac_cache_corrupted=: ;;
|
---|
| 1270 | ,set)
|
---|
[23802] | 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1272 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[8756] | 1273 | ac_cache_corrupted=: ;;
|
---|
| 1274 | ,);;
|
---|
| 1275 | *)
|
---|
| 1276 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[23802] | 1277 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1278 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1279 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1280 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1281 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1282 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1283 | ac_cache_corrupted=:
|
---|
[8756] | 1284 | fi;;
|
---|
| 1285 | esac
|
---|
| 1286 | # Pass precious variables to config.status.
|
---|
| 1287 | if test "$ac_new_set" = set; then
|
---|
| 1288 | case $ac_new_val in
|
---|
[23802] | 1289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1290 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 1291 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1292 | esac
|
---|
| 1293 | case " $ac_configure_args " in
|
---|
| 1294 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[23802] | 1295 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
[8756] | 1296 | esac
|
---|
| 1297 | fi
|
---|
| 1298 | done
|
---|
| 1299 | if $ac_cache_corrupted; then
|
---|
[23802] | 1300 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1301 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1302 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1303 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1304 | { (exit 1); exit 1; }; }
|
---|
[8756] | 1305 | fi
|
---|
| 1306 |
|
---|
[20853] | 1307 | ac_ext=c
|
---|
| 1308 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
[8200] | 1315 |
|
---|
[23802] | 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
| 1323 |
|
---|
| 1324 |
|
---|
| 1325 |
|
---|
| 1326 |
|
---|
| 1327 |
|
---|
| 1328 |
|
---|
| 1329 |
|
---|
| 1330 |
|
---|
| 1331 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1332 |
|
---|
| 1333 |
|
---|
[562] | 1334 | PACKAGE=gsdl
|
---|
[23356] | 1335 | VERSION=2.x-svn
|
---|
[8756] | 1336 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1337 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1338 | _ACEOF
|
---|
[562] | 1339 |
|
---|
[8756] | 1340 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1341 | #define VERSION "$VERSION"
|
---|
[8756] | 1342 | _ACEOF
|
---|
[562] | 1343 |
|
---|
[8200] | 1344 |
|
---|
| 1345 |
|
---|
| 1346 |
|
---|
[18487] | 1347 |
|
---|
[567] | 1348 | USE_FASTCGI=0
|
---|
| 1349 | if test USE_FASTCGI = 1; then
|
---|
[23802] | 1350 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1351 | #define USE_FASTCGI 1
|
---|
| 1352 | _ACEOF
|
---|
[567] | 1353 |
|
---|
[8200] | 1354 |
|
---|
[3631] | 1355 | fi
|
---|
[567] | 1356 |
|
---|
[3631] | 1357 | if test USE_LANGACTION = 1; then
|
---|
[23802] | 1358 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1359 | #define USE_LANGACTION 1
|
---|
| 1360 | _ACEOF
|
---|
[3631] | 1361 |
|
---|
[8200] | 1362 |
|
---|
[567] | 1363 | fi
|
---|
| 1364 |
|
---|
[23802] | 1365 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1366 | if test "${enable_corba+set}" = set; then
|
---|
| 1367 | enableval="$enable_corba"
|
---|
| 1368 | USE_CORBA=$enableval
|
---|
[1860] | 1369 | else
|
---|
[21724] | 1370 | USE_CORBA=no
|
---|
[23802] | 1371 | fi;
|
---|
[21724] | 1372 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
| 1373 | USE_CORBA=1
|
---|
[23802] | 1374 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1375 | #define USE_CORBA
|
---|
| 1376 | _ACEOF
|
---|
[1860] | 1377 |
|
---|
[21724] | 1378 | else
|
---|
| 1379 | USE_CORBA=0
|
---|
| 1380 | fi
|
---|
[8200] | 1381 |
|
---|
| 1382 |
|
---|
[8756] | 1383 |
|
---|
[23802] | 1384 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1385 | if test "${with_micodir+set}" = set; then
|
---|
| 1386 | withval="$with_micodir"
|
---|
| 1387 | MICO_DIR=$withval
|
---|
[1860] | 1388 | else
|
---|
[2471] | 1389 | MICO_DIR="default"
|
---|
[23802] | 1390 | fi;
|
---|
[8756] | 1391 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1392 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1393 | _ACEOF
|
---|
[1860] | 1394 |
|
---|
[8200] | 1395 |
|
---|
| 1396 |
|
---|
[23802] | 1397 | # Check whether --enable-java or --disable-java was given.
|
---|
| 1398 | if test "${enable_java+set}" = set; then
|
---|
| 1399 | enableval="$enable_java"
|
---|
| 1400 | ENABLE_JAVA=$enableval
|
---|
[23356] | 1401 | else
|
---|
| 1402 | ENABLE_JAVA=yes
|
---|
[23802] | 1403 | fi;
|
---|
[23356] | 1404 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 1405 | ENABLE_JAVA=1
|
---|
| 1406 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 1407 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 1408 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 1409 | echo "and JAVA respectively"
|
---|
| 1410 | export JAVA_HOME=
|
---|
| 1411 | fi
|
---|
| 1412 | else
|
---|
| 1413 | ENABLE_JAVA=0
|
---|
| 1414 | fi
|
---|
| 1415 |
|
---|
| 1416 |
|
---|
[23802] | 1417 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1418 | if test "${enable_z3950+set}" = set; then
|
---|
| 1419 | enableval="$enable_z3950"
|
---|
| 1420 | USE_Z3950=$enableval
|
---|
[1938] | 1421 | else
|
---|
[21724] | 1422 | USE_Z3950=no
|
---|
[23802] | 1423 | fi;
|
---|
[21724] | 1424 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
| 1425 | USE_Z3950=1
|
---|
[23802] | 1426 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1427 | #define USE_Z3950
|
---|
| 1428 | _ACEOF
|
---|
[1938] | 1429 |
|
---|
[21724] | 1430 | else
|
---|
| 1431 | USE_Z3950=0
|
---|
[2297] | 1432 | fi
|
---|
[1938] | 1433 |
|
---|
[21724] | 1434 |
|
---|
[23802] | 1435 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1436 | if test "${enable_yaz+set}" = set; then
|
---|
| 1437 | enableval="$enable_yaz"
|
---|
| 1438 | USE_YAZ=$enableval
|
---|
[12492] | 1439 | else
|
---|
[21724] | 1440 | USE_YAZ=yes
|
---|
[23802] | 1441 | fi;
|
---|
[21724] | 1442 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
[12492] | 1443 | USE_YAZ=1
|
---|
[23802] | 1444 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1445 | #define USE_YAZ
|
---|
| 1446 | _ACEOF
|
---|
[8756] | 1447 |
|
---|
[21724] | 1448 | else
|
---|
| 1449 | USE_YAZ=0
|
---|
| 1450 | fi
|
---|
[12492] | 1451 |
|
---|
| 1452 |
|
---|
[23802] | 1453 | # Check whether --enable-wvware or --disable-wvware was given.
|
---|
| 1454 | if test "${enable_wvware+set}" = set; then
|
---|
| 1455 | enableval="$enable_wvware"
|
---|
| 1456 | USE_WVWARE=$enableval
|
---|
[22058] | 1457 | else
|
---|
[23802] | 1458 | USE_WVWARE=yes
|
---|
| 1459 | fi;
|
---|
| 1460 | if test $USE_WVWARE = "yes" -o $USE_WVWARE = "1" ; then
|
---|
| 1461 | USE_WVWARE=1
|
---|
| 1462 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1463 | #define USE_WVWARE
|
---|
| 1464 | _ACEOF
|
---|
| 1465 |
|
---|
| 1466 | else
|
---|
| 1467 | USE_WVWARE=0
|
---|
[22378] | 1468 | fi
|
---|
| 1469 |
|
---|
[23802] | 1470 |
|
---|
| 1471 | # Check whether --enable-jdbm or --disable-jdbm was given.
|
---|
| 1472 | if test "${enable_jdbm+set}" = set; then
|
---|
| 1473 | enableval="$enable_jdbm"
|
---|
| 1474 | USE_JDBM=$enableval
|
---|
| 1475 | else
|
---|
| 1476 | USE_JDBM=yes
|
---|
| 1477 | fi;
|
---|
[23356] | 1478 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
[22058] | 1479 | USE_JDBM=1
|
---|
[23802] | 1480 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1481 | #define USE_JDBM
|
---|
| 1482 | _ACEOF
|
---|
[22058] | 1483 |
|
---|
| 1484 | else
|
---|
| 1485 | USE_JDBM=0
|
---|
| 1486 | fi
|
---|
| 1487 |
|
---|
| 1488 |
|
---|
[23802] | 1489 | # Check whether --enable-gdbm or --disable-gdbm was given.
|
---|
| 1490 | if test "${enable_gdbm+set}" = set; then
|
---|
| 1491 | enableval="$enable_gdbm"
|
---|
| 1492 | USE_GDBM=$enableval
|
---|
[22058] | 1493 | else
|
---|
| 1494 | USE_GDBM=yes
|
---|
[23802] | 1495 | fi;
|
---|
[22058] | 1496 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
| 1497 | USE_GDBM=1
|
---|
[23802] | 1498 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1499 | #define USE_GDBM
|
---|
| 1500 | _ACEOF
|
---|
[22058] | 1501 |
|
---|
| 1502 | else
|
---|
| 1503 | USE_GDBM=0
|
---|
| 1504 | fi
|
---|
| 1505 |
|
---|
| 1506 |
|
---|
[23802] | 1507 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1508 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1509 | enableval="$enable_accentfold"
|
---|
| 1510 | ENABLE_ACCENTFOLD=$enableval
|
---|
[12922] | 1511 | else
|
---|
[21724] | 1512 | ENABLE_ACCENTFOLD=yes
|
---|
[23802] | 1513 | fi;
|
---|
[21724] | 1514 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[12922] | 1515 | ENABLE_ACCENTFOLD=1
|
---|
[23802] | 1516 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1517 | #define ENABLE_ACCENTFOLD
|
---|
| 1518 | _ACEOF
|
---|
[12922] | 1519 |
|
---|
[21724] | 1520 | else
|
---|
| 1521 | ENABLE_ACCENTFOLD=0
|
---|
| 1522 | fi
|
---|
[12922] | 1523 |
|
---|
[15901] | 1524 |
|
---|
[23802] | 1525 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
| 1526 | if test "${enable_sqlite+set}" = set; then
|
---|
| 1527 | enableval="$enable_sqlite"
|
---|
| 1528 | USE_SQLITE=$enableval
|
---|
[16288] | 1529 | else
|
---|
[21724] | 1530 | USE_SQLITE=yes
|
---|
[23802] | 1531 | fi;
|
---|
[21724] | 1532 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
[15794] | 1533 | USE_SQLITE=1
|
---|
[23802] | 1534 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1535 | #define USE_SQLITE
|
---|
| 1536 | _ACEOF
|
---|
[12922] | 1537 |
|
---|
[21724] | 1538 | else
|
---|
| 1539 | USE_SQLITE=0
|
---|
| 1540 | fi
|
---|
[15794] | 1541 |
|
---|
[15901] | 1542 |
|
---|
[24958] | 1543 | # Check whether --enable-rss or --disable-rss was given.
|
---|
| 1544 | if test "${enable_rss+set}" = set; then
|
---|
| 1545 | enableval="$enable_rss"
|
---|
| 1546 | USE_RSS=$enableval
|
---|
| 1547 | else
|
---|
| 1548 | USE_RSS=yes
|
---|
| 1549 | fi;
|
---|
| 1550 | if test $USE_RSS = "yes" -o $USE_RSS = "1" ; then
|
---|
| 1551 | USE_RSS=1
|
---|
| 1552 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1553 | #define USE_RSS
|
---|
| 1554 | _ACEOF
|
---|
| 1555 |
|
---|
| 1556 | else
|
---|
| 1557 | USE_RSS=0
|
---|
| 1558 | fi
|
---|
| 1559 |
|
---|
| 1560 |
|
---|
| 1561 |
|
---|
[21377] | 1562 | if test -d runtime-src; then
|
---|
[23802] | 1563 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
| 1564 | if test "${enable_apache_httpd+set}" = set; then
|
---|
| 1565 | enableval="$enable_apache_httpd"
|
---|
| 1566 | USE_APACHE_HTTPD=$enableval
|
---|
[19263] | 1567 | else
|
---|
[21724] | 1568 | USE_APACHE_HTTPD=no
|
---|
[23802] | 1569 | fi;
|
---|
[21724] | 1570 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
| 1571 | USE_APACHE_HTTPD=1
|
---|
[23802] | 1572 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1573 | #define USE_APACHE_HTTPD
|
---|
| 1574 | _ACEOF
|
---|
[18487] | 1575 |
|
---|
[21724] | 1576 | else
|
---|
| 1577 | USE_APACHE_HTTPD=0
|
---|
| 1578 | fi
|
---|
[18487] | 1579 |
|
---|
[21377] | 1580 | fi
|
---|
[18487] | 1581 |
|
---|
[23802] | 1582 | # Check whether --enable-jni or --disable-jni was given.
|
---|
| 1583 | if test "${enable_jni+set}" = set; then
|
---|
| 1584 | enableval="$enable_jni"
|
---|
| 1585 | ENABLE_JNI=$enableval
|
---|
[21366] | 1586 | else
|
---|
| 1587 | ENABLE_JNI=no
|
---|
[23802] | 1588 | fi;
|
---|
[23356] | 1589 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_JNI = "yes" -o $ENABLE_JNI = "1" \) ; then
|
---|
[21366] | 1590 | ENABLE_JNI=1
|
---|
[23802] | 1591 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1592 | #define ENABLE_JNI
|
---|
| 1593 | _ACEOF
|
---|
[18487] | 1594 |
|
---|
[21366] | 1595 | else
|
---|
| 1596 | ENABLE_JNI=0
|
---|
| 1597 | fi
|
---|
| 1598 |
|
---|
| 1599 |
|
---|
[23802] | 1600 | # Check whether --enable-mg or --disable-mg was given.
|
---|
| 1601 | if test "${enable_mg+set}" = set; then
|
---|
| 1602 | enableval="$enable_mg"
|
---|
| 1603 | ENABLE_MG=$enableval
|
---|
[21330] | 1604 | else
|
---|
| 1605 | ENABLE_MG=yes
|
---|
[23802] | 1606 | fi;
|
---|
[21330] | 1607 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 1608 | ENABLE_MG=1
|
---|
[23802] | 1609 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1610 | #define ENABLE_MG
|
---|
| 1611 | _ACEOF
|
---|
[21330] | 1612 |
|
---|
| 1613 | else
|
---|
| 1614 | ENABLE_MG=0
|
---|
| 1615 | fi
|
---|
| 1616 |
|
---|
| 1617 |
|
---|
| 1618 |
|
---|
[23802] | 1619 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
| 1620 | if test "${enable_mgpp+set}" = set; then
|
---|
| 1621 | enableval="$enable_mgpp"
|
---|
| 1622 | ENABLE_MGPP=$enableval
|
---|
[21330] | 1623 | else
|
---|
| 1624 | ENABLE_MGPP=yes
|
---|
[23802] | 1625 | fi;
|
---|
[21330] | 1626 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 1627 | ENABLE_MGPP=1
|
---|
[23802] | 1628 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1629 | #define ENABLE_MGPP
|
---|
| 1630 | _ACEOF
|
---|
[21330] | 1631 |
|
---|
| 1632 | else
|
---|
| 1633 | ENABLE_MGPP=0
|
---|
| 1634 | fi
|
---|
| 1635 |
|
---|
| 1636 |
|
---|
[23802] | 1637 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
| 1638 | if test "${enable_lucene+set}" = set; then
|
---|
| 1639 | enableval="$enable_lucene"
|
---|
| 1640 | ENABLE_LUCENE=$enableval
|
---|
[21330] | 1641 | else
|
---|
| 1642 | ENABLE_LUCENE=yes
|
---|
[23802] | 1643 | fi;
|
---|
[23356] | 1644 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
[21330] | 1645 | ENABLE_LUCENE=1
|
---|
[23802] | 1646 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1647 | #define ENABLE_LUCENE
|
---|
| 1648 | _ACEOF
|
---|
[21330] | 1649 |
|
---|
| 1650 | else
|
---|
| 1651 | ENABLE_LUCENE=0
|
---|
| 1652 | fi
|
---|
| 1653 |
|
---|
| 1654 |
|
---|
| 1655 |
|
---|
[14169] | 1656 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 1657 |
|
---|
[1722] | 1658 | if test -z "$CFLAGS"; then
|
---|
[794] | 1659 | CFLAGS=-O2
|
---|
[1722] | 1660 | fi
|
---|
[576] | 1661 |
|
---|
| 1662 |
|
---|
[15551] | 1663 |
|
---|
[8756] | 1664 | ac_ext=c
|
---|
| 1665 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1666 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1667 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1668 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1669 | if test -n "$ac_tool_prefix"; then
|
---|
| 1670 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1671 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[23802] | 1672 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1674 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1675 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 1676 | else
|
---|
| 1677 | if test -n "$CC"; then
|
---|
| 1678 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1679 | else
|
---|
| 1680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1681 | for as_dir in $PATH
|
---|
| 1682 | do
|
---|
| 1683 | IFS=$as_save_IFS
|
---|
| 1684 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 1685 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1687 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[23802] | 1688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 1689 | break 2
|
---|
| 1690 | fi
|
---|
| 1691 | done
|
---|
[23802] | 1692 | done
|
---|
[8756] | 1693 |
|
---|
| 1694 | fi
|
---|
| 1695 | fi
|
---|
| 1696 | CC=$ac_cv_prog_CC
|
---|
| 1697 | if test -n "$CC"; then
|
---|
[23802] | 1698 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1699 | echo "${ECHO_T}$CC" >&6
|
---|
[8756] | 1700 | else
|
---|
[23802] | 1701 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1702 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 1703 | fi
|
---|
| 1704 |
|
---|
| 1705 | fi
|
---|
| 1706 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1707 | ac_ct_CC=$CC
|
---|
| 1708 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 1709 | set dummy gcc; ac_word=$2
|
---|
[23802] | 1710 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1712 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1713 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1714 | else
|
---|
[8756] | 1715 | if test -n "$ac_ct_CC"; then
|
---|
| 1716 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1717 | else
|
---|
| 1718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1719 | for as_dir in $PATH
|
---|
| 1720 | do
|
---|
| 1721 | IFS=$as_save_IFS
|
---|
| 1722 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 1723 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1725 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[23802] | 1726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 1727 | break 2
|
---|
| 1728 | fi
|
---|
| 1729 | done
|
---|
[23802] | 1730 | done
|
---|
[8756] | 1731 |
|
---|
| 1732 | fi
|
---|
| 1733 | fi
|
---|
| 1734 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1735 | if test -n "$ac_ct_CC"; then
|
---|
[23802] | 1736 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1737 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[8756] | 1738 | else
|
---|
[23802] | 1739 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1740 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 1741 | fi
|
---|
| 1742 |
|
---|
[23802] | 1743 | CC=$ac_ct_CC
|
---|
[8756] | 1744 | else
|
---|
| 1745 | CC="$ac_cv_prog_CC"
|
---|
| 1746 | fi
|
---|
| 1747 |
|
---|
| 1748 | if test -z "$CC"; then
|
---|
[23802] | 1749 | if test -n "$ac_tool_prefix"; then
|
---|
| 1750 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[8756] | 1751 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[23802] | 1752 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1754 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1755 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 1756 | else
|
---|
[562] | 1757 | if test -n "$CC"; then
|
---|
| 1758 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1759 | else
|
---|
[8756] | 1760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1761 | for as_dir in $PATH
|
---|
| 1762 | do
|
---|
| 1763 | IFS=$as_save_IFS
|
---|
| 1764 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 1765 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1767 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[23802] | 1768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 1769 | break 2
|
---|
| 1770 | fi
|
---|
| 1771 | done
|
---|
[23802] | 1772 | done
|
---|
[8756] | 1773 |
|
---|
[562] | 1774 | fi
|
---|
| 1775 | fi
|
---|
[8756] | 1776 | CC=$ac_cv_prog_CC
|
---|
[562] | 1777 | if test -n "$CC"; then
|
---|
[23802] | 1778 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1779 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1780 | else
|
---|
[23802] | 1781 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1782 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1783 | fi
|
---|
| 1784 |
|
---|
[23802] | 1785 | fi
|
---|
| 1786 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1787 | ac_ct_CC=$CC
|
---|
| 1788 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1789 | set dummy cc; ac_word=$2
|
---|
| 1790 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1792 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1793 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1794 | else
|
---|
| 1795 | if test -n "$ac_ct_CC"; then
|
---|
| 1796 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1797 | else
|
---|
| 1798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1799 | for as_dir in $PATH
|
---|
| 1800 | do
|
---|
| 1801 | IFS=$as_save_IFS
|
---|
| 1802 | test -z "$as_dir" && as_dir=.
|
---|
| 1803 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1804 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1805 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1806 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1807 | break 2
|
---|
| 1808 | fi
|
---|
| 1809 | done
|
---|
| 1810 | done
|
---|
[22378] | 1811 |
|
---|
[8756] | 1812 | fi
|
---|
[23802] | 1813 | fi
|
---|
| 1814 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1815 | if test -n "$ac_ct_CC"; then
|
---|
| 1816 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1817 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1818 | else
|
---|
| 1819 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1820 | echo "${ECHO_T}no" >&6
|
---|
| 1821 | fi
|
---|
| 1822 |
|
---|
| 1823 | CC=$ac_ct_CC
|
---|
| 1824 | else
|
---|
| 1825 | CC="$ac_cv_prog_CC"
|
---|
| 1826 | fi
|
---|
| 1827 |
|
---|
| 1828 | fi
|
---|
[562] | 1829 | if test -z "$CC"; then
|
---|
| 1830 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1831 | set dummy cc; ac_word=$2
|
---|
[23802] | 1832 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1834 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1835 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1836 | else
|
---|
| 1837 | if test -n "$CC"; then
|
---|
| 1838 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1839 | else
|
---|
| 1840 | ac_prog_rejected=no
|
---|
[8756] | 1841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1842 | for as_dir in $PATH
|
---|
| 1843 | do
|
---|
| 1844 | IFS=$as_save_IFS
|
---|
| 1845 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 1846 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1847 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1848 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1849 | ac_prog_rejected=yes
|
---|
| 1850 | continue
|
---|
| 1851 | fi
|
---|
| 1852 | ac_cv_prog_CC="cc"
|
---|
[23802] | 1853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 1854 | break 2
|
---|
| 1855 | fi
|
---|
| 1856 | done
|
---|
[23802] | 1857 | done
|
---|
[8756] | 1858 |
|
---|
[562] | 1859 | if test $ac_prog_rejected = yes; then
|
---|
| 1860 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1861 | set dummy $ac_cv_prog_CC
|
---|
| 1862 | shift
|
---|
[8756] | 1863 | if test $# != 0; then
|
---|
[562] | 1864 | # We chose a different compiler from the bogus one.
|
---|
| 1865 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1866 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1867 | shift
|
---|
[8756] | 1868 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 1869 | fi
|
---|
| 1870 | fi
|
---|
| 1871 | fi
|
---|
| 1872 | fi
|
---|
[8756] | 1873 | CC=$ac_cv_prog_CC
|
---|
[562] | 1874 | if test -n "$CC"; then
|
---|
[23802] | 1875 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1876 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1877 | else
|
---|
[23802] | 1878 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1879 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1880 | fi
|
---|
| 1881 |
|
---|
[8756] | 1882 | fi
|
---|
| 1883 | if test -z "$CC"; then
|
---|
| 1884 | if test -n "$ac_tool_prefix"; then
|
---|
[23802] | 1885 | for ac_prog in cl
|
---|
[8756] | 1886 | do
|
---|
| 1887 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1888 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[23802] | 1889 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1891 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1892 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1893 | else
|
---|
| 1894 | if test -n "$CC"; then
|
---|
| 1895 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1896 | else
|
---|
[8756] | 1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1898 | for as_dir in $PATH
|
---|
| 1899 | do
|
---|
| 1900 | IFS=$as_save_IFS
|
---|
| 1901 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 1902 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1904 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[23802] | 1905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 1906 | break 2
|
---|
| 1907 | fi
|
---|
| 1908 | done
|
---|
[23802] | 1909 | done
|
---|
[8756] | 1910 |
|
---|
[562] | 1911 | fi
|
---|
| 1912 | fi
|
---|
[8756] | 1913 | CC=$ac_cv_prog_CC
|
---|
[562] | 1914 | if test -n "$CC"; then
|
---|
[23802] | 1915 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1916 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1917 | else
|
---|
[23802] | 1918 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1919 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1920 | fi
|
---|
[8756] | 1921 |
|
---|
| 1922 | test -n "$CC" && break
|
---|
| 1923 | done
|
---|
| 1924 | fi
|
---|
| 1925 | if test -z "$CC"; then
|
---|
| 1926 | ac_ct_CC=$CC
|
---|
[23802] | 1927 | for ac_prog in cl
|
---|
[8756] | 1928 | do
|
---|
| 1929 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1930 | set dummy $ac_prog; ac_word=$2
|
---|
[23802] | 1931 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1933 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1934 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 1935 | else
|
---|
| 1936 | if test -n "$ac_ct_CC"; then
|
---|
| 1937 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1938 | else
|
---|
| 1939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1940 | for as_dir in $PATH
|
---|
| 1941 | do
|
---|
| 1942 | IFS=$as_save_IFS
|
---|
| 1943 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 1944 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1946 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[23802] | 1947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 1948 | break 2
|
---|
[8200] | 1949 | fi
|
---|
[8756] | 1950 | done
|
---|
[23802] | 1951 | done
|
---|
[8756] | 1952 |
|
---|
[562] | 1953 | fi
|
---|
[8756] | 1954 | fi
|
---|
| 1955 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1956 | if test -n "$ac_ct_CC"; then
|
---|
[23802] | 1957 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1958 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[8756] | 1959 | else
|
---|
[23802] | 1960 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1961 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 1962 | fi
|
---|
[562] | 1963 |
|
---|
[8756] | 1964 | test -n "$ac_ct_CC" && break
|
---|
| 1965 | done
|
---|
[562] | 1966 |
|
---|
[23802] | 1967 | CC=$ac_ct_CC
|
---|
[8756] | 1968 | fi
|
---|
[562] | 1969 |
|
---|
[8756] | 1970 | fi
|
---|
[562] | 1971 |
|
---|
| 1972 |
|
---|
[23802] | 1973 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1974 | See \`config.log' for more details." >&5
|
---|
| 1975 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1976 | See \`config.log' for more details." >&2;}
|
---|
| 1977 | { (exit 1); exit 1; }; }
|
---|
[8756] | 1978 |
|
---|
| 1979 | # Provide some information about the compiler.
|
---|
[23802] | 1980 | echo "$as_me:$LINENO:" \
|
---|
| 1981 | "checking for C compiler version" >&5
|
---|
| 1982 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1983 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1984 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[8756] | 1985 | ac_status=$?
|
---|
[23802] | 1986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1987 | (exit $ac_status); }
|
---|
| 1988 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1989 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1990 | ac_status=$?
|
---|
| 1991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1992 | (exit $ac_status); }
|
---|
| 1993 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1994 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1995 | ac_status=$?
|
---|
| 1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1997 | (exit $ac_status); }
|
---|
[8756] | 1998 |
|
---|
[23802] | 1999 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2000 | /* confdefs.h. */
|
---|
| 2001 | _ACEOF
|
---|
| 2002 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2003 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2004 | /* end confdefs.h. */
|
---|
| 2005 |
|
---|
| 2006 | int
|
---|
| 2007 | main ()
|
---|
| 2008 | {
|
---|
| 2009 |
|
---|
| 2010 | ;
|
---|
| 2011 | return 0;
|
---|
| 2012 | }
|
---|
| 2013 | _ACEOF
|
---|
| 2014 | ac_clean_files_save=$ac_clean_files
|
---|
[23802] | 2015 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[8756] | 2016 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 2017 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 2018 | # of exeext.
|
---|
[23802] | 2019 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 2020 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 2021 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 2022 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 2023 | (eval $ac_link_default) 2>&5
|
---|
| 2024 | ac_status=$?
|
---|
| 2025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2026 | (exit $ac_status); }; then
|
---|
| 2027 | # Find the output, starting from the most likely. This scheme is
|
---|
| 2028 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 2029 | # resort.
|
---|
[20853] | 2030 |
|
---|
[23802] | 2031 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 2032 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 2033 | ac_cv_exeext=
|
---|
| 2034 | # b.out is created by i960 compilers.
|
---|
| 2035 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
[8756] | 2036 | do
|
---|
| 2037 | test -f "$ac_file" || continue
|
---|
| 2038 | case $ac_file in
|
---|
[23802] | 2039 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
[8756] | 2040 | ;;
|
---|
[23802] | 2041 | conftest.$ac_ext )
|
---|
| 2042 | # This is the source file.
|
---|
| 2043 | ;;
|
---|
[8756] | 2044 | [ab].out )
|
---|
| 2045 | # We found the default executable, but exeext='' is most
|
---|
| 2046 | # certainly right.
|
---|
| 2047 | break;;
|
---|
| 2048 | *.* )
|
---|
[23802] | 2049 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2050 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 2051 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 2052 | # maintain Libtool? --akim.
|
---|
| 2053 | export ac_cv_exeext
|
---|
[8756] | 2054 | break;;
|
---|
| 2055 | * )
|
---|
| 2056 | break;;
|
---|
| 2057 | esac
|
---|
| 2058 | done
|
---|
| 2059 | else
|
---|
[23802] | 2060 | echo "$as_me: failed program was:" >&5
|
---|
[8756] | 2061 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2062 |
|
---|
[23802] | 2063 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 2064 | See \`config.log' for more details." >&5
|
---|
| 2065 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 2066 | See \`config.log' for more details." >&2;}
|
---|
| 2067 | { (exit 77); exit 77; }; }
|
---|
[8756] | 2068 | fi
|
---|
[23802] | 2069 |
|
---|
[8756] | 2070 | ac_exeext=$ac_cv_exeext
|
---|
[23802] | 2071 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 2072 | echo "${ECHO_T}$ac_file" >&6
|
---|
[8756] | 2073 |
|
---|
[23802] | 2074 | # Check the compiler produces executables we can run. If not, either
|
---|
| 2075 | # the compiler is broken, or we cross compile.
|
---|
| 2076 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 2077 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 2078 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 2079 | # If not cross compiling, check that we can run a simple program.
|
---|
| 2080 | if test "$cross_compiling" != yes; then
|
---|
| 2081 | if { ac_try='./$ac_file'
|
---|
| 2082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2083 | (eval $ac_try) 2>&5
|
---|
| 2084 | ac_status=$?
|
---|
| 2085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2086 | (exit $ac_status); }; }; then
|
---|
| 2087 | cross_compiling=no
|
---|
| 2088 | else
|
---|
| 2089 | if test "$cross_compiling" = maybe; then
|
---|
| 2090 | cross_compiling=yes
|
---|
| 2091 | else
|
---|
| 2092 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 2093 | If you meant to cross compile, use \`--host'.
|
---|
| 2094 | See \`config.log' for more details." >&5
|
---|
| 2095 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 2096 | If you meant to cross compile, use \`--host'.
|
---|
| 2097 | See \`config.log' for more details." >&2;}
|
---|
| 2098 | { (exit 1); exit 1; }; }
|
---|
| 2099 | fi
|
---|
| 2100 | fi
|
---|
| 2101 | fi
|
---|
| 2102 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2103 | echo "${ECHO_T}yes" >&6
|
---|
| 2104 |
|
---|
| 2105 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[8756] | 2106 | ac_clean_files=$ac_clean_files_save
|
---|
[23802] | 2107 | # Check the compiler produces executables we can run. If not, either
|
---|
| 2108 | # the compiler is broken, or we cross compile.
|
---|
| 2109 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 2110 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 2111 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 2112 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 2113 |
|
---|
| 2114 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 2115 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 2116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 2117 | (eval $ac_link) 2>&5
|
---|
[8756] | 2118 | ac_status=$?
|
---|
[23802] | 2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2120 | (exit $ac_status); }; then
|
---|
[8756] | 2121 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2122 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2123 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2124 | # `rm'.
|
---|
| 2125 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2126 | test -f "$ac_file" || continue
|
---|
| 2127 | case $ac_file in
|
---|
[23802] | 2128 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[8756] | 2129 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[23802] | 2130 | export ac_cv_exeext
|
---|
[8756] | 2131 | break;;
|
---|
| 2132 | * ) break;;
|
---|
| 2133 | esac
|
---|
| 2134 | done
|
---|
| 2135 | else
|
---|
[23802] | 2136 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2137 | See \`config.log' for more details." >&5
|
---|
| 2138 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2139 | See \`config.log' for more details." >&2;}
|
---|
| 2140 | { (exit 1); exit 1; }; }
|
---|
[562] | 2141 | fi
|
---|
| 2142 |
|
---|
[23802] | 2143 | rm -f conftest$ac_cv_exeext
|
---|
| 2144 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2145 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 2146 |
|
---|
[8756] | 2147 | rm -f conftest.$ac_ext
|
---|
| 2148 | EXEEXT=$ac_cv_exeext
|
---|
| 2149 | ac_exeext=$EXEEXT
|
---|
[23802] | 2150 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2151 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 2152 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2153 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2154 | else
|
---|
| 2155 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2156 | /* confdefs.h. */
|
---|
[22378] | 2157 | _ACEOF
|
---|
[23802] | 2158 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2159 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2160 | /* end confdefs.h. */
|
---|
| 2161 |
|
---|
| 2162 | int
|
---|
| 2163 | main ()
|
---|
| 2164 | {
|
---|
| 2165 |
|
---|
| 2166 | ;
|
---|
| 2167 | return 0;
|
---|
| 2168 | }
|
---|
| 2169 | _ACEOF
|
---|
| 2170 | rm -f conftest.o conftest.obj
|
---|
[23802] | 2171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2172 | (eval $ac_compile) 2>&5
|
---|
[8756] | 2173 | ac_status=$?
|
---|
[23802] | 2174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2175 | (exit $ac_status); }; then
|
---|
| 2176 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
[8756] | 2177 | case $ac_file in
|
---|
[23802] | 2178 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[8756] | 2179 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2180 | break;;
|
---|
| 2181 | esac
|
---|
| 2182 | done
|
---|
[562] | 2183 | else
|
---|
[23802] | 2184 | echo "$as_me: failed program was:" >&5
|
---|
[8756] | 2185 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2186 |
|
---|
[23802] | 2187 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2188 | See \`config.log' for more details." >&5
|
---|
| 2189 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2190 | See \`config.log' for more details." >&2;}
|
---|
| 2191 | { (exit 1); exit 1; }; }
|
---|
[562] | 2192 | fi
|
---|
[23802] | 2193 |
|
---|
[8756] | 2194 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 2195 | fi
|
---|
[23802] | 2196 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2197 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
[8756] | 2198 | OBJEXT=$ac_cv_objext
|
---|
| 2199 | ac_objext=$OBJEXT
|
---|
[23802] | 2200 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2201 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2202 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2203 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2204 | else
|
---|
[23802] | 2205 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2206 | /* confdefs.h. */
|
---|
| 2207 | _ACEOF
|
---|
| 2208 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2209 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2210 | /* end confdefs.h. */
|
---|
[562] | 2211 |
|
---|
[8756] | 2212 | int
|
---|
| 2213 | main ()
|
---|
| 2214 | {
|
---|
| 2215 | #ifndef __GNUC__
|
---|
| 2216 | choke me
|
---|
| 2217 | #endif
|
---|
[562] | 2218 |
|
---|
[8756] | 2219 | ;
|
---|
| 2220 | return 0;
|
---|
| 2221 | }
|
---|
| 2222 | _ACEOF
|
---|
[23802] | 2223 | rm -f conftest.$ac_objext
|
---|
| 2224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2225 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2226 | ac_status=$?
|
---|
| 2227 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2228 | rm -f conftest.er1
|
---|
| 2229 | cat conftest.err >&5
|
---|
| 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2231 | (exit $ac_status); } &&
|
---|
| 2232 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2233 | || test ! -s conftest.err'
|
---|
| 2234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2235 | (eval $ac_try) 2>&5
|
---|
| 2236 | ac_status=$?
|
---|
| 2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2238 | (exit $ac_status); }; } &&
|
---|
| 2239 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2241 | (eval $ac_try) 2>&5
|
---|
| 2242 | ac_status=$?
|
---|
| 2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2244 | (exit $ac_status); }; }; then
|
---|
[8756] | 2245 | ac_compiler_gnu=yes
|
---|
[562] | 2246 | else
|
---|
[23802] | 2247 | echo "$as_me: failed program was:" >&5
|
---|
| 2248 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2249 |
|
---|
| 2250 | ac_compiler_gnu=no
|
---|
[562] | 2251 | fi
|
---|
[23802] | 2252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2253 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 2254 |
|
---|
[8756] | 2255 | fi
|
---|
[23802] | 2256 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2257 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2258 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[8756] | 2259 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2260 | ac_save_CFLAGS=$CFLAGS
|
---|
[23802] | 2261 | CFLAGS="-g"
|
---|
| 2262 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2263 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2264 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2265 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2266 | else
|
---|
[23802] | 2267 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2268 | /* confdefs.h. */
|
---|
| 2269 | _ACEOF
|
---|
| 2270 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2271 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2272 | /* end confdefs.h. */
|
---|
| 2273 |
|
---|
| 2274 | int
|
---|
| 2275 | main ()
|
---|
| 2276 | {
|
---|
| 2277 |
|
---|
| 2278 | ;
|
---|
| 2279 | return 0;
|
---|
| 2280 | }
|
---|
| 2281 | _ACEOF
|
---|
[23802] | 2282 | rm -f conftest.$ac_objext
|
---|
| 2283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2284 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2285 | ac_status=$?
|
---|
| 2286 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2287 | rm -f conftest.er1
|
---|
| 2288 | cat conftest.err >&5
|
---|
| 2289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2290 | (exit $ac_status); } &&
|
---|
| 2291 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2292 | || test ! -s conftest.err'
|
---|
| 2293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2294 | (eval $ac_try) 2>&5
|
---|
| 2295 | ac_status=$?
|
---|
| 2296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2297 | (exit $ac_status); }; } &&
|
---|
| 2298 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2300 | (eval $ac_try) 2>&5
|
---|
| 2301 | ac_status=$?
|
---|
| 2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2303 | (exit $ac_status); }; }; then
|
---|
[562] | 2304 | ac_cv_prog_cc_g=yes
|
---|
| 2305 | else
|
---|
[23802] | 2306 | echo "$as_me: failed program was:" >&5
|
---|
| 2307 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2308 |
|
---|
[23802] | 2309 | ac_cv_prog_cc_g=no
|
---|
[562] | 2310 | fi
|
---|
[23802] | 2311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2312 | fi
|
---|
[23802] | 2313 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2314 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[562] | 2315 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2316 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2317 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2318 | if test "$GCC" = yes; then
|
---|
| 2319 | CFLAGS="-g -O2"
|
---|
| 2320 | else
|
---|
| 2321 | CFLAGS="-g"
|
---|
| 2322 | fi
|
---|
| 2323 | else
|
---|
| 2324 | if test "$GCC" = yes; then
|
---|
| 2325 | CFLAGS="-O2"
|
---|
| 2326 | else
|
---|
| 2327 | CFLAGS=
|
---|
| 2328 | fi
|
---|
| 2329 | fi
|
---|
[23802] | 2330 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2331 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2332 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2333 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2334 | else
|
---|
[23802] | 2335 | ac_cv_prog_cc_stdc=no
|
---|
[8756] | 2336 | ac_save_CC=$CC
|
---|
[23802] | 2337 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2338 | /* confdefs.h. */
|
---|
| 2339 | _ACEOF
|
---|
| 2340 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2341 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2342 | /* end confdefs.h. */
|
---|
| 2343 | #include <stdarg.h>
|
---|
| 2344 | #include <stdio.h>
|
---|
| 2345 | #include <sys/types.h>
|
---|
| 2346 | #include <sys/stat.h>
|
---|
| 2347 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2348 | struct buf { int x; };
|
---|
| 2349 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2350 | static char *e (p, i)
|
---|
| 2351 | char **p;
|
---|
| 2352 | int i;
|
---|
| 2353 | {
|
---|
| 2354 | return p[i];
|
---|
| 2355 | }
|
---|
| 2356 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2357 | {
|
---|
| 2358 | char *s;
|
---|
| 2359 | va_list v;
|
---|
| 2360 | va_start (v,p);
|
---|
| 2361 | s = g (p, va_arg (v,int));
|
---|
| 2362 | va_end (v);
|
---|
| 2363 | return s;
|
---|
| 2364 | }
|
---|
[8200] | 2365 |
|
---|
[8756] | 2366 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2367 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2368 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[23802] | 2369 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
[8756] | 2370 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2371 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[23802] | 2372 | that's true only with -std1. */
|
---|
[8756] | 2373 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2374 |
|
---|
| 2375 | int test (int i, double x);
|
---|
| 2376 | struct s1 {int (*f) (int a);};
|
---|
| 2377 | struct s2 {int (*f) (double a);};
|
---|
| 2378 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2379 | int argc;
|
---|
| 2380 | char **argv;
|
---|
| 2381 | int
|
---|
| 2382 | main ()
|
---|
| 2383 | {
|
---|
| 2384 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2385 | ;
|
---|
| 2386 | return 0;
|
---|
| 2387 | }
|
---|
| 2388 | _ACEOF
|
---|
[23802] | 2389 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2390 | # breaks some systems' header files.
|
---|
| 2391 | # AIX -qlanglvl=ansi
|
---|
| 2392 | # Ultrix and OSF/1 -std1
|
---|
| 2393 | # HP-UX 10.20 and later -Ae
|
---|
| 2394 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2395 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2396 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 2397 | do
|
---|
[8756] | 2398 | CC="$ac_save_CC $ac_arg"
|
---|
[23802] | 2399 | rm -f conftest.$ac_objext
|
---|
| 2400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2401 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2402 | ac_status=$?
|
---|
| 2403 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2404 | rm -f conftest.er1
|
---|
| 2405 | cat conftest.err >&5
|
---|
| 2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2407 | (exit $ac_status); } &&
|
---|
| 2408 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2409 | || test ! -s conftest.err'
|
---|
| 2410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2411 | (eval $ac_try) 2>&5
|
---|
| 2412 | ac_status=$?
|
---|
| 2413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2414 | (exit $ac_status); }; } &&
|
---|
| 2415 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2417 | (eval $ac_try) 2>&5
|
---|
| 2418 | ac_status=$?
|
---|
| 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2420 | (exit $ac_status); }; }; then
|
---|
| 2421 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2422 | break
|
---|
| 2423 | else
|
---|
| 2424 | echo "$as_me: failed program was:" >&5
|
---|
| 2425 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2426 |
|
---|
[562] | 2427 | fi
|
---|
[23802] | 2428 | rm -f conftest.err conftest.$ac_objext
|
---|
[8756] | 2429 | done
|
---|
[23802] | 2430 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
[8756] | 2431 | CC=$ac_save_CC
|
---|
| 2432 |
|
---|
[562] | 2433 | fi
|
---|
[23802] | 2434 |
|
---|
| 2435 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2436 | x|xno)
|
---|
| 2437 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2438 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
[8756] | 2439 | *)
|
---|
[23802] | 2440 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2441 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2442 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
[8756] | 2443 | esac
|
---|
| 2444 |
|
---|
[23802] | 2445 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2446 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2447 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2448 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2449 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2450 | #ifndef __cplusplus
|
---|
| 2451 | choke me
|
---|
| 2452 | #endif
|
---|
| 2453 | _ACEOF
|
---|
| 2454 | rm -f conftest.$ac_objext
|
---|
| 2455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2456 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2457 | ac_status=$?
|
---|
| 2458 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2459 | rm -f conftest.er1
|
---|
| 2460 | cat conftest.err >&5
|
---|
| 2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2462 | (exit $ac_status); } &&
|
---|
| 2463 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2464 | || test ! -s conftest.err'
|
---|
| 2465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2466 | (eval $ac_try) 2>&5
|
---|
| 2467 | ac_status=$?
|
---|
| 2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2469 | (exit $ac_status); }; } &&
|
---|
| 2470 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2472 | (eval $ac_try) 2>&5
|
---|
| 2473 | ac_status=$?
|
---|
| 2474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2475 | (exit $ac_status); }; }; then
|
---|
| 2476 | for ac_declaration in \
|
---|
| 2477 | '' \
|
---|
| 2478 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2479 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2480 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2481 | 'extern "C" void exit (int);' \
|
---|
| 2482 | 'void exit (int);'
|
---|
| 2483 | do
|
---|
| 2484 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2485 | /* confdefs.h. */
|
---|
| 2486 | _ACEOF
|
---|
| 2487 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2488 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2489 | /* end confdefs.h. */
|
---|
| 2490 | $ac_declaration
|
---|
| 2491 | #include <stdlib.h>
|
---|
| 2492 | int
|
---|
| 2493 | main ()
|
---|
| 2494 | {
|
---|
| 2495 | exit (42);
|
---|
| 2496 | ;
|
---|
| 2497 | return 0;
|
---|
| 2498 | }
|
---|
| 2499 | _ACEOF
|
---|
| 2500 | rm -f conftest.$ac_objext
|
---|
| 2501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2502 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2503 | ac_status=$?
|
---|
| 2504 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2505 | rm -f conftest.er1
|
---|
| 2506 | cat conftest.err >&5
|
---|
| 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2508 | (exit $ac_status); } &&
|
---|
| 2509 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2510 | || test ! -s conftest.err'
|
---|
| 2511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2512 | (eval $ac_try) 2>&5
|
---|
| 2513 | ac_status=$?
|
---|
| 2514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2515 | (exit $ac_status); }; } &&
|
---|
| 2516 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2518 | (eval $ac_try) 2>&5
|
---|
| 2519 | ac_status=$?
|
---|
| 2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2521 | (exit $ac_status); }; }; then
|
---|
| 2522 | :
|
---|
| 2523 | else
|
---|
| 2524 | echo "$as_me: failed program was:" >&5
|
---|
| 2525 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2526 |
|
---|
| 2527 | continue
|
---|
[20853] | 2528 | fi
|
---|
[23802] | 2529 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2530 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2531 | /* confdefs.h. */
|
---|
| 2532 | _ACEOF
|
---|
| 2533 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2534 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2535 | /* end confdefs.h. */
|
---|
| 2536 | $ac_declaration
|
---|
| 2537 | int
|
---|
| 2538 | main ()
|
---|
| 2539 | {
|
---|
| 2540 | exit (42);
|
---|
| 2541 | ;
|
---|
| 2542 | return 0;
|
---|
| 2543 | }
|
---|
| 2544 | _ACEOF
|
---|
| 2545 | rm -f conftest.$ac_objext
|
---|
| 2546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2547 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2548 | ac_status=$?
|
---|
| 2549 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2550 | rm -f conftest.er1
|
---|
| 2551 | cat conftest.err >&5
|
---|
| 2552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2553 | (exit $ac_status); } &&
|
---|
| 2554 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2555 | || test ! -s conftest.err'
|
---|
| 2556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2557 | (eval $ac_try) 2>&5
|
---|
| 2558 | ac_status=$?
|
---|
| 2559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2560 | (exit $ac_status); }; } &&
|
---|
| 2561 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2563 | (eval $ac_try) 2>&5
|
---|
| 2564 | ac_status=$?
|
---|
| 2565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2566 | (exit $ac_status); }; }; then
|
---|
| 2567 | break
|
---|
| 2568 | else
|
---|
| 2569 | echo "$as_me: failed program was:" >&5
|
---|
| 2570 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[20853] | 2571 |
|
---|
[23802] | 2572 | fi
|
---|
| 2573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2574 | done
|
---|
| 2575 | rm -f conftest*
|
---|
| 2576 | if test -n "$ac_declaration"; then
|
---|
| 2577 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2578 | echo $ac_declaration >>confdefs.h
|
---|
| 2579 | echo '#endif' >>confdefs.h
|
---|
| 2580 | fi
|
---|
| 2581 |
|
---|
| 2582 | else
|
---|
| 2583 | echo "$as_me: failed program was:" >&5
|
---|
| 2584 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2585 |
|
---|
| 2586 | fi
|
---|
| 2587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2588 | ac_ext=c
|
---|
| 2589 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2590 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2591 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2592 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 2593 |
|
---|
[23802] | 2594 | ac_ext=cc
|
---|
[8200] | 2595 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 2596 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2597 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2598 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[23802] | 2599 | if test -n "$ac_tool_prefix"; then
|
---|
| 2600 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8756] | 2601 | do
|
---|
| 2602 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2603 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[23802] | 2604 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2606 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2607 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2608 | else
|
---|
| 2609 | if test -n "$CXX"; then
|
---|
| 2610 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2611 | else
|
---|
| 2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2613 | for as_dir in $PATH
|
---|
| 2614 | do
|
---|
| 2615 | IFS=$as_save_IFS
|
---|
| 2616 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2617 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 2619 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[23802] | 2620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2621 | break 2
|
---|
| 2622 | fi
|
---|
| 2623 | done
|
---|
[23802] | 2624 | done
|
---|
[8200] | 2625 |
|
---|
[8756] | 2626 | fi
|
---|
| 2627 | fi
|
---|
| 2628 | CXX=$ac_cv_prog_CXX
|
---|
| 2629 | if test -n "$CXX"; then
|
---|
[23802] | 2630 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2631 | echo "${ECHO_T}$CXX" >&6
|
---|
[8756] | 2632 | else
|
---|
[23802] | 2633 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2634 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 2635 | fi
|
---|
[8200] | 2636 |
|
---|
[8756] | 2637 | test -n "$CXX" && break
|
---|
| 2638 | done
|
---|
| 2639 | fi
|
---|
| 2640 | if test -z "$CXX"; then
|
---|
| 2641 | ac_ct_CXX=$CXX
|
---|
[23802] | 2642 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8756] | 2643 | do
|
---|
| 2644 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2645 | set dummy $ac_prog; ac_word=$2
|
---|
[23802] | 2646 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2648 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2649 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2650 | else
|
---|
| 2651 | if test -n "$ac_ct_CXX"; then
|
---|
| 2652 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2653 | else
|
---|
| 2654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2655 | for as_dir in $PATH
|
---|
| 2656 | do
|
---|
| 2657 | IFS=$as_save_IFS
|
---|
| 2658 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2659 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 2661 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[23802] | 2662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2663 | break 2
|
---|
| 2664 | fi
|
---|
| 2665 | done
|
---|
[23802] | 2666 | done
|
---|
[8200] | 2667 |
|
---|
[8756] | 2668 | fi
|
---|
| 2669 | fi
|
---|
| 2670 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2671 | if test -n "$ac_ct_CXX"; then
|
---|
[23802] | 2672 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2673 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3631] | 2674 | else
|
---|
[23802] | 2675 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2676 | echo "${ECHO_T}no" >&6
|
---|
[3631] | 2677 | fi
|
---|
[562] | 2678 |
|
---|
[8756] | 2679 | test -n "$ac_ct_CXX" && break
|
---|
| 2680 | done
|
---|
[23802] | 2681 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[8756] | 2682 |
|
---|
[23802] | 2683 | CXX=$ac_ct_CXX
|
---|
[3631] | 2684 | fi
|
---|
[562] | 2685 |
|
---|
[23802] | 2686 |
|
---|
[8756] | 2687 | # Provide some information about the compiler.
|
---|
[23802] | 2688 | echo "$as_me:$LINENO:" \
|
---|
| 2689 | "checking for C++ compiler version" >&5
|
---|
| 2690 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2691 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2692 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[8756] | 2693 | ac_status=$?
|
---|
[23802] | 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2695 | (exit $ac_status); }
|
---|
| 2696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2697 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2698 | ac_status=$?
|
---|
| 2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2700 | (exit $ac_status); }
|
---|
| 2701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2702 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2703 | ac_status=$?
|
---|
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2705 | (exit $ac_status); }
|
---|
[8756] | 2706 |
|
---|
[23802] | 2707 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2708 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2709 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2710 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 2711 | else
|
---|
[23802] | 2712 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2713 | /* confdefs.h. */
|
---|
| 2714 | _ACEOF
|
---|
| 2715 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2716 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2717 | /* end confdefs.h. */
|
---|
| 2718 |
|
---|
| 2719 | int
|
---|
| 2720 | main ()
|
---|
| 2721 | {
|
---|
| 2722 | #ifndef __GNUC__
|
---|
| 2723 | choke me
|
---|
[3631] | 2724 | #endif
|
---|
[8756] | 2725 |
|
---|
| 2726 | ;
|
---|
| 2727 | return 0;
|
---|
| 2728 | }
|
---|
| 2729 | _ACEOF
|
---|
[23802] | 2730 | rm -f conftest.$ac_objext
|
---|
| 2731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2732 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2733 | ac_status=$?
|
---|
| 2734 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2735 | rm -f conftest.er1
|
---|
| 2736 | cat conftest.err >&5
|
---|
| 2737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2738 | (exit $ac_status); } &&
|
---|
| 2739 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2740 | || test ! -s conftest.err'
|
---|
| 2741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2742 | (eval $ac_try) 2>&5
|
---|
| 2743 | ac_status=$?
|
---|
| 2744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2745 | (exit $ac_status); }; } &&
|
---|
| 2746 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2748 | (eval $ac_try) 2>&5
|
---|
| 2749 | ac_status=$?
|
---|
| 2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2751 | (exit $ac_status); }; }; then
|
---|
[8756] | 2752 | ac_compiler_gnu=yes
|
---|
[8200] | 2753 | else
|
---|
[23802] | 2754 | echo "$as_me: failed program was:" >&5
|
---|
| 2755 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2756 |
|
---|
| 2757 | ac_compiler_gnu=no
|
---|
[8200] | 2758 | fi
|
---|
[23802] | 2759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2760 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2761 |
|
---|
[8200] | 2762 | fi
|
---|
[23802] | 2763 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2764 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2765 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[8756] | 2766 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2767 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[23802] | 2768 | CXXFLAGS="-g"
|
---|
| 2769 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2770 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2771 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2772 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 2773 | else
|
---|
[23802] | 2774 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2775 | /* confdefs.h. */
|
---|
| 2776 | _ACEOF
|
---|
| 2777 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2778 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2779 | /* end confdefs.h. */
|
---|
[3631] | 2780 |
|
---|
[8756] | 2781 | int
|
---|
| 2782 | main ()
|
---|
| 2783 | {
|
---|
[8200] | 2784 |
|
---|
[8756] | 2785 | ;
|
---|
| 2786 | return 0;
|
---|
| 2787 | }
|
---|
| 2788 | _ACEOF
|
---|
[23802] | 2789 | rm -f conftest.$ac_objext
|
---|
| 2790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2791 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2792 | ac_status=$?
|
---|
| 2793 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2794 | rm -f conftest.er1
|
---|
| 2795 | cat conftest.err >&5
|
---|
| 2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2797 | (exit $ac_status); } &&
|
---|
| 2798 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2799 | || test ! -s conftest.err'
|
---|
| 2800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2801 | (eval $ac_try) 2>&5
|
---|
| 2802 | ac_status=$?
|
---|
| 2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2804 | (exit $ac_status); }; } &&
|
---|
| 2805 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2807 | (eval $ac_try) 2>&5
|
---|
| 2808 | ac_status=$?
|
---|
| 2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2810 | (exit $ac_status); }; }; then
|
---|
[562] | 2811 | ac_cv_prog_cxx_g=yes
|
---|
| 2812 | else
|
---|
[23802] | 2813 | echo "$as_me: failed program was:" >&5
|
---|
| 2814 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2815 |
|
---|
| 2816 | ac_cv_prog_cxx_g=no
|
---|
| 2817 | fi
|
---|
| 2818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2819 | fi
|
---|
| 2820 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2821 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2822 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2823 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2824 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2825 | if test "$GXX" = yes; then
|
---|
| 2826 | CXXFLAGS="-g -O2"
|
---|
| 2827 | else
|
---|
| 2828 | CXXFLAGS="-g"
|
---|
| 2829 | fi
|
---|
| 2830 | else
|
---|
| 2831 | if test "$GXX" = yes; then
|
---|
| 2832 | CXXFLAGS="-O2"
|
---|
| 2833 | else
|
---|
| 2834 | CXXFLAGS=
|
---|
| 2835 | fi
|
---|
| 2836 | fi
|
---|
| 2837 | for ac_declaration in \
|
---|
| 2838 | '' \
|
---|
| 2839 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2840 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2841 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2842 | 'extern "C" void exit (int);' \
|
---|
| 2843 | 'void exit (int);'
|
---|
| 2844 | do
|
---|
| 2845 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2846 | /* confdefs.h. */
|
---|
| 2847 | _ACEOF
|
---|
| 2848 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2849 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[22378] | 2850 | /* end confdefs.h. */
|
---|
[23802] | 2851 | $ac_declaration
|
---|
| 2852 | #include <stdlib.h>
|
---|
[8756] | 2853 | int
|
---|
| 2854 | main ()
|
---|
| 2855 | {
|
---|
[23802] | 2856 | exit (42);
|
---|
[8756] | 2857 | ;
|
---|
| 2858 | return 0;
|
---|
| 2859 | }
|
---|
| 2860 | _ACEOF
|
---|
[23802] | 2861 | rm -f conftest.$ac_objext
|
---|
| 2862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2863 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2864 | ac_status=$?
|
---|
| 2865 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2866 | rm -f conftest.er1
|
---|
| 2867 | cat conftest.err >&5
|
---|
| 2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2869 | (exit $ac_status); } &&
|
---|
| 2870 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2871 | || test ! -s conftest.err'
|
---|
| 2872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2873 | (eval $ac_try) 2>&5
|
---|
| 2874 | ac_status=$?
|
---|
| 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2876 | (exit $ac_status); }; } &&
|
---|
| 2877 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2879 | (eval $ac_try) 2>&5
|
---|
| 2880 | ac_status=$?
|
---|
| 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2882 | (exit $ac_status); }; }; then
|
---|
| 2883 | :
|
---|
| 2884 | else
|
---|
| 2885 | echo "$as_me: failed program was:" >&5
|
---|
| 2886 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 2887 |
|
---|
[23802] | 2888 | continue
|
---|
| 2889 | fi
|
---|
| 2890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2891 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2892 | /* confdefs.h. */
|
---|
| 2893 | _ACEOF
|
---|
| 2894 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2895 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[22378] | 2896 | /* end confdefs.h. */
|
---|
[23802] | 2897 | $ac_declaration
|
---|
[8756] | 2898 | int
|
---|
| 2899 | main ()
|
---|
| 2900 | {
|
---|
[23802] | 2901 | exit (42);
|
---|
[8756] | 2902 | ;
|
---|
| 2903 | return 0;
|
---|
| 2904 | }
|
---|
| 2905 | _ACEOF
|
---|
[23802] | 2906 | rm -f conftest.$ac_objext
|
---|
| 2907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2908 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2909 | ac_status=$?
|
---|
| 2910 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2911 | rm -f conftest.er1
|
---|
| 2912 | cat conftest.err >&5
|
---|
| 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2914 | (exit $ac_status); } &&
|
---|
| 2915 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2916 | || test ! -s conftest.err'
|
---|
| 2917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2918 | (eval $ac_try) 2>&5
|
---|
| 2919 | ac_status=$?
|
---|
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2921 | (exit $ac_status); }; } &&
|
---|
| 2922 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2924 | (eval $ac_try) 2>&5
|
---|
| 2925 | ac_status=$?
|
---|
| 2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2927 | (exit $ac_status); }; }; then
|
---|
| 2928 | break
|
---|
| 2929 | else
|
---|
| 2930 | echo "$as_me: failed program was:" >&5
|
---|
| 2931 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2932 |
|
---|
[22378] | 2933 | fi
|
---|
[23802] | 2934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2935 | done
|
---|
| 2936 | rm -f conftest*
|
---|
| 2937 | if test -n "$ac_declaration"; then
|
---|
| 2938 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2939 | echo $ac_declaration >>confdefs.h
|
---|
| 2940 | echo '#endif' >>confdefs.h
|
---|
[22378] | 2941 | fi
|
---|
[23802] | 2942 |
|
---|
[8756] | 2943 | ac_ext=c
|
---|
| 2944 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2945 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2946 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2947 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2948 |
|
---|
| 2949 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 2950 | do
|
---|
[8756] | 2951 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2952 | set dummy $ac_prog; ac_word=$2
|
---|
[23802] | 2953 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2955 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2957 | else
|
---|
| 2958 | if test -n "$AWK"; then
|
---|
| 2959 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2960 | else
|
---|
[8756] | 2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2962 | for as_dir in $PATH
|
---|
| 2963 | do
|
---|
| 2964 | IFS=$as_save_IFS
|
---|
| 2965 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 2966 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 2968 | ac_cv_prog_AWK="$ac_prog"
|
---|
[23802] | 2969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 2970 | break 2
|
---|
| 2971 | fi
|
---|
| 2972 | done
|
---|
[23802] | 2973 | done
|
---|
[8756] | 2974 |
|
---|
[687] | 2975 | fi
|
---|
| 2976 | fi
|
---|
[8756] | 2977 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 2978 | if test -n "$AWK"; then
|
---|
[23802] | 2979 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2980 | echo "${ECHO_T}$AWK" >&6
|
---|
[687] | 2981 | else
|
---|
[23802] | 2982 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2983 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2984 | fi
|
---|
| 2985 |
|
---|
[8756] | 2986 | test -n "$AWK" && break
|
---|
[687] | 2987 | done
|
---|
| 2988 |
|
---|
| 2989 | for ac_prog in 'bison -y' byacc
|
---|
| 2990 | do
|
---|
[8756] | 2991 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2992 | set dummy $ac_prog; ac_word=$2
|
---|
[23802] | 2993 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2995 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2996 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2997 | else
|
---|
| 2998 | if test -n "$YACC"; then
|
---|
| 2999 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3000 | else
|
---|
[8756] | 3001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3002 | for as_dir in $PATH
|
---|
| 3003 | do
|
---|
| 3004 | IFS=$as_save_IFS
|
---|
| 3005 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3006 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3007 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 3008 | ac_cv_prog_YACC="$ac_prog"
|
---|
[23802] | 3009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3010 | break 2
|
---|
| 3011 | fi
|
---|
| 3012 | done
|
---|
[23802] | 3013 | done
|
---|
[8756] | 3014 |
|
---|
[687] | 3015 | fi
|
---|
| 3016 | fi
|
---|
[8756] | 3017 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 3018 | if test -n "$YACC"; then
|
---|
[23802] | 3019 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 3020 | echo "${ECHO_T}$YACC" >&6
|
---|
[687] | 3021 | else
|
---|
[23802] | 3022 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3023 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3024 | fi
|
---|
| 3025 |
|
---|
[8756] | 3026 | test -n "$YACC" && break
|
---|
[687] | 3027 | done
|
---|
| 3028 | test -n "$YACC" || YACC="yacc"
|
---|
| 3029 |
|
---|
[703] | 3030 | ac_aux_dir=
|
---|
[23802] | 3031 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 3032 | if test -f $ac_dir/install-sh; then
|
---|
[23356] | 3033 | ac_aux_dir=$ac_dir
|
---|
| 3034 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 3035 | break
|
---|
[23802] | 3036 | elif test -f $ac_dir/install.sh; then
|
---|
[23356] | 3037 | ac_aux_dir=$ac_dir
|
---|
| 3038 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 3039 | break
|
---|
[23802] | 3040 | elif test -f $ac_dir/shtool; then
|
---|
[23356] | 3041 | ac_aux_dir=$ac_dir
|
---|
| 3042 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 3043 | break
|
---|
| 3044 | fi
|
---|
[703] | 3045 | done
|
---|
| 3046 | if test -z "$ac_aux_dir"; then
|
---|
[23802] | 3047 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 3048 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 3049 | { (exit 1); exit 1; }; }
|
---|
[703] | 3050 | fi
|
---|
[23802] | 3051 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 3052 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 3053 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[703] | 3054 |
|
---|
[8756] | 3055 | # Make sure we can run config.sub.
|
---|
[23802] | 3056 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 3057 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 3058 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 3059 | { (exit 1); exit 1; }; }
|
---|
[2279] | 3060 |
|
---|
[23802] | 3061 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 3062 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 3063 | if test "${ac_cv_build+set}" = set; then
|
---|
| 3064 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3065 | else
|
---|
[23802] | 3066 | ac_cv_build_alias=$build_alias
|
---|
| 3067 | test -z "$ac_cv_build_alias" &&
|
---|
| 3068 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 3069 | test -z "$ac_cv_build_alias" &&
|
---|
| 3070 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 3071 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 3072 | { (exit 1); exit 1; }; }
|
---|
| 3073 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 3074 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 3075 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 3076 | { (exit 1); exit 1; }; }
|
---|
[2279] | 3077 |
|
---|
| 3078 | fi
|
---|
[23802] | 3079 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 3080 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
[8756] | 3081 | build=$ac_cv_build
|
---|
[23802] | 3082 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3083 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3084 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[2279] | 3085 |
|
---|
| 3086 |
|
---|
[23802] | 3087 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 3088 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 3089 | if test "${ac_cv_host+set}" = set; then
|
---|
| 3090 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3091 | else
|
---|
[23802] | 3092 | ac_cv_host_alias=$host_alias
|
---|
| 3093 | test -z "$ac_cv_host_alias" &&
|
---|
| 3094 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 3095 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 3096 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 3097 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 3098 | { (exit 1); exit 1; }; }
|
---|
[2279] | 3099 |
|
---|
[8756] | 3100 | fi
|
---|
[23802] | 3101 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 3102 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
[8756] | 3103 | host=$ac_cv_host
|
---|
[23802] | 3104 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3105 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3106 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 3107 |
|
---|
| 3108 |
|
---|
[23802] | 3109 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 3110 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 3111 | if test "${ac_cv_target+set}" = set; then
|
---|
| 3112 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3113 | else
|
---|
[23802] | 3114 | ac_cv_target_alias=$target_alias
|
---|
| 3115 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 3116 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 3117 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 3118 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 3119 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 3120 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3121 |
|
---|
[8756] | 3122 | fi
|
---|
[23802] | 3123 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 3124 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
[8756] | 3125 | target=$ac_cv_target
|
---|
[23802] | 3126 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3127 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3128 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 3129 |
|
---|
| 3130 |
|
---|
[8756] | 3131 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3132 | # will get canonicalized.
|
---|
| 3133 | test -n "$target_alias" &&
|
---|
[2279] | 3134 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3135 | NONENONEs,x,x, &&
|
---|
| 3136 | program_prefix=${target_alias}-
|
---|
[703] | 3137 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3138 | # so one script is as good as another. But avoid the broken or
|
---|
| 3139 | # incompatible versions:
|
---|
| 3140 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3141 | # SunOS /usr/etc/install
|
---|
| 3142 | # IRIX /sbin/install
|
---|
| 3143 | # AIX /bin/install
|
---|
[8756] | 3144 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 3145 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3146 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3147 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 3148 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 3149 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[23802] | 3150 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3151 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[703] | 3152 | if test -z "$INSTALL"; then
|
---|
[23802] | 3153 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3154 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 3155 | else
|
---|
[8756] | 3156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3157 | for as_dir in $PATH
|
---|
| 3158 | do
|
---|
| 3159 | IFS=$as_save_IFS
|
---|
| 3160 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3161 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3162 | case $as_dir/ in
|
---|
| 3163 | ./ | .// | /cC/* | \
|
---|
[8756] | 3164 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[23802] | 3165 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
[8756] | 3166 | /usr/ucb/* ) ;;
|
---|
| 3167 | *)
|
---|
| 3168 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3169 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3170 | # by default.
|
---|
| 3171 | for ac_prog in ginstall scoinst install; do
|
---|
| 3172 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[23802] | 3173 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[703] | 3174 | if test $ac_prog = install &&
|
---|
[8756] | 3175 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 3176 | # AIX install. It has an incompatible calling convention.
|
---|
| 3177 | :
|
---|
[8756] | 3178 | elif test $ac_prog = install &&
|
---|
| 3179 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3180 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3181 | :
|
---|
[703] | 3182 | else
|
---|
[23802] | 3183 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3184 | break 3
|
---|
[703] | 3185 | fi
|
---|
| 3186 | fi
|
---|
| 3187 | done
|
---|
[8756] | 3188 | done
|
---|
| 3189 | ;;
|
---|
| 3190 | esac
|
---|
[23802] | 3191 | done
|
---|
[703] | 3192 |
|
---|
[8756] | 3193 |
|
---|
[703] | 3194 | fi
|
---|
| 3195 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 3196 | INSTALL=$ac_cv_path_install
|
---|
[703] | 3197 | else
|
---|
[23802] | 3198 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 3199 | # path for INSTALL within a source directory, because that will
|
---|
[703] | 3200 | # break other packages using the cache if that directory is
|
---|
[23802] | 3201 | # removed, or if the path is relative.
|
---|
[8756] | 3202 | INSTALL=$ac_install_sh
|
---|
[703] | 3203 | fi
|
---|
| 3204 | fi
|
---|
[23802] | 3205 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3206 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[703] | 3207 |
|
---|
| 3208 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3209 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3210 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3211 |
|
---|
[8756] | 3212 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 3213 |
|
---|
| 3214 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3215 |
|
---|
[23802] | 3216 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3217 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
[8756] | 3218 | LN_S=$as_ln_s
|
---|
| 3219 | if test "$LN_S" = "ln -s"; then
|
---|
[23802] | 3220 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3221 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3222 | else
|
---|
[23802] | 3223 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3224 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[562] | 3225 | fi
|
---|
| 3226 |
|
---|
[23802] | 3227 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3228 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3229 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3230 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 3231 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3232 | else
|
---|
[8756] | 3233 | cat >conftest.make <<\_ACEOF
|
---|
[562] | 3234 | all:
|
---|
[23802] | 3235 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
[8756] | 3236 | _ACEOF
|
---|
[23802] | 3237 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 3238 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 3239 | if test -n "$ac_maketemp"; then
|
---|
| 3240 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3241 | else
|
---|
| 3242 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3243 | fi
|
---|
[8756] | 3244 | rm -f conftest.make
|
---|
[562] | 3245 | fi
|
---|
[23802] | 3246 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 3247 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3248 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3249 | SET_MAKE=
|
---|
| 3250 | else
|
---|
[23802] | 3251 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3252 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3253 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3254 | fi
|
---|
| 3255 |
|
---|
[8756] | 3256 | if test -n "$ac_tool_prefix"; then
|
---|
| 3257 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3258 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[23802] | 3259 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3260 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3261 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3262 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3263 | else
|
---|
| 3264 | if test -n "$RANLIB"; then
|
---|
| 3265 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3266 | else
|
---|
[8756] | 3267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3268 | for as_dir in $PATH
|
---|
| 3269 | do
|
---|
| 3270 | IFS=$as_save_IFS
|
---|
| 3271 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3272 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3273 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 3274 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[23802] | 3275 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3276 | break 2
|
---|
| 3277 | fi
|
---|
| 3278 | done
|
---|
[23802] | 3279 | done
|
---|
[8756] | 3280 |
|
---|
[562] | 3281 | fi
|
---|
| 3282 | fi
|
---|
[8756] | 3283 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3284 | if test -n "$RANLIB"; then
|
---|
[23802] | 3285 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3286 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[562] | 3287 | else
|
---|
[23802] | 3288 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3289 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3290 | fi
|
---|
| 3291 |
|
---|
[8756] | 3292 | fi
|
---|
| 3293 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3294 | ac_ct_RANLIB=$RANLIB
|
---|
| 3295 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3296 | set dummy ranlib; ac_word=$2
|
---|
[23802] | 3297 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3299 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3300 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8756] | 3301 | else
|
---|
| 3302 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3303 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3304 | else
|
---|
| 3305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3306 | for as_dir in $PATH
|
---|
| 3307 | do
|
---|
| 3308 | IFS=$as_save_IFS
|
---|
| 3309 | test -z "$as_dir" && as_dir=.
|
---|
[23802] | 3310 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3311 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 3312 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[23802] | 3313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[8756] | 3314 | break 2
|
---|
| 3315 | fi
|
---|
| 3316 | done
|
---|
[23802] | 3317 | done
|
---|
[562] | 3318 |
|
---|
[23802] | 3319 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
[8756] | 3320 | fi
|
---|
| 3321 | fi
|
---|
| 3322 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3323 | if test -n "$ac_ct_RANLIB"; then
|
---|
[23802] | 3324 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3325 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
[8756] | 3326 | else
|
---|
[23802] | 3327 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3328 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 3329 | fi
|
---|
| 3330 |
|
---|
[23802] | 3331 | RANLIB=$ac_ct_RANLIB
|
---|
[8756] | 3332 | else
|
---|
| 3333 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3334 | fi
|
---|
| 3335 |
|
---|
| 3336 |
|
---|
[23802] | 3337 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3338 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
[15551] | 3339 | arch_64bit=no
|
---|
| 3340 | case "$host_cpu" in
|
---|
| 3341 | x86_64) arch_64bit=yes ;;
|
---|
| 3342 | esac
|
---|
| 3343 |
|
---|
| 3344 | if test "$arch_64bit" = yes; then
|
---|
[23802] | 3345 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3346 | echo "${ECHO_T}yes" >&6
|
---|
[15551] | 3347 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
[22378] | 3348 | if test "$ENABLE_MG" = "1" -o "$ENABLE_MGPP" = "1" ; then
|
---|
| 3349 | COMPAT32BITFLAGS="-m32"
|
---|
| 3350 | fi
|
---|
[15551] | 3351 | fi
|
---|
| 3352 | else
|
---|
[23802] | 3353 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3354 | echo "${ECHO_T}no" >&6
|
---|
[15551] | 3355 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3356 | COMPAT32BITFLAGS=
|
---|
| 3357 | fi
|
---|
| 3358 | fi
|
---|
[21432] | 3359 |
|
---|
[15551] | 3360 | export COMPAT32BITFLAGS
|
---|
| 3361 |
|
---|
| 3362 |
|
---|
| 3363 |
|
---|
[2173] | 3364 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3365 | if test $USE_CORBA = 1; then
|
---|
| 3366 |
|
---|
[2213] | 3367 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3368 | #do something
|
---|
| 3369 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3370 | else
|
---|
| 3371 | #build the micotest program
|
---|
| 3372 | MICO_INC= ""
|
---|
| 3373 | if test $MICO_DIR != yes; then
|
---|
| 3374 | MICO_INC="-I $MICO_DIR"
|
---|
| 3375 | fi
|
---|
| 3376 | fi
|
---|
| 3377 |
|
---|
| 3378 | #get MICO_VER value
|
---|
| 3379 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3380 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3381 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3382 | sh -c "rm micotest"
|
---|
| 3383 | sh -c "rm micotest.o"
|
---|
| 3384 |
|
---|
| 3385 | #do test of MICO_VER
|
---|
| 3386 | if test MICO_VER != 0; then
|
---|
[23802] | 3387 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3388 | #define MICO_VER 1
|
---|
| 3389 | _ACEOF
|
---|
[2173] | 3390 |
|
---|
[8200] | 3391 |
|
---|
[2173] | 3392 | fi
|
---|
| 3393 | #end USE_CORBA test
|
---|
| 3394 | fi
|
---|
| 3395 |
|
---|
[8756] | 3396 |
|
---|
| 3397 | ac_ext=c
|
---|
| 3398 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3399 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3400 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3401 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[23802] | 3402 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3403 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[687] | 3404 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3405 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3406 | CPP=
|
---|
| 3407 | fi
|
---|
| 3408 | if test -z "$CPP"; then
|
---|
[23802] | 3409 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3410 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3411 | else
|
---|
[8756] | 3412 | # Double quotes because CPP needs to be expanded
|
---|
| 3413 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3414 | do
|
---|
| 3415 | ac_preproc_ok=false
|
---|
| 3416 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3417 | do
|
---|
| 3418 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3419 | # with a fresh cross-compiler works.
|
---|
| 3420 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3421 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3422 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3423 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[23802] | 3424 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3425 | /* confdefs.h. */
|
---|
| 3426 | _ACEOF
|
---|
| 3427 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3428 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3429 | /* end confdefs.h. */
|
---|
| 3430 | #ifdef __STDC__
|
---|
| 3431 | # include <limits.h>
|
---|
| 3432 | #else
|
---|
| 3433 | # include <assert.h>
|
---|
| 3434 | #endif
|
---|
| 3435 | Syntax error
|
---|
| 3436 | _ACEOF
|
---|
[23802] | 3437 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3438 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3439 | ac_status=$?
|
---|
| 3440 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3441 | rm -f conftest.er1
|
---|
| 3442 | cat conftest.err >&5
|
---|
| 3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3444 | (exit $ac_status); } >/dev/null; then
|
---|
| 3445 | if test -s conftest.err; then
|
---|
| 3446 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3448 | else
|
---|
| 3449 | ac_cpp_err=
|
---|
| 3450 | fi
|
---|
| 3451 | else
|
---|
| 3452 | ac_cpp_err=yes
|
---|
| 3453 | fi
|
---|
| 3454 | if test -z "$ac_cpp_err"; then
|
---|
| 3455 | :
|
---|
| 3456 | else
|
---|
| 3457 | echo "$as_me: failed program was:" >&5
|
---|
| 3458 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 3459 |
|
---|
[8756] | 3460 | # Broken: fails on valid input.
|
---|
| 3461 | continue
|
---|
| 3462 | fi
|
---|
[23802] | 3463 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 3464 |
|
---|
[23802] | 3465 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[8756] | 3466 | # can be detected and how.
|
---|
[23802] | 3467 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3468 | /* confdefs.h. */
|
---|
| 3469 | _ACEOF
|
---|
| 3470 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3471 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3472 | /* end confdefs.h. */
|
---|
| 3473 | #include <ac_nonexistent.h>
|
---|
| 3474 | _ACEOF
|
---|
[23802] | 3475 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3476 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3477 | ac_status=$?
|
---|
| 3478 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3479 | rm -f conftest.er1
|
---|
| 3480 | cat conftest.err >&5
|
---|
| 3481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3482 | (exit $ac_status); } >/dev/null; then
|
---|
| 3483 | if test -s conftest.err; then
|
---|
| 3484 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3485 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3486 | else
|
---|
| 3487 | ac_cpp_err=
|
---|
| 3488 | fi
|
---|
| 3489 | else
|
---|
| 3490 | ac_cpp_err=yes
|
---|
| 3491 | fi
|
---|
| 3492 | if test -z "$ac_cpp_err"; then
|
---|
[8756] | 3493 | # Broken: success on invalid input.
|
---|
| 3494 | continue
|
---|
| 3495 | else
|
---|
[23802] | 3496 | echo "$as_me: failed program was:" >&5
|
---|
| 3497 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3498 |
|
---|
[8756] | 3499 | # Passes both tests.
|
---|
| 3500 | ac_preproc_ok=:
|
---|
| 3501 | break
|
---|
| 3502 | fi
|
---|
[23802] | 3503 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 3504 |
|
---|
| 3505 | done
|
---|
| 3506 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[23802] | 3507 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3508 | if $ac_preproc_ok; then
|
---|
[8756] | 3509 | break
|
---|
| 3510 | fi
|
---|
| 3511 |
|
---|
| 3512 | done
|
---|
| 3513 | ac_cv_prog_CPP=$CPP
|
---|
| 3514 |
|
---|
| 3515 | fi
|
---|
| 3516 | CPP=$ac_cv_prog_CPP
|
---|
| 3517 | else
|
---|
| 3518 | ac_cv_prog_CPP=$CPP
|
---|
| 3519 | fi
|
---|
[23802] | 3520 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3521 | echo "${ECHO_T}$CPP" >&6
|
---|
[8756] | 3522 | ac_preproc_ok=false
|
---|
| 3523 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3524 | do
|
---|
| 3525 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3526 | # with a fresh cross-compiler works.
|
---|
| 3527 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3528 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3529 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3530 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[23802] | 3531 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3532 | /* confdefs.h. */
|
---|
| 3533 | _ACEOF
|
---|
| 3534 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3535 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3536 | /* end confdefs.h. */
|
---|
| 3537 | #ifdef __STDC__
|
---|
| 3538 | # include <limits.h>
|
---|
| 3539 | #else
|
---|
| 3540 | # include <assert.h>
|
---|
| 3541 | #endif
|
---|
| 3542 | Syntax error
|
---|
| 3543 | _ACEOF
|
---|
[23802] | 3544 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3545 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3546 | ac_status=$?
|
---|
| 3547 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3548 | rm -f conftest.er1
|
---|
| 3549 | cat conftest.err >&5
|
---|
| 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3551 | (exit $ac_status); } >/dev/null; then
|
---|
| 3552 | if test -s conftest.err; then
|
---|
| 3553 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3554 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3555 | else
|
---|
| 3556 | ac_cpp_err=
|
---|
| 3557 | fi
|
---|
| 3558 | else
|
---|
| 3559 | ac_cpp_err=yes
|
---|
| 3560 | fi
|
---|
| 3561 | if test -z "$ac_cpp_err"; then
|
---|
| 3562 | :
|
---|
| 3563 | else
|
---|
| 3564 | echo "$as_me: failed program was:" >&5
|
---|
| 3565 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 3566 |
|
---|
[8756] | 3567 | # Broken: fails on valid input.
|
---|
| 3568 | continue
|
---|
[687] | 3569 | fi
|
---|
[23802] | 3570 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 3571 |
|
---|
[23802] | 3572 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[8756] | 3573 | # can be detected and how.
|
---|
[23802] | 3574 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3575 | /* confdefs.h. */
|
---|
| 3576 | _ACEOF
|
---|
| 3577 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3578 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3579 | /* end confdefs.h. */
|
---|
| 3580 | #include <ac_nonexistent.h>
|
---|
| 3581 | _ACEOF
|
---|
[23802] | 3582 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3583 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3584 | ac_status=$?
|
---|
| 3585 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3586 | rm -f conftest.er1
|
---|
| 3587 | cat conftest.err >&5
|
---|
| 3588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3589 | (exit $ac_status); } >/dev/null; then
|
---|
| 3590 | if test -s conftest.err; then
|
---|
| 3591 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3592 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3593 | else
|
---|
| 3594 | ac_cpp_err=
|
---|
| 3595 | fi
|
---|
| 3596 | else
|
---|
| 3597 | ac_cpp_err=yes
|
---|
| 3598 | fi
|
---|
| 3599 | if test -z "$ac_cpp_err"; then
|
---|
[8756] | 3600 | # Broken: success on invalid input.
|
---|
| 3601 | continue
|
---|
| 3602 | else
|
---|
[23802] | 3603 | echo "$as_me: failed program was:" >&5
|
---|
| 3604 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3605 |
|
---|
[8756] | 3606 | # Passes both tests.
|
---|
| 3607 | ac_preproc_ok=:
|
---|
| 3608 | break
|
---|
[687] | 3609 | fi
|
---|
[23802] | 3610 | rm -f conftest.err conftest.$ac_ext
|
---|
[8756] | 3611 |
|
---|
| 3612 | done
|
---|
| 3613 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[23802] | 3614 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3615 | if $ac_preproc_ok; then
|
---|
| 3616 | :
|
---|
[8756] | 3617 | else
|
---|
[23802] | 3618 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3619 | See \`config.log' for more details." >&5
|
---|
| 3620 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3621 | See \`config.log' for more details." >&2;}
|
---|
| 3622 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3623 | fi
|
---|
[8756] | 3624 |
|
---|
| 3625 | ac_ext=c
|
---|
| 3626 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3630 |
|
---|
| 3631 |
|
---|
[23802] | 3632 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3633 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3634 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3635 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3636 | else
|
---|
[23802] | 3637 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3638 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3639 | else ac_cv_prog_egrep='egrep'
|
---|
[8756] | 3640 | fi
|
---|
[23802] | 3641 | fi
|
---|
| 3642 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3643 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3644 | EGREP=$ac_cv_prog_egrep
|
---|
[687] | 3645 |
|
---|
[23802] | 3646 |
|
---|
| 3647 |
|
---|
| 3648 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3649 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3650 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3651 | /* confdefs.h. */
|
---|
| 3652 | _ACEOF
|
---|
| 3653 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3654 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3655 | /* end confdefs.h. */
|
---|
| 3656 | #ifdef _AIX
|
---|
| 3657 | yes
|
---|
| 3658 | #endif
|
---|
| 3659 |
|
---|
| 3660 | _ACEOF
|
---|
| 3661 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3662 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3663 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3664 | echo "${ECHO_T}yes" >&6
|
---|
| 3665 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3666 | #define _ALL_SOURCE 1
|
---|
| 3667 | _ACEOF
|
---|
| 3668 |
|
---|
[687] | 3669 | else
|
---|
[23802] | 3670 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3671 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3672 | fi
|
---|
[23802] | 3673 | rm -f conftest*
|
---|
[687] | 3674 |
|
---|
[8200] | 3675 |
|
---|
[23802] | 3676 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3677 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3678 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3679 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3680 | else
|
---|
| 3681 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3682 | ac_cv_search_strerror=no
|
---|
| 3683 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3684 | /* confdefs.h. */
|
---|
| 3685 | _ACEOF
|
---|
| 3686 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3687 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3688 | /* end confdefs.h. */
|
---|
[687] | 3689 |
|
---|
[23802] | 3690 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3691 | #ifdef __cplusplus
|
---|
| 3692 | extern "C"
|
---|
| 3693 | #endif
|
---|
| 3694 | /* We use char because int might match the return type of a gcc2
|
---|
| 3695 | builtin and then its argument prototype would still apply. */
|
---|
| 3696 | char strerror ();
|
---|
| 3697 | int
|
---|
| 3698 | main ()
|
---|
| 3699 | {
|
---|
| 3700 | strerror ();
|
---|
| 3701 | ;
|
---|
| 3702 | return 0;
|
---|
| 3703 | }
|
---|
| 3704 | _ACEOF
|
---|
| 3705 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3706 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3707 | (eval $ac_link) 2>conftest.er1
|
---|
| 3708 | ac_status=$?
|
---|
| 3709 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3710 | rm -f conftest.er1
|
---|
| 3711 | cat conftest.err >&5
|
---|
| 3712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3713 | (exit $ac_status); } &&
|
---|
| 3714 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3715 | || test ! -s conftest.err'
|
---|
| 3716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3717 | (eval $ac_try) 2>&5
|
---|
| 3718 | ac_status=$?
|
---|
| 3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3720 | (exit $ac_status); }; } &&
|
---|
| 3721 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3723 | (eval $ac_try) 2>&5
|
---|
| 3724 | ac_status=$?
|
---|
| 3725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3726 | (exit $ac_status); }; }; then
|
---|
| 3727 | ac_cv_search_strerror="none required"
|
---|
[687] | 3728 | else
|
---|
[23802] | 3729 | echo "$as_me: failed program was:" >&5
|
---|
| 3730 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8756] | 3731 |
|
---|
[23802] | 3732 | fi
|
---|
| 3733 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3734 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3735 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3736 | for ac_lib in cposix; do
|
---|
| 3737 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3738 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3739 | /* confdefs.h. */
|
---|
| 3740 | _ACEOF
|
---|
| 3741 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3742 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3743 | /* end confdefs.h. */
|
---|
| 3744 |
|
---|
| 3745 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3746 | #ifdef __cplusplus
|
---|
| 3747 | extern "C"
|
---|
| 3748 | #endif
|
---|
| 3749 | /* We use char because int might match the return type of a gcc2
|
---|
| 3750 | builtin and then its argument prototype would still apply. */
|
---|
| 3751 | char strerror ();
|
---|
| 3752 | int
|
---|
| 3753 | main ()
|
---|
| 3754 | {
|
---|
| 3755 | strerror ();
|
---|
| 3756 | ;
|
---|
| 3757 | return 0;
|
---|
| 3758 | }
|
---|
| 3759 | _ACEOF
|
---|
| 3760 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3762 | (eval $ac_link) 2>conftest.er1
|
---|
| 3763 | ac_status=$?
|
---|
| 3764 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3765 | rm -f conftest.er1
|
---|
| 3766 | cat conftest.err >&5
|
---|
| 3767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3768 | (exit $ac_status); } &&
|
---|
| 3769 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3770 | || test ! -s conftest.err'
|
---|
| 3771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3772 | (eval $ac_try) 2>&5
|
---|
| 3773 | ac_status=$?
|
---|
| 3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3775 | (exit $ac_status); }; } &&
|
---|
| 3776 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3778 | (eval $ac_try) 2>&5
|
---|
| 3779 | ac_status=$?
|
---|
| 3780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3781 | (exit $ac_status); }; }; then
|
---|
| 3782 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3783 | break
|
---|
[687] | 3784 | else
|
---|
[23802] | 3785 | echo "$as_me: failed program was:" >&5
|
---|
| 3786 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3787 |
|
---|
[8756] | 3788 | fi
|
---|
[23802] | 3789 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3790 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3791 | done
|
---|
| 3792 | fi
|
---|
| 3793 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3794 | fi
|
---|
| 3795 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3796 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3797 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3798 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
[8756] | 3799 |
|
---|
| 3800 | fi
|
---|
| 3801 |
|
---|
[23802] | 3802 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3803 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3804 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3805 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3806 | else
|
---|
[23802] | 3807 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3808 | /* confdefs.h. */
|
---|
| 3809 | _ACEOF
|
---|
| 3810 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3811 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3812 | /* end confdefs.h. */
|
---|
| 3813 | #include <stdlib.h>
|
---|
| 3814 | #include <stdarg.h>
|
---|
| 3815 | #include <string.h>
|
---|
| 3816 | #include <float.h>
|
---|
| 3817 |
|
---|
| 3818 | int
|
---|
| 3819 | main ()
|
---|
| 3820 | {
|
---|
| 3821 |
|
---|
| 3822 | ;
|
---|
| 3823 | return 0;
|
---|
| 3824 | }
|
---|
| 3825 | _ACEOF
|
---|
[23802] | 3826 | rm -f conftest.$ac_objext
|
---|
| 3827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3828 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3829 | ac_status=$?
|
---|
| 3830 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3831 | rm -f conftest.er1
|
---|
| 3832 | cat conftest.err >&5
|
---|
| 3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3834 | (exit $ac_status); } &&
|
---|
| 3835 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3836 | || test ! -s conftest.err'
|
---|
| 3837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3838 | (eval $ac_try) 2>&5
|
---|
| 3839 | ac_status=$?
|
---|
| 3840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3841 | (exit $ac_status); }; } &&
|
---|
| 3842 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3844 | (eval $ac_try) 2>&5
|
---|
| 3845 | ac_status=$?
|
---|
| 3846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3847 | (exit $ac_status); }; }; then
|
---|
[8756] | 3848 | ac_cv_header_stdc=yes
|
---|
| 3849 | else
|
---|
[23802] | 3850 | echo "$as_me: failed program was:" >&5
|
---|
| 3851 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3852 |
|
---|
| 3853 | ac_cv_header_stdc=no
|
---|
[687] | 3854 | fi
|
---|
[23802] | 3855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3856 |
|
---|
| 3857 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3858 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[23802] | 3859 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3860 | /* confdefs.h. */
|
---|
| 3861 | _ACEOF
|
---|
| 3862 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3863 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3864 | /* end confdefs.h. */
|
---|
| 3865 | #include <string.h>
|
---|
| 3866 |
|
---|
| 3867 | _ACEOF
|
---|
| 3868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 3869 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3870 | :
|
---|
[8756] | 3871 | else
|
---|
| 3872 | ac_cv_header_stdc=no
|
---|
| 3873 | fi
|
---|
[8200] | 3874 | rm -f conftest*
|
---|
[8756] | 3875 |
|
---|
[687] | 3876 | fi
|
---|
[8756] | 3877 |
|
---|
| 3878 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3879 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[23802] | 3880 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3881 | /* confdefs.h. */
|
---|
| 3882 | _ACEOF
|
---|
| 3883 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3884 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3885 | /* end confdefs.h. */
|
---|
| 3886 | #include <stdlib.h>
|
---|
| 3887 |
|
---|
| 3888 | _ACEOF
|
---|
| 3889 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 3890 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3891 | :
|
---|
[8756] | 3892 | else
|
---|
| 3893 | ac_cv_header_stdc=no
|
---|
| 3894 | fi
|
---|
| 3895 | rm -f conftest*
|
---|
| 3896 |
|
---|
| 3897 | fi
|
---|
| 3898 |
|
---|
| 3899 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3900 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[23802] | 3901 | if test "$cross_compiling" = yes; then
|
---|
[8756] | 3902 | :
|
---|
| 3903 | else
|
---|
[23802] | 3904 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3905 | /* confdefs.h. */
|
---|
| 3906 | _ACEOF
|
---|
| 3907 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3908 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 3909 | /* end confdefs.h. */
|
---|
| 3910 | #include <ctype.h>
|
---|
| 3911 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3912 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3913 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3914 | #else
|
---|
| 3915 | # define ISLOWER(c) \
|
---|
| 3916 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3917 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3918 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3919 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3920 | #endif
|
---|
| 3921 |
|
---|
| 3922 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3923 | int
|
---|
| 3924 | main ()
|
---|
| 3925 | {
|
---|
| 3926 | int i;
|
---|
| 3927 | for (i = 0; i < 256; i++)
|
---|
| 3928 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3929 | || toupper (i) != TOUPPER (i))
|
---|
[23802] | 3930 | exit(2);
|
---|
| 3931 | exit (0);
|
---|
[8756] | 3932 | }
|
---|
| 3933 | _ACEOF
|
---|
[23802] | 3934 | rm -f conftest$ac_exeext
|
---|
| 3935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3936 | (eval $ac_link) 2>&5
|
---|
| 3937 | ac_status=$?
|
---|
| 3938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3941 | (eval $ac_try) 2>&5
|
---|
| 3942 | ac_status=$?
|
---|
| 3943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3944 | (exit $ac_status); }; }; then
|
---|
| 3945 | :
|
---|
| 3946 | else
|
---|
| 3947 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3948 | echo "$as_me: failed program was:" >&5
|
---|
| 3949 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 3950 |
|
---|
[23802] | 3951 | ( exit $ac_status )
|
---|
| 3952 | ac_cv_header_stdc=no
|
---|
[8756] | 3953 | fi
|
---|
[23802] | 3954 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3955 | fi
|
---|
| 3956 | fi
|
---|
| 3957 | fi
|
---|
[23802] | 3958 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3959 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[8756] | 3960 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3961 |
|
---|
[23802] | 3962 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3963 | #define STDC_HEADERS 1
|
---|
| 3964 | _ACEOF
|
---|
[8756] | 3965 |
|
---|
| 3966 | fi
|
---|
| 3967 |
|
---|
| 3968 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3969 |
|
---|
| 3970 |
|
---|
| 3971 |
|
---|
| 3972 |
|
---|
| 3973 |
|
---|
| 3974 |
|
---|
| 3975 |
|
---|
| 3976 |
|
---|
| 3977 |
|
---|
[23802] | 3978 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3979 | inttypes.h stdint.h unistd.h
|
---|
| 3980 | do
|
---|
| 3981 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3982 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3983 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3985 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3986 | else
|
---|
| 3987 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3988 | /* confdefs.h. */
|
---|
| 3989 | _ACEOF
|
---|
| 3990 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3991 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3992 | /* end confdefs.h. */
|
---|
| 3993 | $ac_includes_default
|
---|
[22378] | 3994 |
|
---|
[23802] | 3995 | #include <$ac_header>
|
---|
| 3996 | _ACEOF
|
---|
| 3997 | rm -f conftest.$ac_objext
|
---|
| 3998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3999 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4000 | ac_status=$?
|
---|
| 4001 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4002 | rm -f conftest.er1
|
---|
| 4003 | cat conftest.err >&5
|
---|
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4005 | (exit $ac_status); } &&
|
---|
| 4006 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4007 | || test ! -s conftest.err'
|
---|
| 4008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4009 | (eval $ac_try) 2>&5
|
---|
| 4010 | ac_status=$?
|
---|
| 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4012 | (exit $ac_status); }; } &&
|
---|
| 4013 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4015 | (eval $ac_try) 2>&5
|
---|
| 4016 | ac_status=$?
|
---|
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4018 | (exit $ac_status); }; }; then
|
---|
| 4019 | eval "$as_ac_Header=yes"
|
---|
| 4020 | else
|
---|
| 4021 | echo "$as_me: failed program was:" >&5
|
---|
| 4022 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 4023 |
|
---|
[23802] | 4024 | eval "$as_ac_Header=no"
|
---|
| 4025 | fi
|
---|
| 4026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4027 | fi
|
---|
| 4028 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4029 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4031 | cat >>confdefs.h <<_ACEOF
|
---|
| 4032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4033 | _ACEOF
|
---|
[22378] | 4034 |
|
---|
[23802] | 4035 | fi
|
---|
[22378] | 4036 |
|
---|
[23802] | 4037 | done
|
---|
[22378] | 4038 |
|
---|
| 4039 |
|
---|
[23802] | 4040 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4041 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4042 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 4043 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4044 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4045 | fi
|
---|
| 4046 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4047 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[8756] | 4048 | else
|
---|
[23802] | 4049 | # Is the header compilable?
|
---|
| 4050 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 4051 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 4052 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4053 | /* confdefs.h. */
|
---|
| 4054 | _ACEOF
|
---|
| 4055 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4056 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4057 | /* end confdefs.h. */
|
---|
[23802] | 4058 | $ac_includes_default
|
---|
| 4059 | #include <minix/config.h>
|
---|
| 4060 | _ACEOF
|
---|
| 4061 | rm -f conftest.$ac_objext
|
---|
| 4062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4063 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4064 | ac_status=$?
|
---|
| 4065 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4066 | rm -f conftest.er1
|
---|
| 4067 | cat conftest.err >&5
|
---|
| 4068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4069 | (exit $ac_status); } &&
|
---|
| 4070 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4071 | || test ! -s conftest.err'
|
---|
| 4072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4073 | (eval $ac_try) 2>&5
|
---|
| 4074 | ac_status=$?
|
---|
| 4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4076 | (exit $ac_status); }; } &&
|
---|
| 4077 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4079 | (eval $ac_try) 2>&5
|
---|
| 4080 | ac_status=$?
|
---|
| 4081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4082 | (exit $ac_status); }; }; then
|
---|
| 4083 | ac_header_compiler=yes
|
---|
| 4084 | else
|
---|
| 4085 | echo "$as_me: failed program was:" >&5
|
---|
| 4086 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8756] | 4087 |
|
---|
[23802] | 4088 | ac_header_compiler=no
|
---|
| 4089 | fi
|
---|
| 4090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4091 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 4092 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[22378] | 4093 |
|
---|
[23802] | 4094 | # Is the header present?
|
---|
| 4095 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 4096 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 4097 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4098 | /* confdefs.h. */
|
---|
[8756] | 4099 | _ACEOF
|
---|
[23802] | 4100 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4101 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4102 | /* end confdefs.h. */
|
---|
| 4103 | #include <minix/config.h>
|
---|
| 4104 | _ACEOF
|
---|
| 4105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 4106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 4107 | ac_status=$?
|
---|
| 4108 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4109 | rm -f conftest.er1
|
---|
| 4110 | cat conftest.err >&5
|
---|
| 4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4112 | (exit $ac_status); } >/dev/null; then
|
---|
| 4113 | if test -s conftest.err; then
|
---|
| 4114 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 4115 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 4116 | else
|
---|
| 4117 | ac_cpp_err=
|
---|
| 4118 | fi
|
---|
[8756] | 4119 | else
|
---|
[23802] | 4120 | ac_cpp_err=yes
|
---|
[8756] | 4121 | fi
|
---|
[23802] | 4122 | if test -z "$ac_cpp_err"; then
|
---|
| 4123 | ac_header_preproc=yes
|
---|
| 4124 | else
|
---|
| 4125 | echo "$as_me: failed program was:" >&5
|
---|
| 4126 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4127 |
|
---|
| 4128 | ac_header_preproc=no
|
---|
[8756] | 4129 | fi
|
---|
[23802] | 4130 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4131 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4132 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[8756] | 4133 |
|
---|
[23802] | 4134 | # So? What about this header?
|
---|
| 4135 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4136 | yes:no: )
|
---|
| 4137 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4138 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4139 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 4140 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 4141 | ac_header_preproc=yes
|
---|
| 4142 | ;;
|
---|
| 4143 | no:yes:* )
|
---|
| 4144 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 4145 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 4146 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 4147 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 4148 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 4149 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 4150 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4151 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4152 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4153 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4154 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4155 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 4156 | (
|
---|
| 4157 | cat <<\_ASBOX
|
---|
| 4158 | ## ------------------------------------------ ##
|
---|
| 4159 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 4160 | ## ------------------------------------------ ##
|
---|
| 4161 | _ASBOX
|
---|
| 4162 | ) |
|
---|
| 4163 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 4164 | ;;
|
---|
| 4165 | esac
|
---|
| 4166 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4167 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 4168 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4169 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4170 | else
|
---|
| 4171 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4172 | fi
|
---|
| 4173 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4174 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[8756] | 4175 |
|
---|
[23802] | 4176 | fi
|
---|
| 4177 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 4178 | MINIX=yes
|
---|
| 4179 | else
|
---|
| 4180 | MINIX=
|
---|
| 4181 | fi
|
---|
[8756] | 4182 |
|
---|
| 4183 |
|
---|
[23802] | 4184 | if test "$MINIX" = yes; then
|
---|
[22378] | 4185 |
|
---|
[23802] | 4186 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4187 | #define _POSIX_SOURCE 1
|
---|
| 4188 | _ACEOF
|
---|
[22378] | 4189 |
|
---|
| 4190 |
|
---|
[23802] | 4191 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4192 | #define _POSIX_1_SOURCE 2
|
---|
| 4193 | _ACEOF
|
---|
[8756] | 4194 |
|
---|
[23802] | 4195 |
|
---|
| 4196 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4197 | #define _MINIX 1
|
---|
[8756] | 4198 | _ACEOF
|
---|
| 4199 |
|
---|
| 4200 | fi
|
---|
| 4201 |
|
---|
[23802] | 4202 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4203 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 4204 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 4205 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 4206 | else
|
---|
| 4207 | ac_cv_prog_cc_stdc=no
|
---|
| 4208 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4209 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4210 | # breaks some systems' header files.
|
---|
| 4211 | # AIX -qlanglvl=ansi
|
---|
| 4212 | # Ultrix and OSF/1 -std1
|
---|
| 4213 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4214 | # SVR4 -Xc
|
---|
| 4215 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4216 | do
|
---|
| 4217 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[23802] | 4218 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4219 | /* confdefs.h. */
|
---|
| 4220 | _ACEOF
|
---|
| 4221 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4222 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4223 | /* end confdefs.h. */
|
---|
[700] | 4224 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4225 | choke me
|
---|
[8756] | 4226 | #endif
|
---|
[700] | 4227 |
|
---|
[8756] | 4228 | int
|
---|
| 4229 | main ()
|
---|
| 4230 | {
|
---|
[700] | 4231 | int test (int i, double x);
|
---|
| 4232 | struct s1 {int (*f) (int a);};
|
---|
| 4233 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 4234 | ;
|
---|
| 4235 | return 0;
|
---|
| 4236 | }
|
---|
| 4237 | _ACEOF
|
---|
[23802] | 4238 | rm -f conftest.$ac_objext
|
---|
| 4239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4240 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4241 | ac_status=$?
|
---|
| 4242 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4243 | rm -f conftest.er1
|
---|
| 4244 | cat conftest.err >&5
|
---|
| 4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4246 | (exit $ac_status); } &&
|
---|
| 4247 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4248 | || test ! -s conftest.err'
|
---|
| 4249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4250 | (eval $ac_try) 2>&5
|
---|
| 4251 | ac_status=$?
|
---|
| 4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4253 | (exit $ac_status); }; } &&
|
---|
| 4254 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4256 | (eval $ac_try) 2>&5
|
---|
| 4257 | ac_status=$?
|
---|
| 4258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4259 | (exit $ac_status); }; }; then
|
---|
[700] | 4260 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
[23802] | 4261 | else
|
---|
| 4262 | echo "$as_me: failed program was:" >&5
|
---|
| 4263 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4264 |
|
---|
[700] | 4265 | fi
|
---|
[23802] | 4266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4267 | done
|
---|
| 4268 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4269 |
|
---|
| 4270 | fi
|
---|
| 4271 |
|
---|
[23802] | 4272 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4273 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[700] | 4274 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4275 | x|xno) ;;
|
---|
| 4276 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4277 | esac
|
---|
| 4278 |
|
---|
[8200] | 4279 |
|
---|
[23802] | 4280 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4281 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[700] | 4282 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[23802] | 4283 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4284 | echo "${ECHO_T}yes" >&6
|
---|
| 4285 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4286 | #define PROTOTYPES 1
|
---|
| 4287 | _ACEOF
|
---|
[700] | 4288 |
|
---|
| 4289 | U= ANSI2KNR=
|
---|
| 4290 | else
|
---|
[23802] | 4291 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4292 | echo "${ECHO_T}no" >&6
|
---|
[700] | 4293 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4294 | fi
|
---|
| 4295 |
|
---|
[23802] | 4296 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4297 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4298 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4299 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4300 | else
|
---|
[23802] | 4301 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4302 | /* confdefs.h. */
|
---|
| 4303 | _ACEOF
|
---|
| 4304 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4305 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4306 | /* end confdefs.h. */
|
---|
[8200] | 4307 |
|
---|
[8756] | 4308 | int
|
---|
| 4309 | main ()
|
---|
| 4310 | {
|
---|
| 4311 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4312 | #ifndef __cplusplus
|
---|
| 4313 | /* Ultrix mips cc rejects this. */
|
---|
| 4314 | typedef int charset[2];
|
---|
[23802] | 4315 | const charset x;
|
---|
[8756] | 4316 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[23802] | 4317 | char const *const *ccp;
|
---|
| 4318 | char **p;
|
---|
[8756] | 4319 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4320 | struct point {int x, y;};
|
---|
| 4321 | static struct point const zero = {0,0};
|
---|
| 4322 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4323 | It does not let you subtract one const X* pointer from another in
|
---|
| 4324 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4325 | expression */
|
---|
| 4326 | const char *g = "string";
|
---|
[23802] | 4327 | ccp = &g + (g ? g-g : 0);
|
---|
[8756] | 4328 | /* HPUX 7.0 cc rejects these. */
|
---|
[23802] | 4329 | ++ccp;
|
---|
| 4330 | p = (char**) ccp;
|
---|
| 4331 | ccp = (char const *const *) p;
|
---|
[8756] | 4332 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4333 | char *t;
|
---|
| 4334 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4335 |
|
---|
[8756] | 4336 | *t++ = 0;
|
---|
| 4337 | }
|
---|
| 4338 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4339 | int x[] = {25, 17};
|
---|
| 4340 | const int *foo = &x[0];
|
---|
| 4341 | ++foo;
|
---|
| 4342 | }
|
---|
| 4343 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4344 | typedef const int *iptr;
|
---|
| 4345 | iptr p = 0;
|
---|
| 4346 | ++p;
|
---|
| 4347 | }
|
---|
| 4348 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4349 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4350 | struct s { int j; const int *ap[3]; };
|
---|
| 4351 | struct s *b; b->j = 5;
|
---|
| 4352 | }
|
---|
| 4353 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4354 | const int foo = 10;
|
---|
| 4355 | }
|
---|
| 4356 | #endif
|
---|
[8200] | 4357 |
|
---|
[8756] | 4358 | ;
|
---|
| 4359 | return 0;
|
---|
[3631] | 4360 | }
|
---|
[8756] | 4361 | _ACEOF
|
---|
[23802] | 4362 | rm -f conftest.$ac_objext
|
---|
| 4363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4364 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4365 | ac_status=$?
|
---|
| 4366 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4367 | rm -f conftest.er1
|
---|
| 4368 | cat conftest.err >&5
|
---|
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4370 | (exit $ac_status); } &&
|
---|
| 4371 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4372 | || test ! -s conftest.err'
|
---|
| 4373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4374 | (eval $ac_try) 2>&5
|
---|
| 4375 | ac_status=$?
|
---|
| 4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4377 | (exit $ac_status); }; } &&
|
---|
| 4378 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4380 | (eval $ac_try) 2>&5
|
---|
| 4381 | ac_status=$?
|
---|
| 4382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4383 | (exit $ac_status); }; }; then
|
---|
[687] | 4384 | ac_cv_c_const=yes
|
---|
| 4385 | else
|
---|
[23802] | 4386 | echo "$as_me: failed program was:" >&5
|
---|
| 4387 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4388 |
|
---|
| 4389 | ac_cv_c_const=no
|
---|
[687] | 4390 | fi
|
---|
[23802] | 4391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4392 | fi
|
---|
[23802] | 4393 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4394 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[3631] | 4395 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4396 |
|
---|
[23802] | 4397 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4398 | #define const
|
---|
| 4399 | _ACEOF
|
---|
[8756] | 4400 |
|
---|
[687] | 4401 | fi
|
---|
| 4402 |
|
---|
[23802] | 4403 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4404 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4405 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4406 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4407 | else
|
---|
| 4408 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4409 | /* confdefs.h. */
|
---|
| 4410 | _ACEOF
|
---|
| 4411 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4412 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4413 | /* end confdefs.h. */
|
---|
| 4414 | $ac_includes_default
|
---|
| 4415 | int
|
---|
| 4416 | main ()
|
---|
| 4417 | {
|
---|
| 4418 | if ((off_t *) 0)
|
---|
| 4419 | return 0;
|
---|
| 4420 | if (sizeof (off_t))
|
---|
| 4421 | return 0;
|
---|
| 4422 | ;
|
---|
| 4423 | return 0;
|
---|
| 4424 | }
|
---|
| 4425 | _ACEOF
|
---|
| 4426 | rm -f conftest.$ac_objext
|
---|
| 4427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4428 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4429 | ac_status=$?
|
---|
| 4430 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4431 | rm -f conftest.er1
|
---|
| 4432 | cat conftest.err >&5
|
---|
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4434 | (exit $ac_status); } &&
|
---|
| 4435 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4436 | || test ! -s conftest.err'
|
---|
| 4437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4438 | (eval $ac_try) 2>&5
|
---|
| 4439 | ac_status=$?
|
---|
| 4440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4441 | (exit $ac_status); }; } &&
|
---|
| 4442 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4444 | (eval $ac_try) 2>&5
|
---|
| 4445 | ac_status=$?
|
---|
| 4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4447 | (exit $ac_status); }; }; then
|
---|
| 4448 | ac_cv_type_off_t=yes
|
---|
| 4449 | else
|
---|
| 4450 | echo "$as_me: failed program was:" >&5
|
---|
| 4451 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 4452 |
|
---|
[23802] | 4453 | ac_cv_type_off_t=no
|
---|
| 4454 | fi
|
---|
| 4455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4456 | fi
|
---|
| 4457 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4458 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4459 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4460 | :
|
---|
[687] | 4461 | else
|
---|
| 4462 |
|
---|
[8756] | 4463 | cat >>confdefs.h <<_ACEOF
|
---|
[23802] | 4464 | #define off_t long
|
---|
[8756] | 4465 | _ACEOF
|
---|
[687] | 4466 |
|
---|
| 4467 | fi
|
---|
[8200] | 4468 |
|
---|
[23802] | 4469 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4470 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4471 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4472 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4473 | else
|
---|
| 4474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4475 | /* confdefs.h. */
|
---|
| 4476 | _ACEOF
|
---|
| 4477 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4479 | /* end confdefs.h. */
|
---|
| 4480 | $ac_includes_default
|
---|
| 4481 | int
|
---|
| 4482 | main ()
|
---|
| 4483 | {
|
---|
| 4484 | if ((size_t *) 0)
|
---|
| 4485 | return 0;
|
---|
| 4486 | if (sizeof (size_t))
|
---|
| 4487 | return 0;
|
---|
| 4488 | ;
|
---|
| 4489 | return 0;
|
---|
| 4490 | }
|
---|
| 4491 | _ACEOF
|
---|
| 4492 | rm -f conftest.$ac_objext
|
---|
| 4493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4494 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4495 | ac_status=$?
|
---|
| 4496 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4497 | rm -f conftest.er1
|
---|
| 4498 | cat conftest.err >&5
|
---|
| 4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4500 | (exit $ac_status); } &&
|
---|
| 4501 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4502 | || test ! -s conftest.err'
|
---|
| 4503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4504 | (eval $ac_try) 2>&5
|
---|
| 4505 | ac_status=$?
|
---|
| 4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4507 | (exit $ac_status); }; } &&
|
---|
| 4508 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4510 | (eval $ac_try) 2>&5
|
---|
| 4511 | ac_status=$?
|
---|
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4513 | (exit $ac_status); }; }; then
|
---|
| 4514 | ac_cv_type_size_t=yes
|
---|
| 4515 | else
|
---|
| 4516 | echo "$as_me: failed program was:" >&5
|
---|
| 4517 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4518 |
|
---|
[23802] | 4519 | ac_cv_type_size_t=no
|
---|
| 4520 | fi
|
---|
| 4521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4522 | fi
|
---|
| 4523 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4524 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4525 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4526 | :
|
---|
[687] | 4527 | else
|
---|
[8200] | 4528 |
|
---|
[8756] | 4529 | cat >>confdefs.h <<_ACEOF
|
---|
[23802] | 4530 | #define size_t unsigned
|
---|
[8756] | 4531 | _ACEOF
|
---|
[687] | 4532 |
|
---|
| 4533 | fi
|
---|
| 4534 |
|
---|
[23802] | 4535 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4536 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4537 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4538 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4539 | else
|
---|
[23802] | 4540 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4541 | /* confdefs.h. */
|
---|
| 4542 | _ACEOF
|
---|
| 4543 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4544 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4545 | /* end confdefs.h. */
|
---|
[687] | 4546 | #include <sys/types.h>
|
---|
| 4547 | #include <sys/time.h>
|
---|
| 4548 | #include <time.h>
|
---|
[8756] | 4549 |
|
---|
| 4550 | int
|
---|
| 4551 | main ()
|
---|
| 4552 | {
|
---|
| 4553 | if ((struct tm *) 0)
|
---|
| 4554 | return 0;
|
---|
| 4555 | ;
|
---|
| 4556 | return 0;
|
---|
| 4557 | }
|
---|
| 4558 | _ACEOF
|
---|
[23802] | 4559 | rm -f conftest.$ac_objext
|
---|
| 4560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4561 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4562 | ac_status=$?
|
---|
| 4563 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4564 | rm -f conftest.er1
|
---|
| 4565 | cat conftest.err >&5
|
---|
| 4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4567 | (exit $ac_status); } &&
|
---|
| 4568 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4569 | || test ! -s conftest.err'
|
---|
| 4570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4571 | (eval $ac_try) 2>&5
|
---|
| 4572 | ac_status=$?
|
---|
| 4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4574 | (exit $ac_status); }; } &&
|
---|
| 4575 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4577 | (eval $ac_try) 2>&5
|
---|
| 4578 | ac_status=$?
|
---|
| 4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4580 | (exit $ac_status); }; }; then
|
---|
[687] | 4581 | ac_cv_header_time=yes
|
---|
| 4582 | else
|
---|
[23802] | 4583 | echo "$as_me: failed program was:" >&5
|
---|
| 4584 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4585 |
|
---|
| 4586 | ac_cv_header_time=no
|
---|
[687] | 4587 | fi
|
---|
[23802] | 4588 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4589 | fi
|
---|
[23802] | 4590 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4591 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
[8756] | 4592 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4593 |
|
---|
[23802] | 4594 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4595 | #define TIME_WITH_SYS_TIME 1
|
---|
| 4596 | _ACEOF
|
---|
[687] | 4597 |
|
---|
| 4598 | fi
|
---|
| 4599 |
|
---|
[23802] | 4600 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4601 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4602 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4603 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4604 | else
|
---|
[23802] | 4605 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4606 | /* confdefs.h. */
|
---|
| 4607 | _ACEOF
|
---|
| 4608 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4609 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4610 | /* end confdefs.h. */
|
---|
[687] | 4611 | #include <sys/types.h>
|
---|
| 4612 | #include <time.h>
|
---|
[8756] | 4613 |
|
---|
| 4614 | int
|
---|
| 4615 | main ()
|
---|
| 4616 | {
|
---|
[23802] | 4617 | struct tm *tp; tp->tm_sec;
|
---|
[8756] | 4618 | ;
|
---|
| 4619 | return 0;
|
---|
| 4620 | }
|
---|
| 4621 | _ACEOF
|
---|
[23802] | 4622 | rm -f conftest.$ac_objext
|
---|
| 4623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4624 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4625 | ac_status=$?
|
---|
| 4626 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4627 | rm -f conftest.er1
|
---|
| 4628 | cat conftest.err >&5
|
---|
| 4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4630 | (exit $ac_status); } &&
|
---|
| 4631 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4632 | || test ! -s conftest.err'
|
---|
| 4633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4634 | (eval $ac_try) 2>&5
|
---|
| 4635 | ac_status=$?
|
---|
| 4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4637 | (exit $ac_status); }; } &&
|
---|
| 4638 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4640 | (eval $ac_try) 2>&5
|
---|
| 4641 | ac_status=$?
|
---|
| 4642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4643 | (exit $ac_status); }; }; then
|
---|
[687] | 4644 | ac_cv_struct_tm=time.h
|
---|
| 4645 | else
|
---|
[23802] | 4646 | echo "$as_me: failed program was:" >&5
|
---|
| 4647 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4648 |
|
---|
| 4649 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4650 | fi
|
---|
[23802] | 4651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4652 | fi
|
---|
[23802] | 4653 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4654 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
[8756] | 4655 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4656 |
|
---|
[23802] | 4657 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4658 | #define TM_IN_SYS_TIME 1
|
---|
| 4659 | _ACEOF
|
---|
[687] | 4660 |
|
---|
| 4661 | fi
|
---|
| 4662 |
|
---|
[8200] | 4663 |
|
---|
[687] | 4664 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[23802] | 4665 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4666 | /* confdefs.h. */
|
---|
| 4667 | _ACEOF
|
---|
| 4668 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4669 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4670 | /* end confdefs.h. */
|
---|
[687] | 4671 | #include <stdio.h>
|
---|
| 4672 |
|
---|
[8756] | 4673 | int
|
---|
| 4674 | main ()
|
---|
| 4675 | {
|
---|
| 4676 | FILE *rubbish = popen("yes", "r");
|
---|
| 4677 | ;
|
---|
| 4678 | return 0;
|
---|
| 4679 | }
|
---|
| 4680 | _ACEOF
|
---|
[23802] | 4681 | rm -f conftest.$ac_objext
|
---|
| 4682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4683 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4684 | ac_status=$?
|
---|
| 4685 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4686 | rm -f conftest.er1
|
---|
| 4687 | cat conftest.err >&5
|
---|
| 4688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4689 | (exit $ac_status); } &&
|
---|
| 4690 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4691 | || test ! -s conftest.err'
|
---|
| 4692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4693 | (eval $ac_try) 2>&5
|
---|
| 4694 | ac_status=$?
|
---|
| 4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4696 | (exit $ac_status); }; } &&
|
---|
| 4697 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4699 | (eval $ac_try) 2>&5
|
---|
| 4700 | ac_status=$?
|
---|
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4702 | (exit $ac_status); }; }; then
|
---|
| 4703 | :
|
---|
| 4704 | else
|
---|
| 4705 | echo "$as_me: failed program was:" >&5
|
---|
| 4706 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 4707 |
|
---|
[23802] | 4708 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4709 | fi
|
---|
[23802] | 4710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4711 | fi
|
---|
| 4712 |
|
---|
[8200] | 4713 |
|
---|
[23802] | 4714 |
|
---|
| 4715 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4716 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4717 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4718 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4719 | else
|
---|
[8756] | 4720 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4721 | LIBS="-lg $LIBS"
|
---|
[23802] | 4722 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4723 | /* confdefs.h. */
|
---|
| 4724 | _ACEOF
|
---|
| 4725 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4726 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4727 | /* end confdefs.h. */
|
---|
[562] | 4728 |
|
---|
[8756] | 4729 |
|
---|
| 4730 | int
|
---|
| 4731 | main ()
|
---|
| 4732 | {
|
---|
[23802] | 4733 | main ();
|
---|
[8756] | 4734 | ;
|
---|
| 4735 | return 0;
|
---|
| 4736 | }
|
---|
| 4737 | _ACEOF
|
---|
[23802] | 4738 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4740 | (eval $ac_link) 2>conftest.er1
|
---|
| 4741 | ac_status=$?
|
---|
| 4742 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4743 | rm -f conftest.er1
|
---|
| 4744 | cat conftest.err >&5
|
---|
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4746 | (exit $ac_status); } &&
|
---|
| 4747 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4748 | || test ! -s conftest.err'
|
---|
| 4749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4750 | (eval $ac_try) 2>&5
|
---|
| 4751 | ac_status=$?
|
---|
| 4752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4753 | (exit $ac_status); }; } &&
|
---|
| 4754 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4756 | (eval $ac_try) 2>&5
|
---|
| 4757 | ac_status=$?
|
---|
| 4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4759 | (exit $ac_status); }; }; then
|
---|
[8756] | 4760 | ac_cv_lib_g_main=yes
|
---|
[562] | 4761 | else
|
---|
[23802] | 4762 | echo "$as_me: failed program was:" >&5
|
---|
| 4763 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4764 |
|
---|
| 4765 | ac_cv_lib_g_main=no
|
---|
[562] | 4766 | fi
|
---|
[23802] | 4767 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4768 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4769 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4770 | fi
|
---|
[23802] | 4771 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4772 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4773 | if test $ac_cv_lib_g_main = yes; then
|
---|
[8756] | 4774 | cat >>confdefs.h <<_ACEOF
|
---|
| 4775 | #define HAVE_LIBG 1
|
---|
| 4776 | _ACEOF
|
---|
[562] | 4777 |
|
---|
| 4778 | LIBS="-lg $LIBS"
|
---|
| 4779 |
|
---|
| 4780 | fi
|
---|
[8756] | 4781 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4782 |
|
---|
[23802] | 4783 |
|
---|
| 4784 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4785 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4786 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4787 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4788 | else
|
---|
[8756] | 4789 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4790 | LIBS="-lm $LIBS"
|
---|
[23802] | 4791 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4792 | /* confdefs.h. */
|
---|
| 4793 | _ACEOF
|
---|
| 4794 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4795 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4796 | /* end confdefs.h. */
|
---|
[8200] | 4797 |
|
---|
[562] | 4798 |
|
---|
[8756] | 4799 | int
|
---|
| 4800 | main ()
|
---|
| 4801 | {
|
---|
[23802] | 4802 | main ();
|
---|
[8756] | 4803 | ;
|
---|
| 4804 | return 0;
|
---|
| 4805 | }
|
---|
| 4806 | _ACEOF
|
---|
[23802] | 4807 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4809 | (eval $ac_link) 2>conftest.er1
|
---|
| 4810 | ac_status=$?
|
---|
| 4811 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4812 | rm -f conftest.er1
|
---|
| 4813 | cat conftest.err >&5
|
---|
| 4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4815 | (exit $ac_status); } &&
|
---|
| 4816 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4817 | || test ! -s conftest.err'
|
---|
| 4818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4819 | (eval $ac_try) 2>&5
|
---|
| 4820 | ac_status=$?
|
---|
| 4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4822 | (exit $ac_status); }; } &&
|
---|
| 4823 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4825 | (eval $ac_try) 2>&5
|
---|
| 4826 | ac_status=$?
|
---|
| 4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4828 | (exit $ac_status); }; }; then
|
---|
[8756] | 4829 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4830 | else
|
---|
[23802] | 4831 | echo "$as_me: failed program was:" >&5
|
---|
| 4832 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4833 |
|
---|
| 4834 | ac_cv_lib_m_main=no
|
---|
[562] | 4835 | fi
|
---|
[23802] | 4836 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4837 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4838 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4839 | fi
|
---|
[23802] | 4840 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4841 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4842 | if test $ac_cv_lib_m_main = yes; then
|
---|
[8756] | 4843 | cat >>confdefs.h <<_ACEOF
|
---|
| 4844 | #define HAVE_LIBM 1
|
---|
| 4845 | _ACEOF
|
---|
[562] | 4846 |
|
---|
| 4847 | LIBS="-lm $LIBS"
|
---|
| 4848 |
|
---|
| 4849 | fi
|
---|
[8756] | 4850 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4851 |
|
---|
[23802] | 4852 |
|
---|
| 4853 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4854 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4855 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4856 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4857 | else
|
---|
[8756] | 4858 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4859 | LIBS="-lcrypt $LIBS"
|
---|
[23802] | 4860 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4861 | /* confdefs.h. */
|
---|
| 4862 | _ACEOF
|
---|
| 4863 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4864 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4865 | /* end confdefs.h. */
|
---|
[562] | 4866 |
|
---|
[8756] | 4867 |
|
---|
| 4868 | int
|
---|
| 4869 | main ()
|
---|
| 4870 | {
|
---|
[23802] | 4871 | main ();
|
---|
[8756] | 4872 | ;
|
---|
| 4873 | return 0;
|
---|
| 4874 | }
|
---|
| 4875 | _ACEOF
|
---|
[23802] | 4876 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4878 | (eval $ac_link) 2>conftest.er1
|
---|
| 4879 | ac_status=$?
|
---|
| 4880 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4881 | rm -f conftest.er1
|
---|
| 4882 | cat conftest.err >&5
|
---|
| 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4884 | (exit $ac_status); } &&
|
---|
| 4885 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4886 | || test ! -s conftest.err'
|
---|
| 4887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4888 | (eval $ac_try) 2>&5
|
---|
| 4889 | ac_status=$?
|
---|
| 4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4891 | (exit $ac_status); }; } &&
|
---|
| 4892 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4894 | (eval $ac_try) 2>&5
|
---|
| 4895 | ac_status=$?
|
---|
| 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4897 | (exit $ac_status); }; }; then
|
---|
[8756] | 4898 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4899 | else
|
---|
[23802] | 4900 | echo "$as_me: failed program was:" >&5
|
---|
| 4901 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4902 |
|
---|
| 4903 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4904 | fi
|
---|
[23802] | 4905 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4906 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8756] | 4907 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4908 | fi
|
---|
[23802] | 4909 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4910 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4911 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[8756] | 4912 | cat >>confdefs.h <<_ACEOF
|
---|
| 4913 | #define HAVE_LIBCRYPT 1
|
---|
| 4914 | _ACEOF
|
---|
[562] | 4915 |
|
---|
[8756] | 4916 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4917 |
|
---|
| 4918 | fi
|
---|
[8756] | 4919 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4920 |
|
---|
[20842] | 4921 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 4922 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 4923 | #fi
|
---|
[562] | 4924 |
|
---|
[23802] | 4925 |
|
---|
| 4926 |
|
---|
| 4927 |
|
---|
| 4928 |
|
---|
| 4929 |
|
---|
[687] | 4930 | ac_header_dirent=no
|
---|
[8756] | 4931 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[23802] | 4932 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4933 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4934 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4936 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4937 | else
|
---|
[23802] | 4938 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4939 | /* confdefs.h. */
|
---|
| 4940 | _ACEOF
|
---|
| 4941 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4942 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 4943 | /* end confdefs.h. */
|
---|
[687] | 4944 | #include <sys/types.h>
|
---|
| 4945 | #include <$ac_hdr>
|
---|
[8756] | 4946 |
|
---|
| 4947 | int
|
---|
| 4948 | main ()
|
---|
| 4949 | {
|
---|
| 4950 | if ((DIR *) 0)
|
---|
| 4951 | return 0;
|
---|
| 4952 | ;
|
---|
| 4953 | return 0;
|
---|
| 4954 | }
|
---|
| 4955 | _ACEOF
|
---|
[23802] | 4956 | rm -f conftest.$ac_objext
|
---|
| 4957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4958 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4959 | ac_status=$?
|
---|
| 4960 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4961 | rm -f conftest.er1
|
---|
| 4962 | cat conftest.err >&5
|
---|
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4964 | (exit $ac_status); } &&
|
---|
| 4965 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4966 | || test ! -s conftest.err'
|
---|
| 4967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4968 | (eval $ac_try) 2>&5
|
---|
| 4969 | ac_status=$?
|
---|
| 4970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4971 | (exit $ac_status); }; } &&
|
---|
| 4972 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4974 | (eval $ac_try) 2>&5
|
---|
| 4975 | ac_status=$?
|
---|
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4977 | (exit $ac_status); }; }; then
|
---|
[8756] | 4978 | eval "$as_ac_Header=yes"
|
---|
[562] | 4979 | else
|
---|
[23802] | 4980 | echo "$as_me: failed program was:" >&5
|
---|
| 4981 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4982 |
|
---|
| 4983 | eval "$as_ac_Header=no"
|
---|
[687] | 4984 | fi
|
---|
[23802] | 4985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4986 | fi
|
---|
[23802] | 4987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4988 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4989 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[8756] | 4990 | cat >>confdefs.h <<_ACEOF
|
---|
[23802] | 4991 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[8756] | 4992 | _ACEOF
|
---|
| 4993 |
|
---|
| 4994 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 4995 | fi
|
---|
[8756] | 4996 |
|
---|
[687] | 4997 | done
|
---|
| 4998 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4999 | if test $ac_header_dirent = dirent.h; then
|
---|
[23802] | 5000 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5001 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 5002 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5003 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5004 | else
|
---|
[8756] | 5005 | ac_func_search_save_LIBS=$LIBS
|
---|
[23802] | 5006 | ac_cv_search_opendir=no
|
---|
| 5007 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5008 | /* confdefs.h. */
|
---|
| 5009 | _ACEOF
|
---|
| 5010 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5011 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5012 | /* end confdefs.h. */
|
---|
| 5013 |
|
---|
[23802] | 5014 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5015 | #ifdef __cplusplus
|
---|
| 5016 | extern "C"
|
---|
| 5017 | #endif
|
---|
[23802] | 5018 | /* We use char because int might match the return type of a gcc2
|
---|
| 5019 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5020 | char opendir ();
|
---|
| 5021 | int
|
---|
| 5022 | main ()
|
---|
| 5023 | {
|
---|
[23802] | 5024 | opendir ();
|
---|
[8756] | 5025 | ;
|
---|
| 5026 | return 0;
|
---|
| 5027 | }
|
---|
| 5028 | _ACEOF
|
---|
[23802] | 5029 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5031 | (eval $ac_link) 2>conftest.er1
|
---|
| 5032 | ac_status=$?
|
---|
| 5033 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5034 | rm -f conftest.er1
|
---|
| 5035 | cat conftest.err >&5
|
---|
| 5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5037 | (exit $ac_status); } &&
|
---|
| 5038 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5039 | || test ! -s conftest.err'
|
---|
| 5040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5041 | (eval $ac_try) 2>&5
|
---|
| 5042 | ac_status=$?
|
---|
| 5043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5044 | (exit $ac_status); }; } &&
|
---|
| 5045 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5047 | (eval $ac_try) 2>&5
|
---|
| 5048 | ac_status=$?
|
---|
| 5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5050 | (exit $ac_status); }; }; then
|
---|
| 5051 | ac_cv_search_opendir="none required"
|
---|
| 5052 | else
|
---|
| 5053 | echo "$as_me: failed program was:" >&5
|
---|
| 5054 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5055 |
|
---|
| 5056 | fi
|
---|
| 5057 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5058 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5059 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5060 | for ac_lib in dir; do
|
---|
[22378] | 5061 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[23802] | 5062 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5063 | /* confdefs.h. */
|
---|
| 5064 | _ACEOF
|
---|
| 5065 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5066 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5067 | /* end confdefs.h. */
|
---|
[8200] | 5068 |
|
---|
[23802] | 5069 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5070 | #ifdef __cplusplus
|
---|
| 5071 | extern "C"
|
---|
| 5072 | #endif
|
---|
| 5073 | /* We use char because int might match the return type of a gcc2
|
---|
| 5074 | builtin and then its argument prototype would still apply. */
|
---|
| 5075 | char opendir ();
|
---|
| 5076 | int
|
---|
| 5077 | main ()
|
---|
| 5078 | {
|
---|
| 5079 | opendir ();
|
---|
| 5080 | ;
|
---|
| 5081 | return 0;
|
---|
| 5082 | }
|
---|
| 5083 | _ACEOF
|
---|
| 5084 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5086 | (eval $ac_link) 2>conftest.er1
|
---|
| 5087 | ac_status=$?
|
---|
| 5088 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5089 | rm -f conftest.er1
|
---|
| 5090 | cat conftest.err >&5
|
---|
| 5091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5092 | (exit $ac_status); } &&
|
---|
| 5093 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5094 | || test ! -s conftest.err'
|
---|
| 5095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5096 | (eval $ac_try) 2>&5
|
---|
| 5097 | ac_status=$?
|
---|
| 5098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5099 | (exit $ac_status); }; } &&
|
---|
| 5100 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5102 | (eval $ac_try) 2>&5
|
---|
| 5103 | ac_status=$?
|
---|
| 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5105 | (exit $ac_status); }; }; then
|
---|
| 5106 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5107 | break
|
---|
[8200] | 5108 | else
|
---|
[23802] | 5109 | echo "$as_me: failed program was:" >&5
|
---|
| 5110 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5111 |
|
---|
[687] | 5112 | fi
|
---|
[23802] | 5113 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5114 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5115 | done
|
---|
| 5116 | fi
|
---|
[8756] | 5117 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5118 | fi
|
---|
[23802] | 5119 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5120 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5121 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5122 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[687] | 5123 |
|
---|
[8756] | 5124 | fi
|
---|
| 5125 |
|
---|
[687] | 5126 | else
|
---|
[23802] | 5127 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5128 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 5129 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5130 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5131 | else
|
---|
[8756] | 5132 | ac_func_search_save_LIBS=$LIBS
|
---|
[23802] | 5133 | ac_cv_search_opendir=no
|
---|
| 5134 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5135 | /* confdefs.h. */
|
---|
| 5136 | _ACEOF
|
---|
| 5137 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5138 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5139 | /* end confdefs.h. */
|
---|
| 5140 |
|
---|
[23802] | 5141 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5142 | #ifdef __cplusplus
|
---|
| 5143 | extern "C"
|
---|
| 5144 | #endif
|
---|
[23802] | 5145 | /* We use char because int might match the return type of a gcc2
|
---|
| 5146 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5147 | char opendir ();
|
---|
| 5148 | int
|
---|
| 5149 | main ()
|
---|
| 5150 | {
|
---|
[23802] | 5151 | opendir ();
|
---|
[8756] | 5152 | ;
|
---|
| 5153 | return 0;
|
---|
| 5154 | }
|
---|
| 5155 | _ACEOF
|
---|
[23802] | 5156 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5158 | (eval $ac_link) 2>conftest.er1
|
---|
| 5159 | ac_status=$?
|
---|
| 5160 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5161 | rm -f conftest.er1
|
---|
| 5162 | cat conftest.err >&5
|
---|
| 5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5164 | (exit $ac_status); } &&
|
---|
| 5165 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5166 | || test ! -s conftest.err'
|
---|
| 5167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5168 | (eval $ac_try) 2>&5
|
---|
| 5169 | ac_status=$?
|
---|
| 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5171 | (exit $ac_status); }; } &&
|
---|
| 5172 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5174 | (eval $ac_try) 2>&5
|
---|
| 5175 | ac_status=$?
|
---|
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5177 | (exit $ac_status); }; }; then
|
---|
| 5178 | ac_cv_search_opendir="none required"
|
---|
| 5179 | else
|
---|
| 5180 | echo "$as_me: failed program was:" >&5
|
---|
| 5181 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5182 |
|
---|
| 5183 | fi
|
---|
| 5184 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5185 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5186 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5187 | for ac_lib in x; do
|
---|
[22378] | 5188 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[23802] | 5189 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5190 | /* confdefs.h. */
|
---|
| 5191 | _ACEOF
|
---|
| 5192 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5193 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5194 | /* end confdefs.h. */
|
---|
[8200] | 5195 |
|
---|
[23802] | 5196 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5197 | #ifdef __cplusplus
|
---|
| 5198 | extern "C"
|
---|
| 5199 | #endif
|
---|
| 5200 | /* We use char because int might match the return type of a gcc2
|
---|
| 5201 | builtin and then its argument prototype would still apply. */
|
---|
| 5202 | char opendir ();
|
---|
| 5203 | int
|
---|
| 5204 | main ()
|
---|
| 5205 | {
|
---|
| 5206 | opendir ();
|
---|
| 5207 | ;
|
---|
| 5208 | return 0;
|
---|
| 5209 | }
|
---|
| 5210 | _ACEOF
|
---|
| 5211 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5213 | (eval $ac_link) 2>conftest.er1
|
---|
| 5214 | ac_status=$?
|
---|
| 5215 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5216 | rm -f conftest.er1
|
---|
| 5217 | cat conftest.err >&5
|
---|
| 5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5219 | (exit $ac_status); } &&
|
---|
| 5220 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5221 | || test ! -s conftest.err'
|
---|
| 5222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5223 | (eval $ac_try) 2>&5
|
---|
| 5224 | ac_status=$?
|
---|
| 5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5226 | (exit $ac_status); }; } &&
|
---|
| 5227 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5229 | (eval $ac_try) 2>&5
|
---|
| 5230 | ac_status=$?
|
---|
| 5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5232 | (exit $ac_status); }; }; then
|
---|
| 5233 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5234 | break
|
---|
[8200] | 5235 | else
|
---|
[23802] | 5236 | echo "$as_me: failed program was:" >&5
|
---|
| 5237 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5238 |
|
---|
[562] | 5239 | fi
|
---|
[23802] | 5240 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5241 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5242 | done
|
---|
| 5243 | fi
|
---|
[8756] | 5244 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5245 | fi
|
---|
[23802] | 5246 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5247 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5248 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5249 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[562] | 5250 |
|
---|
[687] | 5251 | fi
|
---|
| 5252 |
|
---|
[8756] | 5253 | fi
|
---|
| 5254 |
|
---|
[23802] | 5255 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5256 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5257 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5258 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5259 | else
|
---|
[23802] | 5260 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5261 | /* confdefs.h. */
|
---|
| 5262 | _ACEOF
|
---|
| 5263 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5264 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5265 | /* end confdefs.h. */
|
---|
[562] | 5266 | #include <stdlib.h>
|
---|
| 5267 | #include <stdarg.h>
|
---|
| 5268 | #include <string.h>
|
---|
| 5269 | #include <float.h>
|
---|
[8756] | 5270 |
|
---|
| 5271 | int
|
---|
| 5272 | main ()
|
---|
| 5273 | {
|
---|
| 5274 |
|
---|
| 5275 | ;
|
---|
| 5276 | return 0;
|
---|
| 5277 | }
|
---|
| 5278 | _ACEOF
|
---|
[23802] | 5279 | rm -f conftest.$ac_objext
|
---|
| 5280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5281 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5282 | ac_status=$?
|
---|
| 5283 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5284 | rm -f conftest.er1
|
---|
| 5285 | cat conftest.err >&5
|
---|
| 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5287 | (exit $ac_status); } &&
|
---|
| 5288 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5289 | || test ! -s conftest.err'
|
---|
| 5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5291 | (eval $ac_try) 2>&5
|
---|
| 5292 | ac_status=$?
|
---|
| 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5294 | (exit $ac_status); }; } &&
|
---|
| 5295 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5297 | (eval $ac_try) 2>&5
|
---|
| 5298 | ac_status=$?
|
---|
| 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5300 | (exit $ac_status); }; }; then
|
---|
[562] | 5301 | ac_cv_header_stdc=yes
|
---|
| 5302 | else
|
---|
[23802] | 5303 | echo "$as_me: failed program was:" >&5
|
---|
| 5304 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5305 |
|
---|
| 5306 | ac_cv_header_stdc=no
|
---|
[562] | 5307 | fi
|
---|
[23802] | 5308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5309 |
|
---|
| 5310 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5311 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[23802] | 5312 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5313 | /* confdefs.h. */
|
---|
| 5314 | _ACEOF
|
---|
| 5315 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5316 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5317 | /* end confdefs.h. */
|
---|
[562] | 5318 | #include <string.h>
|
---|
[8756] | 5319 |
|
---|
| 5320 | _ACEOF
|
---|
[562] | 5321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5322 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5323 | :
|
---|
[562] | 5324 | else
|
---|
| 5325 | ac_cv_header_stdc=no
|
---|
| 5326 | fi
|
---|
| 5327 | rm -f conftest*
|
---|
| 5328 |
|
---|
| 5329 | fi
|
---|
| 5330 |
|
---|
| 5331 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5332 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[23802] | 5333 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5334 | /* confdefs.h. */
|
---|
| 5335 | _ACEOF
|
---|
| 5336 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5337 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5338 | /* end confdefs.h. */
|
---|
[562] | 5339 | #include <stdlib.h>
|
---|
[8756] | 5340 |
|
---|
| 5341 | _ACEOF
|
---|
[562] | 5342 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5343 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5344 | :
|
---|
[562] | 5345 | else
|
---|
| 5346 | ac_cv_header_stdc=no
|
---|
| 5347 | fi
|
---|
| 5348 | rm -f conftest*
|
---|
| 5349 |
|
---|
| 5350 | fi
|
---|
| 5351 |
|
---|
| 5352 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5353 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[23802] | 5354 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5355 | :
|
---|
| 5356 | else
|
---|
[23802] | 5357 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5358 | /* confdefs.h. */
|
---|
| 5359 | _ACEOF
|
---|
| 5360 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5361 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5362 | /* end confdefs.h. */
|
---|
[562] | 5363 | #include <ctype.h>
|
---|
[8756] | 5364 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5365 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5366 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5367 | #else
|
---|
| 5368 | # define ISLOWER(c) \
|
---|
| 5369 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5370 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5371 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5372 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5373 | #endif
|
---|
| 5374 |
|
---|
[8200] | 5375 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5376 | int
|
---|
| 5377 | main ()
|
---|
| 5378 | {
|
---|
| 5379 | int i;
|
---|
| 5380 | for (i = 0; i < 256; i++)
|
---|
| 5381 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5382 | || toupper (i) != TOUPPER (i))
|
---|
[23802] | 5383 | exit(2);
|
---|
| 5384 | exit (0);
|
---|
[8756] | 5385 | }
|
---|
| 5386 | _ACEOF
|
---|
[23802] | 5387 | rm -f conftest$ac_exeext
|
---|
| 5388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5389 | (eval $ac_link) 2>&5
|
---|
| 5390 | ac_status=$?
|
---|
| 5391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5392 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5394 | (eval $ac_try) 2>&5
|
---|
| 5395 | ac_status=$?
|
---|
| 5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5397 | (exit $ac_status); }; }; then
|
---|
| 5398 | :
|
---|
| 5399 | else
|
---|
| 5400 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5401 | echo "$as_me: failed program was:" >&5
|
---|
| 5402 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[22378] | 5403 |
|
---|
[23802] | 5404 | ( exit $ac_status )
|
---|
| 5405 | ac_cv_header_stdc=no
|
---|
[562] | 5406 | fi
|
---|
[23802] | 5407 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5408 | fi
|
---|
| 5409 | fi
|
---|
| 5410 | fi
|
---|
[23802] | 5411 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5412 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[8756] | 5413 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5414 |
|
---|
[23802] | 5415 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5416 | #define STDC_HEADERS 1
|
---|
| 5417 | _ACEOF
|
---|
[562] | 5418 |
|
---|
| 5419 | fi
|
---|
| 5420 |
|
---|
[23802] | 5421 |
|
---|
| 5422 |
|
---|
| 5423 |
|
---|
| 5424 |
|
---|
| 5425 |
|
---|
| 5426 |
|
---|
| 5427 |
|
---|
| 5428 |
|
---|
| 5429 |
|
---|
[10181] | 5430 | 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
|
---|
[23802] | 5431 | do
|
---|
| 5432 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5433 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5434 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5437 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5438 | fi
|
---|
| 5439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5440 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5441 | else
|
---|
| 5442 | # Is the header compilable?
|
---|
| 5443 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5444 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5445 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5446 | /* confdefs.h. */
|
---|
| 5447 | _ACEOF
|
---|
| 5448 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5449 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5450 | /* end confdefs.h. */
|
---|
| 5451 | $ac_includes_default
|
---|
| 5452 | #include <$ac_header>
|
---|
| 5453 | _ACEOF
|
---|
| 5454 | rm -f conftest.$ac_objext
|
---|
| 5455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5456 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5457 | ac_status=$?
|
---|
| 5458 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5459 | rm -f conftest.er1
|
---|
| 5460 | cat conftest.err >&5
|
---|
| 5461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5462 | (exit $ac_status); } &&
|
---|
| 5463 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5464 | || test ! -s conftest.err'
|
---|
| 5465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5466 | (eval $ac_try) 2>&5
|
---|
| 5467 | ac_status=$?
|
---|
| 5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5469 | (exit $ac_status); }; } &&
|
---|
| 5470 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5472 | (eval $ac_try) 2>&5
|
---|
| 5473 | ac_status=$?
|
---|
| 5474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5475 | (exit $ac_status); }; }; then
|
---|
| 5476 | ac_header_compiler=yes
|
---|
| 5477 | else
|
---|
| 5478 | echo "$as_me: failed program was:" >&5
|
---|
| 5479 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5480 |
|
---|
| 5481 | ac_header_compiler=no
|
---|
| 5482 | fi
|
---|
| 5483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5484 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5485 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5486 |
|
---|
| 5487 | # Is the header present?
|
---|
| 5488 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5489 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5490 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5491 | /* confdefs.h. */
|
---|
| 5492 | _ACEOF
|
---|
| 5493 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5494 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5495 | /* end confdefs.h. */
|
---|
| 5496 | #include <$ac_header>
|
---|
| 5497 | _ACEOF
|
---|
| 5498 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5499 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5500 | ac_status=$?
|
---|
| 5501 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5502 | rm -f conftest.er1
|
---|
| 5503 | cat conftest.err >&5
|
---|
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5505 | (exit $ac_status); } >/dev/null; then
|
---|
| 5506 | if test -s conftest.err; then
|
---|
| 5507 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5508 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5509 | else
|
---|
| 5510 | ac_cpp_err=
|
---|
| 5511 | fi
|
---|
| 5512 | else
|
---|
| 5513 | ac_cpp_err=yes
|
---|
| 5514 | fi
|
---|
| 5515 | if test -z "$ac_cpp_err"; then
|
---|
| 5516 | ac_header_preproc=yes
|
---|
| 5517 | else
|
---|
| 5518 | echo "$as_me: failed program was:" >&5
|
---|
| 5519 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5520 |
|
---|
| 5521 | ac_header_preproc=no
|
---|
| 5522 | fi
|
---|
| 5523 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5524 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5525 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5526 |
|
---|
| 5527 | # So? What about this header?
|
---|
| 5528 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5529 | yes:no: )
|
---|
| 5530 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5531 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5532 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5533 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5534 | ac_header_preproc=yes
|
---|
| 5535 | ;;
|
---|
| 5536 | no:yes:* )
|
---|
| 5537 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5538 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5539 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5540 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5541 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5542 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5543 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5544 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5545 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5546 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5547 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5548 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5549 | (
|
---|
| 5550 | cat <<\_ASBOX
|
---|
| 5551 | ## ------------------------------------------ ##
|
---|
| 5552 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5553 | ## ------------------------------------------ ##
|
---|
| 5554 | _ASBOX
|
---|
| 5555 | ) |
|
---|
| 5556 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5557 | ;;
|
---|
| 5558 | esac
|
---|
| 5559 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5560 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5562 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5563 | else
|
---|
| 5564 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5565 | fi
|
---|
| 5566 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5567 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5568 |
|
---|
| 5569 | fi
|
---|
| 5570 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[8756] | 5571 | cat >>confdefs.h <<_ACEOF
|
---|
[23802] | 5572 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[8756] | 5573 | _ACEOF
|
---|
| 5574 |
|
---|
| 5575 | fi
|
---|
| 5576 |
|
---|
[562] | 5577 | done
|
---|
| 5578 |
|
---|
[23802] | 5579 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5580 | /* confdefs.h. */
|
---|
| 5581 | _ACEOF
|
---|
| 5582 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5583 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5584 | /* end confdefs.h. */
|
---|
[687] | 5585 | #include <stdio.h>
|
---|
[8756] | 5586 |
|
---|
| 5587 | _ACEOF
|
---|
[687] | 5588 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5589 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5590 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5591 | #define HAVE_FREAD_DECL 1
|
---|
| 5592 | _ACEOF
|
---|
[562] | 5593 |
|
---|
[687] | 5594 | fi
|
---|
| 5595 | rm -f conftest*
|
---|
| 5596 |
|
---|
[23802] | 5597 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5598 | /* confdefs.h. */
|
---|
| 5599 | _ACEOF
|
---|
| 5600 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5601 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5602 | /* end confdefs.h. */
|
---|
[687] | 5603 | #include <stdio.h>
|
---|
[8756] | 5604 |
|
---|
| 5605 | _ACEOF
|
---|
[687] | 5606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5607 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5608 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5609 | #define HAVE_FGETC_DECL 1
|
---|
| 5610 | _ACEOF
|
---|
[687] | 5611 |
|
---|
| 5612 | fi
|
---|
| 5613 | rm -f conftest*
|
---|
| 5614 |
|
---|
[23802] | 5615 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5616 | /* confdefs.h. */
|
---|
| 5617 | _ACEOF
|
---|
| 5618 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5619 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5620 | /* end confdefs.h. */
|
---|
[687] | 5621 | #include <sys/procfs.h>
|
---|
[8756] | 5622 |
|
---|
| 5623 | _ACEOF
|
---|
[687] | 5624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5625 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5626 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5627 | #define HAVE_PR_BRKSIZE 1
|
---|
| 5628 | _ACEOF
|
---|
[687] | 5629 |
|
---|
| 5630 | fi
|
---|
| 5631 | rm -f conftest*
|
---|
| 5632 |
|
---|
[8200] | 5633 |
|
---|
[687] | 5634 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5635 | # for constant arguments. Useless!
|
---|
[23802] | 5636 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5637 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5638 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5639 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5640 | else
|
---|
[23802] | 5641 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5642 | /* confdefs.h. */
|
---|
| 5643 | _ACEOF
|
---|
| 5644 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5645 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5646 | /* end confdefs.h. */
|
---|
[687] | 5647 | #include <alloca.h>
|
---|
[8756] | 5648 | int
|
---|
| 5649 | main ()
|
---|
| 5650 | {
|
---|
| 5651 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5652 | ;
|
---|
| 5653 | return 0;
|
---|
| 5654 | }
|
---|
| 5655 | _ACEOF
|
---|
[23802] | 5656 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5658 | (eval $ac_link) 2>conftest.er1
|
---|
| 5659 | ac_status=$?
|
---|
| 5660 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5661 | rm -f conftest.er1
|
---|
| 5662 | cat conftest.err >&5
|
---|
| 5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5664 | (exit $ac_status); } &&
|
---|
| 5665 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5666 | || test ! -s conftest.err'
|
---|
| 5667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5668 | (eval $ac_try) 2>&5
|
---|
| 5669 | ac_status=$?
|
---|
| 5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5671 | (exit $ac_status); }; } &&
|
---|
| 5672 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5674 | (eval $ac_try) 2>&5
|
---|
| 5675 | ac_status=$?
|
---|
| 5676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5677 | (exit $ac_status); }; }; then
|
---|
[8756] | 5678 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5679 | else
|
---|
[23802] | 5680 | echo "$as_me: failed program was:" >&5
|
---|
| 5681 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5682 |
|
---|
| 5683 | ac_cv_working_alloca_h=no
|
---|
[562] | 5684 | fi
|
---|
[23802] | 5685 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5686 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5687 | fi
|
---|
[23802] | 5688 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5689 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
[8756] | 5690 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5691 |
|
---|
[23802] | 5692 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5693 | #define HAVE_ALLOCA_H 1
|
---|
| 5694 | _ACEOF
|
---|
[562] | 5695 |
|
---|
| 5696 | fi
|
---|
| 5697 |
|
---|
[23802] | 5698 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5699 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5700 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5701 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5702 | else
|
---|
[23802] | 5703 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5704 | /* confdefs.h. */
|
---|
| 5705 | _ACEOF
|
---|
| 5706 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5707 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5708 | /* end confdefs.h. */
|
---|
[687] | 5709 | #ifdef __GNUC__
|
---|
| 5710 | # define alloca __builtin_alloca
|
---|
| 5711 | #else
|
---|
| 5712 | # ifdef _MSC_VER
|
---|
| 5713 | # include <malloc.h>
|
---|
| 5714 | # define alloca _alloca
|
---|
| 5715 | # else
|
---|
[23802] | 5716 | # if HAVE_ALLOCA_H
|
---|
[687] | 5717 | # include <alloca.h>
|
---|
| 5718 | # else
|
---|
| 5719 | # ifdef _AIX
|
---|
| 5720 | #pragma alloca
|
---|
| 5721 | # else
|
---|
| 5722 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5723 | char *alloca ();
|
---|
| 5724 | # endif
|
---|
| 5725 | # endif
|
---|
| 5726 | # endif
|
---|
| 5727 | # endif
|
---|
| 5728 | #endif
|
---|
| 5729 |
|
---|
[8756] | 5730 | int
|
---|
| 5731 | main ()
|
---|
| 5732 | {
|
---|
| 5733 | char *p = (char *) alloca (1);
|
---|
| 5734 | ;
|
---|
| 5735 | return 0;
|
---|
| 5736 | }
|
---|
| 5737 | _ACEOF
|
---|
[23802] | 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
|
---|
[687] | 5760 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5761 | else
|
---|
[23802] | 5762 | echo "$as_me: failed program was:" >&5
|
---|
| 5763 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5764 |
|
---|
| 5765 | ac_cv_func_alloca_works=no
|
---|
[562] | 5766 | fi
|
---|
[23802] | 5767 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5768 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5769 | fi
|
---|
[23802] | 5770 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5771 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[562] | 5772 |
|
---|
[687] | 5773 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5774 |
|
---|
[23802] | 5775 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5776 | #define HAVE_ALLOCA 1
|
---|
| 5777 | _ACEOF
|
---|
[562] | 5778 |
|
---|
[8756] | 5779 | else
|
---|
| 5780 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5781 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5782 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5783 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5784 |
|
---|
[23802] | 5785 | ALLOCA=alloca.$ac_objext
|
---|
[8756] | 5786 |
|
---|
[23802] | 5787 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5788 | #define C_ALLOCA 1
|
---|
| 5789 | _ACEOF
|
---|
[562] | 5790 |
|
---|
[8200] | 5791 |
|
---|
[23802] | 5792 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5793 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5794 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5795 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5796 | else
|
---|
[23802] | 5797 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5798 | /* confdefs.h. */
|
---|
| 5799 | _ACEOF
|
---|
| 5800 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5801 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5802 | /* end confdefs.h. */
|
---|
[23802] | 5803 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
[687] | 5804 | webecray
|
---|
| 5805 | #else
|
---|
| 5806 | wenotbecray
|
---|
| 5807 | #endif
|
---|
[562] | 5808 |
|
---|
[8756] | 5809 | _ACEOF
|
---|
[687] | 5810 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 5811 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 5812 | ac_cv_os_cray=yes
|
---|
| 5813 | else
|
---|
| 5814 | ac_cv_os_cray=no
|
---|
| 5815 | fi
|
---|
| 5816 | rm -f conftest*
|
---|
[562] | 5817 |
|
---|
[687] | 5818 | fi
|
---|
[23802] | 5819 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5820 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[687] | 5821 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5822 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[23802] | 5823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5824 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5826 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5827 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5828 | else
|
---|
| 5829 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5830 | /* confdefs.h. */
|
---|
| 5831 | _ACEOF
|
---|
| 5832 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5833 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5834 | /* end confdefs.h. */
|
---|
| 5835 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5836 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5837 | #define $ac_func innocuous_$ac_func
|
---|
[8756] | 5838 |
|
---|
[23802] | 5839 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 5840 | which can conflict with char $ac_func (); below.
|
---|
| 5841 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5842 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5843 |
|
---|
| 5844 | #ifdef __STDC__
|
---|
| 5845 | # include <limits.h>
|
---|
| 5846 | #else
|
---|
| 5847 | # include <assert.h>
|
---|
| 5848 | #endif
|
---|
| 5849 |
|
---|
| 5850 | #undef $ac_func
|
---|
| 5851 |
|
---|
| 5852 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5853 | #ifdef __cplusplus
|
---|
| 5854 | extern "C"
|
---|
| 5855 | {
|
---|
| 5856 | #endif
|
---|
| 5857 | /* We use char because int might match the return type of a gcc2
|
---|
| 5858 | builtin and then its argument prototype would still apply. */
|
---|
| 5859 | char $ac_func ();
|
---|
| 5860 | /* The GNU C library defines this for functions which it implements
|
---|
| 5861 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5862 | something starting with __ and the normal name is an alias. */
|
---|
| 5863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5864 | choke me
|
---|
| 5865 | #else
|
---|
| 5866 | char (*f) () = $ac_func;
|
---|
| 5867 | #endif
|
---|
| 5868 | #ifdef __cplusplus
|
---|
| 5869 | }
|
---|
| 5870 | #endif
|
---|
| 5871 |
|
---|
| 5872 | int
|
---|
| 5873 | main ()
|
---|
| 5874 | {
|
---|
| 5875 | return f != $ac_func;
|
---|
| 5876 | ;
|
---|
| 5877 | return 0;
|
---|
| 5878 | }
|
---|
| 5879 | _ACEOF
|
---|
| 5880 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5882 | (eval $ac_link) 2>conftest.er1
|
---|
| 5883 | ac_status=$?
|
---|
| 5884 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5885 | rm -f conftest.er1
|
---|
| 5886 | cat conftest.err >&5
|
---|
| 5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5888 | (exit $ac_status); } &&
|
---|
| 5889 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5890 | || test ! -s conftest.err'
|
---|
| 5891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5892 | (eval $ac_try) 2>&5
|
---|
| 5893 | ac_status=$?
|
---|
| 5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5895 | (exit $ac_status); }; } &&
|
---|
| 5896 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5898 | (eval $ac_try) 2>&5
|
---|
| 5899 | ac_status=$?
|
---|
| 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5901 | (exit $ac_status); }; }; then
|
---|
| 5902 | eval "$as_ac_var=yes"
|
---|
| 5903 | else
|
---|
| 5904 | echo "$as_me: failed program was:" >&5
|
---|
| 5905 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5906 |
|
---|
| 5907 | eval "$as_ac_var=no"
|
---|
| 5908 | fi
|
---|
| 5909 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5910 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5911 | fi
|
---|
| 5912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5913 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5914 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5915 |
|
---|
[8756] | 5916 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5917 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5918 | _ACEOF
|
---|
[562] | 5919 |
|
---|
[8756] | 5920 | break
|
---|
[687] | 5921 | fi
|
---|
[562] | 5922 |
|
---|
[8756] | 5923 | done
|
---|
[687] | 5924 | fi
|
---|
| 5925 |
|
---|
[23802] | 5926 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5927 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5928 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5929 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5930 | else
|
---|
[23802] | 5931 | if test "$cross_compiling" = yes; then
|
---|
[687] | 5932 | ac_cv_c_stack_direction=0
|
---|
| 5933 | else
|
---|
[23802] | 5934 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5935 | /* confdefs.h. */
|
---|
| 5936 | _ACEOF
|
---|
| 5937 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5938 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 5939 | /* end confdefs.h. */
|
---|
| 5940 | int
|
---|
[687] | 5941 | find_stack_direction ()
|
---|
| 5942 | {
|
---|
| 5943 | static char *addr = 0;
|
---|
| 5944 | auto char dummy;
|
---|
| 5945 | if (addr == 0)
|
---|
| 5946 | {
|
---|
| 5947 | addr = &dummy;
|
---|
| 5948 | return find_stack_direction ();
|
---|
| 5949 | }
|
---|
| 5950 | else
|
---|
| 5951 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5952 | }
|
---|
[8756] | 5953 |
|
---|
| 5954 | int
|
---|
[687] | 5955 | main ()
|
---|
| 5956 | {
|
---|
[23802] | 5957 | exit (find_stack_direction () < 0);
|
---|
[687] | 5958 | }
|
---|
[8756] | 5959 | _ACEOF
|
---|
[23802] | 5960 | rm -f conftest$ac_exeext
|
---|
| 5961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5962 | (eval $ac_link) 2>&5
|
---|
| 5963 | ac_status=$?
|
---|
| 5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5965 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5967 | (eval $ac_try) 2>&5
|
---|
| 5968 | ac_status=$?
|
---|
| 5969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5970 | (exit $ac_status); }; }; then
|
---|
[687] | 5971 | ac_cv_c_stack_direction=1
|
---|
[562] | 5972 | else
|
---|
[23802] | 5973 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5974 | echo "$as_me: failed program was:" >&5
|
---|
| 5975 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5976 |
|
---|
| 5977 | ( exit $ac_status )
|
---|
| 5978 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5979 | fi
|
---|
[23802] | 5980 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5981 | fi
|
---|
[23802] | 5982 | fi
|
---|
| 5983 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5984 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[22378] | 5985 |
|
---|
[8756] | 5986 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5987 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5988 | _ACEOF
|
---|
[687] | 5989 |
|
---|
[8756] | 5990 |
|
---|
[687] | 5991 | fi
|
---|
| 5992 |
|
---|
[8756] | 5993 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[23802] | 5994 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5995 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5996 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5997 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5998 | else
|
---|
| 5999 | ac_pattern="Autoconf.*'x'"
|
---|
[23802] | 6000 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6001 | /* confdefs.h. */
|
---|
| 6002 | _ACEOF
|
---|
| 6003 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6004 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6005 | /* end confdefs.h. */
|
---|
[687] | 6006 | #include <sgtty.h>
|
---|
| 6007 | Autoconf TIOCGETP
|
---|
[8756] | 6008 | _ACEOF
|
---|
[687] | 6009 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6010 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 6011 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6012 | else
|
---|
| 6013 | ac_cv_prog_gcc_traditional=no
|
---|
| 6014 | fi
|
---|
[562] | 6015 | rm -f conftest*
|
---|
[687] | 6016 |
|
---|
[8200] | 6017 |
|
---|
[687] | 6018 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[23802] | 6019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6020 | /* confdefs.h. */
|
---|
| 6021 | _ACEOF
|
---|
| 6022 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6024 | /* end confdefs.h. */
|
---|
[687] | 6025 | #include <termio.h>
|
---|
| 6026 | Autoconf TCGETA
|
---|
[8756] | 6027 | _ACEOF
|
---|
[687] | 6028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[23802] | 6029 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 6030 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 6031 | fi
|
---|
[687] | 6032 | rm -f conftest*
|
---|
[562] | 6033 |
|
---|
[687] | 6034 | fi
|
---|
| 6035 | fi
|
---|
[23802] | 6036 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 6037 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[687] | 6038 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 6039 | CC="$CC -traditional"
|
---|
| 6040 | fi
|
---|
| 6041 | fi
|
---|
| 6042 |
|
---|
[23802] | 6043 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 6044 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 6045 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 6046 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6047 | else
|
---|
[23802] | 6048 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6049 | /* confdefs.h. */
|
---|
| 6050 | _ACEOF
|
---|
| 6051 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6052 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 6053 | /* end confdefs.h. */
|
---|
[687] | 6054 | #include <sys/types.h>
|
---|
| 6055 | #include <signal.h>
|
---|
[23802] | 6056 | #ifdef signal
|
---|
| 6057 | # undef signal
|
---|
| 6058 | #endif
|
---|
| 6059 | #ifdef __cplusplus
|
---|
| 6060 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 6061 | #else
|
---|
| 6062 | void (*signal ()) ();
|
---|
| 6063 | #endif
|
---|
[562] | 6064 |
|
---|
[8756] | 6065 | int
|
---|
| 6066 | main ()
|
---|
| 6067 | {
|
---|
[23802] | 6068 | int i;
|
---|
[8756] | 6069 | ;
|
---|
| 6070 | return 0;
|
---|
| 6071 | }
|
---|
| 6072 | _ACEOF
|
---|
[23802] | 6073 | rm -f conftest.$ac_objext
|
---|
| 6074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6075 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6076 | ac_status=$?
|
---|
| 6077 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6078 | rm -f conftest.er1
|
---|
| 6079 | cat conftest.err >&5
|
---|
| 6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6081 | (exit $ac_status); } &&
|
---|
| 6082 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6083 | || test ! -s conftest.err'
|
---|
| 6084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6085 | (eval $ac_try) 2>&5
|
---|
| 6086 | ac_status=$?
|
---|
| 6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6088 | (exit $ac_status); }; } &&
|
---|
| 6089 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6091 | (eval $ac_try) 2>&5
|
---|
| 6092 | ac_status=$?
|
---|
| 6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6094 | (exit $ac_status); }; }; then
|
---|
| 6095 | ac_cv_type_signal=void
|
---|
[22378] | 6096 | else
|
---|
[23802] | 6097 | echo "$as_me: failed program was:" >&5
|
---|
| 6098 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6099 |
|
---|
| 6100 | ac_cv_type_signal=int
|
---|
[562] | 6101 | fi
|
---|
[23802] | 6102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 6103 | fi
|
---|
[23802] | 6104 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 6105 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[562] | 6106 |
|
---|
[8756] | 6107 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 6108 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 6109 | _ACEOF
|
---|
[562] | 6110 |
|
---|
[8200] | 6111 |
|
---|
[23802] | 6112 |
|
---|
[8756] | 6113 | for ac_func in vprintf
|
---|
[23802] | 6114 | do
|
---|
| 6115 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6116 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6117 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6118 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6119 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6120 | else
|
---|
| 6121 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6122 | /* confdefs.h. */
|
---|
| 6123 | _ACEOF
|
---|
| 6124 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6125 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6126 | /* end confdefs.h. */
|
---|
| 6127 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6128 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6129 | #define $ac_func innocuous_$ac_func
|
---|
| 6130 |
|
---|
| 6131 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6132 | which can conflict with char $ac_func (); below.
|
---|
| 6133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6134 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6135 |
|
---|
| 6136 | #ifdef __STDC__
|
---|
| 6137 | # include <limits.h>
|
---|
| 6138 | #else
|
---|
| 6139 | # include <assert.h>
|
---|
| 6140 | #endif
|
---|
| 6141 |
|
---|
| 6142 | #undef $ac_func
|
---|
| 6143 |
|
---|
| 6144 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6145 | #ifdef __cplusplus
|
---|
| 6146 | extern "C"
|
---|
| 6147 | {
|
---|
| 6148 | #endif
|
---|
| 6149 | /* We use char because int might match the return type of a gcc2
|
---|
| 6150 | builtin and then its argument prototype would still apply. */
|
---|
| 6151 | char $ac_func ();
|
---|
| 6152 | /* The GNU C library defines this for functions which it implements
|
---|
| 6153 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6154 | something starting with __ and the normal name is an alias. */
|
---|
| 6155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6156 | choke me
|
---|
| 6157 | #else
|
---|
| 6158 | char (*f) () = $ac_func;
|
---|
| 6159 | #endif
|
---|
| 6160 | #ifdef __cplusplus
|
---|
| 6161 | }
|
---|
| 6162 | #endif
|
---|
| 6163 |
|
---|
| 6164 | int
|
---|
| 6165 | main ()
|
---|
| 6166 | {
|
---|
| 6167 | return f != $ac_func;
|
---|
| 6168 | ;
|
---|
| 6169 | return 0;
|
---|
| 6170 | }
|
---|
| 6171 | _ACEOF
|
---|
| 6172 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6174 | (eval $ac_link) 2>conftest.er1
|
---|
| 6175 | ac_status=$?
|
---|
| 6176 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6177 | rm -f conftest.er1
|
---|
| 6178 | cat conftest.err >&5
|
---|
| 6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6180 | (exit $ac_status); } &&
|
---|
| 6181 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6182 | || test ! -s conftest.err'
|
---|
| 6183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6184 | (eval $ac_try) 2>&5
|
---|
| 6185 | ac_status=$?
|
---|
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6187 | (exit $ac_status); }; } &&
|
---|
| 6188 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6190 | (eval $ac_try) 2>&5
|
---|
| 6191 | ac_status=$?
|
---|
| 6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6193 | (exit $ac_status); }; }; then
|
---|
| 6194 | eval "$as_ac_var=yes"
|
---|
| 6195 | else
|
---|
| 6196 | echo "$as_me: failed program was:" >&5
|
---|
| 6197 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6198 |
|
---|
| 6199 | eval "$as_ac_var=no"
|
---|
| 6200 | fi
|
---|
| 6201 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6202 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6203 | fi
|
---|
| 6204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6206 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[8756] | 6207 | cat >>confdefs.h <<_ACEOF
|
---|
[23802] | 6208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 6209 | _ACEOF
|
---|
[8200] | 6210 |
|
---|
[23802] | 6211 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6212 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6213 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6214 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6215 | else
|
---|
| 6216 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6217 | /* confdefs.h. */
|
---|
| 6218 | _ACEOF
|
---|
| 6219 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6220 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6221 | /* end confdefs.h. */
|
---|
| 6222 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6223 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6224 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 6225 |
|
---|
[23802] | 6226 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6227 | which can conflict with char _doprnt (); below.
|
---|
| 6228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6229 | <limits.h> exists even on freestanding compilers. */
|
---|
[8756] | 6230 |
|
---|
[23802] | 6231 | #ifdef __STDC__
|
---|
| 6232 | # include <limits.h>
|
---|
| 6233 | #else
|
---|
| 6234 | # include <assert.h>
|
---|
| 6235 | #endif
|
---|
| 6236 |
|
---|
| 6237 | #undef _doprnt
|
---|
| 6238 |
|
---|
| 6239 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6240 | #ifdef __cplusplus
|
---|
| 6241 | extern "C"
|
---|
| 6242 | {
|
---|
| 6243 | #endif
|
---|
| 6244 | /* We use char because int might match the return type of a gcc2
|
---|
| 6245 | builtin and then its argument prototype would still apply. */
|
---|
| 6246 | char _doprnt ();
|
---|
| 6247 | /* The GNU C library defines this for functions which it implements
|
---|
| 6248 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6249 | something starting with __ and the normal name is an alias. */
|
---|
| 6250 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6251 | choke me
|
---|
| 6252 | #else
|
---|
| 6253 | char (*f) () = _doprnt;
|
---|
| 6254 | #endif
|
---|
| 6255 | #ifdef __cplusplus
|
---|
| 6256 | }
|
---|
| 6257 | #endif
|
---|
| 6258 |
|
---|
| 6259 | int
|
---|
| 6260 | main ()
|
---|
| 6261 | {
|
---|
| 6262 | return f != _doprnt;
|
---|
| 6263 | ;
|
---|
| 6264 | return 0;
|
---|
| 6265 | }
|
---|
| 6266 | _ACEOF
|
---|
| 6267 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6269 | (eval $ac_link) 2>conftest.er1
|
---|
| 6270 | ac_status=$?
|
---|
| 6271 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6272 | rm -f conftest.er1
|
---|
| 6273 | cat conftest.err >&5
|
---|
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6275 | (exit $ac_status); } &&
|
---|
| 6276 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6277 | || test ! -s conftest.err'
|
---|
| 6278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6279 | (eval $ac_try) 2>&5
|
---|
| 6280 | ac_status=$?
|
---|
| 6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6282 | (exit $ac_status); }; } &&
|
---|
| 6283 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6285 | (eval $ac_try) 2>&5
|
---|
| 6286 | ac_status=$?
|
---|
| 6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6288 | (exit $ac_status); }; }; then
|
---|
| 6289 | ac_cv_func__doprnt=yes
|
---|
| 6290 | else
|
---|
| 6291 | echo "$as_me: failed program was:" >&5
|
---|
| 6292 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6293 |
|
---|
| 6294 | ac_cv_func__doprnt=no
|
---|
[562] | 6295 | fi
|
---|
[23802] | 6296 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6297 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6298 | fi
|
---|
| 6299 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6300 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6301 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6302 |
|
---|
[23802] | 6303 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6304 | #define HAVE_DOPRNT 1
|
---|
| 6305 | _ACEOF
|
---|
| 6306 |
|
---|
[562] | 6307 | fi
|
---|
[23802] | 6308 |
|
---|
| 6309 | fi
|
---|
[8756] | 6310 | done
|
---|
[562] | 6311 |
|
---|
[8756] | 6312 |
|
---|
[23802] | 6313 |
|
---|
| 6314 |
|
---|
| 6315 |
|
---|
| 6316 |
|
---|
| 6317 |
|
---|
| 6318 |
|
---|
| 6319 |
|
---|
| 6320 |
|
---|
| 6321 |
|
---|
| 6322 |
|
---|
[788] | 6323 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[23802] | 6324 | do
|
---|
| 6325 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6326 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6327 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6328 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6329 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6330 | else
|
---|
| 6331 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6332 | /* confdefs.h. */
|
---|
| 6333 | _ACEOF
|
---|
| 6334 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6335 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6336 | /* end confdefs.h. */
|
---|
| 6337 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6338 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6339 | #define $ac_func innocuous_$ac_func
|
---|
| 6340 |
|
---|
| 6341 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6342 | which can conflict with char $ac_func (); below.
|
---|
| 6343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6344 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6345 |
|
---|
| 6346 | #ifdef __STDC__
|
---|
| 6347 | # include <limits.h>
|
---|
| 6348 | #else
|
---|
| 6349 | # include <assert.h>
|
---|
| 6350 | #endif
|
---|
| 6351 |
|
---|
| 6352 | #undef $ac_func
|
---|
| 6353 |
|
---|
| 6354 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6355 | #ifdef __cplusplus
|
---|
| 6356 | extern "C"
|
---|
| 6357 | {
|
---|
| 6358 | #endif
|
---|
| 6359 | /* We use char because int might match the return type of a gcc2
|
---|
| 6360 | builtin and then its argument prototype would still apply. */
|
---|
| 6361 | char $ac_func ();
|
---|
| 6362 | /* The GNU C library defines this for functions which it implements
|
---|
| 6363 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6364 | something starting with __ and the normal name is an alias. */
|
---|
| 6365 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6366 | choke me
|
---|
| 6367 | #else
|
---|
| 6368 | char (*f) () = $ac_func;
|
---|
| 6369 | #endif
|
---|
| 6370 | #ifdef __cplusplus
|
---|
| 6371 | }
|
---|
| 6372 | #endif
|
---|
| 6373 |
|
---|
| 6374 | int
|
---|
| 6375 | main ()
|
---|
| 6376 | {
|
---|
| 6377 | return f != $ac_func;
|
---|
| 6378 | ;
|
---|
| 6379 | return 0;
|
---|
| 6380 | }
|
---|
| 6381 | _ACEOF
|
---|
| 6382 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6384 | (eval $ac_link) 2>conftest.er1
|
---|
| 6385 | ac_status=$?
|
---|
| 6386 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6387 | rm -f conftest.er1
|
---|
| 6388 | cat conftest.err >&5
|
---|
| 6389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6390 | (exit $ac_status); } &&
|
---|
| 6391 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6392 | || test ! -s conftest.err'
|
---|
| 6393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6394 | (eval $ac_try) 2>&5
|
---|
| 6395 | ac_status=$?
|
---|
| 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6397 | (exit $ac_status); }; } &&
|
---|
| 6398 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6400 | (eval $ac_try) 2>&5
|
---|
| 6401 | ac_status=$?
|
---|
| 6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6403 | (exit $ac_status); }; }; then
|
---|
| 6404 | eval "$as_ac_var=yes"
|
---|
| 6405 | else
|
---|
| 6406 | echo "$as_me: failed program was:" >&5
|
---|
| 6407 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6408 |
|
---|
| 6409 | eval "$as_ac_var=no"
|
---|
| 6410 | fi
|
---|
| 6411 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6412 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6413 | fi
|
---|
| 6414 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6415 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6416 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[8756] | 6417 | cat >>confdefs.h <<_ACEOF
|
---|
[23802] | 6418 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 6419 | _ACEOF
|
---|
[8200] | 6420 |
|
---|
[687] | 6421 | fi
|
---|
| 6422 | done
|
---|
| 6423 |
|
---|
[8200] | 6424 |
|
---|
[23802] | 6425 |
|
---|
| 6426 |
|
---|
| 6427 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6428 | do
|
---|
| 6429 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6430 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6431 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6432 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6433 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6434 | else
|
---|
[23802] | 6435 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6436 | /* confdefs.h. */
|
---|
| 6437 | _ACEOF
|
---|
| 6438 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6439 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6440 | /* end confdefs.h. */
|
---|
| 6441 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6442 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6443 | #define $ac_func innocuous_$ac_func
|
---|
[8756] | 6444 |
|
---|
[23802] | 6445 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6446 | which can conflict with char $ac_func (); below.
|
---|
| 6447 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6448 | <limits.h> exists even on freestanding compilers. */
|
---|
[687] | 6449 |
|
---|
[23802] | 6450 | #ifdef __STDC__
|
---|
| 6451 | # include <limits.h>
|
---|
| 6452 | #else
|
---|
| 6453 | # include <assert.h>
|
---|
| 6454 | #endif
|
---|
[8200] | 6455 |
|
---|
[23802] | 6456 | #undef $ac_func
|
---|
| 6457 |
|
---|
| 6458 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6459 | #ifdef __cplusplus
|
---|
| 6460 | extern "C"
|
---|
| 6461 | {
|
---|
| 6462 | #endif
|
---|
| 6463 | /* We use char because int might match the return type of a gcc2
|
---|
| 6464 | builtin and then its argument prototype would still apply. */
|
---|
| 6465 | char $ac_func ();
|
---|
| 6466 | /* The GNU C library defines this for functions which it implements
|
---|
| 6467 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6468 | something starting with __ and the normal name is an alias. */
|
---|
| 6469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6470 | choke me
|
---|
| 6471 | #else
|
---|
| 6472 | char (*f) () = $ac_func;
|
---|
| 6473 | #endif
|
---|
| 6474 | #ifdef __cplusplus
|
---|
| 6475 | }
|
---|
| 6476 | #endif
|
---|
| 6477 |
|
---|
| 6478 | int
|
---|
| 6479 | main ()
|
---|
| 6480 | {
|
---|
| 6481 | return f != $ac_func;
|
---|
| 6482 | ;
|
---|
| 6483 | return 0;
|
---|
| 6484 | }
|
---|
| 6485 | _ACEOF
|
---|
| 6486 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6488 | (eval $ac_link) 2>conftest.er1
|
---|
| 6489 | ac_status=$?
|
---|
| 6490 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6491 | rm -f conftest.er1
|
---|
| 6492 | cat conftest.err >&5
|
---|
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6494 | (exit $ac_status); } &&
|
---|
| 6495 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6496 | || test ! -s conftest.err'
|
---|
| 6497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6498 | (eval $ac_try) 2>&5
|
---|
| 6499 | ac_status=$?
|
---|
| 6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6501 | (exit $ac_status); }; } &&
|
---|
| 6502 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6504 | (eval $ac_try) 2>&5
|
---|
| 6505 | ac_status=$?
|
---|
| 6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6507 | (exit $ac_status); }; }; then
|
---|
| 6508 | eval "$as_ac_var=yes"
|
---|
[23356] | 6509 | else
|
---|
[23802] | 6510 | echo "$as_me: failed program was:" >&5
|
---|
| 6511 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 6512 |
|
---|
[23802] | 6513 | eval "$as_ac_var=no"
|
---|
[23356] | 6514 | fi
|
---|
[23802] | 6515 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6516 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6517 | fi
|
---|
| 6518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6520 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6521 | cat >>confdefs.h <<_ACEOF
|
---|
| 6522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6523 | _ACEOF
|
---|
[23356] | 6524 |
|
---|
| 6525 | else
|
---|
[23802] | 6526 | case $LIBOBJS in
|
---|
| 6527 | "$ac_func.$ac_objext" | \
|
---|
| 6528 | *" $ac_func.$ac_objext" | \
|
---|
| 6529 | "$ac_func.$ac_objext "* | \
|
---|
| 6530 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6531 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
[23356] | 6532 | esac
|
---|
| 6533 |
|
---|
| 6534 | fi
|
---|
[23802] | 6535 | done
|
---|
[23356] | 6536 |
|
---|
| 6537 |
|
---|
| 6538 |
|
---|
[23802] | 6539 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6540 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6541 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6542 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6543 | else
|
---|
| 6544 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6545 | /* confdefs.h. */
|
---|
| 6546 | _ACEOF
|
---|
| 6547 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6548 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6549 | /* end confdefs.h. */
|
---|
| 6550 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6551 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6552 | #define textdomain innocuous_textdomain
|
---|
[8756] | 6553 |
|
---|
[23802] | 6554 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6555 | which can conflict with char textdomain (); below.
|
---|
| 6556 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6557 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6558 |
|
---|
| 6559 | #ifdef __STDC__
|
---|
| 6560 | # include <limits.h>
|
---|
| 6561 | #else
|
---|
| 6562 | # include <assert.h>
|
---|
| 6563 | #endif
|
---|
| 6564 |
|
---|
| 6565 | #undef textdomain
|
---|
| 6566 |
|
---|
| 6567 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6568 | #ifdef __cplusplus
|
---|
| 6569 | extern "C"
|
---|
| 6570 | {
|
---|
| 6571 | #endif
|
---|
| 6572 | /* We use char because int might match the return type of a gcc2
|
---|
| 6573 | builtin and then its argument prototype would still apply. */
|
---|
| 6574 | char textdomain ();
|
---|
| 6575 | /* The GNU C library defines this for functions which it implements
|
---|
| 6576 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6577 | something starting with __ and the normal name is an alias. */
|
---|
| 6578 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
| 6579 | choke me
|
---|
| 6580 | #else
|
---|
| 6581 | char (*f) () = textdomain;
|
---|
| 6582 | #endif
|
---|
| 6583 | #ifdef __cplusplus
|
---|
| 6584 | }
|
---|
| 6585 | #endif
|
---|
| 6586 |
|
---|
| 6587 | int
|
---|
| 6588 | main ()
|
---|
| 6589 | {
|
---|
| 6590 | return f != textdomain;
|
---|
| 6591 | ;
|
---|
| 6592 | return 0;
|
---|
| 6593 | }
|
---|
| 6594 | _ACEOF
|
---|
| 6595 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6597 | (eval $ac_link) 2>conftest.er1
|
---|
| 6598 | ac_status=$?
|
---|
| 6599 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6600 | rm -f conftest.er1
|
---|
| 6601 | cat conftest.err >&5
|
---|
| 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6603 | (exit $ac_status); } &&
|
---|
| 6604 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6605 | || test ! -s conftest.err'
|
---|
| 6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6607 | (eval $ac_try) 2>&5
|
---|
| 6608 | ac_status=$?
|
---|
| 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6610 | (exit $ac_status); }; } &&
|
---|
| 6611 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6613 | (eval $ac_try) 2>&5
|
---|
| 6614 | ac_status=$?
|
---|
| 6615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6616 | (exit $ac_status); }; }; then
|
---|
| 6617 | ac_cv_func_textdomain=yes
|
---|
| 6618 | else
|
---|
| 6619 | echo "$as_me: failed program was:" >&5
|
---|
| 6620 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6621 |
|
---|
| 6622 | ac_cv_func_textdomain=no
|
---|
[3705] | 6623 | fi
|
---|
[23802] | 6624 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6625 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6626 | fi
|
---|
| 6627 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6628 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6629 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6630 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6631 | #define ENABLE_NLS 1
|
---|
| 6632 | _ACEOF
|
---|
[8200] | 6633 |
|
---|
[23802] | 6634 | fi
|
---|
[3705] | 6635 |
|
---|
[23802] | 6636 |
|
---|
[687] | 6637 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6638 | # ---------------------------------------------------------------------------
|
---|
[23802] | 6639 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6640 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[687] | 6641 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[23802] | 6642 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6643 | echo "${ECHO_T}yes" >&6
|
---|
| 6644 | case $LIBOBJS in
|
---|
| 6645 | "gmalloc.$ac_objext" | \
|
---|
| 6646 | *" gmalloc.$ac_objext" | \
|
---|
| 6647 | "gmalloc.$ac_objext "* | \
|
---|
[8756] | 6648 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[23802] | 6649 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
[8756] | 6650 | esac
|
---|
| 6651 |
|
---|
[23802] | 6652 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6653 | #define HAVE_VALLOC 1
|
---|
| 6654 | _ACEOF
|
---|
[687] | 6655 |
|
---|
| 6656 | else
|
---|
[23802] | 6657 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6658 | echo "${ECHO_T}no" >&6
|
---|
| 6659 |
|
---|
| 6660 | for ac_func in valloc
|
---|
| 6661 | do
|
---|
| 6662 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6663 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6664 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6665 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6666 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6667 | else
|
---|
| 6668 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6669 | /* confdefs.h. */
|
---|
| 6670 | _ACEOF
|
---|
| 6671 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6672 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6673 | /* end confdefs.h. */
|
---|
| 6674 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6675 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6676 | #define $ac_func innocuous_$ac_func
|
---|
| 6677 |
|
---|
| 6678 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6679 | which can conflict with char $ac_func (); below.
|
---|
| 6680 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6681 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6682 |
|
---|
| 6683 | #ifdef __STDC__
|
---|
| 6684 | # include <limits.h>
|
---|
| 6685 | #else
|
---|
| 6686 | # include <assert.h>
|
---|
| 6687 | #endif
|
---|
| 6688 |
|
---|
| 6689 | #undef $ac_func
|
---|
| 6690 |
|
---|
| 6691 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6692 | #ifdef __cplusplus
|
---|
| 6693 | extern "C"
|
---|
| 6694 | {
|
---|
| 6695 | #endif
|
---|
| 6696 | /* We use char because int might match the return type of a gcc2
|
---|
| 6697 | builtin and then its argument prototype would still apply. */
|
---|
| 6698 | char $ac_func ();
|
---|
| 6699 | /* The GNU C library defines this for functions which it implements
|
---|
| 6700 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6701 | something starting with __ and the normal name is an alias. */
|
---|
| 6702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6703 | choke me
|
---|
| 6704 | #else
|
---|
| 6705 | char (*f) () = $ac_func;
|
---|
| 6706 | #endif
|
---|
| 6707 | #ifdef __cplusplus
|
---|
| 6708 | }
|
---|
| 6709 | #endif
|
---|
| 6710 |
|
---|
| 6711 | int
|
---|
| 6712 | main ()
|
---|
| 6713 | {
|
---|
| 6714 | return f != $ac_func;
|
---|
| 6715 | ;
|
---|
| 6716 | return 0;
|
---|
| 6717 | }
|
---|
| 6718 | _ACEOF
|
---|
| 6719 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6721 | (eval $ac_link) 2>conftest.er1
|
---|
| 6722 | ac_status=$?
|
---|
| 6723 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6724 | rm -f conftest.er1
|
---|
| 6725 | cat conftest.err >&5
|
---|
| 6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6727 | (exit $ac_status); } &&
|
---|
| 6728 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6729 | || test ! -s conftest.err'
|
---|
| 6730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6731 | (eval $ac_try) 2>&5
|
---|
| 6732 | ac_status=$?
|
---|
| 6733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6734 | (exit $ac_status); }; } &&
|
---|
| 6735 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6737 | (eval $ac_try) 2>&5
|
---|
| 6738 | ac_status=$?
|
---|
| 6739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6740 | (exit $ac_status); }; }; then
|
---|
| 6741 | eval "$as_ac_var=yes"
|
---|
| 6742 | else
|
---|
| 6743 | echo "$as_me: failed program was:" >&5
|
---|
| 6744 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6745 |
|
---|
| 6746 | eval "$as_ac_var=no"
|
---|
| 6747 | fi
|
---|
| 6748 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6749 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6750 | fi
|
---|
| 6751 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6752 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6753 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[8756] | 6754 | cat >>confdefs.h <<_ACEOF
|
---|
[23802] | 6755 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[8756] | 6756 | _ACEOF
|
---|
[8200] | 6757 |
|
---|
[687] | 6758 | fi
|
---|
| 6759 | done
|
---|
| 6760 |
|
---|
| 6761 | fi
|
---|
| 6762 |
|
---|
[8200] | 6763 | # we cannot generate static libraries under Darwin
|
---|
[23802] | 6764 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6765 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[8200] | 6766 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[23802] | 6767 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6768 | echo "${ECHO_T}yes" >&6
|
---|
[8200] | 6769 | STATIC=""
|
---|
| 6770 | else
|
---|
[23802] | 6771 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6772 | echo "${ECHO_T}no" >&6
|
---|
[8200] | 6773 | STATIC="-static "
|
---|
| 6774 | fi
|
---|
[3631] | 6775 |
|
---|
[8200] | 6776 |
|
---|
[23802] | 6777 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6778 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
[8756] | 6779 |
|
---|
[23802] | 6780 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6781 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6782 | withval="$with_dmalloc"
|
---|
| 6783 | if test "$withval" = yes; then
|
---|
| 6784 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6785 | echo "${ECHO_T}yes" >&6
|
---|
| 6786 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6787 | #define WITH_DMALLOC 1
|
---|
| 6788 | _ACEOF
|
---|
[687] | 6789 |
|
---|
[700] | 6790 | LIBS="$LIBS -ldmalloc"
|
---|
| 6791 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6792 | else
|
---|
[23802] | 6793 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6794 | echo "${ECHO_T}no" >&6
|
---|
[700] | 6795 | fi
|
---|
| 6796 | else
|
---|
[23802] | 6797 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6798 | echo "${ECHO_T}no" >&6
|
---|
| 6799 | fi;
|
---|
[700] | 6800 |
|
---|
[23802] | 6801 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6802 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[700] | 6803 |
|
---|
[23802] | 6804 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6805 | if test "${with_regex+set}" = set; then
|
---|
| 6806 | withval="$with_regex"
|
---|
| 6807 | if test "$withval" = yes; then
|
---|
[700] | 6808 | ac_with_regex=1
|
---|
[23802] | 6809 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6810 | echo "${ECHO_T}regex" >&6
|
---|
| 6811 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6812 | #define WITH_REGEX 1
|
---|
| 6813 | _ACEOF
|
---|
[700] | 6814 |
|
---|
[23802] | 6815 | case $LIBOBJS in
|
---|
| 6816 | "regex.$ac_objext" | \
|
---|
| 6817 | *" regex.$ac_objext" | \
|
---|
| 6818 | "regex.$ac_objext "* | \
|
---|
[8756] | 6819 | *" regex.$ac_objext "* ) ;;
|
---|
[23802] | 6820 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
[8756] | 6821 | esac
|
---|
| 6822 |
|
---|
[700] | 6823 | fi
|
---|
[23802] | 6824 | fi;
|
---|
[700] | 6825 | if test -z "$ac_with_regex"; then
|
---|
[23802] | 6826 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6827 | echo "${ECHO_T}rx" >&6
|
---|
| 6828 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6829 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6830 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6831 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6832 | else
|
---|
| 6833 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6834 | /* confdefs.h. */
|
---|
| 6835 | _ACEOF
|
---|
| 6836 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6837 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6838 | /* end confdefs.h. */
|
---|
| 6839 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6841 | #define re_rx_search innocuous_re_rx_search
|
---|
[8756] | 6842 |
|
---|
[23802] | 6843 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6844 | which can conflict with char re_rx_search (); below.
|
---|
| 6845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6846 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6847 |
|
---|
| 6848 | #ifdef __STDC__
|
---|
| 6849 | # include <limits.h>
|
---|
| 6850 | #else
|
---|
| 6851 | # include <assert.h>
|
---|
| 6852 | #endif
|
---|
| 6853 |
|
---|
| 6854 | #undef re_rx_search
|
---|
| 6855 |
|
---|
| 6856 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6857 | #ifdef __cplusplus
|
---|
| 6858 | extern "C"
|
---|
| 6859 | {
|
---|
| 6860 | #endif
|
---|
| 6861 | /* We use char because int might match the return type of a gcc2
|
---|
| 6862 | builtin and then its argument prototype would still apply. */
|
---|
| 6863 | char re_rx_search ();
|
---|
| 6864 | /* The GNU C library defines this for functions which it implements
|
---|
| 6865 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6866 | something starting with __ and the normal name is an alias. */
|
---|
| 6867 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6868 | choke me
|
---|
| 6869 | #else
|
---|
| 6870 | char (*f) () = re_rx_search;
|
---|
| 6871 | #endif
|
---|
| 6872 | #ifdef __cplusplus
|
---|
| 6873 | }
|
---|
| 6874 | #endif
|
---|
| 6875 |
|
---|
| 6876 | int
|
---|
| 6877 | main ()
|
---|
| 6878 | {
|
---|
| 6879 | return f != re_rx_search;
|
---|
| 6880 | ;
|
---|
| 6881 | return 0;
|
---|
| 6882 | }
|
---|
| 6883 | _ACEOF
|
---|
| 6884 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6886 | (eval $ac_link) 2>conftest.er1
|
---|
| 6887 | ac_status=$?
|
---|
| 6888 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6889 | rm -f conftest.er1
|
---|
| 6890 | cat conftest.err >&5
|
---|
| 6891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6892 | (exit $ac_status); } &&
|
---|
| 6893 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6894 | || test ! -s conftest.err'
|
---|
| 6895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6896 | (eval $ac_try) 2>&5
|
---|
| 6897 | ac_status=$?
|
---|
| 6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6899 | (exit $ac_status); }; } &&
|
---|
| 6900 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6902 | (eval $ac_try) 2>&5
|
---|
| 6903 | ac_status=$?
|
---|
| 6904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6905 | (exit $ac_status); }; }; then
|
---|
| 6906 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 6907 | else
|
---|
[23802] | 6908 | echo "$as_me: failed program was:" >&5
|
---|
| 6909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6910 |
|
---|
| 6911 | ac_cv_func_re_rx_search=no
|
---|
| 6912 | fi
|
---|
| 6913 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6914 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6915 | fi
|
---|
| 6916 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6917 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6918 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 6919 | :
|
---|
| 6920 | else
|
---|
| 6921 | case $LIBOBJS in
|
---|
| 6922 | "rx.$ac_objext" | \
|
---|
| 6923 | *" rx.$ac_objext" | \
|
---|
| 6924 | "rx.$ac_objext "* | \
|
---|
[8756] | 6925 | *" rx.$ac_objext "* ) ;;
|
---|
[23802] | 6926 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
[8756] | 6927 | esac
|
---|
| 6928 |
|
---|
[700] | 6929 | fi
|
---|
| 6930 |
|
---|
| 6931 | fi
|
---|
| 6932 |
|
---|
[8200] | 6933 |
|
---|
[687] | 6934 | # ---------------------------------------------------------------------------
|
---|
| 6935 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[23802] | 6936 | case $LIBOBJS in
|
---|
| 6937 | "xmalloc.$ac_objext" | \
|
---|
| 6938 | *" xmalloc.$ac_objext" | \
|
---|
| 6939 | "xmalloc.$ac_objext "* | \
|
---|
[8756] | 6940 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[23802] | 6941 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
[8756] | 6942 | esac
|
---|
| 6943 |
|
---|
[23802] | 6944 | case $LIBOBJS in
|
---|
| 6945 | "error.$ac_objext" | \
|
---|
| 6946 | *" error.$ac_objext" | \
|
---|
| 6947 | "error.$ac_objext "* | \
|
---|
[8756] | 6948 | *" error.$ac_objext "* ) ;;
|
---|
[23802] | 6949 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[8756] | 6950 | esac
|
---|
| 6951 |
|
---|
[687] | 6952 | fi
|
---|
| 6953 |
|
---|
[8200] | 6954 |
|
---|
[687] | 6955 | # ---------------------------------------------------------------------------
|
---|
| 6956 |
|
---|
[23802] | 6957 | ac_ext=cc
|
---|
[687] | 6958 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 6959 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6960 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6961 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 6962 |
|
---|
[8200] | 6963 |
|
---|
[23802] | 6964 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6965 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[687] | 6966 | success="no"
|
---|
| 6967 | pl_path="$PATH"
|
---|
| 6968 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6969 | for pl_dir in $pl_path; do
|
---|
| 6970 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6971 | if test -x $pl_dir/perl; then
|
---|
| 6972 | success="yes"
|
---|
| 6973 | break
|
---|
| 6974 | fi
|
---|
| 6975 | done
|
---|
| 6976 | IFS="$pl_save_ifs"
|
---|
| 6977 |
|
---|
| 6978 | if test $success = "yes"; then
|
---|
| 6979 | try=`perl configtest.pl` || try="0"
|
---|
| 6980 | try=`expr $try \> 5.000`
|
---|
| 6981 | if test $try = "1"; then
|
---|
[23802] | 6982 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6983 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[687] | 6984 | else
|
---|
| 6985 | success="no"
|
---|
| 6986 | fi
|
---|
| 6987 | fi
|
---|
| 6988 |
|
---|
| 6989 | if test $success = "no"; then
|
---|
[23802] | 6990 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6991 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 6992 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 6993 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
| 6994 | { (exit 1); exit 1; }; }
|
---|
[687] | 6995 | fi
|
---|
| 6996 |
|
---|
| 6997 | success=no
|
---|
[23802] | 6998 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6999 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[687] | 7000 |
|
---|
[18214] | 7001 |
|
---|
[23802] | 7002 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7003 | /* confdefs.h. */
|
---|
| 7004 | _ACEOF
|
---|
| 7005 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7006 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 7007 | /* end confdefs.h. */
|
---|
[687] | 7008 | #include <vector>
|
---|
| 7009 |
|
---|
[8756] | 7010 | int
|
---|
| 7011 | main ()
|
---|
| 7012 | {
|
---|
[687] | 7013 |
|
---|
[8756] | 7014 | ;
|
---|
| 7015 | return 0;
|
---|
| 7016 | }
|
---|
| 7017 | _ACEOF
|
---|
[23802] | 7018 | rm -f conftest.$ac_objext
|
---|
| 7019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7020 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7021 | ac_status=$?
|
---|
| 7022 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7023 | rm -f conftest.er1
|
---|
| 7024 | cat conftest.err >&5
|
---|
| 7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7026 | (exit $ac_status); } &&
|
---|
| 7027 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7028 | || test ! -s conftest.err'
|
---|
| 7029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7030 | (eval $ac_try) 2>&5
|
---|
| 7031 | ac_status=$?
|
---|
| 7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7033 | (exit $ac_status); }; } &&
|
---|
| 7034 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7036 | (eval $ac_try) 2>&5
|
---|
| 7037 | ac_status=$?
|
---|
| 7038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7039 | (exit $ac_status); }; }; then
|
---|
[687] | 7040 | success=yes
|
---|
[23802] | 7041 | else
|
---|
| 7042 | echo "$as_me: failed program was:" >&5
|
---|
| 7043 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7044 |
|
---|
[687] | 7045 | fi
|
---|
[23802] | 7046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7047 |
|
---|
| 7048 | if test $success = "no"; then
|
---|
[23802] | 7049 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7050 | /* confdefs.h. */
|
---|
| 7051 | _ACEOF
|
---|
| 7052 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7053 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 7054 | /* end confdefs.h. */
|
---|
[687] | 7055 | #include <vector.h>
|
---|
| 7056 |
|
---|
[8756] | 7057 | int
|
---|
| 7058 | main ()
|
---|
| 7059 | {
|
---|
[687] | 7060 |
|
---|
[8756] | 7061 | ;
|
---|
| 7062 | return 0;
|
---|
| 7063 | }
|
---|
| 7064 | _ACEOF
|
---|
[23802] | 7065 | rm -f conftest.$ac_objext
|
---|
| 7066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7067 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7068 | ac_status=$?
|
---|
| 7069 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7070 | rm -f conftest.er1
|
---|
| 7071 | cat conftest.err >&5
|
---|
| 7072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7073 | (exit $ac_status); } &&
|
---|
| 7074 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7075 | || test ! -s conftest.err'
|
---|
| 7076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7077 | (eval $ac_try) 2>&5
|
---|
| 7078 | ac_status=$?
|
---|
| 7079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7080 | (exit $ac_status); }; } &&
|
---|
| 7081 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7083 | (eval $ac_try) 2>&5
|
---|
| 7084 | ac_status=$?
|
---|
| 7085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7086 | (exit $ac_status); }; }; then
|
---|
[687] | 7087 | success="yes"
|
---|
[23802] | 7088 | else
|
---|
| 7089 | echo "$as_me: failed program was:" >&5
|
---|
| 7090 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7091 |
|
---|
[687] | 7092 | fi
|
---|
[23802] | 7093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7094 | fi
|
---|
| 7095 |
|
---|
| 7096 | if test $success = "no"; then
|
---|
[23802] | 7097 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7098 | /* confdefs.h. */
|
---|
| 7099 | _ACEOF
|
---|
| 7100 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7101 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 7102 | /* end confdefs.h. */
|
---|
[687] | 7103 | #include <ospace\\std\\vector>
|
---|
| 7104 |
|
---|
[8756] | 7105 | int
|
---|
| 7106 | main ()
|
---|
| 7107 | {
|
---|
[687] | 7108 |
|
---|
[8756] | 7109 | ;
|
---|
| 7110 | return 0;
|
---|
| 7111 | }
|
---|
| 7112 | _ACEOF
|
---|
[23802] | 7113 | rm -f conftest.$ac_objext
|
---|
| 7114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7115 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7116 | ac_status=$?
|
---|
| 7117 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7118 | rm -f conftest.er1
|
---|
| 7119 | cat conftest.err >&5
|
---|
| 7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7121 | (exit $ac_status); } &&
|
---|
| 7122 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7123 | || test ! -s conftest.err'
|
---|
| 7124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7125 | (eval $ac_try) 2>&5
|
---|
| 7126 | ac_status=$?
|
---|
| 7127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7128 | (exit $ac_status); }; } &&
|
---|
| 7129 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7131 | (eval $ac_try) 2>&5
|
---|
| 7132 | ac_status=$?
|
---|
| 7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7134 | (exit $ac_status); }; }; then
|
---|
[687] | 7135 | success="yes"
|
---|
[23802] | 7136 | else
|
---|
| 7137 | echo "$as_me: failed program was:" >&5
|
---|
| 7138 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7139 |
|
---|
[687] | 7140 | fi
|
---|
[23802] | 7141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7142 | fi
|
---|
| 7143 |
|
---|
| 7144 | if test $success = yes; then
|
---|
[23802] | 7145 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7146 | echo "${ECHO_T}\"no\"" >&6
|
---|
[687] | 7147 | else
|
---|
[23802] | 7148 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7149 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7150 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7151 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7152 | { (exit 1); exit 1; }; }
|
---|
[687] | 7153 | fi
|
---|
| 7154 |
|
---|
[2950] | 7155 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7156 | # check for running bash under cygwin
|
---|
| 7157 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7158 | then
|
---|
| 7159 | gsdlos=windows
|
---|
| 7160 | fi
|
---|
[687] | 7161 |
|
---|
[8200] | 7162 |
|
---|
[10856] | 7163 | # check for endianness
|
---|
[23802] | 7164 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7165 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7166 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7167 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10856] | 7168 | else
|
---|
[23802] | 7169 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7170 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7171 | /* confdefs.h. */
|
---|
[10856] | 7172 | _ACEOF
|
---|
[23802] | 7173 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7174 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7175 | /* end confdefs.h. */
|
---|
| 7176 | #include <sys/types.h>
|
---|
[23802] | 7177 | #include <sys/param.h>
|
---|
[10856] | 7178 |
|
---|
| 7179 | int
|
---|
| 7180 | main ()
|
---|
| 7181 | {
|
---|
[23802] | 7182 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7183 | bogus endian macros
|
---|
| 7184 | #endif
|
---|
[10856] | 7185 |
|
---|
| 7186 | ;
|
---|
| 7187 | return 0;
|
---|
| 7188 | }
|
---|
| 7189 | _ACEOF
|
---|
[23802] | 7190 | rm -f conftest.$ac_objext
|
---|
| 7191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7192 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7193 | ac_status=$?
|
---|
| 7194 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7195 | rm -f conftest.er1
|
---|
| 7196 | cat conftest.err >&5
|
---|
| 7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7198 | (exit $ac_status); } &&
|
---|
| 7199 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7200 | || test ! -s conftest.err'
|
---|
| 7201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7202 | (eval $ac_try) 2>&5
|
---|
| 7203 | ac_status=$?
|
---|
| 7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7205 | (exit $ac_status); }; } &&
|
---|
| 7206 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7208 | (eval $ac_try) 2>&5
|
---|
| 7209 | ac_status=$?
|
---|
| 7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7211 | (exit $ac_status); }; }; then
|
---|
[10856] | 7212 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[23802] | 7213 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7214 | /* confdefs.h. */
|
---|
| 7215 | _ACEOF
|
---|
| 7216 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7217 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7218 | /* end confdefs.h. */
|
---|
| 7219 | #include <sys/types.h>
|
---|
[23802] | 7220 | #include <sys/param.h>
|
---|
[10856] | 7221 |
|
---|
| 7222 | int
|
---|
| 7223 | main ()
|
---|
| 7224 | {
|
---|
| 7225 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[23802] | 7226 | not big endian
|
---|
| 7227 | #endif
|
---|
[10856] | 7228 |
|
---|
| 7229 | ;
|
---|
| 7230 | return 0;
|
---|
| 7231 | }
|
---|
| 7232 | _ACEOF
|
---|
[23802] | 7233 | rm -f conftest.$ac_objext
|
---|
| 7234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7235 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7236 | ac_status=$?
|
---|
| 7237 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7238 | rm -f conftest.er1
|
---|
| 7239 | cat conftest.err >&5
|
---|
| 7240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7241 | (exit $ac_status); } &&
|
---|
| 7242 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7243 | || test ! -s conftest.err'
|
---|
| 7244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7245 | (eval $ac_try) 2>&5
|
---|
| 7246 | ac_status=$?
|
---|
| 7247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7248 | (exit $ac_status); }; } &&
|
---|
| 7249 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7251 | (eval $ac_try) 2>&5
|
---|
| 7252 | ac_status=$?
|
---|
| 7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7254 | (exit $ac_status); }; }; then
|
---|
[10856] | 7255 | ac_cv_c_bigendian=yes
|
---|
| 7256 | else
|
---|
[23802] | 7257 | echo "$as_me: failed program was:" >&5
|
---|
| 7258 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7259 |
|
---|
| 7260 | ac_cv_c_bigendian=no
|
---|
[10856] | 7261 | fi
|
---|
[23802] | 7262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7263 | else
|
---|
| 7264 | echo "$as_me: failed program was:" >&5
|
---|
| 7265 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[10856] | 7266 |
|
---|
[23802] | 7267 | # It does not; compile a test program.
|
---|
| 7268 | if test "$cross_compiling" = yes; then
|
---|
| 7269 | # try to guess the endianness by grepping values into an object file
|
---|
| 7270 | ac_cv_c_bigendian=unknown
|
---|
| 7271 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7272 | /* confdefs.h. */
|
---|
[10856] | 7273 | _ACEOF
|
---|
[23802] | 7274 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7275 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7276 | /* end confdefs.h. */
|
---|
[23802] | 7277 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7278 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7279 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7280 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7281 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7282 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
[10856] | 7283 | int
|
---|
| 7284 | main ()
|
---|
| 7285 | {
|
---|
[23802] | 7286 | _ascii (); _ebcdic ();
|
---|
[10856] | 7287 | ;
|
---|
| 7288 | return 0;
|
---|
| 7289 | }
|
---|
| 7290 | _ACEOF
|
---|
[23802] | 7291 | rm -f conftest.$ac_objext
|
---|
| 7292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7293 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7294 | ac_status=$?
|
---|
| 7295 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7296 | rm -f conftest.er1
|
---|
| 7297 | cat conftest.err >&5
|
---|
| 7298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7299 | (exit $ac_status); } &&
|
---|
| 7300 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7301 | || test ! -s conftest.err'
|
---|
| 7302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7303 | (eval $ac_try) 2>&5
|
---|
| 7304 | ac_status=$?
|
---|
| 7305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7306 | (exit $ac_status); }; } &&
|
---|
| 7307 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7309 | (eval $ac_try) 2>&5
|
---|
| 7310 | ac_status=$?
|
---|
| 7311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7312 | (exit $ac_status); }; }; then
|
---|
| 7313 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
[10856] | 7314 | ac_cv_c_bigendian=yes
|
---|
| 7315 | fi
|
---|
[23802] | 7316 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7317 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7318 | ac_cv_c_bigendian=no
|
---|
| 7319 | else
|
---|
| 7320 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7321 | ac_cv_c_bigendian=unknown
|
---|
| 7322 | fi
|
---|
[10856] | 7323 | fi
|
---|
[23802] | 7324 | else
|
---|
| 7325 | echo "$as_me: failed program was:" >&5
|
---|
| 7326 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[10856] | 7327 |
|
---|
| 7328 | fi
|
---|
[23802] | 7329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7330 | else
|
---|
[23802] | 7331 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7332 | /* confdefs.h. */
|
---|
| 7333 | _ACEOF
|
---|
| 7334 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7335 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[10856] | 7336 | /* end confdefs.h. */
|
---|
| 7337 | int
|
---|
| 7338 | main ()
|
---|
| 7339 | {
|
---|
[23802] | 7340 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7341 | union
|
---|
| 7342 | {
|
---|
| 7343 | long l;
|
---|
| 7344 | char c[sizeof (long)];
|
---|
| 7345 | } u;
|
---|
| 7346 | u.l = 1;
|
---|
| 7347 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
[10856] | 7348 | }
|
---|
| 7349 | _ACEOF
|
---|
[23802] | 7350 | rm -f conftest$ac_exeext
|
---|
| 7351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7352 | (eval $ac_link) 2>&5
|
---|
| 7353 | ac_status=$?
|
---|
| 7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7355 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7357 | (eval $ac_try) 2>&5
|
---|
| 7358 | ac_status=$?
|
---|
| 7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7360 | (exit $ac_status); }; }; then
|
---|
[10856] | 7361 | ac_cv_c_bigendian=no
|
---|
| 7362 | else
|
---|
[23802] | 7363 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7364 | echo "$as_me: failed program was:" >&5
|
---|
| 7365 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7366 |
|
---|
| 7367 | ( exit $ac_status )
|
---|
| 7368 | ac_cv_c_bigendian=yes
|
---|
[10856] | 7369 | fi
|
---|
[23802] | 7370 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7371 | fi
|
---|
| 7372 | fi
|
---|
[23802] | 7373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7374 | fi
|
---|
| 7375 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7376 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7377 | case $ac_cv_c_bigendian in
|
---|
| 7378 | yes)
|
---|
[10856] | 7379 |
|
---|
[23802] | 7380 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7381 | #define WORDS_BIGENDIAN 1
|
---|
| 7382 | _ACEOF
|
---|
| 7383 | ;;
|
---|
| 7384 | no)
|
---|
| 7385 | ;;
|
---|
| 7386 | *)
|
---|
| 7387 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7388 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7389 | echo "$as_me: error: unknown endianness
|
---|
| 7390 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7391 | { (exit 1); exit 1; }; } ;;
|
---|
| 7392 | esac
|
---|
[10856] | 7393 |
|
---|
[687] | 7394 | # ---------------------------------------------------------------------------
|
---|
| 7395 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[23802] | 7396 | case $LIBOBJS in
|
---|
| 7397 | "xmalloc.o.$ac_objext" | \
|
---|
| 7398 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7399 | "xmalloc.o.$ac_objext "* | \
|
---|
[8756] | 7400 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[23802] | 7401 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
[8756] | 7402 | esac
|
---|
| 7403 |
|
---|
[23802] | 7404 | case $LIBOBJS in
|
---|
| 7405 | "error.$ac_objext" | \
|
---|
| 7406 | *" error.$ac_objext" | \
|
---|
| 7407 | "error.$ac_objext "* | \
|
---|
[8756] | 7408 | *" error.$ac_objext "* ) ;;
|
---|
[23802] | 7409 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[8756] | 7410 | esac
|
---|
| 7411 |
|
---|
[687] | 7412 | fi
|
---|
| 7413 |
|
---|
[3063] | 7414 | # ---------------------------------------------------------------------------
|
---|
[687] | 7415 |
|
---|
[3063] | 7416 | moduleDirs=""
|
---|
| 7417 | MODULEDIRS=""
|
---|
[16619] | 7418 | if test -d modules ; then
|
---|
[15300] | 7419 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7420 | if test -d "$x"; then
|
---|
| 7421 | d="$x/Makefile.in"
|
---|
| 7422 | if test -e "$d"; then
|
---|
| 7423 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7424 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7425 | fi
|
---|
[3063] | 7426 | fi
|
---|
[15300] | 7427 | done
|
---|
| 7428 | echo "Making $moduleDirs in modules directory"
|
---|
[3063] | 7429 |
|
---|
[15300] | 7430 | fi
|
---|
[8200] | 7431 |
|
---|
[15300] | 7432 |
|
---|
[687] | 7433 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7434 |
|
---|
[13777] | 7435 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 7436 | gsdlprefix=`pwd`
|
---|
[19264] | 7437 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[20853] | 7438 |
|
---|
| 7439 |
|
---|
[21377] | 7440 | subdirs="$subdirs common-src"
|
---|
[8756] | 7441 |
|
---|
[23802] | 7442 |
|
---|
| 7443 |
|
---|
[21377] | 7444 | subdirs="$subdirs build-src"
|
---|
| 7445 |
|
---|
| 7446 |
|
---|
[3063] | 7447 | # the list of folders in the src folder
|
---|
[16572] | 7448 | srclist="common-src/Makefile \
|
---|
[21377] | 7449 | build-src/Makefile"
|
---|
| 7450 |
|
---|
| 7451 | if test -d runtime-src; then
|
---|
| 7452 |
|
---|
[23802] | 7453 |
|
---|
| 7454 | subdirs="$subdirs runtime-src"
|
---|
| 7455 |
|
---|
[21377] | 7456 | srclist="$srclist \
|
---|
[16572] | 7457 | runtime-src/Makefile"
|
---|
[21377] | 7458 | fi
|
---|
[3063] | 7459 |
|
---|
[23802] | 7460 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
[8756] | 7461 | cat >confcache <<\_ACEOF
|
---|
[562] | 7462 | # This file is a shell script that caches the results of configure
|
---|
| 7463 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7464 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7465 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7466 | # want to keep, you may remove or edit it.
|
---|
[562] | 7467 | #
|
---|
[8756] | 7468 | # config.status only pays attention to the cache file if you give it
|
---|
| 7469 | # the --recheck option to rerun configure.
|
---|
[562] | 7470 | #
|
---|
[8756] | 7471 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7472 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7473 | # following values.
|
---|
| 7474 |
|
---|
| 7475 | _ACEOF
|
---|
| 7476 |
|
---|
[562] | 7477 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7478 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[23802] | 7479 | # So, don't put newlines in cache variables' values.
|
---|
[562] | 7480 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7481 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[23802] | 7482 | {
|
---|
[8756] | 7483 | (set) 2>&1 |
|
---|
[23802] | 7484 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7485 | *ac_space=\ *)
|
---|
| 7486 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7487 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
[8756] | 7488 | sed -n \
|
---|
| 7489 | "s/'/'\\\\''/g;
|
---|
| 7490 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[23802] | 7491 | ;;
|
---|
[8756] | 7492 | *)
|
---|
| 7493 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[23802] | 7494 | sed -n \
|
---|
| 7495 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8756] | 7496 | ;;
|
---|
[23802] | 7497 | esac;
|
---|
| 7498 | } |
|
---|
[8756] | 7499 | sed '
|
---|
| 7500 | t clear
|
---|
[23802] | 7501 | : clear
|
---|
[8756] | 7502 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7503 | t end
|
---|
[23802] | 7504 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7505 | : end' >>confcache
|
---|
| 7506 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
| 7507 | if test -w $cache_file; then
|
---|
| 7508 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
[8756] | 7509 | cat confcache >$cache_file
|
---|
[562] | 7510 | else
|
---|
[23802] | 7511 | echo "not updating unwritable cache $cache_file"
|
---|
[562] | 7512 | fi
|
---|
| 7513 | fi
|
---|
| 7514 | rm -f confcache
|
---|
| 7515 |
|
---|
| 7516 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7517 | # Let make expand exec_prefix.
|
---|
| 7518 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7519 |
|
---|
[23802] | 7520 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7521 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7522 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7523 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7524 | if test "x$srcdir" = x.; then
|
---|
| 7525 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7526 | s/:*\$(srcdir):*/:/;
|
---|
| 7527 | s/:*\${srcdir}:*/:/;
|
---|
| 7528 | s/:*@srcdir@:*/:/;
|
---|
| 7529 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7530 | s/:*$//;
|
---|
| 7531 | s/^[^=]*=[ ]*$//;
|
---|
| 7532 | }'
|
---|
| 7533 | fi
|
---|
| 7534 |
|
---|
[687] | 7535 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 7536 |
|
---|
[8756] | 7537 | ac_libobjs=
|
---|
| 7538 | ac_ltlibobjs=
|
---|
| 7539 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7540 | # 1. Remove the extension, and $U if already installed.
|
---|
[23802] | 7541 | ac_i=`echo "$ac_i" |
|
---|
| 7542 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7543 | # 2. Add them.
|
---|
| 7544 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7545 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
[8756] | 7546 | done
|
---|
| 7547 | LIBOBJS=$ac_libobjs
|
---|
| 7548 |
|
---|
| 7549 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7550 |
|
---|
| 7551 |
|
---|
| 7552 |
|
---|
[562] | 7553 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 7554 | ac_clean_files_save=$ac_clean_files
|
---|
| 7555 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[23802] | 7556 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7557 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7558 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
[8756] | 7559 | #! $SHELL
|
---|
| 7560 | # Generated by $as_me.
|
---|
[562] | 7561 | # Run this file to recreate the current configuration.
|
---|
| 7562 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 7563 | # configure, is in config.log if it exists.
|
---|
[562] | 7564 |
|
---|
[8756] | 7565 | debug=false
|
---|
| 7566 | ac_cs_recheck=false
|
---|
| 7567 | ac_cs_silent=false
|
---|
| 7568 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[23802] | 7569 | _ACEOF
|
---|
[8756] | 7570 |
|
---|
[23802] | 7571 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7572 | ## --------------------- ##
|
---|
| 7573 | ## M4sh Initialization. ##
|
---|
| 7574 | ## --------------------- ##
|
---|
| 7575 |
|
---|
| 7576 | # Be Bourne compatible
|
---|
| 7577 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[8756] | 7578 | emulate sh
|
---|
| 7579 | NULLCMD=:
|
---|
[23802] | 7580 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[8756] | 7581 | # is contrary to our usage. Disable this feature.
|
---|
| 7582 | alias -g '${1+"$@"}'='"$@"'
|
---|
[23802] | 7583 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7584 | set -o posix
|
---|
[8756] | 7585 | fi
|
---|
[23802] | 7586 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8756] | 7587 |
|
---|
[23802] | 7588 | # Support unset when possible.
|
---|
| 7589 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7590 | as_unset=unset
|
---|
[8756] | 7591 | else
|
---|
[23802] | 7592 | as_unset=false
|
---|
[8756] | 7593 | fi
|
---|
| 7594 |
|
---|
| 7595 |
|
---|
[23802] | 7596 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7597 | $as_unset ENV MAIL MAILPATH
|
---|
[8756] | 7598 | PS1='$ '
|
---|
| 7599 | PS2='> '
|
---|
| 7600 | PS4='+ '
|
---|
| 7601 |
|
---|
| 7602 | # NLS nuisances.
|
---|
[23802] | 7603 | for as_var in \
|
---|
| 7604 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7605 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7606 | LC_TELEPHONE LC_TIME
|
---|
| 7607 | do
|
---|
| 7608 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7609 | eval $as_var=C; export $as_var
|
---|
| 7610 | else
|
---|
| 7611 | $as_unset $as_var
|
---|
[8756] | 7612 | fi
|
---|
[23802] | 7613 | done
|
---|
[562] | 7614 |
|
---|
[23802] | 7615 | # Required to use basename.
|
---|
| 7616 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[8756] | 7617 | as_expr=expr
|
---|
| 7618 | else
|
---|
| 7619 | as_expr=false
|
---|
| 7620 | fi
|
---|
[562] | 7621 |
|
---|
[23802] | 7622 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[8756] | 7623 | as_basename=basename
|
---|
| 7624 | else
|
---|
| 7625 | as_basename=false
|
---|
| 7626 | fi
|
---|
[562] | 7627 |
|
---|
| 7628 |
|
---|
[23802] | 7629 | # Name of the executable.
|
---|
| 7630 | as_me=`$as_basename "$0" ||
|
---|
[8756] | 7631 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7632 | X"$0" : 'X\(//\)$' \| \
|
---|
[23802] | 7633 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7634 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7635 | echo X/"$0" |
|
---|
| 7636 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7637 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7638 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7639 | s/.*/./; q'`
|
---|
[3631] | 7640 |
|
---|
[23802] | 7641 |
|
---|
| 7642 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
[20853] | 7643 | # Avoid depending upon Character Ranges.
|
---|
| 7644 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7645 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7646 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7647 | as_cr_digits='0123456789'
|
---|
| 7648 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[8756] | 7649 |
|
---|
[23802] | 7650 | # The user is always right.
|
---|
| 7651 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7652 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7653 | echo "exit 0" >>conf$$.sh
|
---|
| 7654 | chmod +x conf$$.sh
|
---|
| 7655 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7656 | PATH_SEPARATOR=';'
|
---|
| 7657 | else
|
---|
| 7658 | PATH_SEPARATOR=:
|
---|
| 7659 | fi
|
---|
| 7660 | rm -f conf$$.sh
|
---|
| 7661 | fi
|
---|
| 7662 |
|
---|
| 7663 |
|
---|
| 7664 | as_lineno_1=$LINENO
|
---|
| 7665 | as_lineno_2=$LINENO
|
---|
| 7666 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7667 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7668 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7669 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7670 | # relative or not.
|
---|
| 7671 | case $0 in
|
---|
| 7672 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7673 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7674 | for as_dir in $PATH
|
---|
| 7675 | do
|
---|
| 7676 | IFS=$as_save_IFS
|
---|
| 7677 | test -z "$as_dir" && as_dir=.
|
---|
| 7678 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7679 | done
|
---|
| 7680 |
|
---|
| 7681 | ;;
|
---|
| 7682 | esac
|
---|
| 7683 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7684 | # in which case we are not to be found in the path.
|
---|
| 7685 | if test "x$as_myself" = x; then
|
---|
| 7686 | as_myself=$0
|
---|
| 7687 | fi
|
---|
| 7688 | if test ! -f "$as_myself"; then
|
---|
| 7689 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7690 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7691 | { (exit 1); exit 1; }; }
|
---|
| 7692 | fi
|
---|
| 7693 | case $CONFIG_SHELL in
|
---|
| 7694 | '')
|
---|
| 7695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7696 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7697 | do
|
---|
| 7698 | IFS=$as_save_IFS
|
---|
| 7699 | test -z "$as_dir" && as_dir=.
|
---|
| 7700 | for as_base in sh bash ksh sh5; do
|
---|
| 7701 | case $as_dir in
|
---|
| 7702 | /*)
|
---|
| 7703 | if ("$as_dir/$as_base" -c '
|
---|
| 7704 | as_lineno_1=$LINENO
|
---|
| 7705 | as_lineno_2=$LINENO
|
---|
| 7706 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7707 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7708 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7709 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7710 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7711 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7712 | export CONFIG_SHELL
|
---|
| 7713 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7714 | fi;;
|
---|
| 7715 | esac
|
---|
| 7716 | done
|
---|
| 7717 | done
|
---|
| 7718 | ;;
|
---|
| 7719 | esac
|
---|
| 7720 |
|
---|
| 7721 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7722 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7723 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7724 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7725 | # with the numbered line, and appends trailing '-' during
|
---|
| 7726 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7727 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7728 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7729 | sed '=' <$as_myself |
|
---|
| 7730 | sed '
|
---|
| 7731 | N
|
---|
| 7732 | s,$,-,
|
---|
| 7733 | : loop
|
---|
| 7734 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7735 | t loop
|
---|
| 7736 | s,-$,,
|
---|
| 7737 | s,^['$as_cr_digits']*\n,,
|
---|
| 7738 | ' >$as_me.lineno &&
|
---|
| 7739 | chmod +x $as_me.lineno ||
|
---|
| 7740 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7741 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7742 | { (exit 1); exit 1; }; }
|
---|
| 7743 |
|
---|
| 7744 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7745 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7746 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7747 | . ./$as_me.lineno
|
---|
| 7748 | # Exit status is that of the last command.
|
---|
| 7749 | exit
|
---|
| 7750 | }
|
---|
| 7751 |
|
---|
| 7752 |
|
---|
| 7753 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7754 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7755 | ' ECHO_T=' ' ;;
|
---|
| 7756 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7757 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
[8756] | 7758 | esac
|
---|
| 7759 |
|
---|
[23802] | 7760 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7761 | as_expr=expr
|
---|
[8756] | 7762 | else
|
---|
[23802] | 7763 | as_expr=false
|
---|
[8756] | 7764 | fi
|
---|
[23802] | 7765 |
|
---|
| 7766 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7767 | echo >conf$$.file
|
---|
| 7768 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7769 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7770 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7771 | if test -f conf$$.exe; then
|
---|
| 7772 | # Don't use ln at all; we don't have any links
|
---|
| 7773 | as_ln_s='cp -p'
|
---|
| 7774 | else
|
---|
[22378] | 7775 | as_ln_s='ln -s'
|
---|
[20853] | 7776 | fi
|
---|
[23802] | 7777 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7778 | as_ln_s=ln
|
---|
[8756] | 7779 | else
|
---|
| 7780 | as_ln_s='cp -p'
|
---|
| 7781 | fi
|
---|
[23802] | 7782 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[8756] | 7783 |
|
---|
| 7784 | if mkdir -p . 2>/dev/null; then
|
---|
[23802] | 7785 | as_mkdir_p=:
|
---|
[8756] | 7786 | else
|
---|
| 7787 | test -d ./-p && rmdir ./-p
|
---|
| 7788 | as_mkdir_p=false
|
---|
| 7789 | fi
|
---|
| 7790 |
|
---|
[23802] | 7791 | as_executable_p="test -f"
|
---|
[8756] | 7792 |
|
---|
| 7793 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7794 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7795 |
|
---|
| 7796 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7797 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7798 |
|
---|
| 7799 |
|
---|
[23802] | 7800 | # IFS
|
---|
| 7801 | # We need space, tab and new line, in precisely that order.
|
---|
| 7802 | as_nl='
|
---|
| 7803 | '
|
---|
| 7804 | IFS=" $as_nl"
|
---|
| 7805 |
|
---|
| 7806 | # CDPATH.
|
---|
| 7807 | $as_unset CDPATH
|
---|
| 7808 |
|
---|
[8756] | 7809 | exec 6>&1
|
---|
| 7810 |
|
---|
[23802] | 7811 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
[8756] | 7812 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[23802] | 7813 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7814 | exec 5>>config.log
|
---|
| 7815 | {
|
---|
| 7816 | echo
|
---|
| 7817 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7818 | ## Running $as_me. ##
|
---|
| 7819 | _ASBOX
|
---|
| 7820 | } >&5
|
---|
| 7821 | cat >&5 <<_CSEOF
|
---|
| 7822 |
|
---|
[8756] | 7823 | This file was extended by $as_me, which was
|
---|
[23802] | 7824 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8756] | 7825 |
|
---|
| 7826 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7827 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7828 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7829 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7830 | $ $0 $@
|
---|
| 7831 |
|
---|
[23802] | 7832 | _CSEOF
|
---|
| 7833 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7834 | echo >&5
|
---|
[8756] | 7835 | _ACEOF
|
---|
| 7836 |
|
---|
[23802] | 7837 | # Files that config.status was made for.
|
---|
| 7838 | if test -n "$ac_config_files"; then
|
---|
| 7839 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7840 | fi
|
---|
[8756] | 7841 |
|
---|
[23802] | 7842 | if test -n "$ac_config_headers"; then
|
---|
| 7843 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7844 | fi
|
---|
[8756] | 7845 |
|
---|
[23802] | 7846 | if test -n "$ac_config_links"; then
|
---|
| 7847 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7848 | fi
|
---|
[20853] | 7849 |
|
---|
[23802] | 7850 | if test -n "$ac_config_commands"; then
|
---|
| 7851 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7852 | fi
|
---|
[20853] | 7853 |
|
---|
[23802] | 7854 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[20853] | 7855 |
|
---|
[8756] | 7856 | ac_cs_usage="\
|
---|
[23802] | 7857 | \`$as_me' instantiates files from templates according to the
|
---|
| 7858 | current configuration.
|
---|
[8756] | 7859 |
|
---|
[23802] | 7860 | Usage: $0 [OPTIONS] [FILE]...
|
---|
[8756] | 7861 |
|
---|
| 7862 | -h, --help print this help, then exit
|
---|
[23802] | 7863 | -V, --version print version number, then exit
|
---|
| 7864 | -q, --quiet do not print progress messages
|
---|
[8756] | 7865 | -d, --debug don't remove temporary files
|
---|
| 7866 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[23802] | 7867 | --file=FILE[:TEMPLATE]
|
---|
| 7868 | instantiate the configuration file FILE
|
---|
| 7869 | --header=FILE[:TEMPLATE]
|
---|
| 7870 | instantiate the configuration header FILE
|
---|
[8756] | 7871 |
|
---|
| 7872 | Configuration files:
|
---|
| 7873 | $config_files
|
---|
| 7874 |
|
---|
| 7875 | Configuration headers:
|
---|
| 7876 | $config_headers
|
---|
| 7877 |
|
---|
[23802] | 7878 | Report bugs to <[email protected]>."
|
---|
| 7879 | _ACEOF
|
---|
[22378] | 7880 |
|
---|
[23802] | 7881 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8756] | 7882 | ac_cs_version="\\
|
---|
| 7883 | config.status
|
---|
[23802] | 7884 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7885 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[8756] | 7886 |
|
---|
[23802] | 7887 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8756] | 7888 | This config.status script is free software; the Free Software Foundation
|
---|
| 7889 | gives unlimited permission to copy, distribute and modify it."
|
---|
[23802] | 7890 | srcdir=$srcdir
|
---|
| 7891 | INSTALL="$INSTALL"
|
---|
[8756] | 7892 | _ACEOF
|
---|
| 7893 |
|
---|
[23802] | 7894 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7895 | # If no file are specified by the user, then we need to provide default
|
---|
| 7896 | # value. By we need to know if files were specified by the user.
|
---|
[8756] | 7897 | ac_need_defaults=:
|
---|
| 7898 | while test $# != 0
|
---|
| 7899 | do
|
---|
| 7900 | case $1 in
|
---|
[23802] | 7901 | --*=*)
|
---|
| 7902 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7903 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[8756] | 7904 | ac_shift=:
|
---|
| 7905 | ;;
|
---|
[23802] | 7906 | -*)
|
---|
[8756] | 7907 | ac_option=$1
|
---|
| 7908 | ac_optarg=$2
|
---|
| 7909 | ac_shift=shift
|
---|
| 7910 | ;;
|
---|
[23802] | 7911 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7912 | # arguments.
|
---|
| 7913 | ac_option=$1
|
---|
| 7914 | ac_need_defaults=false;;
|
---|
[8756] | 7915 | esac
|
---|
| 7916 |
|
---|
| 7917 | case $ac_option in
|
---|
| 7918 | # Handling of the options.
|
---|
[23802] | 7919 | _ACEOF
|
---|
| 7920 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 7921 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7922 | ac_cs_recheck=: ;;
|
---|
[23802] | 7923 | --version | --vers* | -V )
|
---|
| 7924 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7925 | --he | --h)
|
---|
| 7926 | # Conflict between --help and --header
|
---|
| 7927 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7928 | Try \`$0 --help' for more information." >&5
|
---|
| 7929 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7930 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7931 | { (exit 1); exit 1; }; };;
|
---|
| 7932 | --help | --hel | -h )
|
---|
| 7933 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7934 | --debug | --d* | -d )
|
---|
[8756] | 7935 | debug=: ;;
|
---|
| 7936 | --file | --fil | --fi | --f )
|
---|
| 7937 | $ac_shift
|
---|
[23802] | 7938 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[8756] | 7939 | ac_need_defaults=false;;
|
---|
| 7940 | --header | --heade | --head | --hea )
|
---|
| 7941 | $ac_shift
|
---|
[23802] | 7942 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[8756] | 7943 | ac_need_defaults=false;;
|
---|
| 7944 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7945 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7946 | ac_cs_silent=: ;;
|
---|
| 7947 |
|
---|
| 7948 | # This is an error.
|
---|
[23802] | 7949 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7950 | Try \`$0 --help' for more information." >&5
|
---|
| 7951 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7952 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7953 | { (exit 1); exit 1; }; } ;;
|
---|
[8756] | 7954 |
|
---|
[23802] | 7955 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
[8756] | 7956 |
|
---|
| 7957 | esac
|
---|
| 7958 | shift
|
---|
[8200] | 7959 | done
|
---|
[8756] | 7960 |
|
---|
| 7961 | ac_configure_extra_args=
|
---|
| 7962 |
|
---|
| 7963 | if $ac_cs_silent; then
|
---|
| 7964 | exec 6>/dev/null
|
---|
| 7965 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 7966 | fi
|
---|
[562] | 7967 |
|
---|
[8756] | 7968 | _ACEOF
|
---|
[23802] | 7969 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8756] | 7970 | if \$ac_cs_recheck; then
|
---|
[23802] | 7971 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7972 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[8756] | 7973 | fi
|
---|
[8200] | 7974 |
|
---|
[8756] | 7975 | _ACEOF
|
---|
| 7976 |
|
---|
| 7977 |
|
---|
[20853] | 7978 |
|
---|
[23802] | 7979 |
|
---|
| 7980 |
|
---|
| 7981 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 7982 | for ac_config_target in $ac_config_targets
|
---|
| 7983 | do
|
---|
[23802] | 7984 | case "$ac_config_target" in
|
---|
| 7985 | # Handling of arguments.
|
---|
| 7986 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7987 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7988 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7989 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7990 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7991 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7992 | { (exit 1); exit 1; }; };;
|
---|
[562] | 7993 | esac
|
---|
[8756] | 7994 | done
|
---|
[562] | 7995 |
|
---|
[8756] | 7996 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7997 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7998 | # We use the long form for the default assignment because of an extremely
|
---|
| 7999 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8000 | if $ac_need_defaults; then
|
---|
| 8001 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8002 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8003 | fi
|
---|
[8200] | 8004 |
|
---|
[8756] | 8005 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[23802] | 8006 | # simply because there is no reason to put it here, and in addition,
|
---|
[8756] | 8007 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[23802] | 8008 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
[8756] | 8009 | $debug ||
|
---|
| 8010 | {
|
---|
[23802] | 8011 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 8012 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[8756] | 8013 | }
|
---|
[23802] | 8014 |
|
---|
[8756] | 8015 | # Create a (secure) tmp directory for tmp files.
|
---|
| 8016 |
|
---|
| 8017 | {
|
---|
[23802] | 8018 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[8756] | 8019 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8020 | } ||
|
---|
| 8021 | {
|
---|
[23802] | 8022 | tmp=./confstat$$-$RANDOM
|
---|
| 8023 | (umask 077 && mkdir $tmp)
|
---|
| 8024 | } ||
|
---|
[8756] | 8025 | {
|
---|
[23802] | 8026 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 8027 | { (exit 1); exit 1; }
|
---|
| 8028 | }
|
---|
[22378] | 8029 |
|
---|
| 8030 | _ACEOF
|
---|
[8756] | 8031 |
|
---|
[23802] | 8032 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[22378] | 8033 |
|
---|
[23802] | 8034 | #
|
---|
| 8035 | # CONFIG_FILES section.
|
---|
| 8036 | #
|
---|
[22378] | 8037 |
|
---|
[23802] | 8038 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8039 | # This happens for instance when ./config.status config.h
|
---|
| 8040 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8041 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8042 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8043 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8044 | s,@SHELL@,$SHELL,;t t
|
---|
| 8045 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8046 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8047 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8048 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8049 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8050 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 8051 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8052 | s,@prefix@,$prefix,;t t
|
---|
| 8053 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8054 | s,@bindir@,$bindir,;t t
|
---|
| 8055 | s,@sbindir@,$sbindir,;t t
|
---|
| 8056 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8057 | s,@datadir@,$datadir,;t t
|
---|
| 8058 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8059 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8060 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8061 | s,@libdir@,$libdir,;t t
|
---|
| 8062 | s,@includedir@,$includedir,;t t
|
---|
| 8063 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8064 | s,@infodir@,$infodir,;t t
|
---|
| 8065 | s,@mandir@,$mandir,;t t
|
---|
| 8066 | s,@build_alias@,$build_alias,;t t
|
---|
| 8067 | s,@host_alias@,$host_alias,;t t
|
---|
| 8068 | s,@target_alias@,$target_alias,;t t
|
---|
| 8069 | s,@DEFS@,$DEFS,;t t
|
---|
| 8070 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8071 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8072 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8073 | s,@LIBS@,$LIBS,;t t
|
---|
| 8074 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8075 | s,@VERSION@,$VERSION,;t t
|
---|
| 8076 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 8077 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 8078 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 8079 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 8080 | s,@ENABLE_JAVA@,$ENABLE_JAVA,;t t
|
---|
| 8081 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 8082 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
| 8083 | s,@USE_WVWARE@,$USE_WVWARE,;t t
|
---|
| 8084 | s,@USE_JDBM@,$USE_JDBM,;t t
|
---|
| 8085 | s,@USE_GDBM@,$USE_GDBM,;t t
|
---|
| 8086 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
| 8087 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
[24958] | 8088 | s,@USE_RSS@,$USE_RSS,;t t
|
---|
[23802] | 8089 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
| 8090 | s,@ENABLE_JNI@,$ENABLE_JNI,;t t
|
---|
| 8091 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
| 8092 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
| 8093 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
| 8094 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8095 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8096 | s,@CC@,$CC,;t t
|
---|
| 8097 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8098 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8099 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8100 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8101 | s,@CXX@,$CXX,;t t
|
---|
| 8102 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8103 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8104 | s,@AWK@,$AWK,;t t
|
---|
| 8105 | s,@YACC@,$YACC,;t t
|
---|
| 8106 | s,@build@,$build,;t t
|
---|
| 8107 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 8108 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 8109 | s,@build_os@,$build_os,;t t
|
---|
| 8110 | s,@host@,$host,;t t
|
---|
| 8111 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 8112 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 8113 | s,@host_os@,$host_os,;t t
|
---|
| 8114 | s,@target@,$target,;t t
|
---|
| 8115 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 8116 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 8117 | s,@target_os@,$target_os,;t t
|
---|
| 8118 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8119 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8120 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8121 | s,@LN_S@,$LN_S,;t t
|
---|
| 8122 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8123 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8124 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8125 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
| 8126 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 8127 | s,@CPP@,$CPP,;t t
|
---|
| 8128 | s,@EGREP@,$EGREP,;t t
|
---|
| 8129 | s,@U@,$U,;t t
|
---|
| 8130 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 8131 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8132 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 8133 | s,@STATIC@,$STATIC,;t t
|
---|
| 8134 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 8135 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 8136 | s,@subdirs@,$subdirs,;t t
|
---|
| 8137 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 8138 | CEOF
|
---|
[20853] | 8139 |
|
---|
[8756] | 8140 | _ACEOF
|
---|
| 8141 |
|
---|
[23802] | 8142 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8143 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8144 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8145 | ac_max_sed_lines=48
|
---|
| 8146 | ac_sed_frag=1 # Number of current file.
|
---|
| 8147 | ac_beg=1 # First line for current file.
|
---|
| 8148 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8149 | ac_more_lines=:
|
---|
| 8150 | ac_sed_cmds=
|
---|
| 8151 | while $ac_more_lines; do
|
---|
| 8152 | if test $ac_beg -gt 1; then
|
---|
| 8153 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8154 | else
|
---|
| 8155 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8156 | fi
|
---|
| 8157 | if test ! -s $tmp/subs.frag; then
|
---|
| 8158 | ac_more_lines=false
|
---|
| 8159 | else
|
---|
| 8160 | # The purpose of the label and of the branching condition is to
|
---|
| 8161 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8162 | # is no need to browse any of the substitutions).
|
---|
| 8163 | # These are the two extra sed commands mentioned above.
|
---|
| 8164 | (echo ':t
|
---|
| 8165 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8166 | if test -z "$ac_sed_cmds"; then
|
---|
| 8167 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8168 | else
|
---|
| 8169 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8170 | fi
|
---|
| 8171 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8172 | ac_beg=$ac_end
|
---|
| 8173 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8174 | fi
|
---|
| 8175 | done
|
---|
| 8176 | if test -z "$ac_sed_cmds"; then
|
---|
| 8177 | ac_sed_cmds=cat
|
---|
[562] | 8178 | fi
|
---|
[23802] | 8179 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 8180 |
|
---|
[8756] | 8181 | _ACEOF
|
---|
[23802] | 8182 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8183 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8184 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8185 | case $ac_file in
|
---|
| 8186 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8187 | cat >$tmp/stdin
|
---|
| 8188 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8189 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8190 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8191 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8192 | * ) ac_file_in=$ac_file.in ;;
|
---|
[562] | 8193 | esac
|
---|
| 8194 |
|
---|
[23802] | 8195 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8196 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
[8756] | 8197 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8198 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8199 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[23802] | 8200 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8201 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8202 | echo X"$ac_file" |
|
---|
| 8203 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8204 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8205 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8206 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8207 | s/.*/./; q'`
|
---|
| 8208 | { if $as_mkdir_p; then
|
---|
| 8209 | mkdir -p "$ac_dir"
|
---|
| 8210 | else
|
---|
| 8211 | as_dir="$ac_dir"
|
---|
| 8212 | as_dirs=
|
---|
| 8213 | while test ! -d "$as_dir"; do
|
---|
| 8214 | as_dirs="$as_dir $as_dirs"
|
---|
| 8215 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8216 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8217 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8218 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8219 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8220 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8221 | echo X"$as_dir" |
|
---|
| 8222 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8223 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8224 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8225 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8226 | s/.*/./; q'`
|
---|
| 8227 | done
|
---|
| 8228 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8229 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8230 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8231 | { (exit 1); exit 1; }; }; }
|
---|
| 8232 |
|
---|
[8756] | 8233 | ac_builddir=.
|
---|
| 8234 |
|
---|
[23802] | 8235 | if test "$ac_dir" != .; then
|
---|
| 8236 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8237 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8238 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8239 | else
|
---|
| 8240 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8241 | fi
|
---|
[8756] | 8242 |
|
---|
| 8243 | case $srcdir in
|
---|
[23802] | 8244 | .) # No --srcdir option. We are building in place.
|
---|
[8756] | 8245 | ac_srcdir=.
|
---|
[23802] | 8246 | if test -z "$ac_top_builddir"; then
|
---|
| 8247 | ac_top_srcdir=.
|
---|
| 8248 | else
|
---|
| 8249 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8250 | fi ;;
|
---|
| 8251 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[8756] | 8252 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23802] | 8253 | ac_top_srcdir=$srcdir ;;
|
---|
| 8254 | *) # Relative path.
|
---|
| 8255 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8256 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[8756] | 8257 | esac
|
---|
| 8258 |
|
---|
[23802] | 8259 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8260 | # the directories may not exist.
|
---|
| 8261 | case `pwd` in
|
---|
| 8262 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8263 | *)
|
---|
| 8264 | case "$ac_dir" in
|
---|
| 8265 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8266 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8267 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8268 | esac;;
|
---|
| 8269 | esac
|
---|
| 8270 | case $ac_abs_builddir in
|
---|
| 8271 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8272 | *)
|
---|
| 8273 | case ${ac_top_builddir}. in
|
---|
| 8274 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8275 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8276 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8277 | esac;;
|
---|
| 8278 | esac
|
---|
| 8279 | case $ac_abs_builddir in
|
---|
| 8280 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8281 | *)
|
---|
| 8282 | case $ac_srcdir in
|
---|
| 8283 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8284 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8285 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8286 | esac;;
|
---|
| 8287 | esac
|
---|
| 8288 | case $ac_abs_builddir in
|
---|
| 8289 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8290 | *)
|
---|
| 8291 | case $ac_top_srcdir in
|
---|
| 8292 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8293 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8294 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8295 | esac;;
|
---|
| 8296 | esac
|
---|
[8756] | 8297 |
|
---|
| 8298 |
|
---|
| 8299 | case $INSTALL in
|
---|
| 8300 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[23802] | 8301 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[8200] | 8302 | esac
|
---|
[562] | 8303 |
|
---|
[23802] | 8304 | if test x"$ac_file" != x-; then
|
---|
| 8305 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8306 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8307 | rm -f "$ac_file"
|
---|
| 8308 | fi
|
---|
| 8309 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8310 | # use $as_me), people would be surprised to read:
|
---|
| 8311 | # /* config.h. Generated by config.status. */
|
---|
| 8312 | if test x"$ac_file" = x-; then
|
---|
| 8313 | configure_input=
|
---|
| 8314 | else
|
---|
| 8315 | configure_input="$ac_file. "
|
---|
| 8316 | fi
|
---|
| 8317 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8318 | sed 's,.*/,,'` by configure."
|
---|
| 8319 |
|
---|
| 8320 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8321 | # src tree.
|
---|
| 8322 | ac_file_inputs=`IFS=:
|
---|
| 8323 | for f in $ac_file_in; do
|
---|
| 8324 | case $f in
|
---|
| 8325 | -) echo $tmp/stdin ;;
|
---|
| 8326 | [\\/$]*)
|
---|
| 8327 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8328 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8329 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8330 | { (exit 1); exit 1; }; }
|
---|
| 8331 | echo "$f";;
|
---|
| 8332 | *) # Relative
|
---|
| 8333 | if test -f "$f"; then
|
---|
| 8334 | # Build tree
|
---|
| 8335 | echo "$f"
|
---|
| 8336 | elif test -f "$srcdir/$f"; then
|
---|
| 8337 | # Source tree
|
---|
| 8338 | echo "$srcdir/$f"
|
---|
| 8339 | else
|
---|
| 8340 | # /dev/null tree
|
---|
| 8341 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8342 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8343 | { (exit 1); exit 1; }; }
|
---|
| 8344 | fi;;
|
---|
| 8345 | esac
|
---|
| 8346 | done` || { (exit 1); exit 1; }
|
---|
[22378] | 8347 | _ACEOF
|
---|
[23802] | 8348 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8349 | sed "$ac_vpsub
|
---|
[8756] | 8350 | $extrasub
|
---|
| 8351 | _ACEOF
|
---|
[23802] | 8352 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 8353 | :t
|
---|
| 8354 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[23802] | 8355 | s,@configure_input@,$configure_input,;t t
|
---|
| 8356 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8357 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8358 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8359 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8360 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8361 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8362 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8363 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8364 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8365 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8366 | rm -f $tmp/stdin
|
---|
| 8367 | if test x"$ac_file" != x-; then
|
---|
| 8368 | mv $tmp/out $ac_file
|
---|
| 8369 | else
|
---|
| 8370 | cat $tmp/out
|
---|
| 8371 | rm -f $tmp/out
|
---|
| 8372 | fi
|
---|
[8756] | 8373 |
|
---|
[23802] | 8374 | done
|
---|
| 8375 | _ACEOF
|
---|
| 8376 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 8377 |
|
---|
[23802] | 8378 | #
|
---|
| 8379 | # CONFIG_HEADER section.
|
---|
| 8380 | #
|
---|
| 8381 |
|
---|
| 8382 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8383 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8384 | #
|
---|
| 8385 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 8386 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8387 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8388 | ac_dC=' '
|
---|
| 8389 | ac_dD=',;t'
|
---|
| 8390 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8391 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8392 | ac_uB='$,\1#\2define\3'
|
---|
| 8393 | ac_uC=' '
|
---|
| 8394 | ac_uD=',;t'
|
---|
| 8395 |
|
---|
| 8396 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 8397 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8756] | 8398 | case $ac_file in
|
---|
[23802] | 8399 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8400 | cat >$tmp/stdin
|
---|
| 8401 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8402 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8403 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8404 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8405 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 8406 | esac
|
---|
| 8407 |
|
---|
| 8408 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8409 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8410 |
|
---|
| 8411 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8412 | # src tree.
|
---|
| 8413 | ac_file_inputs=`IFS=:
|
---|
| 8414 | for f in $ac_file_in; do
|
---|
| 8415 | case $f in
|
---|
| 8416 | -) echo $tmp/stdin ;;
|
---|
| 8417 | [\\/$]*)
|
---|
| 8418 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8419 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8420 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8421 | { (exit 1); exit 1; }; }
|
---|
| 8422 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8423 | echo "$f";;
|
---|
| 8424 | *) # Relative
|
---|
| 8425 | if test -f "$f"; then
|
---|
| 8426 | # Build tree
|
---|
| 8427 | echo "$f"
|
---|
| 8428 | elif test -f "$srcdir/$f"; then
|
---|
| 8429 | # Source tree
|
---|
| 8430 | echo "$srcdir/$f"
|
---|
| 8431 | else
|
---|
| 8432 | # /dev/null tree
|
---|
| 8433 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8434 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8435 | { (exit 1); exit 1; }; }
|
---|
| 8436 | fi;;
|
---|
| 8437 | esac
|
---|
| 8438 | done` || { (exit 1); exit 1; }
|
---|
| 8439 | # Remove the trailing spaces.
|
---|
| 8440 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
| 8441 |
|
---|
| 8442 | _ACEOF
|
---|
| 8443 |
|
---|
| 8444 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8445 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8446 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8447 | # templates, and the second `#undef' templates.
|
---|
| 8448 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8449 | # config.status. Protect against being in an unquoted here document
|
---|
| 8450 | # in config.status.
|
---|
| 8451 | rm -f conftest.defines conftest.undefs
|
---|
| 8452 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8453 | # Putting comments in sed scripts is not portable.
|
---|
| 8454 | #
|
---|
| 8455 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8456 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8457 | # See the Autoconf documentation for `clear'.
|
---|
| 8458 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8459 | s/[\\&,]/\\&/g
|
---|
| 8460 | s,[\\$`],\\&,g
|
---|
| 8461 | t clear
|
---|
| 8462 | : clear
|
---|
| 8463 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8464 | t end
|
---|
| 8465 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8466 | : end
|
---|
| 8467 | _ACEOF
|
---|
| 8468 | # If some macros were called several times there might be several times
|
---|
| 8469 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8470 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8471 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8472 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8473 | rm -f confdef2sed.sed
|
---|
| 8474 |
|
---|
| 8475 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8476 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8477 | # on some systems where configure will not decide to define it.
|
---|
| 8478 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8479 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8480 | _ACEOF
|
---|
| 8481 |
|
---|
| 8482 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8483 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8484 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8485 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8486 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8487 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8488 | rm -f conftest.tail
|
---|
| 8489 | while grep . conftest.defines >/dev/null
|
---|
| 8490 | do
|
---|
| 8491 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8492 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8493 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8494 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8495 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8496 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8497 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8498 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8499 | echo 'CEOF
|
---|
| 8500 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8501 | rm -f $tmp/in
|
---|
| 8502 | mv $tmp/out $tmp/in
|
---|
| 8503 | ' >>$CONFIG_STATUS
|
---|
| 8504 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8505 | rm -f conftest.defines
|
---|
| 8506 | mv conftest.tail conftest.defines
|
---|
| 8507 | done
|
---|
| 8508 | rm -f conftest.defines
|
---|
| 8509 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8510 | echo >>$CONFIG_STATUS
|
---|
| 8511 |
|
---|
| 8512 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8513 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8514 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 8515 | rm -f conftest.tail
|
---|
| 8516 | while grep . conftest.undefs >/dev/null
|
---|
| 8517 | do
|
---|
| 8518 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8519 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8520 | # Speed up: don't consider the non `#undef'
|
---|
| 8521 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8522 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8523 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8524 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8525 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 8526 | echo 'CEOF
|
---|
| 8527 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8528 | rm -f $tmp/in
|
---|
| 8529 | mv $tmp/out $tmp/in
|
---|
| 8530 | ' >>$CONFIG_STATUS
|
---|
| 8531 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8532 | rm -f conftest.undefs
|
---|
| 8533 | mv conftest.tail conftest.undefs
|
---|
| 8534 | done
|
---|
| 8535 | rm -f conftest.undefs
|
---|
| 8536 |
|
---|
| 8537 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8538 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8539 | # use $as_me), people would be surprised to read:
|
---|
| 8540 | # /* config.h. Generated by config.status. */
|
---|
| 8541 | if test x"$ac_file" = x-; then
|
---|
| 8542 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
| 8543 | else
|
---|
| 8544 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8545 | fi
|
---|
| 8546 | cat $tmp/in >>$tmp/config.h
|
---|
| 8547 | rm -f $tmp/in
|
---|
[8756] | 8548 | if test x"$ac_file" != x-; then
|
---|
[23802] | 8549 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8550 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8551 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[8756] | 8552 | else
|
---|
[23802] | 8553 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8554 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8555 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8556 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8557 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8558 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8559 | echo X"$ac_file" |
|
---|
| 8560 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8561 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8562 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8563 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8564 | s/.*/./; q'`
|
---|
| 8565 | { if $as_mkdir_p; then
|
---|
| 8566 | mkdir -p "$ac_dir"
|
---|
| 8567 | else
|
---|
| 8568 | as_dir="$ac_dir"
|
---|
| 8569 | as_dirs=
|
---|
| 8570 | while test ! -d "$as_dir"; do
|
---|
| 8571 | as_dirs="$as_dir $as_dirs"
|
---|
| 8572 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8573 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8574 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8575 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8576 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8577 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8578 | echo X"$as_dir" |
|
---|
| 8579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8580 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8581 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8582 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8583 | s/.*/./; q'`
|
---|
| 8584 | done
|
---|
| 8585 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8586 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8587 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8588 | { (exit 1); exit 1; }; }; }
|
---|
| 8589 |
|
---|
| 8590 | rm -f $ac_file
|
---|
| 8591 | mv $tmp/config.h $ac_file
|
---|
[687] | 8592 | fi
|
---|
[8756] | 8593 | else
|
---|
[23802] | 8594 | cat $tmp/config.h
|
---|
| 8595 | rm -f $tmp/config.h
|
---|
[687] | 8596 | fi
|
---|
[23802] | 8597 | done
|
---|
| 8598 | _ACEOF
|
---|
[8200] | 8599 |
|
---|
[23802] | 8600 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[687] | 8601 |
|
---|
[23802] | 8602 | { (exit 0); exit 0; }
|
---|
[8756] | 8603 | _ACEOF
|
---|
[23802] | 8604 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 8605 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 8606 |
|
---|
[8756] | 8607 |
|
---|
| 8608 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8609 | # config.status does its own redirection, appending to config.log.
|
---|
| 8610 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8611 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8612 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8613 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8614 | # appended to by config.status. When coming back to configure, we
|
---|
| 8615 | # need to make the FD available again.
|
---|
| 8616 | if test "$no_create" != yes; then
|
---|
| 8617 | ac_cs_success=:
|
---|
| 8618 | ac_config_status_args=
|
---|
| 8619 | test "$silent" = yes &&
|
---|
| 8620 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8621 | exec 5>/dev/null
|
---|
| 8622 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8623 | exec 5>>config.log
|
---|
| 8624 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8625 | # would make configure fail if this is the last instruction.
|
---|
[23802] | 8626 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
[8756] | 8627 | fi
|
---|
| 8628 |
|
---|
| 8629 | #
|
---|
| 8630 | # CONFIG_SUBDIRS section.
|
---|
| 8631 | #
|
---|
[1675] | 8632 | if test "$no_recursion" != yes; then
|
---|
[562] | 8633 |
|
---|
[23802] | 8634 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
[1675] | 8635 | ac_sub_configure_args=
|
---|
| 8636 | ac_prev=
|
---|
[23802] | 8637 | for ac_arg in $ac_configure_args; do
|
---|
[1675] | 8638 | if test -n "$ac_prev"; then
|
---|
| 8639 | ac_prev=
|
---|
| 8640 | continue
|
---|
| 8641 | fi
|
---|
[8756] | 8642 | case $ac_arg in
|
---|
[1675] | 8643 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8644 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8645 | ac_prev=cache_file ;;
|
---|
| 8646 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 8647 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8648 | | --c=*)
|
---|
[1675] | 8649 | ;;
|
---|
[8756] | 8650 | --config-cache | -C)
|
---|
| 8651 | ;;
|
---|
[1675] | 8652 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8653 | ac_prev=srcdir ;;
|
---|
| 8654 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8655 | ;;
|
---|
[8756] | 8656 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8657 | ac_prev=prefix ;;
|
---|
| 8658 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8659 | ;;
|
---|
[23802] | 8660 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
[1675] | 8661 | esac
|
---|
| 8662 | done
|
---|
[562] | 8663 |
|
---|
[8756] | 8664 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8665 | # in subdir configurations.
|
---|
[23802] | 8666 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[1570] | 8667 |
|
---|
[8756] | 8668 | ac_popdir=`pwd`
|
---|
| 8669 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8670 |
|
---|
[1675] | 8671 | # Do not complain, so a configure script can configure whichever
|
---|
| 8672 | # parts of a large source tree are present.
|
---|
[23802] | 8673 | test -d $srcdir/$ac_dir || continue
|
---|
[1675] | 8674 |
|
---|
[23802] | 8675 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8676 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8677 | { if $as_mkdir_p; then
|
---|
| 8678 | mkdir -p "$ac_dir"
|
---|
| 8679 | else
|
---|
| 8680 | as_dir="$ac_dir"
|
---|
| 8681 | as_dirs=
|
---|
| 8682 | while test ! -d "$as_dir"; do
|
---|
| 8683 | as_dirs="$as_dir $as_dirs"
|
---|
| 8684 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8685 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8686 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8687 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8688 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8689 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8690 | echo X"$as_dir" |
|
---|
| 8691 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8692 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8693 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8694 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8695 | s/.*/./; q'`
|
---|
| 8696 | done
|
---|
| 8697 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8698 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8699 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8700 | { (exit 1); exit 1; }; }; }
|
---|
| 8701 |
|
---|
[8756] | 8702 | ac_builddir=.
|
---|
[1675] | 8703 |
|
---|
[23802] | 8704 | if test "$ac_dir" != .; then
|
---|
| 8705 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8706 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8707 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8708 | else
|
---|
| 8709 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8710 | fi
|
---|
[1675] | 8711 |
|
---|
[8756] | 8712 | case $srcdir in
|
---|
[23802] | 8713 | .) # No --srcdir option. We are building in place.
|
---|
[8756] | 8714 | ac_srcdir=.
|
---|
[23802] | 8715 | if test -z "$ac_top_builddir"; then
|
---|
| 8716 | ac_top_srcdir=.
|
---|
| 8717 | else
|
---|
| 8718 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8719 | fi ;;
|
---|
| 8720 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[8756] | 8721 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[23802] | 8722 | ac_top_srcdir=$srcdir ;;
|
---|
| 8723 | *) # Relative path.
|
---|
| 8724 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8725 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[8756] | 8726 | esac
|
---|
[1675] | 8727 |
|
---|
[23802] | 8728 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8729 | # the directories may not exist.
|
---|
| 8730 | case `pwd` in
|
---|
| 8731 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8732 | *)
|
---|
| 8733 | case "$ac_dir" in
|
---|
| 8734 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8735 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8736 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8737 | esac;;
|
---|
| 8738 | esac
|
---|
| 8739 | case $ac_abs_builddir in
|
---|
| 8740 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8741 | *)
|
---|
| 8742 | case ${ac_top_builddir}. in
|
---|
| 8743 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8744 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8745 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8746 | esac;;
|
---|
| 8747 | esac
|
---|
| 8748 | case $ac_abs_builddir in
|
---|
| 8749 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8750 | *)
|
---|
| 8751 | case $ac_srcdir in
|
---|
| 8752 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8753 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8754 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8755 | esac;;
|
---|
| 8756 | esac
|
---|
| 8757 | case $ac_abs_builddir in
|
---|
| 8758 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8759 | *)
|
---|
| 8760 | case $ac_top_srcdir in
|
---|
| 8761 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8762 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8763 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8764 | esac;;
|
---|
| 8765 | esac
|
---|
[1675] | 8766 |
|
---|
[8756] | 8767 |
|
---|
[23802] | 8768 | cd $ac_dir
|
---|
| 8769 |
|
---|
[1675] | 8770 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[23802] | 8771 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8772 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8773 | elif test -f $ac_srcdir/configure; then
|
---|
| 8774 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8775 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 8776 | ac_sub_configure=$ac_configure
|
---|
[1675] | 8777 | else
|
---|
[23802] | 8778 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8779 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 8780 | ac_sub_configure=
|
---|
| 8781 | fi
|
---|
| 8782 |
|
---|
| 8783 | # The recursion is here.
|
---|
| 8784 | if test -n "$ac_sub_configure"; then
|
---|
| 8785 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 8786 | case $cache_file in
|
---|
| 8787 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[23802] | 8788 | *) # Relative path.
|
---|
| 8789 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[1675] | 8790 | esac
|
---|
| 8791 |
|
---|
[23802] | 8792 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8793 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 8794 | # The eval makes quoting arguments work.
|
---|
[23802] | 8795 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8796 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 8797 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8798 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8799 | { (exit 1); exit 1; }; }
|
---|
[1675] | 8800 | fi
|
---|
| 8801 |
|
---|
[23802] | 8802 | cd $ac_popdir
|
---|
[1675] | 8803 | done
|
---|
| 8804 | fi
|
---|
| 8805 |
|
---|
[8200] | 8806 |
|
---|
| 8807 |
|
---|