[16568] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[24901] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[16568] | 4 | #
|
---|
[24901] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16568] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[24901] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[16568] | 11 |
|
---|
[24901] | 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[16568] | 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
[24901] | 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[16568] | 17 | # is contrary to our usage. Disable this feature.
|
---|
| 18 | alias -g '${1+"$@"}'='"$@"'
|
---|
[24901] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
[16568] | 21 | fi
|
---|
[24901] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16568] | 23 |
|
---|
[24901] | 24 | # Support unset when possible.
|
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 26 | as_unset=unset
|
---|
[16568] | 27 | else
|
---|
[24901] | 28 | as_unset=false
|
---|
[16568] | 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
[24901] | 32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
[16568] | 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
[24901] | 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
|
---|
[16568] | 43 | do
|
---|
[24901] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
[16568] | 46 | else
|
---|
[24901] | 47 | $as_unset $as_var
|
---|
[16568] | 48 | fi
|
---|
[24901] | 49 | done
|
---|
[16568] | 50 |
|
---|
[24901] | 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16568] | 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
[24901] | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[16568] | 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
[24901] | 65 | # Name of the executable.
|
---|
| 66 | as_me=`$as_basename "$0" ||
|
---|
[16568] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
[24901] | 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'`
|
---|
[16568] | 76 |
|
---|
[24901] | 77 |
|
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
[20854] | 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
|
---|
[16568] | 85 |
|
---|
[24901] | 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
|
---|
[16568] | 98 |
|
---|
[24901] | 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 |
|
---|
[16568] | 165 | sed '
|
---|
| 166 | N
|
---|
[24901] | 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[16568] | 170 | t loop
|
---|
[24901] | 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
[16568] | 173 | ' >$as_me.lineno &&
|
---|
[24901] | 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; }; }
|
---|
[16568] | 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
|
---|
[24901] | 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
[16568] | 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
[24901] | 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= ;;
|
---|
[16568] | 192 | esac
|
---|
| 193 |
|
---|
[24901] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 195 | as_expr=expr
|
---|
[16568] | 196 | else
|
---|
[24901] | 197 | as_expr=false
|
---|
[16568] | 198 | fi
|
---|
[24901] | 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
|
---|
[23356] | 209 | as_ln_s='ln -s'
|
---|
[20854] | 210 | fi
|
---|
[24901] | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
[16568] | 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
[24901] | 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[16568] | 217 |
|
---|
| 218 | if mkdir -p . 2>/dev/null; then
|
---|
[24901] | 219 | as_mkdir_p=:
|
---|
[16568] | 220 | else
|
---|
| 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
| 223 | fi
|
---|
| 224 |
|
---|
[24901] | 225 | as_executable_p="test -f"
|
---|
[16568] | 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 |
|
---|
[24901] | 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
[16568] | 239 |
|
---|
[24901] | 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
| 242 |
|
---|
| 243 |
|
---|
[16568] | 244 | # Name of the host.
|
---|
[24901] | 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
[16568] | 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
[24901] | 249 | exec 6>&1
|
---|
| 250 |
|
---|
[16568] | 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
| 254 | ac_default_prefix=/usr/local
|
---|
| 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
[24901] | 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[16568] | 261 |
|
---|
[24901] | 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 |
|
---|
[16568] | 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>
|
---|
[24901] | 277 | #if HAVE_SYS_TYPES_H
|
---|
[16568] | 278 | # include <sys/types.h>
|
---|
| 279 | #endif
|
---|
[24901] | 280 | #if HAVE_SYS_STAT_H
|
---|
[16568] | 281 | # include <sys/stat.h>
|
---|
| 282 | #endif
|
---|
[24901] | 283 | #if STDC_HEADERS
|
---|
[16568] | 284 | # include <stdlib.h>
|
---|
| 285 | # include <stddef.h>
|
---|
| 286 | #else
|
---|
[24901] | 287 | # if HAVE_STDLIB_H
|
---|
[16568] | 288 | # include <stdlib.h>
|
---|
| 289 | # endif
|
---|
| 290 | #endif
|
---|
[24901] | 291 | #if HAVE_STRING_H
|
---|
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
[16568] | 293 | # include <memory.h>
|
---|
| 294 | # endif
|
---|
| 295 | # include <string.h>
|
---|
| 296 | #endif
|
---|
[24901] | 297 | #if HAVE_STRINGS_H
|
---|
[16568] | 298 | # include <strings.h>
|
---|
| 299 | #endif
|
---|
[24901] | 300 | #if HAVE_INTTYPES_H
|
---|
[16568] | 301 | # include <inttypes.h>
|
---|
[24901] | 302 | #else
|
---|
| 303 | # if HAVE_STDINT_H
|
---|
| 304 | # include <stdint.h>
|
---|
| 305 | # endif
|
---|
[16568] | 306 | #endif
|
---|
[24901] | 307 | #if HAVE_UNISTD_H
|
---|
[16568] | 308 | # include <unistd.h>
|
---|
| 309 | #endif"
|
---|
| 310 |
|
---|
[24901] | 311 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
| 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_JAVA USE_JDBM USE_GDBM ENABLE_ACCENTFOLD USE_SQLITE USE_APACHE_HTTPD ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX JAVAC JAVACFLAGS JAVA uudecode 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 gsdlarch MODULEDIRS subdirs LTLIBOBJS'
|
---|
[16568] | 313 | ac_subst_files=''
|
---|
| 314 |
|
---|
| 315 | # Initialize some variables set by options.
|
---|
| 316 | ac_init_help=
|
---|
| 317 | ac_init_version=false
|
---|
| 318 | # The variables have the same names as the options, with
|
---|
| 319 | # dashes changed to underlines.
|
---|
| 320 | cache_file=/dev/null
|
---|
| 321 | exec_prefix=NONE
|
---|
| 322 | no_create=
|
---|
| 323 | no_recursion=
|
---|
| 324 | prefix=NONE
|
---|
| 325 | program_prefix=NONE
|
---|
| 326 | program_suffix=NONE
|
---|
| 327 | program_transform_name=s,x,x,
|
---|
| 328 | silent=
|
---|
| 329 | site=
|
---|
| 330 | srcdir=
|
---|
| 331 | verbose=
|
---|
| 332 | x_includes=NONE
|
---|
| 333 | x_libraries=NONE
|
---|
| 334 |
|
---|
| 335 | # Installation directory options.
|
---|
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 337 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 338 | # by default will actually change.
|
---|
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
| 340 | bindir='${exec_prefix}/bin'
|
---|
| 341 | sbindir='${exec_prefix}/sbin'
|
---|
| 342 | libexecdir='${exec_prefix}/libexec'
|
---|
[24901] | 343 | datadir='${prefix}/share'
|
---|
[16568] | 344 | sysconfdir='${prefix}/etc'
|
---|
| 345 | sharedstatedir='${prefix}/com'
|
---|
| 346 | localstatedir='${prefix}/var'
|
---|
[24901] | 347 | libdir='${exec_prefix}/lib'
|
---|
[16568] | 348 | includedir='${prefix}/include'
|
---|
| 349 | oldincludedir='/usr/include'
|
---|
[24901] | 350 | infodir='${prefix}/info'
|
---|
| 351 | mandir='${prefix}/man'
|
---|
[16568] | 352 |
|
---|
| 353 | ac_prev=
|
---|
| 354 | for ac_option
|
---|
| 355 | do
|
---|
| 356 | # If the previous option needs an argument, assign it.
|
---|
| 357 | if test -n "$ac_prev"; then
|
---|
[24901] | 358 | eval "$ac_prev=\$ac_option"
|
---|
[16568] | 359 | ac_prev=
|
---|
| 360 | continue
|
---|
| 361 | fi
|
---|
| 362 |
|
---|
[24901] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[16568] | 364 |
|
---|
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 366 |
|
---|
[24901] | 367 | case $ac_option in
|
---|
[16568] | 368 |
|
---|
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 370 | ac_prev=bindir ;;
|
---|
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 372 | bindir=$ac_optarg ;;
|
---|
| 373 |
|
---|
| 374 | -build | --build | --buil | --bui | --bu)
|
---|
| 375 | ac_prev=build_alias ;;
|
---|
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 377 | build_alias=$ac_optarg ;;
|
---|
| 378 |
|
---|
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 381 | ac_prev=cache_file ;;
|
---|
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 384 | cache_file=$ac_optarg ;;
|
---|
| 385 |
|
---|
| 386 | --config-cache | -C)
|
---|
| 387 | cache_file=config.cache ;;
|
---|
| 388 |
|
---|
[24901] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
[16568] | 390 | ac_prev=datadir ;;
|
---|
[24901] | 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 392 | | --da=*)
|
---|
[16568] | 393 | datadir=$ac_optarg ;;
|
---|
| 394 |
|
---|
| 395 | -disable-* | --disable-*)
|
---|
[24901] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[16568] | 397 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 400 | { (exit 1); exit 1; }; }
|
---|
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 402 | eval "enable_$ac_feature=no" ;;
|
---|
[16568] | 403 |
|
---|
| 404 | -enable-* | --enable-*)
|
---|
[24901] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[16568] | 406 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 409 | { (exit 1); exit 1; }; }
|
---|
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 411 | case $ac_option in
|
---|
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 413 | *) ac_optarg=yes ;;
|
---|
[20854] | 414 | esac
|
---|
[24901] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[16568] | 416 |
|
---|
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 419 | | --exec | --exe | --ex)
|
---|
| 420 | ac_prev=exec_prefix ;;
|
---|
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 423 | | --exec=* | --exe=* | --ex=*)
|
---|
| 424 | exec_prefix=$ac_optarg ;;
|
---|
| 425 |
|
---|
| 426 | -gas | --gas | --ga | --g)
|
---|
| 427 | # Obsolete; use --with-gas.
|
---|
| 428 | with_gas=yes ;;
|
---|
| 429 |
|
---|
| 430 | -help | --help | --hel | --he | -h)
|
---|
| 431 | ac_init_help=long ;;
|
---|
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 433 | ac_init_help=recursive ;;
|
---|
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 435 | ac_init_help=short ;;
|
---|
| 436 |
|
---|
| 437 | -host | --host | --hos | --ho)
|
---|
| 438 | ac_prev=host_alias ;;
|
---|
| 439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 440 | host_alias=$ac_optarg ;;
|
---|
| 441 |
|
---|
| 442 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 443 | | --includ | --inclu | --incl | --inc)
|
---|
| 444 | ac_prev=includedir ;;
|
---|
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 447 | includedir=$ac_optarg ;;
|
---|
| 448 |
|
---|
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 450 | ac_prev=infodir ;;
|
---|
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 452 | infodir=$ac_optarg ;;
|
---|
| 453 |
|
---|
| 454 | -libdir | --libdir | --libdi | --libd)
|
---|
| 455 | ac_prev=libdir ;;
|
---|
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 457 | libdir=$ac_optarg ;;
|
---|
| 458 |
|
---|
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 460 | | --libexe | --libex | --libe)
|
---|
| 461 | ac_prev=libexecdir ;;
|
---|
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 463 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 464 | libexecdir=$ac_optarg ;;
|
---|
| 465 |
|
---|
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[24901] | 467 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 468 | | --locals | --local | --loca | --loc | --lo)
|
---|
[16568] | 469 | ac_prev=localstatedir ;;
|
---|
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[24901] | 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[16568] | 473 | localstatedir=$ac_optarg ;;
|
---|
| 474 |
|
---|
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 476 | ac_prev=mandir ;;
|
---|
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 478 | mandir=$ac_optarg ;;
|
---|
| 479 |
|
---|
| 480 | -nfp | --nfp | --nf)
|
---|
| 481 | # Obsolete; use --without-fp.
|
---|
| 482 | with_fp=no ;;
|
---|
| 483 |
|
---|
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 485 | | --no-cr | --no-c | -n)
|
---|
| 486 | no_create=yes ;;
|
---|
| 487 |
|
---|
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 490 | no_recursion=yes ;;
|
---|
| 491 |
|
---|
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 494 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 495 | ac_prev=oldincludedir ;;
|
---|
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 499 | oldincludedir=$ac_optarg ;;
|
---|
| 500 |
|
---|
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 502 | ac_prev=prefix ;;
|
---|
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 504 | prefix=$ac_optarg ;;
|
---|
| 505 |
|
---|
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 507 | | --program-pre | --program-pr | --program-p)
|
---|
| 508 | ac_prev=program_prefix ;;
|
---|
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 511 | program_prefix=$ac_optarg ;;
|
---|
| 512 |
|
---|
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 514 | | --program-suf | --program-su | --program-s)
|
---|
| 515 | ac_prev=program_suffix ;;
|
---|
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 518 | program_suffix=$ac_optarg ;;
|
---|
| 519 |
|
---|
| 520 | -program-transform-name | --program-transform-name \
|
---|
| 521 | | --program-transform-nam | --program-transform-na \
|
---|
| 522 | | --program-transform-n | --program-transform- \
|
---|
| 523 | | --program-transform | --program-transfor \
|
---|
| 524 | | --program-transfo | --program-transf \
|
---|
| 525 | | --program-trans | --program-tran \
|
---|
| 526 | | --progr-tra | --program-tr | --program-t)
|
---|
| 527 | ac_prev=program_transform_name ;;
|
---|
| 528 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 529 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 530 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 531 | | --program-transform=* | --program-transfor=* \
|
---|
| 532 | | --program-transfo=* | --program-transf=* \
|
---|
| 533 | | --program-trans=* | --program-tran=* \
|
---|
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 535 | program_transform_name=$ac_optarg ;;
|
---|
| 536 |
|
---|
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 538 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 539 | silent=yes ;;
|
---|
| 540 |
|
---|
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 542 | ac_prev=sbindir ;;
|
---|
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 544 | | --sbi=* | --sb=*)
|
---|
| 545 | sbindir=$ac_optarg ;;
|
---|
| 546 |
|
---|
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 549 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 550 | | --sha | --sh)
|
---|
| 551 | ac_prev=sharedstatedir ;;
|
---|
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 555 | | --sha=* | --sh=*)
|
---|
| 556 | sharedstatedir=$ac_optarg ;;
|
---|
| 557 |
|
---|
| 558 | -site | --site | --sit)
|
---|
| 559 | ac_prev=site ;;
|
---|
| 560 | -site=* | --site=* | --sit=*)
|
---|
| 561 | site=$ac_optarg ;;
|
---|
| 562 |
|
---|
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 564 | ac_prev=srcdir ;;
|
---|
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 566 | srcdir=$ac_optarg ;;
|
---|
| 567 |
|
---|
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 569 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 570 | ac_prev=sysconfdir ;;
|
---|
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 573 | sysconfdir=$ac_optarg ;;
|
---|
| 574 |
|
---|
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 576 | ac_prev=target_alias ;;
|
---|
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 578 | target_alias=$ac_optarg ;;
|
---|
| 579 |
|
---|
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 581 | verbose=yes ;;
|
---|
| 582 |
|
---|
| 583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 584 | ac_init_version=: ;;
|
---|
| 585 |
|
---|
| 586 | -with-* | --with-*)
|
---|
[24901] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[16568] | 588 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 591 | { (exit 1); exit 1; }; }
|
---|
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 593 | case $ac_option in
|
---|
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 595 | *) ac_optarg=yes ;;
|
---|
[20854] | 596 | esac
|
---|
[24901] | 597 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[16568] | 598 |
|
---|
| 599 | -without-* | --without-*)
|
---|
[24901] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[16568] | 601 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 604 | { (exit 1); exit 1; }; }
|
---|
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 606 | eval "with_$ac_package=no" ;;
|
---|
[16568] | 607 |
|
---|
| 608 | --x)
|
---|
| 609 | # Obsolete; use --with-x.
|
---|
| 610 | with_x=yes ;;
|
---|
| 611 |
|
---|
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 613 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 614 | ac_prev=x_includes ;;
|
---|
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 617 | x_includes=$ac_optarg ;;
|
---|
| 618 |
|
---|
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 621 | ac_prev=x_libraries ;;
|
---|
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 624 | x_libraries=$ac_optarg ;;
|
---|
| 625 |
|
---|
[24901] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 627 | Try \`$0 --help' for more information." >&2
|
---|
| 628 | { (exit 1); exit 1; }; }
|
---|
[16568] | 629 | ;;
|
---|
| 630 |
|
---|
| 631 | *=*)
|
---|
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 633 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 636 | { (exit 1); exit 1; }; }
|
---|
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 638 | eval "$ac_envvar='$ac_optarg'"
|
---|
[16568] | 639 | export $ac_envvar ;;
|
---|
| 640 |
|
---|
| 641 | *)
|
---|
| 642 | # FIXME: should be removed in autoconf 3.0.
|
---|
[24901] | 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[16568] | 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[24901] | 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[16568] | 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
| 647 | ;;
|
---|
| 648 |
|
---|
| 649 | esac
|
---|
| 650 | done
|
---|
| 651 |
|
---|
| 652 | if test -n "$ac_prev"; then
|
---|
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[24901] | 654 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 655 | { (exit 1); exit 1; }; }
|
---|
[16568] | 656 | fi
|
---|
| 657 |
|
---|
[24901] | 658 | # Be sure to have absolute paths.
|
---|
| 659 | for ac_var in exec_prefix prefix
|
---|
| 660 | do
|
---|
| 661 | eval ac_val=$`echo $ac_var`
|
---|
| 662 | case $ac_val in
|
---|
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 665 | { (exit 1); exit 1; }; };;
|
---|
[16568] | 666 | esac
|
---|
[24901] | 667 | done
|
---|
[16568] | 668 |
|
---|
[24901] | 669 | # Be sure to have absolute paths.
|
---|
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[20854] | 672 | do
|
---|
[24901] | 673 | eval ac_val=$`echo $ac_var`
|
---|
[20854] | 674 | case $ac_val in
|
---|
[24901] | 675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 677 | { (exit 1); exit 1; }; };;
|
---|
[20854] | 678 | esac
|
---|
| 679 | done
|
---|
| 680 |
|
---|
[16568] | 681 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 682 | # used to hold the argument of --host etc.
|
---|
| 683 | # FIXME: To remove some day.
|
---|
| 684 | build=$build_alias
|
---|
| 685 | host=$host_alias
|
---|
| 686 | target=$target_alias
|
---|
| 687 |
|
---|
| 688 | # FIXME: To remove some day.
|
---|
| 689 | if test "x$host_alias" != x; then
|
---|
| 690 | if test "x$build_alias" = x; then
|
---|
| 691 | cross_compiling=maybe
|
---|
[24901] | 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
[16568] | 694 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 695 | cross_compiling=yes
|
---|
| 696 | fi
|
---|
| 697 | fi
|
---|
| 698 |
|
---|
| 699 | ac_tool_prefix=
|
---|
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 701 |
|
---|
| 702 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 703 |
|
---|
| 704 |
|
---|
| 705 | # Find the source files, if location was not specified.
|
---|
| 706 | if test -z "$srcdir"; then
|
---|
| 707 | ac_srcdir_defaulted=yes
|
---|
[24901] | 708 | # Try the directory containing this script, then its parent.
|
---|
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 712 | X"$0" : 'X\(//\)$' \| \
|
---|
| 713 | X"$0" : 'X\(/\)' \| \
|
---|
| 714 | . : '\(.\)' 2>/dev/null ||
|
---|
| 715 | echo X"$0" |
|
---|
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 720 | s/.*/./; q'`
|
---|
[16568] | 721 | srcdir=$ac_confdir
|
---|
[24901] | 722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
[16568] | 723 | srcdir=..
|
---|
| 724 | fi
|
---|
| 725 | else
|
---|
| 726 | ac_srcdir_defaulted=no
|
---|
| 727 | fi
|
---|
[24901] | 728 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 729 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
| 731 | { (exit 1); exit 1; }; }
|
---|
| 732 | else
|
---|
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 734 | { (exit 1); exit 1; }; }
|
---|
| 735 | fi
|
---|
[20848] | 736 | fi
|
---|
[24901] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 739 | { (exit 1); exit 1; }; }
|
---|
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 741 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 742 | ac_env_build_alias_value=$build_alias
|
---|
| 743 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 744 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 745 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 746 | ac_env_host_alias_value=$host_alias
|
---|
| 747 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 748 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 749 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 750 | ac_env_target_alias_value=$target_alias
|
---|
| 751 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 752 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 753 | ac_env_CC_set=${CC+set}
|
---|
| 754 | ac_env_CC_value=$CC
|
---|
| 755 | ac_cv_env_CC_set=${CC+set}
|
---|
| 756 | ac_cv_env_CC_value=$CC
|
---|
| 757 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 758 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 762 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 769 | ac_env_CXX_set=${CXX+set}
|
---|
| 770 | ac_env_CXX_value=$CXX
|
---|
| 771 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 772 | ac_cv_env_CXX_value=$CXX
|
---|
| 773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 774 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 777 | ac_env_CPP_set=${CPP+set}
|
---|
| 778 | ac_env_CPP_value=$CPP
|
---|
| 779 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 780 | ac_cv_env_CPP_value=$CPP
|
---|
[16568] | 781 |
|
---|
| 782 | #
|
---|
| 783 | # Report the --help message.
|
---|
| 784 | #
|
---|
| 785 | if test "$ac_init_help" = "long"; then
|
---|
| 786 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 787 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 788 | cat <<_ACEOF
|
---|
| 789 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 790 |
|
---|
| 791 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 792 |
|
---|
| 793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 794 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 795 |
|
---|
| 796 | Defaults for the options are specified in brackets.
|
---|
| 797 |
|
---|
| 798 | Configuration:
|
---|
| 799 | -h, --help display this help and exit
|
---|
| 800 | --help=short display options specific to this package
|
---|
| 801 | --help=recursive display the short help of all the included packages
|
---|
| 802 | -V, --version display version information and exit
|
---|
[24901] | 803 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
[16568] | 804 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 805 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 806 | -n, --no-create do not create output files
|
---|
| 807 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 808 |
|
---|
[24901] | 809 | _ACEOF
|
---|
| 810 |
|
---|
| 811 | cat <<_ACEOF
|
---|
[16568] | 812 | Installation directories:
|
---|
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[24901] | 814 | [$ac_default_prefix]
|
---|
[16568] | 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[24901] | 816 | [PREFIX]
|
---|
[16568] | 817 |
|
---|
| 818 | By default, \`make install' will install all the files in
|
---|
| 819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 821 | for instance \`--prefix=\$HOME'.
|
---|
| 822 |
|
---|
| 823 | For better control, use the options below.
|
---|
| 824 |
|
---|
| 825 | Fine tuning of the installation directories:
|
---|
[24901] | 826 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 827 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 828 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 833 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 834 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 835 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 836 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 837 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[16568] | 838 | _ACEOF
|
---|
| 839 |
|
---|
| 840 | cat <<\_ACEOF
|
---|
| 841 |
|
---|
| 842 | System types:
|
---|
| 843 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 844 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 845 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 846 | _ACEOF
|
---|
| 847 | fi
|
---|
| 848 |
|
---|
| 849 | if test -n "$ac_init_help"; then
|
---|
| 850 |
|
---|
| 851 | cat <<\_ACEOF
|
---|
| 852 |
|
---|
| 853 | Optional Features:
|
---|
| 854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 856 | --enable-corba Enable CORBA support
|
---|
| 857 | --enable-z3950 Enable Z39.50 client support
|
---|
| 858 | --disable-yaz Disable YAZ compilation
|
---|
[23356] | 859 | --disable-java Disable Java compilation
|
---|
[22058] | 860 | --disable-jdbm Disable JDBM compilation
|
---|
| 861 | --disable-gdbm Disable GDBM compilation
|
---|
[16568] | 862 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
| 863 | --disable-sqlite Disable SQLite support
|
---|
[20854] | 864 | --enable-apache-httpd Enable Apache httpd support
|
---|
[21329] | 865 | --disable-mg Disable MG compilation
|
---|
| 866 | --disable-mgpp Disable MGPP compilation
|
---|
| 867 | --disable-lucene Disable Lucene compilation
|
---|
[16568] | 868 |
|
---|
| 869 | Optional Packages:
|
---|
| 870 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 871 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 872 | --with-micodir Use installed MICO directory
|
---|
| 873 | --with-dmalloc use dmalloc, as in
|
---|
| 874 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 875 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 876 |
|
---|
| 877 | Some influential environment variables:
|
---|
| 878 | CC C compiler command
|
---|
| 879 | CFLAGS C compiler flags
|
---|
| 880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 881 | nonstandard directory <lib dir>
|
---|
[24901] | 882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 883 | headers in a nonstandard directory <include dir>
|
---|
[16568] | 884 | CXX C++ compiler command
|
---|
| 885 | CXXFLAGS C++ compiler flags
|
---|
| 886 | CPP C preprocessor
|
---|
| 887 |
|
---|
| 888 | Use these variables to override the choices made by `configure' or to help
|
---|
| 889 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 890 |
|
---|
| 891 | _ACEOF
|
---|
| 892 | fi
|
---|
| 893 |
|
---|
| 894 | if test "$ac_init_help" = "recursive"; then
|
---|
| 895 | # If there are subdirs, report their specific --help.
|
---|
[24901] | 896 | ac_popdir=`pwd`
|
---|
[16568] | 897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[24901] | 898 | test -d $ac_dir || continue
|
---|
[16568] | 899 | ac_builddir=.
|
---|
| 900 |
|
---|
[24901] | 901 | if test "$ac_dir" != .; then
|
---|
| 902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 903 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 905 | else
|
---|
| 906 | ac_dir_suffix= ac_top_builddir=
|
---|
| 907 | fi
|
---|
[16568] | 908 |
|
---|
| 909 | case $srcdir in
|
---|
[24901] | 910 | .) # No --srcdir option. We are building in place.
|
---|
[16568] | 911 | ac_srcdir=.
|
---|
[24901] | 912 | if test -z "$ac_top_builddir"; then
|
---|
| 913 | ac_top_srcdir=.
|
---|
| 914 | else
|
---|
| 915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 916 | fi ;;
|
---|
| 917 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16568] | 918 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[24901] | 919 | ac_top_srcdir=$srcdir ;;
|
---|
| 920 | *) # Relative path.
|
---|
| 921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 922 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16568] | 923 | esac
|
---|
| 924 |
|
---|
[24901] | 925 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 926 | # the directories may not exist.
|
---|
| 927 | case `pwd` in
|
---|
| 928 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 929 | *)
|
---|
| 930 | case "$ac_dir" in
|
---|
| 931 | .) ac_abs_builddir=`pwd`;;
|
---|
| 932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 933 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 934 | esac;;
|
---|
| 935 | esac
|
---|
| 936 | case $ac_abs_builddir in
|
---|
| 937 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 938 | *)
|
---|
| 939 | case ${ac_top_builddir}. in
|
---|
| 940 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 943 | esac;;
|
---|
| 944 | esac
|
---|
| 945 | case $ac_abs_builddir in
|
---|
| 946 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 947 | *)
|
---|
| 948 | case $ac_srcdir in
|
---|
| 949 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 952 | esac;;
|
---|
| 953 | esac
|
---|
| 954 | case $ac_abs_builddir in
|
---|
| 955 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 956 | *)
|
---|
| 957 | case $ac_top_srcdir in
|
---|
| 958 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 961 | esac;;
|
---|
| 962 | esac
|
---|
| 963 |
|
---|
| 964 | cd $ac_dir
|
---|
| 965 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 966 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 967 | echo
|
---|
| 968 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 969 | elif test -f $ac_srcdir/configure; then
|
---|
| 970 | echo
|
---|
| 971 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 972 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 973 | test -f $ac_srcdir/configure.in; then
|
---|
| 974 | echo
|
---|
| 975 | $ac_configure --help
|
---|
[16568] | 976 | else
|
---|
[24901] | 977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 978 | fi
|
---|
| 979 | cd $ac_popdir
|
---|
[16568] | 980 | done
|
---|
| 981 | fi
|
---|
| 982 |
|
---|
[24901] | 983 | test -n "$ac_init_help" && exit 0
|
---|
[16568] | 984 | if $ac_init_version; then
|
---|
| 985 | cat <<\_ACEOF
|
---|
| 986 |
|
---|
[24901] | 987 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16568] | 988 | This configure script is free software; the Free Software Foundation
|
---|
| 989 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 990 | _ACEOF
|
---|
[24901] | 991 | exit 0
|
---|
[16568] | 992 | fi
|
---|
[24901] | 993 | exec 5>config.log
|
---|
| 994 | cat >&5 <<_ACEOF
|
---|
[16568] | 995 | This file contains any messages produced by compilers while
|
---|
| 996 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 997 |
|
---|
| 998 | It was created by $as_me, which was
|
---|
[24901] | 999 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[16568] | 1000 |
|
---|
| 1001 | $ $0 $@
|
---|
| 1002 |
|
---|
| 1003 | _ACEOF
|
---|
| 1004 | {
|
---|
| 1005 | cat <<_ASUNAME
|
---|
| 1006 | ## --------- ##
|
---|
| 1007 | ## Platform. ##
|
---|
| 1008 | ## --------- ##
|
---|
| 1009 |
|
---|
| 1010 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1011 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1012 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1013 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1014 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1015 |
|
---|
| 1016 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1018 |
|
---|
| 1019 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1020 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1021 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[24901] | 1022 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
[16568] | 1023 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1024 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1025 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1026 |
|
---|
| 1027 | _ASUNAME
|
---|
| 1028 |
|
---|
| 1029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1030 | for as_dir in $PATH
|
---|
| 1031 | do
|
---|
| 1032 | IFS=$as_save_IFS
|
---|
| 1033 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1034 | echo "PATH: $as_dir"
|
---|
| 1035 | done
|
---|
[16568] | 1036 |
|
---|
| 1037 | } >&5
|
---|
| 1038 |
|
---|
| 1039 | cat >&5 <<_ACEOF
|
---|
| 1040 |
|
---|
| 1041 |
|
---|
| 1042 | ## ----------- ##
|
---|
| 1043 | ## Core tests. ##
|
---|
| 1044 | ## ----------- ##
|
---|
| 1045 |
|
---|
| 1046 | _ACEOF
|
---|
| 1047 |
|
---|
| 1048 |
|
---|
| 1049 | # Keep a trace of the command line.
|
---|
| 1050 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1051 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1052 | # Also quote any args containing shell meta-characters.
|
---|
| 1053 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1054 | ac_configure_args=
|
---|
| 1055 | ac_configure_args0=
|
---|
| 1056 | ac_configure_args1=
|
---|
[24901] | 1057 | ac_sep=
|
---|
[16568] | 1058 | ac_must_keep_next=false
|
---|
| 1059 | for ac_pass in 1 2
|
---|
| 1060 | do
|
---|
| 1061 | for ac_arg
|
---|
| 1062 | do
|
---|
| 1063 | case $ac_arg in
|
---|
| 1064 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1065 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1066 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1067 | continue ;;
|
---|
[24901] | 1068 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1069 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[16568] | 1070 | esac
|
---|
| 1071 | case $ac_pass in
|
---|
[24901] | 1072 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
[16568] | 1073 | 2)
|
---|
[24901] | 1074 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
[16568] | 1075 | if test $ac_must_keep_next = true; then
|
---|
| 1076 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1077 | else
|
---|
| 1078 | case $ac_arg in
|
---|
| 1079 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1080 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1081 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1082 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1083 | case "$ac_configure_args0 " in
|
---|
| 1084 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1085 | esac
|
---|
| 1086 | ;;
|
---|
| 1087 | -* ) ac_must_keep_next=true ;;
|
---|
| 1088 | esac
|
---|
| 1089 | fi
|
---|
[24901] | 1090 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1091 | # Get rid of the leading space.
|
---|
| 1092 | ac_sep=" "
|
---|
[16568] | 1093 | ;;
|
---|
| 1094 | esac
|
---|
| 1095 | done
|
---|
| 1096 | done
|
---|
[24901] | 1097 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1098 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[16568] | 1099 |
|
---|
| 1100 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1101 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1102 | # would cause problems or look ugly.
|
---|
[24901] | 1103 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1104 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[16568] | 1105 | trap 'exit_status=$?
|
---|
| 1106 | # Save into config.log some information that might help in debugging.
|
---|
| 1107 | {
|
---|
| 1108 | echo
|
---|
| 1109 |
|
---|
[24901] | 1110 | cat <<\_ASBOX
|
---|
| 1111 | ## ---------------- ##
|
---|
[16568] | 1112 | ## Cache variables. ##
|
---|
[24901] | 1113 | ## ---------------- ##
|
---|
| 1114 | _ASBOX
|
---|
[16568] | 1115 | echo
|
---|
| 1116 | # The following way of writing the cache mishandles newlines in values,
|
---|
[24901] | 1117 | {
|
---|
[16568] | 1118 | (set) 2>&1 |
|
---|
[24901] | 1119 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1120 | *ac_space=\ *)
|
---|
[16568] | 1121 | sed -n \
|
---|
[24901] | 1122 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1123 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1124 | ;;
|
---|
[16568] | 1125 | *)
|
---|
[24901] | 1126 | sed -n \
|
---|
| 1127 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[16568] | 1128 | ;;
|
---|
[24901] | 1129 | esac;
|
---|
| 1130 | }
|
---|
[16568] | 1131 | echo
|
---|
| 1132 |
|
---|
[24901] | 1133 | cat <<\_ASBOX
|
---|
| 1134 | ## ----------------- ##
|
---|
[16568] | 1135 | ## Output variables. ##
|
---|
[24901] | 1136 | ## ----------------- ##
|
---|
| 1137 | _ASBOX
|
---|
[16568] | 1138 | echo
|
---|
| 1139 | for ac_var in $ac_subst_vars
|
---|
| 1140 | do
|
---|
[24901] | 1141 | eval ac_val=$`echo $ac_var`
|
---|
| 1142 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[16568] | 1143 | done | sort
|
---|
| 1144 | echo
|
---|
| 1145 |
|
---|
| 1146 | if test -n "$ac_subst_files"; then
|
---|
[24901] | 1147 | cat <<\_ASBOX
|
---|
| 1148 | ## ------------- ##
|
---|
| 1149 | ## Output files. ##
|
---|
| 1150 | ## ------------- ##
|
---|
| 1151 | _ASBOX
|
---|
[16568] | 1152 | echo
|
---|
| 1153 | for ac_var in $ac_subst_files
|
---|
| 1154 | do
|
---|
[24901] | 1155 | eval ac_val=$`echo $ac_var`
|
---|
| 1156 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[16568] | 1157 | done | sort
|
---|
| 1158 | echo
|
---|
| 1159 | fi
|
---|
| 1160 |
|
---|
| 1161 | if test -s confdefs.h; then
|
---|
[24901] | 1162 | cat <<\_ASBOX
|
---|
| 1163 | ## ----------- ##
|
---|
[16568] | 1164 | ## confdefs.h. ##
|
---|
[24901] | 1165 | ## ----------- ##
|
---|
| 1166 | _ASBOX
|
---|
[16568] | 1167 | echo
|
---|
[24901] | 1168 | sed "/^$/d" confdefs.h | sort
|
---|
[16568] | 1169 | echo
|
---|
| 1170 | fi
|
---|
| 1171 | test "$ac_signal" != 0 &&
|
---|
[24901] | 1172 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1173 | echo "$as_me: exit $exit_status"
|
---|
[16568] | 1174 | } >&5
|
---|
[24901] | 1175 | rm -f core *.core &&
|
---|
| 1176 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[16568] | 1177 | exit $exit_status
|
---|
[24901] | 1178 | ' 0
|
---|
[16568] | 1179 | for ac_signal in 1 2 13 15; do
|
---|
[24901] | 1180 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[16568] | 1181 | done
|
---|
| 1182 | ac_signal=0
|
---|
| 1183 |
|
---|
| 1184 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[24901] | 1185 | rm -rf conftest* confdefs.h
|
---|
| 1186 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1187 | echo >confdefs.h
|
---|
[16568] | 1188 |
|
---|
| 1189 | # Predefined preprocessor variables.
|
---|
| 1190 |
|
---|
| 1191 | cat >>confdefs.h <<_ACEOF
|
---|
| 1192 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1193 | _ACEOF
|
---|
| 1194 |
|
---|
[24901] | 1195 |
|
---|
[16568] | 1196 | cat >>confdefs.h <<_ACEOF
|
---|
| 1197 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1198 | _ACEOF
|
---|
| 1199 |
|
---|
[24901] | 1200 |
|
---|
[16568] | 1201 | cat >>confdefs.h <<_ACEOF
|
---|
| 1202 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1203 | _ACEOF
|
---|
| 1204 |
|
---|
[24901] | 1205 |
|
---|
[16568] | 1206 | cat >>confdefs.h <<_ACEOF
|
---|
| 1207 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1208 | _ACEOF
|
---|
| 1209 |
|
---|
[24901] | 1210 |
|
---|
[16568] | 1211 | cat >>confdefs.h <<_ACEOF
|
---|
| 1212 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1213 | _ACEOF
|
---|
| 1214 |
|
---|
| 1215 |
|
---|
| 1216 | # Let the site file select an alternate cache file if it wants to.
|
---|
[24901] | 1217 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1218 | if test -z "$CONFIG_SITE"; then
|
---|
| 1219 | if test "x$prefix" != xNONE; then
|
---|
| 1220 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1221 | else
|
---|
| 1222 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1223 | fi
|
---|
[16568] | 1224 | fi
|
---|
[24901] | 1225 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1226 | if test -r "$ac_site_file"; then
|
---|
| 1227 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1228 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[16568] | 1229 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[24901] | 1230 | . "$ac_site_file"
|
---|
[16568] | 1231 | fi
|
---|
| 1232 | done
|
---|
| 1233 |
|
---|
| 1234 | if test -r "$cache_file"; then
|
---|
[24901] | 1235 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1236 | # files actually), so we avoid doing that.
|
---|
| 1237 | if test -f "$cache_file"; then
|
---|
| 1238 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1239 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[16568] | 1240 | case $cache_file in
|
---|
[24901] | 1241 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1242 | *) . ./$cache_file;;
|
---|
[16568] | 1243 | esac
|
---|
| 1244 | fi
|
---|
| 1245 | else
|
---|
[24901] | 1246 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1247 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[16568] | 1248 | >$cache_file
|
---|
| 1249 | fi
|
---|
| 1250 |
|
---|
| 1251 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1252 | # value.
|
---|
| 1253 | ac_cache_corrupted=false
|
---|
[24901] | 1254 | for ac_var in `(set) 2>&1 |
|
---|
| 1255 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[16568] | 1256 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1257 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[24901] | 1258 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1259 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
[16568] | 1260 | case $ac_old_set,$ac_new_set in
|
---|
| 1261 | set,)
|
---|
[24901] | 1262 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1263 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[16568] | 1264 | ac_cache_corrupted=: ;;
|
---|
| 1265 | ,set)
|
---|
[24901] | 1266 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1267 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[16568] | 1268 | ac_cache_corrupted=: ;;
|
---|
| 1269 | ,);;
|
---|
| 1270 | *)
|
---|
| 1271 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[24901] | 1272 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1273 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1274 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1275 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1276 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1277 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1278 | ac_cache_corrupted=:
|
---|
[16568] | 1279 | fi;;
|
---|
| 1280 | esac
|
---|
| 1281 | # Pass precious variables to config.status.
|
---|
| 1282 | if test "$ac_new_set" = set; then
|
---|
| 1283 | case $ac_new_val in
|
---|
[24901] | 1284 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1285 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[16568] | 1286 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1287 | esac
|
---|
| 1288 | case " $ac_configure_args " in
|
---|
| 1289 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[24901] | 1290 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
[16568] | 1291 | esac
|
---|
| 1292 | fi
|
---|
| 1293 | done
|
---|
| 1294 | if $ac_cache_corrupted; then
|
---|
[24901] | 1295 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1296 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1297 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1298 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1299 | { (exit 1); exit 1; }; }
|
---|
[16568] | 1300 | fi
|
---|
| 1301 |
|
---|
[20854] | 1302 | ac_ext=c
|
---|
| 1303 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[16568] | 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
[24901] | 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
| 1323 |
|
---|
| 1324 |
|
---|
| 1325 |
|
---|
| 1326 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1327 |
|
---|
| 1328 |
|
---|
| 1329 |
|
---|
| 1330 |
|
---|
[16568] | 1331 | PACKAGE=gsdl
|
---|
[23356] | 1332 | VERSION=2.x-svn
|
---|
[16568] | 1333 | cat >>confdefs.h <<_ACEOF
|
---|
| 1334 | #define PACKAGE "$PACKAGE"
|
---|
| 1335 | _ACEOF
|
---|
| 1336 |
|
---|
| 1337 | cat >>confdefs.h <<_ACEOF
|
---|
| 1338 | #define VERSION "$VERSION"
|
---|
| 1339 | _ACEOF
|
---|
| 1340 |
|
---|
| 1341 |
|
---|
| 1342 |
|
---|
| 1343 |
|
---|
| 1344 | USE_FASTCGI=0
|
---|
| 1345 | if test USE_FASTCGI = 1; then
|
---|
[24901] | 1346 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1347 | #define USE_FASTCGI 1
|
---|
| 1348 | _ACEOF
|
---|
[16568] | 1349 |
|
---|
| 1350 |
|
---|
| 1351 | fi
|
---|
| 1352 |
|
---|
| 1353 | if test USE_LANGACTION = 1; then
|
---|
[24901] | 1354 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1355 | #define USE_LANGACTION 1
|
---|
| 1356 | _ACEOF
|
---|
[16568] | 1357 |
|
---|
| 1358 |
|
---|
| 1359 | fi
|
---|
| 1360 |
|
---|
[24901] | 1361 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1362 | if test "${enable_corba+set}" = set; then
|
---|
| 1363 | enableval="$enable_corba"
|
---|
| 1364 | USE_CORBA=$enableval
|
---|
[16568] | 1365 | else
|
---|
[22058] | 1366 | USE_CORBA=no
|
---|
[24901] | 1367 | fi;
|
---|
[22058] | 1368 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
| 1369 | USE_CORBA=1
|
---|
[24901] | 1370 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1371 | #define USE_CORBA
|
---|
| 1372 | _ACEOF
|
---|
[16568] | 1373 |
|
---|
[22058] | 1374 | else
|
---|
| 1375 | USE_CORBA=0
|
---|
| 1376 | fi
|
---|
[16568] | 1377 |
|
---|
| 1378 |
|
---|
| 1379 |
|
---|
[24901] | 1380 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1381 | if test "${with_micodir+set}" = set; then
|
---|
| 1382 | withval="$with_micodir"
|
---|
| 1383 | MICO_DIR=$withval
|
---|
[16568] | 1384 | else
|
---|
| 1385 | MICO_DIR="default"
|
---|
[24901] | 1386 | fi;
|
---|
[16568] | 1387 | cat >>confdefs.h <<_ACEOF
|
---|
| 1388 | #define MICO_DIR "$MICO_DIR"
|
---|
| 1389 | _ACEOF
|
---|
| 1390 |
|
---|
| 1391 |
|
---|
| 1392 |
|
---|
[24901] | 1393 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1394 | if test "${enable_z3950+set}" = set; then
|
---|
| 1395 | enableval="$enable_z3950"
|
---|
| 1396 | USE_Z3950=$enableval
|
---|
[16568] | 1397 | else
|
---|
[22058] | 1398 | USE_Z3950=no
|
---|
[24901] | 1399 | fi;
|
---|
[22058] | 1400 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
| 1401 | USE_Z3950=1
|
---|
[24901] | 1402 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1403 | #define USE_Z3950
|
---|
| 1404 | _ACEOF
|
---|
[16568] | 1405 |
|
---|
[22058] | 1406 | else
|
---|
| 1407 | USE_Z3950=0
|
---|
[16568] | 1408 | fi
|
---|
| 1409 |
|
---|
[22058] | 1410 |
|
---|
[24901] | 1411 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1412 | if test "${enable_yaz+set}" = set; then
|
---|
| 1413 | enableval="$enable_yaz"
|
---|
| 1414 | USE_YAZ=$enableval
|
---|
[22058] | 1415 | else
|
---|
| 1416 | USE_YAZ=yes
|
---|
[24901] | 1417 | fi;
|
---|
[22058] | 1418 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
| 1419 | USE_YAZ=1
|
---|
[24901] | 1420 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1421 | #define USE_YAZ
|
---|
| 1422 | _ACEOF
|
---|
[22058] | 1423 |
|
---|
| 1424 | else
|
---|
[20854] | 1425 | USE_YAZ=0
|
---|
[22058] | 1426 | fi
|
---|
| 1427 |
|
---|
| 1428 |
|
---|
[24901] | 1429 | # Check whether --enable-java or --disable-java was given.
|
---|
| 1430 | if test "${enable_java+set}" = set; then
|
---|
| 1431 | enableval="$enable_java"
|
---|
| 1432 | ENABLE_JAVA=$enableval
|
---|
[16568] | 1433 | else
|
---|
[23356] | 1434 | ENABLE_JAVA=yes
|
---|
[24901] | 1435 | fi;
|
---|
[23356] | 1436 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 1437 | ENABLE_JAVA=1
|
---|
| 1438 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 1439 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 1440 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 1441 | echo "and JAVA respectively"
|
---|
| 1442 | export JAVA_HOME=
|
---|
| 1443 | fi
|
---|
| 1444 | else
|
---|
| 1445 | ENABLE_JAVA=0
|
---|
| 1446 | fi
|
---|
| 1447 |
|
---|
| 1448 |
|
---|
[24901] | 1449 | # Check whether --enable-jdbm or --disable-jdbm was given.
|
---|
| 1450 | if test "${enable_jdbm+set}" = set; then
|
---|
| 1451 | enableval="$enable_jdbm"
|
---|
| 1452 | USE_JDBM=$enableval
|
---|
[23356] | 1453 | else
|
---|
[22058] | 1454 | USE_JDBM=yes
|
---|
[24901] | 1455 | fi;
|
---|
[23356] | 1456 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
[22058] | 1457 | USE_JDBM=1
|
---|
[24901] | 1458 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1459 | #define USE_JDBM
|
---|
| 1460 | _ACEOF
|
---|
[16568] | 1461 |
|
---|
[22058] | 1462 | else
|
---|
| 1463 | USE_JDBM=0
|
---|
| 1464 | fi
|
---|
[16568] | 1465 |
|
---|
| 1466 |
|
---|
[24901] | 1467 | # Check whether --enable-gdbm or --disable-gdbm was given.
|
---|
| 1468 | if test "${enable_gdbm+set}" = set; then
|
---|
| 1469 | enableval="$enable_gdbm"
|
---|
| 1470 | USE_GDBM=$enableval
|
---|
[22058] | 1471 | else
|
---|
| 1472 | USE_GDBM=yes
|
---|
[24901] | 1473 | fi;
|
---|
[22058] | 1474 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
| 1475 | USE_GDBM=1
|
---|
[24901] | 1476 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1477 | #define USE_GDBM
|
---|
| 1478 | _ACEOF
|
---|
[22058] | 1479 |
|
---|
| 1480 | else
|
---|
| 1481 | USE_GDBM=0
|
---|
| 1482 | fi
|
---|
| 1483 |
|
---|
| 1484 |
|
---|
[24901] | 1485 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1486 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1487 | enableval="$enable_accentfold"
|
---|
| 1488 | ENABLE_ACCENTFOLD=$enableval
|
---|
[16568] | 1489 | else
|
---|
[22058] | 1490 | ENABLE_ACCENTFOLD=yes
|
---|
[24901] | 1491 | fi;
|
---|
[22058] | 1492 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[16568] | 1493 | ENABLE_ACCENTFOLD=1
|
---|
[24901] | 1494 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1495 | #define ENABLE_ACCENTFOLD
|
---|
| 1496 | _ACEOF
|
---|
[16568] | 1497 |
|
---|
[22058] | 1498 | else
|
---|
| 1499 | ENABLE_ACCENTFOLD=0
|
---|
| 1500 | fi
|
---|
[16568] | 1501 |
|
---|
| 1502 |
|
---|
[24901] | 1503 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
| 1504 | if test "${enable_sqlite+set}" = set; then
|
---|
| 1505 | enableval="$enable_sqlite"
|
---|
| 1506 | USE_SQLITE=$enableval
|
---|
[16568] | 1507 | else
|
---|
[22058] | 1508 | USE_SQLITE=yes
|
---|
[24901] | 1509 | fi;
|
---|
[22058] | 1510 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
[16568] | 1511 | USE_SQLITE=1
|
---|
[24901] | 1512 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1513 | #define USE_SQLITE
|
---|
| 1514 | _ACEOF
|
---|
[16568] | 1515 |
|
---|
[22058] | 1516 | else
|
---|
| 1517 | USE_SQLITE=0
|
---|
| 1518 | fi
|
---|
[16568] | 1519 |
|
---|
| 1520 |
|
---|
[24901] | 1521 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
| 1522 | if test "${enable_apache_httpd+set}" = set; then
|
---|
| 1523 | enableval="$enable_apache_httpd"
|
---|
| 1524 | USE_APACHE_HTTPD=$enableval
|
---|
[20848] | 1525 | else
|
---|
[22058] | 1526 | USE_APACHE_HTTPD=no
|
---|
[24901] | 1527 | fi;
|
---|
[22068] | 1528 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
| 1529 | USE_APACHE_HTTPD=1
|
---|
[24901] | 1530 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1531 | #define USE_APACHE_HTTPD
|
---|
| 1532 | _ACEOF
|
---|
[18487] | 1533 |
|
---|
[22068] | 1534 | else
|
---|
| 1535 | USE_APACHE_HTTPD=0
|
---|
[22058] | 1536 | fi
|
---|
[18487] | 1537 |
|
---|
[22068] | 1538 |
|
---|
| 1539 |
|
---|
[24901] | 1540 | # Check whether --enable-mg or --disable-mg was given.
|
---|
| 1541 | if test "${enable_mg+set}" = set; then
|
---|
| 1542 | enableval="$enable_mg"
|
---|
| 1543 | ENABLE_MG=$enableval
|
---|
[21329] | 1544 | else
|
---|
| 1545 | ENABLE_MG=yes
|
---|
[24901] | 1546 | fi;
|
---|
[21329] | 1547 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 1548 | ENABLE_MG=1
|
---|
[24901] | 1549 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1550 | #define ENABLE_MG
|
---|
| 1551 | _ACEOF
|
---|
[18487] | 1552 |
|
---|
[21329] | 1553 | else
|
---|
| 1554 | ENABLE_MG=0
|
---|
| 1555 | fi
|
---|
| 1556 |
|
---|
| 1557 |
|
---|
[24901] | 1558 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
| 1559 | if test "${enable_mgpp+set}" = set; then
|
---|
| 1560 | enableval="$enable_mgpp"
|
---|
| 1561 | ENABLE_MGPP=$enableval
|
---|
[21329] | 1562 | else
|
---|
| 1563 | ENABLE_MGPP=yes
|
---|
[24901] | 1564 | fi;
|
---|
[21329] | 1565 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 1566 | ENABLE_MGPP=1
|
---|
[24901] | 1567 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1568 | #define ENABLE_MGPP
|
---|
| 1569 | _ACEOF
|
---|
[21329] | 1570 |
|
---|
| 1571 | else
|
---|
| 1572 | ENABLE_MGPP=0
|
---|
| 1573 | fi
|
---|
| 1574 |
|
---|
| 1575 |
|
---|
[24901] | 1576 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
| 1577 | if test "${enable_lucene+set}" = set; then
|
---|
| 1578 | enableval="$enable_lucene"
|
---|
| 1579 | ENABLE_LUCENE=$enableval
|
---|
[21329] | 1580 | else
|
---|
| 1581 | ENABLE_LUCENE=yes
|
---|
[24901] | 1582 | fi;
|
---|
[23356] | 1583 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
[21329] | 1584 | ENABLE_LUCENE=1
|
---|
[24901] | 1585 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1586 | #define ENABLE_LUCENE
|
---|
| 1587 | _ACEOF
|
---|
[21329] | 1588 |
|
---|
| 1589 | else
|
---|
| 1590 | ENABLE_LUCENE=0
|
---|
| 1591 | fi
|
---|
| 1592 |
|
---|
| 1593 |
|
---|
[16568] | 1594 | LDFLAGS=$LDFLAGS
|
---|
| 1595 |
|
---|
| 1596 | if test -z "$CFLAGS"; then
|
---|
| 1597 | CFLAGS=-O2
|
---|
| 1598 | fi
|
---|
| 1599 |
|
---|
| 1600 |
|
---|
| 1601 |
|
---|
| 1602 | ac_ext=c
|
---|
| 1603 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1607 | if test -n "$ac_tool_prefix"; then
|
---|
| 1608 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1609 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[24901] | 1610 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1612 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1613 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1614 | else
|
---|
| 1615 | if test -n "$CC"; then
|
---|
| 1616 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1617 | else
|
---|
| 1618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1619 | for as_dir in $PATH
|
---|
| 1620 | do
|
---|
| 1621 | IFS=$as_save_IFS
|
---|
| 1622 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1623 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1625 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[24901] | 1626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1627 | break 2
|
---|
| 1628 | fi
|
---|
| 1629 | done
|
---|
[24901] | 1630 | done
|
---|
[16568] | 1631 |
|
---|
| 1632 | fi
|
---|
| 1633 | fi
|
---|
| 1634 | CC=$ac_cv_prog_CC
|
---|
| 1635 | if test -n "$CC"; then
|
---|
[24901] | 1636 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1637 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1638 | else
|
---|
[24901] | 1639 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1640 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1641 | fi
|
---|
| 1642 |
|
---|
| 1643 | fi
|
---|
| 1644 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1645 | ac_ct_CC=$CC
|
---|
| 1646 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 1647 | set dummy gcc; ac_word=$2
|
---|
[24901] | 1648 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1650 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1651 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1652 | else
|
---|
| 1653 | if test -n "$ac_ct_CC"; then
|
---|
| 1654 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1655 | else
|
---|
| 1656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1657 | for as_dir in $PATH
|
---|
| 1658 | do
|
---|
| 1659 | IFS=$as_save_IFS
|
---|
| 1660 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1661 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1663 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[24901] | 1664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1665 | break 2
|
---|
| 1666 | fi
|
---|
| 1667 | done
|
---|
[24901] | 1668 | done
|
---|
[16568] | 1669 |
|
---|
| 1670 | fi
|
---|
| 1671 | fi
|
---|
| 1672 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1673 | if test -n "$ac_ct_CC"; then
|
---|
[24901] | 1674 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1675 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16568] | 1676 | else
|
---|
[24901] | 1677 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1678 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1679 | fi
|
---|
| 1680 |
|
---|
[24901] | 1681 | CC=$ac_ct_CC
|
---|
[16568] | 1682 | else
|
---|
| 1683 | CC="$ac_cv_prog_CC"
|
---|
| 1684 | fi
|
---|
| 1685 |
|
---|
| 1686 | if test -z "$CC"; then
|
---|
[24901] | 1687 | if test -n "$ac_tool_prefix"; then
|
---|
| 1688 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[16568] | 1689 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[24901] | 1690 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1692 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1693 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1694 | else
|
---|
| 1695 | if test -n "$CC"; then
|
---|
| 1696 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1697 | else
|
---|
| 1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1699 | for as_dir in $PATH
|
---|
| 1700 | do
|
---|
| 1701 | IFS=$as_save_IFS
|
---|
| 1702 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1703 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1705 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[24901] | 1706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1707 | break 2
|
---|
| 1708 | fi
|
---|
| 1709 | done
|
---|
[24901] | 1710 | done
|
---|
[16568] | 1711 |
|
---|
| 1712 | fi
|
---|
| 1713 | fi
|
---|
| 1714 | CC=$ac_cv_prog_CC
|
---|
| 1715 | if test -n "$CC"; then
|
---|
[24901] | 1716 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1717 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1718 | else
|
---|
[24901] | 1719 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1720 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1721 | fi
|
---|
| 1722 |
|
---|
[24901] | 1723 | fi
|
---|
| 1724 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1725 | ac_ct_CC=$CC
|
---|
| 1726 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1727 | set dummy cc; ac_word=$2
|
---|
| 1728 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1730 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1731 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1732 | else
|
---|
| 1733 | if test -n "$ac_ct_CC"; then
|
---|
| 1734 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1735 | else
|
---|
| 1736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1737 | for as_dir in $PATH
|
---|
| 1738 | do
|
---|
| 1739 | IFS=$as_save_IFS
|
---|
| 1740 | test -z "$as_dir" && as_dir=.
|
---|
| 1741 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1743 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1745 | break 2
|
---|
| 1746 | fi
|
---|
| 1747 | done
|
---|
| 1748 | done
|
---|
[23356] | 1749 |
|
---|
[16568] | 1750 | fi
|
---|
[24901] | 1751 | fi
|
---|
| 1752 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1753 | if test -n "$ac_ct_CC"; then
|
---|
| 1754 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1755 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1756 | else
|
---|
| 1757 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1758 | echo "${ECHO_T}no" >&6
|
---|
| 1759 | fi
|
---|
| 1760 |
|
---|
| 1761 | CC=$ac_ct_CC
|
---|
| 1762 | else
|
---|
| 1763 | CC="$ac_cv_prog_CC"
|
---|
| 1764 | fi
|
---|
| 1765 |
|
---|
| 1766 | fi
|
---|
[16568] | 1767 | if test -z "$CC"; then
|
---|
| 1768 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1769 | set dummy cc; ac_word=$2
|
---|
[24901] | 1770 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1772 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1773 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1774 | else
|
---|
| 1775 | if test -n "$CC"; then
|
---|
| 1776 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1777 | else
|
---|
| 1778 | ac_prog_rejected=no
|
---|
| 1779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1780 | for as_dir in $PATH
|
---|
| 1781 | do
|
---|
| 1782 | IFS=$as_save_IFS
|
---|
| 1783 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1784 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1785 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1786 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1787 | ac_prog_rejected=yes
|
---|
| 1788 | continue
|
---|
| 1789 | fi
|
---|
| 1790 | ac_cv_prog_CC="cc"
|
---|
[24901] | 1791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1792 | break 2
|
---|
| 1793 | fi
|
---|
| 1794 | done
|
---|
[24901] | 1795 | done
|
---|
[16568] | 1796 |
|
---|
| 1797 | if test $ac_prog_rejected = yes; then
|
---|
| 1798 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1799 | set dummy $ac_cv_prog_CC
|
---|
| 1800 | shift
|
---|
| 1801 | if test $# != 0; then
|
---|
| 1802 | # We chose a different compiler from the bogus one.
|
---|
| 1803 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1804 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1805 | shift
|
---|
| 1806 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 1807 | fi
|
---|
| 1808 | fi
|
---|
| 1809 | fi
|
---|
| 1810 | fi
|
---|
| 1811 | CC=$ac_cv_prog_CC
|
---|
| 1812 | if test -n "$CC"; then
|
---|
[24901] | 1813 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1814 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1815 | else
|
---|
[24901] | 1816 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1817 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1818 | fi
|
---|
| 1819 |
|
---|
| 1820 | fi
|
---|
| 1821 | if test -z "$CC"; then
|
---|
| 1822 | if test -n "$ac_tool_prefix"; then
|
---|
[24901] | 1823 | for ac_prog in cl
|
---|
[16568] | 1824 | do
|
---|
| 1825 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1826 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[24901] | 1827 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1829 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1830 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1831 | else
|
---|
| 1832 | if test -n "$CC"; then
|
---|
| 1833 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1834 | else
|
---|
| 1835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1836 | for as_dir in $PATH
|
---|
| 1837 | do
|
---|
| 1838 | IFS=$as_save_IFS
|
---|
| 1839 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1840 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1842 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[24901] | 1843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1844 | break 2
|
---|
| 1845 | fi
|
---|
| 1846 | done
|
---|
[24901] | 1847 | done
|
---|
[16568] | 1848 |
|
---|
| 1849 | fi
|
---|
| 1850 | fi
|
---|
| 1851 | CC=$ac_cv_prog_CC
|
---|
| 1852 | if test -n "$CC"; then
|
---|
[24901] | 1853 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1854 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1855 | else
|
---|
[24901] | 1856 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1857 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1858 | fi
|
---|
| 1859 |
|
---|
| 1860 | test -n "$CC" && break
|
---|
| 1861 | done
|
---|
| 1862 | fi
|
---|
| 1863 | if test -z "$CC"; then
|
---|
| 1864 | ac_ct_CC=$CC
|
---|
[24901] | 1865 | for ac_prog in cl
|
---|
[16568] | 1866 | do
|
---|
| 1867 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1868 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 1869 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1871 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1872 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1873 | else
|
---|
| 1874 | if test -n "$ac_ct_CC"; then
|
---|
| 1875 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1876 | else
|
---|
| 1877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1878 | for as_dir in $PATH
|
---|
| 1879 | do
|
---|
| 1880 | IFS=$as_save_IFS
|
---|
| 1881 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1882 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1884 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[24901] | 1885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1886 | break 2
|
---|
| 1887 | fi
|
---|
| 1888 | done
|
---|
[24901] | 1889 | done
|
---|
[16568] | 1890 |
|
---|
| 1891 | fi
|
---|
| 1892 | fi
|
---|
| 1893 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1894 | if test -n "$ac_ct_CC"; then
|
---|
[24901] | 1895 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1896 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16568] | 1897 | else
|
---|
[24901] | 1898 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1899 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1900 | fi
|
---|
| 1901 |
|
---|
| 1902 | test -n "$ac_ct_CC" && break
|
---|
| 1903 | done
|
---|
| 1904 |
|
---|
[24901] | 1905 | CC=$ac_ct_CC
|
---|
[16568] | 1906 | fi
|
---|
| 1907 |
|
---|
| 1908 | fi
|
---|
| 1909 |
|
---|
| 1910 |
|
---|
[24901] | 1911 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1912 | See \`config.log' for more details." >&5
|
---|
| 1913 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1914 | See \`config.log' for more details." >&2;}
|
---|
| 1915 | { (exit 1); exit 1; }; }
|
---|
[16568] | 1916 |
|
---|
| 1917 | # Provide some information about the compiler.
|
---|
[24901] | 1918 | echo "$as_me:$LINENO:" \
|
---|
| 1919 | "checking for C compiler version" >&5
|
---|
| 1920 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1921 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1922 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[16568] | 1923 | ac_status=$?
|
---|
[24901] | 1924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1925 | (exit $ac_status); }
|
---|
| 1926 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1927 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1928 | ac_status=$?
|
---|
| 1929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1930 | (exit $ac_status); }
|
---|
| 1931 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1932 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1933 | ac_status=$?
|
---|
| 1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1935 | (exit $ac_status); }
|
---|
[16568] | 1936 |
|
---|
[24901] | 1937 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1938 | /* confdefs.h. */
|
---|
| 1939 | _ACEOF
|
---|
| 1940 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1941 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 1942 | /* end confdefs.h. */
|
---|
| 1943 |
|
---|
| 1944 | int
|
---|
| 1945 | main ()
|
---|
| 1946 | {
|
---|
| 1947 |
|
---|
| 1948 | ;
|
---|
| 1949 | return 0;
|
---|
| 1950 | }
|
---|
| 1951 | _ACEOF
|
---|
| 1952 | ac_clean_files_save=$ac_clean_files
|
---|
[24901] | 1953 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[16568] | 1954 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1955 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1956 | # of exeext.
|
---|
[24901] | 1957 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1958 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1959 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1960 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1961 | (eval $ac_link_default) 2>&5
|
---|
| 1962 | ac_status=$?
|
---|
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1964 | (exit $ac_status); }; then
|
---|
| 1965 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1966 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1967 | # resort.
|
---|
[20854] | 1968 |
|
---|
[24901] | 1969 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1970 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1971 | ac_cv_exeext=
|
---|
| 1972 | # b.out is created by i960 compilers.
|
---|
| 1973 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
[16568] | 1974 | do
|
---|
| 1975 | test -f "$ac_file" || continue
|
---|
| 1976 | case $ac_file in
|
---|
[24901] | 1977 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
[16568] | 1978 | ;;
|
---|
[24901] | 1979 | conftest.$ac_ext )
|
---|
| 1980 | # This is the source file.
|
---|
| 1981 | ;;
|
---|
[16568] | 1982 | [ab].out )
|
---|
| 1983 | # We found the default executable, but exeext='' is most
|
---|
| 1984 | # certainly right.
|
---|
| 1985 | break;;
|
---|
| 1986 | *.* )
|
---|
[24901] | 1987 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1988 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1989 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1990 | # maintain Libtool? --akim.
|
---|
| 1991 | export ac_cv_exeext
|
---|
[16568] | 1992 | break;;
|
---|
| 1993 | * )
|
---|
| 1994 | break;;
|
---|
| 1995 | esac
|
---|
| 1996 | done
|
---|
| 1997 | else
|
---|
[24901] | 1998 | echo "$as_me: failed program was:" >&5
|
---|
[16568] | 1999 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2000 |
|
---|
[24901] | 2001 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 2002 | See \`config.log' for more details." >&5
|
---|
| 2003 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 2004 | See \`config.log' for more details." >&2;}
|
---|
| 2005 | { (exit 77); exit 77; }; }
|
---|
[16568] | 2006 | fi
|
---|
[24901] | 2007 |
|
---|
[16568] | 2008 | ac_exeext=$ac_cv_exeext
|
---|
[24901] | 2009 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 2010 | echo "${ECHO_T}$ac_file" >&6
|
---|
[16568] | 2011 |
|
---|
[24901] | 2012 | # Check the compiler produces executables we can run. If not, either
|
---|
| 2013 | # the compiler is broken, or we cross compile.
|
---|
| 2014 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 2015 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 2016 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 2017 | # If not cross compiling, check that we can run a simple program.
|
---|
| 2018 | if test "$cross_compiling" != yes; then
|
---|
| 2019 | if { ac_try='./$ac_file'
|
---|
| 2020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2021 | (eval $ac_try) 2>&5
|
---|
| 2022 | ac_status=$?
|
---|
| 2023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2024 | (exit $ac_status); }; }; then
|
---|
| 2025 | cross_compiling=no
|
---|
| 2026 | else
|
---|
| 2027 | if test "$cross_compiling" = maybe; then
|
---|
| 2028 | cross_compiling=yes
|
---|
| 2029 | else
|
---|
| 2030 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 2031 | If you meant to cross compile, use \`--host'.
|
---|
| 2032 | See \`config.log' for more details." >&5
|
---|
| 2033 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 2034 | If you meant to cross compile, use \`--host'.
|
---|
| 2035 | See \`config.log' for more details." >&2;}
|
---|
| 2036 | { (exit 1); exit 1; }; }
|
---|
| 2037 | fi
|
---|
| 2038 | fi
|
---|
| 2039 | fi
|
---|
| 2040 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2041 | echo "${ECHO_T}yes" >&6
|
---|
| 2042 |
|
---|
| 2043 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[16568] | 2044 | ac_clean_files=$ac_clean_files_save
|
---|
[24901] | 2045 | # Check the compiler produces executables we can run. If not, either
|
---|
| 2046 | # the compiler is broken, or we cross compile.
|
---|
| 2047 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 2048 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 2049 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 2050 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 2051 |
|
---|
| 2052 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 2053 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 2054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 2055 | (eval $ac_link) 2>&5
|
---|
[16568] | 2056 | ac_status=$?
|
---|
[24901] | 2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2058 | (exit $ac_status); }; then
|
---|
[16568] | 2059 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2060 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2061 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2062 | # `rm'.
|
---|
| 2063 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2064 | test -f "$ac_file" || continue
|
---|
| 2065 | case $ac_file in
|
---|
[24901] | 2066 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[16568] | 2067 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[24901] | 2068 | export ac_cv_exeext
|
---|
[16568] | 2069 | break;;
|
---|
| 2070 | * ) break;;
|
---|
| 2071 | esac
|
---|
| 2072 | done
|
---|
| 2073 | else
|
---|
[24901] | 2074 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2075 | See \`config.log' for more details." >&5
|
---|
| 2076 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2077 | See \`config.log' for more details." >&2;}
|
---|
| 2078 | { (exit 1); exit 1; }; }
|
---|
[16568] | 2079 | fi
|
---|
| 2080 |
|
---|
[24901] | 2081 | rm -f conftest$ac_cv_exeext
|
---|
| 2082 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2083 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 2084 |
|
---|
[16568] | 2085 | rm -f conftest.$ac_ext
|
---|
| 2086 | EXEEXT=$ac_cv_exeext
|
---|
| 2087 | ac_exeext=$EXEEXT
|
---|
[24901] | 2088 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2089 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 2090 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2091 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2092 | else
|
---|
| 2093 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2094 | /* confdefs.h. */
|
---|
[23356] | 2095 | _ACEOF
|
---|
[24901] | 2096 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2097 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2098 | /* end confdefs.h. */
|
---|
| 2099 |
|
---|
| 2100 | int
|
---|
| 2101 | main ()
|
---|
| 2102 | {
|
---|
| 2103 |
|
---|
| 2104 | ;
|
---|
| 2105 | return 0;
|
---|
| 2106 | }
|
---|
| 2107 | _ACEOF
|
---|
| 2108 | rm -f conftest.o conftest.obj
|
---|
[24901] | 2109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2110 | (eval $ac_compile) 2>&5
|
---|
[16568] | 2111 | ac_status=$?
|
---|
[24901] | 2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2113 | (exit $ac_status); }; then
|
---|
| 2114 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
[16568] | 2115 | case $ac_file in
|
---|
[24901] | 2116 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[16568] | 2117 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2118 | break;;
|
---|
| 2119 | esac
|
---|
| 2120 | done
|
---|
| 2121 | else
|
---|
[24901] | 2122 | echo "$as_me: failed program was:" >&5
|
---|
[16568] | 2123 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2124 |
|
---|
[24901] | 2125 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2126 | See \`config.log' for more details." >&5
|
---|
| 2127 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2128 | See \`config.log' for more details." >&2;}
|
---|
| 2129 | { (exit 1); exit 1; }; }
|
---|
[16568] | 2130 | fi
|
---|
[24901] | 2131 |
|
---|
[16568] | 2132 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2133 | fi
|
---|
[24901] | 2134 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2135 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
[16568] | 2136 | OBJEXT=$ac_cv_objext
|
---|
| 2137 | ac_objext=$OBJEXT
|
---|
[24901] | 2138 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2139 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2140 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2141 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2142 | else
|
---|
[24901] | 2143 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2144 | /* confdefs.h. */
|
---|
| 2145 | _ACEOF
|
---|
| 2146 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2147 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2148 | /* end confdefs.h. */
|
---|
| 2149 |
|
---|
| 2150 | int
|
---|
| 2151 | main ()
|
---|
| 2152 | {
|
---|
| 2153 | #ifndef __GNUC__
|
---|
| 2154 | choke me
|
---|
| 2155 | #endif
|
---|
| 2156 |
|
---|
| 2157 | ;
|
---|
| 2158 | return 0;
|
---|
| 2159 | }
|
---|
| 2160 | _ACEOF
|
---|
[24901] | 2161 | rm -f conftest.$ac_objext
|
---|
| 2162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2163 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2164 | ac_status=$?
|
---|
| 2165 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2166 | rm -f conftest.er1
|
---|
| 2167 | cat conftest.err >&5
|
---|
| 2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2169 | (exit $ac_status); } &&
|
---|
| 2170 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2171 | || test ! -s conftest.err'
|
---|
| 2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2173 | (eval $ac_try) 2>&5
|
---|
| 2174 | ac_status=$?
|
---|
| 2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2176 | (exit $ac_status); }; } &&
|
---|
| 2177 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2179 | (eval $ac_try) 2>&5
|
---|
| 2180 | ac_status=$?
|
---|
| 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2182 | (exit $ac_status); }; }; then
|
---|
[16568] | 2183 | ac_compiler_gnu=yes
|
---|
| 2184 | else
|
---|
[24901] | 2185 | echo "$as_me: failed program was:" >&5
|
---|
| 2186 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2187 |
|
---|
| 2188 | ac_compiler_gnu=no
|
---|
[16568] | 2189 | fi
|
---|
[24901] | 2190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2191 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2192 |
|
---|
| 2193 | fi
|
---|
[24901] | 2194 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2195 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2196 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[16568] | 2197 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2198 | ac_save_CFLAGS=$CFLAGS
|
---|
[24901] | 2199 | CFLAGS="-g"
|
---|
| 2200 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2201 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2202 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2203 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2204 | else
|
---|
[24901] | 2205 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2206 | /* confdefs.h. */
|
---|
| 2207 | _ACEOF
|
---|
| 2208 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2209 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2210 | /* end confdefs.h. */
|
---|
| 2211 |
|
---|
| 2212 | int
|
---|
| 2213 | main ()
|
---|
| 2214 | {
|
---|
| 2215 |
|
---|
| 2216 | ;
|
---|
| 2217 | return 0;
|
---|
| 2218 | }
|
---|
| 2219 | _ACEOF
|
---|
[24901] | 2220 | rm -f conftest.$ac_objext
|
---|
| 2221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2222 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2223 | ac_status=$?
|
---|
| 2224 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2225 | rm -f conftest.er1
|
---|
| 2226 | cat conftest.err >&5
|
---|
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2228 | (exit $ac_status); } &&
|
---|
| 2229 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2230 | || test ! -s conftest.err'
|
---|
| 2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2232 | (eval $ac_try) 2>&5
|
---|
| 2233 | ac_status=$?
|
---|
| 2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2235 | (exit $ac_status); }; } &&
|
---|
| 2236 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2238 | (eval $ac_try) 2>&5
|
---|
| 2239 | ac_status=$?
|
---|
| 2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2241 | (exit $ac_status); }; }; then
|
---|
[16568] | 2242 | ac_cv_prog_cc_g=yes
|
---|
| 2243 | else
|
---|
[24901] | 2244 | echo "$as_me: failed program was:" >&5
|
---|
| 2245 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 2246 |
|
---|
[24901] | 2247 | ac_cv_prog_cc_g=no
|
---|
[16568] | 2248 | fi
|
---|
[24901] | 2249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2250 | fi
|
---|
[24901] | 2251 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2252 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[16568] | 2253 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 2254 | CFLAGS=$ac_save_CFLAGS
|
---|
| 2255 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2256 | if test "$GCC" = yes; then
|
---|
| 2257 | CFLAGS="-g -O2"
|
---|
| 2258 | else
|
---|
| 2259 | CFLAGS="-g"
|
---|
| 2260 | fi
|
---|
| 2261 | else
|
---|
| 2262 | if test "$GCC" = yes; then
|
---|
| 2263 | CFLAGS="-O2"
|
---|
| 2264 | else
|
---|
| 2265 | CFLAGS=
|
---|
| 2266 | fi
|
---|
| 2267 | fi
|
---|
[24901] | 2268 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2269 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2270 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2271 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2272 | else
|
---|
[24901] | 2273 | ac_cv_prog_cc_stdc=no
|
---|
[16568] | 2274 | ac_save_CC=$CC
|
---|
[24901] | 2275 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2276 | /* confdefs.h. */
|
---|
| 2277 | _ACEOF
|
---|
| 2278 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2279 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2280 | /* end confdefs.h. */
|
---|
| 2281 | #include <stdarg.h>
|
---|
| 2282 | #include <stdio.h>
|
---|
| 2283 | #include <sys/types.h>
|
---|
| 2284 | #include <sys/stat.h>
|
---|
| 2285 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2286 | struct buf { int x; };
|
---|
| 2287 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2288 | static char *e (p, i)
|
---|
| 2289 | char **p;
|
---|
| 2290 | int i;
|
---|
| 2291 | {
|
---|
| 2292 | return p[i];
|
---|
| 2293 | }
|
---|
| 2294 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2295 | {
|
---|
| 2296 | char *s;
|
---|
| 2297 | va_list v;
|
---|
| 2298 | va_start (v,p);
|
---|
| 2299 | s = g (p, va_arg (v,int));
|
---|
| 2300 | va_end (v);
|
---|
| 2301 | return s;
|
---|
| 2302 | }
|
---|
| 2303 |
|
---|
| 2304 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2305 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2306 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[24901] | 2307 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
[16568] | 2308 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2309 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[24901] | 2310 | that's true only with -std1. */
|
---|
[16568] | 2311 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2312 |
|
---|
| 2313 | int test (int i, double x);
|
---|
| 2314 | struct s1 {int (*f) (int a);};
|
---|
| 2315 | struct s2 {int (*f) (double a);};
|
---|
| 2316 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2317 | int argc;
|
---|
| 2318 | char **argv;
|
---|
| 2319 | int
|
---|
| 2320 | main ()
|
---|
| 2321 | {
|
---|
| 2322 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2323 | ;
|
---|
| 2324 | return 0;
|
---|
| 2325 | }
|
---|
| 2326 | _ACEOF
|
---|
[24901] | 2327 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2328 | # breaks some systems' header files.
|
---|
| 2329 | # AIX -qlanglvl=ansi
|
---|
| 2330 | # Ultrix and OSF/1 -std1
|
---|
| 2331 | # HP-UX 10.20 and later -Ae
|
---|
| 2332 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2333 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2334 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[16568] | 2335 | do
|
---|
| 2336 | CC="$ac_save_CC $ac_arg"
|
---|
[24901] | 2337 | rm -f conftest.$ac_objext
|
---|
| 2338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2339 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2340 | ac_status=$?
|
---|
| 2341 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2342 | rm -f conftest.er1
|
---|
| 2343 | cat conftest.err >&5
|
---|
| 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2345 | (exit $ac_status); } &&
|
---|
| 2346 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2347 | || test ! -s conftest.err'
|
---|
| 2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2349 | (eval $ac_try) 2>&5
|
---|
| 2350 | ac_status=$?
|
---|
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2352 | (exit $ac_status); }; } &&
|
---|
| 2353 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2355 | (eval $ac_try) 2>&5
|
---|
| 2356 | ac_status=$?
|
---|
| 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2358 | (exit $ac_status); }; }; then
|
---|
| 2359 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2360 | break
|
---|
| 2361 | else
|
---|
| 2362 | echo "$as_me: failed program was:" >&5
|
---|
| 2363 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2364 |
|
---|
[16568] | 2365 | fi
|
---|
[24901] | 2366 | rm -f conftest.err conftest.$ac_objext
|
---|
[16568] | 2367 | done
|
---|
[24901] | 2368 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
[16568] | 2369 | CC=$ac_save_CC
|
---|
| 2370 |
|
---|
| 2371 | fi
|
---|
[24901] | 2372 |
|
---|
| 2373 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2374 | x|xno)
|
---|
| 2375 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2376 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
[16568] | 2377 | *)
|
---|
[24901] | 2378 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2379 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2380 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
[16568] | 2381 | esac
|
---|
| 2382 |
|
---|
[24901] | 2383 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2384 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2385 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2386 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2387 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2388 | #ifndef __cplusplus
|
---|
| 2389 | choke me
|
---|
| 2390 | #endif
|
---|
| 2391 | _ACEOF
|
---|
| 2392 | rm -f conftest.$ac_objext
|
---|
| 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2394 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2395 | ac_status=$?
|
---|
| 2396 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2397 | rm -f conftest.er1
|
---|
| 2398 | cat conftest.err >&5
|
---|
| 2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2400 | (exit $ac_status); } &&
|
---|
| 2401 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2402 | || test ! -s conftest.err'
|
---|
| 2403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2404 | (eval $ac_try) 2>&5
|
---|
| 2405 | ac_status=$?
|
---|
| 2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2407 | (exit $ac_status); }; } &&
|
---|
| 2408 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2410 | (eval $ac_try) 2>&5
|
---|
| 2411 | ac_status=$?
|
---|
| 2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2413 | (exit $ac_status); }; }; then
|
---|
| 2414 | for ac_declaration in \
|
---|
| 2415 | '' \
|
---|
| 2416 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2417 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2418 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2419 | 'extern "C" void exit (int);' \
|
---|
| 2420 | 'void exit (int);'
|
---|
| 2421 | do
|
---|
| 2422 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2423 | /* confdefs.h. */
|
---|
| 2424 | _ACEOF
|
---|
| 2425 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2426 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2427 | /* end confdefs.h. */
|
---|
| 2428 | $ac_declaration
|
---|
| 2429 | #include <stdlib.h>
|
---|
| 2430 | int
|
---|
| 2431 | main ()
|
---|
| 2432 | {
|
---|
| 2433 | exit (42);
|
---|
| 2434 | ;
|
---|
| 2435 | return 0;
|
---|
| 2436 | }
|
---|
| 2437 | _ACEOF
|
---|
| 2438 | rm -f conftest.$ac_objext
|
---|
| 2439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2440 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2441 | ac_status=$?
|
---|
| 2442 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2443 | rm -f conftest.er1
|
---|
| 2444 | cat conftest.err >&5
|
---|
| 2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2446 | (exit $ac_status); } &&
|
---|
| 2447 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2448 | || test ! -s conftest.err'
|
---|
| 2449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2450 | (eval $ac_try) 2>&5
|
---|
| 2451 | ac_status=$?
|
---|
| 2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2453 | (exit $ac_status); }; } &&
|
---|
| 2454 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2456 | (eval $ac_try) 2>&5
|
---|
| 2457 | ac_status=$?
|
---|
| 2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2459 | (exit $ac_status); }; }; then
|
---|
| 2460 | :
|
---|
| 2461 | else
|
---|
| 2462 | echo "$as_me: failed program was:" >&5
|
---|
| 2463 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2464 |
|
---|
| 2465 | continue
|
---|
[20854] | 2466 | fi
|
---|
[24901] | 2467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2468 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2469 | /* confdefs.h. */
|
---|
| 2470 | _ACEOF
|
---|
| 2471 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2472 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2473 | /* end confdefs.h. */
|
---|
| 2474 | $ac_declaration
|
---|
| 2475 | int
|
---|
| 2476 | main ()
|
---|
| 2477 | {
|
---|
| 2478 | exit (42);
|
---|
| 2479 | ;
|
---|
| 2480 | return 0;
|
---|
| 2481 | }
|
---|
| 2482 | _ACEOF
|
---|
| 2483 | rm -f conftest.$ac_objext
|
---|
| 2484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2485 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2486 | ac_status=$?
|
---|
| 2487 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2488 | rm -f conftest.er1
|
---|
| 2489 | cat conftest.err >&5
|
---|
| 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2491 | (exit $ac_status); } &&
|
---|
| 2492 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2493 | || test ! -s conftest.err'
|
---|
| 2494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2495 | (eval $ac_try) 2>&5
|
---|
| 2496 | ac_status=$?
|
---|
| 2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2498 | (exit $ac_status); }; } &&
|
---|
| 2499 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2501 | (eval $ac_try) 2>&5
|
---|
| 2502 | ac_status=$?
|
---|
| 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2504 | (exit $ac_status); }; }; then
|
---|
| 2505 | break
|
---|
| 2506 | else
|
---|
| 2507 | echo "$as_me: failed program was:" >&5
|
---|
| 2508 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[20854] | 2509 |
|
---|
[24901] | 2510 | fi
|
---|
| 2511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2512 | done
|
---|
| 2513 | rm -f conftest*
|
---|
| 2514 | if test -n "$ac_declaration"; then
|
---|
| 2515 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2516 | echo $ac_declaration >>confdefs.h
|
---|
| 2517 | echo '#endif' >>confdefs.h
|
---|
| 2518 | fi
|
---|
| 2519 |
|
---|
| 2520 | else
|
---|
| 2521 | echo "$as_me: failed program was:" >&5
|
---|
| 2522 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2523 |
|
---|
| 2524 | fi
|
---|
| 2525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2526 | ac_ext=c
|
---|
| 2527 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2531 |
|
---|
[24901] | 2532 | ac_ext=cc
|
---|
[16568] | 2533 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[24901] | 2537 | if test -n "$ac_tool_prefix"; then
|
---|
| 2538 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16568] | 2539 | do
|
---|
| 2540 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2541 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[24901] | 2542 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2544 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2545 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2546 | else
|
---|
| 2547 | if test -n "$CXX"; then
|
---|
| 2548 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2549 | else
|
---|
| 2550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2551 | for as_dir in $PATH
|
---|
| 2552 | do
|
---|
| 2553 | IFS=$as_save_IFS
|
---|
| 2554 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2555 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 2557 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[24901] | 2558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 2559 | break 2
|
---|
| 2560 | fi
|
---|
| 2561 | done
|
---|
[24901] | 2562 | done
|
---|
[16568] | 2563 |
|
---|
| 2564 | fi
|
---|
| 2565 | fi
|
---|
| 2566 | CXX=$ac_cv_prog_CXX
|
---|
| 2567 | if test -n "$CXX"; then
|
---|
[24901] | 2568 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2569 | echo "${ECHO_T}$CXX" >&6
|
---|
[16568] | 2570 | else
|
---|
[24901] | 2571 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2572 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 2573 | fi
|
---|
| 2574 |
|
---|
| 2575 | test -n "$CXX" && break
|
---|
| 2576 | done
|
---|
| 2577 | fi
|
---|
| 2578 | if test -z "$CXX"; then
|
---|
| 2579 | ac_ct_CXX=$CXX
|
---|
[24901] | 2580 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16568] | 2581 | do
|
---|
| 2582 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2583 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 2584 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2586 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2587 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2588 | else
|
---|
| 2589 | if test -n "$ac_ct_CXX"; then
|
---|
| 2590 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2591 | else
|
---|
| 2592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2593 | for as_dir in $PATH
|
---|
| 2594 | do
|
---|
| 2595 | IFS=$as_save_IFS
|
---|
| 2596 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2597 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 2599 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[24901] | 2600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 2601 | break 2
|
---|
| 2602 | fi
|
---|
| 2603 | done
|
---|
[24901] | 2604 | done
|
---|
[16568] | 2605 |
|
---|
| 2606 | fi
|
---|
| 2607 | fi
|
---|
| 2608 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2609 | if test -n "$ac_ct_CXX"; then
|
---|
[24901] | 2610 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2611 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[16568] | 2612 | else
|
---|
[24901] | 2613 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2614 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 2615 | fi
|
---|
| 2616 |
|
---|
| 2617 | test -n "$ac_ct_CXX" && break
|
---|
| 2618 | done
|
---|
[24901] | 2619 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[16568] | 2620 |
|
---|
[24901] | 2621 | CXX=$ac_ct_CXX
|
---|
[16568] | 2622 | fi
|
---|
| 2623 |
|
---|
[24901] | 2624 |
|
---|
[16568] | 2625 | # Provide some information about the compiler.
|
---|
[24901] | 2626 | echo "$as_me:$LINENO:" \
|
---|
| 2627 | "checking for C++ compiler version" >&5
|
---|
| 2628 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2629 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2630 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[16568] | 2631 | ac_status=$?
|
---|
[24901] | 2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2633 | (exit $ac_status); }
|
---|
| 2634 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2635 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2636 | ac_status=$?
|
---|
| 2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2638 | (exit $ac_status); }
|
---|
| 2639 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2640 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2641 | ac_status=$?
|
---|
| 2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2643 | (exit $ac_status); }
|
---|
[16568] | 2644 |
|
---|
[24901] | 2645 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2646 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2647 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2648 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2649 | else
|
---|
[24901] | 2650 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2651 | /* confdefs.h. */
|
---|
| 2652 | _ACEOF
|
---|
| 2653 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2654 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2655 | /* end confdefs.h. */
|
---|
| 2656 |
|
---|
| 2657 | int
|
---|
| 2658 | main ()
|
---|
| 2659 | {
|
---|
| 2660 | #ifndef __GNUC__
|
---|
| 2661 | choke me
|
---|
| 2662 | #endif
|
---|
| 2663 |
|
---|
| 2664 | ;
|
---|
| 2665 | return 0;
|
---|
| 2666 | }
|
---|
| 2667 | _ACEOF
|
---|
[24901] | 2668 | rm -f conftest.$ac_objext
|
---|
| 2669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2670 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2671 | ac_status=$?
|
---|
| 2672 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2673 | rm -f conftest.er1
|
---|
| 2674 | cat conftest.err >&5
|
---|
| 2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2676 | (exit $ac_status); } &&
|
---|
| 2677 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2678 | || test ! -s conftest.err'
|
---|
| 2679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2680 | (eval $ac_try) 2>&5
|
---|
| 2681 | ac_status=$?
|
---|
| 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2683 | (exit $ac_status); }; } &&
|
---|
| 2684 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2686 | (eval $ac_try) 2>&5
|
---|
| 2687 | ac_status=$?
|
---|
| 2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2689 | (exit $ac_status); }; }; then
|
---|
[16568] | 2690 | ac_compiler_gnu=yes
|
---|
| 2691 | else
|
---|
[24901] | 2692 | echo "$as_me: failed program was:" >&5
|
---|
| 2693 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2694 |
|
---|
| 2695 | ac_compiler_gnu=no
|
---|
[16568] | 2696 | fi
|
---|
[24901] | 2697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2698 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2699 |
|
---|
| 2700 | fi
|
---|
[24901] | 2701 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2702 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2703 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[16568] | 2704 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2705 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[24901] | 2706 | CXXFLAGS="-g"
|
---|
| 2707 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2708 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2709 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2710 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2711 | else
|
---|
[24901] | 2712 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2713 | /* confdefs.h. */
|
---|
| 2714 | _ACEOF
|
---|
| 2715 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2716 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2717 | /* end confdefs.h. */
|
---|
| 2718 |
|
---|
| 2719 | int
|
---|
| 2720 | main ()
|
---|
| 2721 | {
|
---|
| 2722 |
|
---|
| 2723 | ;
|
---|
| 2724 | return 0;
|
---|
| 2725 | }
|
---|
| 2726 | _ACEOF
|
---|
[24901] | 2727 | rm -f conftest.$ac_objext
|
---|
| 2728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2729 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2730 | ac_status=$?
|
---|
| 2731 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2732 | rm -f conftest.er1
|
---|
| 2733 | cat conftest.err >&5
|
---|
| 2734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2735 | (exit $ac_status); } &&
|
---|
| 2736 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2737 | || test ! -s conftest.err'
|
---|
| 2738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2739 | (eval $ac_try) 2>&5
|
---|
| 2740 | ac_status=$?
|
---|
| 2741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2742 | (exit $ac_status); }; } &&
|
---|
| 2743 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2745 | (eval $ac_try) 2>&5
|
---|
| 2746 | ac_status=$?
|
---|
| 2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2748 | (exit $ac_status); }; }; then
|
---|
[16568] | 2749 | ac_cv_prog_cxx_g=yes
|
---|
| 2750 | else
|
---|
[24901] | 2751 | echo "$as_me: failed program was:" >&5
|
---|
| 2752 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2753 |
|
---|
| 2754 | ac_cv_prog_cxx_g=no
|
---|
| 2755 | fi
|
---|
| 2756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2757 | fi
|
---|
| 2758 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2759 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2760 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2761 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2762 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2763 | if test "$GXX" = yes; then
|
---|
| 2764 | CXXFLAGS="-g -O2"
|
---|
| 2765 | else
|
---|
| 2766 | CXXFLAGS="-g"
|
---|
| 2767 | fi
|
---|
| 2768 | else
|
---|
| 2769 | if test "$GXX" = yes; then
|
---|
| 2770 | CXXFLAGS="-O2"
|
---|
| 2771 | else
|
---|
| 2772 | CXXFLAGS=
|
---|
| 2773 | fi
|
---|
| 2774 | fi
|
---|
| 2775 | for ac_declaration in \
|
---|
| 2776 | '' \
|
---|
| 2777 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2778 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2779 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2780 | 'extern "C" void exit (int);' \
|
---|
| 2781 | 'void exit (int);'
|
---|
| 2782 | do
|
---|
| 2783 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2784 | /* confdefs.h. */
|
---|
| 2785 | _ACEOF
|
---|
| 2786 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2787 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[23356] | 2788 | /* end confdefs.h. */
|
---|
[24901] | 2789 | $ac_declaration
|
---|
| 2790 | #include <stdlib.h>
|
---|
[23356] | 2791 | int
|
---|
| 2792 | main ()
|
---|
| 2793 | {
|
---|
[24901] | 2794 | exit (42);
|
---|
[23356] | 2795 | ;
|
---|
| 2796 | return 0;
|
---|
| 2797 | }
|
---|
| 2798 | _ACEOF
|
---|
[24901] | 2799 | rm -f conftest.$ac_objext
|
---|
| 2800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2801 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2802 | ac_status=$?
|
---|
| 2803 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2804 | rm -f conftest.er1
|
---|
| 2805 | cat conftest.err >&5
|
---|
| 2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2807 | (exit $ac_status); } &&
|
---|
| 2808 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2809 | || test ! -s conftest.err'
|
---|
| 2810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2811 | (eval $ac_try) 2>&5
|
---|
| 2812 | ac_status=$?
|
---|
| 2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2814 | (exit $ac_status); }; } &&
|
---|
| 2815 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2817 | (eval $ac_try) 2>&5
|
---|
| 2818 | ac_status=$?
|
---|
| 2819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2820 | (exit $ac_status); }; }; then
|
---|
| 2821 | :
|
---|
| 2822 | else
|
---|
| 2823 | echo "$as_me: failed program was:" >&5
|
---|
| 2824 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 2825 |
|
---|
[24901] | 2826 | continue
|
---|
| 2827 | fi
|
---|
| 2828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2829 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2830 | /* confdefs.h. */
|
---|
| 2831 | _ACEOF
|
---|
| 2832 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2833 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[23356] | 2834 | /* end confdefs.h. */
|
---|
[24901] | 2835 | $ac_declaration
|
---|
[23356] | 2836 | int
|
---|
| 2837 | main ()
|
---|
| 2838 | {
|
---|
[24901] | 2839 | exit (42);
|
---|
[23356] | 2840 | ;
|
---|
| 2841 | return 0;
|
---|
| 2842 | }
|
---|
| 2843 | _ACEOF
|
---|
[24901] | 2844 | rm -f conftest.$ac_objext
|
---|
| 2845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2846 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2847 | ac_status=$?
|
---|
| 2848 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2849 | rm -f conftest.er1
|
---|
| 2850 | cat conftest.err >&5
|
---|
| 2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2852 | (exit $ac_status); } &&
|
---|
| 2853 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2854 | || test ! -s conftest.err'
|
---|
| 2855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2856 | (eval $ac_try) 2>&5
|
---|
| 2857 | ac_status=$?
|
---|
| 2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2859 | (exit $ac_status); }; } &&
|
---|
| 2860 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2862 | (eval $ac_try) 2>&5
|
---|
| 2863 | ac_status=$?
|
---|
| 2864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2865 | (exit $ac_status); }; }; then
|
---|
| 2866 | break
|
---|
| 2867 | else
|
---|
| 2868 | echo "$as_me: failed program was:" >&5
|
---|
| 2869 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2870 |
|
---|
[20854] | 2871 | fi
|
---|
[24901] | 2872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2873 | done
|
---|
| 2874 | rm -f conftest*
|
---|
| 2875 | if test -n "$ac_declaration"; then
|
---|
| 2876 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2877 | echo $ac_declaration >>confdefs.h
|
---|
| 2878 | echo '#endif' >>confdefs.h
|
---|
[20854] | 2879 | fi
|
---|
[24901] | 2880 |
|
---|
[23356] | 2881 | ac_ext=c
|
---|
| 2882 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2883 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2884 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2885 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2886 |
|
---|
| 2887 | if test $ENABLE_JAVA = "1" ; then
|
---|
| 2888 |
|
---|
| 2889 |
|
---|
| 2890 | if test "x$JAVAC" = x ; then
|
---|
| 2891 | if test "x$JAVAPREFIX" = x; then
|
---|
| 2892 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
[20854] | 2893 | do
|
---|
[23356] | 2894 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2895 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 2896 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2898 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 2899 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 2900 | else
|
---|
| 2901 | if test -n "$JAVAC"; then
|
---|
| 2902 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 2903 | else
|
---|
| 2904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2905 | for as_dir in $PATH
|
---|
| 2906 | do
|
---|
| 2907 | IFS=$as_save_IFS
|
---|
| 2908 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2909 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 2911 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 2912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 2913 | break 2
|
---|
| 2914 | fi
|
---|
| 2915 | done
|
---|
[24901] | 2916 | done
|
---|
[23356] | 2917 |
|
---|
| 2918 | fi
|
---|
| 2919 | fi
|
---|
| 2920 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 2921 | if test -n "$JAVAC"; then
|
---|
[24901] | 2922 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 2923 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 2924 | else
|
---|
[24901] | 2925 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2926 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 2927 | fi
|
---|
| 2928 |
|
---|
| 2929 | test -n "$JAVAC" && break
|
---|
| 2930 | done
|
---|
| 2931 |
|
---|
| 2932 | else
|
---|
| 2933 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 2934 | do
|
---|
| 2935 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2936 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 2937 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2939 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 2940 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 2941 | else
|
---|
| 2942 | if test -n "$JAVAC"; then
|
---|
| 2943 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 2944 | else
|
---|
| 2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2946 | for as_dir in $PATH
|
---|
| 2947 | do
|
---|
| 2948 | IFS=$as_save_IFS
|
---|
| 2949 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2950 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2951 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 2952 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 2953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 2954 | break 2
|
---|
| 2955 | fi
|
---|
| 2956 | done
|
---|
[24901] | 2957 | done
|
---|
[23356] | 2958 |
|
---|
| 2959 | fi
|
---|
| 2960 | fi
|
---|
| 2961 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 2962 | if test -n "$JAVAC"; then
|
---|
[24901] | 2963 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 2964 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 2965 | else
|
---|
[24901] | 2966 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2967 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 2968 | fi
|
---|
| 2969 |
|
---|
| 2970 | test -n "$JAVAC" && break
|
---|
| 2971 | done
|
---|
| 2972 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 2973 |
|
---|
| 2974 | fi
|
---|
[24901] | 2975 | test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
|
---|
| 2976 | echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
|
---|
| 2977 | { (exit 1); exit 1; }; }
|
---|
[23356] | 2978 | else
|
---|
| 2979 | echo "Checking for javac... $JAVAC"
|
---|
| 2980 | fi
|
---|
| 2981 |
|
---|
| 2982 |
|
---|
| 2983 |
|
---|
[24901] | 2984 | echo "$as_me:$LINENO: checking if $JAVAC works" >&5
|
---|
| 2985 | echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
|
---|
| 2986 | if test "${ac_cv_prog_javac_works+set}" = set; then
|
---|
| 2987 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 2988 | else
|
---|
| 2989 |
|
---|
| 2990 | JAVA_TEST=Test.java
|
---|
| 2991 | CLASS_TEST=Test.class
|
---|
| 2992 | cat << \EOF > $JAVA_TEST
|
---|
[24901] | 2993 | /* #line 2993 "configure" */
|
---|
[23356] | 2994 | public class Test {
|
---|
[16568] | 2995 | }
|
---|
[23356] | 2996 | EOF
|
---|
| 2997 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[24901] | 2998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 2999 | (eval $ac_try) 2>&5
|
---|
| 3000 | ac_status=$?
|
---|
[24901] | 3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3002 | (exit $ac_status); }; } >/dev/null 2>&1; then
|
---|
[23356] | 3003 | ac_cv_prog_javac_works=yes
|
---|
| 3004 | else
|
---|
[24901] | 3005 | { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3006 | echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3007 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3008 | echo "configure: failed program was:" >&5
|
---|
| 3009 | cat $JAVA_TEST >&5
|
---|
| 3010 | fi
|
---|
| 3011 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 3012 |
|
---|
| 3013 | fi
|
---|
[24901] | 3014 | echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
|
---|
| 3015 | echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
|
---|
[23356] | 3016 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 3017 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 3018 | fi
|
---|
| 3019 |
|
---|
| 3020 |
|
---|
| 3021 |
|
---|
| 3022 |
|
---|
| 3023 | if test "x$JAVA" = x ; then
|
---|
| 3024 | if test x$JAVAPREFIX = x; then
|
---|
| 3025 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3026 | do
|
---|
| 3027 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3028 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3029 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3031 | if test "${ac_cv_prog_JAVA+set}" = set; then
|
---|
| 3032 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3033 | else
|
---|
| 3034 | if test -n "$JAVA"; then
|
---|
| 3035 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3036 | else
|
---|
| 3037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3038 | for as_dir in $PATH
|
---|
| 3039 | do
|
---|
| 3040 | IFS=$as_save_IFS
|
---|
| 3041 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3042 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3043 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3044 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[24901] | 3045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3046 | break 2
|
---|
| 3047 | fi
|
---|
| 3048 | done
|
---|
[24901] | 3049 | done
|
---|
[23356] | 3050 |
|
---|
| 3051 | fi
|
---|
| 3052 | fi
|
---|
| 3053 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3054 | if test -n "$JAVA"; then
|
---|
[24901] | 3055 | echo "$as_me:$LINENO: result: $JAVA" >&5
|
---|
| 3056 | echo "${ECHO_T}$JAVA" >&6
|
---|
[23356] | 3057 | else
|
---|
[24901] | 3058 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3059 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3060 | fi
|
---|
| 3061 |
|
---|
| 3062 | test -n "$JAVA" && break
|
---|
| 3063 | done
|
---|
| 3064 |
|
---|
| 3065 | else
|
---|
| 3066 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3067 | do
|
---|
| 3068 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3069 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3070 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3071 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3072 | if test "${ac_cv_prog_JAVA+set}" = set; then
|
---|
| 3073 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3074 | else
|
---|
| 3075 | if test -n "$JAVA"; then
|
---|
| 3076 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3077 | else
|
---|
| 3078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3079 | for as_dir in $PATH
|
---|
| 3080 | do
|
---|
| 3081 | IFS=$as_save_IFS
|
---|
| 3082 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3083 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3084 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3085 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[24901] | 3086 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3087 | break 2
|
---|
| 3088 | fi
|
---|
| 3089 | done
|
---|
[24901] | 3090 | done
|
---|
[23356] | 3091 |
|
---|
| 3092 | fi
|
---|
| 3093 | fi
|
---|
| 3094 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3095 | if test -n "$JAVA"; then
|
---|
[24901] | 3096 | echo "$as_me:$LINENO: result: $JAVA" >&5
|
---|
| 3097 | echo "${ECHO_T}$JAVA" >&6
|
---|
[23356] | 3098 | else
|
---|
[24901] | 3099 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3100 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3101 | fi
|
---|
| 3102 |
|
---|
| 3103 | test -n "$JAVA" && break
|
---|
| 3104 | done
|
---|
| 3105 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
| 3106 |
|
---|
| 3107 | fi
|
---|
[24901] | 3108 | test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
|
---|
| 3109 | echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
|
---|
| 3110 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3111 | fi
|
---|
| 3112 |
|
---|
| 3113 |
|
---|
| 3114 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
| 3115 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
[24901] | 3116 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3118 | if test "${ac_cv_prog_uudecode+set}" = set; then
|
---|
| 3119 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3120 | else
|
---|
| 3121 | if test -n "$uudecode"; then
|
---|
| 3122 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
| 3123 | else
|
---|
| 3124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3125 | for as_dir in $PATH
|
---|
| 3126 | do
|
---|
| 3127 | IFS=$as_save_IFS
|
---|
| 3128 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3129 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3131 | ac_cv_prog_uudecode="yes"
|
---|
[24901] | 3132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3133 | break 2
|
---|
| 3134 | fi
|
---|
| 3135 | done
|
---|
[24901] | 3136 | done
|
---|
[23356] | 3137 |
|
---|
| 3138 | fi
|
---|
| 3139 | fi
|
---|
| 3140 | uudecode=$ac_cv_prog_uudecode
|
---|
| 3141 | if test -n "$uudecode"; then
|
---|
[24901] | 3142 | echo "$as_me:$LINENO: result: $uudecode" >&5
|
---|
| 3143 | echo "${ECHO_T}$uudecode" >&6
|
---|
[23356] | 3144 | else
|
---|
[24901] | 3145 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3146 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3147 | fi
|
---|
| 3148 |
|
---|
| 3149 | if test x$uudecode = xyes; then
|
---|
[24901] | 3150 | echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
|
---|
| 3151 | echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6
|
---|
| 3152 | if test "${ac_cv_prog_uudecode_base64+set}" = set; then
|
---|
| 3153 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3154 | else
|
---|
| 3155 |
|
---|
| 3156 | cat << \EOF > Test.uue
|
---|
| 3157 | begin-base64 644 Test.class
|
---|
| 3158 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
| 3159 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
| 3160 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
| 3161 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
| 3162 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
| 3163 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
| 3164 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
| 3165 | ====
|
---|
| 3166 | EOF
|
---|
| 3167 | if uudecode$EXEEXT Test.uue; then
|
---|
| 3168 | ac_cv_prog_uudecode_base64=yes
|
---|
| 3169 | else
|
---|
[24901] | 3170 | echo "configure: 3170: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
[23356] | 3171 | echo "configure: failed file was:" >&5
|
---|
| 3172 | cat Test.uue >&5
|
---|
| 3173 | ac_cv_prog_uudecode_base64=no
|
---|
| 3174 | fi
|
---|
| 3175 | rm -f Test.uue
|
---|
| 3176 | fi
|
---|
[24901] | 3177 | echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
| 3178 | echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6
|
---|
[23356] | 3179 | fi
|
---|
| 3180 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 3181 | rm -f Test.class
|
---|
[24901] | 3182 | { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
|
---|
| 3183 | echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
[23356] | 3184 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
[24901] | 3185 | { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
|
---|
| 3186 | echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
|
---|
| 3187 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3188 | fi
|
---|
| 3189 | if test x$ac_cv_prog_javac_works = x; then
|
---|
| 3190 |
|
---|
| 3191 | if test "x$JAVAC" = x ; then
|
---|
| 3192 | if test "x$JAVAPREFIX" = x; then
|
---|
| 3193 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 3194 | do
|
---|
| 3195 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3196 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3197 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3199 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 3200 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3201 | else
|
---|
| 3202 | if test -n "$JAVAC"; then
|
---|
| 3203 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 3204 | else
|
---|
| 3205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3206 | for as_dir in $PATH
|
---|
| 3207 | do
|
---|
| 3208 | IFS=$as_save_IFS
|
---|
| 3209 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3210 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3211 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3212 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 3213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3214 | break 2
|
---|
| 3215 | fi
|
---|
| 3216 | done
|
---|
[24901] | 3217 | done
|
---|
[23356] | 3218 |
|
---|
| 3219 | fi
|
---|
| 3220 | fi
|
---|
| 3221 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 3222 | if test -n "$JAVAC"; then
|
---|
[24901] | 3223 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 3224 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 3225 | else
|
---|
[24901] | 3226 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3227 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3228 | fi
|
---|
| 3229 |
|
---|
| 3230 | test -n "$JAVAC" && break
|
---|
| 3231 | done
|
---|
| 3232 |
|
---|
| 3233 | else
|
---|
| 3234 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 3235 | do
|
---|
| 3236 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3237 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3238 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3239 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3240 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 3241 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3242 | else
|
---|
| 3243 | if test -n "$JAVAC"; then
|
---|
| 3244 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 3245 | else
|
---|
| 3246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3247 | for as_dir in $PATH
|
---|
| 3248 | do
|
---|
| 3249 | IFS=$as_save_IFS
|
---|
| 3250 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3251 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3252 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3253 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 3254 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3255 | break 2
|
---|
| 3256 | fi
|
---|
| 3257 | done
|
---|
[24901] | 3258 | done
|
---|
[23356] | 3259 |
|
---|
| 3260 | fi
|
---|
| 3261 | fi
|
---|
| 3262 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 3263 | if test -n "$JAVAC"; then
|
---|
[24901] | 3264 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 3265 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 3266 | else
|
---|
[24901] | 3267 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3268 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3269 | fi
|
---|
| 3270 |
|
---|
| 3271 | test -n "$JAVAC" && break
|
---|
| 3272 | done
|
---|
| 3273 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 3274 |
|
---|
| 3275 | fi
|
---|
[24901] | 3276 | test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
|
---|
| 3277 | echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
|
---|
| 3278 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3279 | else
|
---|
| 3280 | echo "Checking for javac... $JAVAC"
|
---|
| 3281 | fi
|
---|
| 3282 |
|
---|
| 3283 |
|
---|
| 3284 |
|
---|
[24901] | 3285 | echo "$as_me:$LINENO: checking if $JAVAC works" >&5
|
---|
| 3286 | echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
|
---|
| 3287 | if test "${ac_cv_prog_javac_works+set}" = set; then
|
---|
| 3288 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3289 | else
|
---|
| 3290 |
|
---|
| 3291 | JAVA_TEST=Test.java
|
---|
| 3292 | CLASS_TEST=Test.class
|
---|
| 3293 | cat << \EOF > $JAVA_TEST
|
---|
[24901] | 3294 | /* #line 3294 "configure" */
|
---|
[23356] | 3295 | public class Test {
|
---|
| 3296 | }
|
---|
| 3297 | EOF
|
---|
| 3298 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[24901] | 3299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 3300 | (eval $ac_try) 2>&5
|
---|
| 3301 | ac_status=$?
|
---|
[24901] | 3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3303 | (exit $ac_status); }; } >/dev/null 2>&1; then
|
---|
[23356] | 3304 | ac_cv_prog_javac_works=yes
|
---|
[16568] | 3305 | else
|
---|
[24901] | 3306 | { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3307 | echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3308 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3309 | echo "configure: failed program was:" >&5
|
---|
| 3310 | cat $JAVA_TEST >&5
|
---|
| 3311 | fi
|
---|
| 3312 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
[16568] | 3313 |
|
---|
[20854] | 3314 | fi
|
---|
[24901] | 3315 | echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
|
---|
| 3316 | echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
|
---|
[23356] | 3317 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 3318 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 3319 | fi
|
---|
| 3320 |
|
---|
| 3321 |
|
---|
| 3322 |
|
---|
| 3323 | fi
|
---|
| 3324 | fi
|
---|
[24901] | 3325 | echo "$as_me:$LINENO: checking if $JAVA works" >&5
|
---|
| 3326 | echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6
|
---|
| 3327 | if test "${ac_cv_prog_java_works+set}" = set; then
|
---|
| 3328 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3329 | else
|
---|
| 3330 |
|
---|
| 3331 | JAVA_TEST=Test.java
|
---|
| 3332 | CLASS_TEST=Test.class
|
---|
| 3333 | TEST=Test
|
---|
| 3334 | cat << \EOF > $JAVA_TEST
|
---|
[24901] | 3335 | /* [#]line 3335 "configure" */
|
---|
[23356] | 3336 | public class Test {
|
---|
| 3337 | public static void main (String args[]) {
|
---|
| 3338 | System.exit (0);
|
---|
| 3339 | } }
|
---|
| 3340 | EOF
|
---|
| 3341 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 3342 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[24901] | 3343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 3344 | (eval $ac_try) 2>&5
|
---|
| 3345 | ac_status=$?
|
---|
[24901] | 3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3347 | (exit $ac_status); }; } && test -s $CLASS_TEST; then
|
---|
[23356] | 3348 | :
|
---|
| 3349 | else
|
---|
| 3350 | echo "configure: failed program was:" >&5
|
---|
| 3351 | cat $JAVA_TEST >&5
|
---|
[24901] | 3352 | { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3353 | echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3354 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3355 | fi
|
---|
| 3356 | fi
|
---|
| 3357 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
[24901] | 3358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 3359 | (eval $ac_try) 2>&5
|
---|
| 3360 | ac_status=$?
|
---|
[24901] | 3361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3362 | (exit $ac_status); }; } >/dev/null 2>&1; then
|
---|
[23356] | 3363 | ac_cv_prog_java_works=yes
|
---|
[16568] | 3364 | else
|
---|
[23356] | 3365 | echo "configure: failed program was:" >&5
|
---|
| 3366 | cat $JAVA_TEST >&5
|
---|
[24901] | 3367 | { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3368 | echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3369 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3370 | fi
|
---|
| 3371 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
[16568] | 3372 |
|
---|
| 3373 | fi
|
---|
[24901] | 3374 | echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
|
---|
| 3375 | echo "${ECHO_T}$ac_cv_prog_java_works" >&6
|
---|
[16568] | 3376 |
|
---|
| 3377 |
|
---|
[23356] | 3378 |
|
---|
| 3379 | fi
|
---|
[16568] | 3380 | for ac_prog in gawk mawk nawk awk
|
---|
| 3381 | do
|
---|
| 3382 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3383 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3384 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3386 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 3387 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3388 | else
|
---|
| 3389 | if test -n "$AWK"; then
|
---|
| 3390 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3391 | else
|
---|
| 3392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3393 | for as_dir in $PATH
|
---|
| 3394 | do
|
---|
| 3395 | IFS=$as_save_IFS
|
---|
| 3396 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3397 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3399 | ac_cv_prog_AWK="$ac_prog"
|
---|
[24901] | 3400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3401 | break 2
|
---|
| 3402 | fi
|
---|
| 3403 | done
|
---|
[24901] | 3404 | done
|
---|
[16568] | 3405 |
|
---|
| 3406 | fi
|
---|
| 3407 | fi
|
---|
| 3408 | AWK=$ac_cv_prog_AWK
|
---|
| 3409 | if test -n "$AWK"; then
|
---|
[24901] | 3410 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 3411 | echo "${ECHO_T}$AWK" >&6
|
---|
[16568] | 3412 | else
|
---|
[24901] | 3413 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3414 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3415 | fi
|
---|
| 3416 |
|
---|
| 3417 | test -n "$AWK" && break
|
---|
| 3418 | done
|
---|
| 3419 |
|
---|
| 3420 | for ac_prog in 'bison -y' byacc
|
---|
| 3421 | do
|
---|
| 3422 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3423 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3424 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3426 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 3427 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3428 | else
|
---|
| 3429 | if test -n "$YACC"; then
|
---|
| 3430 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3431 | else
|
---|
| 3432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3433 | for as_dir in $PATH
|
---|
| 3434 | do
|
---|
| 3435 | IFS=$as_save_IFS
|
---|
| 3436 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3437 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3438 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3439 | ac_cv_prog_YACC="$ac_prog"
|
---|
[24901] | 3440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3441 | break 2
|
---|
| 3442 | fi
|
---|
| 3443 | done
|
---|
[24901] | 3444 | done
|
---|
[16568] | 3445 |
|
---|
| 3446 | fi
|
---|
| 3447 | fi
|
---|
| 3448 | YACC=$ac_cv_prog_YACC
|
---|
| 3449 | if test -n "$YACC"; then
|
---|
[24901] | 3450 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 3451 | echo "${ECHO_T}$YACC" >&6
|
---|
[16568] | 3452 | else
|
---|
[24901] | 3453 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3454 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3455 | fi
|
---|
| 3456 |
|
---|
| 3457 | test -n "$YACC" && break
|
---|
| 3458 | done
|
---|
| 3459 | test -n "$YACC" || YACC="yacc"
|
---|
| 3460 |
|
---|
| 3461 | ac_aux_dir=
|
---|
[24901] | 3462 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 3463 | if test -f $ac_dir/install-sh; then
|
---|
[16568] | 3464 | ac_aux_dir=$ac_dir
|
---|
| 3465 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 3466 | break
|
---|
[24901] | 3467 | elif test -f $ac_dir/install.sh; then
|
---|
[16568] | 3468 | ac_aux_dir=$ac_dir
|
---|
| 3469 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 3470 | break
|
---|
[24901] | 3471 | elif test -f $ac_dir/shtool; then
|
---|
[16568] | 3472 | ac_aux_dir=$ac_dir
|
---|
| 3473 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 3474 | break
|
---|
| 3475 | fi
|
---|
| 3476 | done
|
---|
| 3477 | if test -z "$ac_aux_dir"; then
|
---|
[24901] | 3478 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 3479 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 3480 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3481 | fi
|
---|
[24901] | 3482 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 3483 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 3484 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[16568] | 3485 |
|
---|
| 3486 | # Make sure we can run config.sub.
|
---|
[24901] | 3487 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 3488 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 3489 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 3490 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3491 |
|
---|
[24901] | 3492 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 3493 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 3494 | if test "${ac_cv_build+set}" = set; then
|
---|
| 3495 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3496 | else
|
---|
[24901] | 3497 | ac_cv_build_alias=$build_alias
|
---|
| 3498 | test -z "$ac_cv_build_alias" &&
|
---|
| 3499 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 3500 | test -z "$ac_cv_build_alias" &&
|
---|
| 3501 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 3502 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 3503 | { (exit 1); exit 1; }; }
|
---|
| 3504 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 3505 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 3506 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 3507 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3508 |
|
---|
| 3509 | fi
|
---|
[24901] | 3510 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 3511 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
[16568] | 3512 | build=$ac_cv_build
|
---|
[24901] | 3513 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3514 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3515 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16568] | 3516 |
|
---|
| 3517 |
|
---|
[24901] | 3518 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 3519 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 3520 | if test "${ac_cv_host+set}" = set; then
|
---|
| 3521 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3522 | else
|
---|
[24901] | 3523 | ac_cv_host_alias=$host_alias
|
---|
| 3524 | test -z "$ac_cv_host_alias" &&
|
---|
| 3525 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 3526 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 3527 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 3528 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 3529 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3530 |
|
---|
| 3531 | fi
|
---|
[24901] | 3532 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 3533 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
[16568] | 3534 | host=$ac_cv_host
|
---|
[24901] | 3535 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3536 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3537 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16568] | 3538 |
|
---|
| 3539 |
|
---|
[24901] | 3540 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 3541 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 3542 | if test "${ac_cv_target+set}" = set; then
|
---|
| 3543 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3544 | else
|
---|
[24901] | 3545 | ac_cv_target_alias=$target_alias
|
---|
| 3546 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 3547 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 3548 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 3549 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 3550 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 3551 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3552 |
|
---|
| 3553 | fi
|
---|
[24901] | 3554 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 3555 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
[16568] | 3556 | target=$ac_cv_target
|
---|
[24901] | 3557 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3558 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3559 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16568] | 3560 |
|
---|
| 3561 |
|
---|
| 3562 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3563 | # will get canonicalized.
|
---|
| 3564 | test -n "$target_alias" &&
|
---|
| 3565 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3566 | NONENONEs,x,x, &&
|
---|
| 3567 | program_prefix=${target_alias}-
|
---|
| 3568 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3569 | # so one script is as good as another. But avoid the broken or
|
---|
| 3570 | # incompatible versions:
|
---|
| 3571 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3572 | # SunOS /usr/etc/install
|
---|
| 3573 | # IRIX /sbin/install
|
---|
| 3574 | # AIX /bin/install
|
---|
| 3575 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 3576 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3577 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3578 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 3579 | # OS/2's system install, which has a completely different semantic
|
---|
| 3580 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[24901] | 3581 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3582 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[16568] | 3583 | if test -z "$INSTALL"; then
|
---|
[24901] | 3584 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3585 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3586 | else
|
---|
| 3587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3588 | for as_dir in $PATH
|
---|
| 3589 | do
|
---|
| 3590 | IFS=$as_save_IFS
|
---|
| 3591 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3592 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3593 | case $as_dir/ in
|
---|
| 3594 | ./ | .// | /cC/* | \
|
---|
[16568] | 3595 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[24901] | 3596 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
[16568] | 3597 | /usr/ucb/* ) ;;
|
---|
| 3598 | *)
|
---|
| 3599 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3600 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3601 | # by default.
|
---|
| 3602 | for ac_prog in ginstall scoinst install; do
|
---|
| 3603 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[24901] | 3604 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[16568] | 3605 | if test $ac_prog = install &&
|
---|
| 3606 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3607 | # AIX install. It has an incompatible calling convention.
|
---|
| 3608 | :
|
---|
| 3609 | elif test $ac_prog = install &&
|
---|
| 3610 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3611 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3612 | :
|
---|
| 3613 | else
|
---|
[24901] | 3614 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3615 | break 3
|
---|
[16568] | 3616 | fi
|
---|
| 3617 | fi
|
---|
| 3618 | done
|
---|
| 3619 | done
|
---|
| 3620 | ;;
|
---|
| 3621 | esac
|
---|
[24901] | 3622 | done
|
---|
[16568] | 3623 |
|
---|
| 3624 |
|
---|
| 3625 | fi
|
---|
| 3626 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3627 | INSTALL=$ac_cv_path_install
|
---|
| 3628 | else
|
---|
[24901] | 3629 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 3630 | # path for INSTALL within a source directory, because that will
|
---|
[16568] | 3631 | # break other packages using the cache if that directory is
|
---|
[24901] | 3632 | # removed, or if the path is relative.
|
---|
[16568] | 3633 | INSTALL=$ac_install_sh
|
---|
| 3634 | fi
|
---|
| 3635 | fi
|
---|
[24901] | 3636 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3637 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[16568] | 3638 |
|
---|
| 3639 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3640 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3641 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3642 |
|
---|
| 3643 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3644 |
|
---|
| 3645 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3646 |
|
---|
[24901] | 3647 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3648 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
[16568] | 3649 | LN_S=$as_ln_s
|
---|
| 3650 | if test "$LN_S" = "ln -s"; then
|
---|
[24901] | 3651 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3652 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 3653 | else
|
---|
[24901] | 3654 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3655 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[16568] | 3656 | fi
|
---|
| 3657 |
|
---|
[24901] | 3658 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3659 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3660 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3661 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 3662 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3663 | else
|
---|
| 3664 | cat >conftest.make <<\_ACEOF
|
---|
| 3665 | all:
|
---|
[24901] | 3666 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
[16568] | 3667 | _ACEOF
|
---|
[24901] | 3668 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 3669 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 3670 | if test -n "$ac_maketemp"; then
|
---|
| 3671 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3672 | else
|
---|
| 3673 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3674 | fi
|
---|
[16568] | 3675 | rm -f conftest.make
|
---|
| 3676 | fi
|
---|
[24901] | 3677 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 3678 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3679 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 3680 | SET_MAKE=
|
---|
| 3681 | else
|
---|
[24901] | 3682 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3683 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3684 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3685 | fi
|
---|
| 3686 |
|
---|
| 3687 | if test -n "$ac_tool_prefix"; then
|
---|
| 3688 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3689 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[24901] | 3690 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3692 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3693 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3694 | else
|
---|
| 3695 | if test -n "$RANLIB"; then
|
---|
| 3696 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3697 | else
|
---|
| 3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3699 | for as_dir in $PATH
|
---|
| 3700 | do
|
---|
| 3701 | IFS=$as_save_IFS
|
---|
| 3702 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3703 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3705 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[24901] | 3706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3707 | break 2
|
---|
| 3708 | fi
|
---|
| 3709 | done
|
---|
[24901] | 3710 | done
|
---|
[16568] | 3711 |
|
---|
| 3712 | fi
|
---|
| 3713 | fi
|
---|
| 3714 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3715 | if test -n "$RANLIB"; then
|
---|
[24901] | 3716 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3717 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[16568] | 3718 | else
|
---|
[24901] | 3719 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3720 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3721 | fi
|
---|
| 3722 |
|
---|
| 3723 | fi
|
---|
| 3724 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3725 | ac_ct_RANLIB=$RANLIB
|
---|
| 3726 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3727 | set dummy ranlib; ac_word=$2
|
---|
[24901] | 3728 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3730 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3731 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3732 | else
|
---|
| 3733 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3734 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3735 | else
|
---|
| 3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3737 | for as_dir in $PATH
|
---|
| 3738 | do
|
---|
| 3739 | IFS=$as_save_IFS
|
---|
| 3740 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3741 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3743 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[24901] | 3744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3745 | break 2
|
---|
| 3746 | fi
|
---|
| 3747 | done
|
---|
[24901] | 3748 | done
|
---|
[16568] | 3749 |
|
---|
[24901] | 3750 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
[16568] | 3751 | fi
|
---|
| 3752 | fi
|
---|
| 3753 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3754 | if test -n "$ac_ct_RANLIB"; then
|
---|
[24901] | 3755 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3756 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
[16568] | 3757 | else
|
---|
[24901] | 3758 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3759 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3760 | fi
|
---|
| 3761 |
|
---|
[24901] | 3762 | RANLIB=$ac_ct_RANLIB
|
---|
[16568] | 3763 | else
|
---|
| 3764 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3765 | fi
|
---|
| 3766 |
|
---|
| 3767 |
|
---|
[24901] | 3768 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3769 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
[16568] | 3770 | arch_64bit=no
|
---|
| 3771 | case "$host_cpu" in
|
---|
| 3772 | x86_64) arch_64bit=yes ;;
|
---|
| 3773 | esac
|
---|
| 3774 |
|
---|
| 3775 | if test "$arch_64bit" = yes; then
|
---|
[24901] | 3776 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3777 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 3778 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3779 | COMPAT32BITFLAGS="-m32"
|
---|
[24901] | 3780 | gsdlarch='64'
|
---|
[16568] | 3781 | fi
|
---|
| 3782 | else
|
---|
[24901] | 3783 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3784 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3785 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3786 | COMPAT32BITFLAGS=
|
---|
[24901] | 3787 | gsdlarch='32'
|
---|
[16568] | 3788 | fi
|
---|
| 3789 | fi
|
---|
[21432] | 3790 |
|
---|
| 3791 | # Only need compat32bitflag if using MG or MGPP
|
---|
| 3792 | if test "$ENABLE_MG" = "0" ; then
|
---|
| 3793 | COMPAT32BITFLAGS=
|
---|
| 3794 | else
|
---|
| 3795 | if test "$ENABLE_MGPP" = "0" ; then
|
---|
| 3796 | COMPAT32BITFLAGS=
|
---|
| 3797 | fi
|
---|
| 3798 | fi
|
---|
| 3799 |
|
---|
[16568] | 3800 | export COMPAT32BITFLAGS
|
---|
| 3801 |
|
---|
| 3802 |
|
---|
| 3803 |
|
---|
| 3804 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3805 | if test $USE_CORBA = 1; then
|
---|
| 3806 |
|
---|
| 3807 | if test $MICO_DIR = "default"; then
|
---|
| 3808 | #do something
|
---|
| 3809 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3810 | else
|
---|
| 3811 | #build the micotest program
|
---|
| 3812 | MICO_INC= ""
|
---|
| 3813 | if test $MICO_DIR != yes; then
|
---|
| 3814 | MICO_INC="-I $MICO_DIR"
|
---|
| 3815 | fi
|
---|
| 3816 | fi
|
---|
| 3817 |
|
---|
| 3818 | #get MICO_VER value
|
---|
| 3819 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3820 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
| 3821 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
| 3822 | sh -c "rm micotest"
|
---|
| 3823 | sh -c "rm micotest.o"
|
---|
| 3824 |
|
---|
| 3825 | #do test of MICO_VER
|
---|
| 3826 | if test MICO_VER != 0; then
|
---|
[24901] | 3827 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3828 | #define MICO_VER 1
|
---|
| 3829 | _ACEOF
|
---|
[16568] | 3830 |
|
---|
| 3831 |
|
---|
| 3832 | fi
|
---|
| 3833 | #end USE_CORBA test
|
---|
| 3834 | fi
|
---|
| 3835 |
|
---|
| 3836 |
|
---|
| 3837 | ac_ext=c
|
---|
| 3838 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3839 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3840 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3841 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[24901] | 3842 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3843 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[16568] | 3844 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3845 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3846 | CPP=
|
---|
| 3847 | fi
|
---|
| 3848 | if test -z "$CPP"; then
|
---|
[24901] | 3849 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3850 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3851 | else
|
---|
| 3852 | # Double quotes because CPP needs to be expanded
|
---|
| 3853 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3854 | do
|
---|
| 3855 | ac_preproc_ok=false
|
---|
| 3856 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3857 | do
|
---|
| 3858 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3859 | # with a fresh cross-compiler works.
|
---|
| 3860 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3861 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3862 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3863 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[24901] | 3864 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3865 | /* confdefs.h. */
|
---|
| 3866 | _ACEOF
|
---|
| 3867 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3868 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 3869 | /* end confdefs.h. */
|
---|
| 3870 | #ifdef __STDC__
|
---|
| 3871 | # include <limits.h>
|
---|
| 3872 | #else
|
---|
| 3873 | # include <assert.h>
|
---|
| 3874 | #endif
|
---|
| 3875 | Syntax error
|
---|
| 3876 | _ACEOF
|
---|
[24901] | 3877 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3878 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3879 | ac_status=$?
|
---|
| 3880 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3881 | rm -f conftest.er1
|
---|
| 3882 | cat conftest.err >&5
|
---|
| 3883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3884 | (exit $ac_status); } >/dev/null; then
|
---|
| 3885 | if test -s conftest.err; then
|
---|
| 3886 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3887 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3888 | else
|
---|
| 3889 | ac_cpp_err=
|
---|
| 3890 | fi
|
---|
| 3891 | else
|
---|
| 3892 | ac_cpp_err=yes
|
---|
| 3893 | fi
|
---|
| 3894 | if test -z "$ac_cpp_err"; then
|
---|
| 3895 | :
|
---|
| 3896 | else
|
---|
| 3897 | echo "$as_me: failed program was:" >&5
|
---|
| 3898 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 3899 |
|
---|
[16568] | 3900 | # Broken: fails on valid input.
|
---|
| 3901 | continue
|
---|
| 3902 | fi
|
---|
[24901] | 3903 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 3904 |
|
---|
[24901] | 3905 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16568] | 3906 | # can be detected and how.
|
---|
[24901] | 3907 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3908 | /* confdefs.h. */
|
---|
| 3909 | _ACEOF
|
---|
| 3910 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3911 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 3912 | /* end confdefs.h. */
|
---|
| 3913 | #include <ac_nonexistent.h>
|
---|
| 3914 | _ACEOF
|
---|
[24901] | 3915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3917 | ac_status=$?
|
---|
| 3918 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3919 | rm -f conftest.er1
|
---|
| 3920 | cat conftest.err >&5
|
---|
| 3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3922 | (exit $ac_status); } >/dev/null; then
|
---|
| 3923 | if test -s conftest.err; then
|
---|
| 3924 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3925 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3926 | else
|
---|
| 3927 | ac_cpp_err=
|
---|
| 3928 | fi
|
---|
| 3929 | else
|
---|
| 3930 | ac_cpp_err=yes
|
---|
| 3931 | fi
|
---|
| 3932 | if test -z "$ac_cpp_err"; then
|
---|
[16568] | 3933 | # Broken: success on invalid input.
|
---|
| 3934 | continue
|
---|
| 3935 | else
|
---|
[24901] | 3936 | echo "$as_me: failed program was:" >&5
|
---|
| 3937 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3938 |
|
---|
[16568] | 3939 | # Passes both tests.
|
---|
| 3940 | ac_preproc_ok=:
|
---|
| 3941 | break
|
---|
| 3942 | fi
|
---|
[24901] | 3943 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 3944 |
|
---|
| 3945 | done
|
---|
| 3946 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[24901] | 3947 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3948 | if $ac_preproc_ok; then
|
---|
[16568] | 3949 | break
|
---|
| 3950 | fi
|
---|
| 3951 |
|
---|
| 3952 | done
|
---|
| 3953 | ac_cv_prog_CPP=$CPP
|
---|
| 3954 |
|
---|
| 3955 | fi
|
---|
| 3956 | CPP=$ac_cv_prog_CPP
|
---|
| 3957 | else
|
---|
| 3958 | ac_cv_prog_CPP=$CPP
|
---|
| 3959 | fi
|
---|
[24901] | 3960 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3961 | echo "${ECHO_T}$CPP" >&6
|
---|
[16568] | 3962 | ac_preproc_ok=false
|
---|
| 3963 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3964 | do
|
---|
| 3965 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3966 | # with a fresh cross-compiler works.
|
---|
| 3967 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3968 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3969 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3970 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[24901] | 3971 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3972 | /* confdefs.h. */
|
---|
| 3973 | _ACEOF
|
---|
| 3974 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3975 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 3976 | /* end confdefs.h. */
|
---|
| 3977 | #ifdef __STDC__
|
---|
| 3978 | # include <limits.h>
|
---|
| 3979 | #else
|
---|
| 3980 | # include <assert.h>
|
---|
| 3981 | #endif
|
---|
| 3982 | Syntax error
|
---|
| 3983 | _ACEOF
|
---|
[24901] | 3984 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3985 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3986 | ac_status=$?
|
---|
| 3987 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3988 | rm -f conftest.er1
|
---|
| 3989 | cat conftest.err >&5
|
---|
| 3990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3991 | (exit $ac_status); } >/dev/null; then
|
---|
| 3992 | if test -s conftest.err; then
|
---|
| 3993 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3994 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3995 | else
|
---|
| 3996 | ac_cpp_err=
|
---|
| 3997 | fi
|
---|
| 3998 | else
|
---|
| 3999 | ac_cpp_err=yes
|
---|
| 4000 | fi
|
---|
| 4001 | if test -z "$ac_cpp_err"; then
|
---|
| 4002 | :
|
---|
| 4003 | else
|
---|
| 4004 | echo "$as_me: failed program was:" >&5
|
---|
| 4005 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 4006 |
|
---|
[16568] | 4007 | # Broken: fails on valid input.
|
---|
| 4008 | continue
|
---|
| 4009 | fi
|
---|
[24901] | 4010 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 4011 |
|
---|
[24901] | 4012 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16568] | 4013 | # can be detected and how.
|
---|
[24901] | 4014 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4015 | /* confdefs.h. */
|
---|
| 4016 | _ACEOF
|
---|
| 4017 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4018 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4019 | /* end confdefs.h. */
|
---|
| 4020 | #include <ac_nonexistent.h>
|
---|
| 4021 | _ACEOF
|
---|
[24901] | 4022 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 4023 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 4024 | ac_status=$?
|
---|
| 4025 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4026 | rm -f conftest.er1
|
---|
| 4027 | cat conftest.err >&5
|
---|
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4029 | (exit $ac_status); } >/dev/null; then
|
---|
| 4030 | if test -s conftest.err; then
|
---|
| 4031 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 4032 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 4033 | else
|
---|
| 4034 | ac_cpp_err=
|
---|
| 4035 | fi
|
---|
| 4036 | else
|
---|
| 4037 | ac_cpp_err=yes
|
---|
| 4038 | fi
|
---|
| 4039 | if test -z "$ac_cpp_err"; then
|
---|
[16568] | 4040 | # Broken: success on invalid input.
|
---|
| 4041 | continue
|
---|
| 4042 | else
|
---|
[24901] | 4043 | echo "$as_me: failed program was:" >&5
|
---|
| 4044 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4045 |
|
---|
[16568] | 4046 | # Passes both tests.
|
---|
| 4047 | ac_preproc_ok=:
|
---|
| 4048 | break
|
---|
| 4049 | fi
|
---|
[24901] | 4050 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 4051 |
|
---|
| 4052 | done
|
---|
| 4053 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[24901] | 4054 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4055 | if $ac_preproc_ok; then
|
---|
| 4056 | :
|
---|
[16568] | 4057 | else
|
---|
[24901] | 4058 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 4059 | See \`config.log' for more details." >&5
|
---|
| 4060 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 4061 | See \`config.log' for more details." >&2;}
|
---|
| 4062 | { (exit 1); exit 1; }; }
|
---|
[16568] | 4063 | fi
|
---|
| 4064 |
|
---|
| 4065 | ac_ext=c
|
---|
| 4066 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4067 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4068 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4069 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4070 |
|
---|
| 4071 |
|
---|
[24901] | 4072 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 4073 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 4074 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 4075 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4076 | else
|
---|
[24901] | 4077 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 4078 | then ac_cv_prog_egrep='grep -E'
|
---|
| 4079 | else ac_cv_prog_egrep='egrep'
|
---|
[16568] | 4080 | fi
|
---|
[24901] | 4081 | fi
|
---|
| 4082 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 4083 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 4084 | EGREP=$ac_cv_prog_egrep
|
---|
[16568] | 4085 |
|
---|
[24901] | 4086 |
|
---|
| 4087 |
|
---|
| 4088 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 4089 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 4090 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4091 | /* confdefs.h. */
|
---|
| 4092 | _ACEOF
|
---|
| 4093 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4094 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4095 | /* end confdefs.h. */
|
---|
| 4096 | #ifdef _AIX
|
---|
| 4097 | yes
|
---|
| 4098 | #endif
|
---|
| 4099 |
|
---|
| 4100 | _ACEOF
|
---|
| 4101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 4102 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 4103 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4104 | echo "${ECHO_T}yes" >&6
|
---|
| 4105 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4106 | #define _ALL_SOURCE 1
|
---|
| 4107 | _ACEOF
|
---|
| 4108 |
|
---|
[16568] | 4109 | else
|
---|
[24901] | 4110 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4111 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 4112 | fi
|
---|
[24901] | 4113 | rm -f conftest*
|
---|
[16568] | 4114 |
|
---|
| 4115 |
|
---|
[24901] | 4116 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 4117 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 4118 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4119 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4120 | else
|
---|
| 4121 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4122 | ac_cv_search_strerror=no
|
---|
| 4123 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4124 | /* confdefs.h. */
|
---|
| 4125 | _ACEOF
|
---|
| 4126 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4127 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4128 | /* end confdefs.h. */
|
---|
[16568] | 4129 |
|
---|
[24901] | 4130 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4131 | #ifdef __cplusplus
|
---|
| 4132 | extern "C"
|
---|
| 4133 | #endif
|
---|
| 4134 | /* We use char because int might match the return type of a gcc2
|
---|
| 4135 | builtin and then its argument prototype would still apply. */
|
---|
| 4136 | char strerror ();
|
---|
| 4137 | int
|
---|
| 4138 | main ()
|
---|
| 4139 | {
|
---|
| 4140 | strerror ();
|
---|
| 4141 | ;
|
---|
| 4142 | return 0;
|
---|
| 4143 | }
|
---|
| 4144 | _ACEOF
|
---|
| 4145 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4147 | (eval $ac_link) 2>conftest.er1
|
---|
| 4148 | ac_status=$?
|
---|
| 4149 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4150 | rm -f conftest.er1
|
---|
| 4151 | cat conftest.err >&5
|
---|
| 4152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4153 | (exit $ac_status); } &&
|
---|
| 4154 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4155 | || test ! -s conftest.err'
|
---|
| 4156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4157 | (eval $ac_try) 2>&5
|
---|
| 4158 | ac_status=$?
|
---|
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4160 | (exit $ac_status); }; } &&
|
---|
| 4161 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4163 | (eval $ac_try) 2>&5
|
---|
| 4164 | ac_status=$?
|
---|
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4166 | (exit $ac_status); }; }; then
|
---|
| 4167 | ac_cv_search_strerror="none required"
|
---|
[16568] | 4168 | else
|
---|
[24901] | 4169 | echo "$as_me: failed program was:" >&5
|
---|
| 4170 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4171 |
|
---|
[24901] | 4172 | fi
|
---|
| 4173 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4174 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4175 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 4176 | for ac_lib in cposix; do
|
---|
| 4177 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4178 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4179 | /* confdefs.h. */
|
---|
| 4180 | _ACEOF
|
---|
| 4181 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4182 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4183 | /* end confdefs.h. */
|
---|
| 4184 |
|
---|
| 4185 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4186 | #ifdef __cplusplus
|
---|
| 4187 | extern "C"
|
---|
| 4188 | #endif
|
---|
| 4189 | /* We use char because int might match the return type of a gcc2
|
---|
| 4190 | builtin and then its argument prototype would still apply. */
|
---|
| 4191 | char strerror ();
|
---|
| 4192 | int
|
---|
| 4193 | main ()
|
---|
| 4194 | {
|
---|
| 4195 | strerror ();
|
---|
| 4196 | ;
|
---|
| 4197 | return 0;
|
---|
| 4198 | }
|
---|
| 4199 | _ACEOF
|
---|
| 4200 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4202 | (eval $ac_link) 2>conftest.er1
|
---|
| 4203 | ac_status=$?
|
---|
| 4204 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4205 | rm -f conftest.er1
|
---|
| 4206 | cat conftest.err >&5
|
---|
| 4207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4208 | (exit $ac_status); } &&
|
---|
| 4209 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4210 | || test ! -s conftest.err'
|
---|
| 4211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4212 | (eval $ac_try) 2>&5
|
---|
| 4213 | ac_status=$?
|
---|
| 4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4215 | (exit $ac_status); }; } &&
|
---|
| 4216 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4218 | (eval $ac_try) 2>&5
|
---|
| 4219 | ac_status=$?
|
---|
| 4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4221 | (exit $ac_status); }; }; then
|
---|
| 4222 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 4223 | break
|
---|
[16568] | 4224 | else
|
---|
[24901] | 4225 | echo "$as_me: failed program was:" >&5
|
---|
| 4226 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4227 |
|
---|
[16568] | 4228 | fi
|
---|
[24901] | 4229 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4230 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4231 | done
|
---|
| 4232 | fi
|
---|
| 4233 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4234 | fi
|
---|
| 4235 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 4236 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 4237 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 4238 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
[16568] | 4239 |
|
---|
| 4240 | fi
|
---|
| 4241 |
|
---|
[24901] | 4242 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 4243 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4244 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4245 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4246 | else
|
---|
[24901] | 4247 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4248 | /* confdefs.h. */
|
---|
| 4249 | _ACEOF
|
---|
| 4250 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4251 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4252 | /* end confdefs.h. */
|
---|
| 4253 | #include <stdlib.h>
|
---|
| 4254 | #include <stdarg.h>
|
---|
| 4255 | #include <string.h>
|
---|
| 4256 | #include <float.h>
|
---|
| 4257 |
|
---|
| 4258 | int
|
---|
| 4259 | main ()
|
---|
| 4260 | {
|
---|
| 4261 |
|
---|
| 4262 | ;
|
---|
| 4263 | return 0;
|
---|
| 4264 | }
|
---|
| 4265 | _ACEOF
|
---|
[24901] | 4266 | rm -f conftest.$ac_objext
|
---|
| 4267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4268 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4269 | ac_status=$?
|
---|
| 4270 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4271 | rm -f conftest.er1
|
---|
| 4272 | cat conftest.err >&5
|
---|
| 4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4274 | (exit $ac_status); } &&
|
---|
| 4275 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4276 | || test ! -s conftest.err'
|
---|
| 4277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4278 | (eval $ac_try) 2>&5
|
---|
| 4279 | ac_status=$?
|
---|
| 4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4281 | (exit $ac_status); }; } &&
|
---|
| 4282 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4284 | (eval $ac_try) 2>&5
|
---|
| 4285 | ac_status=$?
|
---|
| 4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4287 | (exit $ac_status); }; }; then
|
---|
[16568] | 4288 | ac_cv_header_stdc=yes
|
---|
| 4289 | else
|
---|
[24901] | 4290 | echo "$as_me: failed program was:" >&5
|
---|
| 4291 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4292 |
|
---|
| 4293 | ac_cv_header_stdc=no
|
---|
[16568] | 4294 | fi
|
---|
[24901] | 4295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4296 |
|
---|
| 4297 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4298 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[24901] | 4299 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4300 | /* confdefs.h. */
|
---|
| 4301 | _ACEOF
|
---|
| 4302 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4303 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4304 | /* end confdefs.h. */
|
---|
| 4305 | #include <string.h>
|
---|
| 4306 |
|
---|
| 4307 | _ACEOF
|
---|
| 4308 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 4309 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 4310 | :
|
---|
[16568] | 4311 | else
|
---|
| 4312 | ac_cv_header_stdc=no
|
---|
| 4313 | fi
|
---|
| 4314 | rm -f conftest*
|
---|
| 4315 |
|
---|
| 4316 | fi
|
---|
| 4317 |
|
---|
| 4318 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4319 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[24901] | 4320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4321 | /* confdefs.h. */
|
---|
| 4322 | _ACEOF
|
---|
| 4323 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4325 | /* end confdefs.h. */
|
---|
| 4326 | #include <stdlib.h>
|
---|
| 4327 |
|
---|
| 4328 | _ACEOF
|
---|
| 4329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 4330 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 4331 | :
|
---|
[16568] | 4332 | else
|
---|
| 4333 | ac_cv_header_stdc=no
|
---|
| 4334 | fi
|
---|
| 4335 | rm -f conftest*
|
---|
| 4336 |
|
---|
| 4337 | fi
|
---|
| 4338 |
|
---|
| 4339 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4340 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[24901] | 4341 | if test "$cross_compiling" = yes; then
|
---|
[16568] | 4342 | :
|
---|
| 4343 | else
|
---|
[24901] | 4344 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4345 | /* confdefs.h. */
|
---|
| 4346 | _ACEOF
|
---|
| 4347 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4348 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4349 | /* end confdefs.h. */
|
---|
| 4350 | #include <ctype.h>
|
---|
| 4351 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4352 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4353 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4354 | #else
|
---|
| 4355 | # define ISLOWER(c) \
|
---|
| 4356 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4357 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4358 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4359 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4360 | #endif
|
---|
| 4361 |
|
---|
| 4362 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4363 | int
|
---|
| 4364 | main ()
|
---|
| 4365 | {
|
---|
| 4366 | int i;
|
---|
| 4367 | for (i = 0; i < 256; i++)
|
---|
| 4368 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4369 | || toupper (i) != TOUPPER (i))
|
---|
[24901] | 4370 | exit(2);
|
---|
| 4371 | exit (0);
|
---|
[16568] | 4372 | }
|
---|
| 4373 | _ACEOF
|
---|
[24901] | 4374 | rm -f conftest$ac_exeext
|
---|
| 4375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4376 | (eval $ac_link) 2>&5
|
---|
| 4377 | ac_status=$?
|
---|
| 4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 4380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4381 | (eval $ac_try) 2>&5
|
---|
| 4382 | ac_status=$?
|
---|
| 4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4384 | (exit $ac_status); }; }; then
|
---|
| 4385 | :
|
---|
| 4386 | else
|
---|
| 4387 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 4388 | echo "$as_me: failed program was:" >&5
|
---|
| 4389 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 4390 |
|
---|
[24901] | 4391 | ( exit $ac_status )
|
---|
| 4392 | ac_cv_header_stdc=no
|
---|
[16568] | 4393 | fi
|
---|
[24901] | 4394 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4395 | fi
|
---|
| 4396 | fi
|
---|
| 4397 | fi
|
---|
[24901] | 4398 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 4399 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16568] | 4400 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4401 |
|
---|
[24901] | 4402 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4403 | #define STDC_HEADERS 1
|
---|
| 4404 | _ACEOF
|
---|
[16568] | 4405 |
|
---|
| 4406 | fi
|
---|
| 4407 |
|
---|
| 4408 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 4409 |
|
---|
| 4410 |
|
---|
| 4411 |
|
---|
| 4412 |
|
---|
| 4413 |
|
---|
| 4414 |
|
---|
| 4415 |
|
---|
| 4416 |
|
---|
| 4417 |
|
---|
[24901] | 4418 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4419 | inttypes.h stdint.h unistd.h
|
---|
| 4420 | do
|
---|
| 4421 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4422 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 4423 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 4424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4425 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4426 | else
|
---|
| 4427 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4428 | /* confdefs.h. */
|
---|
| 4429 | _ACEOF
|
---|
| 4430 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4431 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4432 | /* end confdefs.h. */
|
---|
| 4433 | $ac_includes_default
|
---|
[23356] | 4434 |
|
---|
[24901] | 4435 | #include <$ac_header>
|
---|
| 4436 | _ACEOF
|
---|
| 4437 | rm -f conftest.$ac_objext
|
---|
| 4438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4439 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4440 | ac_status=$?
|
---|
| 4441 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4442 | rm -f conftest.er1
|
---|
| 4443 | cat conftest.err >&5
|
---|
| 4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4445 | (exit $ac_status); } &&
|
---|
| 4446 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4447 | || test ! -s conftest.err'
|
---|
| 4448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4449 | (eval $ac_try) 2>&5
|
---|
| 4450 | ac_status=$?
|
---|
| 4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4452 | (exit $ac_status); }; } &&
|
---|
| 4453 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4455 | (eval $ac_try) 2>&5
|
---|
| 4456 | ac_status=$?
|
---|
| 4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4458 | (exit $ac_status); }; }; then
|
---|
| 4459 | eval "$as_ac_Header=yes"
|
---|
| 4460 | else
|
---|
| 4461 | echo "$as_me: failed program was:" >&5
|
---|
| 4462 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 4463 |
|
---|
[24901] | 4464 | eval "$as_ac_Header=no"
|
---|
| 4465 | fi
|
---|
| 4466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4467 | fi
|
---|
| 4468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4470 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4471 | cat >>confdefs.h <<_ACEOF
|
---|
| 4472 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4473 | _ACEOF
|
---|
[23356] | 4474 |
|
---|
[24901] | 4475 | fi
|
---|
[23356] | 4476 |
|
---|
[24901] | 4477 | done
|
---|
[23356] | 4478 |
|
---|
| 4479 |
|
---|
[24901] | 4480 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4481 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4482 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 4483 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4484 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4485 | fi
|
---|
| 4486 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4487 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16568] | 4488 | else
|
---|
[24901] | 4489 | # Is the header compilable?
|
---|
| 4490 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 4491 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 4492 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4493 | /* confdefs.h. */
|
---|
| 4494 | _ACEOF
|
---|
| 4495 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4496 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4497 | /* end confdefs.h. */
|
---|
[24901] | 4498 | $ac_includes_default
|
---|
| 4499 | #include <minix/config.h>
|
---|
| 4500 | _ACEOF
|
---|
| 4501 | rm -f conftest.$ac_objext
|
---|
| 4502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4503 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4504 | ac_status=$?
|
---|
| 4505 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4506 | rm -f conftest.er1
|
---|
| 4507 | cat conftest.err >&5
|
---|
| 4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4509 | (exit $ac_status); } &&
|
---|
| 4510 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4511 | || test ! -s conftest.err'
|
---|
| 4512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4513 | (eval $ac_try) 2>&5
|
---|
| 4514 | ac_status=$?
|
---|
| 4515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4516 | (exit $ac_status); }; } &&
|
---|
| 4517 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4519 | (eval $ac_try) 2>&5
|
---|
| 4520 | ac_status=$?
|
---|
| 4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4522 | (exit $ac_status); }; }; then
|
---|
| 4523 | ac_header_compiler=yes
|
---|
| 4524 | else
|
---|
| 4525 | echo "$as_me: failed program was:" >&5
|
---|
| 4526 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4527 |
|
---|
[24901] | 4528 | ac_header_compiler=no
|
---|
| 4529 | fi
|
---|
| 4530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4531 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 4532 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[23356] | 4533 |
|
---|
[24901] | 4534 | # Is the header present?
|
---|
| 4535 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 4536 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 4537 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4538 | /* confdefs.h. */
|
---|
[16568] | 4539 | _ACEOF
|
---|
[24901] | 4540 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4541 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4542 | /* end confdefs.h. */
|
---|
| 4543 | #include <minix/config.h>
|
---|
| 4544 | _ACEOF
|
---|
| 4545 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 4546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 4547 | ac_status=$?
|
---|
| 4548 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4549 | rm -f conftest.er1
|
---|
| 4550 | cat conftest.err >&5
|
---|
| 4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4552 | (exit $ac_status); } >/dev/null; then
|
---|
| 4553 | if test -s conftest.err; then
|
---|
| 4554 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 4555 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 4556 | else
|
---|
| 4557 | ac_cpp_err=
|
---|
| 4558 | fi
|
---|
[16568] | 4559 | else
|
---|
[24901] | 4560 | ac_cpp_err=yes
|
---|
[16568] | 4561 | fi
|
---|
[24901] | 4562 | if test -z "$ac_cpp_err"; then
|
---|
| 4563 | ac_header_preproc=yes
|
---|
| 4564 | else
|
---|
| 4565 | echo "$as_me: failed program was:" >&5
|
---|
| 4566 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4567 |
|
---|
| 4568 | ac_header_preproc=no
|
---|
[16568] | 4569 | fi
|
---|
[24901] | 4570 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4571 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4572 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[16568] | 4573 |
|
---|
[24901] | 4574 | # So? What about this header?
|
---|
| 4575 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4576 | yes:no: )
|
---|
| 4577 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4578 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4579 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 4580 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 4581 | ac_header_preproc=yes
|
---|
| 4582 | ;;
|
---|
| 4583 | no:yes:* )
|
---|
| 4584 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 4585 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 4586 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 4587 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 4588 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 4589 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 4590 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4591 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4592 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4593 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4594 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4595 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 4596 | (
|
---|
| 4597 | cat <<\_ASBOX
|
---|
| 4598 | ## ------------------------------------------ ##
|
---|
| 4599 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 4600 | ## ------------------------------------------ ##
|
---|
| 4601 | _ASBOX
|
---|
| 4602 | ) |
|
---|
| 4603 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 4604 | ;;
|
---|
| 4605 | esac
|
---|
| 4606 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4607 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 4608 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4609 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4610 | else
|
---|
| 4611 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4612 | fi
|
---|
| 4613 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4614 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16568] | 4615 |
|
---|
[24901] | 4616 | fi
|
---|
| 4617 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 4618 | MINIX=yes
|
---|
| 4619 | else
|
---|
| 4620 | MINIX=
|
---|
| 4621 | fi
|
---|
[16568] | 4622 |
|
---|
| 4623 |
|
---|
[24901] | 4624 | if test "$MINIX" = yes; then
|
---|
[23356] | 4625 |
|
---|
[24901] | 4626 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4627 | #define _POSIX_SOURCE 1
|
---|
| 4628 | _ACEOF
|
---|
[23356] | 4629 |
|
---|
| 4630 |
|
---|
[24901] | 4631 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4632 | #define _POSIX_1_SOURCE 2
|
---|
| 4633 | _ACEOF
|
---|
[16568] | 4634 |
|
---|
[24901] | 4635 |
|
---|
| 4636 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4637 | #define _MINIX 1
|
---|
[16568] | 4638 | _ACEOF
|
---|
| 4639 |
|
---|
| 4640 | fi
|
---|
| 4641 |
|
---|
[24901] | 4642 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4643 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 4644 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 4645 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4646 | else
|
---|
| 4647 | ac_cv_prog_cc_stdc=no
|
---|
| 4648 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4649 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4650 | # breaks some systems' header files.
|
---|
| 4651 | # AIX -qlanglvl=ansi
|
---|
| 4652 | # Ultrix and OSF/1 -std1
|
---|
| 4653 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4654 | # SVR4 -Xc
|
---|
| 4655 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4656 | do
|
---|
| 4657 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[24901] | 4658 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4659 | /* confdefs.h. */
|
---|
| 4660 | _ACEOF
|
---|
| 4661 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4662 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4663 | /* end confdefs.h. */
|
---|
| 4664 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4665 | choke me
|
---|
| 4666 | #endif
|
---|
| 4667 |
|
---|
| 4668 | int
|
---|
| 4669 | main ()
|
---|
| 4670 | {
|
---|
| 4671 | int test (int i, double x);
|
---|
| 4672 | struct s1 {int (*f) (int a);};
|
---|
| 4673 | struct s2 {int (*f) (double a);};
|
---|
| 4674 | ;
|
---|
| 4675 | return 0;
|
---|
| 4676 | }
|
---|
| 4677 | _ACEOF
|
---|
[24901] | 4678 | rm -f conftest.$ac_objext
|
---|
| 4679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4680 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4681 | ac_status=$?
|
---|
| 4682 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4683 | rm -f conftest.er1
|
---|
| 4684 | cat conftest.err >&5
|
---|
| 4685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4686 | (exit $ac_status); } &&
|
---|
| 4687 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4688 | || test ! -s conftest.err'
|
---|
| 4689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4690 | (eval $ac_try) 2>&5
|
---|
| 4691 | ac_status=$?
|
---|
| 4692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4693 | (exit $ac_status); }; } &&
|
---|
| 4694 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4696 | (eval $ac_try) 2>&5
|
---|
| 4697 | ac_status=$?
|
---|
| 4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4699 | (exit $ac_status); }; }; then
|
---|
[16568] | 4700 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
[24901] | 4701 | else
|
---|
| 4702 | echo "$as_me: failed program was:" >&5
|
---|
| 4703 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4704 |
|
---|
[16568] | 4705 | fi
|
---|
[24901] | 4706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4707 | done
|
---|
| 4708 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4709 |
|
---|
| 4710 | fi
|
---|
| 4711 |
|
---|
[24901] | 4712 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4713 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[16568] | 4714 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4715 | x|xno) ;;
|
---|
| 4716 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4717 | esac
|
---|
| 4718 |
|
---|
| 4719 |
|
---|
[24901] | 4720 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4721 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[16568] | 4722 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[24901] | 4723 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4724 | echo "${ECHO_T}yes" >&6
|
---|
| 4725 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4726 | #define PROTOTYPES 1
|
---|
| 4727 | _ACEOF
|
---|
[16568] | 4728 |
|
---|
| 4729 | U= ANSI2KNR=
|
---|
| 4730 | else
|
---|
[24901] | 4731 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4732 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 4733 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4734 | fi
|
---|
| 4735 |
|
---|
[24901] | 4736 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4737 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4738 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4739 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4740 | else
|
---|
[24901] | 4741 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4742 | /* confdefs.h. */
|
---|
| 4743 | _ACEOF
|
---|
| 4744 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4745 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4746 | /* end confdefs.h. */
|
---|
| 4747 |
|
---|
| 4748 | int
|
---|
| 4749 | main ()
|
---|
| 4750 | {
|
---|
| 4751 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4752 | #ifndef __cplusplus
|
---|
| 4753 | /* Ultrix mips cc rejects this. */
|
---|
| 4754 | typedef int charset[2];
|
---|
[24901] | 4755 | const charset x;
|
---|
[16568] | 4756 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[24901] | 4757 | char const *const *ccp;
|
---|
| 4758 | char **p;
|
---|
[16568] | 4759 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4760 | struct point {int x, y;};
|
---|
| 4761 | static struct point const zero = {0,0};
|
---|
| 4762 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4763 | It does not let you subtract one const X* pointer from another in
|
---|
| 4764 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4765 | expression */
|
---|
| 4766 | const char *g = "string";
|
---|
[24901] | 4767 | ccp = &g + (g ? g-g : 0);
|
---|
[16568] | 4768 | /* HPUX 7.0 cc rejects these. */
|
---|
[24901] | 4769 | ++ccp;
|
---|
| 4770 | p = (char**) ccp;
|
---|
| 4771 | ccp = (char const *const *) p;
|
---|
[16568] | 4772 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4773 | char *t;
|
---|
| 4774 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4775 |
|
---|
| 4776 | *t++ = 0;
|
---|
| 4777 | }
|
---|
| 4778 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4779 | int x[] = {25, 17};
|
---|
| 4780 | const int *foo = &x[0];
|
---|
| 4781 | ++foo;
|
---|
| 4782 | }
|
---|
| 4783 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4784 | typedef const int *iptr;
|
---|
| 4785 | iptr p = 0;
|
---|
| 4786 | ++p;
|
---|
| 4787 | }
|
---|
| 4788 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4789 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4790 | struct s { int j; const int *ap[3]; };
|
---|
| 4791 | struct s *b; b->j = 5;
|
---|
| 4792 | }
|
---|
| 4793 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4794 | const int foo = 10;
|
---|
| 4795 | }
|
---|
| 4796 | #endif
|
---|
| 4797 |
|
---|
| 4798 | ;
|
---|
| 4799 | return 0;
|
---|
| 4800 | }
|
---|
| 4801 | _ACEOF
|
---|
[24901] | 4802 | rm -f conftest.$ac_objext
|
---|
| 4803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4804 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4805 | ac_status=$?
|
---|
| 4806 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4807 | rm -f conftest.er1
|
---|
| 4808 | cat conftest.err >&5
|
---|
| 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4810 | (exit $ac_status); } &&
|
---|
| 4811 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4812 | || test ! -s conftest.err'
|
---|
| 4813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4814 | (eval $ac_try) 2>&5
|
---|
| 4815 | ac_status=$?
|
---|
| 4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4817 | (exit $ac_status); }; } &&
|
---|
| 4818 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4820 | (eval $ac_try) 2>&5
|
---|
| 4821 | ac_status=$?
|
---|
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4823 | (exit $ac_status); }; }; then
|
---|
[16568] | 4824 | ac_cv_c_const=yes
|
---|
| 4825 | else
|
---|
[24901] | 4826 | echo "$as_me: failed program was:" >&5
|
---|
| 4827 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4828 |
|
---|
| 4829 | ac_cv_c_const=no
|
---|
[16568] | 4830 | fi
|
---|
[24901] | 4831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4832 | fi
|
---|
[24901] | 4833 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4834 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[16568] | 4835 | if test $ac_cv_c_const = no; then
|
---|
| 4836 |
|
---|
[24901] | 4837 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4838 | #define const
|
---|
| 4839 | _ACEOF
|
---|
[16568] | 4840 |
|
---|
| 4841 | fi
|
---|
| 4842 |
|
---|
[24901] | 4843 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4844 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4845 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4846 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4847 | else
|
---|
| 4848 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4849 | /* confdefs.h. */
|
---|
| 4850 | _ACEOF
|
---|
| 4851 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4852 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4853 | /* end confdefs.h. */
|
---|
| 4854 | $ac_includes_default
|
---|
| 4855 | int
|
---|
| 4856 | main ()
|
---|
| 4857 | {
|
---|
| 4858 | if ((off_t *) 0)
|
---|
| 4859 | return 0;
|
---|
| 4860 | if (sizeof (off_t))
|
---|
| 4861 | return 0;
|
---|
| 4862 | ;
|
---|
| 4863 | return 0;
|
---|
| 4864 | }
|
---|
| 4865 | _ACEOF
|
---|
| 4866 | rm -f conftest.$ac_objext
|
---|
| 4867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4868 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4869 | ac_status=$?
|
---|
| 4870 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4871 | rm -f conftest.er1
|
---|
| 4872 | cat conftest.err >&5
|
---|
| 4873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4874 | (exit $ac_status); } &&
|
---|
| 4875 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4876 | || test ! -s conftest.err'
|
---|
| 4877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4878 | (eval $ac_try) 2>&5
|
---|
| 4879 | ac_status=$?
|
---|
| 4880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4881 | (exit $ac_status); }; } &&
|
---|
| 4882 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4884 | (eval $ac_try) 2>&5
|
---|
| 4885 | ac_status=$?
|
---|
| 4886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4887 | (exit $ac_status); }; }; then
|
---|
| 4888 | ac_cv_type_off_t=yes
|
---|
| 4889 | else
|
---|
| 4890 | echo "$as_me: failed program was:" >&5
|
---|
| 4891 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4892 |
|
---|
[24901] | 4893 | ac_cv_type_off_t=no
|
---|
| 4894 | fi
|
---|
| 4895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4896 | fi
|
---|
| 4897 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4898 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4899 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4900 | :
|
---|
[16568] | 4901 | else
|
---|
| 4902 |
|
---|
| 4903 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 4904 | #define off_t long
|
---|
[16568] | 4905 | _ACEOF
|
---|
| 4906 |
|
---|
| 4907 | fi
|
---|
| 4908 |
|
---|
[24901] | 4909 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4910 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4911 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4912 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4913 | else
|
---|
| 4914 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4915 | /* confdefs.h. */
|
---|
| 4916 | _ACEOF
|
---|
| 4917 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4918 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4919 | /* end confdefs.h. */
|
---|
| 4920 | $ac_includes_default
|
---|
| 4921 | int
|
---|
| 4922 | main ()
|
---|
| 4923 | {
|
---|
| 4924 | if ((size_t *) 0)
|
---|
| 4925 | return 0;
|
---|
| 4926 | if (sizeof (size_t))
|
---|
| 4927 | return 0;
|
---|
| 4928 | ;
|
---|
| 4929 | return 0;
|
---|
| 4930 | }
|
---|
| 4931 | _ACEOF
|
---|
| 4932 | rm -f conftest.$ac_objext
|
---|
| 4933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4934 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4935 | ac_status=$?
|
---|
| 4936 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4937 | rm -f conftest.er1
|
---|
| 4938 | cat conftest.err >&5
|
---|
| 4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4940 | (exit $ac_status); } &&
|
---|
| 4941 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4942 | || test ! -s conftest.err'
|
---|
| 4943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4944 | (eval $ac_try) 2>&5
|
---|
| 4945 | ac_status=$?
|
---|
| 4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4947 | (exit $ac_status); }; } &&
|
---|
| 4948 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4950 | (eval $ac_try) 2>&5
|
---|
| 4951 | ac_status=$?
|
---|
| 4952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4953 | (exit $ac_status); }; }; then
|
---|
| 4954 | ac_cv_type_size_t=yes
|
---|
| 4955 | else
|
---|
| 4956 | echo "$as_me: failed program was:" >&5
|
---|
| 4957 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4958 |
|
---|
[24901] | 4959 | ac_cv_type_size_t=no
|
---|
| 4960 | fi
|
---|
| 4961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4962 | fi
|
---|
| 4963 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4964 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4965 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4966 | :
|
---|
[16568] | 4967 | else
|
---|
| 4968 |
|
---|
| 4969 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 4970 | #define size_t unsigned
|
---|
[16568] | 4971 | _ACEOF
|
---|
| 4972 |
|
---|
| 4973 | fi
|
---|
| 4974 |
|
---|
[24901] | 4975 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4976 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4977 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4978 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4979 | else
|
---|
[24901] | 4980 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4981 | /* confdefs.h. */
|
---|
| 4982 | _ACEOF
|
---|
| 4983 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4984 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4985 | /* end confdefs.h. */
|
---|
| 4986 | #include <sys/types.h>
|
---|
| 4987 | #include <sys/time.h>
|
---|
| 4988 | #include <time.h>
|
---|
| 4989 |
|
---|
| 4990 | int
|
---|
| 4991 | main ()
|
---|
| 4992 | {
|
---|
| 4993 | if ((struct tm *) 0)
|
---|
| 4994 | return 0;
|
---|
| 4995 | ;
|
---|
| 4996 | return 0;
|
---|
| 4997 | }
|
---|
| 4998 | _ACEOF
|
---|
[24901] | 4999 | rm -f conftest.$ac_objext
|
---|
| 5000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5001 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5002 | ac_status=$?
|
---|
| 5003 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5004 | rm -f conftest.er1
|
---|
| 5005 | cat conftest.err >&5
|
---|
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5007 | (exit $ac_status); } &&
|
---|
| 5008 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5009 | || test ! -s conftest.err'
|
---|
| 5010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5011 | (eval $ac_try) 2>&5
|
---|
| 5012 | ac_status=$?
|
---|
| 5013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5014 | (exit $ac_status); }; } &&
|
---|
| 5015 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5017 | (eval $ac_try) 2>&5
|
---|
| 5018 | ac_status=$?
|
---|
| 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5020 | (exit $ac_status); }; }; then
|
---|
[16568] | 5021 | ac_cv_header_time=yes
|
---|
| 5022 | else
|
---|
[24901] | 5023 | echo "$as_me: failed program was:" >&5
|
---|
| 5024 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5025 |
|
---|
| 5026 | ac_cv_header_time=no
|
---|
[16568] | 5027 | fi
|
---|
[24901] | 5028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5029 | fi
|
---|
[24901] | 5030 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 5031 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
[16568] | 5032 | if test $ac_cv_header_time = yes; then
|
---|
| 5033 |
|
---|
[24901] | 5034 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5035 | #define TIME_WITH_SYS_TIME 1
|
---|
| 5036 | _ACEOF
|
---|
[16568] | 5037 |
|
---|
| 5038 | fi
|
---|
| 5039 |
|
---|
[24901] | 5040 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 5041 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 5042 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 5043 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5044 | else
|
---|
[24901] | 5045 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5046 | /* confdefs.h. */
|
---|
| 5047 | _ACEOF
|
---|
| 5048 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5049 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5050 | /* end confdefs.h. */
|
---|
| 5051 | #include <sys/types.h>
|
---|
| 5052 | #include <time.h>
|
---|
| 5053 |
|
---|
| 5054 | int
|
---|
| 5055 | main ()
|
---|
| 5056 | {
|
---|
[24901] | 5057 | struct tm *tp; tp->tm_sec;
|
---|
[16568] | 5058 | ;
|
---|
| 5059 | return 0;
|
---|
| 5060 | }
|
---|
| 5061 | _ACEOF
|
---|
[24901] | 5062 | rm -f conftest.$ac_objext
|
---|
| 5063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5064 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5065 | ac_status=$?
|
---|
| 5066 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5067 | rm -f conftest.er1
|
---|
| 5068 | cat conftest.err >&5
|
---|
| 5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5070 | (exit $ac_status); } &&
|
---|
| 5071 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5072 | || test ! -s conftest.err'
|
---|
| 5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5074 | (eval $ac_try) 2>&5
|
---|
| 5075 | ac_status=$?
|
---|
| 5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5077 | (exit $ac_status); }; } &&
|
---|
| 5078 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5080 | (eval $ac_try) 2>&5
|
---|
| 5081 | ac_status=$?
|
---|
| 5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5083 | (exit $ac_status); }; }; then
|
---|
[16568] | 5084 | ac_cv_struct_tm=time.h
|
---|
| 5085 | else
|
---|
[24901] | 5086 | echo "$as_me: failed program was:" >&5
|
---|
| 5087 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5088 |
|
---|
| 5089 | ac_cv_struct_tm=sys/time.h
|
---|
[16568] | 5090 | fi
|
---|
[24901] | 5091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5092 | fi
|
---|
[24901] | 5093 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 5094 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
[16568] | 5095 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 5096 |
|
---|
[24901] | 5097 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5098 | #define TM_IN_SYS_TIME 1
|
---|
| 5099 | _ACEOF
|
---|
[16568] | 5100 |
|
---|
| 5101 | fi
|
---|
| 5102 |
|
---|
| 5103 |
|
---|
| 5104 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[24901] | 5105 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5106 | /* confdefs.h. */
|
---|
| 5107 | _ACEOF
|
---|
| 5108 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5109 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5110 | /* end confdefs.h. */
|
---|
| 5111 | #include <stdio.h>
|
---|
| 5112 |
|
---|
| 5113 | int
|
---|
| 5114 | main ()
|
---|
| 5115 | {
|
---|
| 5116 | FILE *rubbish = popen("yes", "r");
|
---|
| 5117 | ;
|
---|
| 5118 | return 0;
|
---|
| 5119 | }
|
---|
| 5120 | _ACEOF
|
---|
[24901] | 5121 | rm -f conftest.$ac_objext
|
---|
| 5122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5123 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5124 | ac_status=$?
|
---|
| 5125 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5126 | rm -f conftest.er1
|
---|
| 5127 | cat conftest.err >&5
|
---|
| 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5129 | (exit $ac_status); } &&
|
---|
| 5130 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5131 | || test ! -s conftest.err'
|
---|
| 5132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5133 | (eval $ac_try) 2>&5
|
---|
| 5134 | ac_status=$?
|
---|
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5136 | (exit $ac_status); }; } &&
|
---|
| 5137 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5139 | (eval $ac_try) 2>&5
|
---|
| 5140 | ac_status=$?
|
---|
| 5141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5142 | (exit $ac_status); }; }; then
|
---|
| 5143 | :
|
---|
| 5144 | else
|
---|
| 5145 | echo "$as_me: failed program was:" >&5
|
---|
| 5146 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 5147 |
|
---|
[24901] | 5148 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[16568] | 5149 | fi
|
---|
[24901] | 5150 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5151 | fi
|
---|
| 5152 |
|
---|
| 5153 |
|
---|
[24901] | 5154 |
|
---|
| 5155 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 5156 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 5157 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 5158 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5159 | else
|
---|
| 5160 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5161 | LIBS="-lg $LIBS"
|
---|
[24901] | 5162 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5163 | /* confdefs.h. */
|
---|
| 5164 | _ACEOF
|
---|
| 5165 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5166 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5167 | /* end confdefs.h. */
|
---|
| 5168 |
|
---|
| 5169 |
|
---|
| 5170 | int
|
---|
| 5171 | main ()
|
---|
| 5172 | {
|
---|
[24901] | 5173 | main ();
|
---|
[16568] | 5174 | ;
|
---|
| 5175 | return 0;
|
---|
| 5176 | }
|
---|
| 5177 | _ACEOF
|
---|
[24901] | 5178 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5180 | (eval $ac_link) 2>conftest.er1
|
---|
| 5181 | ac_status=$?
|
---|
| 5182 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5183 | rm -f conftest.er1
|
---|
| 5184 | cat conftest.err >&5
|
---|
| 5185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5186 | (exit $ac_status); } &&
|
---|
| 5187 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5188 | || test ! -s conftest.err'
|
---|
| 5189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5190 | (eval $ac_try) 2>&5
|
---|
| 5191 | ac_status=$?
|
---|
| 5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5193 | (exit $ac_status); }; } &&
|
---|
| 5194 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5196 | (eval $ac_try) 2>&5
|
---|
| 5197 | ac_status=$?
|
---|
| 5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5199 | (exit $ac_status); }; }; then
|
---|
[16568] | 5200 | ac_cv_lib_g_main=yes
|
---|
| 5201 | else
|
---|
[24901] | 5202 | echo "$as_me: failed program was:" >&5
|
---|
| 5203 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5204 |
|
---|
| 5205 | ac_cv_lib_g_main=no
|
---|
[16568] | 5206 | fi
|
---|
[24901] | 5207 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5208 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 5209 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5210 | fi
|
---|
[24901] | 5211 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 5212 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 5213 | if test $ac_cv_lib_g_main = yes; then
|
---|
[16568] | 5214 | cat >>confdefs.h <<_ACEOF
|
---|
| 5215 | #define HAVE_LIBG 1
|
---|
| 5216 | _ACEOF
|
---|
| 5217 |
|
---|
| 5218 | LIBS="-lg $LIBS"
|
---|
| 5219 |
|
---|
| 5220 | fi
|
---|
| 5221 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
| 5222 |
|
---|
[24901] | 5223 |
|
---|
| 5224 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 5225 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 5226 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 5227 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5228 | else
|
---|
| 5229 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5230 | LIBS="-lm $LIBS"
|
---|
[24901] | 5231 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5232 | /* confdefs.h. */
|
---|
| 5233 | _ACEOF
|
---|
| 5234 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5235 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5236 | /* end confdefs.h. */
|
---|
| 5237 |
|
---|
| 5238 |
|
---|
| 5239 | int
|
---|
| 5240 | main ()
|
---|
| 5241 | {
|
---|
[24901] | 5242 | main ();
|
---|
[16568] | 5243 | ;
|
---|
| 5244 | return 0;
|
---|
| 5245 | }
|
---|
| 5246 | _ACEOF
|
---|
[24901] | 5247 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5249 | (eval $ac_link) 2>conftest.er1
|
---|
| 5250 | ac_status=$?
|
---|
| 5251 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5252 | rm -f conftest.er1
|
---|
| 5253 | cat conftest.err >&5
|
---|
| 5254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5255 | (exit $ac_status); } &&
|
---|
| 5256 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5257 | || test ! -s conftest.err'
|
---|
| 5258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5259 | (eval $ac_try) 2>&5
|
---|
| 5260 | ac_status=$?
|
---|
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5262 | (exit $ac_status); }; } &&
|
---|
| 5263 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5265 | (eval $ac_try) 2>&5
|
---|
| 5266 | ac_status=$?
|
---|
| 5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5268 | (exit $ac_status); }; }; then
|
---|
[16568] | 5269 | ac_cv_lib_m_main=yes
|
---|
| 5270 | else
|
---|
[24901] | 5271 | echo "$as_me: failed program was:" >&5
|
---|
| 5272 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5273 |
|
---|
| 5274 | ac_cv_lib_m_main=no
|
---|
[16568] | 5275 | fi
|
---|
[24901] | 5276 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5277 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 5278 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5279 | fi
|
---|
[24901] | 5280 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 5281 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 5282 | if test $ac_cv_lib_m_main = yes; then
|
---|
[16568] | 5283 | cat >>confdefs.h <<_ACEOF
|
---|
| 5284 | #define HAVE_LIBM 1
|
---|
| 5285 | _ACEOF
|
---|
| 5286 |
|
---|
| 5287 | LIBS="-lm $LIBS"
|
---|
| 5288 |
|
---|
| 5289 | fi
|
---|
| 5290 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
| 5291 |
|
---|
[24901] | 5292 |
|
---|
| 5293 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 5294 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 5295 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 5296 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5297 | else
|
---|
| 5298 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5299 | LIBS="-lcrypt $LIBS"
|
---|
[24901] | 5300 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5301 | /* confdefs.h. */
|
---|
| 5302 | _ACEOF
|
---|
| 5303 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5304 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5305 | /* end confdefs.h. */
|
---|
| 5306 |
|
---|
| 5307 |
|
---|
| 5308 | int
|
---|
| 5309 | main ()
|
---|
| 5310 | {
|
---|
[24901] | 5311 | main ();
|
---|
[16568] | 5312 | ;
|
---|
| 5313 | return 0;
|
---|
| 5314 | }
|
---|
| 5315 | _ACEOF
|
---|
[24901] | 5316 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5318 | (eval $ac_link) 2>conftest.er1
|
---|
| 5319 | ac_status=$?
|
---|
| 5320 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5321 | rm -f conftest.er1
|
---|
| 5322 | cat conftest.err >&5
|
---|
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5324 | (exit $ac_status); } &&
|
---|
| 5325 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5326 | || test ! -s conftest.err'
|
---|
| 5327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5328 | (eval $ac_try) 2>&5
|
---|
| 5329 | ac_status=$?
|
---|
| 5330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5331 | (exit $ac_status); }; } &&
|
---|
| 5332 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5334 | (eval $ac_try) 2>&5
|
---|
| 5335 | ac_status=$?
|
---|
| 5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5337 | (exit $ac_status); }; }; then
|
---|
[16568] | 5338 | ac_cv_lib_crypt_main=yes
|
---|
| 5339 | else
|
---|
[24901] | 5340 | echo "$as_me: failed program was:" >&5
|
---|
| 5341 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5342 |
|
---|
| 5343 | ac_cv_lib_crypt_main=no
|
---|
[16568] | 5344 | fi
|
---|
[24901] | 5345 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5346 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 5347 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5348 | fi
|
---|
[24901] | 5349 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 5350 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 5351 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[16568] | 5352 | cat >>confdefs.h <<_ACEOF
|
---|
| 5353 | #define HAVE_LIBCRYPT 1
|
---|
| 5354 | _ACEOF
|
---|
| 5355 |
|
---|
| 5356 | LIBS="-lcrypt $LIBS"
|
---|
| 5357 |
|
---|
| 5358 | fi
|
---|
| 5359 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
| 5360 |
|
---|
[20848] | 5361 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 5362 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 5363 | #fi
|
---|
[16568] | 5364 |
|
---|
[24901] | 5365 |
|
---|
| 5366 |
|
---|
| 5367 |
|
---|
| 5368 |
|
---|
| 5369 |
|
---|
[16568] | 5370 | ac_header_dirent=no
|
---|
| 5371 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[24901] | 5372 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 5373 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 5374 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 5375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5376 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5377 | else
|
---|
[24901] | 5378 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5379 | /* confdefs.h. */
|
---|
| 5380 | _ACEOF
|
---|
| 5381 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5382 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5383 | /* end confdefs.h. */
|
---|
| 5384 | #include <sys/types.h>
|
---|
| 5385 | #include <$ac_hdr>
|
---|
| 5386 |
|
---|
| 5387 | int
|
---|
| 5388 | main ()
|
---|
| 5389 | {
|
---|
| 5390 | if ((DIR *) 0)
|
---|
| 5391 | return 0;
|
---|
| 5392 | ;
|
---|
| 5393 | return 0;
|
---|
| 5394 | }
|
---|
| 5395 | _ACEOF
|
---|
[24901] | 5396 | rm -f conftest.$ac_objext
|
---|
| 5397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5398 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5399 | ac_status=$?
|
---|
| 5400 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5401 | rm -f conftest.er1
|
---|
| 5402 | cat conftest.err >&5
|
---|
| 5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5404 | (exit $ac_status); } &&
|
---|
| 5405 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5406 | || test ! -s conftest.err'
|
---|
| 5407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5408 | (eval $ac_try) 2>&5
|
---|
| 5409 | ac_status=$?
|
---|
| 5410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5411 | (exit $ac_status); }; } &&
|
---|
| 5412 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5414 | (eval $ac_try) 2>&5
|
---|
| 5415 | ac_status=$?
|
---|
| 5416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5417 | (exit $ac_status); }; }; then
|
---|
[16568] | 5418 | eval "$as_ac_Header=yes"
|
---|
| 5419 | else
|
---|
[24901] | 5420 | echo "$as_me: failed program was:" >&5
|
---|
| 5421 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5422 |
|
---|
| 5423 | eval "$as_ac_Header=no"
|
---|
[16568] | 5424 | fi
|
---|
[24901] | 5425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5426 | fi
|
---|
[24901] | 5427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5428 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[16568] | 5430 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 5431 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[16568] | 5432 | _ACEOF
|
---|
| 5433 |
|
---|
| 5434 | ac_header_dirent=$ac_hdr; break
|
---|
| 5435 | fi
|
---|
| 5436 |
|
---|
| 5437 | done
|
---|
| 5438 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5439 | if test $ac_header_dirent = dirent.h; then
|
---|
[24901] | 5440 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5441 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 5442 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5443 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5444 | else
|
---|
| 5445 | ac_func_search_save_LIBS=$LIBS
|
---|
[24901] | 5446 | ac_cv_search_opendir=no
|
---|
| 5447 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5448 | /* confdefs.h. */
|
---|
| 5449 | _ACEOF
|
---|
| 5450 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5451 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5452 | /* end confdefs.h. */
|
---|
| 5453 |
|
---|
[24901] | 5454 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16568] | 5455 | #ifdef __cplusplus
|
---|
| 5456 | extern "C"
|
---|
| 5457 | #endif
|
---|
[24901] | 5458 | /* We use char because int might match the return type of a gcc2
|
---|
| 5459 | builtin and then its argument prototype would still apply. */
|
---|
[16568] | 5460 | char opendir ();
|
---|
| 5461 | int
|
---|
| 5462 | main ()
|
---|
| 5463 | {
|
---|
[24901] | 5464 | opendir ();
|
---|
[16568] | 5465 | ;
|
---|
| 5466 | return 0;
|
---|
| 5467 | }
|
---|
| 5468 | _ACEOF
|
---|
[24901] | 5469 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5471 | (eval $ac_link) 2>conftest.er1
|
---|
| 5472 | ac_status=$?
|
---|
| 5473 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5474 | rm -f conftest.er1
|
---|
| 5475 | cat conftest.err >&5
|
---|
| 5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5477 | (exit $ac_status); } &&
|
---|
| 5478 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5479 | || test ! -s conftest.err'
|
---|
| 5480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5481 | (eval $ac_try) 2>&5
|
---|
| 5482 | ac_status=$?
|
---|
| 5483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5484 | (exit $ac_status); }; } &&
|
---|
| 5485 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5487 | (eval $ac_try) 2>&5
|
---|
| 5488 | ac_status=$?
|
---|
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5490 | (exit $ac_status); }; }; then
|
---|
| 5491 | ac_cv_search_opendir="none required"
|
---|
| 5492 | else
|
---|
| 5493 | echo "$as_me: failed program was:" >&5
|
---|
| 5494 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5495 |
|
---|
| 5496 | fi
|
---|
| 5497 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5498 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5499 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5500 | for ac_lib in dir; do
|
---|
[23356] | 5501 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[24901] | 5502 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5503 | /* confdefs.h. */
|
---|
| 5504 | _ACEOF
|
---|
| 5505 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5506 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5507 | /* end confdefs.h. */
|
---|
[16568] | 5508 |
|
---|
[24901] | 5509 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5510 | #ifdef __cplusplus
|
---|
| 5511 | extern "C"
|
---|
| 5512 | #endif
|
---|
| 5513 | /* We use char because int might match the return type of a gcc2
|
---|
| 5514 | builtin and then its argument prototype would still apply. */
|
---|
| 5515 | char opendir ();
|
---|
| 5516 | int
|
---|
| 5517 | main ()
|
---|
| 5518 | {
|
---|
| 5519 | opendir ();
|
---|
| 5520 | ;
|
---|
| 5521 | return 0;
|
---|
| 5522 | }
|
---|
| 5523 | _ACEOF
|
---|
| 5524 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5526 | (eval $ac_link) 2>conftest.er1
|
---|
| 5527 | ac_status=$?
|
---|
| 5528 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5529 | rm -f conftest.er1
|
---|
| 5530 | cat conftest.err >&5
|
---|
| 5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5532 | (exit $ac_status); } &&
|
---|
| 5533 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5534 | || test ! -s conftest.err'
|
---|
| 5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5536 | (eval $ac_try) 2>&5
|
---|
| 5537 | ac_status=$?
|
---|
| 5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5539 | (exit $ac_status); }; } &&
|
---|
| 5540 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5542 | (eval $ac_try) 2>&5
|
---|
| 5543 | ac_status=$?
|
---|
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5545 | (exit $ac_status); }; }; then
|
---|
| 5546 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5547 | break
|
---|
[16568] | 5548 | else
|
---|
[24901] | 5549 | echo "$as_me: failed program was:" >&5
|
---|
| 5550 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5551 |
|
---|
[16568] | 5552 | fi
|
---|
[24901] | 5553 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5554 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5555 | done
|
---|
| 5556 | fi
|
---|
[16568] | 5557 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5558 | fi
|
---|
[24901] | 5559 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5560 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5561 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5562 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16568] | 5563 |
|
---|
| 5564 | fi
|
---|
| 5565 |
|
---|
| 5566 | else
|
---|
[24901] | 5567 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5568 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 5569 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5570 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5571 | else
|
---|
| 5572 | ac_func_search_save_LIBS=$LIBS
|
---|
[24901] | 5573 | ac_cv_search_opendir=no
|
---|
| 5574 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5575 | /* confdefs.h. */
|
---|
| 5576 | _ACEOF
|
---|
| 5577 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5578 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5579 | /* end confdefs.h. */
|
---|
| 5580 |
|
---|
[24901] | 5581 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16568] | 5582 | #ifdef __cplusplus
|
---|
| 5583 | extern "C"
|
---|
| 5584 | #endif
|
---|
[24901] | 5585 | /* We use char because int might match the return type of a gcc2
|
---|
| 5586 | builtin and then its argument prototype would still apply. */
|
---|
[16568] | 5587 | char opendir ();
|
---|
| 5588 | int
|
---|
| 5589 | main ()
|
---|
| 5590 | {
|
---|
[24901] | 5591 | opendir ();
|
---|
[16568] | 5592 | ;
|
---|
| 5593 | return 0;
|
---|
| 5594 | }
|
---|
| 5595 | _ACEOF
|
---|
[24901] | 5596 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5598 | (eval $ac_link) 2>conftest.er1
|
---|
| 5599 | ac_status=$?
|
---|
| 5600 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5601 | rm -f conftest.er1
|
---|
| 5602 | cat conftest.err >&5
|
---|
| 5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5604 | (exit $ac_status); } &&
|
---|
| 5605 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5606 | || test ! -s conftest.err'
|
---|
| 5607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5608 | (eval $ac_try) 2>&5
|
---|
| 5609 | ac_status=$?
|
---|
| 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5611 | (exit $ac_status); }; } &&
|
---|
| 5612 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5614 | (eval $ac_try) 2>&5
|
---|
| 5615 | ac_status=$?
|
---|
| 5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5617 | (exit $ac_status); }; }; then
|
---|
| 5618 | ac_cv_search_opendir="none required"
|
---|
| 5619 | else
|
---|
| 5620 | echo "$as_me: failed program was:" >&5
|
---|
| 5621 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5622 |
|
---|
| 5623 | fi
|
---|
| 5624 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5625 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5626 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5627 | for ac_lib in x; do
|
---|
[23356] | 5628 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[24901] | 5629 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5630 | /* confdefs.h. */
|
---|
| 5631 | _ACEOF
|
---|
| 5632 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5633 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5634 | /* end confdefs.h. */
|
---|
[16568] | 5635 |
|
---|
[24901] | 5636 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5637 | #ifdef __cplusplus
|
---|
| 5638 | extern "C"
|
---|
| 5639 | #endif
|
---|
| 5640 | /* We use char because int might match the return type of a gcc2
|
---|
| 5641 | builtin and then its argument prototype would still apply. */
|
---|
| 5642 | char opendir ();
|
---|
| 5643 | int
|
---|
| 5644 | main ()
|
---|
| 5645 | {
|
---|
| 5646 | opendir ();
|
---|
| 5647 | ;
|
---|
| 5648 | return 0;
|
---|
| 5649 | }
|
---|
| 5650 | _ACEOF
|
---|
| 5651 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5653 | (eval $ac_link) 2>conftest.er1
|
---|
| 5654 | ac_status=$?
|
---|
| 5655 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5656 | rm -f conftest.er1
|
---|
| 5657 | cat conftest.err >&5
|
---|
| 5658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5659 | (exit $ac_status); } &&
|
---|
| 5660 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5661 | || test ! -s conftest.err'
|
---|
| 5662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5663 | (eval $ac_try) 2>&5
|
---|
| 5664 | ac_status=$?
|
---|
| 5665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5666 | (exit $ac_status); }; } &&
|
---|
| 5667 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5669 | (eval $ac_try) 2>&5
|
---|
| 5670 | ac_status=$?
|
---|
| 5671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5672 | (exit $ac_status); }; }; then
|
---|
| 5673 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5674 | break
|
---|
[16568] | 5675 | else
|
---|
[24901] | 5676 | echo "$as_me: failed program was:" >&5
|
---|
| 5677 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5678 |
|
---|
[16568] | 5679 | fi
|
---|
[24901] | 5680 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5681 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5682 | done
|
---|
| 5683 | fi
|
---|
[16568] | 5684 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5685 | fi
|
---|
[24901] | 5686 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5687 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5688 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5689 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16568] | 5690 |
|
---|
| 5691 | fi
|
---|
| 5692 |
|
---|
| 5693 | fi
|
---|
| 5694 |
|
---|
[24901] | 5695 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5696 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5697 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5698 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5699 | else
|
---|
[24901] | 5700 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5701 | /* confdefs.h. */
|
---|
| 5702 | _ACEOF
|
---|
| 5703 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5704 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5705 | /* end confdefs.h. */
|
---|
| 5706 | #include <stdlib.h>
|
---|
| 5707 | #include <stdarg.h>
|
---|
| 5708 | #include <string.h>
|
---|
| 5709 | #include <float.h>
|
---|
| 5710 |
|
---|
| 5711 | int
|
---|
| 5712 | main ()
|
---|
| 5713 | {
|
---|
| 5714 |
|
---|
| 5715 | ;
|
---|
| 5716 | return 0;
|
---|
| 5717 | }
|
---|
| 5718 | _ACEOF
|
---|
[24901] | 5719 | rm -f conftest.$ac_objext
|
---|
| 5720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5721 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5722 | ac_status=$?
|
---|
| 5723 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5724 | rm -f conftest.er1
|
---|
| 5725 | cat conftest.err >&5
|
---|
| 5726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5727 | (exit $ac_status); } &&
|
---|
| 5728 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5729 | || test ! -s conftest.err'
|
---|
| 5730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5731 | (eval $ac_try) 2>&5
|
---|
| 5732 | ac_status=$?
|
---|
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5734 | (exit $ac_status); }; } &&
|
---|
| 5735 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5737 | (eval $ac_try) 2>&5
|
---|
| 5738 | ac_status=$?
|
---|
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5740 | (exit $ac_status); }; }; then
|
---|
[16568] | 5741 | ac_cv_header_stdc=yes
|
---|
| 5742 | else
|
---|
[24901] | 5743 | echo "$as_me: failed program was:" >&5
|
---|
| 5744 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5745 |
|
---|
| 5746 | ac_cv_header_stdc=no
|
---|
[16568] | 5747 | fi
|
---|
[24901] | 5748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5749 |
|
---|
| 5750 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5751 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[24901] | 5752 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5753 | /* confdefs.h. */
|
---|
| 5754 | _ACEOF
|
---|
| 5755 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5756 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5757 | /* end confdefs.h. */
|
---|
| 5758 | #include <string.h>
|
---|
| 5759 |
|
---|
| 5760 | _ACEOF
|
---|
| 5761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 5762 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5763 | :
|
---|
[16568] | 5764 | else
|
---|
| 5765 | ac_cv_header_stdc=no
|
---|
| 5766 | fi
|
---|
| 5767 | rm -f conftest*
|
---|
| 5768 |
|
---|
| 5769 | fi
|
---|
| 5770 |
|
---|
| 5771 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5772 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[24901] | 5773 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5774 | /* confdefs.h. */
|
---|
| 5775 | _ACEOF
|
---|
| 5776 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5777 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5778 | /* end confdefs.h. */
|
---|
| 5779 | #include <stdlib.h>
|
---|
| 5780 |
|
---|
| 5781 | _ACEOF
|
---|
| 5782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 5783 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5784 | :
|
---|
[16568] | 5785 | else
|
---|
| 5786 | ac_cv_header_stdc=no
|
---|
| 5787 | fi
|
---|
| 5788 | rm -f conftest*
|
---|
| 5789 |
|
---|
| 5790 | fi
|
---|
| 5791 |
|
---|
| 5792 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5793 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[24901] | 5794 | if test "$cross_compiling" = yes; then
|
---|
[16568] | 5795 | :
|
---|
| 5796 | else
|
---|
[24901] | 5797 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5798 | /* confdefs.h. */
|
---|
| 5799 | _ACEOF
|
---|
| 5800 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5801 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5802 | /* end confdefs.h. */
|
---|
| 5803 | #include <ctype.h>
|
---|
| 5804 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5805 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5806 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5807 | #else
|
---|
| 5808 | # define ISLOWER(c) \
|
---|
| 5809 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5810 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5811 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5812 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5813 | #endif
|
---|
| 5814 |
|
---|
| 5815 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5816 | int
|
---|
| 5817 | main ()
|
---|
| 5818 | {
|
---|
| 5819 | int i;
|
---|
| 5820 | for (i = 0; i < 256; i++)
|
---|
| 5821 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5822 | || toupper (i) != TOUPPER (i))
|
---|
[24901] | 5823 | exit(2);
|
---|
| 5824 | exit (0);
|
---|
[16568] | 5825 | }
|
---|
| 5826 | _ACEOF
|
---|
[24901] | 5827 | rm -f conftest$ac_exeext
|
---|
| 5828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5829 | (eval $ac_link) 2>&5
|
---|
| 5830 | ac_status=$?
|
---|
| 5831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5834 | (eval $ac_try) 2>&5
|
---|
| 5835 | ac_status=$?
|
---|
| 5836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5837 | (exit $ac_status); }; }; then
|
---|
| 5838 | :
|
---|
| 5839 | else
|
---|
| 5840 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5841 | echo "$as_me: failed program was:" >&5
|
---|
| 5842 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 5843 |
|
---|
[24901] | 5844 | ( exit $ac_status )
|
---|
| 5845 | ac_cv_header_stdc=no
|
---|
[16568] | 5846 | fi
|
---|
[24901] | 5847 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5848 | fi
|
---|
| 5849 | fi
|
---|
| 5850 | fi
|
---|
[24901] | 5851 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5852 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16568] | 5853 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5854 |
|
---|
[24901] | 5855 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5856 | #define STDC_HEADERS 1
|
---|
| 5857 | _ACEOF
|
---|
[16568] | 5858 |
|
---|
| 5859 | fi
|
---|
| 5860 |
|
---|
[24901] | 5861 |
|
---|
| 5862 |
|
---|
| 5863 |
|
---|
| 5864 |
|
---|
| 5865 |
|
---|
| 5866 |
|
---|
| 5867 |
|
---|
| 5868 |
|
---|
| 5869 |
|
---|
[16568] | 5870 | 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
|
---|
[24901] | 5871 | do
|
---|
| 5872 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5874 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5877 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5878 | fi
|
---|
| 5879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5881 | else
|
---|
| 5882 | # Is the header compilable?
|
---|
| 5883 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5884 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5885 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5886 | /* confdefs.h. */
|
---|
| 5887 | _ACEOF
|
---|
| 5888 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5889 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5890 | /* end confdefs.h. */
|
---|
| 5891 | $ac_includes_default
|
---|
| 5892 | #include <$ac_header>
|
---|
| 5893 | _ACEOF
|
---|
| 5894 | rm -f conftest.$ac_objext
|
---|
| 5895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5896 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5897 | ac_status=$?
|
---|
| 5898 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5899 | rm -f conftest.er1
|
---|
| 5900 | cat conftest.err >&5
|
---|
| 5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5902 | (exit $ac_status); } &&
|
---|
| 5903 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5904 | || test ! -s conftest.err'
|
---|
| 5905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5906 | (eval $ac_try) 2>&5
|
---|
| 5907 | ac_status=$?
|
---|
| 5908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5909 | (exit $ac_status); }; } &&
|
---|
| 5910 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5912 | (eval $ac_try) 2>&5
|
---|
| 5913 | ac_status=$?
|
---|
| 5914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5915 | (exit $ac_status); }; }; then
|
---|
| 5916 | ac_header_compiler=yes
|
---|
| 5917 | else
|
---|
| 5918 | echo "$as_me: failed program was:" >&5
|
---|
| 5919 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5920 |
|
---|
| 5921 | ac_header_compiler=no
|
---|
| 5922 | fi
|
---|
| 5923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5925 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5926 |
|
---|
| 5927 | # Is the header present?
|
---|
| 5928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5930 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5931 | /* confdefs.h. */
|
---|
| 5932 | _ACEOF
|
---|
| 5933 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5934 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5935 | /* end confdefs.h. */
|
---|
| 5936 | #include <$ac_header>
|
---|
| 5937 | _ACEOF
|
---|
| 5938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5940 | ac_status=$?
|
---|
| 5941 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5942 | rm -f conftest.er1
|
---|
| 5943 | cat conftest.err >&5
|
---|
| 5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5945 | (exit $ac_status); } >/dev/null; then
|
---|
| 5946 | if test -s conftest.err; then
|
---|
| 5947 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5949 | else
|
---|
| 5950 | ac_cpp_err=
|
---|
| 5951 | fi
|
---|
| 5952 | else
|
---|
| 5953 | ac_cpp_err=yes
|
---|
| 5954 | fi
|
---|
| 5955 | if test -z "$ac_cpp_err"; then
|
---|
| 5956 | ac_header_preproc=yes
|
---|
| 5957 | else
|
---|
| 5958 | echo "$as_me: failed program was:" >&5
|
---|
| 5959 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5960 |
|
---|
| 5961 | ac_header_preproc=no
|
---|
| 5962 | fi
|
---|
| 5963 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5965 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5966 |
|
---|
| 5967 | # So? What about this header?
|
---|
| 5968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5969 | yes:no: )
|
---|
| 5970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5974 | ac_header_preproc=yes
|
---|
| 5975 | ;;
|
---|
| 5976 | no:yes:* )
|
---|
| 5977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5989 | (
|
---|
| 5990 | cat <<\_ASBOX
|
---|
| 5991 | ## ------------------------------------------ ##
|
---|
| 5992 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5993 | ## ------------------------------------------ ##
|
---|
| 5994 | _ASBOX
|
---|
| 5995 | ) |
|
---|
| 5996 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5997 | ;;
|
---|
| 5998 | esac
|
---|
| 5999 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 6000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 6001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 6002 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6003 | else
|
---|
| 6004 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 6005 | fi
|
---|
| 6006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 6007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 6008 |
|
---|
| 6009 | fi
|
---|
| 6010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[16568] | 6011 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 6012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[16568] | 6013 | _ACEOF
|
---|
| 6014 |
|
---|
| 6015 | fi
|
---|
| 6016 |
|
---|
| 6017 | done
|
---|
| 6018 |
|
---|
[24901] | 6019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6020 | /* confdefs.h. */
|
---|
| 6021 | _ACEOF
|
---|
| 6022 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6024 | /* end confdefs.h. */
|
---|
| 6025 | #include <stdio.h>
|
---|
| 6026 |
|
---|
| 6027 | _ACEOF
|
---|
| 6028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6029 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 6030 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6031 | #define HAVE_FREAD_DECL 1
|
---|
| 6032 | _ACEOF
|
---|
[16568] | 6033 |
|
---|
| 6034 | fi
|
---|
| 6035 | rm -f conftest*
|
---|
| 6036 |
|
---|
[24901] | 6037 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6038 | /* confdefs.h. */
|
---|
| 6039 | _ACEOF
|
---|
| 6040 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6041 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6042 | /* end confdefs.h. */
|
---|
| 6043 | #include <stdio.h>
|
---|
| 6044 |
|
---|
| 6045 | _ACEOF
|
---|
| 6046 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6047 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 6048 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6049 | #define HAVE_FGETC_DECL 1
|
---|
| 6050 | _ACEOF
|
---|
[16568] | 6051 |
|
---|
| 6052 | fi
|
---|
| 6053 | rm -f conftest*
|
---|
| 6054 |
|
---|
[24901] | 6055 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6056 | /* confdefs.h. */
|
---|
| 6057 | _ACEOF
|
---|
| 6058 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6059 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6060 | /* end confdefs.h. */
|
---|
| 6061 | #include <sys/procfs.h>
|
---|
| 6062 |
|
---|
| 6063 | _ACEOF
|
---|
| 6064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6065 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 6066 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6067 | #define HAVE_PR_BRKSIZE 1
|
---|
| 6068 | _ACEOF
|
---|
[16568] | 6069 |
|
---|
| 6070 | fi
|
---|
| 6071 | rm -f conftest*
|
---|
| 6072 |
|
---|
| 6073 |
|
---|
| 6074 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 6075 | # for constant arguments. Useless!
|
---|
[24901] | 6076 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 6077 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 6078 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 6079 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6080 | else
|
---|
[24901] | 6081 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6082 | /* confdefs.h. */
|
---|
| 6083 | _ACEOF
|
---|
| 6084 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6085 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6086 | /* end confdefs.h. */
|
---|
| 6087 | #include <alloca.h>
|
---|
| 6088 | int
|
---|
| 6089 | main ()
|
---|
| 6090 | {
|
---|
| 6091 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 6092 | ;
|
---|
| 6093 | return 0;
|
---|
| 6094 | }
|
---|
| 6095 | _ACEOF
|
---|
[24901] | 6096 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6097 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6098 | (eval $ac_link) 2>conftest.er1
|
---|
| 6099 | ac_status=$?
|
---|
| 6100 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6101 | rm -f conftest.er1
|
---|
| 6102 | cat conftest.err >&5
|
---|
| 6103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6104 | (exit $ac_status); } &&
|
---|
| 6105 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6106 | || test ! -s conftest.err'
|
---|
| 6107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6108 | (eval $ac_try) 2>&5
|
---|
| 6109 | ac_status=$?
|
---|
| 6110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6111 | (exit $ac_status); }; } &&
|
---|
| 6112 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6114 | (eval $ac_try) 2>&5
|
---|
| 6115 | ac_status=$?
|
---|
| 6116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6117 | (exit $ac_status); }; }; then
|
---|
[16568] | 6118 | ac_cv_working_alloca_h=yes
|
---|
| 6119 | else
|
---|
[24901] | 6120 | echo "$as_me: failed program was:" >&5
|
---|
| 6121 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6122 |
|
---|
| 6123 | ac_cv_working_alloca_h=no
|
---|
[16568] | 6124 | fi
|
---|
[24901] | 6125 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6126 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 6127 | fi
|
---|
[24901] | 6128 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 6129 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
[16568] | 6130 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 6131 |
|
---|
[24901] | 6132 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6133 | #define HAVE_ALLOCA_H 1
|
---|
| 6134 | _ACEOF
|
---|
[16568] | 6135 |
|
---|
| 6136 | fi
|
---|
| 6137 |
|
---|
[24901] | 6138 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 6139 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 6140 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 6141 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6142 | else
|
---|
[24901] | 6143 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6144 | /* confdefs.h. */
|
---|
| 6145 | _ACEOF
|
---|
| 6146 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6147 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6148 | /* end confdefs.h. */
|
---|
| 6149 | #ifdef __GNUC__
|
---|
| 6150 | # define alloca __builtin_alloca
|
---|
| 6151 | #else
|
---|
| 6152 | # ifdef _MSC_VER
|
---|
| 6153 | # include <malloc.h>
|
---|
| 6154 | # define alloca _alloca
|
---|
| 6155 | # else
|
---|
[24901] | 6156 | # if HAVE_ALLOCA_H
|
---|
[16568] | 6157 | # include <alloca.h>
|
---|
| 6158 | # else
|
---|
| 6159 | # ifdef _AIX
|
---|
| 6160 | #pragma alloca
|
---|
| 6161 | # else
|
---|
| 6162 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 6163 | char *alloca ();
|
---|
| 6164 | # endif
|
---|
| 6165 | # endif
|
---|
| 6166 | # endif
|
---|
| 6167 | # endif
|
---|
| 6168 | #endif
|
---|
| 6169 |
|
---|
| 6170 | int
|
---|
| 6171 | main ()
|
---|
| 6172 | {
|
---|
| 6173 | char *p = (char *) alloca (1);
|
---|
| 6174 | ;
|
---|
| 6175 | return 0;
|
---|
| 6176 | }
|
---|
| 6177 | _ACEOF
|
---|
[24901] | 6178 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6180 | (eval $ac_link) 2>conftest.er1
|
---|
| 6181 | ac_status=$?
|
---|
| 6182 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6183 | rm -f conftest.er1
|
---|
| 6184 | cat conftest.err >&5
|
---|
| 6185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6186 | (exit $ac_status); } &&
|
---|
| 6187 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6188 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 6194 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6196 | (eval $ac_try) 2>&5
|
---|
| 6197 | ac_status=$?
|
---|
| 6198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6199 | (exit $ac_status); }; }; then
|
---|
[16568] | 6200 | ac_cv_func_alloca_works=yes
|
---|
| 6201 | else
|
---|
[24901] | 6202 | echo "$as_me: failed program was:" >&5
|
---|
| 6203 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6204 |
|
---|
| 6205 | ac_cv_func_alloca_works=no
|
---|
[16568] | 6206 | fi
|
---|
[24901] | 6207 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6208 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 6209 | fi
|
---|
[24901] | 6210 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 6211 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[16568] | 6212 |
|
---|
| 6213 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 6214 |
|
---|
[24901] | 6215 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6216 | #define HAVE_ALLOCA 1
|
---|
| 6217 | _ACEOF
|
---|
[16568] | 6218 |
|
---|
| 6219 | else
|
---|
| 6220 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 6221 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 6222 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 6223 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 6224 |
|
---|
[24901] | 6225 | ALLOCA=alloca.$ac_objext
|
---|
[16568] | 6226 |
|
---|
[24901] | 6227 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6228 | #define C_ALLOCA 1
|
---|
| 6229 | _ACEOF
|
---|
[16568] | 6230 |
|
---|
| 6231 |
|
---|
[24901] | 6232 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 6233 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 6234 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 6235 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6236 | else
|
---|
[24901] | 6237 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6238 | /* confdefs.h. */
|
---|
| 6239 | _ACEOF
|
---|
| 6240 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6241 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6242 | /* end confdefs.h. */
|
---|
[24901] | 6243 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
[16568] | 6244 | webecray
|
---|
| 6245 | #else
|
---|
| 6246 | wenotbecray
|
---|
| 6247 | #endif
|
---|
| 6248 |
|
---|
| 6249 | _ACEOF
|
---|
| 6250 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6251 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[16568] | 6252 | ac_cv_os_cray=yes
|
---|
| 6253 | else
|
---|
| 6254 | ac_cv_os_cray=no
|
---|
| 6255 | fi
|
---|
| 6256 | rm -f conftest*
|
---|
| 6257 |
|
---|
| 6258 | fi
|
---|
[24901] | 6259 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 6260 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[16568] | 6261 | if test $ac_cv_os_cray = yes; then
|
---|
| 6262 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[24901] | 6263 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6264 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6265 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6266 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6267 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6268 | else
|
---|
| 6269 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6270 | /* confdefs.h. */
|
---|
| 6271 | _ACEOF
|
---|
| 6272 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6273 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6274 | /* end confdefs.h. */
|
---|
| 6275 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6276 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6277 | #define $ac_func innocuous_$ac_func
|
---|
[16568] | 6278 |
|
---|
[24901] | 6279 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6280 | which can conflict with char $ac_func (); below.
|
---|
| 6281 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6282 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6283 |
|
---|
| 6284 | #ifdef __STDC__
|
---|
| 6285 | # include <limits.h>
|
---|
| 6286 | #else
|
---|
| 6287 | # include <assert.h>
|
---|
| 6288 | #endif
|
---|
| 6289 |
|
---|
| 6290 | #undef $ac_func
|
---|
| 6291 |
|
---|
| 6292 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6293 | #ifdef __cplusplus
|
---|
| 6294 | extern "C"
|
---|
| 6295 | {
|
---|
| 6296 | #endif
|
---|
| 6297 | /* We use char because int might match the return type of a gcc2
|
---|
| 6298 | builtin and then its argument prototype would still apply. */
|
---|
| 6299 | char $ac_func ();
|
---|
| 6300 | /* The GNU C library defines this for functions which it implements
|
---|
| 6301 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6302 | something starting with __ and the normal name is an alias. */
|
---|
| 6303 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6304 | choke me
|
---|
| 6305 | #else
|
---|
| 6306 | char (*f) () = $ac_func;
|
---|
| 6307 | #endif
|
---|
| 6308 | #ifdef __cplusplus
|
---|
| 6309 | }
|
---|
| 6310 | #endif
|
---|
| 6311 |
|
---|
| 6312 | int
|
---|
| 6313 | main ()
|
---|
| 6314 | {
|
---|
| 6315 | return f != $ac_func;
|
---|
| 6316 | ;
|
---|
| 6317 | return 0;
|
---|
| 6318 | }
|
---|
| 6319 | _ACEOF
|
---|
| 6320 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6322 | (eval $ac_link) 2>conftest.er1
|
---|
| 6323 | ac_status=$?
|
---|
| 6324 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6325 | rm -f conftest.er1
|
---|
| 6326 | cat conftest.err >&5
|
---|
| 6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6328 | (exit $ac_status); } &&
|
---|
| 6329 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6330 | || test ! -s conftest.err'
|
---|
| 6331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6332 | (eval $ac_try) 2>&5
|
---|
| 6333 | ac_status=$?
|
---|
| 6334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6335 | (exit $ac_status); }; } &&
|
---|
| 6336 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6338 | (eval $ac_try) 2>&5
|
---|
| 6339 | ac_status=$?
|
---|
| 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6341 | (exit $ac_status); }; }; then
|
---|
| 6342 | eval "$as_ac_var=yes"
|
---|
| 6343 | else
|
---|
| 6344 | echo "$as_me: failed program was:" >&5
|
---|
| 6345 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6346 |
|
---|
| 6347 | eval "$as_ac_var=no"
|
---|
| 6348 | fi
|
---|
| 6349 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6350 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6351 | fi
|
---|
| 6352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6353 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6354 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6355 |
|
---|
[16568] | 6356 | cat >>confdefs.h <<_ACEOF
|
---|
| 6357 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 6358 | _ACEOF
|
---|
| 6359 |
|
---|
| 6360 | break
|
---|
| 6361 | fi
|
---|
| 6362 |
|
---|
| 6363 | done
|
---|
| 6364 | fi
|
---|
| 6365 |
|
---|
[24901] | 6366 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 6367 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 6368 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 6369 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6370 | else
|
---|
[24901] | 6371 | if test "$cross_compiling" = yes; then
|
---|
[16568] | 6372 | ac_cv_c_stack_direction=0
|
---|
| 6373 | else
|
---|
[24901] | 6374 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6375 | /* confdefs.h. */
|
---|
| 6376 | _ACEOF
|
---|
| 6377 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6378 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6379 | /* end confdefs.h. */
|
---|
| 6380 | int
|
---|
| 6381 | find_stack_direction ()
|
---|
| 6382 | {
|
---|
| 6383 | static char *addr = 0;
|
---|
| 6384 | auto char dummy;
|
---|
| 6385 | if (addr == 0)
|
---|
| 6386 | {
|
---|
| 6387 | addr = &dummy;
|
---|
| 6388 | return find_stack_direction ();
|
---|
| 6389 | }
|
---|
| 6390 | else
|
---|
| 6391 | return (&dummy > addr) ? 1 : -1;
|
---|
| 6392 | }
|
---|
| 6393 |
|
---|
| 6394 | int
|
---|
| 6395 | main ()
|
---|
| 6396 | {
|
---|
[24901] | 6397 | exit (find_stack_direction () < 0);
|
---|
[16568] | 6398 | }
|
---|
| 6399 | _ACEOF
|
---|
[24901] | 6400 | rm -f conftest$ac_exeext
|
---|
| 6401 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6402 | (eval $ac_link) 2>&5
|
---|
| 6403 | ac_status=$?
|
---|
| 6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6405 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 6406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6407 | (eval $ac_try) 2>&5
|
---|
| 6408 | ac_status=$?
|
---|
| 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6410 | (exit $ac_status); }; }; then
|
---|
[16568] | 6411 | ac_cv_c_stack_direction=1
|
---|
| 6412 | else
|
---|
[24901] | 6413 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 6414 | echo "$as_me: failed program was:" >&5
|
---|
| 6415 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6416 |
|
---|
| 6417 | ( exit $ac_status )
|
---|
| 6418 | ac_cv_c_stack_direction=-1
|
---|
[16568] | 6419 | fi
|
---|
[24901] | 6420 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 6421 | fi
|
---|
[24901] | 6422 | fi
|
---|
| 6423 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 6424 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[23356] | 6425 |
|
---|
[16568] | 6426 | cat >>confdefs.h <<_ACEOF
|
---|
| 6427 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 6428 | _ACEOF
|
---|
| 6429 |
|
---|
| 6430 |
|
---|
| 6431 | fi
|
---|
| 6432 |
|
---|
| 6433 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[24901] | 6434 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 6435 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 6436 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 6437 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6438 | else
|
---|
| 6439 | ac_pattern="Autoconf.*'x'"
|
---|
[24901] | 6440 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6441 | /* confdefs.h. */
|
---|
| 6442 | _ACEOF
|
---|
| 6443 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6444 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6445 | /* end confdefs.h. */
|
---|
| 6446 | #include <sgtty.h>
|
---|
| 6447 | Autoconf TIOCGETP
|
---|
| 6448 | _ACEOF
|
---|
| 6449 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6450 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[16568] | 6451 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6452 | else
|
---|
| 6453 | ac_cv_prog_gcc_traditional=no
|
---|
| 6454 | fi
|
---|
| 6455 | rm -f conftest*
|
---|
| 6456 |
|
---|
| 6457 |
|
---|
| 6458 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[24901] | 6459 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6460 | /* confdefs.h. */
|
---|
| 6461 | _ACEOF
|
---|
| 6462 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6463 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6464 | /* end confdefs.h. */
|
---|
| 6465 | #include <termio.h>
|
---|
| 6466 | Autoconf TCGETA
|
---|
| 6467 | _ACEOF
|
---|
| 6468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6469 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[16568] | 6470 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6471 | fi
|
---|
| 6472 | rm -f conftest*
|
---|
| 6473 |
|
---|
| 6474 | fi
|
---|
| 6475 | fi
|
---|
[24901] | 6476 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 6477 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[16568] | 6478 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 6479 | CC="$CC -traditional"
|
---|
| 6480 | fi
|
---|
| 6481 | fi
|
---|
| 6482 |
|
---|
[24901] | 6483 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 6484 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 6485 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 6486 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6487 | else
|
---|
[24901] | 6488 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6489 | /* confdefs.h. */
|
---|
| 6490 | _ACEOF
|
---|
| 6491 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6492 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6493 | /* end confdefs.h. */
|
---|
| 6494 | #include <sys/types.h>
|
---|
| 6495 | #include <signal.h>
|
---|
[24901] | 6496 | #ifdef signal
|
---|
| 6497 | # undef signal
|
---|
| 6498 | #endif
|
---|
| 6499 | #ifdef __cplusplus
|
---|
| 6500 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 6501 | #else
|
---|
| 6502 | void (*signal ()) ();
|
---|
| 6503 | #endif
|
---|
[16568] | 6504 |
|
---|
| 6505 | int
|
---|
| 6506 | main ()
|
---|
| 6507 | {
|
---|
[24901] | 6508 | int i;
|
---|
[16568] | 6509 | ;
|
---|
| 6510 | return 0;
|
---|
| 6511 | }
|
---|
| 6512 | _ACEOF
|
---|
[24901] | 6513 | rm -f conftest.$ac_objext
|
---|
| 6514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6515 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6516 | ac_status=$?
|
---|
| 6517 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6518 | rm -f conftest.er1
|
---|
| 6519 | cat conftest.err >&5
|
---|
| 6520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6521 | (exit $ac_status); } &&
|
---|
| 6522 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6523 | || test ! -s conftest.err'
|
---|
| 6524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6525 | (eval $ac_try) 2>&5
|
---|
| 6526 | ac_status=$?
|
---|
| 6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6528 | (exit $ac_status); }; } &&
|
---|
| 6529 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6531 | (eval $ac_try) 2>&5
|
---|
| 6532 | ac_status=$?
|
---|
| 6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6534 | (exit $ac_status); }; }; then
|
---|
| 6535 | ac_cv_type_signal=void
|
---|
[23356] | 6536 | else
|
---|
[24901] | 6537 | echo "$as_me: failed program was:" >&5
|
---|
| 6538 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6539 |
|
---|
| 6540 | ac_cv_type_signal=int
|
---|
[16568] | 6541 | fi
|
---|
[24901] | 6542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 6543 | fi
|
---|
[24901] | 6544 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 6545 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[16568] | 6546 |
|
---|
| 6547 | cat >>confdefs.h <<_ACEOF
|
---|
| 6548 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
| 6549 | _ACEOF
|
---|
| 6550 |
|
---|
| 6551 |
|
---|
[24901] | 6552 |
|
---|
[16568] | 6553 | for ac_func in vprintf
|
---|
[24901] | 6554 | do
|
---|
| 6555 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6556 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6557 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6558 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6559 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6560 | else
|
---|
| 6561 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6562 | /* confdefs.h. */
|
---|
| 6563 | _ACEOF
|
---|
| 6564 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6565 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6566 | /* end confdefs.h. */
|
---|
| 6567 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6568 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6569 | #define $ac_func innocuous_$ac_func
|
---|
| 6570 |
|
---|
| 6571 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6572 | which can conflict with char $ac_func (); below.
|
---|
| 6573 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6574 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6575 |
|
---|
| 6576 | #ifdef __STDC__
|
---|
| 6577 | # include <limits.h>
|
---|
| 6578 | #else
|
---|
| 6579 | # include <assert.h>
|
---|
| 6580 | #endif
|
---|
| 6581 |
|
---|
| 6582 | #undef $ac_func
|
---|
| 6583 |
|
---|
| 6584 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6585 | #ifdef __cplusplus
|
---|
| 6586 | extern "C"
|
---|
| 6587 | {
|
---|
| 6588 | #endif
|
---|
| 6589 | /* We use char because int might match the return type of a gcc2
|
---|
| 6590 | builtin and then its argument prototype would still apply. */
|
---|
| 6591 | char $ac_func ();
|
---|
| 6592 | /* The GNU C library defines this for functions which it implements
|
---|
| 6593 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6594 | something starting with __ and the normal name is an alias. */
|
---|
| 6595 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6596 | choke me
|
---|
| 6597 | #else
|
---|
| 6598 | char (*f) () = $ac_func;
|
---|
| 6599 | #endif
|
---|
| 6600 | #ifdef __cplusplus
|
---|
| 6601 | }
|
---|
| 6602 | #endif
|
---|
| 6603 |
|
---|
| 6604 | int
|
---|
| 6605 | main ()
|
---|
| 6606 | {
|
---|
| 6607 | return f != $ac_func;
|
---|
| 6608 | ;
|
---|
| 6609 | return 0;
|
---|
| 6610 | }
|
---|
| 6611 | _ACEOF
|
---|
| 6612 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6614 | (eval $ac_link) 2>conftest.er1
|
---|
| 6615 | ac_status=$?
|
---|
| 6616 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6617 | rm -f conftest.er1
|
---|
| 6618 | cat conftest.err >&5
|
---|
| 6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6620 | (exit $ac_status); } &&
|
---|
| 6621 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6622 | || test ! -s conftest.err'
|
---|
| 6623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6624 | (eval $ac_try) 2>&5
|
---|
| 6625 | ac_status=$?
|
---|
| 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6627 | (exit $ac_status); }; } &&
|
---|
| 6628 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6630 | (eval $ac_try) 2>&5
|
---|
| 6631 | ac_status=$?
|
---|
| 6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6633 | (exit $ac_status); }; }; then
|
---|
| 6634 | eval "$as_ac_var=yes"
|
---|
| 6635 | else
|
---|
| 6636 | echo "$as_me: failed program was:" >&5
|
---|
| 6637 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6638 |
|
---|
| 6639 | eval "$as_ac_var=no"
|
---|
| 6640 | fi
|
---|
| 6641 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6642 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6643 | fi
|
---|
| 6644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6645 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6646 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[16568] | 6647 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 6648 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[16568] | 6649 | _ACEOF
|
---|
| 6650 |
|
---|
[24901] | 6651 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6652 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6653 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6654 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6655 | else
|
---|
| 6656 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6657 | /* confdefs.h. */
|
---|
| 6658 | _ACEOF
|
---|
| 6659 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6660 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6661 | /* end confdefs.h. */
|
---|
| 6662 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6663 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6664 | #define _doprnt innocuous__doprnt
|
---|
[16568] | 6665 |
|
---|
[24901] | 6666 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6667 | which can conflict with char _doprnt (); below.
|
---|
| 6668 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6669 | <limits.h> exists even on freestanding compilers. */
|
---|
[16568] | 6670 |
|
---|
[24901] | 6671 | #ifdef __STDC__
|
---|
| 6672 | # include <limits.h>
|
---|
| 6673 | #else
|
---|
| 6674 | # include <assert.h>
|
---|
| 6675 | #endif
|
---|
| 6676 |
|
---|
| 6677 | #undef _doprnt
|
---|
| 6678 |
|
---|
| 6679 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6680 | #ifdef __cplusplus
|
---|
| 6681 | extern "C"
|
---|
| 6682 | {
|
---|
| 6683 | #endif
|
---|
| 6684 | /* We use char because int might match the return type of a gcc2
|
---|
| 6685 | builtin and then its argument prototype would still apply. */
|
---|
| 6686 | char _doprnt ();
|
---|
| 6687 | /* The GNU C library defines this for functions which it implements
|
---|
| 6688 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6689 | something starting with __ and the normal name is an alias. */
|
---|
| 6690 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6691 | choke me
|
---|
| 6692 | #else
|
---|
| 6693 | char (*f) () = _doprnt;
|
---|
| 6694 | #endif
|
---|
| 6695 | #ifdef __cplusplus
|
---|
| 6696 | }
|
---|
| 6697 | #endif
|
---|
| 6698 |
|
---|
| 6699 | int
|
---|
| 6700 | main ()
|
---|
| 6701 | {
|
---|
| 6702 | return f != _doprnt;
|
---|
| 6703 | ;
|
---|
| 6704 | return 0;
|
---|
| 6705 | }
|
---|
| 6706 | _ACEOF
|
---|
| 6707 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6709 | (eval $ac_link) 2>conftest.er1
|
---|
| 6710 | ac_status=$?
|
---|
| 6711 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6712 | rm -f conftest.er1
|
---|
| 6713 | cat conftest.err >&5
|
---|
| 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6715 | (exit $ac_status); } &&
|
---|
| 6716 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6717 | || test ! -s conftest.err'
|
---|
| 6718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6719 | (eval $ac_try) 2>&5
|
---|
| 6720 | ac_status=$?
|
---|
| 6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6722 | (exit $ac_status); }; } &&
|
---|
| 6723 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6725 | (eval $ac_try) 2>&5
|
---|
| 6726 | ac_status=$?
|
---|
| 6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6728 | (exit $ac_status); }; }; then
|
---|
| 6729 | ac_cv_func__doprnt=yes
|
---|
| 6730 | else
|
---|
| 6731 | echo "$as_me: failed program was:" >&5
|
---|
| 6732 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6733 |
|
---|
| 6734 | ac_cv_func__doprnt=no
|
---|
[16568] | 6735 | fi
|
---|
[24901] | 6736 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6737 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6738 | fi
|
---|
| 6739 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6740 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6741 | if test $ac_cv_func__doprnt = yes; then
|
---|
[16568] | 6742 |
|
---|
[24901] | 6743 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6744 | #define HAVE_DOPRNT 1
|
---|
| 6745 | _ACEOF
|
---|
| 6746 |
|
---|
[16568] | 6747 | fi
|
---|
[24901] | 6748 |
|
---|
| 6749 | fi
|
---|
[16568] | 6750 | done
|
---|
| 6751 |
|
---|
| 6752 |
|
---|
[24901] | 6753 |
|
---|
| 6754 |
|
---|
| 6755 |
|
---|
| 6756 |
|
---|
| 6757 |
|
---|
| 6758 |
|
---|
| 6759 |
|
---|
| 6760 |
|
---|
| 6761 |
|
---|
| 6762 |
|
---|
[16568] | 6763 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[24901] | 6764 | do
|
---|
| 6765 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6766 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6767 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6768 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6769 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6770 | else
|
---|
| 6771 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6772 | /* confdefs.h. */
|
---|
| 6773 | _ACEOF
|
---|
| 6774 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6775 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6776 | /* end confdefs.h. */
|
---|
| 6777 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6779 | #define $ac_func innocuous_$ac_func
|
---|
| 6780 |
|
---|
| 6781 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6782 | which can conflict with char $ac_func (); below.
|
---|
| 6783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6784 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6785 |
|
---|
| 6786 | #ifdef __STDC__
|
---|
| 6787 | # include <limits.h>
|
---|
| 6788 | #else
|
---|
| 6789 | # include <assert.h>
|
---|
| 6790 | #endif
|
---|
| 6791 |
|
---|
| 6792 | #undef $ac_func
|
---|
| 6793 |
|
---|
| 6794 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6795 | #ifdef __cplusplus
|
---|
| 6796 | extern "C"
|
---|
| 6797 | {
|
---|
| 6798 | #endif
|
---|
| 6799 | /* We use char because int might match the return type of a gcc2
|
---|
| 6800 | builtin and then its argument prototype would still apply. */
|
---|
| 6801 | char $ac_func ();
|
---|
| 6802 | /* The GNU C library defines this for functions which it implements
|
---|
| 6803 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6804 | something starting with __ and the normal name is an alias. */
|
---|
| 6805 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6806 | choke me
|
---|
| 6807 | #else
|
---|
| 6808 | char (*f) () = $ac_func;
|
---|
| 6809 | #endif
|
---|
| 6810 | #ifdef __cplusplus
|
---|
| 6811 | }
|
---|
| 6812 | #endif
|
---|
| 6813 |
|
---|
| 6814 | int
|
---|
| 6815 | main ()
|
---|
| 6816 | {
|
---|
| 6817 | return f != $ac_func;
|
---|
| 6818 | ;
|
---|
| 6819 | return 0;
|
---|
| 6820 | }
|
---|
| 6821 | _ACEOF
|
---|
| 6822 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6824 | (eval $ac_link) 2>conftest.er1
|
---|
| 6825 | ac_status=$?
|
---|
| 6826 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6827 | rm -f conftest.er1
|
---|
| 6828 | cat conftest.err >&5
|
---|
| 6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6830 | (exit $ac_status); } &&
|
---|
| 6831 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6832 | || test ! -s conftest.err'
|
---|
| 6833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6834 | (eval $ac_try) 2>&5
|
---|
| 6835 | ac_status=$?
|
---|
| 6836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6837 | (exit $ac_status); }; } &&
|
---|
| 6838 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6840 | (eval $ac_try) 2>&5
|
---|
| 6841 | ac_status=$?
|
---|
| 6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6843 | (exit $ac_status); }; }; then
|
---|
| 6844 | eval "$as_ac_var=yes"
|
---|
| 6845 | else
|
---|
| 6846 | echo "$as_me: failed program was:" >&5
|
---|
| 6847 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6848 |
|
---|
| 6849 | eval "$as_ac_var=no"
|
---|
| 6850 | fi
|
---|
| 6851 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6852 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6853 | fi
|
---|
| 6854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6855 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6856 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[16568] | 6857 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 6858 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[16568] | 6859 | _ACEOF
|
---|
| 6860 |
|
---|
| 6861 | fi
|
---|
| 6862 | done
|
---|
| 6863 |
|
---|
| 6864 |
|
---|
[24901] | 6865 |
|
---|
| 6866 |
|
---|
| 6867 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6868 | do
|
---|
| 6869 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6870 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6871 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6872 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6873 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6874 | else
|
---|
[24901] | 6875 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6876 | /* confdefs.h. */
|
---|
| 6877 | _ACEOF
|
---|
| 6878 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6879 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6880 | /* end confdefs.h. */
|
---|
| 6881 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6883 | #define $ac_func innocuous_$ac_func
|
---|
[16568] | 6884 |
|
---|
[24901] | 6885 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6886 | which can conflict with char $ac_func (); below.
|
---|
| 6887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6888 | <limits.h> exists even on freestanding compilers. */
|
---|
[16568] | 6889 |
|
---|
[24901] | 6890 | #ifdef __STDC__
|
---|
| 6891 | # include <limits.h>
|
---|
| 6892 | #else
|
---|
| 6893 | # include <assert.h>
|
---|
| 6894 | #endif
|
---|
[16568] | 6895 |
|
---|
[24901] | 6896 | #undef $ac_func
|
---|
| 6897 |
|
---|
| 6898 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6899 | #ifdef __cplusplus
|
---|
| 6900 | extern "C"
|
---|
| 6901 | {
|
---|
| 6902 | #endif
|
---|
| 6903 | /* We use char because int might match the return type of a gcc2
|
---|
| 6904 | builtin and then its argument prototype would still apply. */
|
---|
| 6905 | char $ac_func ();
|
---|
| 6906 | /* The GNU C library defines this for functions which it implements
|
---|
| 6907 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6908 | something starting with __ and the normal name is an alias. */
|
---|
| 6909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6910 | choke me
|
---|
| 6911 | #else
|
---|
| 6912 | char (*f) () = $ac_func;
|
---|
| 6913 | #endif
|
---|
| 6914 | #ifdef __cplusplus
|
---|
| 6915 | }
|
---|
| 6916 | #endif
|
---|
| 6917 |
|
---|
| 6918 | int
|
---|
| 6919 | main ()
|
---|
| 6920 | {
|
---|
| 6921 | return f != $ac_func;
|
---|
| 6922 | ;
|
---|
| 6923 | return 0;
|
---|
| 6924 | }
|
---|
| 6925 | _ACEOF
|
---|
| 6926 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6928 | (eval $ac_link) 2>conftest.er1
|
---|
| 6929 | ac_status=$?
|
---|
| 6930 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6931 | rm -f conftest.er1
|
---|
| 6932 | cat conftest.err >&5
|
---|
| 6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6934 | (exit $ac_status); } &&
|
---|
| 6935 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6936 | || test ! -s conftest.err'
|
---|
| 6937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6938 | (eval $ac_try) 2>&5
|
---|
| 6939 | ac_status=$?
|
---|
| 6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6941 | (exit $ac_status); }; } &&
|
---|
| 6942 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6944 | (eval $ac_try) 2>&5
|
---|
| 6945 | ac_status=$?
|
---|
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6947 | (exit $ac_status); }; }; then
|
---|
| 6948 | eval "$as_ac_var=yes"
|
---|
[16568] | 6949 | else
|
---|
[24901] | 6950 | echo "$as_me: failed program was:" >&5
|
---|
| 6951 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 6952 |
|
---|
[24901] | 6953 | eval "$as_ac_var=no"
|
---|
[16568] | 6954 | fi
|
---|
[24901] | 6955 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6956 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6957 | fi
|
---|
| 6958 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6959 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6960 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6961 | cat >>confdefs.h <<_ACEOF
|
---|
| 6962 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6963 | _ACEOF
|
---|
[16568] | 6964 |
|
---|
| 6965 | else
|
---|
[24901] | 6966 | case $LIBOBJS in
|
---|
| 6967 | "$ac_func.$ac_objext" | \
|
---|
| 6968 | *" $ac_func.$ac_objext" | \
|
---|
| 6969 | "$ac_func.$ac_objext "* | \
|
---|
| 6970 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6971 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
[16568] | 6972 | esac
|
---|
| 6973 |
|
---|
| 6974 | fi
|
---|
[24901] | 6975 | done
|
---|
[16568] | 6976 |
|
---|
| 6977 |
|
---|
| 6978 |
|
---|
[24901] | 6979 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6980 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6981 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6982 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6983 | else
|
---|
| 6984 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6985 | /* confdefs.h. */
|
---|
| 6986 | _ACEOF
|
---|
| 6987 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6988 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6989 | /* end confdefs.h. */
|
---|
| 6990 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6992 | #define textdomain innocuous_textdomain
|
---|
[16568] | 6993 |
|
---|
[24901] | 6994 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6995 | which can conflict with char textdomain (); below.
|
---|
| 6996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6997 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6998 |
|
---|
| 6999 | #ifdef __STDC__
|
---|
| 7000 | # include <limits.h>
|
---|
| 7001 | #else
|
---|
| 7002 | # include <assert.h>
|
---|
| 7003 | #endif
|
---|
| 7004 |
|
---|
| 7005 | #undef textdomain
|
---|
| 7006 |
|
---|
| 7007 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 7008 | #ifdef __cplusplus
|
---|
| 7009 | extern "C"
|
---|
| 7010 | {
|
---|
| 7011 | #endif
|
---|
| 7012 | /* We use char because int might match the return type of a gcc2
|
---|
| 7013 | builtin and then its argument prototype would still apply. */
|
---|
| 7014 | char textdomain ();
|
---|
| 7015 | /* The GNU C library defines this for functions which it implements
|
---|
| 7016 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7017 | something starting with __ and the normal name is an alias. */
|
---|
| 7018 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
| 7019 | choke me
|
---|
| 7020 | #else
|
---|
| 7021 | char (*f) () = textdomain;
|
---|
| 7022 | #endif
|
---|
| 7023 | #ifdef __cplusplus
|
---|
| 7024 | }
|
---|
| 7025 | #endif
|
---|
| 7026 |
|
---|
| 7027 | int
|
---|
| 7028 | main ()
|
---|
| 7029 | {
|
---|
| 7030 | return f != textdomain;
|
---|
| 7031 | ;
|
---|
| 7032 | return 0;
|
---|
| 7033 | }
|
---|
| 7034 | _ACEOF
|
---|
| 7035 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 7036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7037 | (eval $ac_link) 2>conftest.er1
|
---|
| 7038 | ac_status=$?
|
---|
| 7039 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7040 | rm -f conftest.er1
|
---|
| 7041 | cat conftest.err >&5
|
---|
| 7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7043 | (exit $ac_status); } &&
|
---|
| 7044 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7045 | || test ! -s conftest.err'
|
---|
| 7046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7047 | (eval $ac_try) 2>&5
|
---|
| 7048 | ac_status=$?
|
---|
| 7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7050 | (exit $ac_status); }; } &&
|
---|
| 7051 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7053 | (eval $ac_try) 2>&5
|
---|
| 7054 | ac_status=$?
|
---|
| 7055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7056 | (exit $ac_status); }; }; then
|
---|
| 7057 | ac_cv_func_textdomain=yes
|
---|
| 7058 | else
|
---|
| 7059 | echo "$as_me: failed program was:" >&5
|
---|
| 7060 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7061 |
|
---|
| 7062 | ac_cv_func_textdomain=no
|
---|
[16568] | 7063 | fi
|
---|
[24901] | 7064 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7065 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7066 | fi
|
---|
| 7067 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 7068 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 7069 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 7070 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7071 | #define ENABLE_NLS 1
|
---|
| 7072 | _ACEOF
|
---|
[16568] | 7073 |
|
---|
[24901] | 7074 | fi
|
---|
[16568] | 7075 |
|
---|
[24901] | 7076 |
|
---|
[16568] | 7077 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 7078 | # ---------------------------------------------------------------------------
|
---|
[24901] | 7079 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 7080 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[16568] | 7081 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[24901] | 7082 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7083 | echo "${ECHO_T}yes" >&6
|
---|
| 7084 | case $LIBOBJS in
|
---|
| 7085 | "gmalloc.$ac_objext" | \
|
---|
| 7086 | *" gmalloc.$ac_objext" | \
|
---|
| 7087 | "gmalloc.$ac_objext "* | \
|
---|
[16568] | 7088 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[24901] | 7089 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
[16568] | 7090 | esac
|
---|
| 7091 |
|
---|
[24901] | 7092 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7093 | #define HAVE_VALLOC 1
|
---|
| 7094 | _ACEOF
|
---|
[16568] | 7095 |
|
---|
| 7096 | else
|
---|
[24901] | 7097 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7098 | echo "${ECHO_T}no" >&6
|
---|
| 7099 |
|
---|
| 7100 | for ac_func in valloc
|
---|
| 7101 | do
|
---|
| 7102 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 7103 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 7104 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 7105 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 7106 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7107 | else
|
---|
| 7108 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7109 | /* confdefs.h. */
|
---|
| 7110 | _ACEOF
|
---|
| 7111 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7112 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7113 | /* end confdefs.h. */
|
---|
| 7114 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 7115 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7116 | #define $ac_func innocuous_$ac_func
|
---|
| 7117 |
|
---|
| 7118 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7119 | which can conflict with char $ac_func (); below.
|
---|
| 7120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7121 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7122 |
|
---|
| 7123 | #ifdef __STDC__
|
---|
| 7124 | # include <limits.h>
|
---|
| 7125 | #else
|
---|
| 7126 | # include <assert.h>
|
---|
| 7127 | #endif
|
---|
| 7128 |
|
---|
| 7129 | #undef $ac_func
|
---|
| 7130 |
|
---|
| 7131 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 7132 | #ifdef __cplusplus
|
---|
| 7133 | extern "C"
|
---|
| 7134 | {
|
---|
| 7135 | #endif
|
---|
| 7136 | /* We use char because int might match the return type of a gcc2
|
---|
| 7137 | builtin and then its argument prototype would still apply. */
|
---|
| 7138 | char $ac_func ();
|
---|
| 7139 | /* The GNU C library defines this for functions which it implements
|
---|
| 7140 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7141 | something starting with __ and the normal name is an alias. */
|
---|
| 7142 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 7143 | choke me
|
---|
| 7144 | #else
|
---|
| 7145 | char (*f) () = $ac_func;
|
---|
| 7146 | #endif
|
---|
| 7147 | #ifdef __cplusplus
|
---|
| 7148 | }
|
---|
| 7149 | #endif
|
---|
| 7150 |
|
---|
| 7151 | int
|
---|
| 7152 | main ()
|
---|
| 7153 | {
|
---|
| 7154 | return f != $ac_func;
|
---|
| 7155 | ;
|
---|
| 7156 | return 0;
|
---|
| 7157 | }
|
---|
| 7158 | _ACEOF
|
---|
| 7159 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 7160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7161 | (eval $ac_link) 2>conftest.er1
|
---|
| 7162 | ac_status=$?
|
---|
| 7163 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7164 | rm -f conftest.er1
|
---|
| 7165 | cat conftest.err >&5
|
---|
| 7166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7167 | (exit $ac_status); } &&
|
---|
| 7168 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7169 | || test ! -s conftest.err'
|
---|
| 7170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7171 | (eval $ac_try) 2>&5
|
---|
| 7172 | ac_status=$?
|
---|
| 7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7174 | (exit $ac_status); }; } &&
|
---|
| 7175 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7177 | (eval $ac_try) 2>&5
|
---|
| 7178 | ac_status=$?
|
---|
| 7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7180 | (exit $ac_status); }; }; then
|
---|
| 7181 | eval "$as_ac_var=yes"
|
---|
| 7182 | else
|
---|
| 7183 | echo "$as_me: failed program was:" >&5
|
---|
| 7184 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7185 |
|
---|
| 7186 | eval "$as_ac_var=no"
|
---|
| 7187 | fi
|
---|
| 7188 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7189 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7190 | fi
|
---|
| 7191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 7192 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 7193 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[16568] | 7194 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 7195 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[16568] | 7196 | _ACEOF
|
---|
| 7197 |
|
---|
| 7198 | fi
|
---|
| 7199 | done
|
---|
| 7200 |
|
---|
| 7201 | fi
|
---|
| 7202 |
|
---|
| 7203 | # we cannot generate static libraries under Darwin
|
---|
[24901] | 7204 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 7205 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[16568] | 7206 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[24901] | 7207 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7208 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 7209 | STATIC=""
|
---|
| 7210 | else
|
---|
[24901] | 7211 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7212 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 7213 | STATIC="-static "
|
---|
| 7214 | fi
|
---|
| 7215 |
|
---|
| 7216 |
|
---|
[24901] | 7217 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 7218 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
[16568] | 7219 |
|
---|
[24901] | 7220 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 7221 | if test "${with_dmalloc+set}" = set; then
|
---|
| 7222 | withval="$with_dmalloc"
|
---|
| 7223 | if test "$withval" = yes; then
|
---|
| 7224 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7225 | echo "${ECHO_T}yes" >&6
|
---|
| 7226 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7227 | #define WITH_DMALLOC 1
|
---|
| 7228 | _ACEOF
|
---|
[16568] | 7229 |
|
---|
| 7230 | LIBS="$LIBS -ldmalloc"
|
---|
| 7231 | LDFLAGS="$LDFLAGS -g"
|
---|
| 7232 | else
|
---|
[24901] | 7233 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7234 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 7235 | fi
|
---|
| 7236 | else
|
---|
[24901] | 7237 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7238 | echo "${ECHO_T}no" >&6
|
---|
| 7239 | fi;
|
---|
[16568] | 7240 |
|
---|
[24901] | 7241 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 7242 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[16568] | 7243 |
|
---|
[24901] | 7244 | # Check whether --with-regex or --without-regex was given.
|
---|
| 7245 | if test "${with_regex+set}" = set; then
|
---|
| 7246 | withval="$with_regex"
|
---|
| 7247 | if test "$withval" = yes; then
|
---|
[16568] | 7248 | ac_with_regex=1
|
---|
[24901] | 7249 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 7250 | echo "${ECHO_T}regex" >&6
|
---|
| 7251 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7252 | #define WITH_REGEX 1
|
---|
| 7253 | _ACEOF
|
---|
[16568] | 7254 |
|
---|
[24901] | 7255 | case $LIBOBJS in
|
---|
| 7256 | "regex.$ac_objext" | \
|
---|
| 7257 | *" regex.$ac_objext" | \
|
---|
| 7258 | "regex.$ac_objext "* | \
|
---|
[16568] | 7259 | *" regex.$ac_objext "* ) ;;
|
---|
[24901] | 7260 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
[16568] | 7261 | esac
|
---|
| 7262 |
|
---|
| 7263 | fi
|
---|
[24901] | 7264 | fi;
|
---|
[16568] | 7265 | if test -z "$ac_with_regex"; then
|
---|
[24901] | 7266 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 7267 | echo "${ECHO_T}rx" >&6
|
---|
| 7268 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 7269 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 7270 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 7271 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7272 | else
|
---|
| 7273 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7274 | /* confdefs.h. */
|
---|
| 7275 | _ACEOF
|
---|
| 7276 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7277 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7278 | /* end confdefs.h. */
|
---|
| 7279 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 7280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7281 | #define re_rx_search innocuous_re_rx_search
|
---|
[16568] | 7282 |
|
---|
[24901] | 7283 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7284 | which can conflict with char re_rx_search (); below.
|
---|
| 7285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7286 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7287 |
|
---|
| 7288 | #ifdef __STDC__
|
---|
| 7289 | # include <limits.h>
|
---|
| 7290 | #else
|
---|
| 7291 | # include <assert.h>
|
---|
| 7292 | #endif
|
---|
| 7293 |
|
---|
| 7294 | #undef re_rx_search
|
---|
| 7295 |
|
---|
| 7296 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 7297 | #ifdef __cplusplus
|
---|
| 7298 | extern "C"
|
---|
| 7299 | {
|
---|
| 7300 | #endif
|
---|
| 7301 | /* We use char because int might match the return type of a gcc2
|
---|
| 7302 | builtin and then its argument prototype would still apply. */
|
---|
| 7303 | char re_rx_search ();
|
---|
| 7304 | /* The GNU C library defines this for functions which it implements
|
---|
| 7305 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7306 | something starting with __ and the normal name is an alias. */
|
---|
| 7307 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 7308 | choke me
|
---|
| 7309 | #else
|
---|
| 7310 | char (*f) () = re_rx_search;
|
---|
| 7311 | #endif
|
---|
| 7312 | #ifdef __cplusplus
|
---|
| 7313 | }
|
---|
| 7314 | #endif
|
---|
| 7315 |
|
---|
| 7316 | int
|
---|
| 7317 | main ()
|
---|
| 7318 | {
|
---|
| 7319 | return f != re_rx_search;
|
---|
| 7320 | ;
|
---|
| 7321 | return 0;
|
---|
| 7322 | }
|
---|
| 7323 | _ACEOF
|
---|
| 7324 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 7325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7326 | (eval $ac_link) 2>conftest.er1
|
---|
| 7327 | ac_status=$?
|
---|
| 7328 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7329 | rm -f conftest.er1
|
---|
| 7330 | cat conftest.err >&5
|
---|
| 7331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7332 | (exit $ac_status); } &&
|
---|
| 7333 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7334 | || test ! -s conftest.err'
|
---|
| 7335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7336 | (eval $ac_try) 2>&5
|
---|
| 7337 | ac_status=$?
|
---|
| 7338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7339 | (exit $ac_status); }; } &&
|
---|
| 7340 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7342 | (eval $ac_try) 2>&5
|
---|
| 7343 | ac_status=$?
|
---|
| 7344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7345 | (exit $ac_status); }; }; then
|
---|
| 7346 | ac_cv_func_re_rx_search=yes
|
---|
[16568] | 7347 | else
|
---|
[24901] | 7348 | echo "$as_me: failed program was:" >&5
|
---|
| 7349 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7350 |
|
---|
| 7351 | ac_cv_func_re_rx_search=no
|
---|
| 7352 | fi
|
---|
| 7353 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7354 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7355 | fi
|
---|
| 7356 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 7357 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 7358 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 7359 | :
|
---|
| 7360 | else
|
---|
| 7361 | case $LIBOBJS in
|
---|
| 7362 | "rx.$ac_objext" | \
|
---|
| 7363 | *" rx.$ac_objext" | \
|
---|
| 7364 | "rx.$ac_objext "* | \
|
---|
[16568] | 7365 | *" rx.$ac_objext "* ) ;;
|
---|
[24901] | 7366 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
[16568] | 7367 | esac
|
---|
| 7368 |
|
---|
| 7369 | fi
|
---|
| 7370 |
|
---|
| 7371 | fi
|
---|
| 7372 |
|
---|
| 7373 |
|
---|
| 7374 | # ---------------------------------------------------------------------------
|
---|
| 7375 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[24901] | 7376 | case $LIBOBJS in
|
---|
| 7377 | "xmalloc.$ac_objext" | \
|
---|
| 7378 | *" xmalloc.$ac_objext" | \
|
---|
| 7379 | "xmalloc.$ac_objext "* | \
|
---|
[16568] | 7380 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[24901] | 7381 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
[16568] | 7382 | esac
|
---|
| 7383 |
|
---|
[24901] | 7384 | case $LIBOBJS in
|
---|
| 7385 | "error.$ac_objext" | \
|
---|
| 7386 | *" error.$ac_objext" | \
|
---|
| 7387 | "error.$ac_objext "* | \
|
---|
[16568] | 7388 | *" error.$ac_objext "* ) ;;
|
---|
[24901] | 7389 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16568] | 7390 | esac
|
---|
| 7391 |
|
---|
| 7392 | fi
|
---|
| 7393 |
|
---|
| 7394 |
|
---|
| 7395 | # ---------------------------------------------------------------------------
|
---|
| 7396 |
|
---|
[24901] | 7397 | ac_ext=cc
|
---|
[16568] | 7398 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 7399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 7400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 7401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 7402 |
|
---|
| 7403 |
|
---|
[24901] | 7404 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 7405 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[16568] | 7406 | success="no"
|
---|
| 7407 | pl_path="$PATH"
|
---|
| 7408 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 7409 | for pl_dir in $pl_path; do
|
---|
| 7410 | test -z "$pl_dir" && pl_dir=.
|
---|
| 7411 | if test -x $pl_dir/perl; then
|
---|
| 7412 | success="yes"
|
---|
| 7413 | break
|
---|
| 7414 | fi
|
---|
| 7415 | done
|
---|
| 7416 | IFS="$pl_save_ifs"
|
---|
| 7417 |
|
---|
| 7418 | success=no
|
---|
[24901] | 7419 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 7420 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[16568] | 7421 |
|
---|
[18214] | 7422 |
|
---|
[24901] | 7423 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7424 | /* confdefs.h. */
|
---|
| 7425 | _ACEOF
|
---|
| 7426 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7427 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7428 | /* end confdefs.h. */
|
---|
| 7429 | #include <vector>
|
---|
| 7430 |
|
---|
| 7431 | int
|
---|
| 7432 | main ()
|
---|
| 7433 | {
|
---|
| 7434 |
|
---|
| 7435 | ;
|
---|
| 7436 | return 0;
|
---|
| 7437 | }
|
---|
| 7438 | _ACEOF
|
---|
[24901] | 7439 | rm -f conftest.$ac_objext
|
---|
| 7440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7441 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7442 | ac_status=$?
|
---|
| 7443 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7444 | rm -f conftest.er1
|
---|
| 7445 | cat conftest.err >&5
|
---|
| 7446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7447 | (exit $ac_status); } &&
|
---|
| 7448 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7449 | || test ! -s conftest.err'
|
---|
| 7450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7451 | (eval $ac_try) 2>&5
|
---|
| 7452 | ac_status=$?
|
---|
| 7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7454 | (exit $ac_status); }; } &&
|
---|
| 7455 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7457 | (eval $ac_try) 2>&5
|
---|
| 7458 | ac_status=$?
|
---|
| 7459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7460 | (exit $ac_status); }; }; then
|
---|
[16568] | 7461 | success=yes
|
---|
[24901] | 7462 | else
|
---|
| 7463 | echo "$as_me: failed program was:" >&5
|
---|
| 7464 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7465 |
|
---|
[16568] | 7466 | fi
|
---|
[24901] | 7467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7468 |
|
---|
| 7469 | if test $success = "no"; then
|
---|
[24901] | 7470 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7471 | /* confdefs.h. */
|
---|
| 7472 | _ACEOF
|
---|
| 7473 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7474 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7475 | /* end confdefs.h. */
|
---|
| 7476 | #include <vector.h>
|
---|
| 7477 |
|
---|
| 7478 | int
|
---|
| 7479 | main ()
|
---|
| 7480 | {
|
---|
| 7481 |
|
---|
| 7482 | ;
|
---|
| 7483 | return 0;
|
---|
| 7484 | }
|
---|
| 7485 | _ACEOF
|
---|
[24901] | 7486 | rm -f conftest.$ac_objext
|
---|
| 7487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7488 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7489 | ac_status=$?
|
---|
| 7490 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7491 | rm -f conftest.er1
|
---|
| 7492 | cat conftest.err >&5
|
---|
| 7493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7494 | (exit $ac_status); } &&
|
---|
| 7495 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7496 | || test ! -s conftest.err'
|
---|
| 7497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7498 | (eval $ac_try) 2>&5
|
---|
| 7499 | ac_status=$?
|
---|
| 7500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7501 | (exit $ac_status); }; } &&
|
---|
| 7502 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7504 | (eval $ac_try) 2>&5
|
---|
| 7505 | ac_status=$?
|
---|
| 7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7507 | (exit $ac_status); }; }; then
|
---|
[16568] | 7508 | success="yes"
|
---|
[24901] | 7509 | else
|
---|
| 7510 | echo "$as_me: failed program was:" >&5
|
---|
| 7511 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7512 |
|
---|
[16568] | 7513 | fi
|
---|
[24901] | 7514 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7515 | fi
|
---|
| 7516 |
|
---|
| 7517 | if test $success = "no"; then
|
---|
[24901] | 7518 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7519 | /* confdefs.h. */
|
---|
| 7520 | _ACEOF
|
---|
| 7521 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7522 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7523 | /* end confdefs.h. */
|
---|
| 7524 | #include <ospace\\std\\vector>
|
---|
| 7525 |
|
---|
| 7526 | int
|
---|
| 7527 | main ()
|
---|
| 7528 | {
|
---|
| 7529 |
|
---|
| 7530 | ;
|
---|
| 7531 | return 0;
|
---|
| 7532 | }
|
---|
| 7533 | _ACEOF
|
---|
[24901] | 7534 | rm -f conftest.$ac_objext
|
---|
| 7535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7536 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7537 | ac_status=$?
|
---|
| 7538 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7539 | rm -f conftest.er1
|
---|
| 7540 | cat conftest.err >&5
|
---|
| 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7542 | (exit $ac_status); } &&
|
---|
| 7543 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7544 | || test ! -s conftest.err'
|
---|
| 7545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7546 | (eval $ac_try) 2>&5
|
---|
| 7547 | ac_status=$?
|
---|
| 7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7549 | (exit $ac_status); }; } &&
|
---|
| 7550 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7552 | (eval $ac_try) 2>&5
|
---|
| 7553 | ac_status=$?
|
---|
| 7554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7555 | (exit $ac_status); }; }; then
|
---|
[16568] | 7556 | success="yes"
|
---|
[24901] | 7557 | else
|
---|
| 7558 | echo "$as_me: failed program was:" >&5
|
---|
| 7559 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7560 |
|
---|
[16568] | 7561 | fi
|
---|
[24901] | 7562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7563 | fi
|
---|
| 7564 |
|
---|
| 7565 | if test $success = yes; then
|
---|
[24901] | 7566 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7567 | echo "${ECHO_T}\"no\"" >&6
|
---|
[16568] | 7568 | else
|
---|
[24901] | 7569 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7570 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7571 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7572 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7573 | { (exit 1); exit 1; }; }
|
---|
[16568] | 7574 | fi
|
---|
| 7575 |
|
---|
| 7576 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 7577 | # check for running bash under cygwin
|
---|
| 7578 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7579 | then
|
---|
| 7580 | gsdlos=windows
|
---|
| 7581 | fi
|
---|
| 7582 |
|
---|
| 7583 |
|
---|
[24901] | 7584 | # Make gsdlarch empty if the OS bit value (32 or 64) is not used in naming
|
---|
| 7585 | # directories already or if runtime-src is compiled up on its own.
|
---|
| 7586 | # E.g. 32/64 bit won't be used in the SVN version if only bin/linux exists.
|
---|
| 7587 | if test -d "../bin/$gsdlos" -o ! -f "../setup.bash" ; then
|
---|
| 7588 | gsdlarch=""
|
---|
| 7589 | fi
|
---|
| 7590 |
|
---|
| 7591 |
|
---|
[16568] | 7592 | # check for endianness
|
---|
[24901] | 7593 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7594 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7595 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7596 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 7597 | else
|
---|
[24901] | 7598 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7599 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7600 | /* confdefs.h. */
|
---|
[16568] | 7601 | _ACEOF
|
---|
[24901] | 7602 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7603 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7604 | /* end confdefs.h. */
|
---|
| 7605 | #include <sys/types.h>
|
---|
[24901] | 7606 | #include <sys/param.h>
|
---|
[16568] | 7607 |
|
---|
| 7608 | int
|
---|
| 7609 | main ()
|
---|
| 7610 | {
|
---|
[24901] | 7611 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7612 | bogus endian macros
|
---|
| 7613 | #endif
|
---|
[16568] | 7614 |
|
---|
| 7615 | ;
|
---|
| 7616 | return 0;
|
---|
| 7617 | }
|
---|
| 7618 | _ACEOF
|
---|
[24901] | 7619 | rm -f conftest.$ac_objext
|
---|
| 7620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7621 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7622 | ac_status=$?
|
---|
| 7623 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7624 | rm -f conftest.er1
|
---|
| 7625 | cat conftest.err >&5
|
---|
| 7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7627 | (exit $ac_status); } &&
|
---|
| 7628 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7629 | || test ! -s conftest.err'
|
---|
| 7630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7631 | (eval $ac_try) 2>&5
|
---|
| 7632 | ac_status=$?
|
---|
| 7633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7634 | (exit $ac_status); }; } &&
|
---|
| 7635 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7637 | (eval $ac_try) 2>&5
|
---|
| 7638 | ac_status=$?
|
---|
| 7639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7640 | (exit $ac_status); }; }; then
|
---|
[16568] | 7641 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[24901] | 7642 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7643 | /* confdefs.h. */
|
---|
| 7644 | _ACEOF
|
---|
| 7645 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7646 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7647 | /* end confdefs.h. */
|
---|
| 7648 | #include <sys/types.h>
|
---|
[24901] | 7649 | #include <sys/param.h>
|
---|
[16568] | 7650 |
|
---|
| 7651 | int
|
---|
| 7652 | main ()
|
---|
| 7653 | {
|
---|
| 7654 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[24901] | 7655 | not big endian
|
---|
| 7656 | #endif
|
---|
[16568] | 7657 |
|
---|
| 7658 | ;
|
---|
| 7659 | return 0;
|
---|
| 7660 | }
|
---|
| 7661 | _ACEOF
|
---|
[24901] | 7662 | rm -f conftest.$ac_objext
|
---|
| 7663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7664 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7665 | ac_status=$?
|
---|
| 7666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7667 | rm -f conftest.er1
|
---|
| 7668 | cat conftest.err >&5
|
---|
| 7669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7670 | (exit $ac_status); } &&
|
---|
| 7671 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7672 | || test ! -s conftest.err'
|
---|
| 7673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7674 | (eval $ac_try) 2>&5
|
---|
| 7675 | ac_status=$?
|
---|
| 7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7677 | (exit $ac_status); }; } &&
|
---|
| 7678 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7680 | (eval $ac_try) 2>&5
|
---|
| 7681 | ac_status=$?
|
---|
| 7682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7683 | (exit $ac_status); }; }; then
|
---|
[16568] | 7684 | ac_cv_c_bigendian=yes
|
---|
| 7685 | else
|
---|
[24901] | 7686 | echo "$as_me: failed program was:" >&5
|
---|
| 7687 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7688 |
|
---|
| 7689 | ac_cv_c_bigendian=no
|
---|
[16568] | 7690 | fi
|
---|
[24901] | 7691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7692 | else
|
---|
| 7693 | echo "$as_me: failed program was:" >&5
|
---|
| 7694 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 7695 |
|
---|
[24901] | 7696 | # It does not; compile a test program.
|
---|
| 7697 | if test "$cross_compiling" = yes; then
|
---|
| 7698 | # try to guess the endianness by grepping values into an object file
|
---|
| 7699 | ac_cv_c_bigendian=unknown
|
---|
| 7700 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7701 | /* confdefs.h. */
|
---|
[16568] | 7702 | _ACEOF
|
---|
[24901] | 7703 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7704 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7705 | /* end confdefs.h. */
|
---|
[24901] | 7706 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7707 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7708 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7709 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7710 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7711 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
[16568] | 7712 | int
|
---|
| 7713 | main ()
|
---|
| 7714 | {
|
---|
[24901] | 7715 | _ascii (); _ebcdic ();
|
---|
[16568] | 7716 | ;
|
---|
| 7717 | return 0;
|
---|
| 7718 | }
|
---|
| 7719 | _ACEOF
|
---|
[24901] | 7720 | rm -f conftest.$ac_objext
|
---|
| 7721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7722 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7723 | ac_status=$?
|
---|
| 7724 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7725 | rm -f conftest.er1
|
---|
| 7726 | cat conftest.err >&5
|
---|
| 7727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7728 | (exit $ac_status); } &&
|
---|
| 7729 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7730 | || test ! -s conftest.err'
|
---|
| 7731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7732 | (eval $ac_try) 2>&5
|
---|
| 7733 | ac_status=$?
|
---|
| 7734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7735 | (exit $ac_status); }; } &&
|
---|
| 7736 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7738 | (eval $ac_try) 2>&5
|
---|
| 7739 | ac_status=$?
|
---|
| 7740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7741 | (exit $ac_status); }; }; then
|
---|
| 7742 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
[16568] | 7743 | ac_cv_c_bigendian=yes
|
---|
| 7744 | fi
|
---|
[24901] | 7745 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7746 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7747 | ac_cv_c_bigendian=no
|
---|
| 7748 | else
|
---|
| 7749 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7750 | ac_cv_c_bigendian=unknown
|
---|
| 7751 | fi
|
---|
[16568] | 7752 | fi
|
---|
[24901] | 7753 | else
|
---|
| 7754 | echo "$as_me: failed program was:" >&5
|
---|
| 7755 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 7756 |
|
---|
| 7757 | fi
|
---|
[24901] | 7758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7759 | else
|
---|
[24901] | 7760 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7761 | /* confdefs.h. */
|
---|
| 7762 | _ACEOF
|
---|
| 7763 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7764 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7765 | /* end confdefs.h. */
|
---|
| 7766 | int
|
---|
| 7767 | main ()
|
---|
| 7768 | {
|
---|
[24901] | 7769 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7770 | union
|
---|
| 7771 | {
|
---|
| 7772 | long l;
|
---|
| 7773 | char c[sizeof (long)];
|
---|
| 7774 | } u;
|
---|
| 7775 | u.l = 1;
|
---|
| 7776 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
[16568] | 7777 | }
|
---|
| 7778 | _ACEOF
|
---|
[24901] | 7779 | rm -f conftest$ac_exeext
|
---|
| 7780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7781 | (eval $ac_link) 2>&5
|
---|
| 7782 | ac_status=$?
|
---|
| 7783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7784 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7786 | (eval $ac_try) 2>&5
|
---|
| 7787 | ac_status=$?
|
---|
| 7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7789 | (exit $ac_status); }; }; then
|
---|
[16568] | 7790 | ac_cv_c_bigendian=no
|
---|
| 7791 | else
|
---|
[24901] | 7792 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7793 | echo "$as_me: failed program was:" >&5
|
---|
| 7794 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7795 |
|
---|
| 7796 | ( exit $ac_status )
|
---|
| 7797 | ac_cv_c_bigendian=yes
|
---|
[16568] | 7798 | fi
|
---|
[24901] | 7799 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7800 | fi
|
---|
| 7801 | fi
|
---|
[24901] | 7802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7803 | fi
|
---|
| 7804 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7805 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7806 | case $ac_cv_c_bigendian in
|
---|
| 7807 | yes)
|
---|
[16568] | 7808 |
|
---|
[24901] | 7809 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7810 | #define WORDS_BIGENDIAN 1
|
---|
| 7811 | _ACEOF
|
---|
| 7812 | ;;
|
---|
| 7813 | no)
|
---|
| 7814 | ;;
|
---|
| 7815 | *)
|
---|
| 7816 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7817 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7818 | echo "$as_me: error: unknown endianness
|
---|
| 7819 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7820 | { (exit 1); exit 1; }; } ;;
|
---|
| 7821 | esac
|
---|
[16568] | 7822 |
|
---|
| 7823 | # ---------------------------------------------------------------------------
|
---|
| 7824 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[24901] | 7825 | case $LIBOBJS in
|
---|
| 7826 | "xmalloc.o.$ac_objext" | \
|
---|
| 7827 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7828 | "xmalloc.o.$ac_objext "* | \
|
---|
[16568] | 7829 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[24901] | 7830 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
[16568] | 7831 | esac
|
---|
| 7832 |
|
---|
[24901] | 7833 | case $LIBOBJS in
|
---|
| 7834 | "error.$ac_objext" | \
|
---|
| 7835 | *" error.$ac_objext" | \
|
---|
| 7836 | "error.$ac_objext "* | \
|
---|
[16568] | 7837 | *" error.$ac_objext "* ) ;;
|
---|
[24901] | 7838 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16568] | 7839 | esac
|
---|
| 7840 |
|
---|
| 7841 | fi
|
---|
| 7842 |
|
---|
| 7843 | # ---------------------------------------------------------------------------
|
---|
| 7844 |
|
---|
| 7845 |
|
---|
| 7846 | moduleDirs=""
|
---|
| 7847 | MODULEDIRS=""
|
---|
[19825] | 7848 | if test -d modules ; then
|
---|
[16568] | 7849 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7850 | if test -d "$x"; then
|
---|
| 7851 | d="$x/Makefile.in"
|
---|
| 7852 | if test -e "$d"; then
|
---|
| 7853 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7854 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7855 | fi
|
---|
| 7856 | fi
|
---|
| 7857 | done
|
---|
| 7858 | echo "Making $moduleDirs in modules directory"
|
---|
| 7859 |
|
---|
| 7860 | fi
|
---|
| 7861 |
|
---|
| 7862 |
|
---|
[20854] | 7863 |
|
---|
| 7864 |
|
---|
[16568] | 7865 | subdirs="$subdirs packages"
|
---|
| 7866 |
|
---|
| 7867 |
|
---|
| 7868 | # the list of folders in the src folder
|
---|
| 7869 | srclist="src/colservr/Makefile \
|
---|
| 7870 | src/corba/Makefile \
|
---|
| 7871 | src/protocol/Makefile \
|
---|
| 7872 | src/recpt/Makefile \
|
---|
| 7873 | src/oaiservr/Makefile \
|
---|
[23356] | 7874 | src/z3950/Makefile \
|
---|
[24901] | 7875 | src/java/org/nzdl/gsdl/GsdlCollageApplet/Makefile \
|
---|
| 7876 | src/java/org/nzdl/gsdl/Phind/Makefile"
|
---|
[16568] | 7877 |
|
---|
[24901] | 7878 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
[16568] | 7879 | cat >confcache <<\_ACEOF
|
---|
| 7880 | # This file is a shell script that caches the results of configure
|
---|
| 7881 | # tests run on this system so they can be shared between configure
|
---|
| 7882 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7883 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7884 | # want to keep, you may remove or edit it.
|
---|
| 7885 | #
|
---|
| 7886 | # config.status only pays attention to the cache file if you give it
|
---|
| 7887 | # the --recheck option to rerun configure.
|
---|
| 7888 | #
|
---|
| 7889 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7890 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7891 | # following values.
|
---|
| 7892 |
|
---|
| 7893 | _ACEOF
|
---|
| 7894 |
|
---|
| 7895 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7896 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[24901] | 7897 | # So, don't put newlines in cache variables' values.
|
---|
[16568] | 7898 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7899 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[24901] | 7900 | {
|
---|
[16568] | 7901 | (set) 2>&1 |
|
---|
[24901] | 7902 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7903 | *ac_space=\ *)
|
---|
| 7904 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7905 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
[16568] | 7906 | sed -n \
|
---|
| 7907 | "s/'/'\\\\''/g;
|
---|
| 7908 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[24901] | 7909 | ;;
|
---|
[16568] | 7910 | *)
|
---|
| 7911 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[24901] | 7912 | sed -n \
|
---|
| 7913 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[16568] | 7914 | ;;
|
---|
[24901] | 7915 | esac;
|
---|
| 7916 | } |
|
---|
[16568] | 7917 | sed '
|
---|
| 7918 | t clear
|
---|
[24901] | 7919 | : clear
|
---|
[16568] | 7920 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7921 | t end
|
---|
[24901] | 7922 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7923 | : end' >>confcache
|
---|
| 7924 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
| 7925 | if test -w $cache_file; then
|
---|
| 7926 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
[16568] | 7927 | cat confcache >$cache_file
|
---|
| 7928 | else
|
---|
[24901] | 7929 | echo "not updating unwritable cache $cache_file"
|
---|
[16568] | 7930 | fi
|
---|
| 7931 | fi
|
---|
| 7932 | rm -f confcache
|
---|
| 7933 |
|
---|
| 7934 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7935 | # Let make expand exec_prefix.
|
---|
| 7936 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7937 |
|
---|
[24901] | 7938 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7939 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7940 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7941 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7942 | if test "x$srcdir" = x.; then
|
---|
| 7943 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7944 | s/:*\$(srcdir):*/:/;
|
---|
| 7945 | s/:*\${srcdir}:*/:/;
|
---|
| 7946 | s/:*@srcdir@:*/:/;
|
---|
| 7947 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7948 | s/:*$//;
|
---|
| 7949 | s/^[^=]*=[ ]*$//;
|
---|
| 7950 | }'
|
---|
| 7951 | fi
|
---|
| 7952 |
|
---|
[16568] | 7953 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7954 |
|
---|
| 7955 | ac_libobjs=
|
---|
| 7956 | ac_ltlibobjs=
|
---|
| 7957 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7958 | # 1. Remove the extension, and $U if already installed.
|
---|
[24901] | 7959 | ac_i=`echo "$ac_i" |
|
---|
| 7960 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7961 | # 2. Add them.
|
---|
| 7962 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7963 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
[16568] | 7964 | done
|
---|
| 7965 | LIBOBJS=$ac_libobjs
|
---|
| 7966 |
|
---|
| 7967 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7968 |
|
---|
| 7969 |
|
---|
| 7970 |
|
---|
| 7971 | : ${CONFIG_STATUS=./config.status}
|
---|
| 7972 | ac_clean_files_save=$ac_clean_files
|
---|
| 7973 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[24901] | 7974 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7975 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7976 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
[16568] | 7977 | #! $SHELL
|
---|
| 7978 | # Generated by $as_me.
|
---|
| 7979 | # Run this file to recreate the current configuration.
|
---|
| 7980 | # Compiler output produced by configure, useful for debugging
|
---|
| 7981 | # configure, is in config.log if it exists.
|
---|
| 7982 |
|
---|
| 7983 | debug=false
|
---|
| 7984 | ac_cs_recheck=false
|
---|
| 7985 | ac_cs_silent=false
|
---|
| 7986 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[24901] | 7987 | _ACEOF
|
---|
[16568] | 7988 |
|
---|
[24901] | 7989 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7990 | ## --------------------- ##
|
---|
| 7991 | ## M4sh Initialization. ##
|
---|
| 7992 | ## --------------------- ##
|
---|
| 7993 |
|
---|
| 7994 | # Be Bourne compatible
|
---|
| 7995 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[16568] | 7996 | emulate sh
|
---|
| 7997 | NULLCMD=:
|
---|
[24901] | 7998 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[16568] | 7999 | # is contrary to our usage. Disable this feature.
|
---|
| 8000 | alias -g '${1+"$@"}'='"$@"'
|
---|
[24901] | 8001 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 8002 | set -o posix
|
---|
[16568] | 8003 | fi
|
---|
[24901] | 8004 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16568] | 8005 |
|
---|
[24901] | 8006 | # Support unset when possible.
|
---|
| 8007 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 8008 | as_unset=unset
|
---|
[16568] | 8009 | else
|
---|
[24901] | 8010 | as_unset=false
|
---|
[16568] | 8011 | fi
|
---|
| 8012 |
|
---|
| 8013 |
|
---|
[24901] | 8014 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 8015 | $as_unset ENV MAIL MAILPATH
|
---|
[16568] | 8016 | PS1='$ '
|
---|
| 8017 | PS2='> '
|
---|
| 8018 | PS4='+ '
|
---|
| 8019 |
|
---|
| 8020 | # NLS nuisances.
|
---|
[24901] | 8021 | for as_var in \
|
---|
| 8022 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 8023 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 8024 | LC_TELEPHONE LC_TIME
|
---|
| 8025 | do
|
---|
| 8026 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 8027 | eval $as_var=C; export $as_var
|
---|
| 8028 | else
|
---|
| 8029 | $as_unset $as_var
|
---|
[16568] | 8030 | fi
|
---|
[24901] | 8031 | done
|
---|
[16568] | 8032 |
|
---|
[24901] | 8033 | # Required to use basename.
|
---|
| 8034 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16568] | 8035 | as_expr=expr
|
---|
| 8036 | else
|
---|
| 8037 | as_expr=false
|
---|
| 8038 | fi
|
---|
| 8039 |
|
---|
[24901] | 8040 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[16568] | 8041 | as_basename=basename
|
---|
| 8042 | else
|
---|
| 8043 | as_basename=false
|
---|
| 8044 | fi
|
---|
| 8045 |
|
---|
| 8046 |
|
---|
[24901] | 8047 | # Name of the executable.
|
---|
| 8048 | as_me=`$as_basename "$0" ||
|
---|
[16568] | 8049 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 8050 | X"$0" : 'X\(//\)$' \| \
|
---|
[24901] | 8051 | X"$0" : 'X\(/\)$' \| \
|
---|
| 8052 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8053 | echo X/"$0" |
|
---|
| 8054 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 8055 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8056 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 8057 | s/.*/./; q'`
|
---|
[16568] | 8058 |
|
---|
[24901] | 8059 |
|
---|
| 8060 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
[20854] | 8061 | # Avoid depending upon Character Ranges.
|
---|
| 8062 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 8063 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 8064 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 8065 | as_cr_digits='0123456789'
|
---|
| 8066 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[16568] | 8067 |
|
---|
[24901] | 8068 | # The user is always right.
|
---|
| 8069 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 8070 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 8071 | echo "exit 0" >>conf$$.sh
|
---|
| 8072 | chmod +x conf$$.sh
|
---|
| 8073 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 8074 | PATH_SEPARATOR=';'
|
---|
| 8075 | else
|
---|
| 8076 | PATH_SEPARATOR=:
|
---|
| 8077 | fi
|
---|
| 8078 | rm -f conf$$.sh
|
---|
| 8079 | fi
|
---|
| 8080 |
|
---|
| 8081 |
|
---|
| 8082 | as_lineno_1=$LINENO
|
---|
| 8083 | as_lineno_2=$LINENO
|
---|
| 8084 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 8085 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 8086 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 8087 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 8088 | # relative or not.
|
---|
| 8089 | case $0 in
|
---|
| 8090 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 8091 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 8092 | for as_dir in $PATH
|
---|
| 8093 | do
|
---|
| 8094 | IFS=$as_save_IFS
|
---|
| 8095 | test -z "$as_dir" && as_dir=.
|
---|
| 8096 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 8097 | done
|
---|
| 8098 |
|
---|
| 8099 | ;;
|
---|
| 8100 | esac
|
---|
| 8101 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 8102 | # in which case we are not to be found in the path.
|
---|
| 8103 | if test "x$as_myself" = x; then
|
---|
| 8104 | as_myself=$0
|
---|
| 8105 | fi
|
---|
| 8106 | if test ! -f "$as_myself"; then
|
---|
| 8107 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 8108 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 8109 | { (exit 1); exit 1; }; }
|
---|
| 8110 | fi
|
---|
| 8111 | case $CONFIG_SHELL in
|
---|
| 8112 | '')
|
---|
| 8113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 8114 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 8115 | do
|
---|
| 8116 | IFS=$as_save_IFS
|
---|
| 8117 | test -z "$as_dir" && as_dir=.
|
---|
| 8118 | for as_base in sh bash ksh sh5; do
|
---|
| 8119 | case $as_dir in
|
---|
| 8120 | /*)
|
---|
| 8121 | if ("$as_dir/$as_base" -c '
|
---|
| 8122 | as_lineno_1=$LINENO
|
---|
| 8123 | as_lineno_2=$LINENO
|
---|
| 8124 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 8125 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 8126 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 8127 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 8128 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 8129 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 8130 | export CONFIG_SHELL
|
---|
| 8131 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 8132 | fi;;
|
---|
| 8133 | esac
|
---|
| 8134 | done
|
---|
| 8135 | done
|
---|
| 8136 | ;;
|
---|
| 8137 | esac
|
---|
| 8138 |
|
---|
| 8139 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 8140 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 8141 | # line-number line before each line; the second 'sed' does the real
|
---|
| 8142 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 8143 | # with the numbered line, and appends trailing '-' during
|
---|
| 8144 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 8145 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 8146 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 8147 | sed '=' <$as_myself |
|
---|
| 8148 | sed '
|
---|
| 8149 | N
|
---|
| 8150 | s,$,-,
|
---|
| 8151 | : loop
|
---|
| 8152 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 8153 | t loop
|
---|
| 8154 | s,-$,,
|
---|
| 8155 | s,^['$as_cr_digits']*\n,,
|
---|
| 8156 | ' >$as_me.lineno &&
|
---|
| 8157 | chmod +x $as_me.lineno ||
|
---|
| 8158 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 8159 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 8160 | { (exit 1); exit 1; }; }
|
---|
| 8161 |
|
---|
| 8162 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 8163 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 8164 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 8165 | . ./$as_me.lineno
|
---|
| 8166 | # Exit status is that of the last command.
|
---|
| 8167 | exit
|
---|
| 8168 | }
|
---|
| 8169 |
|
---|
| 8170 |
|
---|
| 8171 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 8172 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 8173 | ' ECHO_T=' ' ;;
|
---|
| 8174 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 8175 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
[16568] | 8176 | esac
|
---|
| 8177 |
|
---|
[24901] | 8178 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 8179 | as_expr=expr
|
---|
[16568] | 8180 | else
|
---|
[24901] | 8181 | as_expr=false
|
---|
[16568] | 8182 | fi
|
---|
[24901] | 8183 |
|
---|
| 8184 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 8185 | echo >conf$$.file
|
---|
| 8186 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8187 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 8188 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 8189 | if test -f conf$$.exe; then
|
---|
| 8190 | # Don't use ln at all; we don't have any links
|
---|
| 8191 | as_ln_s='cp -p'
|
---|
| 8192 | else
|
---|
[23356] | 8193 | as_ln_s='ln -s'
|
---|
[20854] | 8194 | fi
|
---|
[24901] | 8195 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8196 | as_ln_s=ln
|
---|
[16568] | 8197 | else
|
---|
| 8198 | as_ln_s='cp -p'
|
---|
| 8199 | fi
|
---|
[24901] | 8200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[16568] | 8201 |
|
---|
| 8202 | if mkdir -p . 2>/dev/null; then
|
---|
[24901] | 8203 | as_mkdir_p=:
|
---|
[16568] | 8204 | else
|
---|
| 8205 | test -d ./-p && rmdir ./-p
|
---|
| 8206 | as_mkdir_p=false
|
---|
| 8207 | fi
|
---|
| 8208 |
|
---|
[24901] | 8209 | as_executable_p="test -f"
|
---|
[16568] | 8210 |
|
---|
| 8211 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 8212 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8213 |
|
---|
| 8214 | # Sed expression to map a string onto a valid variable name.
|
---|
| 8215 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8216 |
|
---|
| 8217 |
|
---|
[24901] | 8218 | # IFS
|
---|
| 8219 | # We need space, tab and new line, in precisely that order.
|
---|
| 8220 | as_nl='
|
---|
| 8221 | '
|
---|
| 8222 | IFS=" $as_nl"
|
---|
| 8223 |
|
---|
| 8224 | # CDPATH.
|
---|
| 8225 | $as_unset CDPATH
|
---|
| 8226 |
|
---|
[16568] | 8227 | exec 6>&1
|
---|
| 8228 |
|
---|
[24901] | 8229 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
[16568] | 8230 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[24901] | 8231 | # values after options handling. Logging --version etc. is OK.
|
---|
| 8232 | exec 5>>config.log
|
---|
| 8233 | {
|
---|
| 8234 | echo
|
---|
| 8235 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 8236 | ## Running $as_me. ##
|
---|
| 8237 | _ASBOX
|
---|
| 8238 | } >&5
|
---|
| 8239 | cat >&5 <<_CSEOF
|
---|
| 8240 |
|
---|
[16568] | 8241 | This file was extended by $as_me, which was
|
---|
[24901] | 8242 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[16568] | 8243 |
|
---|
| 8244 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 8245 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 8246 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 8247 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 8248 | $ $0 $@
|
---|
| 8249 |
|
---|
[24901] | 8250 | _CSEOF
|
---|
| 8251 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 8252 | echo >&5
|
---|
[16568] | 8253 | _ACEOF
|
---|
| 8254 |
|
---|
[24901] | 8255 | # Files that config.status was made for.
|
---|
| 8256 | if test -n "$ac_config_files"; then
|
---|
| 8257 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 8258 | fi
|
---|
[16568] | 8259 |
|
---|
[24901] | 8260 | if test -n "$ac_config_headers"; then
|
---|
| 8261 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 8262 | fi
|
---|
[16568] | 8263 |
|
---|
[24901] | 8264 | if test -n "$ac_config_links"; then
|
---|
| 8265 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 8266 | fi
|
---|
[20854] | 8267 |
|
---|
[24901] | 8268 | if test -n "$ac_config_commands"; then
|
---|
| 8269 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 8270 | fi
|
---|
[20854] | 8271 |
|
---|
[24901] | 8272 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[20854] | 8273 |
|
---|
[16568] | 8274 | ac_cs_usage="\
|
---|
[24901] | 8275 | \`$as_me' instantiates files from templates according to the
|
---|
| 8276 | current configuration.
|
---|
[16568] | 8277 |
|
---|
[24901] | 8278 | Usage: $0 [OPTIONS] [FILE]...
|
---|
[16568] | 8279 |
|
---|
| 8280 | -h, --help print this help, then exit
|
---|
[24901] | 8281 | -V, --version print version number, then exit
|
---|
| 8282 | -q, --quiet do not print progress messages
|
---|
[16568] | 8283 | -d, --debug don't remove temporary files
|
---|
| 8284 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[24901] | 8285 | --file=FILE[:TEMPLATE]
|
---|
| 8286 | instantiate the configuration file FILE
|
---|
| 8287 | --header=FILE[:TEMPLATE]
|
---|
| 8288 | instantiate the configuration header FILE
|
---|
[16568] | 8289 |
|
---|
| 8290 | Configuration files:
|
---|
| 8291 | $config_files
|
---|
| 8292 |
|
---|
| 8293 | Configuration headers:
|
---|
| 8294 | $config_headers
|
---|
| 8295 |
|
---|
[24901] | 8296 | Report bugs to <[email protected]>."
|
---|
| 8297 | _ACEOF
|
---|
[23356] | 8298 |
|
---|
[24901] | 8299 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[16568] | 8300 | ac_cs_version="\\
|
---|
| 8301 | config.status
|
---|
[24901] | 8302 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 8303 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[16568] | 8304 |
|
---|
[24901] | 8305 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16568] | 8306 | This config.status script is free software; the Free Software Foundation
|
---|
| 8307 | gives unlimited permission to copy, distribute and modify it."
|
---|
[24901] | 8308 | srcdir=$srcdir
|
---|
| 8309 | INSTALL="$INSTALL"
|
---|
[16568] | 8310 | _ACEOF
|
---|
| 8311 |
|
---|
[24901] | 8312 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8313 | # If no file are specified by the user, then we need to provide default
|
---|
| 8314 | # value. By we need to know if files were specified by the user.
|
---|
[16568] | 8315 | ac_need_defaults=:
|
---|
| 8316 | while test $# != 0
|
---|
| 8317 | do
|
---|
| 8318 | case $1 in
|
---|
[24901] | 8319 | --*=*)
|
---|
| 8320 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 8321 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[16568] | 8322 | ac_shift=:
|
---|
| 8323 | ;;
|
---|
[24901] | 8324 | -*)
|
---|
[16568] | 8325 | ac_option=$1
|
---|
| 8326 | ac_optarg=$2
|
---|
| 8327 | ac_shift=shift
|
---|
| 8328 | ;;
|
---|
[24901] | 8329 | *) # This is not an option, so the user has probably given explicit
|
---|
| 8330 | # arguments.
|
---|
| 8331 | ac_option=$1
|
---|
| 8332 | ac_need_defaults=false;;
|
---|
[16568] | 8333 | esac
|
---|
| 8334 |
|
---|
| 8335 | case $ac_option in
|
---|
| 8336 | # Handling of the options.
|
---|
[24901] | 8337 | _ACEOF
|
---|
| 8338 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8339 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 8340 | ac_cs_recheck=: ;;
|
---|
[24901] | 8341 | --version | --vers* | -V )
|
---|
| 8342 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 8343 | --he | --h)
|
---|
| 8344 | # Conflict between --help and --header
|
---|
| 8345 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 8346 | Try \`$0 --help' for more information." >&5
|
---|
| 8347 | echo "$as_me: error: ambiguous option: $1
|
---|
| 8348 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8349 | { (exit 1); exit 1; }; };;
|
---|
| 8350 | --help | --hel | -h )
|
---|
| 8351 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 8352 | --debug | --d* | -d )
|
---|
[16568] | 8353 | debug=: ;;
|
---|
| 8354 | --file | --fil | --fi | --f )
|
---|
| 8355 | $ac_shift
|
---|
[24901] | 8356 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[16568] | 8357 | ac_need_defaults=false;;
|
---|
| 8358 | --header | --heade | --head | --hea )
|
---|
| 8359 | $ac_shift
|
---|
[24901] | 8360 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[16568] | 8361 | ac_need_defaults=false;;
|
---|
| 8362 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8363 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8364 | ac_cs_silent=: ;;
|
---|
| 8365 |
|
---|
| 8366 | # This is an error.
|
---|
[24901] | 8367 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 8368 | Try \`$0 --help' for more information." >&5
|
---|
| 8369 | echo "$as_me: error: unrecognized option: $1
|
---|
| 8370 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8371 | { (exit 1); exit 1; }; } ;;
|
---|
[16568] | 8372 |
|
---|
[24901] | 8373 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
[16568] | 8374 |
|
---|
| 8375 | esac
|
---|
| 8376 | shift
|
---|
| 8377 | done
|
---|
| 8378 |
|
---|
| 8379 | ac_configure_extra_args=
|
---|
| 8380 |
|
---|
| 8381 | if $ac_cs_silent; then
|
---|
| 8382 | exec 6>/dev/null
|
---|
| 8383 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 8384 | fi
|
---|
| 8385 |
|
---|
| 8386 | _ACEOF
|
---|
[24901] | 8387 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[16568] | 8388 | if \$ac_cs_recheck; then
|
---|
[24901] | 8389 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8390 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[16568] | 8391 | fi
|
---|
| 8392 |
|
---|
| 8393 | _ACEOF
|
---|
| 8394 |
|
---|
| 8395 |
|
---|
[20854] | 8396 |
|
---|
[24901] | 8397 |
|
---|
| 8398 |
|
---|
| 8399 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8400 | for ac_config_target in $ac_config_targets
|
---|
| 8401 | do
|
---|
[24901] | 8402 | case "$ac_config_target" in
|
---|
| 8403 | # Handling of arguments.
|
---|
| 8404 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 8405 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8406 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 8407 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 8408 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8409 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8410 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8411 | { (exit 1); exit 1; }; };;
|
---|
[16568] | 8412 | esac
|
---|
| 8413 | done
|
---|
| 8414 |
|
---|
| 8415 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8416 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8417 | # We use the long form for the default assignment because of an extremely
|
---|
| 8418 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8419 | if $ac_need_defaults; then
|
---|
| 8420 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8421 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8422 | fi
|
---|
| 8423 |
|
---|
| 8424 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[24901] | 8425 | # simply because there is no reason to put it here, and in addition,
|
---|
[16568] | 8426 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[24901] | 8427 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
[16568] | 8428 | $debug ||
|
---|
| 8429 | {
|
---|
[24901] | 8430 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 8431 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[16568] | 8432 | }
|
---|
[24901] | 8433 |
|
---|
[16568] | 8434 | # Create a (secure) tmp directory for tmp files.
|
---|
| 8435 |
|
---|
| 8436 | {
|
---|
[24901] | 8437 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[16568] | 8438 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8439 | } ||
|
---|
| 8440 | {
|
---|
[24901] | 8441 | tmp=./confstat$$-$RANDOM
|
---|
| 8442 | (umask 077 && mkdir $tmp)
|
---|
| 8443 | } ||
|
---|
[16568] | 8444 | {
|
---|
[24901] | 8445 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 8446 | { (exit 1); exit 1; }
|
---|
| 8447 | }
|
---|
[23356] | 8448 |
|
---|
| 8449 | _ACEOF
|
---|
[16568] | 8450 |
|
---|
[24901] | 8451 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[23356] | 8452 |
|
---|
[24901] | 8453 | #
|
---|
| 8454 | # CONFIG_FILES section.
|
---|
| 8455 | #
|
---|
[23356] | 8456 |
|
---|
[24901] | 8457 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8458 | # This happens for instance when ./config.status config.h
|
---|
| 8459 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8460 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8461 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8462 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8463 | s,@SHELL@,$SHELL,;t t
|
---|
| 8464 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8465 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8466 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8467 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8468 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8469 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 8470 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8471 | s,@prefix@,$prefix,;t t
|
---|
| 8472 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8473 | s,@bindir@,$bindir,;t t
|
---|
| 8474 | s,@sbindir@,$sbindir,;t t
|
---|
| 8475 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8476 | s,@datadir@,$datadir,;t t
|
---|
| 8477 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8478 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8479 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8480 | s,@libdir@,$libdir,;t t
|
---|
| 8481 | s,@includedir@,$includedir,;t t
|
---|
| 8482 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8483 | s,@infodir@,$infodir,;t t
|
---|
| 8484 | s,@mandir@,$mandir,;t t
|
---|
| 8485 | s,@build_alias@,$build_alias,;t t
|
---|
| 8486 | s,@host_alias@,$host_alias,;t t
|
---|
| 8487 | s,@target_alias@,$target_alias,;t t
|
---|
| 8488 | s,@DEFS@,$DEFS,;t t
|
---|
| 8489 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8490 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8491 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8492 | s,@LIBS@,$LIBS,;t t
|
---|
| 8493 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8494 | s,@VERSION@,$VERSION,;t t
|
---|
| 8495 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 8496 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 8497 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 8498 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 8499 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 8500 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
| 8501 | s,@ENABLE_JAVA@,$ENABLE_JAVA,;t t
|
---|
| 8502 | s,@USE_JDBM@,$USE_JDBM,;t t
|
---|
| 8503 | s,@USE_GDBM@,$USE_GDBM,;t t
|
---|
| 8504 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
| 8505 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
| 8506 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
| 8507 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
| 8508 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
| 8509 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
| 8510 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8511 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8512 | s,@CC@,$CC,;t t
|
---|
| 8513 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8514 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8515 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8516 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8517 | s,@CXX@,$CXX,;t t
|
---|
| 8518 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8519 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8520 | s,@JAVAC@,$JAVAC,;t t
|
---|
| 8521 | s,@JAVACFLAGS@,$JAVACFLAGS,;t t
|
---|
| 8522 | s,@JAVA@,$JAVA,;t t
|
---|
| 8523 | s,@uudecode@,$uudecode,;t t
|
---|
| 8524 | s,@AWK@,$AWK,;t t
|
---|
| 8525 | s,@YACC@,$YACC,;t t
|
---|
| 8526 | s,@build@,$build,;t t
|
---|
| 8527 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 8528 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 8529 | s,@build_os@,$build_os,;t t
|
---|
| 8530 | s,@host@,$host,;t t
|
---|
| 8531 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 8532 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 8533 | s,@host_os@,$host_os,;t t
|
---|
| 8534 | s,@target@,$target,;t t
|
---|
| 8535 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 8536 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 8537 | s,@target_os@,$target_os,;t t
|
---|
| 8538 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8539 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8540 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8541 | s,@LN_S@,$LN_S,;t t
|
---|
| 8542 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8543 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8544 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8545 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
| 8546 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 8547 | s,@CPP@,$CPP,;t t
|
---|
| 8548 | s,@EGREP@,$EGREP,;t t
|
---|
| 8549 | s,@U@,$U,;t t
|
---|
| 8550 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 8551 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8552 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 8553 | s,@STATIC@,$STATIC,;t t
|
---|
| 8554 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 8555 | s,@gsdlarch@,$gsdlarch,;t t
|
---|
| 8556 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 8557 | s,@subdirs@,$subdirs,;t t
|
---|
| 8558 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 8559 | CEOF
|
---|
[20854] | 8560 |
|
---|
[16568] | 8561 | _ACEOF
|
---|
| 8562 |
|
---|
[24901] | 8563 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8564 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8565 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8566 | ac_max_sed_lines=48
|
---|
| 8567 | ac_sed_frag=1 # Number of current file.
|
---|
| 8568 | ac_beg=1 # First line for current file.
|
---|
| 8569 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8570 | ac_more_lines=:
|
---|
| 8571 | ac_sed_cmds=
|
---|
| 8572 | while $ac_more_lines; do
|
---|
| 8573 | if test $ac_beg -gt 1; then
|
---|
| 8574 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8575 | else
|
---|
| 8576 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8577 | fi
|
---|
| 8578 | if test ! -s $tmp/subs.frag; then
|
---|
| 8579 | ac_more_lines=false
|
---|
| 8580 | else
|
---|
| 8581 | # The purpose of the label and of the branching condition is to
|
---|
| 8582 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8583 | # is no need to browse any of the substitutions).
|
---|
| 8584 | # These are the two extra sed commands mentioned above.
|
---|
| 8585 | (echo ':t
|
---|
| 8586 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8587 | if test -z "$ac_sed_cmds"; then
|
---|
| 8588 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8589 | else
|
---|
| 8590 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8591 | fi
|
---|
| 8592 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8593 | ac_beg=$ac_end
|
---|
| 8594 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8595 | fi
|
---|
| 8596 | done
|
---|
| 8597 | if test -z "$ac_sed_cmds"; then
|
---|
| 8598 | ac_sed_cmds=cat
|
---|
[16568] | 8599 | fi
|
---|
[24901] | 8600 | fi # test -n "$CONFIG_FILES"
|
---|
[16568] | 8601 |
|
---|
| 8602 | _ACEOF
|
---|
[24901] | 8603 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8604 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8605 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8606 | case $ac_file in
|
---|
| 8607 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8608 | cat >$tmp/stdin
|
---|
| 8609 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8610 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8611 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8612 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8613 | * ) ac_file_in=$ac_file.in ;;
|
---|
[16568] | 8614 | esac
|
---|
| 8615 |
|
---|
[24901] | 8616 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8617 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
[16568] | 8618 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8619 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8620 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[24901] | 8621 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8622 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8623 | echo X"$ac_file" |
|
---|
| 8624 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8625 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8626 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8627 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8628 | s/.*/./; q'`
|
---|
| 8629 | { if $as_mkdir_p; then
|
---|
| 8630 | mkdir -p "$ac_dir"
|
---|
| 8631 | else
|
---|
| 8632 | as_dir="$ac_dir"
|
---|
| 8633 | as_dirs=
|
---|
| 8634 | while test ! -d "$as_dir"; do
|
---|
| 8635 | as_dirs="$as_dir $as_dirs"
|
---|
| 8636 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8637 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8638 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8639 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8640 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8641 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8642 | echo X"$as_dir" |
|
---|
| 8643 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8644 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8645 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8646 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8647 | s/.*/./; q'`
|
---|
| 8648 | done
|
---|
| 8649 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8650 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8651 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8652 | { (exit 1); exit 1; }; }; }
|
---|
| 8653 |
|
---|
[16568] | 8654 | ac_builddir=.
|
---|
| 8655 |
|
---|
[24901] | 8656 | if test "$ac_dir" != .; then
|
---|
| 8657 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8658 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8659 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8660 | else
|
---|
| 8661 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8662 | fi
|
---|
[16568] | 8663 |
|
---|
| 8664 | case $srcdir in
|
---|
[24901] | 8665 | .) # No --srcdir option. We are building in place.
|
---|
[16568] | 8666 | ac_srcdir=.
|
---|
[24901] | 8667 | if test -z "$ac_top_builddir"; then
|
---|
| 8668 | ac_top_srcdir=.
|
---|
| 8669 | else
|
---|
| 8670 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8671 | fi ;;
|
---|
| 8672 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16568] | 8673 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[24901] | 8674 | ac_top_srcdir=$srcdir ;;
|
---|
| 8675 | *) # Relative path.
|
---|
| 8676 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8677 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16568] | 8678 | esac
|
---|
| 8679 |
|
---|
[24901] | 8680 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8681 | # the directories may not exist.
|
---|
| 8682 | case `pwd` in
|
---|
| 8683 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8684 | *)
|
---|
| 8685 | case "$ac_dir" in
|
---|
| 8686 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8687 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8688 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8689 | esac;;
|
---|
| 8690 | esac
|
---|
| 8691 | case $ac_abs_builddir in
|
---|
| 8692 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8693 | *)
|
---|
| 8694 | case ${ac_top_builddir}. in
|
---|
| 8695 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8696 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8697 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8698 | esac;;
|
---|
| 8699 | esac
|
---|
| 8700 | case $ac_abs_builddir in
|
---|
| 8701 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8702 | *)
|
---|
| 8703 | case $ac_srcdir in
|
---|
| 8704 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8705 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8706 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8707 | esac;;
|
---|
| 8708 | esac
|
---|
| 8709 | case $ac_abs_builddir in
|
---|
| 8710 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8711 | *)
|
---|
| 8712 | case $ac_top_srcdir in
|
---|
| 8713 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8714 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8715 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8716 | esac;;
|
---|
| 8717 | esac
|
---|
[16568] | 8718 |
|
---|
| 8719 |
|
---|
| 8720 | case $INSTALL in
|
---|
| 8721 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[24901] | 8722 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[16568] | 8723 | esac
|
---|
| 8724 |
|
---|
[24901] | 8725 | if test x"$ac_file" != x-; then
|
---|
| 8726 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8727 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8728 | rm -f "$ac_file"
|
---|
| 8729 | fi
|
---|
| 8730 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8731 | # use $as_me), people would be surprised to read:
|
---|
| 8732 | # /* config.h. Generated by config.status. */
|
---|
| 8733 | if test x"$ac_file" = x-; then
|
---|
| 8734 | configure_input=
|
---|
| 8735 | else
|
---|
| 8736 | configure_input="$ac_file. "
|
---|
| 8737 | fi
|
---|
| 8738 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8739 | sed 's,.*/,,'` by configure."
|
---|
| 8740 |
|
---|
| 8741 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8742 | # src tree.
|
---|
| 8743 | ac_file_inputs=`IFS=:
|
---|
| 8744 | for f in $ac_file_in; do
|
---|
| 8745 | case $f in
|
---|
| 8746 | -) echo $tmp/stdin ;;
|
---|
| 8747 | [\\/$]*)
|
---|
| 8748 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8749 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8750 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8751 | { (exit 1); exit 1; }; }
|
---|
| 8752 | echo "$f";;
|
---|
| 8753 | *) # Relative
|
---|
| 8754 | if test -f "$f"; then
|
---|
| 8755 | # Build tree
|
---|
| 8756 | echo "$f"
|
---|
| 8757 | elif test -f "$srcdir/$f"; then
|
---|
| 8758 | # Source tree
|
---|
| 8759 | echo "$srcdir/$f"
|
---|
| 8760 | else
|
---|
| 8761 | # /dev/null tree
|
---|
| 8762 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8763 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8764 | { (exit 1); exit 1; }; }
|
---|
| 8765 | fi;;
|
---|
| 8766 | esac
|
---|
| 8767 | done` || { (exit 1); exit 1; }
|
---|
[23356] | 8768 | _ACEOF
|
---|
[24901] | 8769 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8770 | sed "$ac_vpsub
|
---|
[16568] | 8771 | $extrasub
|
---|
| 8772 | _ACEOF
|
---|
[24901] | 8773 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8774 | :t
|
---|
| 8775 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[24901] | 8776 | s,@configure_input@,$configure_input,;t t
|
---|
| 8777 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8778 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8779 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8780 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8781 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8782 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8783 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8784 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8785 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8786 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8787 | rm -f $tmp/stdin
|
---|
| 8788 | if test x"$ac_file" != x-; then
|
---|
| 8789 | mv $tmp/out $ac_file
|
---|
| 8790 | else
|
---|
| 8791 | cat $tmp/out
|
---|
| 8792 | rm -f $tmp/out
|
---|
| 8793 | fi
|
---|
[16568] | 8794 |
|
---|
[24901] | 8795 | done
|
---|
| 8796 | _ACEOF
|
---|
| 8797 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8798 |
|
---|
[24901] | 8799 | #
|
---|
| 8800 | # CONFIG_HEADER section.
|
---|
| 8801 | #
|
---|
| 8802 |
|
---|
| 8803 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8804 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8805 | #
|
---|
| 8806 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 8807 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8808 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8809 | ac_dC=' '
|
---|
| 8810 | ac_dD=',;t'
|
---|
| 8811 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8812 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8813 | ac_uB='$,\1#\2define\3'
|
---|
| 8814 | ac_uC=' '
|
---|
| 8815 | ac_uD=',;t'
|
---|
| 8816 |
|
---|
| 8817 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 8818 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[16568] | 8819 | case $ac_file in
|
---|
[24901] | 8820 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8821 | cat >$tmp/stdin
|
---|
| 8822 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8823 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8824 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8825 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8826 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 8827 | esac
|
---|
| 8828 |
|
---|
| 8829 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8830 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8831 |
|
---|
| 8832 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8833 | # src tree.
|
---|
| 8834 | ac_file_inputs=`IFS=:
|
---|
| 8835 | for f in $ac_file_in; do
|
---|
| 8836 | case $f in
|
---|
| 8837 | -) echo $tmp/stdin ;;
|
---|
| 8838 | [\\/$]*)
|
---|
| 8839 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8840 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8841 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8842 | { (exit 1); exit 1; }; }
|
---|
| 8843 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8844 | echo "$f";;
|
---|
| 8845 | *) # Relative
|
---|
| 8846 | if test -f "$f"; then
|
---|
| 8847 | # Build tree
|
---|
| 8848 | echo "$f"
|
---|
| 8849 | elif test -f "$srcdir/$f"; then
|
---|
| 8850 | # Source tree
|
---|
| 8851 | echo "$srcdir/$f"
|
---|
| 8852 | else
|
---|
| 8853 | # /dev/null tree
|
---|
| 8854 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8855 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8856 | { (exit 1); exit 1; }; }
|
---|
| 8857 | fi;;
|
---|
| 8858 | esac
|
---|
| 8859 | done` || { (exit 1); exit 1; }
|
---|
| 8860 | # Remove the trailing spaces.
|
---|
| 8861 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
| 8862 |
|
---|
| 8863 | _ACEOF
|
---|
| 8864 |
|
---|
| 8865 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8866 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8867 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8868 | # templates, and the second `#undef' templates.
|
---|
| 8869 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8870 | # config.status. Protect against being in an unquoted here document
|
---|
| 8871 | # in config.status.
|
---|
| 8872 | rm -f conftest.defines conftest.undefs
|
---|
| 8873 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8874 | # Putting comments in sed scripts is not portable.
|
---|
| 8875 | #
|
---|
| 8876 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8877 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8878 | # See the Autoconf documentation for `clear'.
|
---|
| 8879 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8880 | s/[\\&,]/\\&/g
|
---|
| 8881 | s,[\\$`],\\&,g
|
---|
| 8882 | t clear
|
---|
| 8883 | : clear
|
---|
| 8884 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8885 | t end
|
---|
| 8886 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8887 | : end
|
---|
| 8888 | _ACEOF
|
---|
| 8889 | # If some macros were called several times there might be several times
|
---|
| 8890 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8891 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8892 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8893 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8894 | rm -f confdef2sed.sed
|
---|
| 8895 |
|
---|
| 8896 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8897 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8898 | # on some systems where configure will not decide to define it.
|
---|
| 8899 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8900 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8901 | _ACEOF
|
---|
| 8902 |
|
---|
| 8903 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8904 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8905 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8906 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8907 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8908 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8909 | rm -f conftest.tail
|
---|
| 8910 | while grep . conftest.defines >/dev/null
|
---|
| 8911 | do
|
---|
| 8912 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8913 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8914 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8915 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8916 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8917 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8918 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8919 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8920 | echo 'CEOF
|
---|
| 8921 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8922 | rm -f $tmp/in
|
---|
| 8923 | mv $tmp/out $tmp/in
|
---|
| 8924 | ' >>$CONFIG_STATUS
|
---|
| 8925 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8926 | rm -f conftest.defines
|
---|
| 8927 | mv conftest.tail conftest.defines
|
---|
| 8928 | done
|
---|
| 8929 | rm -f conftest.defines
|
---|
| 8930 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8931 | echo >>$CONFIG_STATUS
|
---|
| 8932 |
|
---|
| 8933 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8934 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8935 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 8936 | rm -f conftest.tail
|
---|
| 8937 | while grep . conftest.undefs >/dev/null
|
---|
| 8938 | do
|
---|
| 8939 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8940 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8941 | # Speed up: don't consider the non `#undef'
|
---|
| 8942 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8943 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8944 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8945 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8946 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 8947 | echo 'CEOF
|
---|
| 8948 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8949 | rm -f $tmp/in
|
---|
| 8950 | mv $tmp/out $tmp/in
|
---|
| 8951 | ' >>$CONFIG_STATUS
|
---|
| 8952 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8953 | rm -f conftest.undefs
|
---|
| 8954 | mv conftest.tail conftest.undefs
|
---|
| 8955 | done
|
---|
| 8956 | rm -f conftest.undefs
|
---|
| 8957 |
|
---|
| 8958 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8959 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8960 | # use $as_me), people would be surprised to read:
|
---|
| 8961 | # /* config.h. Generated by config.status. */
|
---|
| 8962 | if test x"$ac_file" = x-; then
|
---|
| 8963 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
| 8964 | else
|
---|
| 8965 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8966 | fi
|
---|
| 8967 | cat $tmp/in >>$tmp/config.h
|
---|
| 8968 | rm -f $tmp/in
|
---|
[16568] | 8969 | if test x"$ac_file" != x-; then
|
---|
[24901] | 8970 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8971 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8972 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[16568] | 8973 | else
|
---|
[24901] | 8974 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8975 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8976 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8977 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8978 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8979 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8980 | echo X"$ac_file" |
|
---|
| 8981 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8982 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8983 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8984 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8985 | s/.*/./; q'`
|
---|
| 8986 | { if $as_mkdir_p; then
|
---|
| 8987 | mkdir -p "$ac_dir"
|
---|
| 8988 | else
|
---|
| 8989 | as_dir="$ac_dir"
|
---|
| 8990 | as_dirs=
|
---|
| 8991 | while test ! -d "$as_dir"; do
|
---|
| 8992 | as_dirs="$as_dir $as_dirs"
|
---|
| 8993 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8994 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8995 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8996 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8997 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8998 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8999 | echo X"$as_dir" |
|
---|
| 9000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 9001 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 9002 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 9003 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 9004 | s/.*/./; q'`
|
---|
| 9005 | done
|
---|
| 9006 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 9007 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 9008 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 9009 | { (exit 1); exit 1; }; }; }
|
---|
| 9010 |
|
---|
| 9011 | rm -f $ac_file
|
---|
| 9012 | mv $tmp/config.h $ac_file
|
---|
[16568] | 9013 | fi
|
---|
| 9014 | else
|
---|
[24901] | 9015 | cat $tmp/config.h
|
---|
| 9016 | rm -f $tmp/config.h
|
---|
[16568] | 9017 | fi
|
---|
[24901] | 9018 | done
|
---|
| 9019 | _ACEOF
|
---|
[16568] | 9020 |
|
---|
[24901] | 9021 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 9022 |
|
---|
[24901] | 9023 | { (exit 0); exit 0; }
|
---|
[16568] | 9024 | _ACEOF
|
---|
[24901] | 9025 | chmod +x $CONFIG_STATUS
|
---|
[16568] | 9026 | ac_clean_files=$ac_clean_files_save
|
---|
| 9027 |
|
---|
| 9028 |
|
---|
| 9029 | # configure is writing to config.log, and then calls config.status.
|
---|
| 9030 | # config.status does its own redirection, appending to config.log.
|
---|
| 9031 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 9032 | # by configure, so config.status won't be able to write to it; its
|
---|
| 9033 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 9034 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 9035 | # appended to by config.status. When coming back to configure, we
|
---|
| 9036 | # need to make the FD available again.
|
---|
| 9037 | if test "$no_create" != yes; then
|
---|
| 9038 | ac_cs_success=:
|
---|
| 9039 | ac_config_status_args=
|
---|
| 9040 | test "$silent" = yes &&
|
---|
| 9041 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 9042 | exec 5>/dev/null
|
---|
| 9043 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 9044 | exec 5>>config.log
|
---|
| 9045 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 9046 | # would make configure fail if this is the last instruction.
|
---|
[24901] | 9047 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
[16568] | 9048 | fi
|
---|
| 9049 |
|
---|
| 9050 | #
|
---|
| 9051 | # CONFIG_SUBDIRS section.
|
---|
| 9052 | #
|
---|
| 9053 | if test "$no_recursion" != yes; then
|
---|
| 9054 |
|
---|
[24901] | 9055 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
[16568] | 9056 | ac_sub_configure_args=
|
---|
| 9057 | ac_prev=
|
---|
[24901] | 9058 | for ac_arg in $ac_configure_args; do
|
---|
[16568] | 9059 | if test -n "$ac_prev"; then
|
---|
| 9060 | ac_prev=
|
---|
| 9061 | continue
|
---|
| 9062 | fi
|
---|
| 9063 | case $ac_arg in
|
---|
| 9064 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 9065 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 9066 | ac_prev=cache_file ;;
|
---|
| 9067 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 9068 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 9069 | | --c=*)
|
---|
| 9070 | ;;
|
---|
| 9071 | --config-cache | -C)
|
---|
| 9072 | ;;
|
---|
| 9073 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 9074 | ac_prev=srcdir ;;
|
---|
| 9075 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 9076 | ;;
|
---|
| 9077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 9078 | ac_prev=prefix ;;
|
---|
| 9079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 9080 | ;;
|
---|
[24901] | 9081 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
[16568] | 9082 | esac
|
---|
| 9083 | done
|
---|
| 9084 |
|
---|
| 9085 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 9086 | # in subdir configurations.
|
---|
[24901] | 9087 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[16568] | 9088 |
|
---|
| 9089 | ac_popdir=`pwd`
|
---|
| 9090 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 9091 |
|
---|
| 9092 | # Do not complain, so a configure script can configure whichever
|
---|
| 9093 | # parts of a large source tree are present.
|
---|
[24901] | 9094 | test -d $srcdir/$ac_dir || continue
|
---|
[16568] | 9095 |
|
---|
[24901] | 9096 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 9097 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 9098 | { if $as_mkdir_p; then
|
---|
| 9099 | mkdir -p "$ac_dir"
|
---|
| 9100 | else
|
---|
| 9101 | as_dir="$ac_dir"
|
---|
| 9102 | as_dirs=
|
---|
| 9103 | while test ! -d "$as_dir"; do
|
---|
| 9104 | as_dirs="$as_dir $as_dirs"
|
---|
| 9105 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 9106 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 9107 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 9108 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 9109 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 9110 | . : '\(.\)' 2>/dev/null ||
|
---|
| 9111 | echo X"$as_dir" |
|
---|
| 9112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 9113 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 9114 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 9115 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 9116 | s/.*/./; q'`
|
---|
| 9117 | done
|
---|
| 9118 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 9119 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 9120 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 9121 | { (exit 1); exit 1; }; }; }
|
---|
| 9122 |
|
---|
[16568] | 9123 | ac_builddir=.
|
---|
| 9124 |
|
---|
[24901] | 9125 | if test "$ac_dir" != .; then
|
---|
| 9126 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 9127 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 9128 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 9129 | else
|
---|
| 9130 | ac_dir_suffix= ac_top_builddir=
|
---|
| 9131 | fi
|
---|
[16568] | 9132 |
|
---|
| 9133 | case $srcdir in
|
---|
[24901] | 9134 | .) # No --srcdir option. We are building in place.
|
---|
[16568] | 9135 | ac_srcdir=.
|
---|
[24901] | 9136 | if test -z "$ac_top_builddir"; then
|
---|
| 9137 | ac_top_srcdir=.
|
---|
| 9138 | else
|
---|
| 9139 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 9140 | fi ;;
|
---|
| 9141 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16568] | 9142 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[24901] | 9143 | ac_top_srcdir=$srcdir ;;
|
---|
| 9144 | *) # Relative path.
|
---|
| 9145 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 9146 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16568] | 9147 | esac
|
---|
| 9148 |
|
---|
[24901] | 9149 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 9150 | # the directories may not exist.
|
---|
| 9151 | case `pwd` in
|
---|
| 9152 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 9153 | *)
|
---|
| 9154 | case "$ac_dir" in
|
---|
| 9155 | .) ac_abs_builddir=`pwd`;;
|
---|
| 9156 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 9157 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 9158 | esac;;
|
---|
| 9159 | esac
|
---|
| 9160 | case $ac_abs_builddir in
|
---|
| 9161 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 9162 | *)
|
---|
| 9163 | case ${ac_top_builddir}. in
|
---|
| 9164 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 9165 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 9166 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 9167 | esac;;
|
---|
| 9168 | esac
|
---|
| 9169 | case $ac_abs_builddir in
|
---|
| 9170 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9171 | *)
|
---|
| 9172 | case $ac_srcdir in
|
---|
| 9173 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 9174 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9175 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 9176 | esac;;
|
---|
| 9177 | esac
|
---|
| 9178 | case $ac_abs_builddir in
|
---|
| 9179 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9180 | *)
|
---|
| 9181 | case $ac_top_srcdir in
|
---|
| 9182 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 9183 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9184 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 9185 | esac;;
|
---|
| 9186 | esac
|
---|
[16568] | 9187 |
|
---|
| 9188 |
|
---|
[24901] | 9189 | cd $ac_dir
|
---|
| 9190 |
|
---|
[16568] | 9191 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[24901] | 9192 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 9193 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 9194 | elif test -f $ac_srcdir/configure; then
|
---|
| 9195 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 9196 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 9197 | ac_sub_configure=$ac_configure
|
---|
[16568] | 9198 | else
|
---|
[24901] | 9199 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 9200 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[16568] | 9201 | ac_sub_configure=
|
---|
| 9202 | fi
|
---|
| 9203 |
|
---|
| 9204 | # The recursion is here.
|
---|
| 9205 | if test -n "$ac_sub_configure"; then
|
---|
| 9206 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 9207 | case $cache_file in
|
---|
| 9208 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[24901] | 9209 | *) # Relative path.
|
---|
| 9210 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[16568] | 9211 | esac
|
---|
| 9212 |
|
---|
[24901] | 9213 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 9214 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[16568] | 9215 | # The eval makes quoting arguments work.
|
---|
[24901] | 9216 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 9217 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 9218 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 9219 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 9220 | { (exit 1); exit 1; }; }
|
---|
[16568] | 9221 | fi
|
---|
| 9222 |
|
---|
[24901] | 9223 | cd $ac_popdir
|
---|
[16568] | 9224 | done
|
---|
| 9225 | fi
|
---|
| 9226 |
|
---|
| 9227 |
|
---|
| 9228 |
|
---|